Skip to content

Commit 7521deb

Browse files
authored
Merge pull request #287 from NordicSemiconductor/doc_combining_battery_profiles
doc: guide for merging temp profiles
2 parents 36815d9 + 32eb2e0 commit 7521deb

18 files changed

+145
-31
lines changed

doc/docs/evaluating_battery.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
To start fuel gauge evaluations using a battery model, complete the following steps:
44

5-
1. Make sure the following conditions are met:
5+
1. Connect a battery to the EK.
6+
1. Enable the **Fuel Gauge** setting on the [**Dashboard**](./overview.md#dashboard-tab) tab.
7+
1. If you are using nPM1300 EK or nPM1304 EK, select the battery model for evaluation in the [**Fuel Gauge**](./overview.md#npm1300-and-nPM1304-fuel-gauge) side panel.<br/>
8+
Use one of the following options:
69

7-
- You have a battery connected to the EK.
8-
- You have the **Fuel Gauge** setting enabled on the [**Dashboard**](./overview.md#dashboard-tab) tab.
9-
- You have an active battery model selected in the [**Fuel Gauge**](./overview.md#fuel-gauge) side panel, either using the **Active Battery Model** for a preloaded battery model or the **Add New Battery Model** > **Custom Model** for your own custom battery model from a JSON file.
10+
* Use the **Active Battery Model** for a preloaded battery model
11+
* Add a custom battery model by completing the following steps:
12+
13+
1. Select [**Add New Active Battery Model**](./overview.md#npm1300-and-nPM1304-fuel-gauge) in the side panel.</br>
14+
A drop-down menu appears.
15+
1. Select **Custom Model** to load the generated JSON battery model file to the host System on Chip (SoC) of the PMIC EK.
1016

1117
1. Open the [**Graph**](./overview.md#graph-tab) tab.
1218
1. Make sure the **Live** toggle is enabled.</br>

doc/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The {{app_name}} supports the following Power Management IC devices from Nordic
1212

1313
| PMIC device | Documentation | Setup |
1414
|-------------|---------------|-------|
15-
| nPM1304 Evaluation Kit (EK) | *Not yet available* | *Not yet available* |
15+
| nPM1304 Evaluation Kit (EK) | [nPM1304 EK Hardware](https://docs.nordicsemi.com/bundle/ug_npm1304_ek/page/UG/nPM1304_EK/intro.html) | [Connect the nPM1304 EK with nPM PowerUP](https://docs.nordicsemi.com/bundle/ug_npm1304_ek/page/UG/nPM1304_EK/use_ek_power_up.html) |
1616
| nPM2100 Evaluation Kit (EK) | [nPM2100 EK Hardware](https://docs.nordicsemi.com/bundle/ug_npm2100_ek/page/UG/nPM2100_EK/intro/intro.html) | [Connect the nPM2100 EK with nPM PowerUP](https://docs.nordicsemi.com/bundle/ug_npm2100_ek/page/UG/nPM2100_EK/connect_ek/use_ek_power_up.html) |
1717
| nPM1300 Evaluation Kit (EK) | [nPM1300 EK Hardware](https://docs.nordicsemi.com/bundle/ug_npm1300_ek/page/UG/nPM1300_EK/intro.html) | [Connect the nPM1300 EK with nPM PowerUP](https://docs.nordicsemi.com/bundle/ug_npm1300_ek/page/UG/nPM1300_EK/use_ek_power_up.html) |
1818
| nPM Fuel Gauge Board | [nPM Fuel Gauge Board Hardware](https://docs.nordicsemi.com/bundle/ug_npm_fuel_gauge/page/UG/nPM_fuel_gauge/intro.html) | [Connect the nPM1300 EK with the nPM Fuel Gauge Board](https://docs.nordicsemi.com/bundle/nan_045/page/APP/nan_045/battery_profiling.html) |

doc/docs/overview.md

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This side panel area contains the following buttons:
5050
| **Load Configuration** | Load the PMIC configuration from a JSON file and update all configurations accordingly.</br></br>You can also load a configuration before you select a device ([Offline Mode](#virtual-device-selection-and-offline-mode-actions)). |
5151
| **Open Serial Terminal** | Open the [Serial Terminal app](https://docs.nordicsemi.com/bundle/nrf-connect-serial-terminal/page/index.html) application in a separate window. Make sure to first [install the application](). |
5252
| **Reset Device** | Reset the PMIC device and the nPM Controller. The PMIC default device configuration is restored. |
53-
| **Record Events** | Record all terminal [log](#log) events to CSV files in a selected directory. |
53+
| **Record Events** | Record all terminal [log](#log) events to CSV files in a selected directory.<br/>You can share these files with Nordic Semiconductor if you encounter issues.<br/><br/>Recording events is automatically started when you [profile a battery](profiling_battery.md). |
5454

5555
### Fuel Gauge
5656

@@ -126,11 +126,14 @@ Some devices also allow you to configure **Power Failure** and **Vbus input curr
126126
## nPM1300 and nPM1304: Profiles tab
127127

128128
!!! note "Note"
129-
This feature is available for the nPM1300 EK and the nPM1304 EK.
129+
- This feature is available for the nPM1300 EK and the nPM1304 EK.
130+
- You cannot use profiles for the nPM1300 EK with the nPM1304 EK and vice-versa.
130131

131132
The **Profiles** tab provides an overview of all battery profiles that you can select using the [Fuel Gauge drop-down menus](#fuel-gauge).
132133

133-
Here you can make changes to the generated battery model settings, make edits to your custom projects, or merge individual temperature profiles.
134+
![Profiles tab](./screenshots/npm_profiles_tab.png "Profiles tab")
135+
136+
Here you can make changes to the generated battery model settings, make edits to your custom projects, or merge individual temperature profiles. See [Working with profiles](working_with_profiles.md) for more information.
134137

135138
!!! note "Note"
136139
The battery model is automatically stored as a JSON and an INC file. Use the JSON file for evaluations in nPM PowerUP and the INC file when integrating the battery model into your final application with a Nordic System on Chip (SoC).
@@ -139,6 +142,8 @@ Here you can make changes to the generated battery model settings, make edits to
139142

140143
Here you can find all the custom profiles you have added with the [**Profile Battery** option](#fuel-gauge).
141144

145+
![Custom profiles in the Profiles tab](./screenshots/npm_profiles_tab_custom.png "Custom profiles in the Profiles tab")
146+
142147
The following options are available for the custom profiles:
143148

144149
| Button | Description |
@@ -147,27 +152,42 @@ The following options are available for the custom profiles:
147152
| **Add Existing Project** | Add a new project to the list from a JSON file. |
148153
| **Create New Project** | Create a new custom project template. This option includes some of the fields present when using the [**Profile Battery** option](#fuel-gauge), but without collecting data. |
149154

150-
The following drop-down menu options are available for the project and profile sections:
151-
152-
| Button | Area | Description |
153-
| ------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------- |
154-
| **Process Included Data**| Project | If your project includes multiple temperature profiles, you can include a selection of them with the **Include** toggle. Using this option processes only the included temperature profiles. |
155-
| **Save Battery Model** | Project | Save the battery model for the entire project to a JSON or an INC file. This only saves the temperature profiles you have selected with the **Include** toggle. |
156-
| **Write Battery Model** | Project | Write the battery model for the entire project to the nPM Controller on the EK. This only writes the temperature profiles you have selected with the **Include** toggle. |
157-
| **Add Profile** | Project | Add a new battery profile with a specific temperature and a CSV data file. Data files are generated when you use the [**Profile Battery** option](#fuel-gauge). |
158-
| **Open Folder** | Project | Open the project directory in the **File Explorer**. |
159-
| **Edit Project** | Project | Edit the project settings. |
160-
| **Remove Project** | Project | Remove the current project, including all battery profiles. |
161-
| **Include** toggle | Profile | Select the temperatures to be included for processing with **Process Included Data** button for the entire project. |
162-
| **Process Data** | Profile | Process the data for the given temperature profile only. |
163-
| **Save Battery Model** | Profile | Save the battery model to a JSON or an INC file. |
164-
| **Write Battery Model** | Profile | Write the battery model to the nPM Controller on the EK. |
165-
| **Edit Profile** | Profile | Edit the battery profile. |
166-
| **Remove Profile** | Profile | Remove the battery profile.|
155+
#### Project section
156+
157+
![Project section options in the Profiles tab](./screenshots/npm_profiles_tab_custom_project.png "Project section options in the Profiles tab")
158+
159+
The following drop-down menu options are available for the project section:
160+
161+
| Button | Description |
162+
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
163+
| **Process Included Data**| If your project includes multiple temperature profiles, you can include a selection of them with the **Include** toggle. Using this option processes only the included temperature profiles. |
164+
| **Save Battery Model** | Save the battery model for the entire project to a JSON or an INC file. This only saves the temperature profiles you have selected with the **Include** toggle. |
165+
| **Write Battery Model** | Write the battery model for the entire project to the nPM Controller on the EK. This only writes the temperature profiles you have selected with the **Include** toggle. |
166+
| **Add Profile** | Add a new battery profile with a specific temperature and a CSV data file. Data files are generated when you use the [**Profile Battery** option](#npm1300-and-nPM1304-fuel-gauge). |
167+
| **Open Folder** | Open the project directory in the **File Explorer**. |
168+
| **Edit Project** | Edit the project settings. |
169+
| **Remove Project** | Remove the current project, including all battery profiles. |
170+
171+
##### Profile entries
172+
173+
![Profile options in the Profiles tab](./screenshots/npm_profiles_tab_custom_profile.png "Profile options in the Profiles tab")
174+
175+
The following drop-down menu options are available for the profile entries:
176+
177+
| Button | Description |
178+
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
179+
| **Include** toggle | Select the temperatures to be included for processing with **Process Included Data** button for the entire project. |
180+
| **Process Data** | Process the data for the given temperature profile only. |
181+
| **Save Battery Model** | Save the battery model to a JSON or an INC file. |
182+
| **Write Battery Model** | Write the battery model to the nPM Controller on the EK. |
183+
| **Edit Profile** | Edit the battery profile. |
184+
| **Remove Profile** | Remove the battery profile.|
167185

168186
### Bundled profiles
169187

170-
Here you can write and save battery models from selected vendors that has been profiled by Nordic Semiconductor.
188+
Here you can write and save battery models from selected vendors that have been profiled by Nordic Semiconductor.
189+
190+
![Bundled profiles in the Profiles tab](./screenshots/npm_profiles_tab_bundled.png "Bundled profiles in the Profiles tab")
171191

172192
When you **Write Model**, you are going to write new battery model on the nPM Controller to one of its available battery model slots.
173193
This can overwrite the [**Active Battery Model**](#fuel-gauge).

doc/docs/profiling_battery.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Depending on the EK you are using:
1919
* nPM1304 EK:
2020

2121
* The nPM Fuel Gauge Board is not required.
22-
* Connect the nPM1304 EK and download the software.
22+
* Connect the nPM1304 EK and download the software as described in [Connect the nPM1304 EK with nPM PowerUP](https://docs.nordicsemi.com/bundle/ug_npm1304_ek/page/UG/nPM1304_EK/use_ek_power_up.html).
2323

2424
## Profiling a battery in the {{app_name}}
2525

@@ -38,9 +38,21 @@ Complete the following steps to profile a battery and use the generated battery
3838

3939
The measurement data is automatically processed in the Nordic battery modeling software to make a single battery model file for each test temperature.
4040

41-
1. After the temperature profiling at a given temperature is complete, follow the instructions in the application to charge the battery at room temperature before profiling at the next test temperature. When all the individual temperature models have been completed, they are merged to generate the final battery model file. The final battery model is automatically saved as both a JSON file and an INC file.
42-
1. Select [**Add New Active Battery Model**](./overview.md#fuel-gauge) in the side panel.</br>
43-
A drop-down menu appears.
44-
1. Select **Custom Model** to load the generated JSON battery model file to the host System on Chip (SoC) of the nPM1300 EK or the nPM1304 EK.
41+
1. After the temperature profiling at a given temperature is complete, follow the instructions in the application to charge the battery at room temperature before profiling at the next test temperature.
42+
43+
When all the individual temperature models have been completed, they are merged to generate the final battery model file. The final battery model is automatically saved as both a JSON file and an INC file.
4544

4645
To start fuel gauge evaluations using a battery model, see [Evaluating a battery model with nPM PowerUP](evaluating_battery.md).
46+
47+
## Profiling output files
48+
49+
All or some of the following files are generated as the result of profiling a battery:
50+
51+
* A JSON file for the combined temperature model, used for fuel gauge evaluations in the {{app_name}}
52+
* An INC file that you can use to integrate the battery model into your application
53+
* `profileSettings.json` that contains the {{app_name}} settings for the profiling process
54+
* Directory for each battery profile, which includes the following files:
55+
56+
* CSV data file for the given profile and temperature, which can be used to [merge temperature profiles](./working_with_profiles.md)
57+
* Debug directory that includes debugging files with information about the profiling process, such as profiling commands and logs, and about the functioning of the app.<br/>
58+
You can share these files with Nordic Semiconductor if you encounter issues while profiling. You can also manually create these files with the [**Record Events**](overview.md#record-events) button in the side panel, but the contents might be different when not profiling.

doc/docs/profiling_guidelines.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
The guidelines in this section optimize the use of the {{app_name}} for [battery profiling](profiling_battery.md).
77

88
- Before starting battery profiling, refer to the battery datasheet and ensure that the parameters are set correctly. This includes specification of the battery capacity, termination voltages, and any other relevant parameters provided in the datasheet.
9+
- Ensure a solid, low-resistance battery connection to the EK. Make sure to use stable connectors. Poor contacts can cause profiling or model errors (or both).
10+
11+
!!! info "Tip"
12+
For batteries without leads (pads only, for example smart-ring batteries), solder them directly to the nPM1304 EK Battery pads. For more information, see the [Power supply](https://docs.nordicsemi.com/bundle/ug_npm1304_ek/page/UG/nPM1304_EK/power_supply.html) chapter in the nPM1304 EK hardware user guide.
13+
914
- Due to the increased non-linearities of batteries operating at temperatures below zero degrees Celsius, it is recommended to conduct battery profiling exclusively above zero degrees. Avoid profiling at temperatures below freezing or in extreme heat conditions.
1015

1116
!!! note "Note"
1217
Even if the battery is profiled at temperatures above zero Celsius, the fuel gauge can still perform reliably below zero within the standard discharge conditions of the battery.
1318

1419
- To account for temperature variations and improve the accuracy of state-of-charge estimations, profile the battery at three different test temperatures. For example, if the operating temperature of the device ranges from -15°C to 45°C, you can profile the battery at 5°C, 25°C, and 45°C. The final battery model will be created by combining the individual temperature profiles.
20+
21+
!!! note "Note"
22+
You can also profile the battery at each temperature separately and then use the nPM PowerUP [**Profiles**](./overview.md#npm1300-and-npm1304-profiles-tab) tab to merge the individual models into a single multi-temperature model. For details, see [Working with profiles](working_with_profiles.md).
23+
1524
- The time to profile the battery takes approximately 48 hours per temperature, but can be longer for higher capacity batteries. Do not modify the device configuration during the profiling process as this causes the profiling to abort.
1625
- Ensure that your computer does not go into sleep mode or hibernate during the profiling process.
1726
- To avoid issues with computer restarting due to system updates, the computer can be put in flight mode during profiling.
87.7 KB
Loading
17.7 KB
Loading
23.1 KB
Loading
20 KB
Loading
8.84 KB
Loading

0 commit comments

Comments
 (0)