USB2COM线 推荐采用FTDI芯片的方案,我目前使用的是FT232BM这种芯片的。
Ubuntu下插上,发现发送指示灯每隔一段时间闪烁2次,于是安装终端putty来准备测试,当然是用sudo apt-get install putty来安装 ,然后打开串口 ttyUSB0 ,不料却提示无法打开。
查找信息:
irobot@ubuntu-laptop:~$ dmesg|tail
[ 81.604000] eth1: no IPv6 routers present
[ 134.068000] usb 5-5.3: USB disconnect, address 5
[ 139.192000] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 139.392000] usb 4-1: configuration #1 chosen from 1 choice
[ 139.396000] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 139.396000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232BM
[ 139.396000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 142.712000] usb 4-1: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 142.716000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 142.716000] ftdi_sio 4-1:1.0: device disconnected
irobot@ubuntu-laptop:~$
貌似与brltty冲突? 卸载 它 看看
irobot@ubuntu-laptop:~$ sudo apt-get remove brltty
[sudo] password for irobot:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
下列软件包将被【卸载】:
brltty brltty-x11
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件未被升级。
需要下载 0B 的软件包。
解压缩后将会空出 3781kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 96169 个文件和目录。)
正在删除 brltty-x11 ...
正在删除 brltty ...
irobot@ubuntu-laptop:~$
再插上转接线,发送指示灯不再闪烁了,查询:
irobot@ubuntu-laptop:~$ dmesg|tail
[ 139.396000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 142.712000] usb 4-1: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 142.716000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 142.716000] ftdi_sio 4-1:1.0: device disconnected
[ 1502.216000] usb 4-1: USB disconnect, address 2
[ 1533.964000] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 1534.164000] usb 4-1: configuration #1 chosen from 1 choice
[ 1534.168000] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 1534.168000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232BM
[ 1534.168000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
irobot@ubuntu-laptop:~$
应该正常了 ,/dev 下也有相应的ttyUSB0
irobot@ubuntu-laptop:~$ ls /dev/ttyUSB*
/dev/ttyUSB0
irobot@ubuntu-laptop:~$
再打开putty,连接,正常
p.s.再转一篇关于采用FT232BM芯片的转接线安装笔记
http://www.cl.cam.ac.uk/research/dtg/research/wiki/USBtoRS232
Ubuntu下插上,发现发送指示灯每隔一段时间闪烁2次,于是安装终端putty来准备测试,当然是用sudo apt-get install putty来安装 ,然后打开串口 ttyUSB0 ,不料却提示无法打开。
查找信息:
irobot@ubuntu-laptop:~$ dmesg|tail
[ 81.604000] eth1: no IPv6 routers present
[ 134.068000] usb 5-5.3: USB disconnect, address 5
[ 139.192000] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 139.392000] usb 4-1: configuration #1 chosen from 1 choice
[ 139.396000] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 139.396000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232BM
[ 139.396000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 142.712000] usb 4-1: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 142.716000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 142.716000] ftdi_sio 4-1:1.0: device disconnected
irobot@ubuntu-laptop:~$
貌似与brltty冲突? 卸载 它 看看
irobot@ubuntu-laptop:~$ sudo apt-get remove brltty
[sudo] password for irobot:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
下列软件包将被【卸载】:
brltty brltty-x11
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件未被升级。
需要下载 0B 的软件包。
解压缩后将会空出 3781kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 96169 个文件和目录。)
正在删除 brltty-x11 ...
正在删除 brltty ...
irobot@ubuntu-laptop:~$
再插上转接线,发送指示灯不再闪烁了,查询:
irobot@ubuntu-laptop:~$ dmesg|tail
[ 139.396000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 142.712000] usb 4-1: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 142.716000] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 142.716000] ftdi_sio 4-1:1.0: device disconnected
[ 1502.216000] usb 4-1: USB disconnect, address 2
[ 1533.964000] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 1534.164000] usb 4-1: configuration #1 chosen from 1 choice
[ 1534.168000] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 1534.168000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232BM
[ 1534.168000] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
irobot@ubuntu-laptop:~$
应该正常了 ,/dev 下也有相应的ttyUSB0
irobot@ubuntu-laptop:~$ ls /dev/ttyUSB*
/dev/ttyUSB0
irobot@ubuntu-laptop:~$
再打开putty,连接,正常
p.s.再转一篇关于采用FT232BM芯片的转接线安装笔记
http://www.cl.cam.ac.uk/research/dtg/research/wiki/USBtoRS232