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.

BQ27421-G1: Import GPCRB chemical to BQ27421-G1 in software

Part Number: BQ27421-G1
Other Parts Discussed in Thread: GPCRB, BQSTUDIO, BQ25600,

Tool/software:

Hi team,

Customer try to use BQ27421 with the chemical ID get from GPCRB tool.

Their battery best match Chem ID 366, and they would like to get the resist-table write into BQ27421 using their software, could you help check how they could do this?

Current software code:

Thanks and Best regards,

Will

  • Hello Will,

    You will need to just program the ChemID onto the gauge. When you program the ChemID, then the resistance table will be programmed as well.

    Regards,

    Adrian

  • Hi Adrian,

    This consultation question was raised by me.
    Based on your response(You will need to just program the ChemID onto the gauge), we still don't understand how to obtain the corresponding "resist-table" for the battery we are currently using.

    We installed the bqStudio tool and selected the Gauge we were using, as shown in the following figure:

    After selecting Gauge, click finish to enter the interface as shown below, but we did not see the Chemical ID menu item.

    Our product is an Android system product. The charger used is BQ25600, Guage is BQ27421, and the battery is 130mAh.
    I see a 'bat-resist-table' configuration item in the dts of the BQ27421 driver code,as follows:

    	battery_645mAh: battery_645mAh {
    		qmax-cell0 = <15546>;
    		resist-table = <8 8 8 10 12 9 13 18 23 29 34 47 60 87 131>;
    	};
    
    	bq27421: fuel-gauge@55 {
    		compatible = "ti,bq27421";
    		reg = <0x55>;
    
    		interrupt-parent = <&tlmm>;
    		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
    		pinctrl-names =  "default";
    		pinctrl-0 = <&bq27421_intr_default>;
    
    		bat-resist-table = <&battery_645mAh>;
    		monitored-battery = <&battery>;
    		status = "ok";
    	};

    Looking at the name "batery-645mAh", we feel that the current configuration in DTS "resist table=<8 8 8 10 12 9 13 18 23 29 34 47 60 87 131>" may be for a 645mAh battery. So, we would like to ask how we can correctly modify the data of this' resist-table 'to the 130mAh battery.

    The GPC report uploaded by Will is ours, and the email feedback at that time was the best match Chem ID 366,.

    Many thanks.

  • Hi  Adrian,

    Can you help explain the question we consulted last time?  Thanks a lot.

  • Hello Allen,

    Sorry, I was mistaken in my previous response. The BQ27421-G1 is a ROM gauge so you can not program a specific ChemID, the gauge will come with a pre-programmed ChemID. This is different than from our flash gauges where the ChemID can be changed. 

    We do not recommend to manually change the resistance table, however, you should complete the learning cycle for the gauge so that the resistance table can be updated by the gauge.

    www.tij.co.jp/.../slua903.pdf

    Regards,

    Adrian