This guide assumes that you have a fresh installation of Raspbian OS. Some parts of this guide were obtained from Sixfab's official tutorial website.
- 1First, let's make sure that the Raspberry Pi is up to date. You can do that by running the below commands:
sudo apt update && sudo apt upgrade sudo apt dist-upgrade sudo apt rpi-update reboot
- 2Next, we're going to obtain the required repository from the Sixfab quickstart script:
- 3Now let's take ownership of the script and install it. In this step, you may be prompted to enter an APN. Enter
data00.telnyxas the APN and you are good to go!
chmod +x qmi_install.sh sudo ./qmi_install.sh
- 4Reboot your device and then let's get connected.
- 5To get connected to the internet, navigate to the following directory:
- 6Then mark the device as "online" with the below command. This tells the device to relay its initial "online" status message to the network. Once the network acknowledges the message, your device should obtain a valid IP address from the network; thus, have an internet connection.
sudo ./quectel-CM -s internet
If the device doesn't connect to the internet, this means that the device either doesn't know which APN to use or the Raspberry Pi has trouble communicating with the device. In this case, we are going to let the device handle the disconnect/reconnect process automatically.
To set up this auto-connect process follow this steps:
- 1Make sure the sixfab hat is connected.
- 2Obtain required repository:
- 3Take ownership of the script and install.
chmod +x install_auto_connect.sh sudo ./install_auto_connect.sh
- 4Now, it will ask for an APN. Please make sure to double check the APN as a misspelling in this step may cause connectivity issues.
- 5Verify that the module is active and online:
sudo systemctl status qmi_reconnect.service