包含客戶端和服務器:用於GPRS和3G的通訊命令格式。四種基本功能
- 測試功能:
AT+<x>=?用於查詢命令參數格式及取值范圍; - 查詢功能:
AT+<x>?用於返回命令參數當前值; - 設置功能:
AT+<x>=...用於用戶自定義參數值; - 執行功能:
AT+<x>用於執行相關操作。
自定義AT命令的添加

客戶端和服務器的配置:
上面配置選項可以直接在 rtconfig.h 文件中添加使用,也可以通過組件包管理工具 ENV 配置選項加入,ENV 中具體路徑如下:
RT-Thread Components --->
Network --->
AT commands --->
[*] Enable AT commands
[ ] Enable debug log output
[ ] Enable AT commands server
[*] Enable AT commands client
(uart2) Client device name
(512) The maximum length of client data accepted
[*] Enable command-line interface for AT commands
[ ] Enable print RAW format AT command communication data
添加配置完成之后可以使用命令行重新生成工程,或使用 scons 來進行編譯生成
URC數據:先定義結構體,然后定義結構體數組,最后初始化。單客戶端和多客戶端

