fix: MQTT协议 V1.02 同步 — 字段名缩短 + 时间单位修正

- docs/DLD960_IoT_MQTT协议.md: 字段缩写 + 时间单位 5ms→50ms
- vd960DBN/iot_mqtt_srv.c: 6字段缩短对齐协议 (level/iscar/freq/diff/sens/cndtn)
- vd960DBN/tcp_json_srv.c: gap_ms5/passtime_ms → gap/passtime
- vd960DBN/loop_uart_proto.h: 注释 5ms→50ms
- DBNMQTTool/main.py: 模拟样本数据字段同步
This commit is contained in:
wangfq
2026-07-09 10:18:03 +08:00
parent 466ce00680
commit c515638032
7 changed files with 275 additions and 150 deletions
@@ -100,7 +100,7 @@ typedef struct {
uint32_t freq; // 频率 (3 bytes, little-endian)
uint16_t variation; // 变化量 (2 bytes, little-endian)
union {
uint32_t passtime_ms; // 通过时间/车间距, 5ms单位 (misc_type=0)
uint32_t passtime_ms; // 通过时间/车间距, 50ms单位 (misc_type=0)
uint32_t cut_amount; // 线圈断开次数 (misc_type=1)
uint32_t flow_amount; // 车流量数 (misc_type=2)
uint32_t relay_count; // 继电器输出次数 (misc_type=3)