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.

BQ34Z100EVM: GPC tool always outputs 0.

Part Number: BQ34Z100EVM
Other Parts Discussed in Thread: GPCCHEM, BQSTUDIO

Tool/software:

Hello, I am trying to get a precise chemid for my battery. This is the battery in question:

https://www.batteryspace.com/lifepo4-battery-12v-5ah-60wh-10a-rate-with-led-indicator---replace-sla-12v-4-5ah-lighter-weight-and-higher-capacity----un38-3-passed.aspx

https://www.batteryspace.com/prod-specs/6865.pdf

I've run the procedure and uploaded the requisite files many times and with many variations in the data format. The GPC tool always just gives me a report with a 0 in it. There is no other content, just a 0.

I will attach both the file I am uploading (the most recent version, anyway), and the result.

Any help is appreciated. I'm sure it's just some formatting thing, or some combination of formatting problems, but this documentation is very poor:

https://www.ti.com/lit/an/slva725a/slva725a.pdf

For instance, I have considered that the voltage should be divided by the number of cells, but then why would I specify the number of cells as part of the config? Also, I tried doing this and got the following error:

The following errors were reported by the calculation engine: Accuracy Error: Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule * Warning: voltage in V detected divider changed to 1 * Warning: All IDs disqualified because of too high resistance deviation. No suitable ID selection available 0

Also you spelled "recommended" wrong in that error.gpcchem3-report (1).zipgpcchem3.zip

  • Hi,

    You get this error because there is some mistake in your data.

    Can you share your input data?

    Regards,

    Diego

  • Yeah, I did include the zip file at the bottom, but I will re-upload the files here I suppose with a sample of the data.

    6560.roomtemp_rel_dis_rel.csv

    ProcessingType = 2
    NumCellSeries = 4
    ElapsedTimeColumn=0
    VoltageColumn = 1
    CurrentColumn = 3
    TemperatureColumn = 4
    

    ElapsedTime,Voltage,Current,AvgCurrent,Temperature
    6.25,14380.0,0.0,0.0,24.3
    10.266,14380.0,0.0,0.0,24.3
    15.017,14380.0,0.0,0.0,24.3
    20.017,14380.0,0.0,0.0,24.3
    26.282,14380.0,0.0,0.0,24.3
    30.285,14380.0,0.0,0.0,24.3
    35.034,14380.0,0.0,0.0,24.3
    40.045,14380.0,0.0,0.0,24.3
    46.313,14368.0,0.0,0.0,24.4
    50.331,14368.0,0.0,0.0,24.4
    55.08,14368.0,0.0,0.0,24.4
    60.088,14368.0,0.0,0.0,24.4
    66.345,14368.0,0.0,0.0,24.3
    70.344,14368.0,0.0,0.0,24.3
    75.107,14368.0,0.0,0.0,24.3
    80.111,14368.0,0.0,0.0,24.3
    86.392,14356.0,0.0,0.0,24.4
    90.421,14356.0,0.0,0.0,24.4
    95.127,14356.0,0.0,0.0,24.4
    100.13,14356.0,0.0,0.0,24.4
    106.439,14356.0,0.0,0.0,24.4
    110.452,14356.0,0.0,0.0,24.4
    115.146,14356.0,0.0,0.0,24.4
    120.156,14356.0,0.0,0.0,24.4
    126.485,14356.0,0.0,0.0,24.4
    130.468,14356.0,0.0,0.0,24.4
    135.18,14356.0,0.0,0.0,24.4
    140.191,14356.0,0.0,0.0,24.4
    146.516,14344.0,0.0,0.0,24.4
    150.518,14344.0,0.0,0.0,24.4
    155.227,14344.0,0.0,0.0,24.4
    160.23,14344.0,0.0,0.0,24.4
    166.564,14344.0,0.0,0.0,24.4
    170.547,14344.0,0.0,0.0,24.4
    175.263,14344.0,0.0,0.0,24.4
    180.266,14344.0,0.0,0.0,24.4
    186.594,14336.0,0.0,0.0,24.4
    190.58,14336.0,0.0,0.0,24.4
    195.292,14336.0,0.0,0.0,24.4
    200.301,14336.0,0.0,0.0,24.4
    206.608,14336.0,0.0,0.0,24.4
    210.611,14336.0,0.0,0.0,24.4
    215.332,14336.0,0.0,0.0,24.4
    220.335,14336.0,0.0,0.0,24.4
    226.657,14336.0,0.0,0.0,24.3
    230.657,14336.0,0.0,0.0,24.3
    235.364,14336.0,0.0,0.0,24.3
    240.374,14336.0,0.0,0.0,24.3
    246.705,14336.0,0.0,0.0,24.3
    250.703,14336.0,0.0,0.0,24.3
    255.389,14336.0,0.0,0.0,24.3
    260.391,14336.0,0.0,0.0,24.3
    266.751,14336.0,0.0,0.0,24.3
    270.75,14336.0,0.0,0.0,24.3
    275.422,14336.0,0.0,0.0,24.3
    280.425,14336.0,0.0,0.0,24.3
    286.768,14324.0,0.0,0.0,24.3
    290.782,14324.0,0.0,0.0,24.3
    295.448,14324.0,0.0,0.0,24.3
    300.452,14324.0,0.0,0.0,24.3
    306.796,14324.0,0.0,0.0,24.3
    310.798,14324.0,0.0,0.0,24.3
    315.475,14324.0,0.0,0.0,24.3
    320.479,14324.0,0.0,0.0,24.3

  • Hi, 

    You received this error because there is no current reading in your log file.

    Please follow the steps in this document. Simple Guide to Chemical ID Selection Tool (GPC) (Rev. A)

    Regards,

    Diego

  • There is very clearly a current reading. The current starts at 0 then goes to -500 later on. You can see the current column in the excerpt I provided. Are you saying that I need to have the battery charging when I actually start the logging? It sounded to me like I need to start the logging immediately after bringing the battery to full charge.

  • Hi,

    Sorry I missed the log linked at the top of the post.

    Yes, you need to include both the charging and discharging phases in the log. Please follow the steps in the documentation provided. Your data should resemble the graph below.

    Regards,

    Diego

  • OK I've redone this and am getting the same result. Here is the top of the data:

    ElapsedTime,Voltage,Current,AvgCurrent,Temperature
    5.017,13523,667,668,25.2
    10.028,13523,667,668,25.2
    15.031,13523,667,667,25.2
    20.492,13523,667,667,25.2
    25.043,13523,667,667,25.2
    30.050,13523,666,667,25.2
    35.063,13534,666,667,25.1
    40.539,13523,666,667,25.2
    45.080,13534,666,666,25.2
    50.096,13534,665,666,25.1
    55.102,13534,665,666,25.1
    60.555,13534,665,666,25.1
    65.122,13534,665,666,25.1
    70.129,13534,665,665,25.1
    75.140,13534,665,665,25.1
    80.602,13534,665,665,25.1
    85.154,13534,664,665,25.2
    90.161,13545,664,665,25.1
    95.168,13545,664,664,25.1
    100.650,13545,664,664,25.2
    105.185,13545,664,664,25.1
    110.185,13545,664,664,25.1
    115.187,13545,664,664,25.1
    120.680,13545,663,664,25.2
    125.208,13545,663,664,25.2
    130.221,13545,663,663,25.2
    135.222,13545,663,663,25.2
    140.696,13545,663,663,25.1
    145.239,13545,663,663,25.2
    150.247,13545,663,663,25.1

    This is the file I uploaded:

    gpcchem5.zip7573.roomtemp_rel_dis_rel.csv

    ProcessingType = 2
    NumCellSeries = 4
    ElapsedTimeColumn=0
    VoltageColumn = 1
    CurrentColumn = 2
    TemperatureColumn = 4
    

    And here is the result:

    Here is a graph of the data:

  • Hi,

    Was there an error message in the email the report was sent in?

    After fully charging the cells, the cells are not fully relaxed when the discharge phase begins, the voltage is still fluctuating. 

    I recommend including the full charging phase in the log file. 

    Regards,

    Diego

  • There was not an error message in the email. 

    This process takes a very long time so it's difficult to allocate the necessary time to perform a cycle and put an entire discharge in front of that, but I will try when I get it in a functional state. This is now blocked by the problem in the other thread that keeps me from charging the battery all the way because FC is falsely set.

  • Hi,

    You can change when the FC bit is set by changing FC set % to -1. The FC bit will then set when valid charge conditions are met.

    Regards,

    Diego

  • Hmm, what would valid charge conditions be in this circumstance? Can I still perform a learning cycle or a gpcchem data collection with FC set % at -1?

  • Also, I am starting with a chemid of 460. I have also looked at 461 and 402 but figured 460 is the closest to my battery. What do you think?

    It is a 4S LiFePO4

  • Oh, and after I program 460, it still says LION in Device Chemistry. Is this correct? Is there a place to see the actual programmed ID or would I have to pull out the individual values to make sure they are programmed?

  • Hi Matthew,

    Hmm, what would valid charge conditions be in this circumstance?

    charge termination conditions can be found section 3.7 in the TRM.

    Can I still perform a learning cycle or a gpcchem data collection with FC set % at -1?

    Yes, this is the preferred method.

    Also, I am starting with a chemid of 460. I have also looked at 461 and 402 but figured 460 is the closest to my battery. What do you think?

    It is a 4S LiFePO4

    Please use the GPCchem tool to identify the best chemid, we recommend unsing a chemid with 3% dod % error or less.

    Oh, and after I program 460, it still says LION in Device Chemistry. Is this correct? Is there a place to see the actual programmed ID or would I have to pull out the individual values to make sure they are programmed?

    You can check the chemid by sending the chem_ID cmd 0x0008 or checking the value in dataflash.

    Regards,

    Diego

  • OK I just spent a whole 2 more days trying to perform the learning cycle again and got another zero. PLEASE tell me what I could possibly be doing wrong. Here is the data I uploaded:

    5164.roomtemp_rel_dis_rel.csv

    ProcessingType = 2
    NumCellSeries = 4
    ElapsedTimeColumn=0
    VoltageColumn = 1
    CurrentColumn = 2
    TemperatureColumn = 4
    

  • Hi Matthew,

    We are not completing a learning cycle, that is a completely separate process. We are generating data to use for the GPCCHEM tool to get a chemid match.

    Data looks ok, what error message was in the email?

    Regards,

    Diego

  • You are right, I meant the gpcchem tool. 

    This is the content of the email:

    Your Gauging Parameter Calculator Report is here.
    ...
    ...
    Thank you for your interest in the Gauging Parameter Calculator from TI. Please find attached the Gauging Parameter Calculator report that was based on your Gauging Parameter Calculator input zip file submission.

    This completes the Gauging Parameter Calculator process. Should you want to re-submit or need assistance with Gauging Parameter Calculator, please reference the sites below:

    • Go to Gauging Parameter Calculator to re-submit.
    • Visit TI E2ETm Community on Battery Fuel Gauges or the Gauging Parameter Calculator.
    • TI Battery Management Homepage

    Thank you for using TI's Gauging Parameter Calculator for Battery Fuel Gauges.
  • Hi Matthew,

    Is your input data saved as an excel spread sheet? Please save it as a comma delimited .csv.

    Regards,

    Diego

  • I included it as an attachment 2 messages ago. Here is the start of it:

    ElapsedTime,Voltage,Current,AvgCurrent,Temperature
    11327.277,11716,692,166,25.3
    11332.246,11740,691,319,25.3
    11337.254,11760,691,427,25.3
    11343.293,11772,690,516,25.3
    11347.324,11784,690,558,25.3
    11352.274,11808,689,596,25.3
    11357.279,11808,688,623,25.3
    11363.324,11828,687,645,25.3
    11367.339,11828,687,655,25.3
    11372.304,11840,686,664,25.3
    11377.307,11852,685,670,25.3
    11383.370,11864,684,675,25.3
    11387.385,11872,684,677,25.3
    11392.340,11872,683,679,25.4
    11397.341,11884,683,680,25.3
    11403.432,11896,683,681,25.3
    11407.416,11908,682,681,25.4
    11412.378,11908,681,681,25.4
    11417.388,11920,681,681,25.4
    11423.431,11928,681,681,25.4
    11427.448,11928,680,681,25.4
    11432.396,11940,680,681,25.4
    11437.411,11952,680,680,25.4
    11443.463,11952,679,680,25.4
    11447.479,11964,679,680,25.4
    11452.441,11964,678,679,25.4
    11457.452,11972,678,679,25.4
    11463.525,11984,678,678,25.4
    11467.526,11984,677,678,25.4
    11472.461,11996,677,678,25.4
    11477.470,11996,676,677,25.4
    11483.541,12008,676,677,25.4
    11487.574,12020,676,677,25.4
    11492.503,12020,676,677,25.4
    11497.509,12028,676,676,25.4
    11503.574,12028,675,676,25.4
    11507.603,12040,675,676,25.4
    11512.545,12040,675,675,25.4
    11517.559,12052,675,675,25.4
    11523.620,12052,675,675,25.4
    11527.620,12064,674,675,25.4
    11532.583,12064,674,675,25.4
    11537.589,12076,674,675,25.4
    11543.650,12076,674,674,25.4
    11547.651,12084,674,674,25.4
    11552.621,12084,674,674,25.4
    11557.631,12084,673,674,25.4
    11563.745,12096,673,673,25.4
    11567.698,12108,673,673,25.4
    11572.652,12108,673,673,25.4
    11577.655,12120,672,673,25.4
    11583.734,12120,672,673,25.4
    11587.752,12120,672,672,25.4

  • Hi,

    Please share the zip file you are using sending to the GPCchem tool.

    Regards,

    Diego

  • Hi,

    Thanks for the files, I will get back to you shortly.

    Regards,

    Diego

  • Hi Diego, I have the same issue, no error in the email, but the report only shows "0", nothing else. I attached the email screenshot and my GPC.zip file. Could you please check for me? Thank you.GPC_0618_Submit.zip

    Jiaqi

  • HI

    Do you solve it? I have the same issue.

    Thank you

    Jiaqi

  • Hi Jiaqi,

    We are currently looking into this, we will get back to you shortly.

    Regards,

    Diego

  • Hi Diogo,

    Thank you! I tried many times with slight changes, like format, unit, sample time, including or not including charging phase, all the results are zero.

    I would appreciate your help.

    Thank you.

    Jiaqi

  • Hi Michael,

    Attached is your GPCCHEM report and input data formatted correctly for future reference. Please notice the message at the bottom of the report.

    e2egpc-report.zipe2egpc.zip

    Regards,

    Diego

  • Hi Jiaqi,

    Try to match the format in the files attached above.

    Regards,

    Diego

  • Hi Diego, 

    I submitted the same format as your attached, but the result is 0. Could you check .zip file and send me a valid report for reference? I appreciate it.

    Thank you, Jiaqi

    GPC-0618_12.zip

  • try1.ziptry1-report.zip

    Hi Diego,

    I checked this file you attached, you changed the NumCellSeries from 4 to 2, so that's why the report shows a deviation error. But in the original text file Michael set 4, which is correct. If I submitted the try1.zip file, it is the same one as you attached, but correct the NumCellSeries to 4. The results are still 0. Can you please solve that?

    Thank you

    Jiaqi

  • Hi Jiaqi,

    Thanks for pointing that out, please allow me some time to look into this.

    Regards,

    Diego

  • Any update on this? I'm trying to do learning cycles, but my Ra table looks irregular and I'm wondering if it's because of the chemistry I started out with.

  • Hi,

    Your initial Ra values are imported directly from the chemid. Reaching learned status 6 will indicate that the Ra tables have been updated. If your Ra tables appear abnormal prior to a learning cycle being completed, this is due to chemid selected.

    Regards,

    Diego

  • So should I still be waiting for you to tell me why I'm not getting a chemid from your selection tool?

  • Hi Matthew,

    We are still looking into this issue.

    Regards,

    Diego

  • OK, progress has been made after the update to the chemistry selection tool. I actually get a report now, which is fantastic! However, it says to use chemistry 4202. I don't have 4204. So, I ran the chemistry updater. Now the chemistry selection table no longer renders in bqstudio. I don't mean that it's empty, I mean that it does not render anymore. I can open the tab, but it is empty. Any thoughts on this? This is the file I downloaded which was specified by bqstudio itself:

    https://www.ti.com/tool/GASGAUGECHEM-SW

    Here is the report from the selection tool:

    Chemistry ID selection tool, rev=2.56		
    		
    Configuration used in present fit:		
    ProcessingType=2		
    NumCellSeries=4		
    ElapsedTimeColumn=0		
    VoltageColumn=1		
    CurrentColumn=2		
    TemperatureColumn=3		
    		
    Best chemical ID : 4202	Best chemical ID max. deviation, % : 6.76	
    		
    		
    		
    Summary of all IDs with max. DOD deviation below 15%		
    		
    Chem ID	max DOD error, %	Max R deviation, ratio
    4202	6.76	0.34
    482	7.57	0.06
    6110	7.58	1.77
    4110	8.15	5.07
    417	8.25	15.07
    435	8.28	19.93
    437	8.35	14.11
    491	8.36	9.11
    4222	8.39	3.56
    4185	8.53	5.68
    4184	8.53	9.07
    443	8.77	9.72
    4167	8.82	6.35
    6105	8.83	8.01
    4213	9.16	0.24
    4223	9.17	2.83
    447	9.33	10.16
    411	9.42	11.48
    4159	9.5	4.43
    400	9.53	15.94
    409	9.58	9.77
    496	9.59	2.78
    4198	9.68	2.59
    4188	9.71	5.59
    4113	9.73	4.35
    4150	9.78	4.47
    487	9.81	0.07
    485	9.81	0.07
    471	9.86	9.72
    481	9.86	0.08
    4195	9.95	10.47
    4166	10.07	4.08
    465	10.1	8.37
    450	10.15	5.54
    4111	10.17	1.06
    453	10.24	0.09
    460	10.33	8.08
    4193	10.33	5.57
    424	10.37	0.53
    412	10.37	13.94
    457	10.39	14.65
    4172	10.44	4.29
    474	10.5	6.19
    4211	10.51	6.15
    4130	10.57	4.41
    473	10.58	1.8
    483	10.59	5.11
    4139	10.64	0.39
    4140	10.78	2.46
    4203	10.84	0.41
    425	10.87	11.71
    451	10.97	7.48
    405	11.04	2.1
    4164	11.11	3.1
    438	11.17	15.79
    415	11.21	10.04
    4153	11.23	0.8
    4196	11.32	6.69
    4135	11.43	6.67
    446	11.44	0.25
    427	11.49	7.77
    426	11.59	6.62
    429	11.78	13.64
    4174	11.89	3.23
    421	11.9	0.14
    4190	11.93	4.81
    402	11.94	0.61
    442	11.94	5.36
    4220	12.02	0.24
    419	12.02	0.45
    423	12.05	7.29
    401	12.07	0.55
    4170	12.08	5.39
    4191	12.12	3.81
    463	12.21	7.27
    4173	12.25	8.95
    4124	12.26	1.88
    439	12.27	10.88
    444	12.38	12.57
    428	12.48	0.57
    418	12.51	3.9
    461	12.53	7.52
    4183	12.54	6.84
    4144	12.61	9.27
    4209	12.74	3.15
    4182	12.74	7.44
    4149	12.74	4.51
    4157	12.82	3.25
    4206	12.83	1.89
    4118	13.15	1.66
    445	13.25	0.49
    484	13.28	3.48
    440	13.35	7.01
    486	13.38	1.79
    4218	13.52	10.66
    407	13.95	0.24
    4148	14.04	3.13
    4169	14.08	2.1
    466	14.09	9.74
    4192	14.1	2.96
    4160	14.11	1.88
    478	14.14	0.41
    4142	14.28	0.88
    4141	14.3	2.19
    4175	14.31	8.07
    4178	14.34	7.13
    403	14.38	0.58
    4138	14.4	2.7
    4161	14.42	2.87
    413	14.48	1.32
    4109	14.49	1.91
    4134	14.59	1.84
    4208	14.59	3.88
    4217	14.67	3.03
    4151	14.69	3.16
    4106	14.81	4.25
    2160	14.98	4.39
    		
    Max. deviations for best ID is within recommended range. Chosen best chemical ID is suitable for programming the gauge.		
    		
    		
    Selection of best generic ID for ROM based devices like bq274xx		
    		
    		
    Device / Family #1		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    312	bq27421-G1B: 4.3V LiCoO2	21.83
    354	bq27411-G1C: 4.35V LiCoO2	28.14
    3142	bq27421-G1D: 4.4V LiCoO2	32.43
    128	bq27421-G1A: 4.2V LiCoO2	43.11
    Best generic ID 312		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    Device / Family #2		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    354	bq27621:  (ALT_CHEM2) 4.35V LiCoO2	28.14
    1202	bq27621: (default) 4.2V LiCoO2	29.5
    1210	bq27621:  (ALT_CHEM1) 4.3V LiCoO2	30.66
    Best generic ID 354		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    Device / Family #3		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    3230	bq27426: (default) 4.35V LiCoO2	27.14
    1202	bq27426: (ALT_CHEM1) 4.2V LiCoO2	29.5
    3142	bq27426: (ALT-CHEM2) 4.4V LiCoO2	32.43
    Best generic ID 3230		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    

  • Hi,

    Not sure, here is my chemistry folder. Completely delete your chemistry folder and replace it with the one I have attached. I have chemid 4202, in my BQstudio.

    chemistry.zip

    Let me know if this fixes your issue.

    Regards,

    Diego

  • I actually have the same problem with it. This is what I did:

    1. Delete the BatteryManagementStudio directory.

    2. Re-install bqstudio

    3. Delete the chemistry directory out of BatteryManagementStudio

    4. Place your chemistry directory where it was

    I did test it before replacing the chemistry directory and it worked fine. As soon as I touch the chemistry directory I get that same bug.

  • Hi, 

    What version of BQstudio are you running?

    Are you running the test version of BQstudio?

    Please use the test version of BQstudio.

    Regards,

    Diego

  • Yup, that did it. I programmed the new chemistry and I'll be doing the new training next week. It's been a long road to get to this point and I appreciate the help.