# Automatic Reconnect

**URL:** <https://community.sixfab.com/t/automatic-reconnect/1399>\
**Category:** 3G/4G&LTE Base HAT\
**Created:** [May 25, 2021, 2:38am UTC](https://community.sixfab.com/t/automatic-reconnect/1399 "2021-05-25T02:38:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles](https://community.sixfab.com/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@charles](https://community.sixfab.com/u/charles)\
**Post date:** [May 25, 2021, 2:38am UTC](https://community.sixfab.com/t/automatic-reconnect/1399/1 "2021-05-25T02:38:32Z")

</div>

I want the system to automatically reconnect whenever the cell signal disappears (and later reappears). I can’t reboot the Raspberry pi, since it must do other tasks. I don’t know which protocol QMI or PPP would work better, I need fast connection and low latency (I’m streaming live HD video using h.264). If someone can tell me how to best accomplish this, I would be very grateful.

---

<div class="post-metadata">

**Author:** ![saeed](https://community.sixfab.com/user_avatar/community.sixfab.com/saeed/32/694_2.png) [@saeed](https://community.sixfab.com/u/saeed)\
**Post date:** [May 25, 2021, 2:08pm UTC](https://community.sixfab.com/t/automatic-reconnect/1399/2 "2021-05-25T14:08:49Z")

</div>

Hello,

For auto-reconnect you can write a controlling script that checks the connection and does the required steps to confirm the uptime. Then use the systemd to run the script at every boot.  
Introduction to the PPP and QMI is available on the documentation. For further details you may check [PPP](https://wiki.debian.org/PPP) and [QMI](https://osmocom.org/projects/quectel-modems/wiki/QMI).

 ![image](https://community.sixfab.com/uploads/default/original/1X/7c7ee35ee3c8e4bbbfd0a6b767b8cfbfe633d4cb.png)

For video streaming, QMI would be a better choice instead of legacy PPP.
