| | |
| | | #define FINAL_MSG_FINAL_TX_TS_IDX 18 |
| | | #define FINAL_MSG_TS_LEN 4 |
| | | |
| | | #define STARTPOLL DISCPOLL |
| | | #define STARTPOLL REGPOLL |
| | | enum enumtagstate |
| | | { |
| | | REGPOLL, |
| | |
| | | { |
| | | nearbase_num=rx_buffer[NEARBASENUM_INDEX]; |
| | | memcpy(&rec_tagpos_binary,&rx_buffer[NEARMSG_EMPTYSLOTPOS_INDEX],4); |
| | | tagslotpos=GetRandomSlotPos(rec_tagpos_binary); |
| | | // tagslotpos=GetRandomSlotPos(rec_tagpos_binary); |
| | | //tagslotpos=rx_buffer[TAGSLOTPOS]; |
| | | memcpy(nearbaseid_list,&rx_buffer[NEARBASEID_INDEX],nearbase_num*2); |
| | | //slottime=ceil((nearbase_num+2)*0.3)+1; |
| | | //tyncpoll_time=tagslotpos*slottime; |
| | | tyncpoll_time=(g_com_map[DEV_ID]%max_slotpos)*slottime; |
| | | //tyncpoll_time=(g_com_map[DEV_ID]%max_slotpos)*slottime; |
| | | tag_state=NEARPOLL; |
| | | } |
| | | }else{ |