USB to serial port "turn" under Linux

Source: Internet
Author: User

Transferred from: http://blog.163.com/smilexiao_11015461/blog/static/2122052182012102410399459/

1. Insert the device U port into the PC
2, input #lsmod first to see if this device can be detected, see if there is pl2303 word. If so, there is no need to reload the driver. Plus, if you have one, you better use DMESG | grep USB Lookup If you see:
"Drivers/usb/serial/usb-serial.c:usb serial support registered for Generic"
It means the device is recognized, and then look down.
DRIVERS/USB/SERIAL/USB-SERIAL.C:USB serial support registered for PL-2303
USB 2-2: PL-2303 Converter now attached to ttyUSB0 (or usb/tts/0 for DEVFS) if the driver is not required, the general hardware manufacturers will provide, if not really, only to download the Internet, General 2.6 The kernel above is supported.
After installation, enter this command to see if the installation is successful. Description my USB to serial port chip is PL-2303, corresponding system device is dev/usb/ttusb0, finally just in minicom configuration file to change the port to/dev/usb/ttyusb0 can be used:)
3, the detection step, the detection steps are as follows, just need the idea is to set up the serial port device may not be ttyS2, there may be ttyUSB0 or ttyUSB1 and so on, I am here is ttyUSB0 (I use Fedora Core 8). Therefore, it is a good idea to take a look at the files under/dev first.
USB to serial port mount model pl2303h
1, insert the USB to the serial port to the host,
2, start Linux, open the terminal, check if there is a device/dev/ttyusb0, if not set up a:
Mknod/dev/ttyusb0 C 188 0
If you have more than one USB port, you can create/dev/ttyusb[1-n] by analogy, and note that from the device number to accumulate,
Example: Mknod/dev/ttyusb[1-n] C 188 [1-n]
3. Input command: #setserial/dev/ttys0-ap (COM-1)
displaying content:/dev/ttys0, line 0, uart:16550a, Port:0x3f8, Irq:4
baud_base:115200, Clos_delay:50, divisor:0
closing_wait:3000, Closing_wait2:infinite
Flags:spd_normal Skip_test
4. Input command: #setserial/dev/ttys2-a (COM-3)
displaying content:/dev/ttys2, line 2, Uart:unknown, Port:0x3e8, Irq:4
baud_base:115200, Clos_delay:50, divisor:0
closing_wait:3000, Closing_wait2:infinite
Flags:spd_normal Skip_test
3rd, 4-step operation of the main purpose is to host the serial port and PCI extension of the difference between the serial port. The difference is that 4 of the content shown in the UART: Unknown unknow. However, if you detect this step when the UART is 16550A instead of unknow, prove that your system has known the expansion of the serial port, do not need further setup, jump directly into the 8th step of the test can be.
5, set up after the test is not necessary to be able to communicate it? The best way is to connect the two PCs. If the PC is using HyperTerminal for the Windows operating system, it's Linux, so use minicom.
6, equipped with a Linux machine, the first need to set the monitoring serial port parameters, input commands
#minicom-s
After entering the interface there is a box to bounce out, if you learn English, you will know which to choose. Should be the third bar, serial port parameter settings.
Change the first line to/dev/ttyusb0
The baud rate also changes what you need.
After the change is saved, the saved menu should be save ... df1
Last Exit
7. Restart the minicom, reset the target board to see if there is a print message? If not please confirm: a) usb/serial line is OK, b) Confirm that you use the USB port is the first (try it, the general computer will not be marked out)
Send the data to another machine, the machine Minicom interface can receive information. In addition, do not turn over the two COM sequence, if the mistake of which is COM3 COM4 test can not be flexible

USB to serial port "turn" under 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.