zhunk 1 год назад
Родитель
Сommit
97f25a2605

+ 21 - 23
Application_cbd_apm32f1/.project

@@ -1,29 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-  <name>Application_cbd_apm32f1</name>
-  <comment />
-  <projects>
+	<name>Application_cbd_apm32f1</name>
+	<comment></comment>
+	<projects>
 	</projects>
-  <buildSpec>
-    <buildCommand>
-      <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
-      <triggers>clean,full,incremental,</triggers>
-      <arguments>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
 			</arguments>
-    </buildCommand>
-    <buildCommand>
-      <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
-      <triggers>full,incremental,</triggers>
-      <arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
 			</arguments>
-    </buildCommand>
-  </buildSpec>
-  <natures>
-    <nature>org.eclipse.cdt.core.cnature</nature>
-    <nature>org.rt-thread.studio.rttnature</nature>
-    <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
-    <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
-  </natures>
-  <name>Application_cbd_apm32f1</name>
-  <linkedResources />
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.rt-thread.studio.rttnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+	</natures>
 </projectDescription>

+ 1 - 1
Application_cbd_apm32f1/applications/control.c

@@ -2162,7 +2162,7 @@ static void Control_Clear_thread_entry(void *parameter)
             if(device_status.version_type==41){
                 ctr_TG_Clear(300);
             }else {
-                ctr_TG_Clear(150);
+                ctr_TG_Clear(200);
             }
 
         }

+ 2 - 2
Application_cbd_apm32f1/applications/control.h

@@ -15,7 +15,7 @@
 #include <rtdevice.h>
 //定制相关//////////////////////////////////////////////////////
 #define LAMP_EN          0             //李新3灯管:0关闭,1打开
-#define PCB_V1           0
+#define PCB_V1           1
 #define SENSOR_EN        1              //温湿度:0关闭,1打开
 ////////////////////////////////////////////////////////////////
 #if LAMP_EN == 1
@@ -23,7 +23,7 @@
     #define VERSION_HK_2000W    "1.3led.40(2000W)"       //水稻
 #else
     #define VERSION_HK          "2.4.41(HK)"            //4.0海康-1200W
-    #define VERSION_HK_2000W    "2.10.4(2000W)"         //4.0水稻
+    #define VERSION_HK_2000W    "2.11.4(2000W)"         //4.0水稻
 #endif
 
 #define VERSION_ZP          "1.45.1(ZP)"            //1.0转盘

+ 4 - 0
Application_cbd_apm32f1/applications/dtu_uart2.c

@@ -275,6 +275,9 @@ static void dtu_thread_entry_recv(void *parameter)
         int result = rt_mq_recv(&rx_mq_dtu, &msg, sizeof(struct rx_msg), 50);
         if (result != RT_EOK){
             rx_err ++;
+            if(rx_err==15){
+                json_ctx.index = 0;
+            }
             if(rx_err==54000)//90分钟未接收到数据
             {
                 if(device_status.version_type==6)
@@ -307,6 +310,7 @@ static void dtu_thread_entry_recv(void *parameter)
             rt_free(rx_buffer);
             continue;
         }
+        rx_err = 0;
         rx_buffer[rx_length] = '\0';
         // 处理数据(新增调试接口)
         LOG_I("Raw Data:%s-%d",rx_buffer, rx_length);

+ 7 - 0
Application_cbd_apm32f1/readme.md

@@ -1,4 +1,11 @@
 
+# 2025-04-30 更新说明
+#define VERSION_HK          "2.4.41(HK)"            //4.0海康-1200W
+#define VERSION_HK_2000W    "2.11.4(2000W)"         //4.0水稻 
+1. DTU串口通信异常处理修复;
+2. 清扫时间15S改为30S;
+
+
 # 2025-04-15 更新说明
 #define VERSION_HK          "2.4.41(HK)"            //4.0海康-1200W
 #define VERSION_HK_2000W    "2.10.4(2000W)"         //4.0水稻