diff --git a/Core/Inc/main.h b/Core/Inc/main.h index 7954922..ceafae3 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -66,7 +66,7 @@ extern "C" { // 举例:2026年3月19日,第10次编译 (b=9) // 计算过程: (0 << 13) | (3 << 9) | (19 << 4) | 9 = 0x0600 | 0x0130 | 0x0009 -#define XTELL_FIRMWARE_CODE MAKE_XTELL_CODE(2026, 5, 10, 1) +#define XTELL_FIRMWARE_CODE MAKE_XTELL_CODE(2026, 5, 28, 1) // ---- - -- - // | | | | // | | | 编译次数 diff --git a/docs/ModbusSlaveSetup64Bit.exe b/docs/ModbusSlaveSetup64Bit.exe new file mode 100644 index 0000000..55819c4 Binary files /dev/null and b/docs/ModbusSlaveSetup64Bit.exe differ diff --git a/docs/Modbus_RTU报文 b/docs/Modbus_RTU报文 index dc2782c..76f7a91 100644 --- a/docs/Modbus_RTU报文 +++ b/docs/Modbus_RTU报文 @@ -3,6 +3,11 @@ 本文档描述 STM32 通过 RS485 接口轮询 Noris AMS 模块的 Modbus RTU 通信协议, 以及报警数据如何通过 RF433 无线上报。 + +# 测试方法 + +下载docs/ModbusSlaveSetup64Bit.exe,配置从站地址为 1,波特率为 19200,通过连接 RS485 串口连接可查看 Modbus RTU 报文。 + --- ## 1. Modbus RTU 请求帧 (MCU → Noris AMS)