Giter Site home page Giter Site logo

sixfab_ppp_installer's Introduction

Sixfab_PPP_Installer

Repository of Sixfab PPP Installer Tool

Sixfab offers Shields/HATs for Raspberry Pi which provides cellular Internet connection anywhere with the availability of mobile network coverage. These shields are:

Each of these shield can be connected to Internet via PPP(Point to Point Protocol). For this tutorial we have written an script to install and perform required steps.

Without further ado let us jump into the installation process:

There are two method to installation.

  1. Standalone installation
  2. Installation by using repository

You can choose one of them and go on the installation.

Standalone Installation

All source files are downloded from internet in this method. It is enough to download ppp_install_standalone.sh and run it.

wget https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_install_standalone.sh
sudo chmod +x ppp_install_standalone.sh
sudo ./ppp_install_standalone.sh

Installation by using repository

Clone the repository

git clone https://github.com/sixfab/Sixfab_PPP_Installer.git

Now change the permission of the downloaded script.

cd Sixfab_PPP_Installer
chmod +x ppp_install.sh

Now install the script

sudo ./ppp_install.sh

After running installation script

It will ask several questions, just answer them accordingly to complete the installation process. The questions are: Please choose your Sixfab Shield/HAT

You will be offered to choose among the mentioned four shields/HAT. Then it will fetch required scripts for you.

Then it installs ppp. 

What is your carrier APN?

Here, it asks for your carrier's APN. For me it is super. Because I use Sixfab SIM. Please search it on documentations of your SIM provider . You can reach the information by using WHAT IS [YOUR PROVIDER NAME]'s APN keywords probably.

Does your carrier need username and password? [Y/n]

Then it asks if your carrier needs username and password.

Enter username If yes then it will ask for user name.

Enter password Then it will ask for password.

What is your device communication PORT? (ttyS0/ttyUSB3/etc.

In this step you will enter your PORT. e.g For 3G, 4G/LTE Base Shield it will be ttyUSB3.

Do you want to activate auto connect/reconnect service at R.Pi boot up?

This option allows you to connect to Internet via your shield automatically when your Raspberry Pi Starts. If you want to connect to Internet automatically type Y else n. If you have selected n then you will need to run sudo pon to connect to internet and sudo poff to stop it. 

Enjoy your Internet connection.

Important Links:

sixfab_ppp_installer's People

Contributors

adrianboimvaser avatar alfs avatar ensarkarabudak avatar saeedjohar avatar saucompeng avatar selengalp avatar tomsaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sixfab_ppp_installer's Issues

Connect script failed

Any suggestions on how I can debug the error below?

Device: Cellular IoT HAT
Carrier: Ting
APN: wholesale
Tech: NB-IoT
Port: ttyS0

$ sudo pon
pppd options in effect:
debug		# (from /etc/ppp/peers/provider)
updetach		# (from /etc/ppp/peers/provider)
dump		# (from /etc/ppp/peers/provider)
noauth		# (from /etc/ppp/peers/provider)
remotename 3gppp		# (from /etc/ppp/peers/provider)
/dev/ttyS0		# (from /etc/ppp/peers/provider)
115200		# (from /etc/ppp/peers/provider)
lock		# (from /etc/ppp/peers/provider)
connect chat -s -v -f /etc/chatscripts/chat-connect -T wholesale		# (from /etc/ppp/peers/provider)
disconnect chat -s -v -f /etc/chatscripts/chat-disconnect		# (from /etc/ppp/peers/provider)
nocrtscts		# (from /etc/ppp/peers/provider)
modem		# (from /etc/ppp/peers/provider)
asyncmap 0		# (from /etc/ppp/options)
lcp-echo-failure 4		# (from /etc/ppp/options)
lcp-echo-interval 30		# (from /etc/ppp/options)
hide-password		# (from /etc/ppp/peers/provider)
novj		# (from /etc/ppp/peers/provider)
novjccomp		# (from /etc/ppp/peers/provider)
ipcp-accept-local		# (from /etc/ppp/peers/provider)
ipcp-accept-remote		# (from /etc/ppp/peers/provider)
ipparam 3gppp		# (from /etc/ppp/peers/provider)
noipdefault		# (from /etc/ppp/peers/provider)
ipcp-max-failure 30		# (from /etc/ppp/peers/provider)
defaultroute		# (from /etc/ppp/peers/provider)
usepeerdns		# (from /etc/ppp/peers/provider)
noccp		# (from /etc/ppp/peers/provider)
noipx		# (from /etc/ppp/options)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
warning: write() on stdout returned 0
 -- write failed: Success
Failed
Script chat -s -v -f /etc/chatscripts/chat-connect -T wholesale finished (pid 9275), status = 0x1
Connect script failed

Serial name on raspbebrry PI running dietPi

On raspberry pi running DietPi (and probably also raspbian or armbian), the serial name as listed on the doc page (ttyS0) is not available.

Instead, it work by using serial0 (who is a link to ttyAMA0) or ttyAMA0 directly, who apparently is the serial name on ARM boards instead of 'ttyS0'.

See https://unix.stackexchange.com/questions/307390/what-is-the-difference-between-ttys0-ttyusb0-and-ttyama0-in-linux

I think that a note on this in the wiki page can be useful.

Using with the IoT shield

Hi,

I am using the Sixfab RPi CellularIoT App Shield and trying to connect to internet using a vodafone ireland normal sim. I am using this in conjunction with the Rasperry pi 3 running ubuntu mate.
Could you please help what am I missing as i am not getting a remote ip ?

abhatikar@abhatikar-gateway:~$ sudo pon
pppd options in effect:
debug # (from /etc/ppp/peers/provider)
updetach # (from /etc/ppp/peers/provider)
dump # (from /etc/ppp/peers/provider)
noauth # (from /etc/ppp/peers/provider)
remotename 3gppp # (from /etc/ppp/peers/provider)
/dev/ttyS0 # (from /etc/ppp/peers/provider)
115200 # (from /etc/ppp/peers/provider)
lock # (from /etc/ppp/peers/provider)
connect chat -s -v -f /etc/chatscripts/chat-connect -T hs.vodafone.ie # (from /etc/ppp/peers/provider)
disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider)
nocrtscts # (from /etc/ppp/peers/provider)
modem # (from /etc/ppp/peers/provider)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/peers/provider)
novj # (from /etc/ppp/peers/provider)
novjccomp # (from /etc/ppp/peers/provider)
ipcp-accept-local # (from /etc/ppp/peers/provider)
ipcp-accept-remote # (from /etc/ppp/peers/provider)
ipparam 3gppp # (from /etc/ppp/peers/provider)
noipdefault # (from /etc/ppp/peers/provider)
ipcp-max-failure 30 # (from /etc/ppp/peers/provider)
defaultroute # (from /etc/ppp/peers/provider)
usepeerdns # (from /etc/ppp/peers/provider)
noccp # (from /etc/ppp/peers/provider)
noipx # (from /etc/ppp/options)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
^M
OK
-- got it

send (ATE0^M)
expect (OK)
^M
^M
OK
-- got it

send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
BG96^M
Revision: BG96MAR02A07M1G^M
^M
SubEdition: V08^M
^M
+CSQ: 15,0^M
^M
+COPS: 1,0,"vodafone IE vodafone IE",0^M
^M
+CGREG: 0,1^M
^M
OK
-- got it

send (AT+CGDCONT=1,"IP","hs.vodafone.ie",,0,0^M)
expect (OK)
^M
^M
OK
-- got it

send (AT+QCFG="nwscanseq",01,1^M)
expect (OK)
^M
^M
OK
-- got it

send (AT+QCFG="nwscanmode",1,1^M)
expect (OK)
^M
^M
OK
-- got it

send (AT+QCFG="iotopmode",2,1^M)
expect (OK)
^M
^M
OK
-- got it

send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
-- got it

Script chat -s -v -f /etc/chatscripts/chat-connect -T hs.vodafone.ie finished (pid 1728), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa1822443> ]
rcvd [LCP ConfReq id=0x12 <asyncmap 0x0> <magic 0xf726c96e> ]
No auth is possible
sent [LCP ConfRej id=0x12 ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xa1822443> ]
rcvd [LCP ConfReq id=0x13 <asyncmap 0x0> <magic 0xf726c96e> ]
sent [LCP ConfAck id=0x13 <asyncmap 0x0> <magic 0xf726c96e> ]
sent [LCP EchoReq id=0x0 magic=0xa1822443]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP DiscReq id=0x14 magic=0xf726c96e]
rcvd [LCP EchoRep id=0x0 magic=0xf726c96e a1 82 24 43]
rcvd [IPCP ConfReq id=0xc]
sent [IPCP ConfNak id=0xc <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.177.14.221> <ms-dns1 89.19.64.44> <ms-dns2 89.19.64.172>]
sent [IPCP ConfReq id=0x2 <addr 10.177.14.221> <ms-dns1 89.19.64.44> <ms-dns2 89.19.64.172>]
rcvd [IPCP ConfReq id=0xd]
sent [IPCP ConfAck id=0xd]
rcvd [IPCP ConfAck id=0x2 <addr 10.177.14.221> <ms-dns1 89.19.64.44> <ms-dns2 89.19.64.172>]
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing default route to wlan0 [172.20.10.1]
local IP address 10.177.14.221
remote IP address 10.64.64.64
primary DNS address 89.19.64.44
secondary DNS address 89.19.64.172
abhatikar@abhatikar-gateway:~$

Problem with /dev/ttyUSB2

I have ppp using /dev/ttyS0. Also trying to use /dev/ttyUSB2 for receiving SMS with smstools.
When ppp0 connects I get this in dmesg and /dev/ttyUSB2 goes away:

[   40.330141] usb 1-1.3: USB disconnect, device number 3
[   40.330614] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   40.330688] option 1-1.3:1.0: device disconnected
[   40.331146] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   40.331211] option 1-1.3:1.1: device disconnected
[   40.331683] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   40.331737] option 1-1.3:1.2: device disconnected
[   40.332272] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   40.332338] option 1-1.3:1.3: device disconnected
[   42.792325] usb 1-1.3: new high-speed USB device number 4 using xhci_hcd
[   42.927658] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0700, bcdDevice= 0.00
[   42.927677] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[   42.927694] usb 1-1.3: Product: Quectel LPWA Module
[   42.927710] usb 1-1.3: Manufacturer: Quectel, Incorporated
[   42.927725] usb 1-1.3: SerialNumber: 9e6c63db
[   42.945614] option 1-1.3:1.0: GSM modem (1-port) converter detected
[   42.945979] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[   42.946427] option 1-1.3:1.1: GSM modem (1-port) converter detected
[   42.946749] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[   42.947181] option 1-1.3:1.2: GSM modem (1-port) converter detected
[   42.947492] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[   42.947965] option 1-1.3:1.3: GSM modem (1-port) converter detected
[   42.948286] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB4

This in turn causes errors in smstools like:

GSM1: write_to_modem: error 5: Input/output error

I suspect it's something about calling gpio -g write in the reconnect script.

I've tested swapping the devices and using smstools over /dev/ttyS0 and ppp over /dev/ttyUSB2 and apparently the problem doesn't happen.

ppp_connection_manager doesn't connect

Having this problem with the newer ppp_connection_manager:

It never connects, it keeps "Retrying network registration..."

root@raspberrypi:/var/log# systemctl status ppp_connection_manager
● ppp_connection_manager.service - PPP Connection Manager
   Loaded: loaded (/etc/systemd/system/ppp_connection_manager.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-02-09 17:02:12 GMT; 46s ago
 Main PID: 15433 (bash)
    Tasks: 6 (limit: 3980)
   CGroup: /system.slice/ppp_connection_manager.service
           ├─15433 /bin/bash ppp_connection_manager.sh
           ├─15434 bash configure_modem.sh
           ├─16798 /usr/bin/python3 /usr/local/bin/atcom AT+CPIN?
           ├─16799 grep CPIN: READY
           ├─16819 /bin/sh -c udevadm info -q property --export -p /sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0
           └─16820 udevadm info -q property --export -p /sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0

Feb 09 17:02:47 raspberrypi bash[15433]: 2021/02/09->17:02:47  Retrying network registration...
Feb 09 17:02:49 raspberrypi bash[15433]: 2021/02/09->17:02:49  SIM Status: +CPIN: READY
Feb 09 17:02:50 raspberrypi bash[15433]: 2021/02/09->17:02:49  Network Registration Status: +CREG: 2,5,"4122","3357A10",8
Feb 09 17:02:50 raspberrypi bash[15433]: 2021/02/09->17:02:50  Retrying network registration...
Feb 09 17:02:52 raspberrypi bash[15433]: 2021/02/09->17:02:52  SIM Status: +CPIN: READY
Feb 09 17:02:53 raspberrypi bash[15433]: 2021/02/09->17:02:52  Network Registration Status: +CREG: 2,5,"4122","3357A10",8
Feb 09 17:02:53 raspberrypi bash[15433]: 2021/02/09->17:02:53  Retrying network registration...
Feb 09 17:02:55 raspberrypi bash[15433]: 2021/02/09->17:02:55  SIM Status: +CPIN: READY
Feb 09 17:02:56 raspberrypi bash[15433]: 2021/02/09->17:02:55  Network Registration Status: +CREG: 2,5,"4122","3357A10",8
Feb 09 17:02:56 raspberrypi bash[15433]: 2021/02/09->17:02:56  Retrying network registration...

Calling pon directly works though:

root@raspberrypi:/var/log# pon
pppd options in effect:
debug           # (from /etc/ppp/peers/provider)
updetach                # (from /etc/ppp/peers/provider)
persist         # (from /etc/ppp/peers/provider)
dump            # (from /etc/ppp/peers/provider)
noauth          # (from /etc/ppp/peers/provider)
remotename 3gppp                # (from /etc/ppp/peers/provider)
/dev/ttyUSB2            # (from /etc/ppp/peers/provider)
115200          # (from /etc/ppp/peers/provider)
lock            # (from /etc/ppp/peers/provider)
connect chat -s -v -f /etc/chatscripts/chat-connect -T super            # (from /etc/ppp/peers/provider)
disconnect chat -s -v -f /etc/chatscripts/chat-disconnect               # (from /etc/ppp/peers/provider)
nocrtscts               # (from /etc/ppp/peers/provider)
modem           # (from /etc/ppp/peers/provider)
asyncmap 0              # (from /etc/ppp/options)
lcp-echo-failure 4              # (from /etc/ppp/options)
lcp-echo-interval 30            # (from /etc/ppp/options)
hide-password           # (from /etc/ppp/peers/provider)
novj            # (from /etc/ppp/peers/provider)
novjccomp               # (from /etc/ppp/peers/provider)
ipcp-accept-local               # (from /etc/ppp/peers/provider)
ipcp-accept-remote              # (from /etc/ppp/peers/provider)
ipparam 3gppp           # (from /etc/ppp/peers/provider)
noipdefault             # (from /etc/ppp/peers/provider)
ipcp-max-failure 30             # (from /etc/ppp/peers/provider)
usepeerdns              # (from /etc/ppp/peers/provider)
noccp           # (from /etc/ppp/peers/provider)
noipx           # (from /etc/ppp/options)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
^M
OK
 -- got it

send (ATE0^M)
expect (OK)
^M
^M
OK
 -- got it

send (AT+CPIN?^M)
expect (OK)
^M
^M
+CPIN: READY^M
^M
OK
 -- got it

send (AT+CSQ^M)
expect (OK)
^M
^M
+CSQ: 31,99^M
^M
OK
 -- got it

send (AT+CREG?^M)
expect (OK)
^M
^M
+CREG: 2,5,"4122","3357A10",8^M
^M
OK
 -- got it

send (AT+CGREG?^M)
expect (OK)
^M
^M
+CGREG: 0,4^M
^M
OK
 -- got it

send (AT+COPS?^M)
expect (OK)
^M
^M
+COPS: 0,0,"AT&T",8^M
^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","super",,0,0^M)
expect (OK)
^M
^M
OK
 -- got it

send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
 -- got it

Script chat -s -v -f /etc/chatscripts/chat-connect -T super finished (pid 22312), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1c0e8b42> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <auth chap MD5> <magic 0xc6d58b97> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x3 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x1c0e8b42> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0xc6d58b97> <pcomp> <accomp>]
sent [LCP ConfAck id=0x4 <asyncmap 0x0> <magic 0xc6d58b97> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x1c0e8b42]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP DiscReq id=0x5 magic=0xc6d58b97]
rcvd [LCP EchoRep id=0x0 magic=0xc6d58b97 1c 0e 8b 42]
rcvd [IPCP ConfReq id=0x2 <addr 100.65.88.163>]
sent [IPCP ConfAck id=0x2 <addr 100.65.88.163>]
rcvd [IPCP ConfNak id=0x1 <addr 100.65.88.163> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
sent [IPCP ConfReq id=0x2 <addr 100.65.88.163> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
rcvd [IPCP ConfAck id=0x2 <addr 100.65.88.163> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
local  IP address 100.65.88.163
remote IP address 100.65.88.163
primary   DNS address 8.8.8.8
secondary DNS address 8.8.4.4

pon command not found (Sixfab_PPP installer using balenaOS)

I'm installing the Sixfab_PPP installer using a dockerfile and balenaos.

After installation, my hat tracker works, I am able to retrieve GPS data. However when I run pon I get: pon: command not found

Here is my dockerfile:

FROM balenalib/raspberrypi4-64-python:3-stretch-run
RUN apt-get update -y
RUN apt-get upgrade
RUN apt-get install -y gcc
RUN apt-get install -y gcc-arm-linux-gnueabihf
RUN apt-get install -y libc6-dev
#RUN apt-get install -y python3-dev python3-smbus
RUN apt-get install -y systemd
RUN apt-get install -y psmisc
RUN apt-get install -y wget
RUN apt-get install -y git
RUN apt-get install -y unzip
RUN apt-get install -y build-essential
RUN apt-get install -y libtool
RUN apt-get install -y --force-yes expect
#RUN apt-get install -y wiringpi
SHELL ["/bin/bash", "-c"] #Tried adding this line but did not solve the problem
RUN mkdir ebike
WORKDIR "/ebike"
RUN wget https://github.com/joan2937/pigpio/archive/master.zip
RUN unzip master.zip
WORKDIR "pigpio-master"
RUN make
RUN make install
WORKDIR "../"
RUN wget https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/install.sh
RUN chmod +x install.sh
ADD  install_expect.sh ./
RUN chmod +x install_expect.sh
RUN ./install_expect.sh
RUN git clone https://github.com/sixfab/Sixfab_RPi_Tracker_HAT.git
WORKDIR "Sixfab_RPi_Tracker_HAT"
RUN ls
RUN python3 setup.py install
WORKDIR "../"
ADD  GNSS.py ./
CMD pip install RPI.GPIO ; pon ;  echo $PATH;  pigpiod

Device: https://sixfab.com/product/raspberry-pi-gprs-gps-tracker-hat/

The jetson installer does not work on nano

Hi there,

I have a https://sixfab.com/product/raspberry-pi-3g-4glte-base-shield-v2/ shield with EC25. Installed the ppp installer on rpi and everything works fine, but when I follow the instructions and install it on my nvidia jetson nano, the connection failed when I run sudo pon. The following is the output from the console:
ubuntu@nano:~$ sudo pon [sudo] password for ubuntu: pppd options in effect: debug # (from /etc/ppp/peers/provider) updetach # (from /etc/ppp/peers/provider) dump # (from /etc/ppp/peers/provider) noauth # (from /etc/ppp/peers/provider) remotename 3gppp # (from /etc/ppp/peers/provider) /dev/ttyUSB3 # (from /etc/ppp/peers/provider) 115200 # (from /etc/ppp/peers/provider) lock # (from /etc/ppp/peers/provider) connect chat -s -v -f /etc/chatscripts/chat-connect -T broadband # (from /etc/ppp/peers/provider) disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider) nocrtscts # (from /etc/ppp/peers/provider) modem # (from /etc/ppp/peers/provider) asyncmap 0 # (from /etc/ppp/options) lcp-echo-failure 4 # (from /etc/ppp/options) lcp-echo-interval 30 # (from /etc/ppp/options) hide-password # (from /etc/ppp/peers/provider) novj # (from /etc/ppp/peers/provider) novjccomp # (from /etc/ppp/peers/provider) ipcp-accept-local # (from /etc/ppp/peers/provider) ipcp-accept-remote # (from /etc/ppp/peers/provider) ipparam 3gppp # (from /etc/ppp/peers/provider) noipdefault # (from /etc/ppp/peers/provider) ipcp-max-failure 30 # (from /etc/ppp/peers/provider) defaultroute # (from /etc/ppp/peers/provider) usepeerdns # (from /etc/ppp/peers/provider) noccp # (from /etc/ppp/peers/provider) noipx # (from /etc/ppp/options) abort on (BUSY) abort on (NO CARRIER) abort on (NO DIALTONE) abort on (ERROR) abort on (NO ANSWER) timeout set to 30 seconds send (AT^M) expect (OK) ^M alarm Failed Script chat -s -v -f /etc/chatscripts/chat-connect -T broadband finished (pid 6529), status = 0x3 Connect script failed

Could you take a look on it? @saeedjohar

automatic detach after the first installation

Could not determine remote IP address: defaulting to 10.64.64.64
Script /etc/ppp/ip-pre-up started (pid 5534)
Script /etc/ppp/ip-pre-up finished (pid 5534), status = 0x0
not replacing default route to eth0 [0.0.0.0]
local  IP address 100.118.1.191
remote IP address 10.64.64.64
primary   DNS address 8.8.8.8
secondary DNS address 8.8.4.4
updetach is set. Now detaching.

These are the last lines of terminal output I get after I used "sudo pon". This device is completly new and was installed today with the WiringPi fixes that @ip6li posted yesterday in this section. I have already worked with this script and never had the problem that after connecting, the connection was immediately closed again. Where can I deselect this option? If I comment out 'updetach' in the 'provider' file 'sudo pon' is no longer executed properly.

Pip new feature "externally-managed-environment" causes install to fail

Error caused by Externally Managed Environments during atcom installation:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Process failed

in short, atcom has to be installed in a venv for this installer to keep working on newer pip versions.

reconnect service depends on gpio command

The reconnect service depends on the gpio command to turn on the IoT hat, but the gpio command is provided by the wiringpi package, which is not installed on raspbian lite OS images. I'd suggest considering installing wiringpi in the install.sh script along with the ppp package on line 79

IPv6 Support

src/chat-connect should be changed as follows:

-OK AT+CGDCONT=1,"IP","\T",,0,0
+OK AT+CGDCONT=1,"IPV4V6","\T",,0,0

so IPv6 address is obtained also.

Error establishing internet connection

This is my log file:

Mar 06 12:59:54 raspberrypi pppd[1288]: pppd options in effect:
Mar 06 12:59:54 raspberrypi sh[434]: pppd options in effect:
Mar 06 12:59:54 raspberrypi sh[434]: debug # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: updetach # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: dump # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: noauth # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: remotename 3gppp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: /dev/ttyUSB3 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: 115200 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: lock # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: connect chat -s -v -f /etc/chatscripts/chat-connect -T vipmobile # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: nocrtscts # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: modem # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: asyncmap 0 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi sh[434]: lcp-echo-failure 4 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi sh[434]: lcp-echo-interval 30 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi sh[434]: hide-password # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: novj # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: novjccomp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: ipcp-accept-local # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: ipcp-accept-remote # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: ipparam 3gppp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: noipdefault # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: ipcp-max-failure 30 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: defaultroute # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: usepeerdns # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: noccp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi sh[434]: noipx # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi pppd[1288]: debug # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: updetach # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: dump # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: noauth # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: remotename 3gppp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: /dev/ttyUSB3 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: 115200 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: lock # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: connect chat -s -v -f /etc/chatscripts/chat-connect -T vipmobile # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: nocrtscts # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: modem # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: asyncmap 0 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi pppd[1288]: lcp-echo-failure 4 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi pppd[1288]: lcp-echo-interval 30 # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi pppd[1288]: hide-password # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: novj # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: novjccomp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: ipcp-accept-local # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: ipcp-accept-remote # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: ipparam 3gppp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: noipdefault # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: ipcp-max-failure 30 # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: defaultroute # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: usepeerdns # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: noccp # (from /etc/ppp/peers/provider)
Mar 06 12:59:54 raspberrypi pppd[1288]: noipx # (from /etc/ppp/options)
Mar 06 12:59:54 raspberrypi pppd[1288]: pppd 2.4.7 started by root, uid 0
Mar 06 12:59:55 raspberrypi chat[1290]: abort on (BUSY)
Mar 06 12:59:55 raspberrypi sh[434]: abort on (BUSY)
Mar 06 12:59:55 raspberrypi sh[434]: abort on (NO CARRIER)
Mar 06 12:59:55 raspberrypi sh[434]: abort on (NO DIALTONE)
Mar 06 12:59:55 raspberrypi sh[434]: abort on (ERROR)
Mar 06 12:59:55 raspberrypi sh[434]: abort on (NO ANSWER)
Mar 06 12:59:55 raspberrypi sh[434]: timeout set to 30 seconds
Mar 06 12:59:55 raspberrypi sh[434]: send (AT^M)
Mar 06 12:59:55 raspberrypi chat[1290]: abort on (NO CARRIER)
Mar 06 12:59:55 raspberrypi chat[1290]: abort on (NO DIALTONE)
Mar 06 12:59:55 raspberrypi chat[1290]: abort on (ERROR)
Mar 06 12:59:55 raspberrypi chat[1290]: abort on (NO ANSWER)
Mar 06 12:59:55 raspberrypi chat[1290]: timeout set to 30 seconds
Mar 06 12:59:55 raspberrypi chat[1290]: send (AT^M)
Mar 06 12:59:55 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:55 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:55 raspberrypi sh[434]: ^M
Mar 06 12:59:55 raspberrypi sh[434]: OK
Mar 06 12:59:55 raspberrypi sh[434]: -- got it
Mar 06 12:59:55 raspberrypi sh[434]: send (ATE0^M)
Mar 06 12:59:55 raspberrypi chat[1290]: ^M
Mar 06 12:59:55 raspberrypi chat[1290]: OK
Mar 06 12:59:55 raspberrypi chat[1290]: -- got it
Mar 06 12:59:55 raspberrypi chat[1290]: send (ATE0^M)
Mar 06 12:59:55 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:55 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:55 raspberrypi sh[434]: ^M
Mar 06 12:59:55 raspberrypi sh[434]: OK
Mar 06 12:59:55 raspberrypi sh[434]: -- got it
Mar 06 12:59:55 raspberrypi sh[434]: send (AT+QCFG="band",F,400A0E189F,A0E189F,1^M)
Mar 06 12:59:55 raspberrypi chat[1290]: ^M
Mar 06 12:59:55 raspberrypi chat[1290]: ^M
Mar 06 12:59:55 raspberrypi chat[1290]: OK
Mar 06 12:59:55 raspberrypi chat[1290]: -- got it
Mar 06 12:59:55 raspberrypi chat[1290]: send (AT+QCFG="band",F,400A0E189F,A0E189F,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: OK
Mar 06 12:59:56 raspberrypi sh[434]: ^M
Mar 06 12:59:56 raspberrypi sh[434]: OK
Mar 06 12:59:56 raspberrypi sh[434]: -- got it
Mar 06 12:59:56 raspberrypi sh[434]: send (AT+QCFG="nwscanseq",03,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: -- got it
Mar 06 12:59:56 raspberrypi chat[1290]: send (AT+QCFG="nwscanseq",03,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: OK
Mar 06 12:59:56 raspberrypi sh[434]: ^M
Mar 06 12:59:56 raspberrypi sh[434]: OK
Mar 06 12:59:56 raspberrypi sh[434]: -- got it
Mar 06 12:59:56 raspberrypi sh[434]: send (AT+QCFG="nwscanmode",3,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: -- got it
Mar 06 12:59:56 raspberrypi chat[1290]: send (AT+QCFG="nwscanmode",3,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:56 raspberrypi sh[434]: ^M
Mar 06 12:59:56 raspberrypi sh[434]: OK
Mar 06 12:59:56 raspberrypi sh[434]: -- got it
Mar 06 12:59:56 raspberrypi sh[434]: send (AT+QCFG="iotopmode",1,1^M)
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: ^M
Mar 06 12:59:56 raspberrypi chat[1290]: OK
Mar 06 12:59:56 raspberrypi chat[1290]: -- got it
Mar 06 12:59:56 raspberrypi chat[1290]: send (AT+QCFG="iotopmode",1,1^M)
Mar 06 12:59:57 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: OK
Mar 06 12:59:57 raspberrypi sh[434]: -- got it
Mar 06 12:59:57 raspberrypi sh[434]: send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: OK
Mar 06 12:59:57 raspberrypi chat[1290]: -- got it
Mar 06 12:59:57 raspberrypi chat[1290]: send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
Mar 06 12:59:57 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: Quectel^M
Mar 06 12:59:57 raspberrypi sh[434]: BG96^M
Mar 06 12:59:57 raspberrypi sh[434]: Revision: BG96MAR02A08M1G^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: SubEdition: V05^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: +CSQ: 99,99^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: +COPS: 0^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: +CGREG: 0,4^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: OK
Mar 06 12:59:57 raspberrypi sh[434]: -- got it
Mar 06 12:59:57 raspberrypi sh[434]: send (AT+CGDCONT=1,"IP","vipmobile",,0,0^M)
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: Quectel^M
Mar 06 12:59:57 raspberrypi chat[1290]: BG96^M
Mar 06 12:59:57 raspberrypi chat[1290]: Revision: BG96MAR02A08M1G^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: SubEdition: V05^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: +CSQ: 99,99^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: +COPS: 0^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: +CGREG: 0,4^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: OK
Mar 06 12:59:57 raspberrypi chat[1290]: -- got it
Mar 06 12:59:57 raspberrypi chat[1290]: send (AT+CGDCONT=1,"IP","vipmobile",,0,0^M)
Mar 06 12:59:57 raspberrypi chat[1290]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: expect (OK)
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: OK
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: OK
Mar 06 12:59:57 raspberrypi sh[434]: -- got it
Mar 06 12:59:57 raspberrypi sh[434]: send (ATD99#^M)
Mar 06 12:59:57 raspberrypi chat[1290]: -- got it
Mar 06 12:59:57 raspberrypi chat[1290]: send (ATD
99#^M)
Mar 06 12:59:57 raspberrypi chat[1290]: expect (CONNECT)
Mar 06 12:59:57 raspberrypi sh[434]: expect (CONNECT)
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: ^M
Mar 06 12:59:57 raspberrypi sh[434]: CONNECT
Mar 06 12:59:57 raspberrypi sh[434]: -- got it
Mar 06 12:59:57 raspberrypi chat[1290]: ^M
Mar 06 12:59:57 raspberrypi NetworkManager[372]: [1583495997.9195] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/11)
Mar 06 12:59:57 raspberrypi sh[434]: Script chat -s -v -f /etc/chatscripts/chat-connect -T vipmobile finished (pid 1289), status = 0x0
Mar 06 12:59:57 raspberrypi sh[434]: Serial connection established.
Mar 06 12:59:57 raspberrypi sh[434]: using channel 7
Mar 06 12:59:57 raspberrypi sh[434]: Using interface ppp0
Mar 06 12:59:57 raspberrypi sh[434]: Connect: ppp0 <--> /dev/ttyUSB3
Mar 06 12:59:57 raspberrypi chat[1290]: CONNECT
Mar 06 12:59:57 raspberrypi chat[1290]: -- got it
Mar 06 12:59:57 raspberrypi pppd[1288]: Script chat -s -v -f /etc/chatscripts/chat-connect -T vipmobile finished (pid 1289), status = 0x0
Mar 06 12:59:57 raspberrypi pppd[1288]: Serial connection established.
Mar 06 12:59:57 raspberrypi pppd[1288]: using channel 7
Mar 06 12:59:57 raspberrypi pppd[1288]: Using interface ppp0
Mar 06 12:59:57 raspberrypi pppd[1288]: Connect: ppp0 <--> /dev/ttyUSB3
Mar 06 12:59:57 raspberrypi NetworkManager[372]: [1583495997.9500] devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Mar 06 12:59:57 raspberrypi NetworkManager[372]: [1583495997.9501] device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Mar 06 12:59:58 raspberrypi pppd[1288]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4fe804e6> ]
Mar 06 12:59:58 raspberrypi sh[434]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4fe804e6> ]
Mar 06 12:59:58 raspberrypi sh[434]: rcvd [LCP ConfReq id=0x12 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi sh[434]: No auth is possible
Mar 06 12:59:58 raspberrypi sh[434]: sent [LCP ConfRej id=0x12 ]
Mar 06 12:59:58 raspberrypi sh[434]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4fe804e6> ]
Mar 06 12:59:58 raspberrypi sh[434]: rcvd [LCP ConfReq id=0x13 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi sh[434]: sent [LCP ConfAck id=0x13 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi sh[434]: sent [LCP EchoReq id=0x0 magic=0x4fe804e6]
Mar 06 12:59:58 raspberrypi sh[434]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Mar 06 12:59:58 raspberrypi pppd[1288]: rcvd [LCP ConfReq id=0x12 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi sh[434]: rcvd [LCP DiscReq id=0x14 magic=0xd087f471]
Mar 06 12:59:58 raspberrypi sh[434]: rcvd [LCP EchoRep id=0x0 magic=0xd087f471 4f e8 04 e6]
Mar 06 12:59:58 raspberrypi pppd[1288]: No auth is possible
Mar 06 12:59:58 raspberrypi sh[434]: Modem hangup
Mar 06 12:59:58 raspberrypi sh[434]: Connection terminated.
Mar 06 12:59:58 raspberrypi pppd[1288]: sent [LCP ConfRej id=0x12 ]
Mar 06 12:59:58 raspberrypi pppd[1288]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4fe804e6> ]
Mar 06 12:59:58 raspberrypi pppd[1288]: rcvd [LCP ConfReq id=0x13 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi pppd[1288]: sent [LCP ConfAck id=0x13 <asyncmap 0x0> <magic 0xd087f471> ]
Mar 06 12:59:58 raspberrypi pppd[1288]: sent [LCP EchoReq id=0x0 magic=0x4fe804e6]
Mar 06 12:59:58 raspberrypi pppd[1288]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Mar 06 12:59:58 raspberrypi pppd[1288]: rcvd [LCP DiscReq id=0x14 magic=0xd087f471]
Mar 06 12:59:58 raspberrypi NetworkManager[372]: [1583495998.9361] devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Mar 06 12:59:58 raspberrypi pppd[1288]: rcvd [LCP EchoRep id=0x0 magic=0xd087f471 4f e8 04 e6]
Mar 06 12:59:58 raspberrypi pppd[1288]: Modem hangup
Mar 06 12:59:58 raspberrypi pppd[1288]: Connection terminated.
Mar 06 12:59:59 raspberrypi pppd[1288]: Exit.
Mar 06 12:59:59 raspberrypi sudo[1284]: pam_unix(sudo:session): session closed for user root

As you can see, initially I got:
Mar 06 12:59:57 raspberrypi sh[434]: CONNECT

But then later:
Mar 06 12:59:58 raspberrypi pppd[1288]: Modem hangup
Mar 06 12:59:58 raspberrypi pppd[1288]: Connection terminated.

After that NETLIGHT led is blinking as it searches for a network:
Flicker slowly (200ms ON/1800ms OFF) | Network searching

Execution permission for reconnect.sh and service user

After an apparently successful install i was unable to connect at bootup, because the reconnect service was stopping due to 'too many errors'.

It turned out there was a couple of problems for my case:

  • the file /usr/src/reconnect.sh didn't had execution permissions. Added it manually but i think the install script have to set it automatically.
  • the reconnect.service file requires the user pi to work correctly. In my case i had to create that user because i'm using dietPi who don't have that user by default. It would be nice if the service can be customized at install time by asking for the username to be set (with pi as default)

By fixing it manually now everithing works.

PPP installed but drops connection after a disconnect and does not reconnect unless restarted

Hi there,

I am running an IOT device using this PI hat, https://sixfab.com/product/raspberry-pi-lte-m-nb-iot-egprs-cellular-hat/

I have installed and everything works fine, but a stage issue, whenever the connection drops (Due to bad network usually) It does not reconnect to my LTE network. A quick restart fixes the issue, but I want the device to be running a script with LTE always ON and if it loses connection should try to reconnect, but the interface just drops unless I restart the PI.

I used the following instructions to install :
https://sixfab.com/ppp-installer-for-sixfab-shield-hat/

Any idea why this could be happening?

https://community.sixfab.com/t/ppp-installed-but-drops-connection-after-a-disconnect-and-does-not-reconnect-unless-restarted/565

install.sh

I have followed the instructions and cloned the directory, though nothing occurres while running the install.sh

I have also opened the cloned directory folder and exicuted the install.sh there though again nothing occurres.

And finally I downloaded the .zip, moved the files to my pi & tried exicuting the install that way, but with the same result.

I'm guessing this is the latest for the PPP? Your product page after purchase still links to an old set of instructions; which have you try and install from no longer existing GitHub directories. Which makes setting up the 3g/4g lte had quite annoying...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.