menu.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. {
  2. "appTitle": "AT指令调试助手",
  3. "cmdFrameMenu":
  4. [
  5. {
  6. "title": "指令模式",
  7. "command": "+++",
  8. "mode": ["execute"],
  9. "params": [],
  10. "response_pattern": "OK"
  11. },
  12. {
  13. "title": "数据透传模式",
  14. "command": "ATO",
  15. "mode": ["execute"],
  16. "params": [],
  17. "response_pattern": "OK"
  18. },
  19. {
  20. "title": "AT测试",
  21. "command": "AT",
  22. "mode": ["execute"],
  23. "params": [],
  24. "response_pattern": "OK"
  25. },
  26. {
  27. "title": "关闭回显",
  28. "command": "ATE0",
  29. "mode": ["execute"],
  30. "params": [],
  31. "response_pattern": "OK"
  32. },
  33. {
  34. "title": "打开回显",
  35. "command": "ATE1",
  36. "mode": ["execute"],
  37. "params": [],
  38. "response_pattern": "OK"
  39. },
  40. {
  41. "title": "查询版本信息",
  42. "command": "AT+GMR",
  43. "mode": ["execute"],
  44. "params": [],
  45. "response_pattern": "+GMR:s*(.+)"
  46. },
  47. {
  48. "title": "重启模块",
  49. "command": "AT+RST",
  50. "mode": ["execute"],
  51. "params": [],
  52. "response_pattern": "OK"
  53. },
  54. {
  55. "title": "恢复出厂设置",
  56. "command": "AT+RESTORE",
  57. "mode": ["execute"],
  58. "params": [],
  59. "response_pattern": "OK"
  60. },
  61. {
  62. "title": "断开蓝牙连接",
  63. "command": "AT+DISCN",
  64. "mode": ["execute"],
  65. "params": [],
  66. "response_pattern": "OK"
  67. },
  68. {
  69. "title": "查询蓝牙状态",
  70. "command": "AT+STATE",
  71. "mode": ["read"],
  72. "params": [],
  73. "response_pattern": "+STATE:s*(.+)"
  74. },
  75. {
  76. "title": "低功耗控制方式",
  77. "command": "AT+PWCTRL",
  78. "mode": ["write", "read"],
  79. "params": [
  80. {"type": "combo", "startIndex": 0, "values": ["引脚控制", "SLEEP命令控制"]}
  81. ],
  82. "response_pattern": "+PWCTRL:s*(d)"
  83. },
  84. {
  85. "title": "睡眠控制",
  86. "command": "AT+SLEEP",
  87. "mode": ["write", "read"],
  88. "params": [
  89. {"type": "combo", "startIndex": 0, "values": ["串口工作模式","保留","普通工作模式","待机模式(深度睡眠"]},
  90. {"type": "text", "value": "", "tip": "0:持续睡眠 10-234000: 睡眠10ms~234s后返回", "label": "参数"}
  91. ],
  92. "response_pattern": "+SLEEP:s*(d)"
  93. },
  94. {
  95. "title": "随意发",
  96. "command": "",
  97. "mode": ["data"],
  98. "params": [
  99. {"type": "text", "value": "0123456789", "tip": "", "label": "数据"}],
  100. "response_pattern": "OK"
  101. },
  102. {
  103. "title": "串口波特率",
  104. "command": "AT+BAUD",
  105. "mode": ["write", "read"],
  106. "params": [
  107. {"type": "combo", "startIndex": 0, "values": ["576000", "1000000", "9600", "14400", "19200", "38400", "57600", "115200", "256000", "460800"]}
  108. ],
  109. "response_pattern": "+RFPW:s*(d)"
  110. },
  111. {
  112. "title": "蓝牙MAC地址",
  113. "command": "AT+LBDADDR",
  114. "mode": ["write", "read"],
  115. "params": [
  116. {"type": "text", "value": "", "tip": "蓝牙地址,比如:12:34:56:78:9A:BC", "label": "MAC地址"}
  117. ],
  118. "response_pattern": "+CONN:s*(d)"
  119. },
  120. {
  121. "title": "主从模式切换",
  122. "command": "AT+ROLE",
  123. "mode": ["write", "read"],
  124. "params": [
  125. {"type": "combo", "startIndex": 0, "values": ["主模式","从模式"]}
  126. ],
  127. "response_pattern": "+ROLE:s*(d)"
  128. },
  129. {
  130. "title": "模块设备名",
  131. "command": "AT+NAME",
  132. "mode": ["write", "read"],
  133. "params": [
  134. {"type": "text", "value": "VG218", "tip": "最大长度为20个字符", "label": "设备名称"}
  135. ],
  136. "response_pattern": "+NAME:s*(.+)"
  137. },
  138. {
  139. "title": "蓝牙连接后串口模式",
  140. "command": "AT+CMODE",
  141. "mode": ["write", "read"],
  142. "params": [
  143. {"type": "combo", "startIndex": 0, "values": ["指令模式","透传模式"]}
  144. ],
  145. "response_pattern": "+CMODE:s*(d)"
  146. },
  147. {
  148. "title": "蓝牙连接参数",
  149. "command": "AT+CNPR",
  150. "mode": ["write", "read"],
  151. "params": [
  152. {"type": "text", "value": "", "tip": "最小连接间隔时间,单位1.25ms", "label": "min"},
  153. {"type": "text", "value": "", "tip": "最大连接间隔时间,单位1.25ms", "label": "max"},
  154. {"type": "text", "value": "", "tip": "从机延迟", "label": "latency"},
  155. {"type": "text", "value": "", "tip": "连接超时时间,单位10ms", "label": "timeout"}
  156. ],
  157. "response_pattern": "+CNPR:s*(.+)"
  158. },
  159. {
  160. "title": "蓝牙发射功率",
  161. "command": "AT+RFPW",
  162. "mode": ["write", "read"],
  163. "params": [
  164. {"type": "combo", "startIndex": 0, "values": ["6dBm", "4dBm", "0dBm", "-4dBm", "-8dBm", "-12dBm", "-16dBm", "-20dBm", "-40dBm"]}
  165. ],
  166. "response_pattern": "+RFPW:s*(d)"
  167. },
  168. {
  169. "title": "AT指令模式数据发送",
  170. "command": "AT+DTSEND",
  171. "mode": ["writes"],
  172. "params": [
  173. {"type": "text", "value": "", "tip": "待发送的透传数据的长度,ASCII码字符,长度最大256字节", "label": "datalen"},
  174. {"type": "text", "value": "", "tip": "待发送的透传数据,允许发送十六进 制数据,datalen*2等于data的长度,则发送十六进制数据,否则发送ASCII码数据", "label": "data"}
  175. ],
  176. "response_pattern": "OK"
  177. },
  178. {
  179. "title": "蓝牙MTU",
  180. "command": "AT+MTU",
  181. "mode": ["write", "read"],
  182. "params": [
  183. {"type": "text", "value": "", "tip": "MTU值,最小值为20, 最大值为238", "label": "num"}
  184. ],
  185. "response_pattern": "+MTU:s*(d+)"
  186. },
  187. {
  188. "title": "自动断开蓝牙连接",
  189. "command": "AT+AUTODISCN",
  190. "mode": ["write", "read"],
  191. "params": [
  192. {"type": "text", "value": "", "tip": "0:蓝牙连接成功后不自动断开连接 1-3600:蓝牙连接成功sec秒后自动断开连接", "label": "sec"}
  193. ],
  194. "response_pattern": "OK"
  195. },
  196. {
  197. "title": "蓝牙广播开关",
  198. "command": "AT+ADVEN",
  199. "mode": ["write", "read"],
  200. "params": [
  201. {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
  202. ],
  203. "response_pattern": "+ADVEN:s*(d)"
  204. },
  205. {
  206. "title": "蓝牙广播间隔时间",
  207. "command": "AT+ADVIT",
  208. "mode": ["write", "read"],
  209. "params": [
  210. {"type": "text", "value": "", "tip": "广播间隔时间,单位us,最小值为3.75ms,最大值为10.24s", "label": "timeus"}
  211. ],
  212. "response_pattern": "+ADVIT:s*(d+)"
  213. },
  214. {
  215. "title": "蓝牙广播类型",
  216. "command": "AT+ADVTP",
  217. "mode": ["write", "read"],
  218. "params": [
  219. {"type": "combo", "startIndex": 0, "values": [
  220. "可连接非定向",
  221. "可连接的定向高负载",
  222. "不可连接非定向",
  223. "可扫描的非定向",
  224. "可连接的定向低负载"
  225. ]}
  226. ],
  227. "response_pattern": "+ADVTP:s*(d)"
  228. },
  229. {
  230. "title": "蓝牙广播通道",
  231. "command": "AT+ADVCH",
  232. "mode": ["write", "read"],
  233. "params": [
  234. {"type": "combo", "startIndex": 1, "values": [
  235. "37", "38", "37+38", "39", "37+39", "38+39", "37+38+39"
  236. ]}
  237. ],
  238. "response_pattern": "+ADVCH:s*(d+)"
  239. },
  240. {
  241. "title": "广播报文自定义数据",
  242. "command": "AT+ADVUSRDT",
  243. "mode": ["write", "read"],
  244. "params": [
  245. {"type": "text", "value": "", "tip": "广播报文自定义数据的长度,最小值为0,最大值为29;0表示广播报文没有自定义数据", "label": "len"},
  246. {"type": "text", "value": "", "tip": "广播报文自定义数据,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数", "label": "advUserData"}
  247. ],
  248. "response_pattern": "OK"
  249. },
  250. {
  251. "title": "连接状态PHY",
  252. "command": "AT+PHYCN",
  253. "mode": ["write", "read"],
  254. "params": [
  255. {"type": "combo", "startIndex": 0, "values": ["1M", "2M", "500K", "125K"]}
  256. ],
  257. "response_pattern": "+PHYCN:s*(d+)"
  258. },
  259. {
  260. "title": "查询信号强度RSSI",
  261. "command": "AT+RSSI",
  262. "mode": ["read"],
  263. "params": [],
  264. "response_pattern": "+RSSI:s*(-?d+)"
  265. },
  266. {
  267. "title": "蓝牙连接使能",
  268. "command": "AT+CONNEN",
  269. "mode": ["write", "read"],
  270. "params": [
  271. {"type": "combo", "startIndex": 0, "values": ["不可连接", "允许连接"]}
  272. ],
  273. "response_pattern": "+CONNEN:s*(d)"
  274. },
  275. {
  276. "title": "蓝牙连接提示",
  277. "command": "AT+PROMPT",
  278. "mode": ["write", "read"],
  279. "params": [
  280. {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
  281. ],
  282. "response_pattern": "+PROMPT:s*(d)"
  283. },
  284. {
  285. "title": "蓝牙扫描参数",
  286. "command": "AT+SCPR",
  287. "mode": ["write", "read"],
  288. "params": [
  289. {"type": "text", "value": "", "tip": "两次扫描事件的间隔时间,单位ms", "label": "interval"},
  290. {"type": "text", "value": "", "tip": "每次扫描事件持续的时间,单位ms", "label": "window"}
  291. ],
  292. "response_pattern": "+SCPR:s*(.+)"
  293. },
  294. {
  295. "title": "搜索设备",
  296. "command": "AT+SCAN",
  297. "mode": ["write"],
  298. "params": [
  299. {"type": "text", "value": "", "tip": "0:停止搜索 1:开始搜索,只返回广播数据包 2:开始搜索,返回广播数据包和扫描响应数据包", "label": "mode"},
  300. {"type": "text", "value": "", "tip": "0: 持续搜索设备 1-255: 搜索1-255秒后自动停止搜索", "label": "tm"},
  301. {"type": "text", "value": "", "tip": "可选,搜索特定从设备蓝牙地址, Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,可以指定1~6个十六进制数地址。", "label": "mac"}
  302. ],
  303. "response_pattern": "OK"
  304. },
  305. {
  306. "title": "建立蓝牙连接",
  307. "command": "AT+CONN",
  308. "mode": ["write"],
  309. "params": [
  310. {"type": "text", "value": "0", "tip": "0:公共地址,始终使用一个蓝牙地址 1:私有地址,设备蓝牙地址可能会变化", "label": "addr_type"},
  311. {"type": "text", "value": "A4C13801AB0C", "tip": "从设备蓝牙地址, Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,共6个十六进制数。比如:A4C13801AB0C", "label": "bd_add"}
  312. ],
  313. "response_pattern": "+CONN:s*(d)"
  314. },
  315. {
  316. "title": "主机上电自动连接",
  317. "command": "AT+AUTOCONN",
  318. "mode": ["write", "read"],
  319. "params": [
  320. {"type": "text", "value": "1", "tip": "0:主机不自动连接1:主机搜索到已绑定设备时自动连接2-60:主机上电后自动连接已绑定设备,连接超时时间2-60秒", "label": "sec"}
  321. ],
  322. "response_pattern": "+PROMPT:s*(d)"
  323. },
  324. {
  325. "title": "清除绑定信息",
  326. "command": "AT+BOND=0",
  327. "mode": ["execute"],
  328. "params": [],
  329. "response_pattern": "OK"
  330. },
  331. {
  332. "title": "已绑定MAC地址",
  333. "command": "AT+BINDMAC",
  334. "mode": ["write", "read"],
  335. "params": [
  336. {"type": "text", "value": "0", "tip": "已绑定的从机地址,6字节地址以冒号分隔, 特殊:00:00:00:00:00:00 表示未绑定从机", "label": "address"}
  337. ],
  338. "response_pattern": "OK"
  339. },
  340. {
  341. "title": "身份认证模式",
  342. "command": "AT+AUTHTP",
  343. "mode": ["write", "read"],
  344. "params": [
  345. {"type": "combo", "startIndex": 0, "values": ["无认证", "密码认证"]}
  346. ],
  347. "response_pattern": "+PROMPT:s*(d)"
  348. },
  349. {
  350. "title": "身份认证密码",
  351. "command": "AT+AUTHPWD",
  352. "mode": ["write", "read"],
  353. "params": [
  354. {"type": "text", "value": "", "tip": "6-8位由数字、大小写字母组成,默认值为:888888", "label": "password"}
  355. ],
  356. "response_pattern": "+NAME:s*(.+)"
  357. },
  358. {
  359. "title": "身份认证登录",
  360. "command": "AT+AUTHLOGON",
  361. "mode": ["write"],
  362. "params": [
  363. {"type": "text", "value": "888888", "tip": "6-8位由数字、大小写字母组成,默认值为:888888", "label": "password"}
  364. ],
  365. "response_pattern": "+NAME:s*(.+)"
  366. },
  367. {
  368. "title": "主机配对功能",
  369. "command": "AT+MSMP",
  370. "mode": ["write", "read"],
  371. "params": [
  372. {"type": "combo", "startIndex": 0, "values": ["关闭", "开启"]}
  373. ],
  374. "response_pattern": "+CONNEN:s*(d)"
  375. },
  376. {
  377. "title": "主机配对码",
  378. "command": "AT+MPINCODE",
  379. "mode": ["write", "read"],
  380. "params": [
  381. {"type": "text", "value": "123456", "tip": "配对码,6位数字,最小值000000,最大值999999,默认值123456。", "label": "pin"}
  382. ],
  383. "response_pattern": "+MTU:s*(d+)"
  384. },
  385. {
  386. "title": "UUID-LEN选择",
  387. "command": "AT+UUIDX",
  388. "mode": ["write", "read"],
  389. "params": [
  390. {"type": "combo", "startIndex": 0, "values": ["2字节", "16字节"]}
  391. ],
  392. "response_pattern": "OK"
  393. },
  394. {
  395. "title": "透传服务UUID",
  396. "command": "AT+SVCUUID",
  397. "mode": ["write", "read"],
  398. "params": [
  399. {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
  400. {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
  401. ],
  402. "response_pattern": "OK"
  403. },
  404. {
  405. "title": "透传数据发送UUID",
  406. "command": "AT+TXDTUUID",
  407. "mode": ["write", "read"],
  408. "params": [
  409. {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
  410. {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
  411. ],
  412. "response_pattern": "OK"
  413. },
  414. {
  415. "title": "透传数据接收UUID",
  416. "command": "AT+RXDTUUID",
  417. "mode": ["write", "read"],
  418. "params": [
  419. {"type": "text", "value": "", "tip": "2字节的UUID", "label": "len"},
  420. {"type": "text", "value": "", "tip": "透传服务UUID,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
  421. ],
  422. "response_pattern": "OK"
  423. },
  424. {
  425. "title": "16字节透传服务UUID",
  426. "command": "AT+SVCUUIDX",
  427. "mode": ["write", "read"],
  428. "params": [
  429. {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
  430. {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
  431. ],
  432. "response_pattern": "OK"
  433. },
  434. {
  435. "title": "16字节透传数据发送UUID",
  436. "command": "AT+TXDTUUIDX",
  437. "mode": ["write", "read"],
  438. "params": [
  439. {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
  440. {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
  441. ],
  442. "response_pattern": "OK"
  443. },
  444. {
  445. "title": "16字节透传数据接收UUID",
  446. "command": "AT+RXDTUUIDX",
  447. "mode": ["write", "read"],
  448. "params": [
  449. {"type": "text", "value": "", "tip": "16字节的UUIDX", "label": "len"},
  450. {"type": "text", "value": "", "tip": "透传服务UUIDX,Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
  451. ],
  452. "response_pattern": "OK"
  453. },
  454. {
  455. "title": "操作2字节写UUID",
  456. "command": "AT+WRCHAR",
  457. "mode": ["write"],
  458. "params": [
  459. {"type": "text", "value": "2A08", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"},
  460. {"type": "text", "value": "7", "tip": "待写入的数据的长度,ASCII码字符,长度最大64字节", "label": "len"},
  461. {"type": "text", "value": "E5070101000000", "tip": "待写入的数据,允许写入十六进制数据", "label": "data"}
  462. ],
  463. "response_pattern": "OK"
  464. },
  465. {
  466. "title": "2字节写UUID特征CCC属性",
  467. "command": "AT+WRCCC",
  468. "mode": ["write"],
  469. "params": [
  470. {"type": "text", "value": "", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"},
  471. {"type": "combo", "startIndex": 0, "tip": "特征值属性","values": ["关闭", "开启notify", "开启indication"], "label": "en"}
  472. ],
  473. "response_pattern": "OK"
  474. },
  475. {
  476. "title": "操作2字节读UUID",
  477. "command": "AT+RDCHAR",
  478. "mode": ["write", "execute"],
  479. "params": [
  480. {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
  481. ],
  482. "response_pattern": "OK"
  483. },
  484. {
  485. "title": "2字节读UUID属性",
  486. "command": "AT+RDPROP",
  487. "mode": ["write"],
  488. "params": [
  489. {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共2个十六进制数", "label": "uuid"}
  490. ],
  491. "response_pattern": "OK"
  492. },
  493. {
  494. "title": "操作16字节写UUID",
  495. "command": "AT+WRCHARX",
  496. "mode": ["write"],
  497. "params": [
  498. {"type": "text", "value": "2A08", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"},
  499. {"type": "text", "value": "7", "tip": "待写入的数据的长度,ASCII码字符,长度最大64字节", "label": "len"},
  500. {"type": "text", "value": "E5070101000000", "tip": "待写入的数据,允许写入十六进制数据", "label": "data"}
  501. ],
  502. "response_pattern": "OK"
  503. },
  504. {
  505. "title": "16字节写UUID特征CCC属性",
  506. "command": "AT+WRCCCX",
  507. "mode": ["write"],
  508. "params": [
  509. {"type": "text", "value": "", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"},
  510. {"type": "combo", "startIndex": 0, "tip": "特征值属性","values": ["关闭", "开启notify", "开启indication"], "label": "en"}
  511. ],
  512. "response_pattern": "OK"
  513. },
  514. {
  515. "title": "操作16字节读UUID",
  516. "command": "AT+RDCHARX",
  517. "mode": ["write", "execute"],
  518. "params": [
  519. {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
  520. ],
  521. "response_pattern": "OK"
  522. },
  523. {
  524. "title": "16字节读UUID属性",
  525. "command": "AT+RDPROPX",
  526. "mode": ["write"],
  527. "params": [
  528. {"type": "text", "value": "2A00", "tip": "Ascii编码(0-9,A-F),两位Ascii码组成一个十六进制数,高位在前,总共16个十六进制数", "label": "uuid"}
  529. ],
  530. "response_pattern": "OK"
  531. },
  532. {
  533. "title": "2字节UUID列表",
  534. "command": "AT+LSUUID",
  535. "mode": ["read"],
  536. "params": [],
  537. "response_pattern": "OK"
  538. },
  539. {
  540. "title": "16字节UUID列表",
  541. "command": "AT+LSUUIDX",
  542. "mode": ["read"],
  543. "params": [],
  544. "response_pattern": "OK"
  545. }
  546. ]
  547. }