The HAT has no radio of its own: the speed, the bands, the supported operating systems and VoLTE come from the module, and VoLTE also needs a SIM card that supports it. The Base HAT is FCC, CE and RoHS certified.
Use it to put a Raspberry Pi online over a cellular network: as an LTE router or hotspot, for streaming and large uploads, for remote monitoring, or for asset tracking with the GNSS receiver of the module. The quickstart takes it from fitting a module to an internet connection.
Compatibility
- Raspberry Pi A+, B+, 2, 3, 4, 5 and Zero
- Other boards with the 40-pin header (compatible hosts)
- A computer over micro USB, without the GPIO functions
- Mini PCIe cellular modules from Quectel, Telit, Sierra Wireless, SIMCom and Fibocom (compatible modules)
- UART with Telit modules: they connect over USB
What’s in the box
- 1×3G/4G & LTE Base HATS121
- 1×Stacking header, short40-pin
- 1×Stacking header, extra tall40-pin
- 1×Right-angle micro USB cable90°
- 4×SpacersM2.5 × 11 mm
- 4×ScrewsM2.5 × 5 mm
- Mini PCIe cellular moduleQuectel, Telit or another compatible moduleRequired
- Antennasu.FL, for LTE and, if used, GNSSRequired
- SIM cardMicro SIM (3FF), supported by the moduleRequired
- Raspberry PiWith its power supply, 5 V and at least 2 ARequired
Attach antennas before power
Attach the antennas before powering the device. Connecting or removing an antenna on a powered cellular radio can damage the module, and the cellular and GNSS radios register no network and get no fix without their antennas.
Interfaces
- Host link: USB 2.0 through the micro USB port, or UART on the 40-pin header (see Connection modes).
- SIM: micro SIM (3FF) socket.
- Power: 5 V from the 40-pin header, the micro USB port, the exposed power pins or an optional JST connector on the bottom (not fitted). The power circuit supplies up to 3 A.
- GPIO control: airplane mode, ring indicator, DTR and HAT power off, which also resets the module (pinout).
- LEDs and button: PWR and STAT LEDs, a programmable USER LED on GPIO27 and a USER button on GPIO22 (LEDs and button).
Connection modes
ECM, QMI and quectel-CM run over USB; PPP runs over a serial port of the module. One mode is enough, and the quickstart sets up ECM, QMI or quectel-CM.
- ECM: Quectel and Telit modules. The module appears as a USB Ethernet device that the Linux kernel supports without extra drivers; the simplest setup (Connect cellular module to internet in ECM mode).
- QMI: Quectel EC25, EG25-G, EC21, UC20-G and Telit LE910C1, LE910C4, over USB only. A network interface, typically
wwan0, controlled over/dev/cdc-wdm0with libqmi: more setup, more control over the modem, and a connection that stays up for long periods (Connect cellular module in QMI mode with libqmi). - quectel-CM: Quectel modules only. The program of QConnectManager starts the data connection and sets the IP address, DNS and routing; common in production (Connect Quectel module with quectel-CM).
- PPP: over the UART (
/dev/ttyS0) or a USB serial port (/dev/ttyUSB3), dialled withATD*99#. Simple and widely supported, and enough for short connections with little data; the connection can drop while the same port carries other AT commands (FAQ: connection). - UART: the host link instead of USB, with Quectel modules. It is disconnected by default: solder SJ7 and SJ8 (USB and UART). UART is slower than USB and carries PPP and AT commands, not QMI (Connect cellular module over Raspberry Pi UART).
Next steps
- Quickstart Fit a module, mount the HAT, check the module and connect to the internet.
- Hardware reference Pinout, compatible modules, LEDs, solder jumpers, specifications and compliance.
- Troubleshooting Power, SIM, APN, antenna, USB, UART and AT command checks.
- FAQ Compatibility, power and connection questions.
Guides
- Send AT commands to cellular moduleFind the AT command port of a cellular module on Linux and send AT commands with Minicom or Sixfab's ATCom command-line tool.
- Connect cellular module to internet in ECM modeSet a Quectel or Telit mini PCIe module to ECM mode: the module appears to Linux as a USB Ethernet interface, with no extra software. Configure it with AT commands, connect and test.
- Connect cellular module in QMI mode with libqmiStart a data connection on a Quectel or Telit module in QMI mode with qmicli and the in-kernel qmi_wwan driver, get an IP address with udhcpc, test and stop it.