|
TQ-lkp 发表于 2013-3-18 17:21
要使用lsusb来查看设备的具体制造商ID和模块ID比如我用的是HUAWEI EC1260模块,插系统后,先显示
Bus 004 De ...
你好 请问切换模式以后为什么找不到ttyUSB0之类的设备号??
[root@EmbedSky /]# usb_modeswitch -W -v 12d1 -p 1da1 -V 12d1 -P 1da1 -D 0 -H 1
Taking all parameters from the command line
* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.3 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1da1
TargetVendor= 0x12d1
TargetProduct= 0x1da1
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check disabled
System integration mode enabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 1d6b:0001
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 12d1:1446
found matching vendor ID
searching devices, found USB ID 1d6b:0001
No devices in default mode or class found. Nothing to do. Bye.
[root@EmbedSky /]# usb_modeswitch -W -v 1d6b -p 0001 -V 12d1 -P 1446 -D 0 -H 1
Taking all parameters from the command line
* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.3 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x1d6b
DefaultProduct= 0x0001
TargetVendor= 0x12d1
TargetProduct= 0x1446
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check disabled
System integration mode enabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 12d1:1446
searching devices, found USB ID 1d6b:0001
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 001 on bus 001 ...
Not a storage device, skipping SCSI inquiry
USB description data (for identification)
-------------------------
Manufacturer: Linux 2.6.30.4-EmbedSky ohci_hcd
Product: S3C24XX OHCI
Serial No.: s3c24xx
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.
|
|