Dear all,
I have a question in terms of the LPS configuration. I see the current code has configured this mode, in UWB.c
dwNewConfiguration(dwm);
dwSetDefaults(dwm);
dwEnableMode(dwm, MODE_SHORTDATA_FAST_ACCURACY);
dwSetChannel(dwm, CHANNEL_2);
dwSetPreambleCode(dwm, PREAMBLE_CODE_64MHZ_9);
I just got confused that the "dwEnableMode" has already set the channel and preamblecode in it. Why use "dwSetChannel" and "dwSetPreambleCode" again?
What are these configurations for in LPS firmware?
Re: What are these configurations for in LPS firmware?
Hi,
The dwEnableMode function sets channel 5 and a preamble by default. In this code we set channel 2 and a preamble ID authorized for channel 2.
The dwEnableMode function sets channel 5 and a preamble by default. In this code we set channel 2 and a preamble ID authorized for channel 2.
Re: What are these configurations for in LPS firmware?
Thanks. I get it. So my question is why you change the channel from 5 to 2?
Re: What are these configurations for in LPS firmware?
No good reason for using channel 2 really, we have always done that even before porting the arduino driver to C (what we now call libdw1000) and we stick with it. Intuitively channel 2 is on lower frequency than channel 5 so it should have better range however we have never tested this assumption.