文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>无串口笔记本在linux环境下使用usb转串口线

无串口笔记本在linux环境下使用usb转串口线

时间:2010-07-28  来源:summersunboy

1.无串口笔记本在linux环境下使用usb转串口线
[转]http://hi.baidu.com/ajoe/blog/item/3208564ef0ae8c0cb2de053c.html

驱动实际上linux2.6 内核已经自带了。
插上usb线后用dmesg | grep usb 查看输出
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb usb3: configuration #1 chosen from 1 choice
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
usb usb4: configuration #1 chosen from 1 choice
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usb 2-2: pl2303 converter now attached to ttyUSB0
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver

看到usb-serial.c执行,说明linux2.6内核下默认有usb转串口的驱动。
倒数第四行,说明芯片是pl2303
倒数第三行,说明usb转串口被挂载到了ttyUSB0。

配置minicom
设置串口为/dev/ttyUSB0, 保存。重启设备,即可看到串口输入信息。

Ctrl+A Z 调出Configuration --> Serial port setup --> A - Serial Device : /dev/ttyUSB0


2.minicom for linux,只可调出配置菜单,无法输入命令
http://hi.baidu.com/xiquanlian/blog/item/a4d0750e63614fca7acbe1e1.html

关键点就在串口的配置中有个Serial port setup -->Hardware Flow Contorl只要这个地方改成Yes,那么你的键盘是没有用的,接受不了任何输入。把他改成No就好了。


相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载