Hi Josh. I'm back !
Seems like I managed to fix that problem (after 1 week struggling!). Now I can call usb_modeswitch. But I'm not sure if I'm calling it right. Could you please help me. I try to explain it pretty clear.
lsusb shows below line for my device before running usb_modeswitch :
Bus 001 Device 006: ID 12d1:1f01 Huawei Technologies Co., Ltd.
I called usb_modeswitch with -v and -p like this:
/home/usb_modeswitch451 -v 12d1 -p 1f01
And it gives:
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 006 on bus 001
Current configuration number is 1
Use interface number 0
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI HiLink
Serial No.: not provided
-------------------------
Warning: no switching method given. See documentation
-> Run lsusb to note any changes. Bye!
Now lsusb still shows :
Bus 001 Device 006: ID 12d1:1f01 Huawei Technologies Co., Ltd.
Which is not right because it's still in default mode I guess.
I tried to run sub_modeswitch with --huawei-new-mode like this:
/home/usb_modeswitch451 -v 12d1 -p 1f01 -J
But it gives:
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 006 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI HiLink
Serial No.: not provided
-------------------------
Using standard Huawei switching message
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reset response endpoint 0x81
Could not reset endpoint (probably harmless): -99
Reset message endpoint 0x01
Could not reset endpoint (probably harmless): -99
-> Run lsusb to note any changes. Bye!
Those last lines show -99 . I don't think that's right.
I'm not sure if it's mode has changed successfully and I highly doubt that specially since after running above command lsusb doesn't show anything anymore.
So could you help? What am I doing wrong? I decided not to use a .conf file and use other arguments cause it's much simpler this way. Could that be a problem?
Edit: After running last command when I run that command again it shows:
Look for default devices ...
No devices in default mode found. Nothing to do. Bye!
But I kind of don't believe it! .How can I be sure that it has really changed ?
BTW I changed the binary name usb_modeswitch to usb_modeswitch451 (which shows the version of arm-linux-gcc that this binary was created with) and I don't think it could be a problem.