{ "appTitle": "VG218T240N0S1 AT指令调试助手", "appVersion": "1.0.0", "appAuthor": "Jiayi", "appDescription": "VG218T240N0S1 AT指令调试助手", "appIcon": "icon.png", "appLogo": "logo.png", "appLogoText": "VG218T240N0S1 AT指令调试助手", "appLogoSubText": "1.0.0", "appLogoIcon": "icon.png", "appLogoIconColor": "#ffffff", "appLogoIconSize": "24px", "config": { "uart": { "baudRate": "115200", "dataBits": 8, "parity": "none", "stopBits": 1, "flowControl": "none" }, "cmdInfor": { "atCmdSuffix": "\\r\\n\\0" }, "cmdFrameMenu": [ { "title": "AT指令测试", "command": "AT", "mode": ["execute"], "params": [], "response_pattern": "OK" }, { "title": "重启模块", "command": "AT+RST=1", "mode": ["execute"], "params": [], "response_pattern": "OK" }, { "title": "单载波", "command": "AT+CW", "mode": ["write"], "params": [{"type": "text", "value": "2402", "tip": "start:>=2402, stop:<2402", "label": "频率(MHz)"}], "response_pattern": "OK" }, { "title": "固件版本", "command": "AT+VER", "mode": ["read"], "params": [{"type": "text", "value": "", "tip": "", "label": "参数"}], "response_pattern": "OK" }, { "title": "恢复出厂设置", "command": "AT+FCT", "mode": ["write"], "params": [{"type": "text", "value": "0", "tip": "0:所有参数恢复出厂设置 1:部分恢复出厂设置", "label": "参数"}], "response_pattern": "OK" }, { "title": "蓝牙发射功率", "command": "AT+TPL", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "text", "defIndex": 3, "startIndex": 0, "label": "发射功率(dBm)", "values": ["9", "6", "4", "0", "-4", "-8", "-12", "-16", "-20", "-40"]} ], "response_pattern": "+TPL:s*(d)" }, { "title": "串口参数", "command": "AT+BPS", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "text", "defIndex": 6, "startIndex": 0, "values": ["2400", "4800", "9600", "19200", "38400", "57600", "115200"], "tip": "", "label": "波特率(bps)"}, {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["无", "奇", "偶", "MASK", "SPACE"], "tip": "", "label": "校验位"}, {"type": "combo","comboValueType": "index", "defIndex": 1, "startIndex": 0, "values": ["0.5位", "1位", "1.5位", "2位"], "tip": "", "label": "停止位"} ], "response_pattern": "OK" }, { "title": "MAC地址", "command": "AT+MAC", "mode": ["read","write"], "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}], "response_pattern": "OK" }, { "title": "功耗控制", "command": "AT+LPM", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "模式", "tip": "待机模式功耗最低,串口蓝牙都不工作,低功耗模式,可通过命令控制蓝牙广播", "values": ["待机", "低功耗"]} ], "response_pattern": "+PWCTRL:s*(d)" }, { "title": "透传数据通道", "command": "AT+CCH", "mode": ["read","write"], "params": [ {"type": "text", "value": "20", "tip": "10,主机透传通道,20,从机通道", "label": "参数"} ], "response_pattern": "+CCH:s*(d)" }, { "title": "数据包MTU", "command": "AT+MTU", "mode": ["read","write"], "params": [ {"type": "text", "value": "20", "tip": "最大数据包长度,23~247字节", "label": "参数"} ], "response_pattern": "+MTU:s*(d)" }, { "title": "透传功能服务UUID", "command": "AT+UUID", "mode": ["read","write"], "params": [ {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "写操作服务UUID"}, {"type": "text", "value": "FFE1", "tip": "HEX字符串", "label": "写操作特征UUID"}, {"type": "text", "value": "FFE0", "tip": "HEX字符串", "label": "通知操作服务UUID"}, {"type": "text", "value": "FFE2", "tip": "HEX字符串", "label": "通知操作特征UUID"}, {"type": "text", "value": "0000", "tip": "HEX字符串", "label": "写操作模式"} ], "response_pattern": "OK" }, { "title": "广播使能", "command": "AT+ADE", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭广播", "开启广播"]} ], "response_pattern": "+PWCTRL:s*(d)" }, { "title": "广播周期", "command": "AT+ADP", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "广播周期(ms)", "tip": "", "values": ["20", "50", "100", "200", "500", "1000", "1500", "2000", "2500", "3000", "4000", "5000"]} ], "response_pattern": "+PWCTRL:s*(d)" }, { "title": "广播自定义内容", "command": "AT+ADD", "mode": ["read","write"], "params": [ {"type": "text", "value": "", "tip": "以16进制数设置:HEX0102,以ASCLL字符串设置:STR0102", "label": "参数"} ], "response_pattern": "+ADD:s*(d)" }, { "title": "广播设备名称", "command": "AT+NAM", "mode": ["read","write"], "params": [ {"type": "text", "value": "VG218", "tip": "最大长度为16个字符", "label": "设备名称"} ], "response_pattern": "+NAM:s*(.+)" }, { "title": "广播设备名称前缀", "command": "AT+FNM", "mode": ["read","write"], "params": [ {"type": "text", "value": "VG218-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"} ], "response_pattern": "+FNM:s*(.+)" }, { "title": "产品识别码", "command": "AT+PID", "mode": ["read","write"], "params": [{"type": "text", "value": "", "tip": "比如:1234", "label": "参数"}], "response_pattern": "OK" }, { "title": "连接间隔", "command": "AT+CIT", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "连接间隔(ms)", "tip": "", "values": ["20", "30", "50", "100", "200", "300", "400", "500", "1000", "1500", "2000"]} ], "response_pattern": "+CIT:s*(d)" }, { "title": "主机连接信息", "command": "AT+CIF", "mode": ["read"], "params": [], "response_pattern": "OK" }, { "title": "透传输出前缀使能", "command": "AT+PSF", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]} ], "response_pattern": "OK" }, { "title": "透传输入前缀使能", "command": "AT+USF", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "values": ["禁止", "使能"]} ], "response_pattern": "OK" }, { "title": "主机扫描", "command": "AT+SCN", "mode": ["write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "扫描模式", "values": ["停止扫描", "不打印扫描结果", "打印扫描结果"]} ], "response_pattern": "OK" }, { "title": "主机扫描参数", "command": "AT+SCP", "mode": ["read","write"], "params": [ {"type": "text", "value": "100", "tip": "扫描间隔时间,时间单位:毫秒", "label": "扫描间隔(ms)"}, {"type": "text", "value": "50", "tip": "扫描窗口时间,时间单位:毫秒", "label": "扫描窗口(ms)"} ], "response_pattern": "+CNM:s*(d+)" }, { "title": "绑定的从机MAC地址", "command": "AT+CNM", "mode": ["read","write"], "params": [ {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CNM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"} ], "response_pattern": "+CNM:s*(d+)" }, { "title": "绑定的从机广播名称", "command": "AT+CNN", "mode": ["read","write"], "params": [ {"type": "text", "value": "", "tip": "NULL,设备名称匹配无效,设置操作有效,读取操作返回为空(`+CNN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"} ], "response_pattern": "+CNN:s*(d+)" }, { "title": "扫描打印过滤广播名称", "command": "AT+FTN", "mode": ["read","write"], "params": [ {"type": "text", "value": "", "tip": "NULL,扫描打印名称过滤匹配无效,设置操作有效,读取操作返回为空(`+FTN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"} ], "response_pattern": "+FTN:s*(d+)" }, { "title": "扫描打印过滤从机MAC地址", "command": "AT+FTM", "mode": ["read","write"], "params": [ {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+FTM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"} ], "response_pattern": "+FTM:s*(d+)" }, { "title": "蓝牙连接", "command": "AT+DCM", "mode": ["read","write"], "params": [ {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "类型", "values": [ "公共地址", "私有地址" ]}, {"type": "text", "value": "3803112C4153", "tip": "固定长度12字符,hex字符串格式", "label": "MAC地址"} ], "response_pattern": "+DCM:s*(d+)" }, { "title": "断开从机连接", "command": "AT+TCP", "mode": ["read","write"], "params": [ {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"} ], "response_pattern": "+TCP:s*(d+)" }, { "title": "断开主机连接", "command": "AT+TCC", "mode": ["read","write"], "params": [ {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"} ], "response_pattern": "+TCC:s*(d+)" } ] } }