Hi,
I would like to extract the battery life from my Core Body Temperature Sensor.
It does not show up on the device list in the fit-file.
Does anyone know a workaround?
And does anyone know how to interpret the info under the CIQ device info field?
I did, but since there are so many knowledgable people on this forum I wanted to try here as well.
I got the following answer from CORE:
We don’t log the battery state during the activity, we only log the battery level at the end of the activity into the CIQ_device_info. Here is how you can parse the CIQ_device_info:
b0: ANT+ device type “CORE”,
b1: wearing position “Armpit”
b2-b5: 4 LSB of the BLE MAC ADDRESS
b6, b7: manufacturer id lsb, msb (0x012F)
b8: battery status (1 New - 2 Good - 3 Ok - 4 Low - 5 Critical - 6 RFU - 7 Inv.)
I edited your “Core Battery Test” field. This is the script:
{
let status
for (let s of icu.fit.session) {
let di = s.CIQ_device_info?.value
if (di) {
let v = di[8]
if (v) status = ["New","Good","Ok","Low","Critical","RFU","Inv"][v - 1]
}
}
status
}