Version 6 (modified by 10 months ago) ( diff ) | ,
---|
USB Serial Adapters
FTDI FT232 supported
dmesg output:
[ 253.244663] ftdi_sio 1-1.1:1.0: FTDI USB Serial Device converter detected [ 253.244821] usb 1-1.1: Detected FT232RL [ 253.246307] usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0
Connect to PC running CommView. The PC serial port should be connected to the USB serial adapter that is connected to the 825 with a crossover cable such as Cardinal 8545-B099-0A.
The default baud rate is likely 9600. Settings can be changed with the stty command such as:
card825gen2:~$ stty -F /dev/ttyUSB0 115200 raw -echo card825gen2:~$ echo "hello" > /dev/ttyUSB0
CommView will show:
hello[LF]
To test receiving data type:
cat /dev/ttyUSB0
Type in CommView "1234567890"
1234567890
4/5/2023 Found prolific driver was not included. Updated build config to include Prolific. Now supports FTDI and Prolific chip based USB to serial adapters.
Device files /dev/ttyUSB* will be created automatically when USB to serial devices are connected, and removed when USB to serial devices are disconnected.
Test with various USB to serial adapters connected:
card825gen2:~$ ls /dev/ttyUSB* /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3 /dev/ttyUSB4 /dev/ttyUSB5 /dev/ttyUSB6 /dev/ttyUSB7 card825gen2:~$ lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M |__ Port 1: Dev 9, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 3: Dev 7, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 4: Dev 8, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 5: Dev 3, If 0, Class=, Driver=, 480M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 11, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M |__ Port 2: Dev 12, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 4: Dev 13, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
The CCommSerial class in lib825ev is updated to allow for USB to serial support. CCommSerial