This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ24295: BQ24295 charge detect delay

Part Number: BQ24295
Other Parts Discussed in Thread: BQSTUDIO, USB2ANY, EV2400

We are finding an unusual delay in detecting charging status using the BQ24295.

When the device is powered off (there is no load), the charge status detection works very well and pretty much starts charging the battery instantly as soon as a charging cable is plugged in. 

When the device is powered on however, there is a delay in detecting the charger connection. The interrupt signal on the charge_int pin can have a detection delay of between 5 seconds, to over 60 seconds. Please see circuit below. Is there a registry setting to fix this issue?

Thanks,

Sukhvir

Handheld Rev0-power.pdf

  • Hello,

    Can you log your registers as you run the test? Start logging before VBUS is attached and stop after the detection is completed.

    It should not take this long to detect, unless it's a bad source/bad connection and it keeps re-trying until the connection is good enough not to fail.

    Sincerely,

    Wyatt Keller

  • Thanks for your prompt reply Wyatt. The sources and connections are actually good, as evidenced by the fact that when no load is attached and the unit is powered off, the charging works flawlessly and draws a steady 1A (the limit we have chosen) and charges the battery following the correct profile. The problem only occurs when the unit is running (it's a handheld computer based on the Raspberry Pi Compute Module - thisispip.com). I was under the impression it should be able to power the load and charge the battery at the same time, or is this not the case?

    I'll try and get some logs across to you by tomorrow and hopefully there is something in there that gives a clue to the problem. 

  • Hello,

    If you have set the input current limit too an amount that can only supply your system power, then it may not charge your battery. If you log the registers during the test we can see exactly what the charger is doing, check and make sure the INT you are seeing is the one you expect, not a different interrupt.

    Sincerely,

    Wyatt Keller 

  • Hi Wyatt,

    I did some further testing and have attached the log file and register settings below. 

    We have set the ATTiny to send a status report from the Fuel Gauge whenever the battery charge changes by 1%.

    When the cable is disconnected, it should report:
    "Sys MGR: Event: CHARGER_TRIG  State: IDLE
    Charge Status: No External Power"

    When the cable is plugged in, it should report:
    "Sys MGR: Event: CHARGER_TRIG  State: IDLE
    Charge Status: Not Charging"

    This is immediately followed by:
    "Sys MGR: Event: CHARGER_TRIG  State: IDLE
    Charge Status: Fast Charge"

    These are all reported correctly when the device is powered off and there is no load. When powered on and the cable is disconnected, it correctly reports the following:
    "Sys MGR: Event: CHARGER_TRIG  State: IDLE
    Charge Status: No External Power"When the cable is plugged in with the load present, it should report the Charge Status as "Not Charging", followed immediately by "Fast Charge", however the "Not Charging" status is never displayed and nothing happens until the battery charge drops by 1%, at which point the Charge Status is reported as "Fast Charge" and charging begins. Please see logs attached for device powered on and powered off. To summarise, the insertion of the cable is not detected when the device is powered on.

    With regards to the max charge settings, could you please give a bit more guidance? At the moment, both are set to 1A. Based on your info above, one should be set higher than the other if I understand correctly... but not sure which way around this should be. If the resistor is set to 1A (200R) but the register is set to 2A, will it charge at 1A when powered off, but draw up to 2A when powered on? Or should the resistor be set to 2A and the register too 1A. I understand the charger will charge at the lowest of the two, but not sure which way around it should be.

    
    [13/06/21 - 00:08:40:392] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:08:40:963] ============= Fuel Gauge Status =============
    [13/06/21 - 00:08:41:047]                  Temperature: 3002 *C
    [13/06/21 - 00:08:41:130]                      Voltage: 4076 mV
    [13/06/21 - 00:08:41:215]                        Flags: 0x0108
    [13/06/21 - 00:08:41:297]     NominalAvailableCapacity: 1137 mAh
    [13/06/21 - 00:08:41:383]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:08:41:466]            RemainingCapacity: 587 mAh
    [13/06/21 - 00:08:41:552]           FullChargeCapacity: 1675 mAh
    [13/06/21 - 00:08:41:636]               AverageCurrent: 1119 mA
    [13/06/21 - 00:08:41:714]               StandbyCurrent: -1 mA
    [13/06/21 - 00:08:41:797]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:08:41:884]                 AveragePower: 4561 mAh
    [13/06/21 - 00:08:41:961]                StateOfCharge: 36 %
    [13/06/21 - 00:08:42:037]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:08:42:114]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:08:42:197]          InternalTemperature: 3002 *C
    [13/06/21 - 00:08:42:283]  RemainingCapacityUnfiltered: 1050 mAh
    [13/06/21 - 00:08:42:367]    RemainingCapacityFiltered: 587 mAh
    [13/06/21 - 00:08:42:452] FullChargeCapacityUnfiltered: 1675 mAh
    [13/06/21 - 00:08:42:538]   FullChargeCapacityFiltered: 1675 mAh
    [13/06/21 - 00:08:42:615]      StateOfChargeUnfiltered: 63 %
    [13/06/21 - 00:08:42:714] =============================================
    
    [13/06/21 - 00:08:42:824] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:08:43:386] ============= Fuel Gauge Status =============
    [13/06/21 - 00:08:43:470]                  Temperature: 3002 *C
    [13/06/21 - 00:08:43:560]                      Voltage: 4080 mV
    [13/06/21 - 00:08:43:635]                        Flags: 0x0108
    [13/06/21 - 00:08:43:727]     NominalAvailableCapacity: 1137 mAh
    [13/06/21 - 00:08:43:806]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:08:43:889]            RemainingCapacity: 587 mAh
    [13/06/21 - 00:08:43:975]           FullChargeCapacity: 1675 mAh
    [13/06/21 - 00:08:44:059]               AverageCurrent: 1006 mA
    [13/06/21 - 00:08:44:144]               StandbyCurrent: -1 mA
    [13/06/21 - 00:08:44:221]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:08:44:307]                 AveragePower: 4104 mAh
    [13/06/21 - 00:08:44:388]                StateOfCharge: 36 %
    [13/06/21 - 00:08:44:461]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:08:44:538]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:08:44:621]          InternalTemperature: 3002 *C
    [13/06/21 - 00:08:44:707]  RemainingCapacityUnfiltered: 1050 mAh
    [13/06/21 - 00:08:44:790]    RemainingCapacityFiltered: 587 mAh
    [13/06/21 - 00:08:44:876] FullChargeCapacityUnfiltered: 1675 mAh
    [13/06/21 - 00:08:44:962]   FullChargeCapacityFiltered: 1675 mAh
    [13/06/21 - 00:08:45:038]      StateOfChargeUnfiltered: 63 %
    [13/06/21 - 00:08:45:139] =============================================
    
    [13/06/21 - 00:08:45:246] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    
    [13/06/21 - 00:08:45:620] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:09:08:425] Charge Status: No External Power
    [13/06/21 - 00:09:08:438] Charger registers:
    [13/06/21 - 00:09:08:519] 00: 0x5F
    [13/06/21 - 00:09:08:522] 01: 0x1F
    [13/06/21 - 00:09:08:524] 02: 0x3E
    [13/06/21 - 00:09:08:541] 03: 0x42
    [13/06/21 - 00:09:08:606] 04: 0xB2
    [13/06/21 - 00:09:08:608] 05: 0x8A
    [13/06/21 - 00:09:08:618] 06: 0x91
    [13/06/21 - 00:09:08:713] 07: 0x4B
    [13/06/21 - 00:09:08:715] 08: 0x00
    [13/06/21 - 00:09:08:717] 09: 0x10
    
    [13/06/21 - 00:09:08:821] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:09:10:105] ============= Fuel Gauge Status =============
    [13/06/21 - 00:09:10:183]                  Temperature: 3015 *C
    [13/06/21 - 00:09:10:266]                      Voltage: 3919 mV
    [13/06/21 - 00:09:10:349]                        Flags: 0x0109
    [13/06/21 - 00:09:10:441]     NominalAvailableCapacity: 1145 mAh
    [13/06/21 - 00:09:10:519]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:09:10:602]            RemainingCapacity: 595 mAh
    [13/06/21 - 00:09:10:688]           FullChargeCapacity: 1669 mAh
    [13/06/21 - 00:09:10:771]               AverageCurrent: -220 mA
    [13/06/21 - 00:09:10:850]               StandbyCurrent: -1 mA
    [13/06/21 - 00:09:10:934]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:09:11:019]                 AveragePower: -862 mAh
    [13/06/21 - 00:09:11:096]                StateOfCharge: 36 %
    [13/06/21 - 00:09:11:173]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:09:11:250]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:09:11:334]          InternalTemperature: 3015 *C
    [13/06/21 - 00:09:11:419]  RemainingCapacityUnfiltered: 1063 mAh
    [13/06/21 - 00:09:11:508]    RemainingCapacityFiltered: 595 mAh
    [13/06/21 - 00:09:11:596] FullChargeCapacityUnfiltered: 1680 mAh
    [13/06/21 - 00:09:11:674]   FullChargeCapacityFiltered: 1669 mAh
    [13/06/21 - 00:09:11:750]      StateOfChargeUnfiltered: 64 %
    [13/06/21 - 00:09:11:858] =============================================
    
    [13/06/21 - 00:09:11:957] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:13:36:627] ============= Fuel Gauge Status =============
    [13/06/21 - 00:13:36:710]                  Temperature: 2998 *C
    [13/06/21 - 00:13:36:794]                      Voltage: 3869 mV
    [13/06/21 - 00:13:36:875]                        Flags: 0x0109
    [13/06/21 - 00:13:36:961]     NominalAvailableCapacity: 1126 mAh
    [13/06/21 - 00:13:37:046]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:13:37:130]            RemainingCapacity: 584 mAh
    [13/06/21 - 00:13:37:220]           FullChargeCapacity: 1669 mAh
    [13/06/21 - 00:13:37:298]               AverageCurrent: -220 mA
    [13/06/21 - 00:13:37:377]               StandbyCurrent: -1 mA
    [13/06/21 - 00:13:37:461]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:13:37:547]                 AveragePower: -851 mAh
    [13/06/21 - 00:13:37:626]                StateOfCharge: 35 %
    [13/06/21 - 00:13:37:701]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:13:37:777]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:13:37:861]          InternalTemperature: 2998 *C
    [13/06/21 - 00:13:37:946]  RemainingCapacityUnfiltered: 1044 mAh
    [13/06/21 - 00:13:38:031]    RemainingCapacityFiltered: 584 mAh
    [13/06/21 - 00:13:38:115] FullChargeCapacityUnfiltered: 1680 mAh
    [13/06/21 - 00:13:38:201]   FullChargeCapacityFiltered: 1669 mAh
    [13/06/21 - 00:13:38:278]      StateOfChargeUnfiltered: 63 %
    [13/06/21 - 00:13:38:378] =============================================
    [13/06/21 - 00:13:38:446] Charge Status: Fast Charge
    [13/06/21 - 00:13:38:490] Charger registers:
    [13/06/21 - 00:13:38:544] 00: 0x5F
    [13/06/21 - 00:13:38:545] 01: 0x1F
    [13/06/21 - 00:13:38:567] 02: 0x3E
    [13/06/21 - 00:13:38:601] 03: 0x42
    [13/06/21 - 00:13:38:618] 04: 0xB2
    [13/06/21 - 00:13:38:673] 05: 0x8A
    [13/06/21 - 00:13:38:675] 06: 0x91
    [13/06/21 - 00:13:38:729] 07: 0x4B
    [13/06/21 - 00:13:38:731] 08: 0xAC
    [13/06/21 - 00:13:38:747] 09: 0x00
    
    [13/06/21 - 00:13:38:855] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:13:39:425] ============= Fuel Gauge Status =============
    [13/06/21 - 00:13:39:508]                  Temperature: 2998 *C
    [13/06/21 - 00:13:39:595]                      Voltage: 4055 mV
    [13/06/21 - 00:13:39:673]                        Flags: 0x0108
    [13/06/21 - 00:13:39:759]     NominalAvailableCapacity: 1115 mAh
    [13/06/21 - 00:13:39:844]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:13:39:928]            RemainingCapacity: 584 mAh
    [13/06/21 - 00:13:40:013]           FullChargeCapacity: 1668 mAh
    [13/06/21 - 00:13:40:096]               AverageCurrent: 1037 mA
    [13/06/21 - 00:13:40:175]               StandbyCurrent: -1 mA
    [13/06/21 - 00:13:40:259]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:13:40:345]                 AveragePower: 4205 mAh
    [13/06/21 - 00:13:40:423]                StateOfCharge: 36 %
    [13/06/21 - 00:13:40:499]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:13:40:576]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:13:40:659]          InternalTemperature: 2998 *C
    [13/06/21 - 00:13:40:745]  RemainingCapacityUnfiltered: 1018 mAh
    [13/06/21 - 00:13:40:829]    RemainingCapacityFiltered: 584 mAh
    [13/06/21 - 00:13:40:914] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:13:40:999]   FullChargeCapacityFiltered: 1668 mAh
    [13/06/21 - 00:13:41:076]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:13:41:177] =============================================
    
    [13/06/21 - 00:13:41:283] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    
    [13/06/21 - 00:13:41:652] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:14:23:547] ============= Fuel Gauge Status =============
    [13/06/21 - 00:14:23:630]                  Temperature: 3018 *C
    [13/06/21 - 00:14:23:714]                      Voltage: 4102 mV
    [13/06/21 - 00:14:23:795]                        Flags: 0x0108
    [13/06/21 - 00:14:23:880]     NominalAvailableCapacity: 1129 mAh
    [13/06/21 - 00:14:23:966]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:14:24:049]            RemainingCapacity: 598 mAh
    [13/06/21 - 00:14:24:139]           FullChargeCapacity: 1659 mAh
    [13/06/21 - 00:14:24:218]               AverageCurrent: 1068 mA
    [13/06/21 - 00:14:24:297]               StandbyCurrent: -1 mA
    [13/06/21 - 00:14:24:381]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:14:24:466]                 AveragePower: 4381 mAh
    [13/06/21 - 00:14:24:543]                StateOfCharge: 37 %
    [13/06/21 - 00:14:24:620]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:14:24:696]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:14:24:790]          InternalTemperature: 3019 *C
    [13/06/21 - 00:14:24:866]  RemainingCapacityUnfiltered: 1032 mAh
    [13/06/21 - 00:14:24:953]    RemainingCapacityFiltered: 598 mAh
    [13/06/21 - 00:14:25:034] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:14:25:120]   FullChargeCapacityFiltered: 1659 mAh
    [13/06/21 - 00:14:25:197]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:14:25:297] =============================================
    
    [13/06/21 - 00:14:25:414] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:14:43:644] Charge Status: No External Power
    [13/06/21 - 00:14:43:698] Charger registers:
    [13/06/21 - 00:14:43:708] 00: 0x5F
    [13/06/21 - 00:14:43:758] 01: 0x1F
    [13/06/21 - 00:14:43:760] 02: 0x3E
    [13/06/21 - 00:14:43:785] 03: 0x42
    [13/06/21 - 00:14:43:822] 04: 0xB2
    [13/06/21 - 00:14:43:836] 05: 0x8A
    [13/06/21 - 00:14:43:881] 06: 0x91
    [13/06/21 - 00:14:43:888] 07: 0x4B
    [13/06/21 - 00:14:43:913] 08: 0x00
    [13/06/21 - 00:14:43:964] 09: 0x10
    
    [13/06/21 - 00:14:44:042] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:14:45:505] ============= Fuel Gauge Status =============
    [13/06/21 - 00:14:45:595]                  Temperature: 3026 *C
    [13/06/21 - 00:14:45:672]                      Voltage: 3930 mV
    [13/06/21 - 00:14:45:753]                        Flags: 0x0109
    [13/06/21 - 00:14:45:839]     NominalAvailableCapacity: 1135 mAh
    [13/06/21 - 00:14:45:924]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:14:46:007]            RemainingCapacity: 604 mAh
    [13/06/21 - 00:14:46:093]           FullChargeCapacity: 1655 mAh
    [13/06/21 - 00:14:46:176]               AverageCurrent: -220 mA
    [13/06/21 - 00:14:46:255]               StandbyCurrent: -1 mA
    [13/06/21 - 00:14:46:339]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:14:46:427]                 AveragePower: -865 mAh
    [13/06/21 - 00:14:46:501]                StateOfCharge: 37 %
    [13/06/21 - 00:14:46:578]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:14:46:657]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:14:46:738]          InternalTemperature: 3026 *C
    [13/06/21 - 00:14:46:824]  RemainingCapacityUnfiltered: 1047 mAh
    [13/06/21 - 00:14:46:908]    RemainingCapacityFiltered: 604 mAh
    [13/06/21 - 00:14:46:993] FullChargeCapacityUnfiltered: 1674 mAh
    [13/06/21 - 00:14:47:084]   FullChargeCapacityFiltered: 1655 mAh
    [13/06/21 - 00:14:47:161]      StateOfChargeUnfiltered: 63 %
    [13/06/21 - 00:14:47:256] =============================================
    
    [13/06/21 - 00:14:47:363] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:18:10:154] ============= Fuel Gauge Status =============
    [13/06/21 - 00:18:10:235]                  Temperature: 3002 *C
    [13/06/21 - 00:18:10:318]                      Voltage: 3872 mV
    [13/06/21 - 00:18:10:403]                        Flags: 0x0109
    [13/06/21 - 00:18:10:484]     NominalAvailableCapacity: 1120 mAh
    [13/06/21 - 00:18:10:570]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:18:10:655]            RemainingCapacity: 595 mAh
    [13/06/21 - 00:18:10:745]           FullChargeCapacity: 1655 mAh
    [13/06/21 - 00:18:10:823]               AverageCurrent: -220 mA
    [13/06/21 - 00:18:10:902]               StandbyCurrent: -1 mA
    [13/06/21 - 00:18:10:985]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:18:11:071]                 AveragePower: -852 mAh
    [13/06/21 - 00:18:11:148]                StateOfCharge: 36 %
    [13/06/21 - 00:18:11:225]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:18:11:302]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:18:11:386]          InternalTemperature: 3002 *C
    [13/06/21 - 00:18:11:471]  RemainingCapacityUnfiltered: 1032 mAh
    [13/06/21 - 00:18:11:557]    RemainingCapacityFiltered: 595 mAh
    [13/06/21 - 00:18:11:639] FullChargeCapacityUnfiltered: 1674 mAh
    [13/06/21 - 00:18:11:725]   FullChargeCapacityFiltered: 1655 mAh
    [13/06/21 - 00:18:11:802]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:18:11:902] =============================================
    [13/06/21 - 00:18:11:971] Charge Status: Fast Charge
    [13/06/21 - 00:18:12:021] Charger registers:
    [13/06/21 - 00:18:12:073] 00: 0x5F
    [13/06/21 - 00:18:12:075] 01: 0x1F
    [13/06/21 - 00:18:12:091] 02: 0x3E
    [13/06/21 - 00:18:12:137] 03: 0x42
    [13/06/21 - 00:18:12:143] 04: 0xB2
    [13/06/21 - 00:18:12:202] 05: 0x8A
    [13/06/21 - 00:18:12:204] 06: 0x91
    [13/06/21 - 00:18:12:220] 07: 0x4B
    [13/06/21 - 00:18:12:260] 08: 0xAC
    [13/06/21 - 00:18:12:271] 09: 0x00
    
    [13/06/21 - 00:18:12:383] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:18:12:949] ============= Fuel Gauge Status =============
    [13/06/21 - 00:18:13:033]                  Temperature: 3002 *C
    [13/06/21 - 00:18:13:116]                      Voltage: 4073 mV
    [13/06/21 - 00:18:13:197]                        Flags: 0x0108
    [13/06/21 - 00:18:13:283]     NominalAvailableCapacity: 1125 mAh
    [13/06/21 - 00:18:13:374]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:18:13:453]            RemainingCapacity: 596 mAh
    [13/06/21 - 00:18:13:538]           FullChargeCapacity: 1654 mAh
    [13/06/21 - 00:18:13:621]               AverageCurrent: 1049 mA
    [13/06/21 - 00:18:13:700]               StandbyCurrent: -1 mA
    [13/06/21 - 00:18:13:784]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:18:13:869]                 AveragePower: 4273 mAh
    [13/06/21 - 00:18:13:946]                StateOfCharge: 37 %
    [13/06/21 - 00:18:14:023]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:18:14:100]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:18:14:184]          InternalTemperature: 3003 *C
    [13/06/21 - 00:18:14:270]  RemainingCapacityUnfiltered: 1028 mAh
    [13/06/21 - 00:18:14:353]    RemainingCapacityFiltered: 596 mAh
    [13/06/21 - 00:18:14:438] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:18:14:526]   FullChargeCapacityFiltered: 1654 mAh
    [13/06/21 - 00:18:14:616]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:18:14:701] =============================================
    
    [13/06/21 - 00:18:14:807] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:18:15:372] ============= Fuel Gauge Status =============
    [13/06/21 - 00:18:15:467]                  Temperature: 3003 *C
    [13/06/21 - 00:18:15:562]                      Voltage: 4068 mV
    [13/06/21 - 00:18:15:658]                        Flags: 0x0108
    [13/06/21 - 00:18:15:742]     NominalAvailableCapacity: 1125 mAh
    [13/06/21 - 00:18:15:837]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:18:15:926]            RemainingCapacity: 596 mAh
    [13/06/21 - 00:18:16:021]           FullChargeCapacity: 1654 mAh
    [13/06/21 - 00:18:16:044]               AverageCurrent: 1053 mA
    [13/06/21 - 00:18:16:123]               StandbyCurrent: -1 mA
    [13/06/21 - 00:18:16:206]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:18:16:298]                 AveragePower: 4284 mAh
    [13/06/21 - 00:18:16:371]                StateOfCharge: 37 %
    [13/06/21 - 00:18:16:465]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:18:16:552]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:18:16:637]          InternalTemperature: 3003 *C
    [13/06/21 - 00:18:16:716]  RemainingCapacityUnfiltered: 1028 mAh
    [13/06/21 - 00:18:16:797]    RemainingCapacityFiltered: 596 mAh
    [13/06/21 - 00:18:16:874] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:18:16:946]   FullChargeCapacityFiltered: 1654 mAh
    [13/06/21 - 00:18:17:030]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:18:17:123] =============================================
    
    [13/06/21 - 00:18:17:230] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    
    [13/06/21 - 00:18:17:616] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:18:21:939] Charge Status: No External Power
    [13/06/21 - 00:18:21:988] Charger registers:
    [13/06/21 - 00:18:22:008] 00: 0x5F
    [13/06/21 - 00:18:22:034] 01: 0x1F
    [13/06/21 - 00:18:22:073] 02: 0x3E
    [13/06/21 - 00:18:22:085] 03: 0x42
    [13/06/21 - 00:18:22:129] 04: 0xB2
    [13/06/21 - 00:18:22:136] 05: 0x8A
    [13/06/21 - 00:18:22:182] 06: 0x91
    [13/06/21 - 00:18:22:188] 07: 0x4B
    [13/06/21 - 00:18:22:227] 08: 0x00
    [13/06/21 - 00:18:22:240] 09: 0x10
    
    [13/06/21 - 00:18:22:340] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:18:24:129] ============= Fuel Gauge Status =============
    [13/06/21 - 00:18:24:213]                  Temperature: 3006 *C
    [13/06/21 - 00:18:24:296]                      Voltage: 3894 mV
    [13/06/21 - 00:18:24:377]                        Flags: 0x0109
    [13/06/21 - 00:18:24:471]     NominalAvailableCapacity: 1127 mAh
    [13/06/21 - 00:18:24:548]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:18:24:632]            RemainingCapacity: 598 mAh
    [13/06/21 - 00:18:24:728]           FullChargeCapacity: 1652 mAh
    [13/06/21 - 00:18:24:803]               AverageCurrent: -220 mA
    [13/06/21 - 00:18:24:880]               StandbyCurrent: -1 mA
    [13/06/21 - 00:18:24:964]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:18:25:049]                 AveragePower: -857 mAh
    [13/06/21 - 00:18:25:126]                StateOfCharge: 37 %
    [13/06/21 - 00:18:25:203]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:18:25:281]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:18:25:364]          InternalTemperature: 3007 *C
    [13/06/21 - 00:18:25:455]  RemainingCapacityUnfiltered: 1031 mAh
    [13/06/21 - 00:18:25:533]    RemainingCapacityFiltered: 598 mAh
    [13/06/21 - 00:18:25:618] FullChargeCapacityUnfiltered: 1666 mAh
    [13/06/21 - 00:18:25:704]   FullChargeCapacityFiltered: 1652 mAh
    [13/06/21 - 00:18:25:781]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:18:25:884] =============================================
    
    [13/06/21 - 00:18:25:988] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:19:42:993] ============= Fuel Gauge Status =============
    [13/06/21 - 00:19:43:075]                  Temperature: 3002 *C
    [13/06/21 - 00:19:43:159]                      Voltage: 3872 mV
    [13/06/21 - 00:19:43:239]                        Flags: 0x0109
    [13/06/21 - 00:19:43:328]     NominalAvailableCapacity: 1122 mAh
    [13/06/21 - 00:19:43:410]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:19:43:493]            RemainingCapacity: 594 mAh
    [13/06/21 - 00:19:43:579]           FullChargeCapacity: 1652 mAh
    [13/06/21 - 00:19:43:663]               AverageCurrent: -220 mA
    [13/06/21 - 00:19:43:746]               StandbyCurrent: -1 mA
    [13/06/21 - 00:19:43:825]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:19:43:911]                 AveragePower: -852 mAh
    [13/06/21 - 00:19:43:987]                StateOfCharge: 36 %
    [13/06/21 - 00:19:44:065]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:19:44:141]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:19:44:226]          InternalTemperature: 3002 *C
    [13/06/21 - 00:19:44:311]  RemainingCapacityUnfiltered: 1026 mAh
    [13/06/21 - 00:19:44:394]    RemainingCapacityFiltered: 594 mAh
    [13/06/21 - 00:19:44:480] FullChargeCapacityUnfiltered: 1666 mAh
    [13/06/21 - 00:19:44:565]   FullChargeCapacityFiltered: 1652 mAh
    [13/06/21 - 00:19:44:642]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:19:44:746] =============================================
    [13/06/21 - 00:19:44:823] Charge Status: Fast Charge
    [13/06/21 - 00:19:44:855] Charger registers:
    [13/06/21 - 00:19:44:909] 00: 0x5F
    [13/06/21 - 00:19:44:910] 01: 0x1F
    [13/06/21 - 00:19:44:932] 02: 0x3E
    [13/06/21 - 00:19:44:978] 03: 0x42
    [13/06/21 - 00:19:44:983] 04: 0xB2
    [13/06/21 - 00:19:45:009] 05: 0x8A
    [13/06/21 - 00:19:45:054] 06: 0x91
    [13/06/21 - 00:19:45:060] 07: 0x4B
    [13/06/21 - 00:19:45:086] 08: 0xAC
    [13/06/21 - 00:19:45:147] 09: 0x00
    
    [13/06/21 - 00:19:45:226] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    [13/06/21 - 00:19:45:794] ============= Fuel Gauge Status =============
    [13/06/21 - 00:19:45:875]                  Temperature: 3003 *C
    [13/06/21 - 00:19:45:957]                      Voltage: 4058 mV
    [13/06/21 - 00:19:46:038]                        Flags: 0x0108
    [13/06/21 - 00:19:46:124]     NominalAvailableCapacity: 1122 mAh
    [13/06/21 - 00:19:46:209]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:19:46:293]            RemainingCapacity: 594 mAh
    [13/06/21 - 00:19:46:382]           FullChargeCapacity: 1651 mAh
    [13/06/21 - 00:19:46:467]               AverageCurrent: 1043 mA
    [13/06/21 - 00:19:46:554]               StandbyCurrent: -1 mA
    [13/06/21 - 00:19:46:636]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:19:46:716]                 AveragePower: 4232 mAh
    [13/06/21 - 00:19:46:813]                StateOfCharge: 36 %
    [13/06/21 - 00:19:46:885]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:19:46:956]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:19:47:048]          InternalTemperature: 3003 *C
    [13/06/21 - 00:19:47:126]  RemainingCapacityUnfiltered: 1025 mAh
    [13/06/21 - 00:19:47:220]    RemainingCapacityFiltered: 594 mAh
    [13/06/21 - 00:19:47:309] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:19:47:409]   FullChargeCapacityFiltered: 1651 mAh
    [13/06/21 - 00:19:47:492]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:19:47:587] =============================================
    
    [13/06/21 - 00:19:47:675] Sys MGR: Event: CHARGER_TRIG  State: RUNNING
    [13/06/21 - 00:19:48:211] ============= Fuel Gauge Status =============
    [13/06/21 - 00:19:48:299]                  Temperature: 3003 *C
    [13/06/21 - 00:19:48:382]                      Voltage: 4074 mV
    [13/06/21 - 00:19:48:460]                        Flags: 0x0108
    [13/06/21 - 00:19:48:546]     NominalAvailableCapacity: 1123 mAh
    [13/06/21 - 00:19:48:631]        FullAvailableCapacity: 1762 mAh
    [13/06/21 - 00:19:48:717]            RemainingCapacity: 595 mAh
    [13/06/21 - 00:19:48:809]           FullChargeCapacity: 1651 mAh
    [13/06/21 - 00:19:48:903]               AverageCurrent: 1108 mA
    [13/06/21 - 00:19:49:000]               StandbyCurrent: -1 mA
    [13/06/21 - 00:19:49:084]               MaxLoadCurrent: -525 mA
    [13/06/21 - 00:19:49:170]                 AveragePower: 4514 mAh
    [13/06/21 - 00:19:49:259]                StateOfCharge: 37 %
    [13/06/21 - 00:19:49:286]     StateOfHealth_Percentage: 93 %
    [13/06/21 - 00:19:49:362]         StateOfHealth_Status: 0x02
    [13/06/21 - 00:19:49:450]          InternalTemperature: 3004 *C
    [13/06/21 - 00:19:49:544]  RemainingCapacityUnfiltered: 1026 mAh
    [13/06/21 - 00:19:49:633]    RemainingCapacityFiltered: 595 mAh
    [13/06/21 - 00:19:49:725] FullChargeCapacityUnfiltered: 1665 mAh
    [13/06/21 - 00:19:49:821]   FullChargeCapacityFiltered: 1651 mAh
    [13/06/21 - 00:19:49:924]      StateOfChargeUnfiltered: 62 %
    [13/06/21 - 00:19:50:004] =============================================
    
    [13/06/21 - 00:19:50:104] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    
    [13/06/21 - 00:19:50:444] Sys MGR: Event: FUEL_GAUGE_TRIG       State: RUNNING
    
    ChargerWithoutLoad.txt

  • Hi,

    We will get back to you on the next business day,

    Thanks,

    Ning.

  • Hello Sukhvir,

    Sorry I should've specified further, it would be most helpful if you're able to log the charger registers with bqStudio when you test the condition when power is on and you plug in the adaptor. I'm not sure what registers you're reading to correlate the different readouts so it would be easier to read if it was the bqStudio format.

    The charger will limit according to the lowest one, so if one is 1A and one is 2A the current will be limited at 1A no matter if the register or hardware is set there.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    I downloaded bqStudio, however can't find BQ24295 listed so am unable to run a test. Downloaded both versions and neither of them list the chip (v1.3.104.1 and v1.3.101.1). Any other way I can do this?

    With regards to the charger, I just wanted to confirm best practise for setting the limit. I am aware the lowest value will determine the max charge rate, and assume that if one of these is set to 2A and the other at 1A, it will draw 1A when it is powered off, but when load is powered and is drawing 1A, will it charge at 1A? If load consumes 500mA, will it still charge at 1A? Which is usually set higher - the resistor or register?

    I have probed the lines and output is shown below:

    - When the power is off and the cable is inserted, the charge_int line on the BQ24295 triggers the I2C and starts charging  without any delay (confirmed by start of current draw). There is no activity on the Fuel Gauge GPOUT line.

    - When the power is off and cable is removed, same pattern as above

    - When the power is on and the cable is inserted, there is a long delay (couple of minutes sometimes) until the fuel gauge sends sends a trigger on GPOUT line to ATTINY to indicate a 1% decrease in charge, which then triggers I2C, followed by charge_int line on BQ24295.

    Does this definitely point to a FW issue? or is it the settings or electrical? Thanks in advance.

    Yellow = CHARGE_INT (BQ24295)

    PURPLE = GPOUT (FG)

    GREEN = SCL (ATTiny)

    BLUE = SDA (ATTiny)

  • Hello Sukhvir,

    This charger does not have support for bqStudio and EV2400 yet, you would have to use the USB2ANY interface with the online GUI https://dev.ti.com/gallery/view/BatteryChargers/ticharger_gui/

    The best practice for the input current limit is to set it according to your adaptors limitations, it depends on your system so you don't overload the adaptor. If you set ILIM to 1A and pull 1A on the system, you will probably be charging the battery slightly due to down conversion but it would not be at the set ICHG value.

    Are you wondering about the gauge GPOUT behavior or the charger?

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    Thanks for getting back to me. With regards to the input current limit... is it a max charging rate, or input current limit? If I set ILIM resistor to 2A and register to 1A and the load draws 1A, will the battery charge at 1A at all times (with or without load)? That's ultimately what my question is.

    With regards to the register outputs, we are a small startup and don't have the need or funds to get the USB2ANY interface. It is something we will only use once, so don't wish to purchase it. I have translated the register readings in the attached spreadsheet. Will these do? We are just wanting to know why the insertion of the charging cable is not detected when the system is powered on. The charging is only enabled when the fuel gauge detects a drop of 1% and the charging sequence and current draw only begins at that point. That can be up to 2 minutes plus... until the battery charge has dropped by 1%. 

    Please see attached log details - I have a tab at the bottom showing logs with and without load. A quick reply would be much appreciated as we have units ready to ship but can't ship with this issue.

    Sukhvir

    BQ24295 readings.xlsx

  • Hello Sukhvir,

    I reviewed the excel you shared, but it looks like the during the period the load is applied and the adaptor is plugged in without charging, you say there's nothing displayed? What does this mean? That would be the most important time to read the registers to see what mode it is in. Is the device not responding to the address?

    I'm not sure how the gauge reporting 1% drop in SOC is tied to the charger operation for your system. If you are using it to control charge it may be better to tie the condition to something else that would immediately start the charge.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt. I'll see if i can get more readings for you from the moment it is plugged in. The 1% drop in charge initiating the charging is not a condition we set; rather it seems to be a trigger but we are not sure why that is the trigger for this.

    When I said nothing is displayed when the charger is plugged in under load, I mean there is absolutely no activity anywhere on the charging circuitry when the charger is plugged in. Everything seems to happen automatically when the 1% drop in SOC kicks in. This seems to be because the I2C lines are polled when the SOC changes. 

    I tried to get further log readings for you by manually pulling the charge_int line low before and immediately after connecting the charger. The settings just after insertion are below (only the ones that change are listed):

    Before connecting charger

    Charge Status - no external power

    0x00 - 01011110

    0x08 - 00000000

    0x09 - 00000000

    After connecting charger

    Charge Status - no external power

    0x00 - 01011010

    0x08 - 00000100

    0x09 - 00000000

    immediately followed by:

    Charge Status - Fast Charge

    0x00 - 01011110

    0x08 - 10100100

    0x09 - 00000000

    Interestingly, when I pull the line low to get the readings, charging begins immediately. I suppose a workaround is to poll the I2C lines every 5 seconds or so when powered on in order to initiate charging. I don't understand why there is a signal on the charge-int line when the device is powered off, but not when the device has booted up.

  • Hello Sukhvir,

    I will look into this more tomorrow, I'm wondering if the charger is waiting on a I2C communication and it is making the state machine stuck but I will need more time to check.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt. We have been checking everything with a scope over the past couple of days and finally got it fixed. The state of the I2C lines were somehow keeping the charger IC from being able to trigger the charger_int pin. There was obviously some internal logic there that is hung up waiting on the I2C lines to return to an idle state or something.

    Really appreciate your help on this but we can put this matter to rest Slight smile Thanks for all your help.

  • Hello Sukhvir,

    I'm glad to hear you got it fixed! let us know if you have more questions.

    Sincerely,

    Wyatt Keller