HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: Bitcraze on October 14, 2014, 10:48:40 PM

Title: Vision ZU1401 Z-Stick and Raspberry PI
Post by: Bitcraze on October 14, 2014, 10:48:40 PM
Hi, all

I have installed HomeGenie on my new Raspberry PI.  Installed the Z-Wave dongle into a USB Port on the PI:

Vision ZU1401:
http://www.visionsecurity.com.tw/ha_products_page2_154_203.html (http://www.visionsecurity.com.tw/ha_products_page2_154_203.html)

Issue:

Under Configure, Interfaces: I select the Device Port detected: /dev/ttyAMA0, then choose Discovery:

Discovery starts but doesn't find anything.

Note: Works fine in HomeGenie on my Windows 7 PC.

Any help would be appreciated.


Eugene

Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: mvdarend on October 15, 2014, 09:27:12 AM
I can't remember exactly what the port was named on my RaspberryPi, but I thought it had 'USB' in it somewhere, are you sure you've got the correct port?

On my BananaPi it is named /dev/ttyUSB0
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: Bitcraze on October 15, 2014, 07:34:26 PM
Him mvdarend

Thanks for your reply. Much appreciated.

That's the only Port available in that spot in HomeGenie.

I recall the device being a USB "serial" device.

Why would my RPI not show the USB? Instructions was followed on install.

Eugene
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: mvdarend on October 15, 2014, 08:14:53 PM
The only thing I can think of is that the OS you're using might be missing USB drivers? I'm not very well versed in Linux though, so it's just a guess.

If you haven't already, you could try the HomeGenie RaspberryPi Image (http://www.homegenie.it/download.php) to see if the USB port is recognized with that.
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: Bitcraze on October 20, 2014, 05:00:36 PM
Hi,

Thanks for the reply. :)

I am using the HomeGenie Raspberry image. Perhaps it doesn't contain the drivers for this device,

or

I need to disable Serial Console Mode, as per these sites:

http://www.raspberrypi.org/forums/viewtopic.php?t=55043 (http://www.raspberrypi.org/forums/viewtopic.php?t=55043)

http://www.raspberrypi-spy.co.uk/2013/12/free-your-raspberry-pi-serial-port/ (http://www.raspberrypi-spy.co.uk/2013/12/free-your-raspberry-pi-serial-port/)

http://www.hobbytronics.co.uk/raspberry-pi-serial-port (http://www.hobbytronics.co.uk/raspberry-pi-serial-port)


Have been struggling to edit the file, as mentioned above. It's in read-only mode.


Eugene

Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: bkenobi on October 20, 2014, 05:20:57 PM
I've had no problems editing files on the Raspi image when I use "sudo nano <file>".
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: Bitcraze on October 20, 2014, 05:50:16 PM
I have been using Putty to SSH to the unit. Could that cause an issue?

It allows me to make the change and save, but when I reboot, the changes were NOT saved.

Eugene
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: bkenobi on October 20, 2014, 08:55:54 PM
I'm not sure how that would cause an issue.  I use Putty as well.  It's really just a terminal application so it should have nothing to do with how Linux operates.  If you save the file, close it, then open it again it should be as saved.  If not, that's a problem.  You could also try logging off and then back on with Putty to verify.  I'm not sure what would cause Linux to replace files after reboot so it really has to be a problem writing the files IMO.
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: nolio on October 21, 2014, 05:48:41 AM
Hi,
I try to editing the /etc/inittab file and it work for me too (but I didn't try to reboot ;)).
I don't understand why did you want to edit this file, because it seems to be usefull to use gpio port, but you use usb ...

Your dongle is compatible with Linux kernel 2.6.24+ (from a web site).
Could you please copy-paste the result of lusb command please. Perhaps, it's only a problem with HG but not with your system...

Bye
Title: Re: Vision ZU1401 Z-Stick and Raspberry PI
Post by: Bitcraze on October 23, 2014, 04:39:07 PM
Hi, Nolio

Thanks for your reply.

In HomeGenie, ttyAMA0 auto appears under Z-Wave when I plug the Vision USB stick in. If I do a discovery, which should then detect the device, it's just keeps saying Discovery running, but nothing further.

I suspect the drivers for the device are already included in the downloaded RPI and that my issue is:

By default, RPI sets the Serial ttyAMA0 to Console Mode and thus I can't use it for the USB device. I need to remove that setting in the /boot/cmdline.txt file, according to various web sites.

More on this topic: Preventing Linux using the serial port


http://longtermcache.blogspot.com/2013/04/mission-failed-disabling-uart.html (http://longtermcache.blogspot.com/2013/04/mission-failed-disabling-uart.html)

http://elinux.org/RPi_Serial_Connection (http://elinux.org/RPi_Serial_Connection)

http://raspberrypihobbyist.blogspot.com/2012/08/raspberry-pi-serial-port.html (http://raspberrypihobbyist.blogspot.com/2012/08/raspberry-pi-serial-port.html)

The Broadcom UART appears as /dev/ttyAMA0 under Linux, and so does the Vision USB stick, USB via serial, which I suspect being the issue.

The USB dongle works fine in HomeGenie under Windows 7.


Thanks,


Eugene