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.
Instructions- First, 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
- Next, we're going to obtain the required repository from the Sixfab quickstart script:
wget https://raw.githubusercontent.com/sixfab/Sixfab_RPi_3G-4G-LTE_Base_Shield/master/tutorials/QMI_tutorial/qmi_install.sh
- Now let's take ownership of the script and install it. In this step, you may be prompted to enter an APN. Enter
data00.telnyx
as the APN and you are good to go!
chmod +x qmi_install.sh
sudo ./qmi_install.sh
- Reboot your device and then let's get connected.
- To get connected to the internet, navigate to the following directory:
cd /files/quectel-CM
- Then 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
TroubleshootingIf 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:
- Make sure the sixfab hat is connected.
- Obtain required repository:
wget https://raw.githubusercontent.com/sixfab/Sixfab_RPi_3G-4G-LTE_Base_Shield/master/tutorials/QMI_tutorial/install_auto_connect.sh
- Take ownership of the script and install.
chmod +x install_auto_connect.sh
sudo ./install_auto_connect.sh
- Now, it will ask for an APN. Please make sure to double-check the APN as a misspelling in this step may cause connectivity issues.
- Verify that the module is active and online:
sudo systemctl status qmi_reconnect.service
Enjoy!
Tiger Koo
Comments
Please log in or sign up to comment.