2

I'm using a Raspberry Pi 3B with a LCD-touchscreen in a project that needs an internet connection. I use the latest Raspbian release and have installed all updates. My goal was to use WiFi but as the client can't provide this I'm going for 3G. I had a Huawei E3531 lying around so it should be convenient to use that one.

I am getting it to work with usb_modeswitch, but the problem is that whenever I insert the dongle, the system starts to freeze at around 10 seconds at the time at regular intervals, like every 50 seconds or so. By freeze I mean the Pi doesn't respond to keyboard, mouse or serial input. But the cursor still blinks, and in X I can see that CPU-load is updating.

First I thought that it was because I've put the command for modeswitching in crontab to run every minute, but I've disabled that and the problem persists.

So, any ideas?

2 Answers2

3

Might be a power problem. According to the specification, E3531 consumes 500mA of current. Furthermore, "Maximum power consumption" is listed to be below 3W, which means you should expect peaks of up to 600mA, or even more the voltage on USB ports is below 5V. Since your RPi 3 provides 1.2A to its 4 USB ports, and assuming E3531 might use 600mA, you have another 600mA left for all other devices. You mention keyboard and mouse, which usually stay under 100mA, so if nothing else is connected you should be fine. If you have something else, or your keyboard and mouse are fancy (wireless, backlight etc.) you should check if you stay under the 1.2A limit. Alternatively, just plug the modem into a powered hub if you have one.

Since you mentioned soldering 5V line to USB ports of RPi, I invite you to be careful and check board schematics. RPi uses this chip to provide current to USB ports, and it will most probably dislike it if you connect its output to 5V. Simple bypasses like this one worked on old RPi boards which had polyfuses.

Anyway, the problem you're having may not be power related at all. Check the output of dmesg for anything suspicious, especially for something repeated every 50 seconds.

Dmitry Grigoryev
  • 27,928
  • 6
  • 53
  • 144
  • My plan was to totally cut off the power supplied by the Pi. I need to add a custom USB-port anyway, so I planned to supply that port directly from the power supply. I will first try with a powered hub. – Johan Lärfars Sep 28 '16 at 11:12
  • I've tried with a powered USB-hub now but the problem remains. I do however notice some strange messages in the dmesg log: USB port disabled by hub (emi ) re-enabling. And then all the USB units disconnects. That could explain why the pi keeps running but input is disabled for awhile. But I guess we can rule out power issues. – Johan Lärfars Sep 28 '16 at 21:17
  • @JohanLärfars Yep, power issues are certainly out. Please edit your question to include those USB-related messages if you want further help with those. – Dmitry Grigoryev Sep 29 '16 at 06:43
-1

I have solved this issue by changing the cable between the USB port and the USB dongle.

Yapa
  • 1