ZWAVE & CUL not working in parallel after kernel/firmware update 4.9.59

Begonnen von rene.grohmann, 31 Oktober 2017, 14:12:26

Vorheriges Thema - Nächstes Thema

rene.grohmann

Hi community,

my configuration for CUL and ZWAVE @ FHEM/PI
   
CUL@USB /dev/ttyACM0@38400
ZWAVE@USB /dev/ttyACM1@115200
(everything fine until firmeware 4.9.58)

I  installed firmware update 4.9.59 at 29th october 2017 and getting following errors

zwave & cul (both plugged-in @ reboot): zwave = initialized but no readings, timeout; CUL = opened, no FD

I found a post from 2016 and tried some modifications @ boot

Only zwave usb adapter @ reboot = disconnected
Add CUL  @ runtime = opened, but no answer

Only CUL usb adapter @ reboot = initialized, everything ffine
Add zwave @ runtime = initialized, everything fine

Seems, that there is an issue to the actual firmware version.
Any hints to solve the issue.

Thanks in advace!





rudolfkoenig

What do you mean by "ZWAVE@USB"?
Can you please paste the FHEM definitions?
Which firmware do you mean by 4.9.59?
Can you please show us the output of "lsusb" and "ls -l /dev/ttyACM*" ?

I suppose, that after the reboot de /dev/ttyACM devices are reversed.
In this case it is better to use the file pointed to by /dev/ttyACM*

rene.grohmann

Hi Rudolf,

many thanks for your fast response!

Firmware as follows:
https://github.com/raspberrypi/firmware/commits/master
(installed by "sudo rpi-udate")

pi@raspberrypi:~ $ lsusb
Bus 001 Device 005: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 009: ID 0658:0200 Sigma Designs, Inc.
Bus 001 Device 004: ID 0781:5583 SanDisk Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


pi@raspberrypi:~ $ ls -l /dev/ttyACM*
crw-rw---- 1 root dialout 166, 0 Oct 31 14:14 /dev/ttyACM0
crw-rw---- 1 root dialout 166, 1 Oct 31 14:24 /dev/ttyACM1

CUL1 definition
/dev/ttyACM0@38400 xxxx

ZWAVE definition
/dev/ttyACM1@115200

As written, everything fine until last firmware update :-(

Br,
René






rudolfkoenig

Second try: check the output of "ls -l /dev/serial/by-*". I expect, that you find a file with "usb-busware.de_CUL868-if00" in /dev/serial/by-id, and it is pointing to ttyACM1. In this case I propose to exchange /dev/ttyACM1 with /dev/serial/by-id/usb-busware.de_CUL868-if00, and the definition for ZWAVE (I hope it is ZWDongle) with the other one.

rene.grohmann

Hi Rudolf,

great hint!

After changing the definitions as follows, zwave dongle and cul are working again.
/dev/serial/by-id/usb-busware.de_CUL868-if00@38400   
/dev/serial/by-id/usb-0658_0200-if00@115200

Thanks and regards,
René