If your 4G dongle keeps disconnecting, first find out whether the USB device vanished, the network interface went down, or the cellular session simply lost Internet access. This guide ranks the common causes for Huawei E3372 HiLink-style proxy farms and gives you a check command, a fix, and a success test for each one.
Before you start
You need SSH access to the Raspberry Pi or Linux box, the name of the affected interface, and access to the dongle’s management page if it has one. For a HiLink device, Linux often sees a network interface rather than a traditional dial-up modem, so do not assume that a missing ttyUSB device means the dongle is dead.
If several devices are affected, label them by USB port, hub port, SIM, and interface name. A simple map such as hub-1/port-3 → eth2 → SIM-B makes patterns visible when a farm grows.
Start with a baseline:
date -Is
lsusb
ip -br link
ip route
Write down the interface associated with the dongle. Replace <iface> in the examples below with that name. If the problem is intermittent, leave a terminal running with sudo journalctl -k -f while you test. The -k option shows kernel messages, which is useful for separating USB events from ordinary network changes.
Step 1: Check power and hubs
Power is the first check in a multi-dongle farm because several sticks can draw current at the same time, especially while registering or transferring data. Raspberry Pi’s USB documentation notes that USB power is limited and specifically recommends a powered hub when insufficient power may be the cause; it lists 1,200 mA total for Raspberry Pi 2, 3, and 4 USB ports, and different limits for Raspberry Pi 5 power supplies. Check the board and supply you actually use rather than relying on a generic USB charger.
Inspect the USB topology and recent errors:
lsusb -t
dmesg -T | grep -Ei 'usb|xhci|over.current|reset|disconnect|error'
If every dongle on one hub drops together, suspect the hub power supply, upstream cable, or hub itself. If only one port drops, move that dongle to a different port without changing anything else. Use a self-powered hub with a supply sized for the complete load, keep the upstream cable short, and do not stack several unpowered hubs.
On a Raspberry Pi, also check for power-related throttling information when the command is available:
vcgencmd get_throttled
Run the test with one dongle, then with the normal number of dongles. Watch for the device list and logs while traffic is active:
watch -n 5 lsusb
Success looks like: the affected device remains in lsusb, the interface remains present, and adding normal traffic no longer creates USB reset or disconnect messages. For a deeper hardware layout, see 4G Proxy Farm Setup: Hardware, Power and Software.
Step 2: Reduce heat around the dongle
Heat can make a small USB modem unreliable even when the USB connector and SIM are seated correctly. Do not test a crowded row of dongles inside a closed box and then blame the carrier. Give each stick air space, keep it away from the Pi’s hottest components, and use a short extension cable if it helps separate the radio from the hub.
On a Raspberry Pi, read the board temperature like this:
watch -n 5 vcgencmd measure_temp
On a Linux system without vcgencmd, this reports the thermal-zone reading in millidegrees Celsius when the file exists:
watch -n 5 'awk "{printf \"%.1f C\\n\", \$1/1000}" /sys/class/thermal/thermal_zone0/temp'
The number is the host’s sensor reading, not the dongle’s internal temperature. Use it to spot a rising trend while the farm is busy. If the dongle has a web management page, check whether it reports radio or device temperature, but do not compare vendor-specific readings as if they used the same scale.
Cool the setup, then repeat the same traffic test. If the problem appears only after the hardware has warmed up, improve airflow before changing APN or routing settings. Keep the cooling change in place while you repeat the same load test.
Success looks like: the temperature trend stays steady during the test and the dongle remains visible after the same amount of traffic and runtime that previously triggered a drop.
Step 3: Check signal, SIM seating, and band selection
A weak or rapidly changing radio connection can make the Internet session disappear while the USB device stays connected. That is a different failure from a physical USB reset. Check the dongle’s management page for registration state, received signal information, and the current mobile network. The page address varies by firmware and configuration, so use the address shown by your device rather than assuming one fixed private IP.
From Linux, compare the link and route before and during a failure:
ip -br link show <iface>
ip -4 addr show dev <iface>
ip route
curl --interface <iface> --max-time 10 -fsS -o /dev/null -w '%{http_code}\n' https://example.com/
If the interface is still up but the HTTPS check fails, inspect the HiLink page for registration or data-session changes. Reseat the SIM, check the antenna connectors, and move the dongle to a position with less obstruction and less electrical noise from the Pi and hub. Test one physical change at a time.
Only change a preferred band after checking what the SIM and carrier plan support. A band setting that works in one location may prevent registration in another. Do not use band changes as a way to bypass carrier restrictions.
If NetworkManager manages the interface, its official command-line tool can show and monitor device state:
nmcli device status
nmcli device monitor <iface>
nmcli device monitor prints changes as they happen. The NetworkManager reference documents these status and monitoring commands.
Success looks like: the device stays registered, the route remains present, and repeated HTTPS checks succeed while the dongle is in the same physical position and under the same workload.
Step 4: Investigate carrier session timeouts
If the dongle never disappears from lsusb, but its data session stops after a predictable idle period or after a long run, investigate the mobile session rather than the USB bus. Causes can include an APN mismatch, a session renewal, a carrier-side idle policy, a temporary registration change, or a modem management process that did not reconnect cleanly.
Capture evidence at the moment of failure:
date -Is
ip -4 addr show dev <iface>
ip route
nmcli device show <iface> 2>/dev/null || true
curl --interface <iface> --max-time 10 -fsS -o /dev/null -w '%{http_code}\n' https://example.com/
If the interface is managed by NetworkManager, a manual reconnect can confirm that the local connection profile can recover:
sudo nmcli device disconnect <iface>
sudo nmcli device connect <iface>
For a HiLink device managed through its own web interface, use the interface’s documented reconnect action instead. Do not repeatedly restart the whole Pi: a targeted reconnect leaves you with better evidence and avoids interrupting unrelated dongles.
Check the APN, authentication mode, and data-plan status against the carrier’s current instructions. Record the time between reconnects and whether the public IP changes. Do not generate artificial traffic to defeat an idle policy or ignore the SIM plan’s terms; use the plan that is permitted for your work and ask the carrier about session behaviour.
Success looks like: the failure has a clear signature in your notes, the correct APN and session settings survive a reconnect, and one affected interface recovers without taking the USB bus or other proxies down.
Step 5: Read USB reset messages in dmesg
The kernel log tells you whether Linux saw a physical disconnect, a device reset, an over-current event, or a driver-level error. Run a live view while reproducing the issue:
sudo dmesg -wH
On systems where dmesg access is restricted, use:
sudo journalctl -k -f
Look for messages such as USB disconnect, reset high-speed USB device, device descriptor read errors, over-current, or an xHCI controller error. The Linux USB documentation explains that a USB device can be dynamically suspended and resumed, and that some devices behave badly when they resume. The exact error code is useful, but the timing and affected bus path matter more.
Compare one dongle with the rest of the farm:
lsusb -t
journalctl -k -b --since '15 minutes ago' | grep -Ei 'usb|xhci|modem|cdc|reset|disconnect|over.current'
If only one device logs errors, test its cable, connector, and port. If all devices beneath one hub log errors together, test the hub and its power. If the log shows a suspend/resume pattern after idle, inspect the matching device under /sys/bus/usb/devices/ and read its power policy:
cat /sys/bus/usb/devices/<usb-path>/power/control
As a targeted test, you can keep that device awake until the next unplug or reboot:
echo on | sudo tee /sys/bus/usb/devices/<usb-path>/power/control
Use the USB path that belongs to the dongle, not the whole bus. The kernel documents on as the setting that prevents runtime autosuspend and auto as the normal autosuspend policy. Change one device, observe it, and avoid making a global power-management change without understanding its effect on the rest of the box.
Success looks like: the log identifies one repeatable cause, and the same dongle stays attached through the test. If the log still shows physical disconnects after you change the port, cable, and power source, isolate that dongle from the farm and test it on a known-good host before rebuilding the software stack.
Step 6: Get alerted when a dongle drops
Logs are useful after an incident; alerts are useful while the farm is unattended. Give each dongle a stable label in your inventory and record its USB port, hub port, SIM, and interface. Then you can tell whether the same physical port, SIM, or host is responsible for a pattern.
If you use ProxyKite, its live traffic insights, webhooks, and Telegram alerts give you a central place to watch the proxies and forward the events your deployment exposes. Link those alerts to the dongle label, not just to an anonymous port, so you know which hardware needs attention. ProxyKite runs on your Raspberry Pi or Linux box and routes the proxies through the cloud without requiring a static IP or inbound port forwarding.
For a host-level view, keep NetworkManager’s monitor and the kernel log available during an investigation:
nmcli device monitor <iface>
sudo journalctl -k -f
You can also add a simple, legitimate connectivity check to your existing monitoring system. Test the interface, log the result, and let your monitoring service send the notification:
IFACE=eth1
curl --interface "$IFACE" --max-time 10 -fsS -o /dev/null https://example.com/ \
&& logger -t 4g-watch "$IFACE reachable" \
|| logger -t 4g-watch "$IFACE failed connectivity check"
Replace eth1 and the test URL with values appropriate for your box. A failed HTTPS request does not prove that the USB device is gone, so pair this check with lsusb or the kernel log before taking action.
Success looks like: a dropped device produces an alert with a timestamp and stable label, and you can tell from the accompanying USB and network evidence whether to replace power, improve signal, reconnect the session, or inspect the host.
Verify the fix under real load
After changing one thing, run a controlled test before changing the next. Start with one dongle, then add the rest of the hub one at a time. Keep the test long enough to cover the interval at which the drop normally occurs, and record:
- USB presence from
lsusb. - Interface state from
ip -br linkornmcli device status. - A real HTTPS check through the dongle’s interface.
- Kernel messages during the same period.
- Temperature and the number of active dongles.
If USB presence is stable but the route or HTTPS check fails, stay in the signal, APN, and carrier-session sections. If the USB device disappears, stay with power, heat, cable, hub, and USB power-management checks. That split prevents a software reconnect from hiding a physical problem.
Once the host is stable, finish the proxy configuration using the ProxyKite getting-started guide, then verify a proxy with the documented proxy formats. The broader setup sequence is covered in How to Build Your Own Mobile Proxy with 4G and Raspberry Pi.
Troubleshooting shortcuts
All dongles drop together: test the hub’s external power, upstream cable, and the Pi’s supply first. A shared failure is rarely fixed by changing one SIM.
Only one dongle drops: move it to a known-good port, replace the short cable or extension, reseat the SIM, and compare its kernel messages with a healthy dongle.
The USB device stays visible but traffic stops: inspect registration, signal, APN, route, and data-session logs. This is a cellular or network-path problem until the logs show otherwise.
The drop happens after idle: inspect the device’s USB power policy and the carrier’s session rules. Test a targeted power/control change and use a permitted data plan; do not disable power management across the entire server blindly.
The Pi is hot or enclosed: separate the dongles, improve airflow, and repeat the same load test. A change that works only when the lid is open is a thermal clue, not a permanent software fix.
FAQ
Why does my 4G dongle disconnect under load?
The most common farm-level cause is shared USB power: a hub or host supply cannot provide stable power for all active dongles. Check whether devices on the same hub disappear together, then test a properly powered hub and repeat the load test while watching dmesg.
How can I tell whether the USB modem or mobile network disconnected?
Run lsusb, ip -br link, and an HTTPS request through the dongle’s interface at the same time. If the USB device disappears and the kernel logs a disconnect or reset, investigate hardware and USB power; if it remains present while the route or HTTPS request fails, investigate signal, APN, and the cellular session.
Can a weak signal make a USB dongle disappear?
Weak signal normally affects registration or the data session, not the physical USB enumeration. It can still look like a disconnect to your proxy users, so compare the dongle’s management-page radio state with the kernel log before replacing hardware.
Does USB autosuspend cause LTE dongle drops on Linux?
It can be involved when the log shows a suspend/resume sequence followed by a reset or failed reconnect. Inspect the individual device’s power/control setting and test on for that device only; the Linux USB power-management interface supports on and auto, and the change should be treated as a controlled diagnostic.
What should I monitor in a 4G proxy farm?
Monitor USB presence, interface state, a real HTTPS check, kernel messages, temperature, and the last successful check time. ProxyKite also provides live traffic insights plus webhooks and Telegram alerts for the events available in your deployment, so you can connect a labelled dongle to a clear operational alert.