Sample Header Ad - 728x90

Trigger usb_modeswitch on boot for Huawei E3372 Modem

2 votes
2 answers
2484 views
I am trying to make a Huawei Brovi E3372-325 USB LTE model work with a Raspberry Pi. Out of the box, it shows as a CDROM when plugging it in. (This is apparently used to automatically run the driver installation on Windows.) So far, I found this post with a udev rules configuration file. That enables the modem when hotplugging it while the system is running by running usb_modeswitch. However, if the modem is plugged in on boot, it does not work, instead showing as a CD ROM. Therefore, I am now trying to write a system service to run usb_modeswitch on boot. As a step towards that, I booted with the modem plugged in and then tried executing the usb_modeswitch commands from the configuration file manually. However, that does not have the intended effect. The commands are /sbin/usb_modeswitch -v 3566 -p 2001 -W -R -w 400 /sbin/usb_modeswitch -v 3566 -p 2001 -W -R What do I need to do to make this work? Does the udev rules configuration trigger more actions that just the two listed commands? Or why do the seemingly same commands not have the same effect? **Update** Apparently, upon being powered on, the modem shows itself as a modem for a second, then switches to CDROM mode, but does not seem to accept commands switching it back to modem mode. The CDROM mode is intended for automatic driver installation in Windows. Though, that also means that when the driver is installed, the drive *can* be switched back to modem mode. So, it seems that usb_modeswitch and the Windows driver use different commands to switch to modem mode?
Asked by LiterallyCode (21 rep)
Mar 4, 2024, 12:04 AM
Last activity: Mar 8, 2024, 02:47 PM