Miniora17 USB to serial port minicom settings

Source: Internet
Author: User
Fedora17 USB to serial port minicom settings

For reprinting, please enter the article address to respect the labor achievements of the author Lai banxian. Thank you for your support:

Http://hi.baidu.com/mgqw/blog/item/5fc4c936ae8ffdfca2cc2b6b.html

Author: mgqw monkey of linuxeden team is published simultaneously on linuxeden.

 

In the fedora17 with serial port connection board, because the computer motherboard does not have 9-pin serial port can only buy a USB serial port converter (u232-p9 and Hl-340 chip can be personally experimental ), the procedure and method of configuration and debugging are recorded here, and we hope to provide some help to colleagues who have the same requirements.

First, it is best to insert the USB to the serial port line into the interface directly connected to the motherboard behind the computer's ass, the figure helps you plug the computer in front of the computer. It may be as hard as I did for a long time until I finally found that the plug-in is not working ......

 

First, confirm that the system can correctly identify the USB to serial port device and load the driver:

The newer Linux system already includes a USB-to-serial-port driver that can automatically identify the device. The new version of fedroa17 is also included by default, after plugging in, you can see the USB to serial port device in the dev directory. The specific output is as follows:

[Mgqw @ mgqw ~] $ Ls/dev/ttyusb *
/Dev/ttyusb0

 

After plugging in the USB to the serial port, you can view the system information as follows:

[Mgqw @ mgqw ~] $ Dmesg | tail-F
...........................
[2, 1159.839252] USB 3-3: ch341-uart converter now attached to ttyusb0

If the above information is displayed, we can see that the driver of the USB to serial port chip has been registered and loaded, and the corresponding system device is/dev/ttyusb0 (to be used when setting the serial port)

 

Make sure that the driver is running properly. Set minicom to connect to the serial port:

In general, miniora17 installs minicom by default. If it is not installed, install Yum install minicom-y first.

First, you must set some initialization parameters for minicom:

[Root @ mgqw ~] # Minicom-S

Go to the following parameter settings page (the red lines from top to bottom indicate the rows we want to set in sequence ):

+ ----- [Configuration] ------ +
| Filenames and paths |
| File transfer protocols |
| Serial Port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as DFL |
| Save setup as... |
| Exit |
| Exit from minicom |
+ -------------------------- +

We need to set parameters for the third line Serial Port setup and the fourth line modem and dialing:

The parameters to be set for Serial Port setup in the third line are as follows (red indicates parameters need to be set ):

+ ----------------------------------------------------------------------- +
| 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? |
+ ----------------------------------------------------------------------- +

The parameter configurations of Line 4 modem and dialing are as follows (the default settings of the red font line are cleared ):

+ ------------------ [Modem and dialing Parameter setup] --------------------- +
|
| A-init string ...... |
| B-Reset string ...... |
| C-dialing prefix #1... atdt |
| D-dialing suffix #1 ...... ^ m |
| E-dialing prefix #2... atdp |
| F-dialing suffix #2... ^ m |
| G-dialing prefix #3... atx1dt |
| H-dialing suffix #3...; x4d ^ m |
| I-connect string... connect |
| J-no connect strings... no carrier busy |
| No dialtone voice |
| K-hang-up string ...... |
| L-dial cancel string .. ^ m |
|
| M-dial time ...... 45 Q-auto BPS detect ...... No |
| N-delay before redial. 2 R-modem has DCD line .. Yes |
| O-Number of tries... 10 s-status line shows... DTE speed |
| P-DTR drop time (0 = No). 1 T-multi-line UNTAG... no |
|
| Change which setting? (Return or ESC to exit) |
+ ---------------------------------------------------------------------------- +

 

After setting, select the following settings on the main interface to save the settings:

| Save setup as DFL |

 

Finally, select exit on the main interface and exit. If there is no problem, you should have successfully connected to the serial port.

 

Note: If you disable minicom abnormally, several files (LCK *) will be created under/var/lock/lockdev. These files prevent minicom from running.
They can be restored after being deleted.

[Root @ mgqw lockdev] # ls

LCK... 16616 LCK... ttyusb0 lk.000.188.000

[Root @ mgqw lockdev] # rm *-RF

 

Finally, select exit on the main interface and exit. If there is no problem, you should have successfully connected to the serial port.

References:

Http://chengyang59.blog.sohu.com/149048464.html

Http://sjsky.iteye.com/blog/1060342

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.