Python Forum
help with code for USB-RS485 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: help with code for USB-RS485 (/thread-18286.html)



help with code for USB-RS485 - korenron - May-12-2019

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 ,


RE: help with code for USB-RS485 - DeaD_EyE - May-12-2019

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.


RE: help with code for USB-RS485 - korenron - May-12-2019

Yes ,
it's working !

Thanks ,


RE: help with code for USB-RS485 - wiseweezer - Nov-17-2022

What code are you using?