From f4b0b3213c7aab87626c4360f35bc5aa1919d473 Mon Sep 17 00:00:00 2001 From: Wuchuyuan <1917507415@qq.com> Date: Mon, 7 Sep 2026 18:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=AE=B0=E5=BD=95=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E6=97=B6=EF=BC=8C=E4=B8=8D=E8=BF=9B=E8=A1=8C=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=EF=BC=8C=E6=B2=A110=E5=88=86=E9=92=9F=E6=88=96?= =?UTF-8?q?=E8=80=85APP=E8=AF=BB=E5=8F=96=E6=97=B6=E4=BB=8D=E4=BC=9A?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/usr_jb_proto/Protocol/jb_protocol.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/usr_jb_proto/Protocol/jb_protocol.c b/apps/usr_jb_proto/Protocol/jb_protocol.c index f8c61b5..cb210c8 100644 --- a/apps/usr_jb_proto/Protocol/jb_protocol.c +++ b/apps/usr_jb_proto/Protocol/jb_protocol.c @@ -647,6 +647,8 @@ static void jbUnpackDps(const uint8_t *bitmap, const uint8_t *values, /* ════════════════════════════════════════════════════════════════ * jbBuildDiffMask — 比较上次与当前值,为变化的可上报 DP 置 mask 位 * 返回: 1 = 有 DP 发生变化, 0 = 全部未变化 + * DP17 运行记录不参与差分:秒数常变,避免 2s 一包 124B;仍走读请求与定时全量 + * ════════════════════════════════════════════════════════════════ */ static uint8_t jbBuildDiffMask(const jb_data_point_t *last, const jb_data_point_t *cur, @@ -752,12 +754,7 @@ static uint8_t jbBuildDiffMask(const jb_data_point_t *last, mask[DP_ID_TIME_CONFIG7 / 8] |= (1 << (DP_ID_TIME_CONFIG7 % 8)); hasChange = 1; } - /* DP17 运行记录 */ - if (memcmp(last->run_record, cur->run_record, 124)) - { - mask[DP_ID_RUN_RECORD / 8] |= (1 << (DP_ID_RUN_RECORD % 8)); - hasChange = 1; - } + /* DP17 运行记录:不进差分(秒累加会刷 0x07);0x05 读 / 10min 全量仍带 */ /* DP19 设备故障使能 */ if (last->fault_en != cur->fault_en) {