TREK1000 source code - about anchor's delay replay

Hello everyone,
I am learning the source code of the trek1000.
Currently I use 1 tag and 3 anchors to experiment with the ranging between Tag-Anchor.
When the anchor receives the poll message from tag, i found each anchor will delay replying in the order of address 0, 1, and 2.
I want to know how the delayed response here is implemented?
In instance.c, in the function (instancesetreplydelay) for the calculation of the delay time,have the following comments,
=============instance.c line1060=================
//this is the delay the anchors 1, 2, etc… will send the response back at…
//anchor 2 will have the delay set to 2 * fixedReplyDelayAnc
//andhor 3 will have the delay set to 3 * fixedReplyDelayAnc and so on…
//this delay depends on how quickly the tag can receive and process the message from previous anchor
//(and also the frame length of course)

However, in the program, I can’t find any code that has such setting processing.
How the delayed response in order here is implemented?
Can someone who understands give me some advice?
Best regards.
DJ

1 Like

Hi ,
See DecaranRTLS ARM source code Guide:
//Slot and Superframe Configuration for DecaRangeRTLS TREK Modes (4 default use cases selected by the switch S1 [2,3] on EVB1000, indexed 0 to 3 )
sfConfig_t sfConfig[4] ={
//mode 1 - S1: 2 off, 3 off
{
(28), //ms -
(10), //thus 10 slots - thus 280ms superframe means 3.57 Hz location rate (10 slots are needed as AtoA ranging takes 30+ ms)
(1028), //superframe period
(10
28), //poll sleep delay
(20000)
},
//mode 2 - S1: 2 on, 3 off
{
(10), // slot period ms
(10), // number of slots (only 10 are used) - thus 100 ms superframe means 10 Hz location rate
(1010), // superframe period (100 ms - gives 10 Hz)
(10
10), // poll sleep delay (tag sleep time, usually = superframe period)
(2500)
},
//mode 3 - S1: 2 off, 3 on
{
(28), // slot period ms
(10), // thus 10 slots - thus 280ms superframe means 3.57 Hz location rate
(1028), // superframe period
(10
28), // poll sleep delay
(20000)
},
//mode 4 - S1: 2 on, 3 on
{
(10), // slot period ms
(10), // number of slots (only 10 are used) - thus 100 ms superframe means 10 Hz location rate
(1010), // superframe period (100 ms - gives 10 Hz)
(10
10), // poll sleep (tag sleep time, usually = superframe period)
(2500) // this is the Poll to Final delay - 2ms (NOTE: if using 6.81 so only 1 frame per ms allowed LDC)
}
};

/Leo