menu_VG218.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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+CIF",
  192. "mode": ["read"],
  193. "params": [],
  194. "response_pattern": "OK"
  195. },
  196. {
  197. "title": "透传输出前缀使能",
  198. "command": "AT+PSF",
  199. "mode": ["read","write"],
  200. "params": [
  201. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]}
  202. ],
  203. "response_pattern": "OK"
  204. },
  205. {
  206. "title": "透传输入前缀使能",
  207. "command": "AT+USF",
  208. "mode": ["read","write"],
  209. "params": [
  210. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]}
  211. ],
  212. "response_pattern": "OK"
  213. },
  214. {
  215. "title": "主机扫描",
  216. "command": "AT+SCN",
  217. "mode": ["write"],
  218. "params": [
  219. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "扫描模式", "values": ["停止扫描", "不打印扫描结果", "打印扫描结果"]}
  220. ],
  221. "response_pattern": "OK"
  222. },
  223. {
  224. "title": "主机扫描参数",
  225. "command": "AT+SCP",
  226. "mode": ["read","write"],
  227. "params": [
  228. {"type": "text", "value": "100", "tip": "扫描间隔时间,时间单位:毫秒", "label": "扫描间隔(ms)"},
  229. {"type": "text", "value": "50", "tip": "扫描窗口时间,时间单位:毫秒", "label": "扫描窗口(ms)"}
  230. ],
  231. "response_pattern": "+CNM:s*(d+)"
  232. },
  233. {
  234. "title": "绑定的从机MAC地址",
  235. "command": "AT+CNM",
  236. "mode": ["read","write"],
  237. "params": [
  238. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CNM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  239. ],
  240. "response_pattern": "+CNM:s*(d+)"
  241. },
  242. {
  243. "title": "绑定的从机广播名称",
  244. "command": "AT+CNN",
  245. "mode": ["read","write"],
  246. "params": [
  247. {"type": "text", "value": "", "tip": "NULL,设备名称匹配无效,设置操作有效,读取操作返回为空(`+CNN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  248. ],
  249. "response_pattern": "+CNN:s*(d+)"
  250. },
  251. {
  252. "title": "扫描打印过滤广播名称",
  253. "command": "AT+FTN",
  254. "mode": ["read","write"],
  255. "params": [
  256. {"type": "text", "value": "", "tip": "NULL,扫描打印名称过滤匹配无效,设置操作有效,读取操作返回为空(`+FTN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
  257. ],
  258. "response_pattern": "+FTN:s*(d+)"
  259. },
  260. {
  261. "title": "扫描打印过滤从机MAC地址",
  262. "command": "AT+FTM",
  263. "mode": ["read","write"],
  264. "params": [
  265. {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+FTM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
  266. ],
  267. "response_pattern": "+FTM:s*(d+)"
  268. },
  269. {
  270. "title": "蓝牙连接",
  271. "command": "AT+DCM",
  272. "mode": ["read","write"],
  273. "params": [
  274. {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "类型", "values": [
  275. "公共地址",
  276. "私有地址"
  277. ]},
  278. {"type": "text", "value": "3803112C4153", "tip": "固定长度12字符,hex字符串格式", "label": "MAC地址"}
  279. ],
  280. "response_pattern": "+DCM:s*(d+)"
  281. },
  282. {
  283. "title": "断开从机连接",
  284. "command": "AT+TCP",
  285. "mode": ["read","write"],
  286. "params": [
  287. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  288. ],
  289. "response_pattern": "+TCP:s*(d+)"
  290. },
  291. {
  292. "title": "断开主机连接",
  293. "command": "AT+TCC",
  294. "mode": ["read","write"],
  295. "params": [
  296. {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
  297. ],
  298. "response_pattern": "+TCC:s*(d+)"
  299. }
  300. ]
  301. }
  302. }