123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- {
- "appTitle": "AT指令调试助手",
- "cmdFrameMenu":
- [
- {
- "title": "指令模式",
- "command": "+++",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "数据透传模式",
- "command": "ATO",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "AT测试",
- "command": "AT",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "关闭回显",
- "command": "ATE0",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "打开回显",
- "command": "ATE1",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "查询版本信息",
- "command": "AT+GMR",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "+GMR:s*(.+)"
- },
- {
- "title": "重启模块",
- "command": "AT+RST",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "恢复出厂设置",
- "command": "AT+RESTORE",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "断开蓝牙连接",
- "command": "AT+DISCN",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "查询蓝牙状态",
- "command": "AT+STATE",
- "mode": ["read"],
- "params": [],
- "response_pattern": "+STATE:s*(.+)"
- },
- {
- "title": "低功耗控制方式",
- "command": "AT+PWCTRL",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["引脚控制", "SLEEP命令控制"]}
- ],
- "response_pattern": "+PWCTRL:s*(d)"
- },
- {
- "title": "睡眠控制",
- "command": "AT+SLEEP",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["串口工作模式","保留","普通工作模式","待机模式(深度睡眠"]},
- {"type": "text", "value": "", "tip": "0:持续睡眠 10-234000: 睡眠10ms~234s后返回", "label": "参数"}
- ],
- "response_pattern": "+SLEEP:s*(d)"
- },
- {
- "title": "随意发",
- "command": "",
- "mode": ["data"],
- "params": [
- {"type": "text", "value": "0123456789", "tip": "", "label": "数据"}],
- "response_pattern": "OK"
- },
- {
- "title": "串口波特率",
- "command": "AT+BAUD",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["576000", "1000000", "9600", "14400", "19200", "38400", "57600", "115200", "256000", "460800"]}
- ],
- "response_pattern": "+RFPW:s*(d)"
- },
- {
- "title": "蓝牙MAC地址",
- "command": "AT+LBDADDR",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "蓝牙地址,比如:12:34:56:78:9A:BC", "label": "MAC地址"}
- ],
- "response_pattern": "+CONN:s*(d)"
- },
- {
- "title": "主从模式切换",
- "command": "AT+ROLE",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["主模式","从模式"]}
- ],
- "response_pattern": "+ROLE:s*(d)"
- },
- {
- "title": "模块设备名",
- "command": "AT+NAME",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "VG218", "tip": "最大长度为20个字符", "label": "设备名称"}
- ],
- "response_pattern": "+NAME:s*(.+)"
- },
- {
- "title": "蓝牙连接后串口模式",
- "command": "AT+CMODE",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["指令模式","透传模式"]}
- ],
- "response_pattern": "+CMODE:s*(d)"
- },
- {
- "title": "蓝牙连接参数",
- "command": "AT+CNPR",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "最小连接间隔时间,单位1.25ms", "label": "min"},
- {"type": "text", "value": "", "tip": "最大连接间隔时间,单位1.25ms", "label": "max"},
- {"type": "text", "value": "", "tip": "从机延迟", "label": "latency"},
- {"type": "text", "value": "", "tip": "连接超时时间,单位10ms", "label": "timeout"}
- ],
- "response_pattern": "+CNPR:s*(.+)"
- },
- {
- "title": "蓝牙发射功率",
- "command": "AT+RFPW",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["6dBm", "4dBm", "0dBm", "-4dBm", "-8dBm", "-12dBm", "-16dBm", "-20dBm", "-40dBm"]}
- ],
- "response_pattern": "+RFPW:s*(d)"
- },
- {
- "title": "AT指令模式数据发送",
- "command": "AT+DTSEND",
- "mode": ["writes"],
- "params": [
- {"type": "text", "value": "", "tip": "待发送的透传数据的长度,ASCII码字符,长度最大256字节", "label": "datalen"},
- {"type": "text", "value": "", "tip": "待发送的透传数据,允许发送十六进 制数据,datalen*2等于data的长度,则发送十六进制数据,否则发送ASCII码数据", "label": "data"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "蓝牙MTU",
- "command": "AT+MTU",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "MTU值,最小值为20, 最大值为238", "label": "num"}
- ],
- "response_pattern": "+MTU:s*(d+)"
- },
- {
- "title": "自动断开蓝牙连接",
- "command": "AT+AUTODISCN",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "0:蓝牙连接成功后不自动断开连接 1-3600:蓝牙连接成功sec秒后自动断开连接", "label": "sec"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "蓝牙广播开关",
- "command": "AT+ADVEN",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
- ],
- "response_pattern": "+ADVEN:s*(d)"
- },
- {
- "title": "蓝牙广播间隔时间",
- "command": "AT+ADVIT",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "广播间隔时间,单位us,最小值为3.75ms,最大值为10.24s", "label": "timeus"}
- ],
- "response_pattern": "+ADVIT:s*(d+)"
- },
- {
- "title": "蓝牙广播类型",
- "command": "AT+ADVTP",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": [
- "可连接非定向",
- "可连接的定向高负载",
- "不可连接非定向",
- "可扫描的非定向",
- "可连接的定向低负载"
- ]}
- ],
- "response_pattern": "+ADVTP:s*(d)"
- },
- {
- "title": "蓝牙广播通道",
- "command": "AT+ADVCH",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 1, "values": [
- "37", "38", "37+38", "39", "37+39", "38+39", "37+38+39"
- ]}
- ],
- "response_pattern": "+ADVCH:s*(d+)"
- },
- {
- "title": "广播报文自定义数据",
- "command": "AT+ADVUSRDT",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "广播报文自定义数据的长度,最小值为0,最大值为29;0表示广播报文没有自定义数据", "label": "len"},
- {"type": "text", "value": "", "tip": "广播报文自定义数据,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数", "label": "advUserData"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "连接状态PHY",
- "command": "AT+PHYCN",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["1M", "2M", "500K", "125K"]}
- ],
- "response_pattern": "+PHYCN:s*(d+)"
- },
- {
- "title": "查询信号强度RSSI",
- "command": "AT+RSSI",
- "mode": ["read"],
- "params": [],
- "response_pattern": "+RSSI:s*(-?d+)"
- },
- {
- "title": "蓝牙连接使能",
- "command": "AT+CONNEN",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["不可连接", "允许连接"]}
- ],
- "response_pattern": "+CONNEN:s*(d)"
- },
- {
- "title": "蓝牙连接提示",
- "command": "AT+PROMPT",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
- ],
- "response_pattern": "+PROMPT:s*(d)"
- },
- {
- "title": "蓝牙扫描参数",
- "command": "AT+SCPR",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "两次扫描事件的间隔时间,单位ms", "label": "interval"},
- {"type": "text", "value": "", "tip": "每次扫描事件持续的时间,单位ms", "label": "window"}
- ],
- "response_pattern": "+SCPR:s*(.+)"
- },
- {
- "title": "搜索设备",
- "command": "AT+SCAN",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "", "tip": "0:停止搜索 1:开始搜索,只返回广播数据包 2:开始搜索,返回广播数据包和扫描响应数据包", "label": "mode"},
- {"type": "text", "value": "", "tip": "0: 持续搜索设备 1-255: 搜索1-255秒后自动停止搜索", "label": "tm"},
- {"type": "text", "value": "", "tip": "可选,搜索特定从设备蓝牙地址, Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,可以指定1~6个十六进制数地址。", "label": "mac"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "建立蓝牙连接",
- "command": "AT+CONN",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "0", "tip": "0:公共地址,始终使用一个蓝牙地址 1:私有地址,设备蓝牙地址可能会变化", "label": "addr_type"},
- {"type": "text", "value": "A4C13801AB0C", "tip": "从设备蓝牙地址, Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,共6个十六进制数。比如:A4C13801AB0C", "label": "bd_add"}
- ],
- "response_pattern": "+CONN:s*(d)"
- },
- {
- "title": "主机上电自动连接",
- "command": "AT+AUTOCONN",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "1", "tip": "0:主机不自动连接1:主机搜索到已绑定设备时自动连接2-60:主机上电后自动连接已绑定设备,连接超时时间2-60秒", "label": "sec"}
- ],
- "response_pattern": "+PROMPT:s*(d)"
- },
- {
- "title": "清除绑定信息",
- "command": "AT+BOND=0",
- "mode": ["execute"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "已绑定MAC地址",
- "command": "AT+BINDMAC",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "0", "tip": "已绑定的从机地址,6字节地址以冒号分隔, 特殊:00:00:00:00:00:00 表示未绑定从机", "label": "address"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "身份认证模式",
- "command": "AT+AUTHTP",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["无认证", "密码认证"]}
- ],
- "response_pattern": "+PROMPT:s*(d)"
- },
- {
- "title": "身份认证密码",
- "command": "AT+AUTHPWD",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "6-8位由数字、大小写字母组成,默认值为:888888", "label": "password"}
- ],
- "response_pattern": "+NAME:s*(.+)"
- },
- {
- "title": "身份认证登录",
- "command": "AT+AUTHLOGON",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "888888", "tip": "6-8位由数字、大小写字母组成,默认值为:888888", "label": "password"}
- ],
- "response_pattern": "+NAME:s*(.+)"
- },
- {
- "title": "主机配对功能",
- "command": "AT+MSMP",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
- ],
- "response_pattern": "+CONNEN:s*(d)"
- },
- {
- "title": "主机配对码",
- "command": "AT+MPINCODE",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "123456", "tip": "配对码,6位数字,最小值000000,最大值999999,默认值123456。", "label": "pin"}
- ],
- "response_pattern": "+MTU:s*(d+)"
- },
- {
- "title": "UUID-LEN选择",
- "command": "AT+UUIDX",
- "mode": ["write", "read"],
- "params": [
- {"type": "combo", "startIndex": 0, "values": ["2字节", "16字节"]}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "透传服务UUID",
- "command": "AT+SVCUUID",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "透传数据发送UUID",
- "command": "AT+TXDTUUID",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "透传数据接收UUID",
- "command": "AT+RXDTUUID",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "16字节透传服务UUID",
- "command": "AT+SVCUUIDX",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "16字节透传数据发送UUID",
- "command": "AT+TXDTUUIDX",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "16字节透传数据接收UUID",
- "command": "AT+RXDTUUIDX",
- "mode": ["write", "read"],
- "params": [
- {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
- {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "操作2字节写UUID",
- "command": "AT+WRCHAR",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "2A08", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"},
- {"type": "text", "value": "7", "tip": "待写入的数据的长度,ASCII码字符,长度最大64字节", "label": "len"},
- {"type": "text", "value": "E5070101000000", "tip": "待写入的数据,允许写入十六进制数据", "label": "data"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "2字节写UUID特征CCC属性",
- "command": "AT+WRCCC",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"},
- {"type": "combo", "startIndex": 0, "tip": "特征值属性","values": ["关闭", "开启notify", "开启indication"], "label": "en"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "操作2字节读UUID",
- "command": "AT+RDCHAR",
- "mode": ["write", "execute"],
- "params": [
- {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "2字节读UUID属性",
- "command": "AT+RDPROP",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "操作16字节写UUID",
- "command": "AT+WRCHARX",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "2A08", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"},
- {"type": "text", "value": "7", "tip": "待写入的数据的长度,ASCII码字符,长度最大64字节", "label": "len"},
- {"type": "text", "value": "E5070101000000", "tip": "待写入的数据,允许写入十六进制数据", "label": "data"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "16字节写UUID特征CCC属性",
- "command": "AT+WRCCCX",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"},
- {"type": "combo", "startIndex": 0, "tip": "特征值属性","values": ["关闭", "开启notify", "开启indication"], "label": "en"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "操作16字节读UUID",
- "command": "AT+RDCHARX",
- "mode": ["write", "execute"],
- "params": [
- {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "16字节读UUID属性",
- "command": "AT+RDPROPX",
- "mode": ["write"],
- "params": [
- {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
- ],
- "response_pattern": "OK"
- },
- {
- "title": "2字节UUID列表",
- "command": "AT+LSUUID",
- "mode": ["read"],
- "params": [],
- "response_pattern": "OK"
- },
- {
- "title": "16字节UUID列表",
- "command": "AT+LSUUIDX",
- "mode": ["read"],
- "params": [],
- "response_pattern": "OK"
- }
- ]
- }
|