[SOLVED] Config Z-Wave Stick on RaspPi

Hey all,

Running OH2.3 on a Raspberry Pi via Openhabian and also have an OH2.3 instance my desktop running Ubuntu 16.04

I recently bought a HomeSeer SmartStick+ Z-Wave USB Stick to start using some Z-Wave sensors.

When plug it into my my desktop it gets recognized right away and assigned to /dev/ttyACM0

[609107.176358] usb 7-1: new full-speed USB device number 5 using ohci-pci
[609107.346927] usb 7-1: New USB device found, idVendor=0658, idProduct=0200
[609107.346935] usb 7-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[609107.346941] usb 7-1: SerialNumber: 01FFFFFF-FFFF-FFFF-FFFF-160517121638
[609107.355678] cdc_acm 7-1:1.0: ttyACM0: USB ACM device

I was able to to use PaperUI to easily add it to OH by installing the binding, adding it as a thing and successfully paired my first device: an Aeotec recessed door sensor. All works great and I can see the device open/closed state as well as the battery level!

The issue I am having is that my main OH system is running on my Raspberry Pi. When I plug this same Z-Wave stick into that box, the OS sees it, but doesn’t assign it a device.

[13295540.100846] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[13295540.236016] usb 1-1.2: New USB device found, idVendor=0658, idProduct=0200
[13295540.236033] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[13295540.236042] usb 1-1.2: SerialNumber: 01FFFFFF-FFFF-FFFF-FFFF-160517121638

It looks like the cdc_acm kermodule is not installed on Openhabian that is running on this Raspberry Pi.

[17:02:31] openhabian@OrbitalPi:~$ modinfo cdc_acm
libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/4.14.34-v7+/modules.dep.bin'
modinfo: ERROR: Module alias cdc_acm not found.

I’ve been googling around, but cannot find any answers on how to get the cdc_acm kernel module installed on openhabian or if there is some other driver that I need for that system. Can anyone shed some light on this?

that’s strange… openHABian is just scripts on top of Raspbian which comes with cdc_acm built in.
Did you recently upgrade your kernel on the rPi?

try: sudo depmod and if this doesn’t work correctly, restart your rPi

Hey that was it!

[17:17:49] openhabian@OrbitalPi:/etc/openhab2/sitemaps$ sudo depmod
[sudo] password for openhabian: 
depmod: ERROR: could not open directory /lib/modules/4.14.34-v7+: No such file or directory
depmod: FATAL: could not search modules: No such file or directory

Rebooted and now the KM loads automagically when the USB is inserted.

[  610.145680] usb 1-1.4: new full-speed USB device number 6 using dwc_otg
[  610.280759] usb 1-1.4: New USB device found, idVendor=0658, idProduct=0200
[  610.280776] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  610.280785] usb 1-1.4: SerialNumber: 01FFFFFF-FFFF-FFFF-FFFF-160517121638
[  610.391341] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
[  610.392347] usbcore: registered new interface driver cdc_acm
[  610.392353] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

Thanks for your help - that would probably have never occurred to me!

1 Like

depmod did nothing
the reboot fixed your issue
most likely you upgraded recently your kernel and you needed the reboot to load it up :slight_smile: