OK… so I have 2W ranging working, and I have kinda calibrated the antenna.  The range is a bit disappointing, with both .02 and .03 versions.  I think there is an app note on how best to calibrate the antenna.
I have pretty much random config parameters plugged into the code, and I think they might not be best for our situation.
The “Device Driver API Guide”, the parameter to the dwt_configure is a structure of containing a lot of values.  I am using, what they call “mode 3”.

/* Default communication configuration. We use here EVK1000’s default mode (mode 3). */
static dwt_config_t config = {
    2,               /* Channel number. */
    DWT_PRF_64M,     /* Pulse repetition frequency. */
    DWT_PLEN_1024,   /* Preamble length. */
    DWT_PAC32,       /* Preamble acquisition chunk size. Used in RX only. */
    9,               /* TX preamble code. Used in TX only. */
    9,               /* RX preamble code. Used in RX only. */
    1,               /* Use non-standard SFD (Boolean) */
    DWT_BR_110K,     /* Data rate. */
    DWT_PHRMODE_STD, /* PHY header mode. */
    (1025 + 64 – 32) /* SFD timeout (preamble length + 1 + SFD length – PAC size). Used in RX only. */
};


​I don’t think I am using “smartPower”  (

dwt_setsmartpower
​)  and I am not setting the power at all (
dwt_configuretxrf
).  There is a useful note in the explanation of the latter function which explains power regs.


It would be nice to understand what matters, and what would be best for an indoor environment.  

Figuring out the best settings is not on my critical path

​, because it’s kinda working.  I think it requires some research of the various DW App notes, and some knowledge of physics to figure out what matters.

Leave a Reply