Tool/software: Code Composer Studio
Hi,
I'm working with Non-Beacon Mode. What's the difference between
CONFIG_MAX_RETRIES and
CONFIG_MAX_DATA_FAILURES
for the device to enter orphan mode?
Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
I'm working with Non-Beacon Mode. What's the difference between
CONFIG_MAX_RETRIES and
CONFIG_MAX_DATA_FAILURES
for the device to enter orphan mode?
Thank you
Hi,
CONFIG_MAX_RETRIES determines the maximum number of retries (after a transmission failure) at the MAC layer for a single frame, after which the next higher layer is notified of the failure.
CONFIG_MAX_DATA_FAILURES determines how many application data requests (eg poll, sensor reports, etc) can fail before the sensor enters the orphan state (as handled by handleMaxDataFail() in jdllc.c).
Regards,
Toby
Thanks for your answer, Toby Pan.
So when we reach a number of failures equal to CONFIG_MAX_RETRIES, a variable counting data_failures increases by 1 until it reaches CONFIG_MAX_DATA_FAILURES; when this happens, the sensor assumes it is orphan.
Is this correct?
Yes.
Search CONFIG_MAX_DATA_FAILURES in the sensor's jdllc.c to check the code for this.