| | |
| | | #define FINAL_MSG_FINAL_TX_TS_IDX 18 |
| | | #define FINAL_MSG_TS_LEN 4 |
| | | |
| | | #define _UWB_4G |
| | | //#define _UWB_4G |
| | | |
| | | static dwt_config_t config = { |
| | | #ifdef _UWB_4G |
| | |
| | | typedef enum{ Next_Poll_RANGE, |
| | | Next_Poll_LORASYNC, |
| | | }nextpoll_enum; |
| | | nextpoll_enum next_poll_state; |
| | | nextpoll_enum next_poll_state = Next_Poll_RANGE; |
| | | extern uint8_t sync_lost_count; |
| | | void Tag_App(void)//发送模式(TAG标签) |
| | | { |
| | |
| | | // 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; |