[SOLVED] Insteon USB HUB unable to connect on /dev/ttyUSB0

Solution to my issue (Should have re-read the installation instructions as I missed this):
Add the user openhab to the group dialout
Reboot server

Worked on a physical system and on a vSphere [ESX 6.5] Virtual Machine [ver 8] with USB Device added via…
Edit Settings…
Add USB Controller
Add USB {Host Device}

Original Post
From /var/log/openhab2/openhab.log

2018-12-01 20:55:35.054 [ERROR] [onplm.internal.driver.SerialIOStream] - got no such port for /dev/ttyUSB0 (Linux, with usb based PLM modem)
2018-12-01 20:55:35.054 [ERROR] [g.insteonplm.InsteonPLMActiveBinding] - initialization complete, but found no ports!

lsusb

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 058f:6364 Alcor Micro Corp. AU6477 Card Reader Controller
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1241:e000 Belkin
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 002: ID 413c:2107 Dell Computer Corp.
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Version info:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

Any ideas on what I may be doing wrong?

contents of services/insteonplm.cfg ?

#1, #9, #10

#10 (again!)

remove the Linux blah blah crap plz from the port config

port_0=/dev/ttyUSB0 (Linux, with usb based PLM modem)

like this?

port_0=/dev/ttyUSB0

Yes

also, like this: #1 & #2 How to ask a good question / Help Us Help You

2018-12-01 16:44:02.155 [INFO ] [nding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2018-12-01 16:44:02.838 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 3000s
2018-12-01 16:44:02.850 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /dev/ttyUSB0
2018-12-01 16:44:02.892 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
2018-12-01 16:44:02.952 [INFO ] [b.core.service.AbstractActiveService] - InsteonPLM has been started
2018-12-01 16:44:03.032 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
2018-12-01 16:44:03.128 [ERROR] [onplm.internal.driver.SerialIOStream] - got no such port for /dev/ttyUSB0
2018-12-01 16:44:03.129 [ERROR] [g.insteonplm.InsteonPLMActiveBinding] - initialization complete, but found no ports!

#
# port_0=/dev/insteon  (Linux, with serial port symlinked to /dev/insteon)
# port_0=/dev/ttyS0    (Linux, with plain old serial modem)

port_0=/dev/ttyUSB0

#  (Linux, with usb based PLM modem)
# port_0=COM1     (Windows, with serial/usb modem on COM1)


#
# to connect to an Insteon Hub2 (the 2014 version) on port 25105, with
# a poll interval of 1000ms = 1sec:
#
# port_0=/hub2/my_user_name:my_password@myinsteonhub.mydomain:25105,poll_time=1000

#
# to connect to the raw tcp feed on an older Insteon Hub (pre 2014 version) on port 9761
#
# port_0=/hub/localhost:9761

# Poll interval (optional, in milliseconds, defaults to 300000).
# Poll too often and you will overload the insteon network,
# leading to sluggish or no response when trying to send messages to devices.
# The default poll interval of 300s has been tested and found to be a good
# compromise in a configuration of about 110 switches/dimmers.
#
#poll_interval=300000

# Refresh value (optional, in milliseconds, defaults to 600000)
# The refresh interval is not critical, since only device statistics are logged
# upon refresh (the polling operates under different timers).
#
#refresh=600000

# optional file with additional device types. The syntax of
# the file is identical to the device_types.xml file in the
# source tree. Please remember to post successfully added
# device types to the openhab group so the developers
# can include them into the device_types.xml file!

#more_devices=/path_to_file/more_devices.xml

# optional file with additional feature templates, like
# in the device_features.xml file in the source tree.

#more_features=/path_to_file/more_features.xml

tobin@openhab:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

VMWare?
search G**gle on how to configure USB devices for Ubuntu

I reverted back to the VM as I was getting the same result on Physical hardware. I will try again on the physical system an repost my results.

This is the physical system.

Log file post reboot…

2018-12-01 23:55:27.179 [INFO ] [nding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2018-12-01 23:55:27.321 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - refresh interval set to 120s
2018-12-01 23:55:27.323 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - poll interval set to 60000 per config file
2018-12-01 23:55:27.323 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 600s
2018-12-01 23:55:27.380 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: poll_interval -> 60000
2018-12-01 23:55:27.381 [INFO ] [b.core.service.AbstractActiveService] - InsteonPLM has been started
2018-12-01 23:55:27.382 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /dev/ttyUSB0
2018-12-01 23:55:27.410 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
2018-12-01 23:55:27.483 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: refresh -> 120000
2018-12-01 23:55:27.483 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
2018-12-01 23:55:27.529 [ERROR] [onplm.internal.driver.SerialIOStream] - got no such port for /dev/ttyUSB0
2018-12-01 23:55:27.530 [ERROR] [g.insteonplm.InsteonPLMActiveBinding] - initialization complete, but found no ports!

tobin@openhab:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 006: ID 1241:e000 Belkin
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

cfg file.

tobin@openhab:~$ cat /etc/openhab2/services/insteonplm.cfg
# The insteon PLM controller port, one for each modem or hub.
# You can have multiple ports, but that has never been tested, use at your own peril.
#
# examples of valid port configurations for serial or usb modems:
#
# port_0=/dev/insteon  (Linux, with serial port symlinked to /dev/insteon)
# port_0=/dev/ttyS0    (Linux, with plain old serial modem)
port_0=/dev/ttyUSB0
# port_0=COM1     (Windows, with serial/usb modem on COM1)

#
# to connect to an Insteon Hub2 (the 2014 version) on port 25105, with
# a poll interval of 1000ms = 1sec:
#
# port_0=/hub2/my_user_name:my_password@myinsteonhub.mydomain:25105,poll_time=1000

#
# to connect to the raw tcp feed on an older Insteon Hub (pre 2014 version) on port 9761
#
# port_0=/hub/localhost:9761

# Poll interval (optional, in milliseconds, defaults to 300000).
# Poll too often and you will overload the insteon network,
# leading to sluggish or no response when trying to send messages to devices.
# The default poll interval of 300s has been tested and found to be a good
# compromise in a configuration of about 110 switches/dimmers.
#
poll_interval=60000

# Refresh value (optional, in milliseconds, defaults to 600000)
# The refresh interval is not critical, since only device statistics are logged
# upon refresh (the polling operates under different timers).
#
refresh=120000

# optional file with additional device types. The syntax of
# the file is identical to the device_types.xml file in the
# source tree. Please remember to post successfully added
# device types to the openhab group so the developers
# can include them into the device_types.xml file!

#more_devices=/path_to_file/more_devices.xml

# optional file with additional feature templates, like
# in the device_features.xml file in the source tree.

#more_features=/path_to_file/more_features.xml

Well… G**gle is your friend
your issue is that you O/S cannot identify the /dev/ttyUSB0 or /dev/ttyS0
if this will work, the binding should work as well
this is an openHAB forum, not a Linux forum

Thanks for taking the time to read and reply to my posts.

My issue is unresolved.

your Linux issue is unresolved
your OH2 issue hasn’t started yet

1 Like

I don’t understand why it works fine as a VM running OS x using Indigo and I can’t get Linux to recognize the USB device via openHAB.

What do you see when you run the command:

ls -l /dev/ttyUSB0

tobin@openhab:/$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Dec 3 13:50 /dev/ttyUSB0

The text “/dev/ttyUSB0” is in yellow.

When I unplug the Insteon PLM into this system the result is…
tobin@openhab:/$ ls -l /dev/ttyUSB0
ls: cannot access ‘/dev/ttyUSB0’: No such file or directory

This is a vSphere client issue, not an openhab issue.

This is the physical host. I have abandoned the Virtual machine.

Solved, see edit in First Post.

1 Like