feat(gml670x4): 所有协议帧添加 CRC-8/MAXIM 校验

使用 Zephyr crc8() 对帧头之后的载荷计算 CRC,上行发送前填充、
下行接收时校验不通过则丢弃并告警。同步更新协议文档。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-09 14:38:28 +08:00
parent 0d2fd30b3a
commit dc525ea4e7
6 changed files with 61 additions and 29 deletions
+2 -3
View File
@@ -23,9 +23,8 @@ int main(void) {
ble_transport_adv_start();
if (sensor_init()) return 0;
while (1) {
k_sleep(K_SECONDS(1));
}
k_sleep(K_FOREVER);
return 0;
}