Hello.
void report_handler(void)
{
if(zb_isDeviceJoinedNwk()){
if(zcl_reportingEntryActiveNumGet()){
uint16_t second = 1;//TODO: fix me
reportNoMinLimit();
//start report timer
reportAttrTimerStart(second);
}else{
//stop report timer
reportAttrTimerStop();
}
}
}
void app_task(void) {
uart_cmd_handler();
if(bdb_isIdle()) {
report_handler();
}
}
My log
OTA mode enabled. MCU boot from address: 0x8000
out_pkt <== 0x55AA02000101000003
inp_pkt ==> 0x55AA02000101001C7B2270223A227539626677686130222C2276223A22342E302E31227D84
manuf_name: 0, u9bfwha0 is find
out_pkt <== 0x55AA0200020200010107
inp_pkt ==> 0x55AA02000202000005
app_sysException, line: 198, event: 21, reset
OTA mode enabled. MCU boot from address: 0x8000
out_pkt <== 0x55AA02000101000003
inp_pkt ==> 0x55AA02000101001C7B2270223A227539626677686130222C2276223A22342E302E31227D84
manuf_name: 0, u9bfwha0 is find
out_pkt <== 0x55AA0200020200010107
inp_pkt ==> 0x55AA02000202000005
app_sysException, line: 198, event: 21, reset
OTA mode enabled. MCU boot from address: 0x8000
If commented reportNoMinLimit()
void report_handler(void)
{
if(zb_isDeviceJoinedNwk()){
if(zcl_reportingEntryActiveNumGet()){
uint16_t second = 1;//TODO: fix me
// reportNoMinLimit();
//start report timer
reportAttrTimerStart(second);
}else{
//stop report timer
reportAttrTimerStop();
}
}
}
void app_task(void) {
uart_cmd_handler();
if(bdb_isIdle()) {
report_handler();
}
}
It's Ok.
OTA mode enabled. MCU boot from address: 0x8000
out_pkt <== 0x55AA02000101000003
inp_pkt ==> 0x55AA02000101001C7B2270223A227539626677686130222C2276223A22342E302E31227D84
manuf_name: 0, u9bfwha0 is find
out_pkt <== 0x55AA0200020200010107
inp_pkt ==> 0x55AA02000202000005
inp_pkt ==> 0x55AA020003060005240400010139
command 0x06
out_pkt <== 0x55AA020003060001010C
inp_pkt ==> 0x55AA020003060005240400010139
command 0x06
out_pkt <== 0x55AA020003060001010C
inp_pkt ==> 0x55AA020003060005240400010139
command 0x06
out_pkt <== 0x55AA020003060001010C
inp_pkt ==> 0x55AA020003060005240400010139
command 0x06
out_pkt <== 0x55AA020003060001010C
inp_pkt ==> 0x55AA020003060005240400010139
command 0x06
SDK 3.6.8.7 works great!!!
|