标签:
本文以USB转串口为例!PC自带的串口从ttyS0起(ttyS0-COM1、ttyS1-COM2以此类推)。
dmesg | grep usb
我们会看到PL2303映射在ttyUSB0端口上。
[ 1.797793] usb 2-1.6: new full-speed USB device number 4 using ehci-pci [ 1.891100] usb 2-1.6: New USB device found, idVendor=067b, idProduct=2303 [ 1.891104] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.891107] usb 2-1.6: Product: USB-Serial Controller [ 1.891110] usb 2-1.6: Manufacturer: Prolific Technology Inc. [ 11.048933] usbcore: registered new interface driver usbserial [ 11.048943] usbcore: registered new interface driver usbserial_generic [ 11.048950] usbserial: USB Serial support registered for generic [ 11.194763] usbcore: registered new interface driver pl2303 [ 11.194775] usbserial: USB Serial support registered for pl2303 [ 11.196410] usb 2-1.6: pl2303 converter now attached to ttyUSB0
apt-get install minicom
sudo minicom -s
按“a”,输入“/dev/ttyUSB0”回车。
按“e”,输入"a"或"b"选择设定的频率。然后,回车。
按"f",设定为yes或No
回车,设定完成。
sudo minicom
参考文章
1. 《UBUNTU中PL2303串口的使用》
2. 《minicom》 - - Linux man page
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/xiaobin_hlj80/article/details/47192201