Sideway 2008.05.16
email:xtadw@yahoo.com.cn
不
知是什么考虑,现在就连商用笔记本绝大多数都没有串口,但对于网管来说串口在目前来说仍是不可或缺的管理网络设备的通讯端口,比如常见的思科交换机就需要
通过串口来进行管理。大多数商用笔记本自身不带串口,但可以通过端口复制器来提供串口,这玩意好虽好但价格太贵,相信没有多少人会买这玩意。为了节约闹革
命去电脑市场淘了一个USB转串口的玩意,非常便宜,一般人都能承受。在windows下,它需要安装驱动,使用还算好,但有时会出现无法连接等情况,可
能是虚拟串口造成的稳定性不好的原因。在linux下摸索了一翻,发现比在windows下好用得多,在我的FC8下插上就能用,不需要安装驱动,以下是
我的简单使用配置步骤供大家参考。
#lsusb -v
=====================================================
Bus 003 Device 003: ID 058f:9720 Alcor Micro Corp. USB-Serial Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x058f Alcor Micro Corp.
idProduct 0x9720 USB-Serial Adapter
bcdDevice 0.00
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 1.10
CDC Call Management:
bmCapabilities 0x01
call management
bDataInterface 1
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
=====================================================
# lsmod
=====================================================
Module Size Used by
pl2303 20933 0
usbserial 30889 1 pl2303 (这应该就是驱动了,使用了pl2303)
=====================================================
#ls /dev/tty*
可以看到多了一个ttyUSB0设备(如果拨下来第二次插会变成了ttyACM0,需根据实际情况作相应修改)
#minicom -s
=====================================================
在菜单中选择:Serial port setup
按A键修改Serial Device,改成:/dev/ttyUSB0
按E键修改Bps/Par/Bits,改成:9600 8N1
按F键修改Hardware Flow Control,改成:No
修改完成后在主菜单中选择“Exit”就可以返回minicom,按回车键即可连入交换机
=====================================================
阅读(1230) | 评论(0) | 转发(0) |