From 970f19ff1fdf34fdf0c26d34cdcbdfcecaf7ebb1 Mon Sep 17 00:00:00 2001 From: snickersun Date: Mon, 8 Jun 2026 16:45:07 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=A1=E5=8F=B7=E5=BC=BA=E5=BA=A6=E6=9B=B4?= =?utf8?q?=E6=96=B0=E5=88=B00~5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...24\347\244\272\346\226\207\347\250\277.md" | 20 +++++++++---------- .../ports/quectel/core/protocol.py | 2 +- .../ports/quectel/core/vc_utils.py | 12 ++++++----- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git "a/1.doc/K8_diaozhui/design/\345\275\225\351\237\263\344\270\212\344\274\240\344\270\216\346\222\255\346\224\276-\346\274\224\347\244\272\346\226\207\347\250\277.md" "b/1.doc/K8_diaozhui/design/\345\275\225\351\237\263\344\270\212\344\274\240\344\270\216\346\222\255\346\224\276-\346\274\224\347\244\272\346\226\207\347\250\277.md" index 154e116d..23894964 100644 --- "a/1.doc/K8_diaozhui/design/\345\275\225\351\237\263\344\270\212\344\274\240\344\270\216\346\222\255\346\224\276-\346\274\224\347\244\272\346\226\207\347\250\277.md" +++ "b/1.doc/K8_diaozhui/design/\345\275\225\351\237\263\344\270\212\344\274\240\344\270\216\346\222\255\346\224\276-\346\274\224\347\244\272\346\226\207\347\250\277.md" @@ -58,18 +58,18 @@ 提示音播报(本地,notify tts) 优先级高于 (对话tts) ,对话tts可以被暂停/停止,播完提醒音后继续播放。 本地播放用暂停的,notify tts由于协议冲突,就用停止的。 本地提示音和notify tts优先级相当,冲突时不能丢弃提醒音,延时播报。 - - --- -信号强度上报 wifiRssi 0~4 +信号强度上报 wifiRssi 0~5 + -| wifiRssi值范围 | 信号格数 | -|--------------------|--------| -| -1, 0~15, 99 | 0 | -| 16~19 | 1 | -| 20~23 | 2 | -| 24~27 | 3 | -| 28~31 | 4 | +| wifiRssi值范围 | 信号格数 | +| ------------ | ---- | +| -1, 0~15, 99 | 0 | +| 16~18 | 1 | +| 19~21 | 2 | +| 22~24 | 3 | +| 25~27 | 4 | +| 28~31 | 5 | diff --git a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py index 29398fef..54e8f2d9 100644 --- a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py +++ b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/protocol.py @@ -4117,7 +4117,7 @@ class IOTWeb_get_device_stateProtoCol(ProtoCol): "charge":battery_state,#0表示未充电,1表示充电中 "currentRoleName":"",#当前音色的name "volume":str(VC_TTS_volume),#百分比数值 - "wifiRssi": net_csq_wifi_rssi_gradient(), # CSQ → 0~4 格 + "wifiRssi": net_csq_wifi_rssi_gradient(), # CSQ → 0~5 格 "battery":str(battery),#电量 "bargein": "0",#不能手动设置打断模式 "deviceId":modem.getDevImei(),#设备号 diff --git a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/vc_utils.py b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/vc_utils.py index 1fba0597..9b2df112 100644 --- a/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/vc_utils.py +++ b/2.sdk/project/7PIN_1_5/sdk/services/microPython/ports/quectel/core/vc_utils.py @@ -107,7 +107,7 @@ def net_csq_invalid(rssi): def net_csq_wifi_rssi_gradient(rssi=None): - """IOT device_info.wifiRssi:CSQ → 0~4 格(设计稿 录音上传与播放-演示文稿)。""" + """IOT device_info.wifiRssi:CSQ → 0~5 格(设计稿 录音上传与播放-演示文稿)。""" if rssi is None: rssi = net_csq_rssi() try: @@ -117,14 +117,16 @@ def net_csq_wifi_rssi_gradient(rssi=None): # -1/99 无效;0~15 弱信号也报 0 格 if r == -1 or r == 99 or r <= 15: return "0" - if r <= 19: + if r <= 18: return "1" - if r <= 23: + if r <= 21: return "2" - if r <= 27: + if r <= 24: return "3" - if r <= 31: + if r <= 27: return "4" + if r <= 31: + return "5" return "0" -- 2.17.1