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

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
User avatar
blitzkneisser
Posts: 43
Joined: Tuesday 01 December 2015 8:39
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Villach, Austria
Contact:

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

Post 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?
Last edited by blitzkneisser on Monday 01 February 2016 21:11, edited 1 time in total.
User avatar
Alle
Posts: 30
Joined: Friday 26 December 2014 8:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Fryslân boppe, The Netherlands
Contact:

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

Post by Alle »

ESXi/Ubuntu - Z-wave.me USB Stick - Domoticz Beta - EvoHome - Nest Protect - Logitech Media Server - Netatmo Weather Station - Everspring - Aeonlabs
User avatar
blitzkneisser
Posts: 43
Joined: Tuesday 01 December 2015 8:39
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Villach, Austria
Contact:

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

Post 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"
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

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

Post 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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
blitzkneisser
Posts: 43
Joined: Tuesday 01 December 2015 8:39
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Villach, Austria
Contact:

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

Post 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
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

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

Post 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 5969 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.
Last edited by nayr on Tuesday 02 February 2016 9:03, edited 2 times in total.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
blitzkneisser
Posts: 43
Joined: Tuesday 01 December 2015 8:39
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Villach, Austria
Contact:

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

Post by blitzkneisser »

That's good to know, I'd also prefer a fancy name.
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

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

Post 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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
still
Posts: 7
Joined: Sunday 11 December 2016 20:54
Target OS: Linux
Domoticz version: 3.6044
Location: Sweden
Contact:

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

Post 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"
User avatar
still
Posts: 7
Joined: Sunday 11 December 2016 20:54
Target OS: Linux
Domoticz version: 3.6044
Location: Sweden
Contact:

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

Post 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...
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

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

Post 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?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest