---
title: "Connect cellular module over Raspberry Pi UART"
description: "Connect a Quectel module on the Base HAT to the Raspberry Pi UART instead of USB: close the solder jumpers, enable the UART and test it with AT commands."
url: "https://docs.sixfab.com/guides/connect-cellular-module-raspberry-pi-uart/"
last_updated: "2026-10-12"
---

# Connect cellular module over Raspberry Pi UART

Connect a Quectel module on the Base HAT to the Raspberry Pi UART instead of USB: close the solder jumpers, enable the UART and test it with AT commands.

**Works with:** [Base HAT](https://docs.sixfab.com/cellular/base-hat/)

Over the UART the module serves AT commands and PPP; QMI and ECM need USB. The Base HAT has one UART, so only one of internet (PPP), SMS and GNSS works at a time: use USB for GNSS. PPP over the UART is limited by the UART speed of the Raspberry Pi.

## Requirements

Assemble the Base HAT first, as in [Get started with Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/).

**Required**

**Hardware**

- **Base HAT with a module that has a UART**: The module needs RX and TX on mini PCIe pins 11 and 13, as the Quectel modules have. Telit modules cannot use the UART of the Base HAT.
- **Soldering iron**: To close the solder jumpers SJ7 and SJ8.

**Software**

- **Raspberry Pi OS**: With raspi-config.
- **Serial terminal**: For example Minicom: see [Send AT commands to cellular module](https://docs.sixfab.com/guides/send-at-commands-cellular-module/).

## Connect UART of HAT

1. **Check module pins**

   The UART of the module must be on mini PCIe pins 11 (RX) and 13 (TX):

   ![Mini PCIe pinout showing which pins connect to the Base HAT, odd pins top side, even pins bottom](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/minipcie_basehar.png)

2. **Solder SJ7 and SJ8**

   The two jumpers on the bottom of the HAT are open by default. Remove the power, then close each jumper with solder; do not connect SJ7 to SJ8.

   ![Underside of the 3G-4G/LTE Base HAT showing solder jumpers SJ1 to SJ8 near the GPIO header](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/Raspberry-Pi-Base-HAT-UART-Solder.jpg)

   All solder jumpers: [Base HAT hardware reference](https://docs.sixfab.com/cellular/base-hat/hardware-reference/#solder-jumpers).

## Enable UART of Raspberry Pi

1. **Open raspi-config**

   ```bash
   sudo raspi-config
   ```

2. **Open Serial Port settings**

   Select **Interface Options**, then **Serial Port**.

3. **Turn serial login shell off**

   At **Would you like a login shell to be accessible over serial?**, answer **No**.

4. **Turn serial port hardware on**

   At **Would you like the serial port hardware to be enabled?**, answer **Yes**.

5. **Exit and reboot**

   ```bash
   sudo reboot
   ```

The Raspberry Pi documentation describes the UARTs of each model: [Configure UARTs](https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts).

## Find port

**Raspberry Pi 4 and earlier**

`/dev/serial0` is the UART on GPIO 14 and 15 (header pins 8 and 10): `/dev/ttyS0` on models with Bluetooth, `/dev/ttyAMA0` on the Raspberry Pi 2, the first Zero and older models. To see which one it is:

```bash
readlink -f /dev/serial0
```

**Raspberry Pi 5**

`/dev/serial0` is the UART of the debug connector, not of GPIO 14 and 15. Enable UART0 on GPIO 14 and 15: add this line to `/boot/firmware/config.txt` and reboot.

```text
dtoverlay=uart0-pi5
```

The port is then `/dev/ttyAMA0`.

## Verify

Open the port at 115200 baud with hardware flow control off, and send `AT`. The module answers `OK`:

**Raspberry Pi 4 and earlier**

```bash
sudo minicom -b 115200 -D /dev/serial0
```

**Raspberry Pi 5**

```bash
sudo minicom -b 115200 -D /dev/ttyAMA0
```

## Details

### Legacy boards: Cellular IoT HAT and Cellular IoT Application Shield

The Cellular IoT HAT and the Cellular IoT Application Shield are end-of-life products. Their Quectel BG96 module has three UARTs, already connected to the Raspberry Pi header; no jumper is needed. The Application Shield and the Cellular IoT HAT Worldwide version (v1.1.0) use one; the Cellular IoT HAT North American version (v1.3.0) uses two:

| Header pins | Use |
| --- | --- |
| 8, 10 | AT commands |
| 33, 32 | GNSS |

Enable the UART of the Raspberry Pi as in [Enable UART of Raspberry Pi](https://docs.sixfab.com/guides/connect-cellular-module-raspberry-pi-uart/#enable-uart-of-raspberry-pi), turn the module on with the POWER button (about 2 s) and test with Minicom on the same port. With one UART, only one of internet, SMS and GNSS works at a time.

## Troubleshooting

### The module does not answer AT

Check the solder jumpers SJ7 and SJ8, that the module is a UART module, and the port. More checks: [Base HAT troubleshooting](https://docs.sixfab.com/cellular/base-hat/troubleshooting/#uart).

## Next steps

- [Send AT commands to cellular module](https://docs.sixfab.com/guides/send-at-commands-cellular-module/): Minicom and ATCom, and the AT command manuals of the modules.
- [Base HAT hardware reference](https://docs.sixfab.com/cellular/base-hat/hardware-reference/): Pinout, solder jumpers, USB and UART.
