1. After you insert 51 Single-Chip Microcomputer usb to the serial port, run the # lsusb command to check the USB device. The pl2303 driver has been integrated in Ubuntu and does not need to be installed.
2. Use # dmesg | grep usb to check its installation. ttyUSB0 is connected here.
You can also use # ls-l/dev/ttyUSB * To find the serial port
3. install minicom: # sudo apt-get install minicom
4. Configure minicom: # sudo minicom-s
5. On the configuration page, select "Serial port setup" as the upstream and downstream keys, and press enter to confirm the Serial port configuration.
6. Enter the corresponding letter for configuration. Set it to/dev/ttyUSB0 and 9600 baud rate (depending on your situation). Press enter to save and exit.
7. After everything is modified, Press ESC to return to the first menu interface and select "Save setup... "save it as 51com (you can directly enter minicom 51com next time ). In this case, you need to select Exit (Exit). Do not select Exit from Minicom (Exit Minicom). Otherwise, you will turn off minicom.
Save Configuration
There are two Save options: "Save settings as dfl" and "Save settings .."
Set to dfl: Save the configuration as the default configuration. This configuration is automatically enabled when you run the "sodu minicom" command next time.
Set to ..: Save the configuration file. Enable the configuration file when "sudo minicom configuration name" is run next time.
8. Press Ctrl + A to exit and press the X key. The system will prompt you whether to exit. yes. You can also press Ctrl + A and then press Z to view help information.
(1) S key: send the file to the target system;
(2) W key: automatic screen scrolling. When more than one line is displayed, the next line is automatically wrapped. This function is useful when viewing kernel startup information.
(3) C: Clear the display content on the screen;
(4) Key B: view the historical display of minicom;
(5) Key X: Exit mInicom and a prompt is displayed to confirm exit.
9. Data is received from 51
Note: If you disable minicom abnormally, several files (LCK *) will be created under/var/lock. These files prevent the running of minicom and can be restored after they are deleted.
Use of Ubuntu serial port tool minicom and install DNW Image
Linux Super Terminal minicom and XGCom
Install and configure minicom in Ubuntu
Porting minicom to S3C2440
Use minicom to manage serial devices in Linux