zhunk 4 месяцев назад
Родитель
Сommit
1f0f90ac33

+ 6 - 6
Application_cbd_apm32f1/applications/control.h

@@ -18,15 +18,15 @@
 
 #define LAMP_EN          0             //李新3灯管:0关闭,1打开
 #define PCB_V1           0             //1-旧PCB,0-新PCB(模块化)
-#define MATCH_DEVICE     1             //比赛设备1-开启 0-关闭
+#define MATCH_DEVICE     0             //比赛设备1-开启 0-关闭
 #define SENSOR_EN        0             //温湿度:0关闭,1打开
 #define UART_TEST_EN     0             ///串口测试0-关闭,1-启用
 #define TG_MODULE        0             //推杆电机结构模块化控制
 #define DINGZHI_0722     0             //控制一个电机每天12点20工作12秒
 #define QINGSAO_IO       1             //调整清扫顺序20250801
-#define WENKONG          0             //温控功能1-开启 0-关闭
-#define YUKONG           0             //雨控功能1-开启 0-关闭
-#define QIANYA           0             //欠压功能1-开启 0-关闭
+#define WENKONG          1             //温控功能1-开启 0-关闭
+#define YUKONG           1             //雨控功能1-开启 0-关闭
+#define QIANYA           1             //欠压功能1-开启 0-关闭
 
 
 #if MATCH_DEVICE == 1
@@ -39,9 +39,9 @@
     #define VERSION_HK          "1.(3ledV9).41(HK)"      //4.0海康-三色光源
     #define VERSION_HK_2000W    "1.3led.40(2000W)"       //水稻
 #else
-    #define VERSION_HK          "2.40.41(HK)"            //4.0海康-1200W
+    #define VERSION_HK          "2.41.41(HK)"            //4.0海康-1200W
     #if TG_MODULE == 0
-    #define VERSION_HK_2000W    "2.41.000(2000W)"         //4.0水稻
+    #define VERSION_HK_2000W    "2.41.4(2000W)"         //4.0水稻
     #else
     #if MATCH_DEVICE == 1
     #define VERSION_HK_2000W    "3.3.4(TG)"             //推杆结构比赛设备

+ 2 - 0
Application_cbd_apm32f1/applications/dtu_uart2.c

@@ -481,7 +481,9 @@ static void dtu_thread_entry_send(void *parameter)
                         rt_sprintf(device_status.net, "1");
                         HMI_WRITE("sleep=%d",1);    //屏幕休眠
                         DTU_Write("%s",makeJson_Warn("power down","power"));
+                        rt_thread_delay(1000);
                         device_status.power_status = 0;
+                        UpLoad_Data();  //上报最新数据
                         rt_thread_delay(5000);
                         ctr_router(OFF);
                         RTU_Power_Off_Safe();

+ 1 - 1
Application_cbd_apm32f1/packages/EasyFlash-v4.1.0/inc/ef_cfg.h

@@ -92,7 +92,7 @@
 #define EF_START_ADDR             PKG_EASYFLASH_START_ADDR
 
 /* ENV area size. It's at least one empty sector for GC. So it's definition must more then or equal 2 flash sector size. */
-#define ENV_AREA_SIZE             (EF_ERASE_MIN_SIZE * 16) /* default is the double erase min size */
+#define ENV_AREA_SIZE             (EF_ERASE_MIN_SIZE * 256) /* default is the double erase min size */
 
 /* print debug information of flash */
 #ifdef PKG_EASYFLASH_DEBUG

+ 4 - 0
Application_cbd_apm32f1/readme.md

@@ -1,3 +1,7 @@
+# 2026-07-13
+	#define VERSION_HK_2000W    "2.41.4(2000W)"         //4.0水稻
+	1、easyflash配置ENV_AREA_SIZE 调整为4096*256
+	2、检测到外部断电把电压设置为0,并上报最新数据;
 # 2026-06-24 更新说明
 	#define VERSION_HK_2000W    "2.12.4(TG111)"         //推杆结构
 	1、修复不是别赛设备发送串口数据串口异常导致死机;