Python Forum

Full Version: help with code for USB-RS485
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello ,
I'm trying to write a code that will send me data to a RS485 device
I'm using this converter and respberry pi3
https://www.sparkfun.com/products/9822

does someone know how I need to define the device in Python?

Thanks ,
This device should be recognized as usb_serial on Linux.
Just login as root and run dmesg -c.
Then you attach the USB-Converter to your usb port.
Then use the command dmesg again.

There should appear a device like FT232RL as /dev/ttyUSB0.
With PySerial it should be possible to use the RS485 converter.
Yes ,
it's working !

Thanks ,
What code are you using?