CentOS installation and configuration of minicom (serial port to USB)

Source: Internet
Author: User
CentOS installation and configuration of minicom (serial port to USB) 1. install minicom and the file transfer tool sudoyuminstallminicomlrzsz2. check whether your computer supports usb-to-serial communication before using the serial port. If the following words appear, OK is supported .... CentOS installation and configuration of minicom (serial port to USB) 1. install minicom and the file transfer tool sudo yum install minicom lrzsz
2. check whether your computer supports usb-to-serial communication before using the serial port. If the following words appear, OK is supported. Lsmod | grep usbserial 33694 3 pl23033. after the usb is inserted, the connection success message is displayed. Dmesg | grep USB0 check whether the device/dev/ttyUSB0 exists. if not, create one: ls/dev/ttyUSB0 mknod/dev/ttyUSB0 c 188 04 and minicom serial port configuration sudo minicom-s note: The items selected below can also be in lowercase letters. Select Serial port setup. the cursor is displayed on "Change which setting" and type "A". Then, move the cursor to the corresponding position of item A and Change it to ttyUSB0 (because I am A USB-to-Serial port ). Configure the baud rate, data bit, and stop bit, and enter "E". the baud rate is 115200 8N1 (data bit 8, no parity check, stop bit 1 ), type "F" and "G" for hardware/software traffic control respectively, and select "No" (note: If this parameter is not set to "NO", you cannot enter a character on the terminal ). The specific configuration information is as follows: Serial port setup [Enter] + ------------------------------------------------------------- + | A-Serial Device:/dev/ttyUSB0 | B-Lockfile Location: /var/lock | C-Callin Program: | D-Callout Program-:|| E-Bps/Par/Bits: 115200 8N1 | F-Hardware Flow Control: no | G-Software Flow Control: No | Change which setting? | + ------------------------------------------------------------- + Return to the upper menu, enter the Modem and dialing option, and set it to A-Init string ......... www.2cto.com B-Reset string ........ k-Hang-up string ...... after confirming that the configuration is correct, you can press enter to return to the upper-level configuration page and save it as the default configuration (save setup as dfl ). Finally, select the "Exit from Minicom" command to Exit. 5. problems encountered: If the Serial port is not used but is used directly, the Serial Device must be configured as/dev/ttyS0. 1) If you do not have ttyUSB0 in your/dev file, enter mknod/dev/ttyUSB0 c 188 0 on the terminal. 2) then restart minicom (note that the root permission is required). Otherwise, the following information will be displayed: device/dev/ttyUSB0 access failed: No such file or directory. $ sudo minicom: Make the configuration take effect. after connecting to the USB to serial port of the development board, you can print the correct serial port information in minicom. In the console, press Ctrl + a z to enter the minicom menu. 3) Device/dev/ttyS0 lock failed: the operation is not allowed. run ps-aux | grep minicom to check the process and kill the minicom process with kill-9. then start ps-aux | grep minicom and display it as: Warning: bad syntax, perhaps a bogu '-'? See/usr/share/doc/procps-3.2.7/FAQ www.2cto.com root xxxx xxx root 8319 0.0 0.1 5416 676 pts/1 S + grep minicom then kill-9 XXXX here the XXXX of is similar to the 8319 of the second line, it is also a four-digit number. 4) if it still does not work, try to change the USB port and then perform the above procedure again. 5) run mincom 6 on the terminal to implement file transfer between the PC and the Development Board. connect the PC to the development board and start minicom. then press CTRL + a s to select zmode and find the file to be sent, in this way, the cross-compiled executable file can be directly executed on the development board terminal! Author: yinjiabin

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.