Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ANT+ offset calibration timeout value

In ~/components/ant/ant_profiles/ant_bpwr/ant_bpwr.h is a set of defines that describe the bikepower specific ANT+ parameters.

Part of this set is the macro "BPWR_CALIBRATION_TIMOUT_S". This value is used as a "Time-out for responding to calibration callback (s)". Note that this is an arbitrary value - the ANT+ spec for the bicycle power device profile D00001086 (Rev. 5.0) does not mention a specific value or range.

This macro however has been assigned a fixed value of 5 seconds. In my specific application, chances are calibration will often take longer. Therefore, I would like to change this timeout to, somewhere like 15 seconds. There is, however, no place to override this setting (except when modifying the SDK provided copy, which is undesirable. Great care has been taken that all macro's like this can be defined by the user through #ifndef ... #endif constructions.

Is there a reason this specific timeout has been defined like this? If not, may I suggest to go through the headerfiles and clean 'm up for these arbitrarily fixed non-overridable values.

PS: the source file says it's copyright Nordic thus please do not point the finger to Dynastream... it seems you guys still own this software!

Parents Reply Children
No Data
Related