[root@kindle sbin]# ./usb_modeswitch --help
Code:
* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
Usage: usb-modeswitch [-hvpVPmMrdHn] [-c filename]
-h, --help this help
-e, --version print version number and exit
-v, --default-vendor NUM vendor ID to look for (mandatory)
-p, --default-product NUM product ID to look for (mandatory)
-V, --target-vendor NUM target vendor (optional, for success check)
-P, --target-product NUM target model (optional, for success check)
-C, --target-class NUM target device class
-m, --message-endpoint NUM where to direct the message (optional)
-M, --message-content <msg> command to send (hex number as string)
-2 <msg>, -3 <msg> additional commands to send
-n, --need-response read a response to the message transfer
-r, --response-endpoint NUM where from read the response (optional)
-d, --detach-only just detach the storage driver
-H, --huawei-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
-R, --reset-usb reset the device in the end
-c, --config <filename> load different config file
-Q, --quiet don't show progress or error messages
-W, --verbose print all settings before running
-D, --sysmode specific result and syslog message
-s, --success NUM check switching result after NUM secs
-I, --no-inquire do not get device details (default on)
-i, --interface NUM select initial USB interface (default 0)
-u, --configuration NUM select USB configuration
-a, --altsetting NUM select alternative USB interface setting
Looks helpful.