Dear Dialog team,
We are testing SOC functionality using DA14683 board with pxp_reporter application, DEBUG_SOC and dg_configUSE_SOC are enabled. Battery (3.7V, 500mAH, PKCELL LP503035) is connected to VBAT and Gnd on the board. SDK used is DA1468x_DA15xxx_SDK_1.0.14.1081.
Case 1:
USB1(CHG) is not connected to any power source.
In this case, battery discharges and we query for SOC value for every 2-3 minutes, we get the latest battery percentage.
Please find the attached SOC logs printed on the console in the attached file under section "Start of Discharge SOC values" (page 1).
This case is fine.
Case 2:
USB1(CHG) is connected to power source.
In this case, when we query for SOC value for every 2-3 minutes, we don't get the latest battery percentage, however, battery charges in the background.
请在“充电SOC值开始”部分“中找到附加文件中的附带的SOC日志(第42页)。从这些日志中,我们观察到SoC值没有变化。
但是,当我们重置电路板时,我们观察到电池百分比显着增加。请在“充电重置SOC值开始”部分下请参阅附件中的SOC日志文件(第83页)。这意味着背景中的电池充电。
This case is not fine, as we should know the latest battery percentage value, when the application is running.
请帮助我们解决此案例2。
Please let us know for any clarifications.
Best regards
马利

Hi Malli,
Have you changed any source in the SDK? Are you running the SDK on the EVK board or your target board?
如果可以附加jlink,当联系USB1时,您会检查SOCF_GET_SOC_ACTIVE是否会定期调用?
请告诉我。
问候,
James
Dear Dialog team,
We are using 14683 EVK board and we didn't modify any code in SDK.
In custom_socf_battery_profile.h file, we modified SOCF_BATTERY_CAPACITANCE from 190 to 500 as we are using 500mAH battery. Even with 190 value, we have this issue.
We try to put printf statement in the beginning of socf_get_soc_active() function to check printf statements in tera term, but we observed board hangs.
Best regards
马利
Hi Malli,
In my test with 500mAh capacitance, there has been no problem at all.(DA14683 EVK + SDK_1.0.14.1081)
The default charging current in the SDK is set as 60mA.
#define dg_configBATTERY_CHARGE_CURRENT 4 // 60mA
I am wondering if system consume the power from USB almost.
你有没有附加peripherial E设备VK? What is power consumption at discharging state?
Would you test it again with higher charging current like below setting?
#define dg_configbattery_charge_current 10 // 270ma
在源代码中,您可以添加一些变量来了解函数调用的次数。
__RETAINEDstaticint32_t socf_get_soc_active_count;
静态int16_t socf_get_soc_active(void)
{
............
socf_accum_charge_count = socf_accum_charge_count + active_count;
socf_get_soc_active_count ++;
if(socf_accum_charge_count < 0) {
socf_accum_charge_count = 0;
}
...........
}
...........
static void socf_task(void *pvParameters)
{
...........
printf("[%8ld sec] DLG_SWFG SOC=%4d VOL=%4d COUNT=%ld\r\n", socf_log_time, socf_soc,
vol, socf_get_soc_active_count);
..........
}
我可以看到下面的日志,
[30秒] DLG_SWFG SOC = 166 Vol = 3933计数= 25
[ 31 sec] DLG_SWFG SOC= 166 VOL=3934 COUNT=26
[ 32 sec] DLG_SWFG SOC= 166 VOL=3934 COUNT=27
[33秒] DLG_SWFG SOC = 166 Vol = 3935计数= 28
[34秒] DLG_SWFG SOC = 166 Vol = 3935计数= 29
[ 35 sec] DLG_SWFG SOC= 166 VOL=3935 COUNT=30
[36秒] DLG_SWFG SOC = 166 Vol = 3936 Count = 31
[ 37 sec] DLG_SWFG SOC= 167 VOL=3937 COUNT=32
[ 38 sec] DLG_SWFG SOC= 167 VOL=3937 COUNT=33
[ 39 sec] DLG_SWFG SOC= 167 VOL=3937 COUNT=34
[40秒] DLG_SWFG SOC = 167 Vol = 3937计数= 35
[41秒] DLG_SWFG SOC = 167 Vol = 3938 Count = 36
请告诉我你的测试结果。
问候,
James
Hi team,
We tested with higher charing setting, #define dg_configBATTERY_CHARGE_CURRENT 10 // 270mA, but issue still remains same.
不附加外围设备,仅电池连接到EVK。
socf_get_soc_active() function is called for every 1 sec.
解决这个问题的任何其他线索?
Best regards
马利
Hi Malli,
我已经意识到您已将电池连接到vbat和电路板上的GND。电池必须连接到硬币和GND。并且,DauckBoard的开关必须设置为硬币,以便与电池正常运行。
VBAT意味着从外部LDO供电。使用电池充电和操作是不正确的。
问候,
James
Dear Dialog team,
Thank you for your support.
We connected the battery postive pin to daughter board coin holder pin as shown in the the attachment. Is this Ok?
我们澄清了GND连接;电池负极连接到子板的GND吗?
We received communication from Dialog distributor to connect battery nagative pin to to 'VBAT-' J18 on the DK mother board. So we are confused which GND we should connect the negative pin.
请说清楚。
Best regards
马利
Hi Malli,
You have to connect the nagative pin of the battery to GND. If you connect it to VBAT-, current across R1(between SOCP and SOCN) will not happen. It mean coulomb conter would not measure the current and SOC would not be changed at all during charging.
问候,
James
Hi James,
We have attached DA1468X SoC measurement circuit schematic here. Can you check and let us know if this is correct?
If correct, your statement "battery negative terminal needs to be connected to system GND " seems to be contradcting with the application schematic. Please confirm.
Best regards
Vijay
Hi Malli,
I am sorry that my statement is incorrect. The application schematic is correct.
The nagative pin of batterh must be connected to VBAT-. Do you still have the problem with VBAT-?
问候,
James
Dear Dialog team,
Thank you for your support.
This works fine.
Best regards
马利