I have an alcatel lte dongle, I have been using it for months
when I first started using it I had to run the following commands every time in order to get it to modewitch
Code: Select all
sudo modprobe usbserial vendor=0x1bbb product=0x0195
sudo usb_modeswitch -W -v 1bbb -p f000 -V 1bbb -P 0195 --message-content 55534243123456788000000080000606f50402527000000000000000000000
and then at somepoint months ago, something happened (I'm not sure what) that made the dongle autoswitch on boot, aslong as usb-modeswitch and ModemManager were installed
I tried to use it the other day only to find it had got itself stuck in firmware update mode, address is now 1bbb:007a
and i can't find any firmware online anywhere for it
if anyone can help me out with this i'd appreciate it
anyway I now have a huawei dongle, and it doesn't behave the same way as the Alcatel dongle
it has three modes afaik
Code: Select all
12d1:1f1e
12d1:157f
12d1:1592
so each time I have to boot then
Code: Select all
sudo usb_modeswitch -v 12d1 -p 1f1e -M 55534243123456780000000000000011062000000101000100000000000000
then
sudo ModemManager
then
sudo NetworkManager
is there a way to get it to auto switch on boot?
also when I manually mode switch it from 12d1:1f1e to 12d1:157f
I see this
Code: Select all
# sudo usb_modeswitch -v 12d1 -p 1f1e -M 55534243123456780000000000000011062000000101000100000000000000
Look for default devices ...
Found devices in default mode (1)
Access device 007 on bus 002
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 8
Use endpoints 0x01 (out) and 0x81 (in)
Looking for active drivers ...
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
Read the response to message 1 (CSW) ...
Response reading failed (error -1)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
if I try and switch it to the third mode I see this
Code: Select all
# sudo usb_modeswitch -v 12d1 -p 157f -M 55534243123456780000000000000011062000000101000100000000000000
Look for default devices ...
Found devices in default mode (1)
Access device 008 on bus 002
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort
Code: Select all
# sudo modprobe usbserial vendor=0x12d1 product=0x1592
# sudo usb_modeswitch -W -v 12d1 -p 1f1e -V 12d1-P 1592 --message-content 55534243123456780000000000000011062000000101000100000000000000
Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.0 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1f1e
TargetVendor= 0x12d1
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
found USB ID 0000:3825
found USB ID 12d1:157f
vendor ID matched
found USB ID 1a40:0101
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
No devices in default mode found. Nothing to do. Bye!
# sudo usb_modeswitch -W -v 12d1 -p 157f -V 12d1-P 1592 --message-content 55534243123456780000000000000011062000000101000100000000000000
Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.0 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x157f
TargetVendor= 0x12d1
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
found USB ID 0000:3825
found USB ID 12d1:157f
vendor ID matched
product ID matched
found USB ID 1a40:0101
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 008 on bus 002
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort
# lsusb
Bus 002 Device 008: ID 12d1:157f Huawei Technologies
Thanks