yincheng.zhong
2024-04-24 6f6d3bc73b0b59b67ec7c3acfe6cd966523741b3
Src/application/dw_mbx_tag.c
@@ -195,7 +195,7 @@
                memcpy(&rec_ancdistlist,&rx_buffer[FZ_NEARBASEID_INDEX+2*rec_nearbase_num],2*rec_nearbase_num);
               // memcpy(&rec_antdelay,&rx_buffer[FZ_NEARBASEID_INDEX+rec_nearbase_num*4],2);
                uwb_losttimer = 0;
                  uwbled=GREEN;
                taglist_pos=CmpTagInList(tag_id_recv);
                if(taglist_num>=ANC_MAX_NUM)
                    break;
@@ -252,7 +252,7 @@
u8 lora_jianting_flag = 1;
void LoraReportFreqPoll(void)
{
    wg_state = WG_Lost;
  //  wg_state = WG_Lost;
    if(wg_lost_count++>WG_LOST_NOUWB_COUNT)
    {
        lora_jianting_flag = 0;
@@ -261,8 +261,8 @@
    }
    if(wg_state==WG_Lost)
    {static u8 channel_switch_count = 0;
        channel_switch_count = 0;
        if(channel_switch_count++>2)
      //  channel_switch_count = 10;
        if(channel_switch_count++>1)
        {
            channel_switch_count = 0;
            wg_report_id = DEFAULT_LR_WG_ID;
@@ -339,6 +339,12 @@
            }
        }
    }
    if(report_ancnum>0)
    {
        uwbled=BLUE;
    }else{
        uwbled=RED;
    }
    if(report_ancnum>LORA_REPORT_MAXANC_NUM)    //考虑lora传输时间,最多发送10个基站数据。
        report_ancnum = LORA_REPORT_MAXANC_NUM;