Changelog

All notable changes to this project are documented on this page.

Main branch

Changes

Added

nRF Connect SDK v3.3.0

Changes

  • Updated to library version 1.1.1.

  • When initializing the library from a stored state and a battery model pointer is provided, this pointer has precedence over the one stored in the state blob.

nRF Connect SDK v3.2.0

Changes

  • Updated to library version 1.1.0.

  • Improved fuel gauge accuracy for small-capacity batteries using nPM1304.

  • The discard_positive_deltaz member of the nrf_fuel_gauge_runtime_parameters structure now affects the secondary cell variant too. Setting it to true (default) will disallow state-of-charge to increase unless the battery is charging.

nRF Connect SDK v3.0.0

Changes

Added

  • Support for primary cell (non-rechargeable) batteries.

  • Battery models for Alkaline AA (1S and 2S configuration), Alkaline AAA (1S and 2S configuration), Alkaline coin cell LR44, and Lithium-manganese dioxide coin cell CR2032 batteries.

  • A new nrf_fuel_gauge_ext_state_update() function to inform the library about external state changes. Such changes includes charger state, vbus connection status, and current measurement correction.

  • A functionality to retrieve and restore the library state, using the nrf_fuel_gauge_state_get() function and state member of the nrf_fuel_gauge_init_parameters structure.

  • A new member in the nrf_fuel_gauge_state_info structure to determine the current measurement value used after corrections.

  • A new member in the nrf_fuel_gauge_state_info structure to determine the state-of-charge value before it is rounded off. The rounding off only applies to primary cell batteries.

  • New undocumented members in the nrf_fuel_gauge_config_parameters structure, intended for future adjustability.

nRF Connect SDK v2.8.0

Changes

  • Updated to library version 0.11.1.

  • The nrf_fuel_gauge_init() function no longer copies the battery model pointed to in the nrf_fuel_gauge_init_parameters structure. This means that you must ensure that the battery model is kept valid while using the library, either in ROM or RAM.

  • The nrf_fuel_gauge_process() function has a new argument to specify when bus voltage is present. That is, when system is powered by vbus instead of or in addition to the battery.

Added

  • The nrf_fuel_gauge_opt_params_default_get() convenience function to initialize the nrf_fuel_gauge_config_parameters structure.

  • The nrf_fuel_gauge_opt_params_adjust() function to adjust certain parameters without reinitializing the library.

  • New configuration parameters in the nrf_fuel_gauge_config_parameters structure.

  • New configuration parameter in the nrf_fuel_gauge_runtime_parameters structure.

Bug fixes

  • Fixed an issue where battery models with less than three temperature points could generate wrong state-of-charge after using the nrf_fuel_gauge_idle_set() function.

nRF Connect SDK v2.6.0

Changes

  • Update to library version 0.9.2.

  • The nrf_fuel_gauge_ttf_get() function now uses charger state as argument instead of maximum charge current.

  • The nrf_fuel_gauge_param_adjust() function now wraps the parameters in a struct.

Added

nRF Connect SDK v2.4.0

Initial release.