Configure minicom and 51 Single-Chip Microcomputer for Serial Communication

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.