AT Command Set

The AT Command Set subsystem provides a UART-based command interface for controlling BLE advertising, scanning, connection management, GATT server operation, GATT client discovery and data exchange, and tag lifecycle operations. Commands follow a standard AT format and are suitable for use with any serial terminal.

To enable at_cmd support, add the following to your prj.conf:

For Bluetooth Peripheral:

CONFIG_AT_CMD_SET=y
CONFIG_AT_CMD_PERIPHERAL=y

For Bluetooth Central:

CONFIG_AT_CMD_SET=y
CONFIG_AT_CMD_CENTRAL=y

For GATT Server (Default and Dynamic):

CONFIG_AT_CMD_SET=y
CONFIG_AT_CMD_PERIPHERAL=y
CONFIG_AT_CMD_GATT_DFT_SERVER=y # Default GATT server (single service, two characteristics)
CONFIG_AT_CMD_GATT_DYN_SERVER=y # Dynamic GATT server

For Tag Control:

CONFIG_AT_CMD_SET=y
CONFIG_AT_CMD_TAG_SET=y

Warning

CONFIG_AT_CMD_TAG_SET depends on CONFIG_STF_TAG || CONFIG_FMNA_TAG || CONFIG_FHN_TAG || CONFIG_ATM_AT_CMDTEST.

Command Group Reference:

Command Group

Reference

AT Command Format

AT Command Format

System Commands

System Commands

Serial DFU Commands

Serial DFU Commands

BLE Peripheral Commands

BLE Peripheral Commands

BLE Central Commands

BLE Central Commands

BLE Common Commands

BLE Common Commands

BLE Events

BLE Events

GATT Server Commands (Default + Dynamic)

BLE GATT Server Commands

GATT Client Commands

BLE GATT Client Commands

Tag Commands

Tag Commands and Events

Error Code Reference

Error Code Reference

See AT Command Set — Subsystem Reference for the full command reference.

For a working end-to-end demonstration of the AT command interface over UART, see the Subsys: AT Command Set sample.