3G上网卡如何显示虚拟串口
中兴AC580插入USB口后,虚拟串口循环的断开、连接,我猜测是CD-ROM没有退出,但不知道怎么做,请高人指点下,谢谢!
以下是打印信息:
bash-3.2# usb 1-1: new full speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using fsl-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1:1.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
scsi1 : SCSI emulation for USB Mass Storage devices
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: CD-ROM ZTE Corp USB Storage 2.31 PQ: 0 ANSI: 2
scsi 2:0:0:0: Direct-Access ZTE Corp USB Storage 2.31 PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] Attached SCSI removable disk
Modem一般是USB接口或者串口的,由于历史原因,USB接口一般会转成虚拟串口。
你的情况是要么modem有问题,要么驱动有问题。USB modem的驱动是开源的比较稳定,怀疑硬件接触不良,硬件问题的可能性比较大。 usb/storage/usb.c我跟了一下代码,在usb_stor_acquire_resources()函数里,有这么一句:"p=us->unusual_dev->initFunction(us);"它返回的是-19,导致"goto BadDevice;"
事实上,在usb/storage/Initializer.c 中的初始化函数中显示返回"0", 不知道为什么??
要小工具 usb_modeswitch 1.0.2 切换其倒霉的USB工作状态 。
你 google 一下sb_modeswitch 1.0.2 。