| | |
| | | |
| | | Radio.Send(lora_sendbuffer,BT_SEND_lenth); |
| | | LORA_POLL_COUNT++; |
| | | #ifdef CESHIGUJIAN |
| | | uint16_t log_info_bt[10]; |
| | | uint16_t log_info_uwb[10]; |
| | | memcpy(log_info_bt,&lora_sendbuffer[LORA_RETRANSNUSSION_BT+1],BT_NUM*2+1); |
| | | memcpy(log_info_uwb,&lora_sendbuffer[BT_ANCID_IDX+1],report_ancnum*2); |
| | | |
| | | uint16_t corrected_value =(log_info_bt[0] << 8) | (log_info_bt[0] >> 8); |
| | | uint16_t corrected_value2 =(log_info_bt[1] << 8) | (log_info_bt[1] >> 8); |
| | | LOG_INFO(TRACE_MODULE_APP,"BTNUM:%d,基站ID1: %04x ,基站ID2: %04x 运动状态:%d,步数: %d\r\n",BT_NUM,corrected_value,corrected_value2,lora_sendbuffer[EXERCISE_STATE],lora_sendbuffer[STEP_COUNT]); |
| | | LOG_INFO(TRACE_MODULE_APP,"UWBNUM:%d,基站ID1: %x,基站ID2: %x \r\n",report_ancnum,log_info_uwb[0],log_info_uwb[1]); |
| | | memset(log_info_uwb,0,10); |
| | | taglist_num==0; |
| | | #endif |
| | | //#ifdef CESHIGUJIAN |
| | | // uint16_t log_info_bt[10]; |
| | | // uint16_t log_info_uwb[10]; |
| | | // memcpy(log_info_bt,&lora_sendbuffer[LORA_RETRANSNUSSION_BT+1],BT_NUM*2+1); |
| | | // memcpy(log_info_uwb,&lora_sendbuffer[BT_ANCID_IDX+1],report_ancnum*2); |
| | | // |
| | | // uint16_t corrected_value =(log_info_bt[0] << 8) | (log_info_bt[0] >> 8); |
| | | // uint16_t corrected_value2 =(log_info_bt[1] << 8) | (log_info_bt[1] >> 8); |
| | | // LOG_INFO(TRACE_MODULE_APP,"BTNUM:%d,基站ID1: %04x ,基站ID2: %04x 运动状态:%d,步数: %d\r\n",BT_NUM,corrected_value,corrected_value2,lora_sendbuffer[EXERCISE_STATE],lora_sendbuffer[STEP_COUNT]); |
| | | // LOG_INFO(TRACE_MODULE_APP,"UWBNUM:%d,基站ID1: %x,基站ID2: %x \r\n",report_ancnum,log_info_uwb[0],log_info_uwb[1]); |
| | | // memset(log_info_uwb,0,10); |
| | | // taglist_num==0; |
| | | //#endif |
| | | // LORA_3029_SINGLE_SEND(lora_sendbuffer,ANCID_IDX+report_ancnum*4+BT_NUM*4+4,0); |
| | | // } |
| | | // else |