Page 1 of 1

Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Friday 22 January 2016 22:19
by blitzkneisser
I don't know if this is a Linux or Domozicz problem...
I have an Aeon Labs Z-Wave Stick which generally works really fine with domoticz. But if I either reboot my Raspberry or unplug the stick (and later plug it in again), it is quite often not found.
The stick is eiter accessible on serial port /dev/ttyACM0 or /dev/ttyACM1 - this assignment seems to be done completely random after reboot/plugin. And if this port is different than before, the stick is not recognized by Domoticz and my whole Z-Wave-Network is offline. I then have to select the serial port in the domoticz hardware window and everything is working again.

Would it be possible to not use a fixed port but just use the available port? Or maybe select not a single but a range of ports? Because in the serial port drop down list there's always only one port available as I don't have any other devices. Or is there maybe a possibility to configure the raspberry in a way that it always uses the same port?

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Monday 01 February 2016 19:11
by Alle

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Monday 01 February 2016 20:42
by blitzkneisser
Alle wrote:This will fix your problem:
http://www.domoticz.com/wiki/PersistentUSBDevices
Thanks a lot, that did the trick!

For everybody who has the same problem: the correct line in /etc/udev/rules.d/99-usb-serial.rules is for an Aeon/Aeotec Gen5 Z-Wave USB Stick is:

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyACM99"

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 02 February 2016 0:07
by nayr
heads up you can make your symlink anything you want.. I use: SYMLINK+="ttyUSB-ZWAVE" and the resulting device is /dev/ttyUSB-ZWAVE, avoids mistaken identities.

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 02 February 2016 6:07
by blitzkneisser
Well, I planned to do something line that but the description says that this is possible but domoticz does not like fancy symlinks. If it works meanwhile, that would be good...

Gesendet von meinem A0001 mit Tapatalk

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 02 February 2016 8:55
by nayr
hrmm, I might have to do some work on that wiki page because thats false.. this is linux, your not limited to COM*.. Ive seen devices use all sorts of unique names.
Screen Shot 2016-02-02 at 12.52.53 AM.png
Screen Shot 2016-02-02 at 12.52.53 AM.png (200.78 KiB) Viewed 6022 times
I just ordered another serial adapter for my receiver, made sure to pick a different chipset than my ttyUSB-TV adapter, cant use the same one again because the serial number is zero and I dont want them to get mixed up.

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 02 February 2016 9:00
by blitzkneisser
That's good to know, I'd also prefer a fancy name.

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 02 February 2016 9:18
by nayr
perhaps me putting ttyUSB- at the front was all that was needed, tweaked the wiki and included the information you provided so people have copy/paste lines.

figured should identify the 2 generation controllers uniquely, because when I get a Gen5 controller I will likely run a separate Gen5 only network.

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Sunday 11 December 2016 21:13
by still
Hi first post...... Just started with Domoticz :)
Domoticz Version 3.6044
Ubuntu 16.04 LTS

Have tried to searched about my problem but only this thread comes up that is close...
I have an udev rule to create a symlink and it works. I also have another USB-serial device, used for serial tty, and that also have a rule for symlink creation

The problem is that in the settings->Hardware->OpenZWave USB->Serial Port the ttyZWave device isn't included but all other are. Including the symlink for the ttyUSBSerial!!
Anyone seen this before?

# ls -l /dev/tty* | grep -e ACM -e USB
crw-rw---- 1 root dialout 166, 1 dec 11 20:56 /dev/ttyACM0
crw-rw---- 1 root dialout 188, 0 dec 11 20:47 /dev/ttyUSB0
lrwxrwxrwx 1 root root 7 dec 11 20:47 /dev/ttyUSBSerial -> ttyUSB0
lrwxrwxrwx 1 root root 7 dec 11 20:47 /dev/ttyZwave -> ttyACM0

udev rule...
SUBSYSTEM=="tty", \
ATTRS{idVendor}=="0658", \
ATTRS{idProduct}=="0200", \
SYMLINK+="ttyZwave"

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Tuesday 13 December 2016 20:51
by still
Found the problem my self
Domoticz are only searching for some names for the tty ports

This is from main/helper.cpp file
//scan /dev for /dev/ttyUSB* or /dev/ttyS* or /dev/tty.usbserial* or /dev/ttyAMA* or /dev/ttySAC*

So I just changed the alias name in the udev rules file to something within this namespace...

Re: Z-Wave Stick not active after reboot (diff. ser. IO port)

Posted: Thursday 02 February 2017 20:40
by dannybloe
I did all of the above and indeed I have a ttyUSB-ZWave device. That works. However, when I unplug the stick and plug it back in, the symlink now correctly points to ttyACM1 (0+1) but domoticz won't send zwave commands anymore. I have to reboot to make it work again.

Any ideas?