I am working with Huawei E3372 dongle on linux-yocto-4.9. Version of Usb_modeSwitch is "2.2.0"
my device is not able to detect Huawei dongle automatically to usb modem. Instead of dongle get detected as storage device.
However, when I start usb_modeswitch manually, I am able to convert it.
Code: Select all
usb_modeswitch -v 12d1 -p 157c -J
Code: Select all
usb_modeswitch -v 12d1 -p 157c -J
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 002 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
Product: HUAWEI_MOBILE
Serial No.: 0123456789ABCDEF
-------------------------
Using standard Huawei switching message
Looking for active driver ...
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
Reset response endpoint 0x81
Reset message endpoint 0x01
usb 1-1: USB disconnect, device number 2
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
~# usb 1-1: new high-speed USB device number 3 using ci_hdrc
huawei_cdc_ncm 1-1:1.2: MAC-Address: 00:1e:10:1f:00:00
huawei_cdc_ncm 1-1:1.2: setting rx_max = 16384
huawei_cdc_ncm 1-1:1.2: NDP will be placed at end of frame for this device.
huawei_cdc_ncm 1-1:1.2: cdc-wdm0: USB WDM device
huawei_cdc_ncm 1-1:1.2 wwan0: register 'huawei_cdc_ncm' at usb-ci_hdrc.0-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
usb-storage 1-1:1.3: USB Mass Storage device detected
scsi host0: usb-storage 1-1:1.3
usb-storage 1-1:1.4: USB Mass Storage device detected
scsi host1: usb-storage 1-1:1.4
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Step1 : /lib/udev/rules.d/40-usb_modeswitch.rules
Added TTR{idVendor}=="12d1", ATTR{idProduct}=="157c", RUN+="usb_modeswitch '%b/%k'"
Step2 : /lib/udev/usb_modeswitch
Shell Script is present at this location.
Step 3: /usr/sbin/usb_modeswitch_dispatcher
This file is also present
Step 4: /etc/usb_modeswitch.conf
Code: Select all
DisableSwitching=0
EnableLogging=0
#SetStorageDelay=4
Step5. /usr/share/usb_modeswitch
Code: Select all
-rw-r--r-- 1 root root 77 Mar 20 10:40 /usr/share/usb_modeswitch/12d1:157c
Code: Select all
TargetVendor=0x12d1
TargetProduct=0x157c
MessageContent="55534243123456780000000000000011063000000100010000000000000000"
Binary Program is present.
Please help me with this issue