Other Parts Discussed in Thread: BQSTUDIO
Tool/software:
Hello Team,
We have a custom module where we are using BQ34210-q1 fuel gauge. But we are able to set Design Capacity range. But when we tried to set Full charge Capacity it is not changing. We confirmed it by reading , "FullChargeCapacity(): 0x12 and 0x13 and DesignCapacity(): 0x3C and 0x3D" but when we read Full charge capacity it only shows 2200mAh. Which is default value set during POR.
Kindly let me know which step I need to follow for changing full charge capacity. It is needed to calculate remaining capacity of the battery.
Here is my code for FCC
We don't have BQ34210-q1 EVK with us. And we are not using BQStudio for configuration and readings.
We manually configuring with TI MCU using I2C commands.
The problem is that we are able to configure Design capacity value, but not full charge capacity value.
We tried both the profiles in 1st profile the design capacity value will be default set to 2200 and in 2nd it is 1400.
We are unable to update using config method.
For full charge capacity we are configuring by using below commands
Wr 0xAA 0x00 0x14 0x00
Wr 0xAA 0x00 0x72 0x36 //Unsealing
Wr 0xAA 0x00 0x90 0x00 // Entering Config mode
//will be checking the operation status by reading 0x3B
//Once it entered to unseal
Wr 0xAA 0x3E 0x47
Wr 0xAA 0x3F 0x93
Rd 0xAB 0x40 0x08 Reading OLD MSB value
Rd 0xAB 0x41 0x98 Reading OLD LSB value
Rd 0xAB 0x60 0x2E Reading OLD Checksum
Rd 0xAB 0x61 0x24 Reading OLD Length
I want to set the full charge capacity to 10000 mAh
so my value will be 0x2710
Wr 0xAA 0x40 0x27
Wr 0xAA 0x41 0x10 //Writing New MSB and LSB values
Wr 0xAA 0x60 0x97 // New checksum value as per the calculation
Wr 0xAA 0x61 0x24 //Writing new checksum length
Wr 0xAA 0x91 0x00 // exiting config mode
Wr 0xAA 0x30 0x00 //Sealing
The above command is used to configure or change the Full charge capacity
But when we read the 0x12 and 0x13 we are not able to read changed value. It still be the default one 2200 mAh.
And I want to know what are all the steps to start learning cycle for BQ34210-q1.
Thank you