AT Command Set — Subsystem Reference
Overview
The at_cmd_set subsystem provides a collection of AT commands for controlling Bluetooth LE
operation on Atmosic SoCs running Zephyr RTOS. Each command is implemented in its own .c
file and registered via the AT_COMMAND() macro. Commands are enabled individually through
Kconfig so unused commands are excluded from the binary.
Role-Based Command Bundles
Selecting a master role symbol automatically enables a suite of related commands as
default y. Individual commands can still be overridden in prj.conf.
CONFIG_AT_CMD_PERIPHERAL — Peripheral / advertiser role
Command |
Description |
|---|---|
|
Start / stop advertising |
|
Assign BT identity to an advertising instance |
|
Legacy advertising parameters |
|
Extended advertising parameters (requires |
|
Set advertisement payload |
|
Set scan-response payload |
|
Set advertising TX power |
CONFIG_AT_CMD_CENTRAL — Central / observer role
Command |
Description |
|---|---|
|
Start / stop scanning |
|
Controller MAC-address filter (Filter Accept List) |
|
RSSI threshold filter |
|
Initiate a connection |
|
Cancel a pending connection attempt |
|
Advertisement report event |
CONFIG_AT_CMD_GATT_DFT_SERVER — Default GATT server (auto-selected by CONFIG_AT_CMD_PERIPHERAL)
Command |
Description |
|---|---|
|
Enable / disable the runtime-configurable default GATT server |
|
Configure the default service UUID and security properties |
|
Configure Characteristic 1 (TRX) UUID and security properties |
|
Configure Characteristic 2 (TRX2) UUID and security properties |
|
Set / query Characteristic 1 pre-set read value |
|
Set / query Characteristic 2 pre-set read value |
|
Send notification or indication to a connected peer |
CONFIG_AT_CMD_GATT_CLIENT — GATT client (auto-selected by CONFIG_AT_CMD_CENTRAL)
Command |
Description |
|---|---|
|
Discover all primary services by handle range |
|
Discover service by UUID |
|
Discover all characteristics by handle range |
|
Discover characteristic by UUID |
|
Discover descriptors by handle range |
|
Read characteristic value |
|
Write characteristic value (with response) |
|
Write characteristic value (without response) |
|
Subscribe / unsubscribe via CCCD write |
|
Notification received event |
|
Indication received event |
Connection commands — enabled automatically when CONFIG_PERIPHERAL or CONFIG_CENTRAL is selected
Command |
Description |
|---|---|
|
Gracefully disconnect |
|
Query connection parameters |
|
Query peer identity and security level |
|
Read link RSSI |
|
Set / query connection TX power |
|
Initiate ATT MTU exchange |
|
Query current ATT MTU |
|
Connection-established event |
|
Disconnection event |
|
Remote LE features event |
|
Connection parameter update event |
|
GATT MTU exchange event |
|
GATT MTU exchange request result event |
CONFIG_AT_CMD_TAG_SET — Tracking tag role
Warning
CONFIG_AT_CMD_TAG_SET depends on CONFIG_STF_TAG || CONFIG_FMNA_TAG || CONFIG_FHN_TAG || CONFIG_ATM_AT_CMDTEST.
Command |
Description |
|---|---|
|
Query firmware version and compiled-in protocols |
|
Select active tracking protocol(s) |
|
Query battery level |
|
Start the tag BLE stack |
|
Reboot or factory-reset |
|
Report tag state event |
|
Tag error events |
AT+TAGSTFIND and AT+TAGDFU are opt-in; they require their own Kconfig symbols even
when CONFIG_AT_CMD_TAG_SET is enabled.
Command Groups
Command Group |
Reference |
|---|---|
AT Command Format |
|
System Commands |
|
Serial DFU Commands |
|
BLE Peripheral Commands |
|
BLE Central Commands |
|
BLE Common Commands |
|
BLE Events |
|
BLE GATT Server Commands (Default + Dynamic) |
|
BLE GATT Client Commands |
|
Tag Commands |
Typical Two-Device Flow
A minimal central + peripheral exchange that exercises advertising, scanning, connection and disconnection:
Peripheral side (CONFIG_AT_CMD_PERIPHERAL=y):
AT+BLEADVLEGACYPARM=0,160,160,0
OK
AT+BLEADVDATA=0,020106
OK
AT+BLEADVENABLE=0,ON
OK
+EVTBLEGAPCONN:0,1,A00102030405
+EVTBLEGAPLINKINFO:0,2F49010580010000
+EVTBLEGAPPAR:0,24,0,42
+EVTBLEGAPDISCONN:0,22
Central side (CONFIG_AT_CMD_CENTRAL=y):
AT+BLESCANENABLE=ON
OK
+EVTBLEGAPADVRPT:0,1,C00102030405,-55,3,020106
AT+BLESCANENABLE=OFF
OK
AT+BLEGAPCREATECONN=1,C00102030405,30
OK
+EVTBLEGAPCONN:0,1,C00102030405
+EVTBLEGAPLINKINFO:0,2F49010580010000
AT+BLEGAPGETRSSI=0
+BLEGAPGETRSSI:-55
OK
AT+BLEGAPDISCONNECT=0
OK
+EVTBLEGAPDISCONN:0,22
Kconfig Summary
Kconfig symbol |
Purpose |
|---|---|
|
Master enable for the AT command subsystem |
|
Enable the peripheral/advertiser command bundle |
|
Enable the central/observer command bundle |
|
Enable the tracking-tag command bundle |
|
Master enable for AT events |
|
Enable tag-related AT events |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default GATT server infrastructure (auto-selected by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GATT client infrastructure (auto-selected by |
|
Maximum bytes for read / notify / indicate data (default: 244) |
|
Subscribe slots per connection (default: 4) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|