First I have to say thank you for the usb_modeswitch module and support.
I have been tried few weeks, but it still doesn't work for Huawei E1750 3G dongle on mips embedded Linux.
The following log shows below seems translate to modem mode from storage mode succeed.
Code: Select all
/apps/usr/local/sbin # ./usb_modeswitch -W -c usb_modeswitch.conf
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
Reading config file: usb_modeswitch.conf
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= 0x1001
TargetClass= not set
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint=0x01
MessageContent="55534243000000000000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check enabled, settle time 5 seconds
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 ...
No devices in targe[ 464.244000] usb 1-1: USB disconnect, address 2
t mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 002 on bus 001 ...
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
Received inquiry data (detailed identification)
-------------------------
Vendor String: HUAWEI
Product String: Mass Storage
Revision String: 2.31
-------------------------
Device description data (identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
USB error: could not clear/halt ep 1: Protocol error
Device is gone, skipping further steps ...
Checking for mode switch after 5 seconds settling time ...
smbapp signal SIGUSR1
remove disk /devices/platform/EHCI-brcm.0/usb1/1-1/1-1:1.1/host1/target1:0:0/1:0:0:0/block/sda
hotplugRemove /dev/sda not removed for some reason
[ 468.239000] usb 1-1: new high speed USB device using EHCI-brcm and address 3
[ 468.356000] usb 1-1: New USB device found, idVendor=12d1, idProduct=1001
[ 468.357000] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 468.358000] usb 1-1: Product: HUAWEI Mobile
[ 468.359000] usb 1-1: Manufacturer: HUAWEI Technology
[ 468.360000] usb 1-1: configuration #1 chosen from 1 choice
[ 468.368000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 468.371000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 468.382000] option 1-1:1.1: GSM modem (1-port) converter detected
[ 468.388000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 468.398000] option 1-1:1.2: GSM modem (1-port) converter detected
[ 468.408000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 468.418000] usb-storage: probe of 1-1:1.3 failed with error -1
[ 468.452000] usb-storage: probe of 1-1:1.4 failed with error -1
USB error: failed to open /proc/bus/usb/001/002: No such file or directory
USB error: could not claim interface 0: Bad file descriptor
Original device can't be accessed anymore. Good.
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Found a new device in target mode or class
Mode switch succeeded. Bye.
Sometimes it shows as:
Code: Select all
/usr/local/sbin # pppd file wcdma
timeout set to 12 seconds
expect (^M)
^BOOT:32136169,0,0,0,26^M
-- got it
send (ABORT^M)
expect (NO CARRIER)
warning: read() on stdin returned 0
Failed
Can't restore terminal parameters: Input/output error
Connect script failed
Code: Select all
NO CARRIER
-- failed
Failed (NO CARRIER)
Connect script failed
Can't get terminal parameters: Input/output error
Thanks for your support!