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, Get started with Cellular IoT Kit, Get started with 4G/LTE Cellular Modem Kit or Get started with Jetson Nano Cellular Modem Kit.
Hardware
- A Sixfab cellular board with its moduleFor example the Base HAT, the Cellular IoT Kit, the 4G/LTE Cellular Modem Kit or the Jetson Nano Cellular Modem Kit, connected to the computer over USB.
Software
- LinuxFor example Raspberry Pi OS.
Find AT command port
-
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:
ls /dev/ttyUSB*/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3The kernel log shows the same ports as they are created:
dmesg | grep ttyUSB[ 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 -
Pick AT port of module
Module AT command port Quectel EC25, EG25-G, BG96 /dev/ttyUSB2(ttyUSB0DIAG,ttyUSB1GNSS,ttyUSB3modem)Telit ME910C1-WW Usually /dev/ttyUSB2Telit LE910C1, LE910C4 /dev/ttyUSB2in 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
ATwithOKis 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.
-
Install Minicom
sudo apt install minicom -
Open AT port
sudo minicom -b 115200 -D /dev/ttyUSB2Type the commands and press Enter. The module answers
OKwhen it accepts a command andERRORwhen it does not: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 -
Exit Minicom
Press Ctrl+A, then X.
Send commands with ATCom
ATCom sends one AT command from the command line and prints the answer.
-
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:
sudo apt install pipx pipx install atcom pipx ensurepathOpen a new terminal so that the
atcomcommand is found. -
Send command
atcom --port /dev/ttyUSB2 ATWithout
--port, ATCom looks for the port of a known modem by its USB IDs. Put a command with quotes in single quotes:atcom --port /dev/ttyUSB2 'AT+CGDCONT=1,"IP","internet"'
Verify
-
Send AT
On the AT port, send
ATwith Minicom or ATCom.Result: the module answersOK.
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. The picture shows the menu set for the UART port /dev/ttyS1.

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:
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 |
| Quectel BG96 | BG96 AT Commands Manual V2.2 |
| Quectel UC20 | UC20 AT Commands Manual V1.5 |
| Telit LE910C1, LE910C4 | LE910Cx AT Commands Reference Guide r12 |
| Telit ME910C1-WW | ME910C1 and ML865C1 AT Commands Reference Guide r15 |
Next steps
- Base HAT troubleshooting SIM, registration and APN checks with AT commands.
- Connect cellular module to internet in ECM mode Configure the module with AT commands and connect to the internet.
- Connect cellular module over Raspberry Pi UART Send AT commands over the Raspberry Pi UART instead of USB.
- Read GNSS data with Base HAT Turn on the GNSS receiver with AT commands and read the position.