Decawave / dwm1001-examples

Simple C examples for Decawave DWM1001 hardware
https://www.decawave.com/products/dwm1001-module
164 stars 113 forks source link

Implementing the ds_twr init and resp DW1000 api examples #7

Closed fverdou closed 6 years ago

fverdou commented 6 years ago

Hello there.

I was wondering if I could get help regarding the implementation of the ds_twr_init and ds_twr_resp accompanying the DW1000 API. I noticed that the ss_twr examples in this project are the same as in the DW1000 API corresponding ss_twr examples. So I replaced the ss with the ds code in the examples, successfully added the UART support for the responder as well since in the ds example the responder is the one calculating the distance. Now, the initiator seems to be working fine, I mean it transmits, but the responder's receiver times out without getting any poll messages and so it doesn't continue in to reading data from its buffer or sending a reply. I did my best to put any delay constants the same as in the DW1000 API examples.

I'm attaching the code files in case you'd like to take a closer look. ds_twr_examples.zip

Thank you very much in advance.