|
@@ -1,10 +1,10 @@
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 1
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 1
|
|
|
|
|
|
|
|
|
C51 COMPILER V9.53.0.0, COMPILATION OF MODULE PROTOCOL
|
|
|
OBJECT MODULE PLACED IN .\Objects\protocol.obj
|
|
|
-COMPILER INVOKED BY: D:\Keil_c51\C51\BIN\C51.EXE protocol.c LARGE OPTIMIZE(8,SPEED) BROWSE INCDIR(..\..\..\Drivers) DEBU
|
|
|
- -G OBJECTEXTEND PRINT(.\Listings\protocol.lst) TABS(2) OBJECT(.\Objects\protocol.obj)
|
|
|
+COMPILER INVOKED BY: C:\Keil_v5_51\C51\BIN\C51.EXE protocol.c LARGE OPTIMIZE(8,SPEED) BROWSE INCDIR(..\..\..\Drivers) DE
|
|
|
+ -BUG OBJECTEXTEND PRINT(.\Listings\protocol.lst) TABS(2) OBJECT(.\Objects\protocol.obj)
|
|
|
|
|
|
line level source
|
|
|
|
|
@@ -62,7 +62,7 @@ line level source
|
|
|
44 7:上电之�,mcu何时上报数�给网关�适,在收到网络状�为已�网,或者接收
|
|
|
-到读�dp数�的时候。
|
|
|
45 8: 在mcu ota过程ä¸å�‘é€�固件内容请求未收到zigbee模å�—çš„åº”ç”æ—¶ï¼Œéœ€è¦�mcu端å�šå¥½è¶…æ—¶
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 2
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 2
|
|
|
|
|
|
-é‡�新请求的处ç�†ï¼Œå’Œå˜å‚¨image
|
|
|
46 处ç�†ï¼Œæ ¡éªŒå’Œå�¯ä»¥è‡ªè¡Œè®¾è®¡æˆ–者使用å�‚考。
|
|
@@ -126,7 +126,7 @@ line level source
|
|
|
{DPID_SWITCH_1, DP_TYPE_BOOL},
|
|
|
{DPID_RELAY_STATUS, DP_TYPE_ENUM},
|
|
|
{DPID_SWITCH_INCHING, DP_TYPE_STRING},
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 3
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 3
|
|
|
|
|
|
{DPID_ADD_ELE, DP_TYPE_VALUE},
|
|
|
{DPID_CUR_CURRENT, DP_TYPE_VALUE},
|
|
@@ -190,7 +190,7 @@ line level source
|
|
|
165 {
|
|
|
166 1 // static unsigned char buf;
|
|
|
167 1 // buf = value;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 4
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 4
|
|
|
|
|
|
168 1 // #error "please use your own uart send fuction complete this fuction, exmaple"
|
|
|
169 1 /*
|
|
@@ -254,7 +254,7 @@ line level source
|
|
|
hex_data[i * 3] = 0xff;
|
|
|
hex_data[i * 3 + 1] = 0xff;
|
|
|
hex_data[i * 3 + 2] = 0xff;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 5
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 5
|
|
|
|
|
|
}
|
|
|
hex_data[0 * 3] = switchState.plus_mod[1];
|
|
@@ -318,7 +318,7 @@ line level source
|
|
|
280 //#ifdef ZIGBEE_ZTU_T3_SW
|
|
|
281 void all_data_update(void)
|
|
|
282 {
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 6
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 6
|
|
|
|
|
|
283 1 // #error "mcu must realize function internal function"
|
|
|
284 1 /*
|
|
@@ -382,7 +382,7 @@ line level source
|
|
|
if (switchState.mod[0] == 0)
|
|
|
mcu_dp_bool_update(DPID_SWITCH_1, switchState.SWITCH[2]); // BOOL型数�上报;
|
|
|
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 7
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 7
|
|
|
|
|
|
// 场景�需�主动上报,APP�需�查询状�
|
|
|
/*
|
|
@@ -446,7 +446,7 @@ line level source
|
|
|
-e.dp_cur_voltage<2500))
|
|
|
{
|
|
|
data_dp_cur_voltage = switchState.dp_cur_voltage;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 8
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 8
|
|
|
|
|
|
mcu_dp_value_update(DPID_CUR_VOLTAGE,switchState.dp_cur_voltage); //VALUE型数�上报;
|
|
|
}
|
|
@@ -510,7 +510,7 @@ line level source
|
|
|
451 1 // if((switchState.dp_add_ele[0] !=0)&&((switchState.dp_add_ele[0] - data_dp_add_ele[0])>=1))
|
|
|
452 1 // {
|
|
|
453 1 mcu_dp_value_update(DPID_ADD_ELE,switchState.dp_add_ele[0]); //VALUE型数�上报;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 9
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 9
|
|
|
|
|
|
454 1 if(data_dp_add_ele[0] != switchState.dp_add_ele[0])
|
|
|
455 1 {
|
|
@@ -574,7 +574,7 @@ line level source
|
|
|
507 1 // {
|
|
|
508 1 // data_dp_cur_current[2] = switchState.dp_cur_current[2];
|
|
|
509 1 mcu_dp_value_update(DPID_CUR_CURRENT_3,switchState.dp_cur_current[2]); //VALUE型数�上报;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 10
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 10
|
|
|
|
|
|
510 1 // }
|
|
|
511 1 // if((switchState.dp_cur_power[2] != 0)&&(switchState.dp_cur_power[2] != data_dp_cur_power[2])&&(switc
|
|
@@ -638,7 +638,7 @@ line level source
|
|
|
*****************************************************************************/
|
|
|
static unsigned char dp_download_scene_2_handle(const unsigned char value[], unsigned short length)
|
|
|
{
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 11
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 11
|
|
|
|
|
|
// 示例:当�DP类型为ENUM
|
|
|
unsigned char ret;
|
|
@@ -702,7 +702,7 @@ line level source
|
|
|
返回�数 : �功返回:SUCCESS/失败返回:ERROR
|
|
|
使用说明 : �下��上报类型,需�在处�完数��上报处�结果至app
|
|
|
*****************************************************************************/
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 12
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 12
|
|
|
|
|
|
static unsigned char dp_download_scene_4_handle(const unsigned char value[], unsigned short length)
|
|
|
{
|
|
@@ -766,7 +766,7 @@ line level source
|
|
|
输入�数 : value:数��数�
|
|
|
: length:数�长度
|
|
|
返回�数 : �功返回:SUCCESS/失败返回:ERROR
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 13
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 13
|
|
|
|
|
|
使用说明 : �下��上报类型,需�在处�完数��上报处�结果至app
|
|
|
*****************************************************************************/
|
|
@@ -830,7 +830,7 @@ line level source
|
|
|
|
|
|
// add by zzw 20240312 å¢žåŠ eepromå�‚æ•°é…�置区
|
|
|
iap_eeprom_read_backup(0, write_mileage_backup, 30); // 读å�–30å—节
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 14
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 14
|
|
|
|
|
|
write_mileage_backup[6] = switchState.mod[0];
|
|
|
iap_eeprom_write_backup(0, write_mileage_backup, 30); // 写入1å—节
|
|
@@ -894,7 +894,7 @@ line level source
|
|
|
{
|
|
|
read_mileage_backup[7] = switchState.mod[1];
|
|
|
iap_eeprom_write_backup(0, read_mileage_backup, 30); // 写入1å—节
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 15
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 15
|
|
|
|
|
|
}
|
|
|
// add by zzw 20240312 å¢žåŠ eepromå�‚æ•°é…�置区
|
|
@@ -958,7 +958,7 @@ line level source
|
|
|
ret = mcu_dp_enum_update(DPID_MODE_3, mode_3);
|
|
|
if (ret == SUCCESS)
|
|
|
return SUCCESS;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 16
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 16
|
|
|
|
|
|
else
|
|
|
return ERROR;
|
|
@@ -1022,7 +1022,7 @@ line level source
|
|
|
939 功能�述 : 针对DPID_SWITCH_2的处�函数
|
|
|
940 输入�数 : value:数��数�
|
|
|
941 : length:数�长度
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 17
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 17
|
|
|
|
|
|
942 返回�数 : �功返回:SUCCESS/失败返回:ERROR
|
|
|
943 使用说明 : �下��上报类型,需�在处�完数��上报处�结果至app
|
|
@@ -1086,7 +1086,7 @@ line level source
|
|
|
1001 1 // 0:off/1:on
|
|
|
1002 1 unsigned char switch_3;
|
|
|
1003 1
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 18
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 18
|
|
|
|
|
|
1004 1 switch_3 = mcu_get_dp_download_bool(value, length);
|
|
|
1005 1 if (switch_3 == 0)
|
|
@@ -1150,7 +1150,7 @@ line level source
|
|
|
1063 2
|
|
|
1064 2 case 2:
|
|
|
1065 2 break;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 19
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 19
|
|
|
|
|
|
1066 2
|
|
|
1067 2 default:
|
|
@@ -1214,7 +1214,7 @@ line level source
|
|
|
1125 1 light_mode = mcu_get_dp_download_enum(value, length);
|
|
|
1126 1 switch (light_mode) // 枚举范围:Level1,Level2,Level3
|
|
|
1127 1 {
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 20
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 20
|
|
|
|
|
|
1128 2 case 0:
|
|
|
1129 2 switchState.led_level = 0;
|
|
@@ -1278,7 +1278,7 @@ line level source
|
|
|
1186 1 {
|
|
|
1187 2 // bool off
|
|
|
1188 2 // switchState.bluelight = 0;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 21
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 21
|
|
|
|
|
|
1189 2 switchState.human = 0;
|
|
|
1190 2 }
|
|
@@ -1342,7 +1342,7 @@ line level source
|
|
|
1247 1 // STRING type data processing
|
|
|
1248 1 unsigned char string_H16_data[32]; // 16进制å—符串
|
|
|
1249 1 unsigned char string_base64_data[32]; // base64æ ‡ç �å—符串
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 22
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 22
|
|
|
|
|
|
1250 1 unsigned char hex_data[32]; // 转æ�¢å�Žçš„16进制å—节数æ�®
|
|
|
1251 1
|
|
@@ -1406,7 +1406,7 @@ line level source
|
|
|
else if (hex_data[0] == 0x00) // 开关1å…³é—
|
|
|
{
|
|
|
switchState.plus_mod[0] = 0;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 23
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 23
|
|
|
|
|
|
switchState.plus_auto_time[0] = (hex_data[1] * 256 + hex_data[2]) * 10; // 高å—节在å‰�,ç§’
|
|
|
-转100ms为基数
|
|
@@ -1470,7 +1470,7 @@ line level source
|
|
|
1362 2 else
|
|
|
1363 2 {
|
|
|
1364 3 switchState.plus_mod[0] = 0xff; // 清除
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 24
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 24
|
|
|
|
|
|
1365 3 write_mileage_backup[20] = switchState.plus_mod[0];
|
|
|
1366 3 write_mileage_backup[21] = 0xff;
|
|
@@ -1534,7 +1534,7 @@ line level source
|
|
|
1420 1 {
|
|
|
1421 2 // char source[32] = "abc";
|
|
|
1422 2 // char dest[32];
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 25
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 25
|
|
|
|
|
|
1423 2
|
|
|
1424 2 /*å°†å—符串abc进行base64ç¼–ç �*/
|
|
@@ -1598,7 +1598,7 @@ line level source
|
|
|
1481 5 switchState.plus_auto_time[1] = (hex_data[1] * 256 + hex_data[2]) * 10; // 高å—节åœ
|
|
|
-¨å‰�,秒转100ms为基数
|
|
|
1482 5 write_mileage_backup[23] = switchState.plus_mod[1];
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 26
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 26
|
|
|
|
|
|
1483 5 write_mileage_backup[24] = hex_data[1];
|
|
|
1484 5 write_mileage_backup[25] = hex_data[2];
|
|
@@ -1662,7 +1662,7 @@ line level source
|
|
|
1540 {
|
|
|
1541 1 // 示例:当�DP类型为ENUM
|
|
|
1542 1 unsigned char ret;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 27
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 27
|
|
|
|
|
|
1543 1 unsigned char relay_status_1;
|
|
|
1544 1
|
|
@@ -1726,7 +1726,7 @@ line level source
|
|
|
1602 使用说明 : �下��上报类型,需�在处�完数��上报处�结果至app
|
|
|
1603 *****************************************************************************/
|
|
|
1604 static unsigned char dp_download_relay_status_2_handle(const unsigned char value[], unsigned short length)
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 28
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 28
|
|
|
|
|
|
1605 {
|
|
|
1606 1 // 示例:当�DP类型为ENUM
|
|
@@ -1790,7 +1790,7 @@ line level source
|
|
|
1664 1 // 示例:当�DP类型为ENUM
|
|
|
1665 1 unsigned char ret;
|
|
|
1666 1 unsigned char relay_status_3;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 29
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 29
|
|
|
|
|
|
1667 1
|
|
|
1668 1 relay_status_3 = mcu_get_dp_download_enum(value, length);
|
|
@@ -1854,7 +1854,7 @@ line level source
|
|
|
1726 1
|
|
|
1727 1 add_ele = mcu_get_dp_download_value(value,length);
|
|
|
1728 1 /*
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 30
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 30
|
|
|
|
|
|
1729 1 //VALUE type data processing
|
|
|
1730 1
|
|
@@ -1918,7 +1918,7 @@ line level source
|
|
|
1787 3 }
|
|
|
1788 2 else
|
|
|
1789 2 {
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 31
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 31
|
|
|
|
|
|
1790 3 // test failure
|
|
|
1791 3 }
|
|
@@ -1982,7 +1982,7 @@ line level source
|
|
|
break;
|
|
|
case DPID_RELAY_STATUS_1:
|
|
|
// 开关1上电状�设置处�函数
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 32
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 32
|
|
|
|
|
|
ret = dp_download_relay_status_1_handle(value, length);
|
|
|
break;
|
|
@@ -2046,7 +2046,7 @@ line level source
|
|
|
ret = dp_download_relay_status_1_handle(value, length);
|
|
|
break;
|
|
|
case DPID_RELAY_STATUS_2:
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 33
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 33
|
|
|
|
|
|
// 开关2上电状�设置处�函数
|
|
|
ret = dp_download_relay_status_2_handle(value, length);
|
|
@@ -2110,7 +2110,7 @@ line level source
|
|
|
1973 2 // 开关1上电状�设置处�函数
|
|
|
1974 2 ret = dp_download_relay_status_1_handle(value, length);
|
|
|
1975 2 break;
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 34
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 34
|
|
|
|
|
|
1976 2 case DPID_RELAY_STATUS_2:
|
|
|
1977 2 // 开关2上电状�设置处�函数
|
|
@@ -2174,7 +2174,7 @@ line level source
|
|
|
break;
|
|
|
case DPID_MODE_3:
|
|
|
//模�3处�函数
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 35
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 35
|
|
|
|
|
|
ret = dp_download_mode_3_handle(value,length);
|
|
|
break;
|
|
@@ -2238,7 +2238,7 @@ line level source
|
|
|
2097 /**
|
|
|
2098 * @brief received zigbee net_work state handle
|
|
|
2099 * @param[in] {zigbee_work_state} zigbee current network state
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 36
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 36
|
|
|
|
|
|
2100 * @return void
|
|
|
2101 */
|
|
@@ -2302,7 +2302,7 @@ line level source
|
|
|
2155 2 default:
|
|
|
2156 2 break;
|
|
|
2157 2 }
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 37
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 37
|
|
|
|
|
|
2158 1 }
|
|
|
2159
|
|
@@ -2366,7 +2366,7 @@ line level source
|
|
|
2216 1 // add by zzw �级通知接收�功,第一次调用接收固件命令
|
|
|
2217 1 if (update)
|
|
|
2218 1 {
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 38
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 38
|
|
|
|
|
|
2219 2 // zzw ota must add 20240326 OTA å˜å…¥æ ‡å¿—ä½�
|
|
|
2220 2
|
|
@@ -2430,7 +2430,7 @@ line level source
|
|
|
2277 1 static unsigned int current_checksum = 0;
|
|
|
2278 1
|
|
|
2279 1 if (zigbee_uart_rx_buf[offset + DATA_START] == 0x01) // status check
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 39
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 39
|
|
|
|
|
|
2280 1 return;
|
|
|
2281 1 while (i < 8)
|
|
@@ -2494,7 +2494,7 @@ line level source
|
|
|
2337 4 // ota failure report ota failure and clear ota struct
|
|
|
2338 4 mcu_ota_result_report(1); // failed
|
|
|
2339 4 }
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 40
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 40
|
|
|
|
|
|
2340 3 else
|
|
|
2341 3 {
|
|
@@ -2558,7 +2558,7 @@ line level source
|
|
|
2397 2 }
|
|
|
2398 1 }
|
|
|
*** WARNING C280 IN LINE 2372 OF protocol.c: 'k': unreferenced local variable
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 41
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 41
|
|
|
|
|
|
*** WARNING C280 IN LINE 2372 OF protocol.c: 'Ret': unreferenced local variable
|
|
|
*** WARNING C280 IN LINE 2373 OF protocol.c: 'temp_buff': unreferenced local variable
|
|
@@ -2622,7 +2622,7 @@ line level source
|
|
|
2455 3 write_data = (write_data << 8) + data[i * 4 + 1];
|
|
|
2456 3 write_data = (write_data << 8) + data[i * 4];
|
|
|
2457 3 flash_word_write(app_newcode_add, write_data);
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 42
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 42
|
|
|
|
|
|
2458 3 app_newcode_add = app_newcode_add + 4;
|
|
|
2459 3 }*/
|
|
@@ -2686,7 +2686,7 @@ line level source
|
|
|
2515 1 unsigned short i;
|
|
|
2516 1 length = set_zigbee_uart_byte(length, 0x01);
|
|
|
2517 1 zigbee_uart_write_frame(ZIGBEE_FACTORY_NEW_CMD, length);
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 43
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 43
|
|
|
|
|
|
2518 1 // then start test
|
|
|
2519 1 // add by zzw 20240207 APPåˆ é™¤è®¾å¤‡å�Žè‡ªåŠ¨å…¥ç½‘å¼€å�¯
|
|
@@ -2703,7 +2703,7 @@ line level source
|
|
|
2529 2 power_data[i] = 0xFF;
|
|
|
2530 2 }
|
|
|
2531 1 user_write_INFO_byte(INFO6_ADDR, power_data, 20);
|
|
|
-2532 1 user_write_INFO_byte(INFO7_ADDR, power_data, 20);
|
|
|
+2532 1 // user_write_INFO_byte(INFO7_ADDR, power_data, 20);
|
|
|
2533 1 }
|
|
|
2534
|
|
|
2535 #ifdef READ_DP_DATA_NOTIFY
|
|
@@ -2750,7 +2750,7 @@ line level source
|
|
|
2575 2 {
|
|
|
2576 3 buf[0] = c0 - 10 + 'a';
|
|
|
2577 3 }
|
|
|
-C51 COMPILER V9.53.0.0 PROTOCOL 10/28/2024 12:44:26 PAGE 44
|
|
|
+C51 COMPILER V9.53.0.0 PROTOCOL 11/12/2024 10:08:02 PAGE 44
|
|
|
|
|
|
2578 2 c1 = *src++ & 0x0F;
|
|
|
2579 2 if (c1 >= 0x0 && c1 <= 0x9)
|
|
@@ -2803,7 +2803,7 @@ line level source
|
|
|
|
|
|
|
|
|
MODULE INFORMATION: STATIC OVERLAYABLE
|
|
|
- CODE SIZE = 5606 ----
|
|
|
+ CODE SIZE = 5584 ----
|
|
|
CONSTANT SIZE = 32 ----
|
|
|
XDATA SIZE = 104 1263
|
|
|
PDATA SIZE = ---- ----
|