foldedtoad / dwm3000

Port of Qorvo/Decawave's DWM3000 Module on the DWS3000 Arduino Shield
GNU General Public License v3.0
83 stars 16 forks source link

Hi, ds_twr_responder doesn't work #11

Open ycpiglet opened 2 years ago

ycpiglet commented 2 years ago

I'm using PCA10056 board and the basic example worked. But when I flashed ds_twr_responder, it didn't work.

Where I found the error is the below part.

if (ret == DWT_ERROR) { LOG_INF("Error"); continue; }

I also read the Note 11 which you wrote but I don't understand what I do. Please let me know. My address is 'ycpiglet@gmail.com'

foldedtoad commented 2 years ago

I am looking into this issue... will get back when I have further information. This appears to be the only usage of dwt_starttx(DWT_START_TX_DELAYED | DWT_RESPONSE_EXPECTED);

ycpiglet commented 2 years ago

Oh, I solved the problem by modifying the values of DELAY such as POLL_RX_TO_RESP_TX_DLY_UUS.

However, I still don't know why it happens even though it is correct mathematically.

So it is quite tough to change manually and successively until it's fine. I'd rather use ss_twr than ds_twr cause the former is more simple(the less number of values to modify).