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'.
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.