dropLin 4 dni temu
commit
70ca47b273
4 zmienionych plików z 353 dodań i 0 usunięć
  1. 11 0
      .gitignore
  2. BIN
      app.ico
  3. BIN
      atConfigTool.exe
  4. 342 0
      menu_VG7439.json

+ 11 - 0
.gitignore

@@ -0,0 +1,11 @@
+.vscode
+*.html
+gitFocePushRemote.bat
+gitPushRemote.bat
+gitInit.bat
+# 忽略my_folder文件夹下的所有文件和文件夹  
+keil_v5/*  
+  
+# 但不忽略keil_v5文件夹下的.uvprojx和.uvproj文件  
+!keil_v5/*.uvprojx  
+!keil_v5/*.uvoptx

BIN
app.ico


BIN
atConfigTool.exe


+ 342 - 0
menu_VG7439.json

@@ -0,0 +1,342 @@
+{
+    "appTitle": "VG7439 AT指令调试助手",
+    "appVersion": "1.2.1",
+    "appAuthor": "Jiayi",
+    "appDescription": "VG7439 AT指令调试助手",
+    "appIcon": "icon.png",
+    "appLogo": "logo.png",
+    "appLogoText": "VG7439 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+GMR",
+                "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+BTM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "角色", "values": ["BLE从机","蓝牙SPP","BLE主机"]}
+                ],
+                "response_pattern": "+TPL:s*(d)"
+            },
+            {
+                "title": "蓝牙发射功率",
+                "command": "AT+TPL",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "text", "defIndex": 10, "startIndex": 0, "label": "发射功率(dBm)", "values": ["-17","-14","-11","-9","-6","-4","0","1","3","5","8"]}
+                ],
+                "response_pattern": "+TPL:s*(d)"
+            },
+            {
+                "title": "串口参数",
+                "command": "AT+BPS",
+                "mode": ["write", "read"],
+                "params": [
+                    {"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)"},
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["无", "偶校验"], "tip": "", "label": "校验位"},
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "values": ["1位", "1位"], "tip": "", "label": "停止位"}
+                ],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "MAC地址",
+                "command": "AT+MAC",
+                "mode": ["write", "read"],
+                "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "SPP MAC地址",
+                "command": "AT+BTMAC",
+                "mode": ["read"],
+                "params": [{"type": "text", "value": "", "tip": "固定长度12字符, 000000000000,恢复默认MAC地址", "label": "参数"}],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "功耗控制",
+                "command": "AT+LPM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "模式", "tip": "低功耗模式,可通过命令控制蓝牙广播", "values": ["预留", "低功耗"]}
+                ],
+                "response_pattern": "+PWCTRL:s*(d)"
+            },
+            {
+                "title": "数据包MTU",
+                "command": "AT+MTU",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "20", "tip": "最大数据包长度,23~247字节", "label": "参数"}
+                ],
+                "response_pattern": "+MTU:s*(d)"
+            },
+            {
+                "title": "透传功能服务UUID长度",
+                "command": "AT+ULEN",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "text", "defIndex": 0, "startIndex": 0, "label": "长度", "tip": "透传服务uuid长度选择", "values": ["16", "128"]}
+                ],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "透传功能服务UUID16",
+                "command": "AT+UUID",
+                "mode": ["write", "read"],
+                "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": "00", "tip": "HEX字符串", "label": "写操作模式"}
+                ],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "透传功能服务UUID128",
+                "command": "AT+UUIDX",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "6E400001B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "写操作服务UUID"},
+                    {"type": "text", "value": "6E400002B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "写操作特征UUID"},
+                    {"type": "text", "value": "6E400001B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "通知操作服务UUID"},
+                    {"type": "text", "value": "6E400003B5A3F393E0A9E50E24DCCA9E", "tip": "HEX字符串", "label": "通知操作特征UUID"},
+                    {"type": "text", "value": "00", "tip": "HEX字符串", "label": "写操作模式"}
+                ],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "BLE广播使能",
+                "command": "AT+ADE",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭广播", "开启广播"]}
+                ],
+                "response_pattern": "+PWCTRL:s*(d)"
+            },
+            {
+                "title": "SPP使能",
+                "command": "AT+SPP",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "使能", "tip": "", "values": ["关闭SPP", "开启SPP"]}
+                ],
+                "response_pattern": "+PWCTRL:s*(d)"
+            },
+            {
+                "title": "广播周期",
+                "command": "AT+ADP",
+                "mode": ["write", "read"],
+                "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": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "以16进制数设置:HEX0102,以ASCLL字符串设置:STR0102", "label": "参数"}
+                ],
+                "response_pattern": "+ADD:s*(d)"
+            },
+            {
+                "title": "广播数据包",
+                "command": "AT+ADS",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "以16进制数设置:HEX0709564737343339,协议参照蓝牙广播协议栈", "label": "参数"}
+                ],
+                "response_pattern": "+ADS:s*(d)"
+            },
+            {
+                "title": "广播响应数据包",
+                "command": "AT+ADR",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "以16进制数设置:HEX0709564737343339,协议参照蓝牙广播协议栈", "label": "参数"}
+                ],
+                "response_pattern": "+ADR:s*(d)"
+            },
+            {
+                "title": "BLE广播设备名称",
+                "command": "AT+NAM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "VG7439", "tip": "最大长度为16个字符", "label": "设备名称"}
+                ],
+                "response_pattern": "+NAM:s*(.+)"
+            },
+            {
+                "title": "BLE广播设备名称前缀",
+                "command": "AT+FNM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "VG7439-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"}
+                ],
+                "response_pattern": "+FNM:s*(.+)"
+            },
+            {
+                "title": "SPP广播设备名称",
+                "command": "AT+BTNAM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "BT7439", "tip": "最大长度为16个字符", "label": "设备名称"}
+                ],
+                "response_pattern": "+NAM:s*(.+)"
+            },
+            {
+                "title": "SPP广播设备名称前缀",
+                "command": "AT+BTFNM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "BT7439-", "tip": "最大长度为8个字符,自动添加mac地址在后面", "label": "设备名称"}
+                ],
+                "response_pattern": "+FNM:s*(.+)"
+            },
+            {
+                "title": "产品识别码",
+                "command": "AT+PID",
+                "mode": ["write", "read"],
+                "params": [{"type": "text", "value": "", "tip": "比如:1234", "label": "参数"}],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "连接间隔",
+                "command": "AT+CIT",
+                "mode": ["write", "read"],
+                "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+SCP",
+                "mode": ["write", "read"],
+                "params": [{"type": "text", "value": "", "tip": "", "label": "窗口时间(ms)"}, {"type": "text", "value": "", "tip": "间隔时间必须比窗口时间大", "label": "间隔时间(ms)"}],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "主机扫描",
+                "command": "AT+SCN",
+                "mode": ["write"],
+                "params": [
+                    {"type": "combo","comboValueType": "index", "defIndex": 0, "startIndex": 0, "label": "扫描模式", "values": ["停止扫描", "不打印扫描结果", "打印扫描结果"]}
+                ],
+                "response_pattern": "OK"
+            },
+            {
+                "title": "绑定的从机MAC地址",
+                "command": "AT+CNM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+CNM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
+                ],
+                "response_pattern": "+CNM:s*(d+)"
+            },
+            {
+                "title": "绑定的从机广播名称",
+                "command": "AT+CNN",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "NULL,设备名称匹配无效,设置操作有效,读取操作返回为空(`+CNN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
+                ],
+                "response_pattern": "+CNN:s*(d+)"
+            },
+            {
+                "title": "扫描打印过滤广播名称",
+                "command": "AT+FTN",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "NULL,扫描打印名称过滤匹配无效,设置操作有效,读取操作返回为空(`+FTN:`)。 `其他`,最大长度16字符,ASCLL字符串格式", "label": "名称"}
+                ],
+                "response_pattern": "+FTN:s*(d+)"
+            },
+            {
+                "title": "扫描打印过滤从机MAC地址",
+                "command": "AT+FTM",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "", "tip": "NULL,MAC地址匹配无效,设置操作有效,读取操作返回为空(`+FTM:`)。 `其他`,固定长度12字符,hex字符串格式", "label": "MAC地址"}
+                ],
+                "response_pattern": "+FTM:s*(d+)"
+            },
+            {
+                "title": "断开从机连接",
+                "command": "AT+TCP",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
+                ],
+                "response_pattern": "+TCP:s*(d+)"
+            },
+            {
+                "title": "断开主机连接",
+                "command": "AT+TCC",
+                "mode": ["write", "read"],
+                "params": [
+                    {"type": "text", "value": "0", "tip": "从机序号", "label": "序号"}
+                ],
+                "response_pattern": "+TCC:s*(d+)"
+            }
+        ]
+    }
+}