Read serial data from usb port

Topics about the Software of Revolution Pi
Post Reply
giova77
Posts: 5
Joined: 10 Dec 2020, 20:25

Read serial data from usb port

Post by giova77 »

Hi,

i need to read data from a device using a USB to TTL Serial 5V Cable. For that I suppose I need to install the cable driver for Linux in the Rpi , is it correct?

Thanks in advance,
Giovanni
User avatar
Amar
KUNBUS
Posts: 160
Joined: 15 Jul 2019, 12:58

Re: Read serial data from usb port

Post by Amar »

First check if usb device is found.
ls -la /dev/ttyUSB*

If found, you can access the serial port. eg. Python application
https://pyserial.readthedocs.io/en/late ... intro.html
KUNBUS
Post Reply