/dev/ttyUSB0 not found

I’m using openhabian 3.2.0 on a raspberry pi 3 and I want to use an mbus to USB adapter like this Mbus adapter
I can’t find the adapter with ls -l /dev/ttyUSB*
I see something with lsusb
Output: Bus 001 Device 006: ID 067b:23d3 Prolific Technology, Inc. USB-Serial Controller
I want to run a python script accessing the adapter but how?

That’s nothing OH-specific, but simple OS-related configuration.

I’m running multiple Prolific RS232<>USB converters. Sometimes they need a initial reboot to run.

On some machines, devices appear as /dev/AMA* instead of ttyUSB*

openhabian@openhabian:~ $ ls -al /dev/serial/by-id
ls: cannot access ‘/dev/serial/by-id’: No such file or directory

there is a ttyAMA0 but it’s still there if i disconnect the device

If something has a lock on that file (e.g. the mbus add-on in OH), the file will not go away when you unplug the device. That’s standard Linux behavior. When you plug it back in you’ll see it move to ttyAMA1, assuming that’s the device.

If it truly isn’t at AMA, you’ll need to research/contact the device maker to see how to get it attached and working on an RPi. This is outside the scope of what we can help with.

thanks for that
any chance to get this driver integrated in the 5.15.32-v7+ kernel? I am failing with the manual from the Prolific site:
make all
make -C /lib/modules/5.15.32-v7+/build M=/srv/openhab-conf/5.0 modules
make[1]: *** /lib/modules/5.15.32-v7+/build: No such file or directory. Stop.
make: *** [Makefile:4: all] Error 2

I don’t know, if it matters, but I’ve got one of these:

not with PINs, but with RS232 plug. Prolific chip inside - plug and play in Raspbian OS (and Raspberry Pi OS since at least Squeeze). They go with /dev/ttyUSBxx.

Just set up a new Raspberry Pi OS (5.15.61-v7+), plugged in and there it is!
But how do I get it to work in openhabian?

Did you use the pre-packaged openHABian? Operating system images – Raspberry Pi
that’s where two of them Prolific USB<>RS232 run plug2play without a problem…

I would start to have a look to the output of the dmesg command after pluging in the adapter.
It should give some information about what was detected on the system.
Using the command lsmod gives information about the loaded drivers.
The Openhabian image is based on Raspberry Pi OS lite distribution. May be just a limited set of drivers is preinstalled ?
I would compare which packages are installed on both systems.

no. lite distribution lacks mostly graphical UI and some packages. As I said, with the openHABian pre-packacked SD Card my Prolific converters run smoothly. no additional drivers needed:

openhabian@openHABUtilities:~ $ dmesg | grep usb
[    6.254828] usbcore: registered new interface driver usbserial_generic
[    6.254909] usbserial: USB Serial support registered for generic
[    6.266055] usbcore: registered new interface driver pl2303
[    6.266138] usbserial: USB Serial support registered for pl2303
[    6.378661] usbcore: registered new interface driver cp210x
[    6.378748] usbserial: USB Serial support registered for cp210x
[    6.409765] usb 1-1.2: pl2303 converter now attached to ttyUSB0
[    6.443064] usb 1-1.4: cp210x converter now attached to ttyUSB1


openhabian@openHABUtilities:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 001 Device 004: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

should be similar.

My USB devices all run without any driver installation ootb:

  • DS9490R-USB-Stick als OneWire-Busmaster
  • PL2303 Prolific USB<>RS232
  • CP210x UART smartmeter IR-head
1 Like

yes pre packaged. don’t know which version it was but upgraded some days ago over the config tool
maybe I try a new fresh installation on another sd card

Still strange, I bought the Prolific back in 2014 and it ran since! :wink:

but yeah, transfering “old OH installations” to a vanilla openHABian is always a good idea. :wink: