To: Linux to use USB to the serial line of the method-minicom and hl-340/341 (USB switch serial line) drive __linux

Source: Internet
Author: User
Installation Configuration minicom
--------------------------------------------------
# lsmod | grep usbserial(If you use the serial port directly, but do not use USB to switch serial device, this step can be skipped)
If there is usbserial, the system supports USB to the serial port.

Install minicom (fedora comes with minicom, this step can be skipped)
apt-get Install minicom
apt-get Install Lrzsz
Configure Minicom
# minicom-s
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? |
+-------------------------------------------------------------+
Note: If you do not use a USB dongle, serial device is configured to /DEV/TTYS0

Save Setup as DFL
Exit from Minicom




transferring files using minicom
--------------------------------------------------
# minicom
(Ctrl + a)--> s--> zmodem--> [Okay]-->

+-----------------------------------------+
| No file selected-enter FileName: |
|>/home/zxl/ssl/codes/led/lls_led.ko | [Enter]
+-----------------------------------------+






Note: Download kernel by minicom in Ubuntu
--------------------------------------------------
When I download the Linux kernel by x protocol in minicom, it says "failure executing, the Press any key to protocol".
The problem is the "x protocol isn ' t installed bye Ubuntu by default and so for should install it by hand:
# apt-get Install Lrzsz
After the successful download and install, you can send the files by the X protocol in minicom.
LrzszIncluding the X/y/zmodem protocol.




Install Lrzsz
--------------------------------------------------
1. Download lrzsz-0.12.20.tar.gz from the website below
Http://www.filewatcher.com/m/lrzsz-0.12.20.tar.gz.280938.0.0.html

2. Tar zxvf lrzsz-0.12.20.tar.gz
3. Look inside the install documentation for installation parameter descriptions and details
4. # CD lrzsz-0.12.20
5. #./configure--prefix=/usr/local/lrzsz
6. # Make
7. # make Install
8. Establish Soft Links
# Cd/usr/bin
# ln-s/usr/local/lrzsz/bin/lrz RZ
# ln-s/usr/local/lrzsz/bin/lsz sz
So minicom can use Zmodem to transfer files.





directory where the configuration file resides
--------------------------------------------------
Ctrl + a O

+-----[Configuration]------+
| Filenames and Paths |
| File Transfer Protocols-|
| Serial Port Setup |
| Modem and Dialing |
| Screen and keyboard |
| Save Setup as DFL |
|          Save setup as.. |
| Exit |
+--------------------------+

+-----------------------------------------------------------------------+
| A-download Directory:/HOME/ZXL |
| B-upload directory:/tmp |
| C-script Directory: |
| D-script Program:runscript |
| E-kermit Program: |
| F-logging Options |
| |
|                                              Change which setting? |
+-----------------------------------------------------------------------+

Where to store the downloaded files a-download
B-upload read the uploaded file from here
Download Development Board---> PC
Upload PC---> Development Board

B-upload Directory:/tmp
The PC sends files to the Development Board and needs to send the files in the/tmp directory (the directory on the PC). Once this configuration is done, each time you send a file to the Development Board, you can simply enter a file name without having to enter the absolute path of the directory where the file is located


Development Board---> PC
--------------------------------------------------
The (Operations) command on the developer board
# SZ FileName
File filename on the developer board will be transferred to the/HOME/ZXL directory on the PC




Record Development Board input information:
--------------------------------------------------
Ctrl + A + L

+-----------------------------------------+
|                   Capture to which file? |
|>/tmp/minicom.cap |
+-----------------------------------------+

Transferred from: http://hi.baidu.com/zengzhaonong/blog/item/8427c633c835de40ac4b5f47.html ################################### ########################### system: Centos5.1 (linux-2.6.24 kernel supports this device) Uname-a: Linux localhost 2.6.18-53.el5 #1 SMP Mon No V 02:22:48 EST 2007 i686 i686 i386 gnu/linux
1. TAR-ZXF ch341.tar.gz 2. CD ch341 3. Make 4. Comment out the error line by 5. Make, prompt for error and then comment off the related line 6. Modprobe usbserial 7. Insmod Ch341.ko 8. hl-340 Serial line, found new file/dev/ttyusb0 9. Minicom-s Make adjustments accordingly
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.