feat: BLE 新增 RS485 地址/波特率读写 + 空闲关蓝牙超时 + 功能码细分
- 新增 CMD_DBN_RW_UART_BAUD (0x31): 读写 RS485 波特率、485 地址、空闲关蓝牙超时 - storage.h: 新增 flash 地址 ADDR_BT_Close_TIMEOUT_Offset(0x10)、Addr_RS485_Baud_Offset(0x11,3B)、Addr_RS485_ID_Offset(0x14) - 功能码细分: g_function_mode bit0→fm_700bs_disable(0=700BS/1=Modbus), bit1→fm_radar_input_disable(0=光耦/1=复位) - factory_dev 出厂默认: RS485 ID=1, 波特率=9600, 蓝牙超时=0 - para_store_init 上电从 flash 恢复所有新增配置
This commit is contained in:
@@ -26,12 +26,20 @@
|
||||
// #define Addr_Release_Rate_Weight 0x1E
|
||||
// #define Addr_Release_Rate_Mode 0x1F
|
||||
|
||||
#define ADDR_BT_Close_TIMEOUT_Offset 0x10
|
||||
#define Addr_RS485_Baud_Offset 0x11 // 3 byte
|
||||
#define Addr_RS485_ID_Offset 0x14 // 1 byte
|
||||
|
||||
|
||||
#define Addr_Loop_Sens_List_Offset 0x20
|
||||
|
||||
#define Addr_Sens_Array_In 0x20
|
||||
#define Addr_Sens_Array_Out 0x30
|
||||
|
||||
|
||||
#define RS_BAUD_DEFAULT 9600
|
||||
|
||||
|
||||
#define MAX_LOOP_SENS_AMOUNT 3 // 4 // 5
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
Reference in New Issue
Block a user