How To Reset Huawei Dongle E3372

3 views
Skip to first unread message

Anais Wachowski

unread,
Aug 4, 2024, 11:18:38 PM8/4/24
to biastovtulor
Ihave a huawei e3372 4g/wifi dongle and I used it in combination with a mobile data sim card. I plug it into my computer and now I can surf the web using the 4g mobile data. I remote control this computer via Teamviewer, so I don't have physical access to it easily.

I want to use this sim card in order to get different IP addresses. If I remove the Huawei dongle and insert it back again, then I do get a new IP address. I want to be able to get a new IP address by remote controlling the computer via Teamviewer. So every time I have to ask my family member to remove the dongle and insert it back again. But if I turn off the connection from the dongle by going to control panel> network and internet > network and sharing center > change adapter settings > right click > disable and then enable again, then I don't get a new IP address. Also when I turn off the USB ports via device manager, I also don't get a new IP address. Also when I remotely restart the computer, then I also don't get a new IP address.


These are the packages I use to get my Huawei e3276 working. The ones marked * are optional. usbreset to help trigger, well, a usb reset of the device if it fails to modeswitch. udev I think has something to do with hotplugging, bit I'm not sure. Also, I am unclear if all these packages are strictly required - trying to get some clarity on this as the NCM functionality may be provided by multiple packages at the same time. Could cause conflict?


Issuing "ifup wan" is required if the dongle is plugged in after boot. Not required if plugged in prior to boot. I added in the delay line to allow the dongle to get a signal / sort itself out prior to trying to initiate the openwrt workings. I had it as high as 30 to allow things to settle.


As far as I understand the problem is:

ncm.sh tries to identify the manufacturer via gcom, but does not receive any response from the modem.

Due to the empty response it does not choose a correct initialization command to send to the modem.

It then sends an empty string as initialization and nothing happens.


However, once I plug the stick in, an interface wwan0 shows up. If I configure that as dhcp and initiate the connection with

echo -e "AT^NDISDUP=1,1,\"drei.at\"\r" > /dev/cdc-wdm0

then everything works fine.


3. In current trunk both the proto 'wwan' and proto 'ncm' do not work for me. With the above minimum package selection they are not even installed. (The package comgt-ncm would provide everything if someone wants to test)

See the issue I filed for details: github .com/openwrt/openwrt/issues/84 (sorry, no links allowed)

Therefore I decided to brew my own connection script, it is rather quick&dirty, but works fine so far.


and because my provider disconnects every 24h, I have a daily 5AM reboot in my crontab.

(Disconnecting and reconnecting the Stick with AT^NDISDUP=1,0 and 1,1 does not get it reconnected. Sending AT^RESET does as it reboots the stick, but I thought a daily router-reboot might be good anyway)

3a8082e126
Reply all
Reply to author
Forward
0 new messages