Hi Dialog,
I try to get the battery level. For that, I use pxp_reporter project but I have a problem. The level of the battery was send by the da14681 to the phone each minute but it's always the same data which is send. I used the socf_get_soc() function to collect the level of the battery. If I do a reset of the da14681, the new value is updated.
Thanks
迪米特里
Device:
Hi didi17000,
你是using the proximity reporter as is and you have the dg_configUSE_SOC set to 1 and you still dont get any updates for the values ? Can you please use the DEBUG_SOC and open a terminal in order to check the values returned from the actual SOC module ? The value of the SoC is updated when the device is reset since it re-initializes the algorithm that calculates the amount of charge in the battery, that's why you get a different value when reseting the device. As far as i can test, the configuration on the PXP reporter works as it should, you can speed up the battery discharge by having the device always awake and perhaps advertising in shorter advertising intervals, or having a led always on in order to see your battery discharging (monitor the State of charge via the UART port with the SOC debug feature).
Thanks MT_dialog