Quickstart Guide
- Install PiloT scripts
- Power up the PiloT board
- PiloT modem check and set configuration
- Install required RPi apps
- Uninstall RPi apps not required
- Configure the cellular network connection
- Notes
This guide installs a universal IP cellular connectivity solution onto the Raspbian OS targeting the PiloT HAT board and Raspberry PI (RPi) hardware.
NetWorkManager, NetworkManager GUI and ModemManager are installed onto a Raspbian OS
NetworkManagers GUI (NetworkManager Applet) is used to configure cellular IP connectivity and to stop, start and monitor IP connections
This QuickStart guide requires
- Raspberry Pi
- Standard Raspian desktop installation ***
- Pilot board and USB cable
Install PiloT scripts
- Clone the project into your RPi (maybe use a shell terminal). This creates a local copy of the project which includes this documentation and any project related scripts
git clone http://github.com/johnofleek/PiloT
- Install the minicom command line terminal emulation application
sudo apt-get install minicom
Power up the PiloT board
- From a shell terminal - power on the PiloT using a convenient script (doesn’t apply to uPiloT)
./pilotOn.sh
If this script fails to power up the PiloT
Check that the wiringPi version installed on on your RPi Raspian is compatible with the RPi hardware in use. For example at the time of writing the RPi4 HW needs an updated wiringPi install - For information on your PiloT’s LED behaviour click LED behaviour and follow the links to the module fitted to your PiloT
PiloT modem check and set configuration
- Run minicom (check the actual serial port to use)
To enable AT commands to be sent to the PiloT modem - - note that if NetworkManager ModemManager is running then stop them before trying to send commands to the modemsudo minicom -D /dev/ttyACM0
- Read the PiloT modem information
Type the following AT command into minicom - the PiloT modem will report information about itself such as it’s Firmware version. On some modems the serial port times out when there is no activity - the first carriage return will wake the modem up<CR> ATi9<CR>
- Check the PiloT modem information
A number of PiloT + RPi + Raspbian combinations have been tested, they are listed here
Here are some things to check if a problem occurs at some point later in the QuickStart process- Does the modem appear in the list but the reported modem firmware is older than in the list? It’s possible to update the modem firmware by connecting the PiloT USB port to a Windows PC and use a one click .exe installer from here to install updated firmware into the PiloT modem
- Check the reported PiloT modem type is listed?
- Check if your RPi variant is listed?
- Check if your Raspian version is listed
- Check the NetworkManager version?
- Configure the PiloT modem as required (based on firmware identified above)
- Carry out the modem specific configuration instructions
Please pay particular attention to the usb composition setting - if in doubt check the AT command manual for the particular modem that is being used - if it’s supported by the modem a composition with an MBIM setting is recommended
- Carry out the modem specific configuration instructions
- Power down the PiloT HAT by running the following script
./pilotOff.sh
- Reboot the RPi
Install required RPi apps
- Power down the PiloT HAT
./pilotOff.sh
- Install network-manager
sudo apt-get install network-manager
- Install the GUI network-manager-gnome
sudo apt-get install network-manager-gnome
Uninstall RPi apps not required
- Remove openresolv and dhcpcd as they interfere with the operation of network manager
sudo apt purge openresolv dhcpcd5
It is also possible to uninstall the dhcpcd GUI as it’s no longer functional
- Reboot the RPi
Configure the cellular network connection
- From a shell terminal power on the PiloT by executing the script
./pilotOn.sh
- Wait for Mobile Broadband to appear in the NetworkManager GUI this should be visible on the Rpi Panel (probably top right)
- It’s not advised to use the NetworkManager GUI to configure your wwan0 settings
such as APN / username / password - this is because the GUI uses a complex storage method for the cellular credential “password”. This then causes issues (Buster) on startup with the GUI prompting for a password - Instead follow the command line method described in detail here
Further notes 1 - If everything is installed and configured correctly NetworkManager should connect the modem when the mobile broadband profile you created is clicked in the NetworkManager GUI
- To power down the PiloT run the following script
./pilotOff.sh
Notes
-
The instructions assume that the git project has been cloned into the users home directory. To access or run the power control scripts
cd ~/Pilot/scripts_pilotControl
-
The paths used in this guide - for example ./pilotOn.sh assumes that the user has changed directory to the directory which contains the pilotOn.sh script - the shell command [ls] will list what is available in a directory
-
To start a Raspbian shell terminal - hold down keys [CTRL] [ALT] T or use the RPi Terminal icon
-
Desktop installation was selected so that NetworkManager GUI can be used. NetworkManager GUI provides a simple way to control and observe NetManager behaviour, however, the underlying technology will work with a non-GUI system
-
The NetworkManager GUI is called the network manager applet in it’s about box