Setting up the PPP connection for Sixfab Shield/HAT

  1. Download the installer file by the following command.
wget https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/\
master/ppp_installer/install.sh
  1. Change the permission of the installation file.
sudo chmod +x install.sh
  1. Now install the script. It will ask several questions, just answer them accordingly to complete the installation process. The questions are:
sudo ./install.sh

Please choose your Sixfab Shields/HATs
You will be offered to choose among the mentioned shields/HATs. Then it will fetch the required scripts for you.

What is your carrier APN?
It will then ask for APN. Type in your APN and then press ENTER. For me, it is internet.

Does your carrier need username and password?

Enter your communication PORT name
In this step, you will enter your PORT. Please see table 1.

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

This option allows you to connect to the Internet via your HAT automatically when your Raspberry Pi Starts.

If you want to connect to the Internet automatically type y else N. If you have selected N then you will need to run sudo pon to connect to the internet and sudo poff. to stop it. Make sure your module is powered up.


Enjoy your internet connection

Managing the Auto-connect/Reconnect service

To check if the service is active you can type.

sudo systemctl status reconnect.service

To stop your reconnect service, type:

sudo systemctl stop reconnect.service

To start the reconnect service when it is stopped, type:

sudo systemctl start reconnect.service

By default, the reconnect service is configured to start automatically when the server boots. If this is not what you want, you can disable this behavior by typing:

sudo systemctl disable reconnect.service

To re-enable the service to start up at boot, you can type:

sudo systemctl enable reconnect.service

Uninstall

If you are using auto-connect/reconnect service, stop the service and disable it.

sudo systemctl stop reconnect.service
sudo systemctl disable reconnect.service

Then delete the files.

sudo rm /etc/ppp/peers/provider
sudo rm /etc/chatscripts/chat-connect
sudo rm /etc/chatscripts/chat-disconnect

Credential

If your carrier asks for username and password;
Remove noauth from /etc/ppp/peers/provider and add following lines.

user “YOUR USERNAME”

password “YOURPASSWORD"

Changing the Configuration

You can change APN and PORT from /etc/ppp/peers/provider.

Table 1. Selecting Port

Shield/HATPORT
Base Shield / Base HATttyS0*/ttyUSB3
Cellular IoT Application Shield / Cellular IoT HATttyS0/ttyUSB3
Tracker HATttyS0

To understand PPP further you can check PPP documentation.

If you have the Thales mini PCIe products we recommend using their pppd tutorial.

It is worth reading through the section on troubleshooting as this covers the more common issues with establishing and maintaining a network connection.