Commit 28da197
committed
modules: memfault: Use
Simplify the options for `MEMFAULT_NCS_DEVICE_ID_*`:
- `MEMFAULT_NCS_DEVICE_ID_HW_ID` (new default) - use the `hw_id`
provided device id, which is also what nRF Cloud uses for device
identity
- `MEMFAULT_NCS_DEVICE_ID_STATIC` used to set a custom build-time
defined static device id, primarily only useful for testing
- `MEMFAULT_NCS_DEVICE_ID_RUNTIME` use a runtime-applied device id,
commonly used when device serial is written into settings at
manufacturing time, for example
Additionally, modify the default `hw_id`-provided value, depending on
system configuration. In order:
- if `MEMFAULT_NCS_DEVICE_ID_IMEI || NRF_MODEM_LIB` is selected, use
IMEI. Note that `MEMFAULT_NCS_DEVICE_ID_IMEI` is kept for backwards
compatibility, but is marked deprecated
- if `BOARD_NRF7002DK_NRF5340_CPUAPP` is selected, use network MAC
(special case)
- finally, if `BT` is selected, use BLE MAC
- otherwise, the default `HW_ID_LIBRARY_SOURCE_DEVICE_ID` (chip UID)
will be used
This means that LTE customers will get a default Memfault device id
matching IMEI, and matching the nRF Cloud device id.
Bluetooth customers will get a default Memfault device id matching BLE
MAC (debatable whether it would be preferrable to default to chip UID
instead, but BLE MAC is used for consistency with IMEI, i.e. the device
id default convention is "network id").
Signed-off-by: Noah Pendleton <[email protected]>hw_id for default Memfault device id1 parent e02b7a6 commit 28da197
File tree
7 files changed
+39
-22
lines changed- doc/nrf/releases_and_maturity/releases
- modules/memfault-firmware-sdk
- samples
- bluetooth/peripheral_mds
- cellular/modem_shell
- debug/memfault/boards
7 files changed
+39
-22
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
913 | 930 | | |
914 | 931 | | |
915 | 932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
| 276 | + | |
278 | 277 | | |
279 | | - | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | | - | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
291 | 294 | | |
292 | 295 | | |
293 | | - | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments