menu_VG7439.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. {
  2. "appTitle": "VG7439 AT指令调试助手",
  3. "appVersion": "1.2.1",
  4. "appAuthor": "Jiayi",
  5. "appDescription": "VG7439 AT指令调试助手",
  6. "appIcon": "icon.png",
  7. "appLogo": "logo.png",
  8. "appLogoText": "VG7439 AT指令调试助手",
  9. "appLogoSubText": "1.0.0",
  10. "appLogoIcon": "icon.png",
  11. "appLogoIconColor": "#ffffff",
  12. "appLogoIconSize": "24px",
  13. "config": {
  14. "uart": {
  15. "baudRate": "115200",
  16. "dataBits": 8,
  17. "parity": "none",
  18. "stopBits": 1,
  19. "flowControl": "none"
  20. },
  21. "cmdInfor": {
  22. "atCmdSuffix": "\\r\\n\\0"
  23. },
  24. "cmdFrameMenu":
  25. [
  26. {
  27. "title": "AT指令测试",
  28. "command": "AT",
  29. "mode": ["execute"],
  30. "params": [],
  31. "response_pattern": "OK"
  32. },
  33. {
  34. "title": "重启模块",
  35. "command": "AT+RST=1",
  36. "mode": ["execute"],
  37. "params": [],
  38. "response_pattern": "OK"
  39. },
  40. {
  41. "title": "单载波",
  42. "command": "AT+CW",
  43. "mode": ["write"],
  44. "params": [{"type": "text", "value": "2402", "tip": "start:>=2402, stop:<2402", "label": "频率(MHz)"}],
  45. "response_pattern": "OK"
  46. },
  47. {
  48. "title": "固件版本",
  49. "command": "AT+VER",
  50. "mode": ["read"],
  51. "params": [{"type": "text", "value": "", "tip": "", "label": "参数"}],
  52. "response_pattern": "OK"
  53. },
  54. {
  55. "title": "项目名称",
  56. "command": "AT+GMR",
  57. "mode": ["read"],
  58. "params": [{"type": "text", "value": "", "tip": "", "label": "参数"}],
  59. "response_pattern": "OK"
  60. },
  61. {
  62. "title": "恢复出厂设置",
  63. "command": "AT+FCT",
  64. "mode": ["write"],
  65. "params": [{"type": "text", "value": "0", "tip": "0:所有参数恢复出厂设置 1:部分恢复出厂设置", "label": "参数"}],
  66. "response_pattern": "OK"
  67. },
  68. {
  69. "title": "蓝牙角色",
  70. "command": "AT+BTM",
  71. "mode": ["write", "read"],
  72. "params": [
  73. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "角色", "values": ["BLE从机","蓝牙SPP","BLE主机"]}
  74. ],
  75. "response_pattern": "+TPL:s*(d)"
  76. },
  77. {
  78. "title": "蓝牙发射功率",
  79. "command": "AT+TPL",
  80. "mode": ["write", "read"],
  81. "params": [
  82. {"type": "combo","comboValueType": "text", "defIndex": 10, "startIndex": 0, "label": "发射功率(dBm)", "values": ["-17","-14","-11","-9","-6","-4","0","1","3","5","8"]}
  83. ],
  84. "response_pattern": "+TPL:s*(d)"
  85. },
  86. {
  87. "title": "串口参数",
  88. "command": "AT+BPS",
  89. "mode": ["write", "read"],
  90. "params": [
  91. {"type": "combo","comboValueType": "text", "defIndex": 6, "startIndex": 0, "values": ["2400", "4800", "9600", "19200", "38400", "57600", "115200", "128000", "230400", "256000", "460800", "921600", "1000000", "2000000"], "tip": "", "label": "波特率(bps)"},
  92. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["无", "偶校验"], "tip": "", "label": "校验位"},
  93. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["1位", "1位"], "tip": "", "label": "停止位"}
  94. ],
  95. "response_pattern": "OK"
  96. },
  97. {
  98. "title": "MAC地址",
  99. "command": "AT+MAC",
  100. "mode": ["write", "read"],
  101. "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}],
  102. "response_pattern": "OK"
  103. },
  104. {
  105. "title": "SPP MAC地址",
  106. "command": "AT+BTMAC",
  107. "mode": ["read"],
  108. "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}],
  109. "response_pattern": "OK"
  110. },
  111. {
  112. "title": "功耗控制",
  113. "command": "AT+LPM",
  114. "mode": ["write", "read"],
  115. "params": [
  116. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "模式", "tip": "低功耗模式,可通过命令控制蓝牙广播", "values": ["预留", "低功耗"]}
  117. ],
  118. "response_pattern": "+PWCTRL:s*(d)"
  119. },
  120. {
  121. "title": "数据包MTU",
  122. "command": "AT+MTU",
  123. "mode": ["write", "read"],
  124. "params": [
  125. {"type": "text", "value": "20", "tip": "最大数据包长度,23~247字节", "label": "参数"}
  126. ],
  127. "response_pattern": "+MTU:s*(d)"
  128. },
  129. {
  130. "title": "透传功能服务UUID长度",
  131. "command": "AT+ULEN",
  132. "mode": ["write", "read"],
  133. "params": [
  134. {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "长度", "tip": "透传服务uuid长度选择", "values": ["16", "128"]}
  135. ],
  136. "response_pattern": "OK"
  137. },
  138. {
  139. "title": "透传功能服务UUID16",
  140. "command": "AT+UUID",
  141. "mode": ["write", "read"],
  142. "params": [
  143. {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "写操作服务UUID"},
  144. {"type": "text", "value": "FFE1", "tip": "HEX字符串", "label": "写操作特征UUID"},
  145. {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "通知操作服务UUID"},
  146. {"type": "text", "value": "FFE2", "tip": "HEX字符串", "label": "通知操作特征UUID"},
  147. {"type": "text", "value": "00", "tip": "HEX字符串", "label": "写操作模式"}
  148. ],
  149. "response_pattern": "OK"
  150. },
  151. {
  152. "title": "透传功能服务UUID128",
  153. "command": "AT+UUIDX",
  154. "mode": ["write", "read"],
  155. "params": [
  156. {"type": "text", "value": "6E400001B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "写操作服务UUID"},
  157. {"type": "text", "value": "6E400002B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "写操作特征UUID"},
  158. {"type": "text", "value": "6E400001B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "通知操作服务UUID"},
  159. {"type": "text", "value": "6E400003B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "通知操作特征UUID"},
  160. {"type": "text", "value": "00", "tip": "HEX字符串", "label": "写操作模式"}
  161. ],
  162. "response_pattern": "OK"
  163. },
  164. {
  165. "title": "BLE广播使能",
  166. "command": "AT+ADE",
  167. "mode": ["write", "read"],
  168. "params": [
  169. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭广播", "开启广播"]}
  170. ],
  171. "response_pattern": "+PWCTRL:s*(d)"
  172. },
  173. {
  174. "title": "SPP使能",
  175. "command": "AT+SPP",
  176. "mode": ["write", "read"],
  177. "params": [
  178. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭SPP", "开启SPP"]}
  179. ],
  180. "response_pattern": "+PWCTRL:s*(d)"
  181. },
  182. {
  183. "title": "广播周期",
  184. "command": "AT+ADP",
  185. "mode": ["write", "read"],
  186. "params": [
  187. {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "广播周期(ms)", "tip": "", "values": ["20", "50", "100", "200", "500", "1000", "1500", "2000", "2500", "3000", "4000", "5000"]}
  188. ],
  189. "response_pattern": "+PWCTRL:s*(d)"
  190. },
  191. {
  192. "title": "广播自定义内容",
  193. "command": "AT+ADD",
  194. "mode": ["write", "read"],
  195. "params": [
  196. {"type": "text", "value": "", "tip": "以16进制数设置:HEX0102,以ASCLL字符串设置:STR0102", "label": "参数"}
  197. ],
  198. "response_pattern": "+ADD:s*(d)"
  199. },
  200. {
  201. "title": "广播数据包",
  202. "command": "AT+ADS",
  203. "mode": ["write", "read"],
  204. "params": [
  205. {"type": "text", "value": "", "tip": "以16进制数设置:HEX0709564737343339,协议参照蓝牙广播协议栈", "label": "参数"}
  206. ],
  207. "response_pattern": "+ADS:s*(d)"
  208. },
  209. {
  210. "title": "广播响应数据包",
  211. "command": "AT+ADR",
  212. "mode": ["write", "read"],
  213. "params": [
  214. {"type": "text", "value": "", "tip": "以16进制数设置:HEX0709564737343339,协议参照蓝牙广播协议栈", "label": "参数"}
  215. ],
  216. "response_pattern": "+ADR:s*(d)"
  217. },
  218. {
  219. "title": "BLE广播设备名称",
  220. "command": "AT+NAM",
  221. "mode": ["write", "read"],
  222. "params": [
  223. {"type": "text", "value": "VG7439", "tip": "最大长度为16个字符", "label": "设备名称"}
  224. ],
  225. "response_pattern": "+NAM:s*(.+)"
  226. },
  227. {
  228. "title": "BLE广播设备名称前缀",
  229. "command": "AT+FNM",
  230. "mode": ["write", "read"],
  231. "params": [
  232. {"type": "text", "value": "VG7439-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"}
  233. ],
  234. "response_pattern": "+FNM:s*(.+)"
  235. },
  236. {
  237. "title": "SPP广播设备名称",
  238. "command": "AT+BTNAM",
  239. "mode": ["write", "read"],
  240. "params": [
  241. {"type": "text", "value": "BT7439", "tip": "最大长度为16个字符", "label": "设备名称"}
  242. ],
  243. "response_pattern": "+NAM:s*(.+)"
  244. },
  245. {
  246. "title": "SPP广播设备名称前缀",
  247. "command": "AT+BTFNM",
  248. "mode": ["write", "read"],
  249. "params": [
  250. {"type": "text", "value": "BT7439-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"}
  251. ],
  252. "response_pattern": "+FNM:s*(.+)"
  253. },
  254. {
  255. "title": "产品识别码",
  256. "command": "AT+PID",
  257. "mode": ["write", "read"],
  258. "params": [{"type": "text", "value": "", "tip": "比如:1234", "label": "参数"}],
  259. "response_pattern": "OK"
  260. },
  261. {
  262. "title": "连接间隔",
  263. "command": "AT+CIT",
  264. "mode": ["write", "read"],
  265. "params": [
  266. {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "连接间隔(ms)", "tip": "", "values": ["20", "30", "50", "100", "200", "300", "400", "500", "1000", "1500", "2000"]}
  267. ],
  268. "response_pattern": "+CIT:s*(d)"
  269. },
  270. {
  271. "title": "主机扫描参数",
  272. "command": "AT+SCP",
  273. "mode": ["write", "read"],
  274. "params": [{"type": "text", "value": "", "tip": "", "label": "窗口时间(ms)"}, {"type": "text", "value": "", "tip": "间隔时间必须比窗口时间大", "label": "间隔时间(ms)"}],
  275. "response_pattern": "OK"
  276. },
  277. {
  278. "title": "主机扫描",
  279. "command": "AT+SCN",
  280. "mode": ["write"],
  281. "params": [
  282. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "扫描模式", "values": ["停止扫描", "不打印扫描结果", "打印扫描结果"]}
  283. ],
  284. "response_pattern": "OK"
  285. },
  286. {
  287. "title": "绑定的从机MAC地址",
  288. "command": "AT+CNM",
  289. "mode": ["write", "read"],
  290. "params": [
  291. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CNM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  292. ],
  293. "response_pattern": "+CNM:s*(d+)"
  294. },
  295. {
  296. "title": "绑定的从机广播名称",
  297. "command": "AT+CNN",
  298. "mode": ["write", "read"],
  299. "params": [
  300. {"type": "text", "value": "", "tip": "NULL,设备名称匹配无效,设置操作有效,读取操作返回为空(`+CNN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  301. ],
  302. "response_pattern": "+CNN:s*(d+)"
  303. },
  304. {
  305. "title": "扫描打印过滤广播名称",
  306. "command": "AT+FTN",
  307. "mode": ["write", "read"],
  308. "params": [
  309. {"type": "text", "value": "", "tip": "NULL,扫描打印名称过滤匹配无效,设置操作有效,读取操作返回为空(`+FTN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  310. ],
  311. "response_pattern": "+FTN:s*(d+)"
  312. },
  313. {
  314. "title": "扫描打印过滤从机MAC地址",
  315. "command": "AT+FTM",
  316. "mode": ["write", "read"],
  317. "params": [
  318. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+FTM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  319. ],
  320. "response_pattern": "+FTM:s*(d+)"
  321. },
  322. {
  323. "title": "断开从机连接",
  324. "command": "AT+TCP",
  325. "mode": ["write", "read"],
  326. "params": [
  327. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  328. ],
  329. "response_pattern": "+TCP:s*(d+)"
  330. },
  331. {
  332. "title": "断开主机连接",
  333. "command": "AT+TCC",
  334. "mode": ["write", "read"],
  335. "params": [
  336. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  337. ],
  338. "response_pattern": "+TCC:s*(d+)"
  339. }
  340. ]
  341. }
  342. }