我有两台笔记本,一台装的是RHEL6_64bit,不带串口; 另一台装的是CENTOS5.4,带串口。工作的关系要用到USB转串口线。
查过网上说,linux内核自带usb转串口驱动,当我把USB串口线接入时,确实都有/dev/ttyUSB0出来。
现在的问题是,在使用minicom时,(已经用minicom -s设置过),RHEL6,显示online, 但没有任何登录信息提示出来,而centos5.4使用usb转串口线时,也是一样,没有登录信息提示。而使用centos5.4本本自带的串口时(minicom -s 更改了指向ttyS0),其它参数不变,就可以看到登录信息了!
这是怎么回事?改怎样使用usb转串口线呢?
gogo11 于 2011-07-12 11:51:18发表:
Invalid argument???设置有误?
yrj8008037241 于 2011-07-12 11:26:45发表:
:0wmjh(1
ryonji 于 2011-07-10 08:11:57发表:
另外,我是用串口线联接IBM的275工作站,baud一直设得是9600.
ryonji 于 2011-07-10 08:10:41发表:
/dev目录里原本已有ttyS0-ttyS4,用root权限查看,
setserial ttyS0 -a ;
ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test auto_irq
但 setserial ttyUSB0 -a ; 就显示
Cannot get serial info: Invalid argument
ryonji 于 2011-07-10 08:07:11发表:
usb 1-1.1: new full speed USB device using ehci_hcd and address 5
usb 1-1.1: New USB device found, idVendor=067b, idProduct=2303
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.1: Product: USB 2.0 To COM Device
usb 1-1.1: Manufacturer: Prolific Technology Inc.
usb 1-1.1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
pl2303 1-1.1:1.0: pl2303 converter detected
usb 1-1.1: pl2303 converter now attached to ttyUSB0
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
用dmesg查是这样显示的,应该是识别到了吧,同时/dev下也自动生成了ttyUSB0
fengchen_linux 于 2011-07-09 14:50:19发表:
转接线是什么芯片?确定内核有驱动吗
alick 于 2011-07-09 10:51:47发表:
我在 fedora 14下用过USB转串口线,没遇到问题~~~