I am working on custom boards with DWM1000 modules and STM32L4 microprocessor. I have already check my communication and everything about the SPI, it works well.
Also my project works very welll with SS-TWR but i want to optimized it with DS-TWR because i have some error. (From Decawave Software 5a-5b-6a-6b)
It’s look like the Initiator work well.
It send the POLL, receive the RESP and send the FINAL msg include the timestamps.
On the other side, the Responder receives the POLL, send the RESP and wait for the FINAL msg.
After debugging, I understand that the Responder receives the FINAL msg from the Initiator but at wrong point.
It receives the Final msg at the point that the Responder looking for the POLL msg.
I assume that something goes wrong with my Delays from the one Tx to the other Rx.
Here, are my Delays :
POLL_TX_TO_RESP_RX_DLY_UUS = 300
RESP_RX_TO_FINAL_TX_DLY_UUS = 3500
RESP_RX_TIMEOUT_UUS = 3300
POLL_RX_TO_RESP_TX_DLY_UUS = 3100
RESP_TX_TO_FINAL_RX_DLY_UUS = 500
FINAL_RX_TIMEOUT_UUS = 3300
(For lower values, dwt_strattx( tx_delayed | expected_response) sometime fails so i increase the default values)
Can i have some help please?