The Sixfab 3G/4G & LTE Base HAT grants your Raspberry Pi or 40-pin Pi compatible single-board-computer a super-simple interface bridge between mini PCIe cellular modems. If you’re looking for a Raspberry Pi LTE HAT for IoT applications like location tracking or global device deployments this is a great device. This add-on also board allows you to create a remote controllable LTE Wi-Fi Hotspot, high-speed GPS tracking and more.
From low-power consumption LTE-M to ultra-high-speed LTE-Advanced mini PCIe cards supported by this HAT. Both UART and USB communication with modules are available on the shield.
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 install raspberrypi-kernel-headers 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
The Telnyx SIM has access to all network types and many different operators. As a result, it can take them a while to attach to a network for the first time. Once it connects to a network, that network will be added to the list of priority operators so as to ensure a fast connection going forward. Please note that the first attach can take up to 30 minutes.
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