Skip to content

Instantly share code, notes, and snippets.

@nelaaro
Last active February 1, 2022 08:59
Show Gist options
  • Save nelaaro/9ac6fee4e8fdac9ee8fdd25aeb5456f8 to your computer and use it in GitHub Desktop.
Save nelaaro/9ac6fee4e8fdac9ee8fdd25aeb5456f8 to your computer and use it in GitHub Desktop.
12d1:14dc Huawei Technologies Co., Ltd. E33372 LTE/UMTS/GSM HiLink Modem/Networkcard, Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)
sudo usb_modeswitch -v 12d1 -p 1f01 -V 12d1 -P 14DC -J
# Bus 001 Device 028: ID 12d1:14dc Huawei Technologies Co., Ltd. E33372 LTE/UMTS/GSM HiLink Modem/Networkcard
# Bus 001 Device 027: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)
sudo usb_modeswitch -h 15s  Thu 23 Nov 2017 00:13:05 SAST
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.5.1 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
Usage: usb_modeswitch [<params>] [-c filename]
-h, --help this help
-e, --version print version information and exit
-j, --find-mbim return config no. with MBIM interface, exit
-v, --default-vendor NUM vendor ID of original mode (mandatory)
-p, --default-product NUM product ID of original mode (mandatory)
-V, --target-vendor NUM target mode vendor ID (optional)
-P, --target-product NUM target mode product ID (optional)
-C, --target-class NUM target mode device class (optional)
-b, --bus-num NUM system bus number of device (for hard ID)
-g, --device-num NUM system device number (for hard ID)
-m, --message-endpoint NUM direct the message transfer there (optional)
-M, --message-content <msg> message to send (hex number as string)
-2 <msg>, -3 <msg> additional messages to send (-n recommended)
-w, --release-delay NUM wait NUM ms before releasing the interface
-n, --need-response obsolete, no effect (always on)
-r, --response-endpoint NUM read response from there (optional)
-K, --std-eject send standard EJECT sequence
-d, --detach-only detach the active driver, no further action
-H, --huawei-mode apply a special procedure
-J, --huawei-new-mode apply a special procedure
-X, --huawei-alt-mode apply a special procedure
-S, --sierra-mode apply a special procedure
-O, --sony-mode apply a special procedure
-G, --gct-mode apply a special procedure
-N, --sequans-mode apply a special procedure
-A, --mobileaction-mode apply a special procedure
-T, --kobil-mode apply a special procedure
-L, --cisco-mode apply a special procedure
-B, --qisda-mode apply a special procedure
-E, --quanta-mode apply a special procedure
-F, --pantech-mode NUM apply a special procedure, pass NUM through
-Z, --blackberry-mode apply a special procedure
-U, --option-mode apply a special procedure
-R, --reset-usb reset the device after all other actions
-Q, --quiet don't show progress or error messages
-W, --verbose print all settings and debug output
-D, --sysmode specific result and syslog message
-s, --success <seconds> switching result check with timeout
-I, --inquire obsolete, no effect
-c, --config-file <filename> load long configuration from file
-t, --stdinput read long configuration from stdin
-f, --long-config <text> get long configuration from string
-i, --interface NUM select initial USB interface (default 0)
-u, --configuration NUM select USB configuration
-a, --altsetting NUM select alternative USB interface setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment