Home > OS >  A serial port communication
A serial port communication

Time:12-22

The younger brother is currently in use ARM board and PC ubuntu for a serial port communication, send a data ARM, turn the USB serial port device name is puzzling from ttyUSB0 disconnect, became ttyUSB1, run the program again, send once again from ttyUSB1 ttyUSB0, repeated change, turn the USB serial port is cp210x, really troubled for a long time,, know this is the reason why
The open serial sucessfully.
An FCNTL=0
/dev/ttyUSB0 is a tty success!
FdSerial - open=3
Serial set done!
Input the send data: ddd45
Send data is ddd45

The send length: 6


1-1: usb usb disconnect, address 6
Cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Cp210x 1 to 1 to 1. 0: device disconnected
Input the send data: usb 1-1: new full speed usb device using FSL - ehci and address 7
1-1: usb device v10c4 pea60 is not supported
Cp210x 1 to 1 to 1. 0: cp210x converter detected
1-1: usb reset full speed usb device using FSL - ehci and address 7
1-1: usb cp210x converter now attached to ttyUSB1
  • Related