Cannot find location of Aeon USB Stick

I’ve got an Aeon labs Gen5 stick, and I’ve been trying to figure out what port this puppy is on to no avail. Build is ubuntu 15.10

I’ve tried:

/dev/ttyACM0
/dev/ttyUSB0
/dev/ttyS0
/dev/ttyAMA0

In every instance, I get the same error:

2016-01-27 22:17:43.414 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyAMA0
2016-01-27 22:17:43.516 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyAMA0 does not exist

config

zwave:port=/dev/ttyAMA0
zwave:healtime=2

How do I find out where my USB is?

lsusb

xxxx@xxxxx:~$ lsusb
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 0658:0200 Sigma Designs, Inc.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0c45:6300 Microdia PC Microscope camera
Bus 003 Device 005: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 004: ID 05ac:0220 Apple, Inc. Aluminum Keyboard (ANSI)
Bus 003 Device 002: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ls /dev/tty*

one time with and one time without stick and see the difference…

1 Like

Based on that, it’s pretty clear where the USB is, wonder why it cannot find it?
With:

xxxxxx@xxxxx:~$ ls /dev/tty*
/dev/tty /dev/tty23 /dev/tty39 /dev/tty54 /dev/ttyS1 /dev/ttyS25
/dev/tty0 /dev/tty24 /dev/tty4 /dev/tty55 /dev/ttyS10 /dev/ttyS26
/dev/tty1 /dev/tty25 /dev/tty40 /dev/tty56 /dev/ttyS11 /dev/ttyS27
/dev/tty10 /dev/tty26 /dev/tty41 /dev/tty57 /dev/ttyS12 /dev/ttyS28
/dev/tty11 /dev/tty27 /dev/tty42 /dev/tty58 /dev/ttyS13 /dev/ttyS29
/dev/tty12 /dev/tty28 /dev/tty43 /dev/tty59 /dev/ttyS14 /dev/ttyS3
/dev/tty13 /dev/tty29 /dev/tty44 /dev/tty6 /dev/ttyS15 /dev/ttyS30
/dev/tty14 /dev/tty3 /dev/tty45 /dev/tty60 /dev/ttyS16 /dev/ttyS31
/dev/tty15 /dev/tty30 /dev/tty46 /dev/tty61 /dev/ttyS17 /dev/ttyS4
/dev/tty16 /dev/tty31 /dev/tty47 /dev/tty62 /dev/ttyS18 /dev/ttyS5
/dev/tty17 /dev/tty32 /dev/tty48 /dev/tty63 /dev/ttyS19 /dev/ttyS6
/dev/tty18 /dev/tty33 /dev/tty49 /dev/tty7 /dev/ttyS2 /dev/ttyS7
/dev/tty19 /dev/tty34 /dev/tty5 /dev/tty8 /dev/ttyS20 /dev/ttyS8
/dev/tty2 /dev/tty35 /dev/tty50 /dev/tty9 /dev/ttyS21 /dev/ttyS9
/dev/tty20 /dev/tty36 /dev/tty51 /dev/ttyACM0 /dev/ttyS22
/dev/tty21 /dev/tty37 /dev/tty52 /dev/ttyprintk /dev/ttyS23
/dev/tty22 /dev/tty38 /dev/tty53 /dev/ttyS0 /dev/ttyS24

Without:

xxxxxx@xxxxxx:~$ ls /dev/tty*
/dev/tty /dev/tty23 /dev/tty39 /dev/tty54 /dev/ttyS10 /dev/ttyS26
/dev/tty0 /dev/tty24 /dev/tty4 /dev/tty55 /dev/ttyS11 /dev/ttyS27
/dev/tty1 /dev/tty25 /dev/tty40 /dev/tty56 /dev/ttyS12 /dev/ttyS28
/dev/tty10 /dev/tty26 /dev/tty41 /dev/tty57 /dev/ttyS13 /dev/ttyS29
/dev/tty11 /dev/tty27 /dev/tty42 /dev/tty58 /dev/ttyS14 /dev/ttyS3
/dev/tty12 /dev/tty28 /dev/tty43 /dev/tty59 /dev/ttyS15 /dev/ttyS30
/dev/tty13 /dev/tty29 /dev/tty44 /dev/tty6 /dev/ttyS16 /dev/ttyS31
/dev/tty14 /dev/tty3 /dev/tty45 /dev/tty60 /dev/ttyS17 /dev/ttyS4
/dev/tty15 /dev/tty30 /dev/tty46 /dev/tty61 /dev/ttyS18 /dev/ttyS5
/dev/tty16 /dev/tty31 /dev/tty47 /dev/tty62 /dev/ttyS19 /dev/ttyS6
/dev/tty17 /dev/tty32 /dev/tty48 /dev/tty63 /dev/ttyS2 /dev/ttyS7
/dev/tty18 /dev/tty33 /dev/tty49 /dev/tty7 /dev/ttyS20 /dev/ttyS8
/dev/tty19 /dev/tty34 /dev/tty5 /dev/tty8 /dev/ttyS21 /dev/ttyS9
/dev/tty2 /dev/tty35 /dev/tty50 /dev/tty9 /dev/ttyS22
/dev/tty20 /dev/tty36 /dev/tty51 /dev/ttyprintk /dev/ttyS23
/dev/tty21 /dev/tty37 /dev/tty52 /dev/ttyS0 /dev/ttyS24
/dev/tty22 /dev/tty38 /dev/tty53 /dev/ttyS1 /dev/ttyS25

I just put that in config and restarted the server

2016-01-27 22:49:10.277 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyACM0 does not exist

dialout is set?

sudo usermod -a -G dialout openhab

1 Like

By the way, please excuse my rudeness earlier. Thank you for responding with ideas to help resolve this issue.

I just ran it again to verify

2016-01-27 23:01:55.998 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
2016-01-27 23:01:55.998 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2016-01-27 23:01:56.003 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2016-01-27 23:01:56.032 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-27 23:01:56.036 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-27 23:01:56.037 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2016-01-27 23:01:56.202 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyACM0 does not exist

take a look:

https://community.openhab.org/t/port-dev-ttyama0-does-not-exist/5975

I just rebooted after running the dialout command. I ran the command from the other thread:

xxxxxx@xxxxxx:~$ ls -la /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 Jan 27 23:05 /dev/ttyACM0

xxxxxx@xxxxxx:~$ ls -la /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Jan 27 23:05 /dev/ttyS0

I ran the commands recommended in the other article, rebooted, and still no joy

2016-01-27 23:21:50.537 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
2016-01-27 23:21:50.538 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2016-01-27 23:21:50.543 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2016-01-27 23:21:50.578 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-27 23:21:50.583 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-27 23:21:50.584 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2016-01-27 23:21:50.657 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyACM0 does not exist
2016-01-27 23:21:50.997 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized

I also ran the lsmod just in case it would be helpful

xxxxxx@xxxxxx:~$ lsmod
Module Size Used by
ir_xmp_decoder 16384 0
ir_lirc_codec 16384 0
lirc_dev 20480 1 ir_lirc_codec
ir_mce_kbd_decoder 16384 0
ir_sharp_decoder 16384 0
ir_sanyo_decoder 16384 0
ir_sony_decoder 16384 0
ir_jvc_decoder 16384 0
ir_rc6_decoder 16384 0
ir_nec_decoder 16384 0
ir_rc5_decoder 16384 0
rc_hauppauge 16384 0
s5h1411 20480 1
binfmt_misc 20480 1
cx25840 143360 1
snd_hda_codec_realtek 86016 1
snd_hda_codec_generic 77824 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 49152 1
cx23885 172032 1
altera_ci 20480 1 cx23885
snd_hda_intel 36864 7
tda18271 49152 2 cx23885
snd_hda_codec 135168 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
altera_stapl 36864 1 cx23885
videobuf2_dvb 16384 1 cx23885
snd_hda_core 65536 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
m88ds3103 28672 1 cx23885
uvcvideo 90112 0
cx2341x 28672 1 cx23885
cdc_acm 36864 0
snd_hwdep 16384 1 snd_hda_codec
rc_core 28672 14 ir_sharp_decoder,ir_xmp_decoder,lirc_dev,cx23885,ir_lirc_codec,rc_hauppauge,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder
i2c_mux 16384 1 m88ds3103
snd_seq_midi 16384 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_dma_sg 20480 1 cx23885
saa7164 126976 0
snd_seq_midi_event 16384 1 snd_seq_midi
videobuf2_memops 16384 2 videobuf2_vmalloc,videobuf2_dma_sg
videobuf2_core 49152 3 cx23885,uvcvideo,videobuf2_dvb
tveeprom 24576 2 cx23885,saa7164
snd_rawmidi 32768 1 snd_seq_midi
input_leds 16384 0
kvm 512000 0
snd_pcm 106496 6 cx23885,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_seq 69632 2 snd_seq_midi_event,snd_seq_midi
dvb_core 122880 5 cx23885,saa7164,altera_ci,m88ds3103,videobuf2_dvb
k10temp 16384 0
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
v4l2_common 16384 5 cx2341x,cx23885,cx25840,saa7164,videobuf2_core
edac_core 53248 0
serio_raw 16384 0
videodev 172032 7 cx2341x,cx23885,cx25840,saa7164,uvcvideo,v4l2_common,videobuf2_core
edac_mce_amd 24576 0
snd_timer 32768 2 snd_pcm,snd_seq
i2c_piix4 24576 0
media 24576 3 cx25840,uvcvideo,videodev
snd 81920 27 snd_hda_codec_realtek,cx23885,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore 16384 1 snd
shpchp 36864 0
8250_fintek 16384 0
mac_hid 16384 0
ip6t_REJECT 16384 1
nf_reject_ipv6 16384 1 ip6t_REJECT
nf_log_ipv6 16384 5
xt_hl 16384 22
ip6t_rt 16384 3
nf_conntrack_ipv6 20480 8
nf_defrag_ipv6 36864 1 nf_conntrack_ipv6
ipt_REJECT 16384 1
nf_reject_ipv4 16384 1 ipt_REJECT
nf_log_ipv4 16384 5
nf_log_common 16384 2 nf_log_ipv4,nf_log_ipv6
xt_LOG 16384 10
xt_multiport 16384 8
xt_limit 16384 13
xt_tcpudp 16384 58
xt_addrtype 16384 4
nf_conntrack_ipv4 16384 8
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_conntrack 16384 16
ip6table_filter 16384 1
ip6_tables 28672 1 ip6table_filter
nf_conntrack_netbios_ns 16384 0
nf_conntrack_broadcast 16384 1 nf_conntrack_netbios_ns
nf_nat_ftp 16384 0
nf_nat 28672 1 nf_nat_ftp
nf_conntrack_ftp 20480 1 nf_nat_ftp
nf_conntrack 106496 8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter 16384 1
ip_tables 28672 1 iptable_filter
x_tables 36864 14 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,xt_multiport,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 49152 3 lp,ppdev,parport_pc
autofs4 40960 2
raid10 49152 0
raid456 94208 0
async_raid6_recov 20480 1 raid456
async_memcpy 16384 2 raid456,async_raid6_recov
async_pq 16384 2 raid456,async_raid6_recov
async_xor 16384 3 async_pq,raid456,async_raid6_recov
async_tx 16384 5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
xor 24576 1 async_xor
raid6_pq 102400 3 async_pq,raid456,async_raid6_recov
raid0 20480 0
multipath 16384 0
linear 16384 0
hid_apple 16384 0
hid_generic 16384 0
usbhid 49152 0
hid 118784 3 hid_generic,usbhid,hid_apple
raid1 36864 1
pata_acpi 16384 0
amdkfd 122880 1
amd_iommu_v2 20480 1 amdkfd
radeon 1519616 5
psmouse 126976 0
firewire_ohci 40960 0
i2c_algo_bit 16384 1 radeon
firewire_core 65536 1 firewire_ohci
ttm 94208 1 radeon
crc_itu_t 16384 1 firewire_core
pata_atiixp 16384 1
drm_kms_helper 126976 1 radeon
r8169 81920 0
drm 356352 8 ttm,drm_kms_helper,radeon
mii 16384 1 r8169
ahci 36864 4
libahci 32768 1 ahci
wmi 20480 0

For giggles I tried a few different USB ports on my machine to eliminate hardware as the culprit. All gave the same response,

2016-01-28 11:18:21.696 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
2016-01-28 11:18:21.699 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2016-01-28 11:18:21.710 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2016-01-28 11:18:21.743 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-28 11:18:21.746 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-28 11:18:21.747 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2016-01-28 11:18:21.792 [INFO ] [.b.plex.internal.PlexConnector] - Plex websocket connected to 192.168.1.39:32400
2016-01-28 11:18:21.848 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyACM0 does not exist

The one thing you haven’t said that you have tried is doing what @OCB73 suggested and adding the openhab user to the dialout group.

That error could indicate that the device isn’t there OR that OH does not have permission to read/write it. 99% of the time it is a permission problem.

Where is the problem, or let my say it in another way…

why is the dialout group under point 11 in the official openhab wiki, linux installation?

If you wish to use a USB zwave stick or other USB/serial device you will need to add the “openhab” users to the “dialout” group:

sudo usermod -a -G dialout openhab

and then reboot.

This part belongs to the apt-get install:
the install script creates a linux user openhab under which oh runs (far better than using the root account).
This user needs to be in the dialout group because the dialout group has access to the usb stick …

Actually @rlkoshak, I did say that, two posts up, in the first line.

further:

xxxxxx@xxxxxx:~$ groups openhab
openhab : openhab tty dialout

I don´t know if i am right, cause reading a lot of forumposts in the last days/weeks.

Isn´t here a post in the beginners forum, talking about problems under ubuntu and
installing debian, working like a charm with z-wave usb-stick?

I found this, adding this line fixed it!!

Continuing the discussion from Z-Wave again:

I assuming it is a permissions issue…

Do a “ls -l /dev/ttyAMA0”

It might say “root tty” and not “root dialout”

IF so, then add openhab to the tty group, too. (same command just change dialout to tty)

Also, I add this the following line to /etc/init.d/openhab and to /usr/share/openhab/bin/openhab.sh

"-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 "

right after “-Dosgi.noShutdown=true”

Logs…

2016-01-28 13:10:26.039 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
2016-01-28 13:10:26.040 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, healtime = 2
2016-01-28 13:10:26.040 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, setSUC = true
2016-01-28 13:10:26.040 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, softReset = false
2016-01-28 13:10:26.040 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, masterController = true
2016-01-28 13:10:26.047 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2016-01-28 13:10:26.095 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-28 13:10:26.099 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-28 13:10:26.099 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2016-01-28 13:10:26.114 [INFO ] [.b.plex.internal.PlexConnector] - Plex websocket connected to 192.168.1.39:32400
2016-01-28 13:10:26.205 [INFO ] [b.z.i.protocol.ZWaveController] - Serial port is initialized
2016-01-28 13:10:29.378 [INFO ] [rialApiGetInitDataMessageClass] - NODE 1: Node found

1 Like

cool…:grinning::ok_hand:

Another thing that you might need to do:
rm /var/lock/LCK…ttyAMA0

I’m running openhab 2 on raspbian raspberry pi. Solution that @asujosh1 worked for me. I added openhab user to both tty and dialout group. Here are the commands
usermod -a -G dialout openhab
usermod -a -G tty openhab
I noticed that I was still getting serial port error after running those commands, so I restarted openhab and it worked like a charm!

Did you need to do anything else aside from adding these users?

I have done the same (as well as explored numerous other avenues) but no dice. Much of the other information I am finding here re: configuration for this z-wave stick seems pertinent only to openhab v.1 so if you able to share your process from the beginning it would be enormously helpful.

In the Paper UI I get “Status: OFFLINE - BRIDGE_OFFLINE Controller is offline” for Z-Wave Serial Controller - Z-Wave USB Stick with Serial Interface but no joy.

From my logs:

2017-11-11 15:35:05.082 [ItemChannelLinkAddedEvent ] - Link 'zwave_serial_zstick_5900b29b_serial_sof-zwave:serial_zstick:5900b29b:serial_sof' has been added.
2017-11-11 15:35:05.086 [ItemChannelLinkAddedEvent ] - Link 'zwave_serial_zstick_5900b29b_serial_ack-zwave:serial_zstick:5900b29b:serial_ack' has been added.


2017-11-11 15:35:05.109 [ItemChannelLinkAddedEvent ] - Link 'zwave_serial_zstick_5900b29b_serial_can-zwave:serial_zstick:5900b29b:serial_can' has been added.

2017-11-11 15:35:05.411 [ThingAddedEvent           ] - Thing 'zwave:serial_zstick:5900b29b' has been added.

2017-11-11 15:35:14.466 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:5900b29b' changed from UNINITIALIZED to INITIALIZING
2017-11-11 15:35:14.468 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:5900b29b' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline