Unablel to make Zwave USB Stick work (ZME_UZB1)

Hi everybody,
after 2 days of playing around with my raspberry pi and openhab I received the Zwave USB stick.
Unfortunately I am not able to make that one work. Openhab ist installed, habmin and the iPhone App. So far the dry runs where working. Now to the problem with the stick.

The stick shows up in the lsusb as Device 13
pi@raspberrypi:/opt $ lsusb Bus 001 Device 013: ID 0658:0200 Sigma Designs, Inc. 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. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg -c looks ok to me as well

[ 4021.775595] usb 1-1.2: new full-speed USB device number 13 using dwc_otg
[ 4021.880865] usb 1-1.2: New USB device found, idVendor=0658, idProduct=0200
[ 4021.880891] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[ 4021.880909] usb 1-1.2: SerialNumber: 12345678-9012-3456-7890-123456789012

Unfortunately the device does not show up as /dev/ttyACM0

pi@raspberrypi:/opt $ ls -la /dev/ttyA*
crw–w---- 1 root tty 204, 64 Dec 18 14:17 /dev/ttyAMA0

Here is the tail when I start openhab

2015-12-19 13:10:05.737 [WARN ] [.o.c.p.e.PersistenceExtensions] - There is no queryable persistence service registered with the name ‘rrd4j’
2015-12-19 13:10:09.649 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2015-12-19 13:10:10.055 [INFO ] [.service.AbstractActiveService] - HTTP Refresh Service has been started
2015-12-19 13:10:10.876 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyAMA0
2015-12-19 13:10:10.878 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2015-12-19 13:10:10.883 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2015-12-19 13:10:10.986 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2015-12-19 13:10:10.987 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-12-19 13:10:10.989 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyAMA0
2015-12-19 13:10:11.463 [INFO ] [g.openhab.model.script.Weather] - Temperature evolved of null degrees.
2015-12-19 13:10:11.468 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘Compute humidex’: Cannot cast org.openhab.core.types.UnDefType to org.openhab.core.library.types.DecimalType
2015-12-19 13:10:16.723 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyAMA0 does not exist
2015-12-19 13:10:21.696 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been shut down

Here is the zwave.log

2015-12-19 13:28:34.293 [DEBUG] [.zwave.internal.ZWaveActivator:36 ]- Z-Wave binding started. Version 1.8.0.201508211938
2015-12-19 13:28:34.423 [DEBUG] [.z.internal.ZWaveActiveBinding:175 ]- ConverterHandler not initialised. Polling disabled.
2015-12-19 13:28:34.432 [INFO ] [.z.internal.ZWaveActiveBinding:325 ]- Update config, port = /dev/ttyAMA0
2015-12-19 13:28:34.436 [INFO ] [.z.internal.ZWaveActiveBinding:330 ]- Update config, healtime = 2
2015-12-19 13:28:34.439 [DEBUG] [.z.internal.ZWaveActiveBinding:282 ]- Initialising zwave binding
2015-12-19 13:28:34.539 [INFO ] [b.z.i.protocol.ZWaveController:146 ]- Starting Z-Wave controller
2015-12-19 13:28:34.541 [INFO ] [b.z.i.protocol.ZWaveController:154 ]- Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-12-19 13:28:34.542 [INFO ] [b.z.i.protocol.ZWaveController:320 ]- Connecting to serial port /dev/ttyAMA0
2015-12-19 13:28:34.644 [ERROR] [b.z.i.protocol.ZWaveController:342 ]- Serial Error: Port /dev/ttyAMA0 does not exist

Btw. I added the openhab user to dial out.

Any suggestions what I missed or what I could do next?

Thanks for your support!

To ensure that permissions really are set correctly, try running OH as root user - ie use the sudo command in front of the OH start script…

I am starting with
sudo service openhab restart
Is that what you meant?

Sort of…

Given that you’re running as a service, I’m not 100% sure what user is actually being used - it probably is root, but if you run top, that should list the processes and it will show you the user being used.

It probably is root though, so I’m not sure why the stick wouldn’t work… (sorry).

Thanks chris, looks like it is running as openhab. How will I start as root?

3403 openhab   20   0  387976 114780  12364 S   2.6 11.5   1:09.73 java                                                                                                                         
 1039 openhab   20   0   36236  13844  11824 S   1.3  1.4   0:48.69 smbd                                                                                                                         
 3617 pi        20   0    5092   2480   2124 R   1.0  0.2   0:00.35 top                                                                                                                          
  750 pi        20   0   79552  21588  18388 S   0.3  2.2   0:15.14 lxpanel                                                                                                                      
    1 root      20   0    5332   3884   2788 S   0.0  0.4   0:06.01 systemd                                                                                                                      
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd                                                                                                                     
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.89 ksoftirqd/0                                                                                                                  
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                                                 
    6 root      20   0       0      0      0 S   0.0  0.0   0:00.74 kworker/u8:0                                                                                                                 
    7 root      20   0       0      0      0 S   0.0  0.0   0:02.26 rcu_sched                                                                                                                    
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                                                       
    9 root      rt   0       0      0      0 S   0.0  0.0   0:00.01 migration/0                                                                                                                  
   10 root      rt   0       0      0      0 S   0.0  0.0   0:00.03 migration/1                                                                                                                  
   11 root      20   0       0      0      0 S   0.0  0.0   0:00.04 ksoftirqd/1                                                                                                                  
   13 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                                                 
   14 root      rt   0       0      0      0 S   0.0  0.0   0:00.01 migration/2                                                                                                                  
   15 root      20   0       0      0      0 S   0.0  0.0   0:00.05 ksoftirqd/2                                                                                                                  
   17 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/2:0H

I think the solution is to amend the permissions of the user openhab rather than run as root. However I don’t know what permissions are required.

I ran this command to add openhab user to the group dial out.

sudo usermod -a -G dialout openhab

less /etc/group will show this
dialout:x:20:pi,openhab

Agreed - my suggest of running as root was as a diagnostic tool… I would do what @blackstar511 suggests…

Anyone any ideas? btw. do I need a license key to operate the stick?

Try running as root. Stop the service, and run OH manually using the start script in the OH folder, and put “sudo” at the beginning.

No.

If nothing helped so far, use a good power supply for the Pi with at least 2 A.
Maybe you have a tablet, they usually have 2A power supplies …

Good luck.

Does it show up as /dev/ttyUSB0?

Hi Kyb,

here is the full tty list. I can not find or identify the stick.

/dev/tty /dev/tty12 /dev/tty17 /dev/tty21 /dev/tty26 /dev/tty30 /dev/tty35 /dev/tty4 /dev/tty44 /dev/tty49 /dev/tty53 /dev/tty58 /dev/tty62 /dev/ttyAMA0 /dev/tty0 /dev/tty13 /dev/tty18 /dev/tty22 /dev/tty27 /dev/tty31 /dev/tty36 /dev/tty40 /dev/tty45 /dev/tty5 /dev/tty54 /dev/tty59 /dev/tty63 /dev/ttyprintk /dev/tty1 /dev/tty14 /dev/tty19 /dev/tty23 /dev/tty28 /dev/tty32 /dev/tty37 /dev/tty41 /dev/tty46 /dev/tty50 /dev/tty55 /dev/tty6 /dev/tty7 /dev/tty10 /dev/tty15 /dev/tty2 /dev/tty24 /dev/tty29 /dev/tty33 /dev/tty38 /dev/tty42 /dev/tty47 /dev/tty51 /dev/tty56 /dev/tty60 /dev/tty8 /dev/tty11 /dev/tty16 /dev/tty20 /dev/tty25 /dev/tty3 /dev/tty34 /dev/tty39 /dev/tty43 /dev/tty48 /dev/tty52 /dev/tty57 /dev/tty61 /dev/tty9 pi@raspberrypi:~ $

sihui, I am already using a 2A power supply. Even exchanged that for 2 others to try out. Thanks anyways.

Have you tried running as root as I suggested? This would help narrow the problem down as you’d know if it’s a permission issue or not.

Thats strange. I use the same stick and it shows up as /dev/ttyACM0. Do you have another Computer where you can test, if the stick is recognized there?

Okay, first try the other steps suggested, if you still can’t find the port, do this:

type dmesg on the console,
take a look at the output and find
USB ACM device
to the left of this there should be the port, in my case /dev/ttyACM0:
[ 5.793385] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device

Second approach: grab the timestamps of all your tty* devices, usually the z-wave controller has the newest timestamp from the last reboot (that is my “dummy” approach)

Good luck.

Yes, I fully set-up openhab on my macbook and I got the stick to work there. It is really strange that it is not coming up in the raspberry. I will start with a new installation on the RPi2 again.

sihui, can you make sense out of this?

2.955689] usb 1-1.5: new full-speed USB device number 4 using dwc_otg [ 3.055685] usb 1-1.5: device descriptor read/64, error -32 [ 3.245683] usb 1-1.5: device descriptor read/64, error -32 [ 3.435686] usb 1-1.5: new full-speed USB device number 5 using dwc_otg [ 3.535681] usb 1-1.5: device descriptor read/64, error -32 [ 3.725684] usb 1-1.5: device descriptor read/64, error -32 [ 3.915688] usb 1-1.5: new full-speed USB device number 6 using dwc_otg [ 4.335683] usb 1-1.5: device not accepting address 6, error -32 [ 4.615687] usb 1-1.5: new full-speed USB device number 8 using dwc_otg [ 4.740814] usb 1-1.5: New USB device found, idVendor=0658, idProduct=0200 [ 4.749371] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=1 [ 4.758325] usb 1-1.5: SerialNumber: 12345678-9012-3456-7890-123456789012

[quote=“blackstar511, post:19, topic:5198, full:true”]
sihui, can you make sense out of this?[/quote]

Nope, not at all, but I can tell you I have the same messages and my stick (also a ZME_UZB1) is working fine …

[    2.945748] usb 1-1.5: new full-speed USB device number 4 using dwc_otg
[    3.035736] usb 1-1.5: device descriptor read/64, error -32
[    3.225770] usb 1-1.5: device descriptor read/64, error -32
[    3.445736] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[    3.555718] usb 1-1.5: device descriptor read/64, error -32
[    3.775716] usb 1-1.5: device descriptor read/64, error -32
[    3.985725] usb 1-1.5: new full-speed USB device number 6 using dwc_otg
[    4.790969] usb 1-1.5: New USB device found, idVendor=0658, idProduct=0200
[    4.790983] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[    4.790993] usb 1-1.5: SerialNumber: 12345678-9012-3456-7890-123456789012

So it still could be a permission error, so try what @chris suggested and run with root.