| | |
| | | memcpy(&lora_start_poll_buff[ANC_ID_IDX],&g_com_map[DEV_ID],2); |
| | | Radio.Send(lora_start_poll_buff, 4); |
| | | UWB_Wkup(); |
| | | delay_us(700); |
| | | delay_us(1000); |
| | | MBXANCPoll(); |
| | | dwt_entersleep(); |
| | | next_poll_state = Next_Poll_LORASYNC; |
| | |
| | | // target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB+sync_lost_count*1000; |
| | | // }else |
| | | { |
| | | target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB; //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。 |
| | | target_count = GetLoraSyncCount()-(23000)/LPTIMER_LSB; //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。 |
| | | } |
| | | if(target_count<0) |
| | | target_count+=32768; |