Hello,
I am having trouble with the measurements I am getting from the BQ35100 Fuel Gauge. I am using the device in the default configuration (Accumulator Mode). The software performs the following steps:
- Device powers up
- Fuel gauge enable pin is set high
- Device waits for nAlert pin to go low due to INITCOMP = 1 (with a 1 second timeout)
- CMD Battery Status and Battery Alert is read to clear the alert flag
- Device waits for nAlert to go high again (with a 1 second timeout)
- Gauge start command is sent to fuel gauge
- Device performs simple task using the modem to check the current time
- Gauge stop command is sent to fuel gauge
- CMD Battery Status and Battery Alert is read to clear the alert flag
- Device waits for nAlert pin to go low due to GDONE = 1 (with a 1 second timeout)
- CMD Battery Status and Battery Alert is read to clear the alert flag
- Device waits for nAlert to go high again (with a 1 second timeout)
- Device requests Accumulated Capacity value
- Device performs 0xFFFFFFFF - Accumulated Capacity to get charge used during test
- Fuel gauge enable pin is set low
- Device goes back to sleep
I just took two measurements, where for the first measurement I had the modem installed in my device (largest power sink on the device) and for the second measurement the modem was removed. There are no wait cases or retries if the modem does not respond, so the device should do the exact same thing whether the modem is connected or not. In the first case with the modem installed, the device indicated 13954uAH were used and in the second case without the modem the device indicated 14151uAH were used.
The device was not calibrated, so it is using the default calibration and the default mode (accumulator mode). Are there any steps I am missing to getting an accumulated capacity used measurement from the fuel gauge? Is the 1 second timeout on the nAlert pin state too short?