[SOLVED] Z-wave binding serial port location

Tags: #<Tag:0x00007efec4ab5670>

hi all,

installed openhab2 no problem…using a aeon labs gen 5 USB stick to connect to a z-wave network. the problem is that i have added the z-wave binding but i cannot find the usb port(serial port) to connect to it. tried everything…can somebody point me in the right direction???

many thanks Tony

This is system dependant, so it will depend on how your OS works. If this is a linux, or mac based system, then ls /dev/tty* will list all the serial ports.

Hi chris,

Raspberry PI 2 linux latest version Jessie…will try that command and see what is shown

cheers tony

Its listing about 70…this could take a while…lol

Remove the stick, list the ports, add the stick, then list them again and pick the new one.

1 Like

Tried that, identified the port as /dev/ttyAMA0 but still no comms, a bit strange, I know the stick works

comming up with Status: OFFLINE - COMMUNICATION_ERROR Serial Error: Port /dev/ttyAMA0 does not exist

very strange when the port is definetly correct

You need to make sure that the openhab user has permission to read/write to /dev/ttyAMA0.

bingo!

not sure how but now showing online…tried that many commands not sure which one worked but it is something to do with permissions and the build which downloaded from the openhab2 instuctions…now I will be not switching it off forever! lol

thanks for your help

cheers Tony

How to do that???

What OS and hardware?

Hardware:
Raspberry Pi Zero W
HP 4-port usb 2.0 hub
Z-stick Gen56

Software: The provided image by Openhabian (based on the Raspbian Lite standard) system.
Permissions for ttyAMA0 are: view: owner and group change content: owner and group execute: nobody
After reboot it seems that the Z-wave stick is connected to ttyACM0 (same properties)

openHABian sets the permissions correctly for you. Run openhabian-config, go to 30 System Settings, 35 Serial Port, make sure that option 3 “Add common serial ports to openHAB JVM” is checked. Then go to 10 “Apply the latest improvements to the basic openHABian setup” and 14 “Fix Permissions” .

This will set all the permissions appropriately.

1 Like

Thanks for your answer.
My z-wave serial controller is ONLINE !!!

Hi
I have got my openhab all up and running fine on a 4mb Pi4, But (theres always one) I cannot get my Z-wave stick to be found or its serial port, giving the command < openhabian@openhab:~$ ls /dev/tty*> lists all including ttyAMA0
and /dev/ttyS0, one time I plugged in the Z-wave stick (gen5) and it connected went online immediately with the port ttyACM0, I set up another openhab2 instance on a pi3 with absolutely no problems again on ttyACM0, there does not seem to be any rhyme or reason to why it dont find my Z-stick unless there is some inherent incompatability with the pi 4 and the stick ? I have done countless searches and turned up nothing, and wondered if anyone else has had the same issue with the pi4 ?, incedentally the port ttyAMA0 is there whether the stick or anything else is plugged into the pi, and is the only port offered by openhab2 (ttyS0 showed up after I ran the openhabian-conf, 30 system settings ,35 serial port, then 10 Apply latest improvements , then fix permissions) then restarted, occasionally when I plug in the Z-Stick it all works flawlessly unplug it, plug it back in and nothing, same happens if I reboot, so if (praying) someone can give me any suggestions ? also borrowed another z-stick with the same results however my stick in another system was recognised immediately (on a pi3 tho) I know its an old conversation but it was the closest I could find searching the forum.
Thanks.
Keith

…And just now found a post on the forum with the self same issue … Guess I didnt search hard enough … thanks (hanging head in shame)

explained here
https://www.raspberrypi.org/forums/viewtopic.php?t=245031
In great detail

I do have openHab running on Synology DS218+
DSM 6.2.3-25426 Update 2
Can’t find serial port.
What next??

Schermafbeelding openHab ZWave serial

Post a new thread and tag it with Synology.

Honestly, running OH on these NAS devices like QNAP and Synology is such a pain with so many extra complications I’m surprised anyone does it. If I recall correctly, you have to do something special to expose the serial port to the container(?) running OH.

Ive got the same issue, z-stick rpi4 ive got it plugged into a 7 port usb hub.

[13:29:13] openhabian@openHABianDevice:~$ sudo lsusb
Bus 002 Device 009: ID 05e3:0617 Genesys Logic, Inc. 
Bus 002 Device 008: ID 05e3:0617 Genesys Logic, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 028: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 026: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 025: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

but I can’t find the port.

[13:26:30] openhabian@openHABianDevice:~$ ll /dev | grep tty
crw-rw-rw-  1 root tty       5,   2 Jan 11 13:29 ptmx
lrwxrwxrwx  1 root root           7 Jan  2 18:55 serial1 -> ttyAMA0
crw-rw-rw-  1 root tty       5,   0 Jan 11 13:14 tty
crw--w----  1 root tty       4,   0 Jan  2 18:55 tty0
crw--w----  1 root tty       4,   1 Jan  2 21:48 tty1
crw--w----  1 root tty       4,  10 Jan  2 18:55 tty10
crw--w----  1 root tty       4,  11 Jan  2 18:55 tty11
crw--w----  1 root tty       4,  12 Jan  2 18:55 tty12
crw--w----  1 root tty       4,  13 Jan  2 18:55 tty13
crw--w----  1 root tty       4,  14 Jan  2 18:55 tty14
crw--w----  1 root tty       4,  15 Jan  2 18:55 tty15
crw--w----  1 root tty       4,  16 Jan  2 18:55 tty16
crw--w----  1 root tty       4,  17 Jan  2 18:55 tty17
crw--w----  1 root tty       4,  18 Jan  2 18:55 tty18
crw--w----  1 root tty       4,  19 Jan  2 18:55 tty19
crw--w----  1 root tty       4,   2 Jan  2 18:55 tty2
crw--w----  1 root tty       4,  20 Jan  2 18:55 tty20
crw--w----  1 root tty       4,  21 Jan  2 18:55 tty21
crw--w----  1 root tty       4,  22 Jan  2 18:55 tty22
crw--w----  1 root tty       4,  23 Jan  2 18:55 tty23
crw--w----  1 root tty       4,  24 Jan  2 18:55 tty24
crw--w----  1 root tty       4,  25 Jan  2 18:55 tty25
crw--w----  1 root tty       4,  26 Jan  2 18:55 tty26
crw--w----  1 root tty       4,  27 Jan  2 18:55 tty27
crw--w----  1 root tty       4,  28 Jan  2 18:55 tty28
crw--w----  1 root tty       4,  29 Jan  2 18:55 tty29
crw--w----  1 root tty       4,   3 Jan  2 18:55 tty3
crw--w----  1 root tty       4,  30 Jan  2 18:55 tty30
crw--w----  1 root tty       4,  31 Jan  2 18:55 tty31
crw--w----  1 root tty       4,  32 Jan  2 18:55 tty32
crw--w----  1 root tty       4,  33 Jan  2 18:55 tty33
crw--w----  1 root tty       4,  34 Jan  2 18:55 tty34
crw--w----  1 root tty       4,  35 Jan  2 18:55 tty35
crw--w----  1 root tty       4,  36 Jan  2 18:55 tty36
crw--w----  1 root tty       4,  37 Jan  2 18:55 tty37
crw--w----  1 root tty       4,  38 Jan  2 18:55 tty38
crw--w----  1 root tty       4,  39 Jan  2 18:55 tty39
crw--w----  1 root tty       4,   4 Jan  2 18:55 tty4
crw--w----  1 root tty       4,  40 Jan  2 18:55 tty40
crw--w----  1 root tty       4,  41 Jan  2 18:55 tty41
crw--w----  1 root tty       4,  42 Jan  2 18:55 tty42
crw--w----  1 root tty       4,  43 Jan  2 18:55 tty43
crw--w----  1 root tty       4,  44 Jan  2 18:55 tty44
crw--w----  1 root tty       4,  45 Jan  2 18:55 tty45
crw--w----  1 root tty       4,  46 Jan  2 18:55 tty46
crw--w----  1 root tty       4,  47 Jan  2 18:55 tty47
crw--w----  1 root tty       4,  48 Jan  2 18:55 tty48
crw--w----  1 root tty       4,  49 Jan  2 18:55 tty49
crw--w----  1 root tty       4,   5 Jan  2 18:55 tty5
crw--w----  1 root tty       4,  50 Jan  2 18:55 tty50
crw--w----  1 root tty       4,  51 Jan  2 18:55 tty51
crw--w----  1 root tty       4,  52 Jan  2 18:55 tty52
crw--w----  1 root tty       4,  53 Jan  2 18:55 tty53
crw--w----  1 root tty       4,  54 Jan  2 18:55 tty54
crw--w----  1 root tty       4,  55 Jan  2 18:55 tty55
crw--w----  1 root tty       4,  56 Jan  2 18:55 tty56
crw--w----  1 root tty       4,  57 Jan  2 18:55 tty57
crw--w----  1 root tty       4,  58 Jan  2 18:55 tty58
crw--w----  1 root tty       4,  59 Jan  2 18:55 tty59
crw--w----  1 root tty       4,   6 Jan  2 18:55 tty6
crw--w----  1 root tty       4,  60 Jan  2 18:55 tty60
crw--w----  1 root tty       4,  61 Jan  2 18:55 tty61
crw--w----  1 root tty       4,  62 Jan  2 18:55 tty62
crw--w----  1 root tty       4,  63 Jan  2 18:55 tty63
crw--w----  1 root tty       4,   7 Jan  2 18:55 tty7
crw--w----  1 root tty       4,   8 Jan  2 18:55 tty8
crw--w----  1 root tty       4,   9 Jan  2 18:55 tty9
crw-rw----  1 root dialout 166,   4 Jan 11 13:26 ttyACM4
crw-rw----  1 root dialout 204,  64 Jan  2 18:59 ttyAMA0
crw-------  1 root root      5,   3 Jan  2 18:55 ttyprintk
crw-rw----  1 root tty       7,   0 Jan  2 18:55 vcs
crw-rw----  1 root tty       7,   1 Jan  2 18:55 vcs1
crw-rw----  1 root tty       7,   2 Jan  2 18:55 vcs2
crw-rw----  1 root tty       7,   3 Jan  2 18:55 vcs3
crw-rw----  1 root tty       7,   4 Jan  2 18:55 vcs4
crw-rw----  1 root tty       7,   5 Jan  2 18:55 vcs5
crw-rw----  1 root tty       7,   6 Jan  2 18:55 vcs6
crw-rw----  1 root tty       7, 128 Jan  2 18:55 vcsa
crw-rw----  1 root tty       7, 129 Jan  2 18:55 vcsa1
crw-rw----  1 root tty       7, 130 Jan  2 18:55 vcsa2
crw-rw----  1 root tty       7, 131 Jan  2 18:55 vcsa3
crw-rw----  1 root tty       7, 132 Jan  2 18:55 vcsa4
crw-rw----  1 root tty       7, 133 Jan  2 18:55 vcsa5
crw-rw----  1 root tty       7, 134 Jan  2 18:55 vcsa6
crw-rw----  1 root tty       7,  64 Jan  2 18:55 vcsu
crw-rw----  1 root tty       7,  65 Jan  2 18:55 vcsu1
crw-rw----  1 root tty       7,  66 Jan  2 18:55 vcsu2
crw-rw----  1 root tty       7,  67 Jan  2 18:55 vcsu3
crw-rw----  1 root tty       7,  68 Jan  2 18:55 vcsu4
crw-rw----  1 root tty       7,  69 Jan  2 18:55 vcsu5
crw-rw----  1 root tty       7,  70 Jan  2 18:55 vcsu6
```.
Any help would be appreciated