How to calculate DS-TWR Delays?

[size=small][font=Arial]Hello forum members,[/font][/size]

[size=small][font=Arial] [/font][/size]
[size=small][font=Arial]I have built an own board with the “DW1000” and it works perfectly [/font][/size]:smiley:
[size=small][font=Arial]I used the template with “ex_05a_ds_twr_init” and “ex_05b_ds_twr_resp” for my software with the preconfigured preamble length 1024, SFD size of 64 and data rate of 110Kbit/s.[/font][/size]
[size=small][font=Arial]Now I would like to change the preamble length to 2048 or 512 to see how this affects the measurements.[/font][/size]
[size=small][font=Arial]How would I have to change the delays (see below) for [size=small][font=Arial]e.g.[/font][/size] preamble lenght of 512?[/font][/size]
[font=Arial]At the moment, these are in the standard configuration:[/font]

[font=Arial Black][color=#c09100][size=large]Poll_RX_to_Resp_TX_Dly = 2600 us[/size][/color][/font]
[font=Arial Black][color=#2f5598][size=large]Poll_TX_to_Resp_RX_Dly = 150 us[/size][/color][/font]
[font=Arial Black][color=#c09100][size=large]Resp_TX_to_Final_RX_Dly = 500 us [/size][/color][/font]
[font=Arial Black][color=#2f5598][size=large]Resp_RX_to_Final_TX_Dly = 3100 us[/size][/color][/font]
[color=#2f5598][size=large] [/size][/color]
[font=Arial]I am aware that I have to calculate this myself, I need only one example, how it scales with preamble lenght.[/font]

[size=small][font=Arial]Many Thanks[/font][/size][font=Arial]! :slight_smile: [/font]

[size=small][font=Arial]Best regards[/font][/size]

[size=small][font=Arial]Update: [/font][/size]
[size=small][font=Arial]I solved the problem myself, I can now use arbitrarily preambles.

Nevertheless many thanks[/font][/size]

Hello harun16,
I’m having some difficulties on this subject too.
I already tried some changes on the delays used but i never get it working. I know that this delays need to be “calculated”. I’m have a MDEK1001 dev and i want to compare the difference between the ss-twr and ds-twr and so i need to run this examples.
Can u share, if you please, the way that you solved that?
Many thanks,
Rui Gomes.

Already find out the solution.

Could you share how you accomplished that? That would be nice! I have started with my thesis and it would be nice to include a different algorithm for more comparison and to include that in my evaluation.

Hi @BjoernS,
I used a excel sheet from this post below, so with that you could get an aproximate value.

Hope i could help.

Hi @ruigomes ,

thank you this is pretty helpful as well! But actually I was looking for your solution of how to run ds-twr on the MDEK1001. I think I saw another post from you where I actually wanted to post this question but I accidentally used a wrong tab.

I intended to post this question under the following post from you:

I hope you can help me out here.

Thank you very much and have a great day.

Hey there @BjoernS,
I’m working on it too so now i dont have much to show too. But I followed another example ( Download the STM32 source code and on examples folder you have examples how to implement the different methods that you can use. I just used the ds_init (tag) and ds_resp(anchor) as a “template” and then changed the values of the delays and did work. Use that excel sheet so you can understand the time delays you need to implement because they will be dependent of your configuration (preamble, MHz, payload…).