i hope this is the right place to post to.
I found a way to make things work but it doesn't seem right...
- :~$ lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:001e Microsoft Corp. IntelliMouse Explorer
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 5986:0149 Acer, Inc
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
:~$ sudo usb_modeswitch -v 0x12d1 -p 0x1446 -V 0x12d1 -P 0x140c -m 0x01 -M "55534243123456780000000000000011060000000000000000000000000000"
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (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 ...
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 Technology
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 ...
OK, message successfully sent
Resetting response endpoint 0x81
Error resetting endpoint: -71
Resetting message endpoint 0x01
Error resetting endpoint: -19
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
:~$ lsusb |grep Huawei
Bus 003 Device 003: ID 12d1:140c Huawei Technologies Co., Ltd.
The setup only worked once out of the box, immediately after the install, but sadly i couldn't reproduce it.
lsusb showed me for the huawei device the adress 12d1:1446.
i tried to change my default-product via commandline to a specific target-product, that i had confirmed as 140c.
(confirmation by booting into windows and then restarting into ubuntu, the usb-stick that was still switched showed 140c in lsusb).
Since this value could also be found in the TargetProductList inside of /etc/usb_modeswitch.d/12d1:1446, i wondered if things worked properly at all.
So i changed that "TargetProductList" to "TargetProduct" and wrote "0x140c" as the single value, rebooted, but still no luck.
Then i searched a lot of threats, leading me to the one where they suggest to use:
sudo usb_modeswitch -v 0x12d1 -p 0x1446 -V 0x12d1 -P 0x140c -m 0x01 -M "55534243123456780000000000000011060000000000000000000000000000"
...and that worked right away.
I then compared this MessageContent hex with the one inside of /etc/usb_modeswitch.d/12d1:1446 , and they differed.
I then disabled the line and copied the new, working value inside. Still it wouldn't work.
So my question is, how does usb_modeswitch not work with this 12d1:1446-file when it perfectly does so when i type in the command?
And since i have literally no idea what i am doing (trial and error), is this MessageContent hex number okay to use or shouldn't i be doing this at all?
Heres the content of the edited "/etc/usb_modeswitch.d/12d1:1446" :
- ########################################################
# Huawei, newer modems
# TargetProductList="1001,1406,140b,140c,1412,141b,14ac"
DefaultVendor= 0x12d1
DefaultProduct=0x1446
TargetVendor= 0x12d1
TargetProduct= 0x140c
CheckSuccess=20
#MessageContent="55534243123456780000000000000011062000000100000000000000000000"
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
cheers p