|
@@ -240,6 +240,7 @@ void Start_timer_Uart2(void)
|
|
|
|
|
|
|
|
|
|
|
|
|
static char str_temp[128] = {};
|
|
static char str_temp[128] = {};
|
|
|
|
|
+static uint8_t freq_refresh_cb0 = 0;
|
|
|
/***************************** 解析从屏幕收到的数据 begin **********************************/
|
|
/***************************** 解析从屏幕收到的数据 begin **********************************/
|
|
|
static void HMI_Decode(void)
|
|
static void HMI_Decode(void)
|
|
|
{
|
|
{
|
|
@@ -251,6 +252,7 @@ static void HMI_Decode(void)
|
|
|
static char *var;
|
|
static char *var;
|
|
|
if(device_status.refresh_num==0) device_status.refresh_num = 10;
|
|
if(device_status.refresh_num==0) device_status.refresh_num = 10;
|
|
|
if(strstr(rx_buffer,"getFullData") != NULL){
|
|
if(strstr(rx_buffer,"getFullData") != NULL){
|
|
|
|
|
+ freq_refresh_cb0++;
|
|
|
char *readinfo = makeJson_ReadInfo();
|
|
char *readinfo = makeJson_ReadInfo();
|
|
|
if(device_status.refresh_num==5)
|
|
if(device_status.refresh_num==5)
|
|
|
{
|
|
{
|
|
@@ -311,8 +313,11 @@ static void HMI_Decode(void)
|
|
|
HMI_WRITE("menu.eth1_sta.val=%d",device_status.camera_sta);
|
|
HMI_WRITE("menu.eth1_sta.val=%d",device_status.camera_sta);
|
|
|
//更新工作状态
|
|
//更新工作状态
|
|
|
HMI_WRITE("menu.workStatus.val=%d",device_status.work_status);
|
|
HMI_WRITE("menu.workStatus.val=%d",device_status.work_status);
|
|
|
- //
|
|
|
|
|
- HMI_WRITE("menu.cb0.val=%d",device_status.InsectSpecies);
|
|
|
|
|
|
|
+ //诱芯类型
|
|
|
|
|
+ if(freq_refresh_cb0>=10){
|
|
|
|
|
+ HMI_WRITE("menu.cb0.val=%d",device_status.InsectSpecies);
|
|
|
|
|
+ freq_refresh_cb0 = 0;
|
|
|
|
|
+ }
|
|
|
//更新雨控状态
|
|
//更新雨控状态
|
|
|
if(device_status.rain_status){
|
|
if(device_status.rain_status){
|
|
|
HMI_WRITE("menu.t6.pco=63488");
|
|
HMI_WRITE("menu.t6.pco=63488");
|