Created
January 10, 2013 08:39
-
-
Save rehno-lindeque/4500517 to your computer and use it in GitHub Desktop.
Script to switch a Huawei Modem (E173 I think?) from Mass Storage to Modem in Ubuntu using usb_modeswitch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to switch a Huawei Modem from Mass Storage to Modem in Ubuntu using usb_modeswitch | |
# (after inserting usb, run repeatedly until device is switched to modem. | |
# If you wait too long device wont switch and you need to remove it, | |
# reconnect the usb device and run script again) | |
# Btw. If you stumble on this while looking for a solution to your Huawei modem problems... There may be better ways: | |
# https://help.ubuntu.com/community/DialupModemHowto/Huawei | |
# http://askubuntu.com/questions/179324/huawei-e173-on-ubuntu-12-04 | |
# http://ubuntuforums.org/showthread.php?t=1605484 | |
# etc... (there's tons of highly confusing info out there. good luck.) | |
# If this is successfull `lsusb | grep Huawei` should give you | |
# Bus 003 Device 075: ID 12d1:1436 Huawei Technologies Co., Ltd. | |
# instead of | |
# Bus 003 Device 077: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem) | |
# notice that it should be :1436 instead of :1446. Your particular make of modem might need a different number there. Happy hunting. | |
# PS this is ridiculously difficult, someone please please please patch ubuntu :) | |
sudo usb_modeswitch -v 0x12d1 -p 0x1446 -M 55534243000000000000000000000011060000000000000000000000000000 -V 0x12d1 -P 0x1436 -s 50 -m 0x01 | |
This looks worked for my Huawei TATA Docomo 3G thanks (Ubuntu 16.04)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much for this script! I upgraded to Ubuntu 15.04 and this is the only solution that made my Huawei E173 work again. The weird thing is, it worked out of the box in Ubuntu 14.10.