hello there, i have inswalled usbmodeswitch binary for arm9.
my lsusb is:
root@arago:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 12d1:14fe Huawei Technologies Co., Ltd.
and whene i tried to do modeswitch:
root@arago:~# usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -M 55534243
123456780000000000000011060000000000000000000000000000 -W -H
Taking all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check disabled
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 003 on bus 002 ...
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 ...
No driver found. Either detached before or never attached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
Warning: ignoring MessageContent. Can't combine with special mode
-> Run lsusb to note any changes. Bye.
so i tried to do without message content
root@arago:~# usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -W -H
Taking all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
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 disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 003 on bus 002 ...
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 ...
No driver found. Either detached before or never attached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.
after this when i did lsusb still i get the same result.
what else can go wrong? my modem is not getting detected. and i dont know what else i can do as i m new to this.
Re: usb modeswitch for huawei e303c on arm9 board is not hap
after editing /etc/usb_modeswitch.d/12d1\
#Huawei E303C
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
WaitBefore=3
root@arago:~# usb_modeswitch -I -H -W -c /etc/usb_modeswitch.d/12d1\:14fe
Reading config file: /etc/usb_modeswitch.d/12d1:14fe
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------usb 2-1: USB disconnect, address 2
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
libusb:error [op_clear_halt] clear_halt failed error -1 errno 62
Error resetting endpoint: -34
Resetting message endpoint 0x01
Error resetting endpoint: -6
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Original device is gone already, not checking
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: new full speed USB device using ohci and address 3
usb 2-1: not running at top speed; connect to a high speed hub
scsi3 : usb-storage 2-1:1.4
scsi4 : usb-storage 2-1:1.5
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1506
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found target device 003 on bus 002
Target device description data
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Found correct target device
Mode switch succeeded. Bye.
root@arago:~# scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 3:0:0:0: Attached scsi generic sg0 type 5
sd 4:0:0:0: Attached scsi generic sg1 type 0
sd 4:0:0:0: [sda] Attached SCSI removable disk
wat exactly happening? when i gave lsusb it was still the same. there was no tty device found.
#Huawei E303C
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
WaitBefore=3
root@arago:~# usb_modeswitch -I -H -W -c /etc/usb_modeswitch.d/12d1\:14fe
Reading config file: /etc/usb_modeswitch.d/12d1:14fe
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------usb 2-1: USB disconnect, address 2
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
libusb:error [op_clear_halt] clear_halt failed error -1 errno 62
Error resetting endpoint: -34
Resetting message endpoint 0x01
Error resetting endpoint: -6
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Original device is gone already, not checking
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: new full speed USB device using ohci and address 3
usb 2-1: not running at top speed; connect to a high speed hub
scsi3 : usb-storage 2-1:1.4
scsi4 : usb-storage 2-1:1.5
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1506
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found target device 003 on bus 002
Target device description data
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Found correct target device
Mode switch succeeded. Bye.
root@arago:~# scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 3:0:0:0: Attached scsi generic sg0 type 5
sd 4:0:0:0: Attached scsi generic sg1 type 0
sd 4:0:0:0: [sda] Attached SCSI removable disk
wat exactly happening? when i gave lsusb it was still the same. there was no tty device found.
Re: usb modeswitch for huawei e303c on arm9 board is not hap
Your first attempt failed because you used the -H switch together with a switch message (-M), the switch -H is for old Huawei dongles.
usbmodeswitch does not create ttyUSBx devices, it only toggles the mode of the dongle.
install and load the option.ko driver which also may need the usb_wwan driver (loaded before option ! ) if you are on a fairly recent kernel. option.ko will create the ttyUSBx devices which you need in order to talk to the dongle.
usbmodeswitch does not create ttyUSBx devices, it only toggles the mode of the dongle.
install and load the option.ko driver which also may need the usb_wwan driver (loaded before option ! ) if you are on a fairly recent kernel. option.ko will create the ttyUSBx devices which you need in order to talk to the dongle.
Re: usb modeswitch for huawei e303c on arm9 board is not hap
thanks LOM i installed modules option.ko and usb_wwan.ko on arm9 board
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod
option.ko usb_wwan.ko
ti_usb_3410_5052.ko usbserial.ko
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod usbserial.k
o
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod usb_wwan.ko
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb_modeswitch configuration file:
vi /etc/12d1\:14fe
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
after that i tried doing modeswitch-
usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:14fe
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication wusb 2-1: USB disconnect, address 2
ith interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -6. Trying to continue
Resetting response endpoint 0x81
Error resetting endpoint: -6
Resetting message endpoint 0x01
Error resetting endpoint: -6
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Original device is gone already, not checking
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: new full speed USB device using ohci and address 3
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: not running at top speed; connect to a high speed hub
scsi3 : usb-storage 2-1:1.4
scsi4 : usb-storage 2-1:1.5
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 3:0:0:0: Attached scsi generic sg0 type 5
sd 4:0:0:0: [sda] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg1 type 0
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
No new devices in target mode or class found
Mode switch has failed. Bye.
if i do lsusb now i am not able to find usb device itself.
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
i am not able to crack it. trying this from past 2 weeks.
what is wrong with this?
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod
option.ko usb_wwan.ko
ti_usb_3410_5052.ko usbserial.ko
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod usbserial.k
o
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod usb_wwan.ko
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb_modeswitch configuration file:
vi /etc/12d1\:14fe
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
after that i tried doing modeswitch-
usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:14fe
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:14fe
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("dummy")
OK, driver "dummy" detached
Setting up communication wusb 2-1: USB disconnect, address 2
ith interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -6. Trying to continue
Resetting response endpoint 0x81
Error resetting endpoint: -6
Resetting message endpoint 0x01
Error resetting endpoint: -6
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Original device is gone already, not checking
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: new full speed USB device using ohci and address 3
Searching for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
usb 2-1: not running at top speed; connect to a high speed hub
scsi3 : usb-storage 2-1:1.4
scsi4 : usb-storage 2-1:1.5
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 3:0:0:0: Attached scsi generic sg0 type 5
sd 4:0:0:0: [sda] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg1 type 0
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
libusb:error [op_get_config_descriptor] open '/dev/bus/usb/002/003' failed, ret=-1 errno=2
libusb-compat error: usb_find_devices: couldn't initialize device 2.3 (error -5)
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
No new devices in target mode or class found
Mode switch has failed. Bye.
if i do lsusb now i am not able to find usb device itself.
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
i am not able to crack it. trying this from past 2 weeks.
what is wrong with this?
Re: usb modeswitch for huawei e303c on arm9 board is not hap
This looks like more basic failure and not something usb_modeswitch can fix. If lsusb cannot see the device, then the USB core has failed to enumerate and configure it. The device has crashed or is failing to reply, or there is a problem on the link, or the USB controller hardware or driver is failing.sakshi wrote: if i do lsusb now i am not able to find usb device itself.
root@arago:/lib/modules/2.6.33-rc4/kernel/drivers/usb/serial# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
i am not able to crack it. trying this from past 2 weeks.
what is wrong with this?
To eliminate the problems you can simply fix yourself:
Make sure the device is properly connected. If using a cable: Try another one. If not using a cable: Try using one (why? because small connector issues can be eliminated by changing the mating connector).
Are you sure your board is able to supply enough power? Many (all?) 3G/LTE modems can occasionally draw well above the USB2 maximum 500 mA. This is usually not a problem on a PC, where the ports typically survive 1A bursts without complaining. But many embedded systems cannot even supply 500 mA. Try using a powered USB hub and see if that makes any difference.
Re: usb modeswitch for huawei e303c on arm9 board is not hap
thanks guys. usb_modeswitch worked aftrer inserting option.ko usb_wwan.ko module.
http://www.sisalik.ee/janek/wp/arhiiv/223
refer this site for wvdial
http://www.sisalik.ee/janek/wp/arhiiv/223
refer this site for wvdial