由于用的是本本(无串口),之前看了别的minicom配置,怎么都不对,后来参考了一篇文章,这下我的本本也可以在linux下进行开发啦。
执行下面命令
aiklo@aiklo-laptop:~$ dmesg | grep usb
[ 24.855373] usbcore: registered new interface driver usbfs
[ 24.855399] usbcore: registered new interface driver hub
[ 24.855428] usbcore: registered new device driver usb
[ 24.923063] usb usb1: configuration #1 chosen from 1 choice
[ 25.025742] usb usb2: configuration #1 chosen from 1 choice
[ 25.129573] usb usb3: configuration #1 chosen from 1 choice
[ 25.233389] usb usb4: configuration #1 chosen from 1 choice
[ 25.265065] usb 1-1: new full speed USB device using uhci_hcd and address 2
[ 25.389977] usb usb5: configuration #1 chosen from 1 choice
[ 25.743213] usb 1-1: device not accepting address 2, error -71
[ 25.799519] usb 5-5: new high speed USB device using ehci_hcd and address 3
[ 25.940766] usb 5-5: configuration #1 chosen from 1 choice
[ 26.102607] usb 1-1: new full speed USB device using uhci_hcd and address 4
[ 26.123600] usb 1-1: configuration #1 chosen from 1 choice
[ 36.648403] usbcore: registered new interface driver usbserial
[ 36.648437] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 36.648477] usbcore: registered new interface driver usbserial_generic
[ 36.648480] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 36.666204] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 36.666334] usb 1-1: pl2303 converter now attached to ttyUSB0
[ 36.666344] usbcore: registered new interface driver pl2303
[ 36.666347] /build/buildd/linux-2.6.24/drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
[ 36.838209] usbcore: registered new interface driver uvcvideo
[ 3347.776528] usb 1-1: USB disconnect, address 4
[ 3355.014052] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 3355.172013] usb 2-2: configuration #1 chosen from 1 choice
[ 3355.174045] usb 2-2: pl2303 converter now attached to ttyUSB0
[ 4518.712138] usb 2-2: USB disconnect, address 2
[ 4858.984629] usb 2-2: new low speed USB device using uhci_hcd and address 3
[ 4859.159614] usb 2-2: configuration #1 chosen from 1 choice
[ 4859.240916] usbcore: registered new interface driver hiddev
[ 4859.253569] input: Logitech Optical USB Mouse as /devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0/input/input10
[ 4859.296158] input,hidraw0: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:1d.1-2
[ 4859.296479] usbcore: registered new interface driver usbhid
[ 4859.296621] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[ 5099.096936] usb 2-1: new full speed USB device using uhci_hcd and address 4
[ 5099.256737] usb 2-1: configuration #1 chosen from 1 choice
[ 5099.261509] usb 2-1: pl2303 converter now attached to ttyUSB0
红色一行,显示了USB转串口芯片为pl2303后面的ttyUSB0为连接的设备号,这样我们就可以配置minicom了
执行:
aiklo@aiklo-laptop:~$ sudo minicom -s
将出现:
+----[配置]----+
| 文件名和路径 |
| 文件传输协议 |
| 串口设置 |
| 调制解调器和拨号 |
| 屏幕和键盘 |
| 设置保存为dfl |
| 设置保存为.. |
| 退出 |
| 退出Minicom |
接着配置串口设置:
+-----------------------------------------------------------------------+
| A - 串口设备: /dev/ttyUSB0 | | B - 锁文件的位置: /var/lock || C - 调入程序: | | D - 调出程序 : | | E - Bps/Par/Bits : 115200 8N1 |
| F - 硬件数据流控制: No | G - 软件数据流控制 : No || |
| 希望修改哪个设置? +-----------------------------------------------------------------------+
| 屏幕和键盘 |
| 设置保存为dfl |
| 设置保存为.. |
| 退出 |
| 退出Minicom |
+------------+
修改A为上图,保存退出,即可。
阅读(1288) | 评论(2) | 转发(0) |