hello,
In order to expand the serial port, I connected USB1 with a USB HUB, and then connected the hub to the computer with a USB to serial cable(FT232R USB UART) for test.I know the 058 under /dev/bus/usb/001/058 is the device i need to operate(kernel version 3.14.43).
root@AM437x-Tronlong:/dev/bus/usb/001# lsusb
Bus 001 Device 036: ID 214b:7250
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 037: ID 0bda:8152 Realtek Semiconductor Corp.
Bus 001 Device 039: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 054: ID 05e3:0749 Genesys Logic, Inc.
Bus 001 Device 058: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
root@AM437x-Tronlong:/dev/bus/usb/001# ls
001 036 037 039 054 058
But when I configure it with function tcgetattr,it displays the error:Inappropriate ioctl for device.Even if the tcgetattrfunction is commented,other setting functions will run incorrectly.
root@AM437x-Tronlong:/dev/bus/usb/001# ../../../../sscom 058 1
fcntl=0
isatty success!
fd->open=3
SetupSerial 1: Inappropriate ioctl for device