插上E1750后,可以看到E1750的ID信息:
- # lsusb
- Bus 001 Device 001: ID 1d6b:0002
- Bus 002 Device 001: ID 1d6b:0002
- Bus 001 Device 003: ID 12d1:1446
挂在usbfs:
- # mount -t usbfs none /proc/bus/usb
在/dev下还没有E1750转换成的tty串口设备
- # ls dev/tty
- dev/tty dev/tty17 dev/tty26 dev/tty35 dev/tty44 dev/tty53 dev/tty62
- dev/tty0 dev/tty18 dev/tty27 dev/tty36 dev/tty45 dev/tty54 dev/tty63
- dev/tty1 dev/tty19 dev/tty28 dev/tty37 dev/tty46 dev/tty55 dev/tty7
- dev/tty10 dev/tty2 dev/tty29 dev/tty38 dev/tty47 dev/tty56 dev/tty8
- dev/tty11 dev/tty20 dev/tty3 dev/tty39 dev/tty48 dev/tty57 dev/tty9
- dev/tty12 dev/tty21 dev/tty30 dev/tty4 dev/tty49 dev/tty58 dev/ttyS0
- dev/tty13 dev/tty22 dev/tty31 dev/tty40 dev/tty5 dev/tty59 dev/ttyS1
- dev/tty14 dev/tty23 dev/tty32 dev/tty41 dev/tty50 dev/tty6 dev/ttyS2
- dev/tty15 dev/tty24 dev/tty33 dev/tty42 dev/tty51 dev/tty60 dev/ttyS3
- dev/tty16 dev/tty25 dev/tty34 dev/tty43 dev/tty52 dev/tty61
使用usb_modeswitch转换模块:
1>出现错误:
USB error: error sending control message: Protocol error
Error: getting the current configuration failed (error -71). Aborting.
- # ./usb_modeswitch -W -c usb_modeswitch.conf
- Reading config file: usb_modeswitch.conf
- * usb_modeswitch: handle USB devices with multiple modes
- * Version 1.1.6 (C) Josua Dietze 2010
- * Based on libusb0 (0.1.12 and above)
- ! PLEASE REPORT NEW CONFIGURATIONS !
- DefaultVendor= 0x12d1
- DefaultProduct= 0x1446
- TargetVendor= 0x12d1
- TargetProduct= 0x1001
- TargetClass= not set
- TargetProductList=""
- DetachStorageOnly=0
- HuaweiMode=0
- SierraMode=0
- SonyMode=0
- GCTMode=0
- KobilMode=0
- MessageEndpoint= not set
- MessageContent="55534243123456780000000000000011060000000000000000000000000000"
- NeedResponse=0
- ResponseEndpoint= not set
- Interface=0x00
- InquireDevice enabled (default)
- Success check enabled, max. wait time 5 seconds
- System integration mode disabled
- usb_set_debug: Setting debugging level to 15 (on)
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 001 on 002
- usb_os_find_devices: Found 003 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 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- searching devices, found USB ID 1d6b:0002
- No devices in target mode or class found
- Looking for default devices ...
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- found matching product ID
- adding device
- searching devices, found USB ID 1d6b:0002
- Found devices in default mode, class or configuration (1)
- Accessing device 003 on bus 001 ...
- Getting the current device configuration ...
- USB error: error sending control message: Protocol error
- Error: getting the current configuration failed (error -71). Aborting.
- # ./usb_modeswitch -W -c usb_modeswitch.conf
- Reading config file: usb_modeswitch.conf
- * usb_modeswitch: handle USB devices with multiple modes
- * Version 1.1.6 (C) Josua Dietze 2010
- * Based on libusb0 (0.1.12 and above)
- ! PLEASE REPORT NEW CONFIGURATIONS !
- DefaultVendor= 0x12d1
- DefaultProduct= 0x1446
- TargetVendor= 0x12d1
- TargetProduct= 0x1001
- TargetClass= not set
- TargetProductList=""
- DetachStorageOnly=0
- HuaweiMode=0
- SierraMode=0
- SonyMode=0
- GCTMode=0
- KobilMode=0
- MessageEndpoint= not set
- MessageContent="55534243123456780000000000000011060000000000000000000000000000"
- NeedResponse=0
- ResponseEndpoint= not set
- Interface=0x00
- InquireDevice enabled (default)
- Success check enabled, max. wait time 5 seconds
- System integration mode disabled
- usb_set_debug: Setting debugging level to 15 (on)
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 003 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 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- searching devices, found USB ID 1d6b:0002
- No devices in target mode or class found
- Looking for default devices ...
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- found matching product ID
- adding device
- searching devices, found USB ID 1d6b:0002
- Found devices in default mode, class or configuration (1)
- Accessing device 003 on bus 001 ...
- Getting the current device configuration ...
- USB error: error sending control message: Protocol error
- Error: getting the current configuration failed (error -71). Aborting.
2>重启系统后在使用usb_modeswitch转换成功
- # ./usb_modeswitch -W -c usb_modeswitch.conf
- Reading config file: usb_modeswitch.conf
- * usb_modeswitch: handle USB devices with multiple modes
- * Version 1.1.6 (C) Josua Dietze 2010
- * Based on libusb0 (0.1.12 and above)
- ! PLEASE REPORT NEW CONFIGURATIONS !
- DefaultVendor= 0x12d1
- DefaultProduct= 0x1446
- TargetVendor= 0x12d1
- TargetProduct= 0x1001
- TargetClass= not set
- TargetProductList=""
- DetachStorageOnly=0
- HuaweiMode=0
- SierraMode=0
- SonyMode=0
- GCTMode=0
- KobilMode=0
- MessageEndpoint= not set
- MessageContent="55534243123456780000000000000011060000000000000000000000000000"
- NeedResponse=0
- ResponseEndpoint= not set
- Interface=0x00
- InquireDevice enabled (default)
- Success check enabled, max. wait time 5 seconds
- System integration mode disabled
- usb_set_debug: Setting debugging level to 15 (on)
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 001 on 002
- usb_os_find_devices: Found 003 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 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- searching devices, found USB ID 1d6b:0002
- No devices in target mode or class found
- Looking for default devices ...
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 12d1:1446
- found matching vendor ID
- found matching product ID
- adding device
- searching devices, found USB ID 1d6b:0002
- Found devices in default mode, class or configuration (1)
- Accessing device 003 on bus 001 ...
- Getting the current device configuration ...
- OK, got current device configuration (1)
- Using endpoints 0x01 (out) and 0x81 (in)
- Using endpoints 0x01 (out) and 0x81 (in)
- Inquiring device details; driver will be detached ...
- Looking for active driver ...
- OK, driver found ("usb-storage")
- OK, driver "usb-storage" detached
- SCSI inquiry data (for identification)
- -------------------------
- Vendor String: HUAWEI
- Model String: Mass Storage
- Revision String: 2.31
- -------------------------
- USB error: error sending controlusb 1-2: usbfs: process 1420 (usb_modeswitch) di
- d not claim interface 0 before use
- message: Connection timed out
- Error: could not get description string "manufacturer"
- USB deusb 1-2: USB disconnect, address 3
- scription data (for identification)
- -------------------------
- Manufacturer:
- Product: HUAWEI Mobile
- Serial No.: not provided
- -------------------------
- Setting up communication with interface 0 ...
- Using endpoint 0x01 for message sending ...
- Trying to send message 1 to endpoint 0x01 ...
- USB error: error reaping URB: No such device
- Device seems to have vanished right after sending. Good.
- Device is gone, skipping any further commands
- Checking for mode switch (max. 5 times, once per second) ...
- Searching for target devices ...
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 001 on 002
- usb_os_find_devices: Found 001 on 001
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 1d6b:0002
- usb 1-2: new high speed USB device using ehci-omap and address 4
- Searching for target devices ...
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 001 on 002
- usb 1-2: New USB device found, idVendor=12d1, idProduct=1001
- usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
- usb 1-2: Product: HUAWEI Mobile
- usb 1-2: Manufacturer: HUAWEI Technology
- option 1-2:1.0: GSM modem (1-port) converter detected
- usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
- option 1-2:1.1: GSM modem (1-port) converter detected
- usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
- option 1-2:1.2: GSM modem (1-port) converter detected
- usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
- scsi5 : usb-storage 1-2:1.3
- scsi6 : usb-storage 1-2:1.4
- usb_os_find_devices: Found 001 on 001
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 1d6b:0002
- Searching for target devices ...
- usb_os_find_busses: Found 002
- usb_os_find_busses: Found 001
- usb_os_find_busses: Skipping non bus directory devices
- usb_os_find_devices: Found 001 on 002
- usb_os_find_devices: Found 004 on 001
- usb_os_find_devices: Found 001 on 001
- error obtaining child information: Inappropriate ioctl for device
- searching devices, found USB ID 1d6b:0002
- searching devices, found USB ID 12d1:1001
- found matching vendor ID
- found matching product ID
- adding device
- searching devices, found USB ID 1d6b:0002
- Found target device, now opening
- Found target device 004 on bus 001
- Target device description data
- -------------------------
- Manufacturer: HUAWEI Technology
- Product: HUAWEI Mobile
- Serial No.: not provided
- -------------------------
- Found correct target device
- Mode switch succeeded. Bye.
又打印出disconnect的信息:
- # scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
- hub 1-0:1.0: port 2 disabled by hub (EMI?), re-enabling...
- usb 1-2: USB disconnect, address 4
- option: option_instat_callback: error -108
- option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
- option 1-2:1.0: device disconnected
- option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
- option 1-2:1.1: device disconnected
- option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
- option 1-2:1.2: device disconnected
有时会出现这个这个错误:
这个问题搞了好久了,还不知道是哪里的问题,如果有那个大虾知道是什么原因的话,请指定指点,谢谢……
阅读(7436) | 评论(5) | 转发(1) |