Help with C code application DWM1001

Hi,
I am looking for some help how I could accomplish the following using C code in application area of DWM1001.

  1. Application is ranging (TWR)
  2. Node defaults to be responder that outputs distance for ranging achieved from initiator node to UART
  3. If a command is received from UART, the node switches to be initiator and attempts to range with specific node ID given in UART packet. If ranging successful then distance is set by UART and then node goes back to responder mode.

Thanks

Hi Orbitcom,

A good starting point would be the simple example for TWR on github :

Hope it helps,
Regards
Yves

Thanks Yves, I’ll take a look at the example and try out first using the DWM1001 Dev Kit before my own hardware.