---
title: "Send AT commands to cellular module"
description: "Find the AT command port of a cellular module on Linux and send AT commands with Minicom or Sixfab's ATCom command-line tool."
url: "https://docs.sixfab.com/guides/send-at-commands-cellular-module/"
last_updated: "2026-10-12"
---

# Send AT commands to cellular module

Find the AT command port of a cellular module on Linux and send AT commands with Minicom or Sixfab’s ATCom command-line tool.

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

AT commands configure and query a cellular module from the host computer; each module manufacturer publishes the command set of its modules. Any serial terminal works with the right port and settings: 115200 baud, 8N1.

## Requirements

Set up the board first with its quickstart: [Get started with Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/), [Get started with Cellular IoT Kit](https://docs.sixfab.com/cellular/cellular-iot-kit/quickstart/), [Get started with 4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/quickstart/) or [Get started with Jetson Nano Cellular Modem Kit](https://docs.sixfab.com/cellular/jetson-nano-cellular-modem-kit/quickstart/).

**Required**

**Hardware**

- **A Sixfab cellular board with its module**: For example the [Base HAT](https://docs.sixfab.com/cellular/base-hat/), the [Cellular IoT Kit](https://docs.sixfab.com/cellular/cellular-iot-kit/), the [4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/) or the [Jetson Nano Cellular Modem Kit](https://docs.sixfab.com/cellular/jetson-nano-cellular-modem-kit/), connected to the computer over USB.

**Software**

- **Linux**: For example Raspberry Pi OS.

## Find AT command port

1. **List USB serial ports**

   The module appears as several USB serial ports. Run the command before and after you connect the USB cable; the new ports belong to the module:

   ```bash
   ls /dev/ttyUSB*
   ```

   ```text
   /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2  /dev/ttyUSB3
   ```

   The kernel log shows the same ports as they are created:

   ```bash
   dmesg | grep ttyUSB
   ```

   ```text
   [   35.807711] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
   [   35.808358] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
   [   35.808916] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
   [   35.810673] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
   ```

2. **Pick AT port of module**

   | Module | AT command port |
   | --- | --- |
   | Quectel EC25, EG25-G, BG96 | `/dev/ttyUSB2` (`ttyUSB0` DIAG, `ttyUSB1` GNSS, `ttyUSB3` modem) |
   | Telit ME910C1-WW | Usually `/dev/ttyUSB2` |
   | Telit LE910C1, LE910C4 | `/dev/ttyUSB2` in the Sixfab guides; the number of ports changes with the USB configuration (`AT#USBCFG`) |

   If another USB serial device is connected, the numbers shift. The port that answers `AT` with `OK` is the AT port.

## Send commands with Minicom

Minicom is a text-based serial terminal. To send one command at a time from the command line instead, use [ATCom](https://docs.sixfab.com/guides/send-at-commands-cellular-module/#send-commands-with-atcom).

1. **Install Minicom**

   ```bash
   sudo apt install minicom
   ```

2. **Open AT port**

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

   Type the commands and press Enter. The module answers `OK` when it accepts a command and `ERROR` when it does not:

   ```text
   Welcome to minicom 2.7.1
   OPTIONS: I18n
   Compiled on Aug 13 2017, 15:25:34.
   Port /dev/ttyUSB2
   Press CTRL-A Z for help on special keys
   AT
   OK
   AT+CPIN?
   +CPIN: READY
   OK
   AT+CSQ
   +CSQ: 17,99
   OK
   CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Offline | ttyUSB2
   ```

3. **Exit Minicom**

   Press Ctrl+A, then X.

## Send commands with ATCom

[ATCom](https://github.com/sixfab/atcom) sends one AT command from the command line and prints the answer.

1. **Install ATCom**

   On Raspberry Pi OS Bookworm and later, pip does not install packages into the system Python; pipx installs ATCom in its own environment:

   ```bash
   sudo apt install pipx
   pipx install atcom
   pipx ensurepath
   ```

   Open a new terminal so that the `atcom` command is found.

2. **Send command**

   ```bash
   atcom --port /dev/ttyUSB2 AT
   ```

   Without `--port`, ATCom looks for the port of a known modem by its USB IDs. Put a command with quotes in single quotes:

   ```bash
   atcom --port /dev/ttyUSB2 'AT+CGDCONT=1,"IP","internet"'
   ```

## Verify

1. **Send AT**

   On the AT port, send `AT` with Minicom or ATCom.

   **Result:** the module answers `OK`.

## Details

### Set port in Minicom menu

To set the port, baud rate and flow control in Minicom’s menu instead of on the command line, run `minicom -s` and open **Serial port setup**. With only TX and RX connected, as on a UART connection, turn hardware flow control off. All options: [minicom manual](https://manpages.debian.org/minicom). The picture shows the menu set for the UART port `/dev/ttyS1`.

![Minicom serial port setup menu with /dev/ttyS1 at 115200 8N1](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/Sending-AT-commands-minicom.png)

### ATCom options

| Option | Default | Description |
| --- | --- | --- |
| `-p`, `--port` | Found by USB ID | Serial port of the module |
| `-b`, `--baudrate` | `115200` | Baud rate |
| `-t`, `--timeout` | `10` | Command timeout, in seconds |
| `-f`, `--find` | None | Text to wait for in the answer |
| `-c`, `--config` | `./configs.yml` | Configuration file |
| `-v`, `--verbose` | Off | Full log output |
| `--rts-cts` | Off | RTS/CTS flow control |
| `--dsr-dtr` | Off | DSR/DTR flow control |

Options that you use every time can go into `configs.yml` in the working directory, or into a YAML file given with `--config`:

```yaml
port: /dev/ttyUSB2
baudrate: 115200
timeout: 10
```

### AT command manuals

| Module | Manual |
| --- | --- |
| Quectel EC25, EG25-G | [EC2x, EG9x, EG2x-G and EM05 Series AT Commands Manual V2.0](https://sixfab.com/wp-content/uploads/2021/06/Quectel_EC2xEG9xEG2x-GEM05_Series_AT_Commands_Manual_V2.0.pdf) |
| Quectel BG96 | [BG96 AT Commands Manual V2.2](https://sixfab.com/wp-content/uploads/2018/10/Quectel_BG96_AT_Commands_Manual_V2.2.pdf) |
| Quectel UC20 | [UC20 AT Commands Manual V1.5](https://sixfab.com/wp-content/uploads/2018/09/Quectel_UC20_AT_Commands_Manual_V1.5.pdf) |
| Telit LE910C1, LE910C4 | [LE910Cx AT Commands Reference Guide r12](https://sixfab.com/wp-content/uploads/2022/02/Telit_LE910Cx_AT_Commands_Reference_Guide_r12.pdf) |
| Telit ME910C1-WW | [ME910C1 and ML865C1 AT Commands Reference Guide r15](https://sixfab.com/wp-content/uploads/2021/06/Telit_ME910C1_ML865C1_AT_Commands_Reference_Guide_r15.pdf) |

## Next steps

- [Base HAT troubleshooting](https://docs.sixfab.com/cellular/base-hat/troubleshooting/#at-commands): SIM, registration and APN checks with AT commands.
- [Connect cellular module to internet in ECM mode](https://docs.sixfab.com/guides/connect-cellular-module-internet-ecm-mode/): Configure the module with AT commands and connect to the internet.
- [Connect cellular module over Raspberry Pi UART](https://docs.sixfab.com/guides/connect-cellular-module-raspberry-pi-uart/): Send AT commands over the Raspberry Pi UART instead of USB.
- [Read GNSS data with Base HAT](https://docs.sixfab.com/guides/read-gnss-gps-data-base-hat/): Turn on the GNSS receiver with AT commands and read the position.
