-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get ttyUSB0 working #112
Comments
What does "I cannot seem to get mbusd to read the serial port at all" mean?
Never had any issue with the cheapest USB/RS485 convertes & mbusd. |
I have just installed it on the host OS still getting the same error, I ran it as root. It looks like the device is good in the host OS, details are below: udevadm info /dev/ttyUSB0 dmesg | grep ttyUSB0 Can you explain how you would test it, I am no Linux expert. Thanks |
mbusd wrapps the plain modbus RTU into a IP stack. What would be in plain modbus RTU Complete example with mbusd & netcat: Thats why i asked, how you test it. The examples above needed to be adapted to your need. EIDT/HINT: You can when mbusd is running & everyhint is setup correctly, use a gui tool like "QModBus". |
I have the same issue with a Waveshare USB to RS485 Converter. I am running it under WSL where i can access the adapter with other programs but mbusd gives me the following:
|
at flx25 -S Enable RS-485 support for given serial port device (Linux only) |
Yes i did, it runs now, thank you! |
I have a Waveshare Industrial USB to RS485 Converter which is on ttyUSB0 on my Pi5
I have got it working in Windows with some software called ModbusPoll and can read from my Sunsynk inverter.
I cannot seem to get mbusd to read the serial port at all. I get the below in the log:
25 Sep 2024 22:49:58 mbusd-0.5.3 started...
25 Sep 2024 22:49:58 tty: trying to open /dev/ttyUSB0 (speed 9600 mode 8n1)
I have used the below to create the docker container:
version: '3'
services:
mbusd:
container_name: mbusd
group_add:
- dialout
user: root
privileged: true
ports:
- 502:502
volumes:
- /dev:/dev
- /opt/mbusd:/etc
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
image: 3cky/mbusd:latest
Has anyone seen this before?
I have also tried connecting with Putty but not sure it that will work at all.
The text was updated successfully, but these errors were encountered: