|
@@ -509,22 +509,14 @@ static void HMI_Decode(void)
|
|
|
LOG_I("停止一键测试!!!");
|
|
LOG_I("停止一键测试!!!");
|
|
|
device_status.auto_test_sw=0;
|
|
device_status.auto_test_sw=0;
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (strstr(rx_buffer,"turnzp")!=NULL) {
|
|
|
|
|
+ LOG_W("转仓!");
|
|
|
|
|
+ device_status.clear_status=2;
|
|
|
|
|
+ }
|
|
|
//清扫
|
|
//清扫
|
|
|
else if (strstr(rx_buffer,"clear")!=NULL) {
|
|
else if (strstr(rx_buffer,"clear")!=NULL) {
|
|
|
- rt_kprintf("\n清扫!\n");
|
|
|
|
|
- if(device_status.version_type==4||device_status.version_type==41)
|
|
|
|
|
- {
|
|
|
|
|
- device_status.clear_status=1;
|
|
|
|
|
- }
|
|
|
|
|
- else if (device_status.version_type==1) {
|
|
|
|
|
- turnzp();
|
|
|
|
|
- }
|
|
|
|
|
- else if (device_status.version_type==6) {
|
|
|
|
|
- ctr_JD_Clear(ON);
|
|
|
|
|
- }
|
|
|
|
|
- else if (device_status.version_type==5) {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ LOG_W("清扫!");
|
|
|
|
|
+ device_status.clear_status=1;
|
|
|
}
|
|
}
|
|
|
//震动
|
|
//震动
|
|
|
else if (strstr(rx_buffer,"putTest.switchShake=1")!=NULL) {
|
|
else if (strstr(rx_buffer,"putTest.switchShake=1")!=NULL) {
|
|
@@ -1151,6 +1143,38 @@ static void HMI_Decode(void)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ //中端款
|
|
|
|
|
+ else if (strstr(rx_buffer,"SwversionV43")!=NULL) {
|
|
|
|
|
+ device_status.dtype = 3;
|
|
|
|
|
+ if(device_status.version_type != 43)
|
|
|
|
|
+ {
|
|
|
|
|
+ device_status.dtype = 3;
|
|
|
|
|
+ device_status.version_type = 43;
|
|
|
|
|
+ sprintf(device_status.driver, "%s",VERSION_HK);
|
|
|
|
|
+ ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
|
|
+ ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型+
|
|
|
|
|
+ MA_save();
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //低端款
|
|
|
|
|
+ else if (strstr(rx_buffer,"SwversionV42")!=NULL) {
|
|
|
|
|
+ device_status.dtype = 3;
|
|
|
|
|
+ if(device_status.version_type != 42)
|
|
|
|
|
+ {
|
|
|
|
|
+ device_status.dtype = 3;
|
|
|
|
|
+ device_status.version_type = 42;
|
|
|
|
|
+ sprintf(device_status.driver, "%s",VERSION_HK);
|
|
|
|
|
+ ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
|
|
+ ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型+
|
|
|
|
|
+ MA_save();
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
//4.0
|
|
//4.0
|
|
|
else if (strstr(rx_buffer,"SwversionV41")!=NULL) {
|
|
else if (strstr(rx_buffer,"SwversionV41")!=NULL) {
|
|
|
device_status.dtype = 3;
|
|
device_status.dtype = 3;
|
|
@@ -1161,7 +1185,6 @@ static void HMI_Decode(void)
|
|
|
sprintf(device_status.driver, "%s",VERSION_HK);
|
|
sprintf(device_status.driver, "%s",VERSION_HK);
|
|
|
ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型+
|
|
ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型+
|
|
|
- DTU_Write("SwversionV41");
|
|
|
|
|
MA_save();
|
|
MA_save();
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
@@ -1177,25 +1200,12 @@ static void HMI_Decode(void)
|
|
|
sprintf(device_status.driver, "%s",VERSION_HK_2000W);
|
|
sprintf(device_status.driver, "%s",VERSION_HK_2000W);
|
|
|
ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型
|
|
ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型
|
|
|
- DTU_Write("SwversionV4");
|
|
|
|
|
MA_save();
|
|
MA_save();
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- //5.0测报灯
|
|
|
|
|
- else if (strstr(rx_buffer,"SwversionV5")!=NULL) {
|
|
|
|
|
- device_status.dtype = 3;
|
|
|
|
|
- if(device_status.version_type!=5)
|
|
|
|
|
- {
|
|
|
|
|
- device_status.version_type = 5;
|
|
|
|
|
- sprintf(device_status.driver, "%s",VERSION_V5);
|
|
|
|
|
- ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
|
|
- ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型
|
|
|
|
|
- MA_save();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
else if (strstr(rx_buffer,"putTest.switchFAN_PU=1")!=NULL) {
|
|
else if (strstr(rx_buffer,"putTest.switchFAN_PU=1")!=NULL) {
|
|
|
ctr_Fan_PUT(ON);
|
|
ctr_Fan_PUT(ON);
|
|
@@ -1801,9 +1811,6 @@ void Check_ParamConfig(void)
|
|
|
else if (device_status.version_type==41) {
|
|
else if (device_status.version_type==41) {
|
|
|
rt_sprintf(device_status.driver, "%s",VERSION_HK);
|
|
rt_sprintf(device_status.driver, "%s",VERSION_HK);
|
|
|
}
|
|
}
|
|
|
- else if (device_status.version_type==5) {
|
|
|
|
|
- rt_sprintf(device_status.driver, "%s",VERSION_V5);
|
|
|
|
|
- }
|
|
|
|
|
/*定制三色光源*/
|
|
/*定制三色光源*/
|
|
|
#if LAMP_EN == 1
|
|
#if LAMP_EN == 1
|
|
|
if(device_status.sunBar%3!=0)
|
|
if(device_status.sunBar%3!=0)
|