This article explains how to use some USB to 4Serial Module on your CORE9G25 Boards The USB to 4Serial Module tested, based on FT4232 chips, are: |
Insert the USB to 4Serial Module to the board
Insert the USB to Ethernet adapter on your CORE9G25 Board USB port. These messages should appear on the debug port or by typing dmesg command:
USB miniadapter message
# usb 2-3: new full-speed USB device number 3 using at91_ohci usb 2-3: not running at top speed; connect to a high speed hub usb 2-3: New USB device found, idVendor=0403, idProduct=6011 usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 2-3: Product: USB <-> Serial Converter usb 2-3: Manufacturer: FTDI usb 2-3: SerialNumber: FTWZRH0Z ftdi_sio 2-3:1.0: FTDI USB Serial Device converter detected usb 2-3: Detected FT4232H usb 2-3: Number of endpoints 2 usb 2-3: Endpoint 1 MaxPacketSize 64 usb 2-3: Endpoint 2 MaxPacketSize 64 usb 2-3: Setting MaxPacketSize 64 usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB0 ftdi_sio 2-3:1.1: FTDI USB Serial Device converter detected usb 2-3: Detected FT4232H usb 2-3: Number of endpoints 2 usb 2-3: Endpoint 1 MaxPacketSize 64 usb 2-3: Endpoint 2 MaxPacketSize 64 usb 2-3: Setting MaxPacketSize 64 usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB1 ftdi_sio 2-3:1.2: FTDI USB Serial Device converter detected usb 2-3: Detected FT4232H usb 2-3: Number of endpoints 2 usb 2-3: Endpoint 1 MaxPacketSize 64 usb 2-3: Endpoint 2 MaxPacketSize 64 usb 2-3: Setting MaxPacketSize 64 usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB2 ftdi_sio 2-3:1.3: FTDI USB Serial Device converter detected usb 2-3: Detected FT4232H usb 2-3: Number of endpoints 2 usb 2-3: Endpoint 1 MaxPacketSize 64 usb 2-3: Endpoint 2 MaxPacketSize 64 usb 2-3: Setting MaxPacketSize 64 usb 2-3: FTDI USB Serial Device converter now attached to ttyUSB3
If you don't obtain these messages you will probably have to update Kernel uImage file.
When you get the right messages try to type this command:
# ls /dev/ttyUSB* /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
which provides info about the Four serial port info, the Correspondence between linux inode and hardware interface is as follow:
Interface on the module | Linux inode | |
J4 | /dev/ttyUSB0 | |
J2 | /dev/ttyUSB1 | |
J3 | /dev/ttyUSB2 | |
J5 | /dev/ttyUSB3 |
Test the serial port
Refer the follow chapter to test the Serial port, it is the TTL level, you can expand it to the RS232/RS485/RS422 level with the module we provide.