Same level battery da14681

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
didi17000
Offline
Last seen:3年8个月前
加入:2017-05-17 14:19
Same level battery da14681

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:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
工作人员
加入:2015-06-08 11:34
Hi didi17000,

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