menu_VG218.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. {
  2. "appTitle": "VG218T240N0S1 AT指令调试助手",
  3. "appVersion": "1.0.0",
  4. "appAuthor": "Jiayi",
  5. "appDescription": "VG218T240N0S1 AT指令调试助手",
  6. "appIcon": "icon.png",
  7. "appLogo": "logo.png",
  8. "appLogoText": "VG218T240N0S1 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+FCT",
  57. "mode": ["write"],
  58. "params": [{"type": "text", "value": "0", "tip": "0:所有参数恢复出厂设置 1:部分恢复出厂设置", "label": "参数"}],
  59. "response_pattern": "OK"
  60. },
  61. {
  62. "title": "蓝牙发射功率",
  63. "command": "AT+TPL",
  64. "mode": ["read","write"],
  65. "params": [
  66. {"type": "combo","comboValueType": "text", "defIndex": 3, "startIndex": 0, "label": "发射功率(dBm)", "values": ["9", "6", "4", "0", "-4", "-8", "-12", "-16", "-20", "-40"]}
  67. ],
  68. "response_pattern": "+TPL:s*(d)"
  69. },
  70. {
  71. "title": "串口参数",
  72. "command": "AT+BPS",
  73. "mode": ["read","write"],
  74. "params": [
  75. {"type": "combo","comboValueType": "text", "defIndex": 6, "startIndex": 0, "values": ["2400", "4800", "9600", "19200", "38400", "57600", "115200"], "tip": "", "label": "波特率(bps)"},
  76. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["无", "奇", "偶", "MASK", "SPACE"], "tip": "", "label": "校验位"},
  77. {"type": "combo","comboValueType": "index", "defIndex": 1, "startIndex": 0, "values": ["0.5位", "1位", "1.5位", "2位"], "tip": "", "label": "停止位"}
  78. ],
  79. "response_pattern": "OK"
  80. },
  81. {
  82. "title": "MAC地址",
  83. "command": "AT+MAC",
  84. "mode": ["read","write"],
  85. "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}],
  86. "response_pattern": "OK"
  87. },
  88. {
  89. "title": "功耗控制",
  90. "command": "AT+LPM",
  91. "mode": ["read","write"],
  92. "params": [
  93. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "模式", "tip": "待机模式功耗最低,串口蓝牙都不工作,低功耗模式,可通过命令控制蓝牙广播", "values": ["待机", "低功耗"]}
  94. ],
  95. "response_pattern": "+PWCTRL:s*(d)"
  96. },
  97. {
  98. "title": "透传数据通道",
  99. "command": "AT+CCH",
  100. "mode": ["read","write"],
  101. "params": [
  102. {"type": "text", "value": "20", "tip": "10,主机透传通道,20,从机通道", "label": "参数"}
  103. ],
  104. "response_pattern": "+CCH:s*(d)"
  105. },
  106. {
  107. "title": "数据包MTU",
  108. "command": "AT+MTU",
  109. "mode": ["read","write"],
  110. "params": [
  111. {"type": "text", "value": "20", "tip": "最大数据包长度,23~247字节", "label": "参数"}
  112. ],
  113. "response_pattern": "+MTU:s*(d)"
  114. },
  115. {
  116. "title": "透传功能服务UUID",
  117. "command": "AT+UUID",
  118. "mode": ["read","write"],
  119. "params": [
  120. {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "写操作服务UUID"},
  121. {"type": "text", "value": "FFE1", "tip": "HEX字符串", "label": "写操作特征UUID"},
  122. {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "通知操作服务UUID"},
  123. {"type": "text", "value": "FFE2", "tip": "HEX字符串", "label": "通知操作特征UUID"},
  124. {"type": "text", "value": "0000", "tip": "HEX字符串", "label": "写操作模式"}
  125. ],
  126. "response_pattern": "OK"
  127. },
  128. {
  129. "title": "广播使能",
  130. "command": "AT+ADE",
  131. "mode": ["read","write"],
  132. "params": [
  133. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭广播", "开启广播"]}
  134. ],
  135. "response_pattern": "+PWCTRL:s*(d)"
  136. },
  137. {
  138. "title": "广播周期",
  139. "command": "AT+ADP",
  140. "mode": ["read","write"],
  141. "params": [
  142. {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "广播周期(ms)", "tip": "", "values": ["20", "50", "100", "200", "500", "1000", "1500", "2000", "2500", "3000", "4000", "5000"]}
  143. ],
  144. "response_pattern": "+PWCTRL:s*(d)"
  145. },
  146. {
  147. "title": "广播自定义内容",
  148. "command": "AT+ADD",
  149. "mode": ["read","write"],
  150. "params": [
  151. {"type": "text", "value": "", "tip": "以16进制数设置:HEX0102,以ASCLL字符串设置:STR0102", "label": "参数"}
  152. ],
  153. "response_pattern": "+ADD:s*(d)"
  154. },
  155. {
  156. "title": "广播设备名称",
  157. "command": "AT+NAM",
  158. "mode": ["read","write"],
  159. "params": [
  160. {"type": "text", "value": "VG218", "tip": "最大长度为16个字符", "label": "设备名称"}
  161. ],
  162. "response_pattern": "+NAM:s*(.+)"
  163. },
  164. {
  165. "title": "广播设备名称前缀",
  166. "command": "AT+FNM",
  167. "mode": ["read","write"],
  168. "params": [
  169. {"type": "text", "value": "VG218-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"}
  170. ],
  171. "response_pattern": "+FNM:s*(.+)"
  172. },
  173. {
  174. "title": "产品识别码",
  175. "command": "AT+PID",
  176. "mode": ["read","write"],
  177. "params": [{"type": "text", "value": "", "tip": "比如:1234", "label": "参数"}],
  178. "response_pattern": "OK"
  179. },
  180. {
  181. "title": "连接间隔",
  182. "command": "AT+CIT",
  183. "mode": ["read","write"],
  184. "params": [
  185. {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "连接间隔(ms)", "tip": "", "values": ["20", "30", "50", "100", "200", "300", "400", "500", "1000", "1500", "2000"]}
  186. ],
  187. "response_pattern": "+CIT:s*(d)"
  188. },
  189. {
  190. "title": "主机自动匹配从机",
  191. "command": "AT+ATP",
  192. "mode": ["read","write"],
  193. "params": [{"type": "text", "value": "", "tip": "比如:-50", "label": "信号强度"}, {"type": "text", "value": "", "tip": "比如:1122334455", "label": "自定义广播数据,4个字节"}],
  194. "response_pattern": "OK"
  195. },
  196. {
  197. "title": "主机连接信息",
  198. "command": "AT+CIF",
  199. "mode": ["read"],
  200. "params": [],
  201. "response_pattern": "OK"
  202. },
  203. {
  204. "title": "透传输出前缀使能",
  205. "command": "AT+PSF",
  206. "mode": ["read","write"],
  207. "params": [
  208. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]}
  209. ],
  210. "response_pattern": "OK"
  211. },
  212. {
  213. "title": "透传输入前缀使能",
  214. "command": "AT+USF",
  215. "mode": ["read","write"],
  216. "params": [
  217. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]}
  218. ],
  219. "response_pattern": "OK"
  220. },
  221. {
  222. "title": "主机扫描",
  223. "command": "AT+SCN",
  224. "mode": ["write"],
  225. "params": [
  226. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "扫描模式", "values": ["停止扫描", "不打印扫描结果", "打印扫描结果"]}
  227. ],
  228. "response_pattern": "OK"
  229. },
  230. {
  231. "title": "主机扫描参数",
  232. "command": "AT+SCP",
  233. "mode": ["read","write"],
  234. "params": [
  235. {"type": "text", "value": "100", "tip": "扫描间隔时间,时间单位:毫秒", "label": "扫描间隔(ms)"},
  236. {"type": "text", "value": "50", "tip": "扫描窗口时间,时间单位:毫秒", "label": "扫描窗口(ms)"}
  237. ],
  238. "response_pattern": "+CNM:s*(d+)"
  239. },
  240. {
  241. "title": "绑定的从机MAC地址",
  242. "command": "AT+CNM",
  243. "mode": ["read","write"],
  244. "params": [
  245. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CNM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  246. ],
  247. "response_pattern": "+CNM:s*(d+)"
  248. },
  249. {
  250. "title": "绑定的从机MAC地址列表",
  251. "command": "AT+CMS",
  252. "mode": ["read","write"],
  253. "params": [
  254. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CMS:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址1"},
  255. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CMS:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址2"},
  256. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CMS:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址3"},
  257. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CMS:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址4"},
  258. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CMS:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址5"}
  259. ],
  260. "response_pattern": "+CMS:s*(d+)"
  261. },
  262. {
  263. "title": "清空主机绑定MAC地址列表",
  264. "command": "AT+CMS",
  265. "mode": ["write"],
  266. "params": [
  267. {"type": "text", "value": "NULL", "tip": "NULL", "label": "参数"}
  268. ],
  269. "response_pattern": "+CMS:s*(d+)"
  270. },
  271. {
  272. "title": "绑定的从机广播名称",
  273. "command": "AT+CNN",
  274. "mode": ["read","write"],
  275. "params": [
  276. {"type": "text", "value": "", "tip": "NULL,设备名称匹配无效,设置操作有效,读取操作返回为空(`+CNN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  277. ],
  278. "response_pattern": "+CNN:s*(d+)"
  279. },
  280. {
  281. "title": "扫描打印过滤广播名称",
  282. "command": "AT+FTN",
  283. "mode": ["read","write"],
  284. "params": [
  285. {"type": "text", "value": "", "tip": "NULL,扫描打印名称过滤匹配无效,设置操作有效,读取操作返回为空(`+FTN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  286. ],
  287. "response_pattern": "+FTN:s*(d+)"
  288. },
  289. {
  290. "title": "扫描打印过滤从机MAC地址",
  291. "command": "AT+FTM",
  292. "mode": ["read","write"],
  293. "params": [
  294. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+FTM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  295. ],
  296. "response_pattern": "+FTM:s*(d+)"
  297. },
  298. {
  299. "title": "蓝牙连接",
  300. "command": "AT+DCM",
  301. "mode": ["read","write"],
  302. "params": [
  303. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "类型", "values": [
  304. "公共地址",
  305. "私有地址"
  306. ]},
  307. {"type": "text", "value": "3803112C4153", "tip": "固定长度12字符,hex字符串格式", "label": "MAC地址"}
  308. ],
  309. "response_pattern": "+DCM:s*(d+)"
  310. },
  311. {
  312. "title": "断开从机连接",
  313. "command": "AT+TCP",
  314. "mode": ["read","write"],
  315. "params": [
  316. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  317. ],
  318. "response_pattern": "+TCP:s*(d+)"
  319. },
  320. {
  321. "title": "断开主机连接",
  322. "command": "AT+TCC",
  323. "mode": ["read","write"],
  324. "params": [
  325. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  326. ],
  327. "response_pattern": "+TCC:s*(d+)"
  328. }
  329. ]
  330. }
  331. }