root@firewall:~ # usbconfig -d ugen1.2 dump_device_descugen1.2: <HUAWEIMOBILE HUAWEIMOBILE> at usbus1, cfg=1 md=HOST spd=FULL (12Mbps) pwr=ON (2mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0210 bDeviceClass = 0x0000 <Probed by interface class> bDeviceSubClass = 0x0000 bDeviceProtocol = 0x00ff bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x157c bcdDevice = 0x0102 iManufacturer = 0x0001 <HUAWEI_MOBILE> iProduct = 0x0002 <HUAWEI_MOBILE> iSerialNumber = 0x0003 <0123456789ABCDEF> bNumConfigurations = 0x0002
root@firewall:~ # usb_modeswitch -v 12d1 -p 157c -J -W -RTake all parameters from the command line * usb_modeswitch: handle USB devices with multiple modes * Version 2.4.0 (C) Josua Dietze 2016 * Based on libusb1/libusbx ! PLEASE REPORT NEW CONFIGURATIONS !DefaultVendor= 0x12d1DefaultProduct= 0x157cHuaweiNewMode=1Look for default devices ... found USB ID 0000:0000 found USB ID 0000:0000 found USB ID 0000:0000 found USB ID 0000:0000 found USB ID 0627:0001 found USB ID 12d1:157c vendor ID matched product ID matched Found devices in default mode (1)Access device 002 on bus 001Get the current device configuration ...Current configuration number is 2Use interface number 0Error: message endpoint not given or found. Abort