Aeon Labs USB stick with Ubuntu

2,916 views
Skip to first unread message

Joshua Pond

unread,
Jul 2, 2014, 4:42:56 PM7/2/14
to ope...@googlegroups.com
Hi All,

I'm assuming some here have used the the Aeon labs z wave stick with Ubuntu?

I'm having trouble getting it running, Initially in Ubuntu Server VM (Running ESXi), I complied the needed modules (cp210x and usbserial) but was getting the same error messages I'm getting now. I thought maybe my compiling was wrong so I've also tried it under Ubuntu Desktop with the full kernel.

dmesg shows:

[    5.230935] usbcore: registered new interface driver usbserial
[    5.230959] usbcore: registered new interface driver usbserial_generic
[    5.230980] usbserial: USB Serial support registered for generic
[    5.246311] usbcore: registered new interface driver cp210x
[    5.246338] usbserial: USB Serial support registered for cp210x
[    5.246364] cp210x 2-2.1:1.0: cp210x converter detected
[    5.687554] input: VMware VMware Virtual USB Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb2/2-1/2-1:1.0/input/input4
[    5.687904] hid-generic 0003:0E0F:0003.0001: input,hidraw0: USB HID v1.10 Mouse [VMware VMware Virtual USB Mouse] on usb-0000:02:01.0-1/input0
[    5.690057] input: VMware VMware Virtual USB Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb2/2-1/2-1:1.1/input/input5
[    5.690185] hid-generic 0003:0E0F:0003.0002: input,hidraw1: USB HID v1.10 Mouse [VMware VMware Virtual USB Mouse] on usb-0000:02:01.0-1/input1
[    5.768759] usb 2-2.1: reset full-speed USB device number 4 using uhci_hcd
[    6.213561] usb 2-2.1: cp210x converter now attached to ttyUSB0

running ./start_debug.sh i get these z wave logs:

06:23:51.099 INFO  o.o.c.s.AbstractActiveService[:169] - ZWave Refresh Service has been started
06:23:51.100 DEBUG o.o.b.z.i.ZWaveActiveBinding[:98] - Zwave Network isn't ready yet!
06:23:51.110 INFO  o.o.b.z.i.p.ZWaveController[:136] - Starting Z-Wave controller
06:23:51.115 INFO  o.o.b.z.i.p.ZWaveController[:141] - Z-Wave timeout is set to 5000ms.
06:23:51.116 INFO  o.o.b.z.i.p.ZWaveController[:299] - Connecting to serial port /dev/ttyUSB0

06:25:08.801 INFO  runtime.busevents[:22] - ZwaveDevice received command ON
06:25:08.805 DEBUG o.o.b.z.i.ZWaveActiveBinding[:208] - internalReceiveCommand Called, But Not Properly Configure yet or Zwave Network Isn't Ready, returning.

I keep getting Network Isn't ready.

I've tried it under a Windows VM (Changing the openhab.cfg to COM3 instead of /dev/ttyUSB0) and it all works fine.

Any other ideas?

Thanks Josh

Ben Jones

unread,
Jul 2, 2014, 10:12:24 PM7/2/14
to ope...@googlegroups.com
Hi Joshua,

I am using the Aeon Labs USB Stick on Ubuntu 12.04 with no issues. It was 12 months ago that I first installed it so I can't recall exactly what I did, but from memory it just worked after plugging it in. I did have some permissions issues which others have experienced but that normally manifests itself by openHAB not being able to see the ZWave USB port at all. It looks like the binding is seeing it, but not getting any traffic from it.

Sorry, not much help, but you can be assured this stick does/can work with Ubuntu.

Ben

Steve Cliffe

unread,
Jul 2, 2014, 11:23:08 PM7/2/14
to ope...@googlegroups.com
Working fine for me too on 14.04 LTS. I didn't have to compile/install any modules - it just worked.

The cp210x module is part of the linux-image-extra package:

# dpkg-query -S /lib/modules/3.13.0-29-generic/kernel/drivers/usb/serial/cp210x.ko
linux-image-extra-3.13.0-29-generic: /lib/modules/3.13.0-29-generic/kernel/drivers/usb/serial/cp210x.ko


Steve.

Joshua Pond

unread,
Jul 3, 2014, 1:52:33 AM7/3/14
to ope...@googlegroups.com
Thanks Ben and Steve,

Are you running Desktop or Server edition?

I'll have to play around with it more to find out why, it works fine under a Windows VM so I know the stick and everything else works.

Thanks Josh

Ben Jones

unread,
Jul 3, 2014, 1:54:11 AM7/3/14
to ope...@googlegroups.com
Headless server.

Joshua Pond

unread,
Jul 3, 2014, 3:08:07 AM7/3/14
to ope...@googlegroups.com
Thanks Ben,

Are you running Desktop or Server version?

thanks Josh

Ben Jones

unread,
Jul 3, 2014, 3:12:12 AM7/3/14
to ope...@googlegroups.com

Server

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/VSckFNKBBKE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

Steve Cliffe

unread,
Jul 3, 2014, 6:25:51 AM7/3/14
to ope...@googlegroups.com
I'm running 14.04 LTS Desktop 64-bit.

Steve.

Joshua Pond

unread,
Jul 3, 2014, 8:47:01 AM7/3/14
to ope...@googlegroups.com
Okay, thanks for the info guys. Managed to get it working. 

For those who are interested of search this in future:

Ubuntu Server and Desktop 14.04 LTS has the modules preloaded. Ubuntu Server minimal install for VM doesn't, hence the need earlier to compile. It isn't really hard to do and can be compiled but not worth the hassle, just use standard Server install.

The issue ended up being a permissions issue with the ttyUSB0 as Ben mentioned.

I had to:

sudo adduser <user-you-want> dialout

Josh

Clayton Mc

unread,
Mar 11, 2015, 11:24:20 AM3/11/15
to ope...@googlegroups.com
Hi, I'm having a similar problem, but user in group did not fix.  I don't have a /dev/ttyUSB0, but do have a /dev/ttyS0, so that is what I added to my openhab.conf

Is there a way to officially determine what device it is bound to?



%lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

%dmesg
[ 2525.948021] usb 8-2: new full-speed USB device number 3 using uhci_hcd
[ 2526.320032] usb 8-2: New USB device found, idVendor=10c4, idProduct=ea60
[ 2526.320036] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2526.320039] usb 8-2: Product: CP2102 USB to UART Bridge Controller
[ 2526.320041] usb 8-2: Manufacturer: Silicon Labs
[ 2526.320044] usb 8-2: SerialNumber: 0001


%sudo ./start.sh

11:22:19.017 [DEBUG] [.zwave.internal.ZWaveActivator:36   ] - Z-Wave binding has been started.
11:22:19.029 [INFO ] [.z.internal.ZWaveActiveBinding:306  ] - Update config, port = /dev/ttyS0
11:22:19.039 [INFO ] [.service.AbstractActiveService:169  ] - ZWave Refresh Service has been started
11:22:19.040 [DEBUG] [.z.internal.ZWaveActiveBinding:99   ] - Zwave Network isn't ready yet!
11:22:19.055 [INFO ] [b.z.i.protocol.ZWaveController:142  ] - Starting Z-Wave controller
11:22:19.055 [INFO ] [b.z.i.protocol.ZWaveController:147  ] - Z-Wave timeout is set to 5000ms.
11:22:19.055 [INFO ] [b.z.i.protocol.ZWaveController:376  ] - Connecting to serial port /dev/ttyS0
11:22:19.080 [DEBUG] [eController$ZWaveReceiveThread:1189 ] - Starting Z-Wave receive thread
11:22:19.081 [INFO ] [b.z.i.protocol.ZWaveController:389  ] - Serial port is initialized
11:22:19.081 [DEBUG] [WaveController$ZWaveSendThread:1042 ] - Starting Z-Wave send thread
11:22:19.112 [DEBUG] [o.b.z.i.protocol.SerialMessage:108  ] - NODE 255: Creating empty message of class = GetVersion (0x15), type = Request (0x00)
11:22:19.113 [DEBUG] [WaveController$ZWaveSendThread:1048 ] - Took message from queue for sending. Queue length = 0

I also keep getting Network Isn't ready.

It almost appears I'm not binding to the correct device..  
Reply all
Reply to author
Forward
0 new messages