sakis3g sim800 reconnect on disconnect
Posted: Thu Feb 16, 2017 2:53 pm
hi all, following many of guides from 2012+ ive managed to get a sim800 working with the rpi3.
ppp0 shows on ifconfig, i have web connectivity and the ability to send emails.
i auto start my connection on boot by adding to etc/rc.local before the exit line
but what id like to do is write a script which says if the sim800 disconnects, reconnect.. if its turned off, turn it on.
i usually write in python but i dont believe i can re-initiate sakis3g from a python script? i know i can turn the device on from a python script, but could a init.d script manage both the turning on and the reconnection?
how would i go about automatically reconnecting the device when it drops off the network?
ppp0 shows on ifconfig, i have web connectivity and the ability to send emails.
i auto start my connection on boot by adding to etc/rc.local before the exit line
Code: Select all
sudo /home/pi/sakis3g connect OTHER="CUSTOM_TTY" APN="CUSTOM_APN" CUSTOM_APN="everywhere" APN_USER="eesecure" APN_PASS="secure"
i usually write in python but i dont believe i can re-initiate sakis3g from a python script? i know i can turn the device on from a python script, but could a init.d script manage both the turning on and the reconnection?
how would i go about automatically reconnecting the device when it drops off the network?