I have a modbus slave device and a rs485 to usb converter. I used the converter and successfully read data from the slave device with my laptop but when I try to use it with the Raspberry Pi I am unable to do so. I am using ssh and vnc to remote control the Pi. Do I need some special configuration for reading serial data from Pi? The converter is identified as '/dev/ttyUSB0'.
Asked
Active
Viewed 6,578 times
1 Answers
1
Okay so turns out that the adapter "QinHeng Electronics HL-340 usb-serial" that I bought works well on windows but does not work with Linux. I bought a new adapter with an original FTDI chip and all the codes worked fine.

Shounak Katyayan
- 51
- 2
- 7
modbus_debug(ctx,true);
to see debug messages to narrow down your issue. – dhruvvyas90 Dec 27 '15 at 17:18