Page 1 of 1

Modem dongle on a headless device

Posted: Thu Jun 20, 2019 5:59 pm
by crosmax
Hi everyone!

Some years ago I configured some raspberrys with a 3g dongle modem (usb) to work in headless mode. Due to the instability of the 3g connection (or the modem itself) I ended up making a rather complex script to recover the connection in case of losing it. If the connection could not recover it I had to put a relay to cut the power to the modem.
My doubt, as 3 or more years have passed since this, is if there is any way to manage the interface wwan0 or ppp0 from the operating system itself, so that the operating system controls the reconnections.
Somebody with personal experience with USB modem and headless system to tell me your experience?


Re: Modem dongle on a headless device

Posted: Fri Jun 21, 2019 1:13 pm
by topguy
I've always used PPPD for different types of GSM/3G/4G modems, in the pppd config for your connection there is a "retries" value that I have usually assumed would trigger a new reconnection in case of failures. But my modems has never locked up and needed a power-cut to start working again.

Re: Modem dongle on a headless device

Posted: Mon Jul 08, 2019 7:12 am
by crosmax
Finally, I followed this guide and seems that works fine. For the record :D