|
|
@@ -266,7 +266,7 @@ void can_recv_mimo_dev_version(uint32_t cellCanID, uint8_t data[], uint8_t len)
|
|
|
else if(data[0] == 0xFB && data[1] == 0x03 && data[2] == 0)
|
|
|
{
|
|
|
//设置距离最大值反馈
|
|
|
- if(data[3] == 0xB1 && data[4] == 0xc1 && data[5] == 0)
|
|
|
+ if(data[3] == 0xB2 && data[4] == 0xE1)
|
|
|
{
|
|
|
pmu_set_ack(_MSGID_SET,MSGID_SET_LACKLOSS_CAL,mimo_lackloss.cal_distance,mimo_lackloss.strength);
|
|
|
}
|
|
|
@@ -1001,36 +1001,7 @@ void get_eftdev_version_and_sn(void)
|
|
|
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * @file get_device_version_and_sn
|
|
|
- * @brief 版本号
|
|
|
- * @param none
|
|
|
- * @details
|
|
|
- * @author Zhang Sir
|
|
|
- **/
|
|
|
-void get_device_version_and_sn(void)
|
|
|
-{
|
|
|
- static uint32_t circu_time = 0;
|
|
|
-
|
|
|
- if(Check_Timer_Ready(&circu_time,_1_HZ_))
|
|
|
- {
|
|
|
- //获取雷达版本和SN号
|
|
|
- get_radar_version_and_sn();
|
|
|
|
|
|
- //获取流量计版本和SN号
|
|
|
- get_flowmeter_version_and_sn();
|
|
|
-
|
|
|
- get_spread_version_and_sn();
|
|
|
- get_spary_version_and_sn();
|
|
|
- get_nozzle_version_and_sn();
|
|
|
- get_weight_version_and_sn();
|
|
|
- // //获取EFT设备版本信息
|
|
|
- // if(drone_type == Drone_Z70)
|
|
|
- // get_eftZ70_version_and_sn();
|
|
|
- // else if(drone_type == Drone_Z20)
|
|
|
- // get_eftdev_version_and_sn();
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* @file get_spread_version_and_sn
|
|
|
@@ -1476,3 +1447,33 @@ void regist_dev_info(dev_version_content *dev,uint8_t num,bool verify_flag,char
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * @file get_device_version_and_sn
|
|
|
+ * @brief 版本号
|
|
|
+ * @param none
|
|
|
+ * @details
|
|
|
+ * @author Zhang Sir
|
|
|
+ **/
|
|
|
+void get_device_version_and_sn(void)
|
|
|
+{
|
|
|
+ static uint32_t circu_time = 0;
|
|
|
+
|
|
|
+ if(Check_Timer_Ready(&circu_time,_1_HZ_))
|
|
|
+ {
|
|
|
+ //获取雷达版本和SN号
|
|
|
+ get_radar_version_and_sn();
|
|
|
+
|
|
|
+ //获取流量计版本和SN号
|
|
|
+ get_flowmeter_version_and_sn();
|
|
|
+
|
|
|
+ get_spread_version_and_sn();
|
|
|
+ get_spary_version_and_sn();
|
|
|
+ get_nozzle_version_and_sn();
|
|
|
+ get_weight_version_and_sn();
|
|
|
+ // //获取EFT设备版本信息
|
|
|
+ // if(drone_type == Drone_Z70)
|
|
|
+ // get_eftZ70_version_and_sn();
|
|
|
+ // else if(drone_type == Drone_Z20)
|
|
|
+ // get_eftdev_version_and_sn();
|
|
|
+ }
|
|
|
+}
|