I have an serial USB device (mbus, but that’s not important) plugged into one of the USB ports on my raspberry pi 3+ running Hassio. I call this serial device in node-red to read out the bytes. The messages i get out of it are very inconsistent in length, and reading the data it is not correct. It is also missing the start and stop bits these messages should have.
While the exact same pi with the exact same serial device was running raspbian, i got sensible messages output, with about 115 bytes per message, with the correct start- and stop-bits.
This device is /dev/ttyUSB0 in both instances.
On Hassio I have edited /config/configuration.yaml to make the USB device useable in hassio (The AMS Mbus USB device, the “yr” one is a weather thing, unrelated and was pre-installed):
After this the device became visible in the /dev/ directory.
Now I loaded the same node-red code i used on the raspbian instance:
(Image limitation, see image in comment)
These settings are the correct ones for this USB device, at least on raspbian.
As I said here on hassio the serial node in node-red only returns jibberish, even though the settings are the same as they were when the pi was running raspbian.
I have a suspicion the baudrate is incorrect, in spite of me setting it to 2400 in the configuration.yaml file, i suspect hassio is reading it with the wrong baudrate. I tried with the default 9600 too with no noticeable change.
Can anyone tell me is the configuration i added to configuration.yaml is correct?
Is there any other way i can see the raw data in ssh from the /dev/ttyUSB0 ?
Is there anything else I can try?