Save the serial port information output by the lower computer as a file under linux

Save the serial port information output by the lower computer as a file under linux

1.stty -F /dev/ttyUSB0 raw ( convert to raw mode ) 

2.stty -F /dev/ttyUSB0 speed 115200 ( set the baud rate )

3.cat /dev/ttyUSB0 > serial.txt & ( start the daemon to save the file )

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325630367&siteId=291194637