Spaces:

File size: 5,318 Bytes
b24351f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
BQ34110: initial steps to start communication with MCU

Part Number: BQ34110 I am using BQ34110 ic for two LI-ion batteries. I am not getting any data for the commands such as DeviceType() , DeviceName() etc registers. Is there any configuration settings to be done before this. It would be helpful if I get complete step by step procedure to interface it as I wanted to have voltage, current , SOH, SOC information regarding my batteries.

I would suggest you take a look at the app note below. <secret URL>/lit/an/slua790/slua790.pdf Andy

Thank you for quick reply. When I am trying to read DeviceType() data,it is showing only 0000 values than 0110. Can you send the implementation function of atleast single control command on stm32 micro controller ?

Sorry, we don't provide the code. I would suggest you use the bqStudio to communicate with the gauge device, capture the sequence using a logic analyzer and implement the same sequence in your microcontroller. Andy

Can I get the flowchart or any algorithm to get at least DeviceType() or DeviceName()? I had made successful communication with bq34110 ic but when i was trying to get DeviceType() , the responce should be 0x1001 in little endien format, but I don't get response like that. Also, I am confused that when I send 0X01 data to 0x00 control register address and 0x00 data to 0x01 control register address, I should get its respective DeviceType() response at 0x40 /0x41 address. Please correct me if I am wrong. This is the sequence I am following in my implementation.

We already provided all the details in the app note I provided before. Make sure you read through that app note and make good of the Advanced Coom tab to test the sequence. To get the right response for the DeviceType() MAC Subcommand, follow the steps below. ENTER: Start Register 3E, Bytes to Write 0100 and PRESS the Write button. The I2C words occur in the following order in the data stream: AA, 3E, 01, 00. ENTER: Start Register 40, Number of Bytes to Read 2 and PRESS the Read button. The I2C words occur in the following order in the data stream: AA, 40, AB, 10, 01

Hi Andy I followed steps given by you and got response as expected 0x0110 but when I tried for another sub command that is device name response is 00 D4 0B A9 0B FF FF in hex format and C C C C C C C in char format can u tell what is exactly missing here? also I dont have BQstudio with me . I am doing all my interfacing using i2c communication. Can I get default response values when perticular subcommand is used to cross check weather we are getting correct response or not

I can read back the correct device name in the bqStudio, which is the same as the ASCII characters mentioned in the TRM. You would need to check your code.

Hi Andy I will again check it considering your suggestions. I have some basic queries which are not cleared through TRM 1. Can we access consecutive sub commands one after other in a sequence? If yes then is there any delay to be added in between? 2. Is it mandatory to perform factory calibration before accessing any sub command also? I understood that it is important for voltage ,current , temp, SOH etc commands. 3. Without doing any setting what is default state of ic (sealed or unsealed) and mode (normal, snooze, shutdown) ? 4. How to check default configuration status in IC before writing for any command? Thanks in advance.

See my comments below. 1. Can we access consecutive sub commands one after other in a sequence? If yes then is there any delay to be added in between? [Andy] Yes. I would suggest you add a short delay (e.g. 3ms). 2. Is it mandatory to perform factory calibration before accessing any sub command also? I understood that it is important for voltage ,current , temp, SOH etc commands. [Andy] No. However, if you want the voltage, current or temperature readings to be accurate. I would suggest you do the calibration first. 3. Without doing any setting what is default state of ic (sealed or unsealed) and mode (normal, snooze, shutdown) ? 4. How to check default configuration status in IC before writing for any command? [Andy] I would suggest you get an EV2400 and use bqStudio to check the default configurations. With the proper tool and software, it is much easier to work the gauge device. Andy

Hello Andy, Thank you . Your suggestions was very helpful. With that reference, Can you help me more in things as bq34110 I2C note don't have that details: 1. I had evaluated default values of Pin control, Operation config A and design capacity registers as per guidelines. And now I wanted to change its values as per my design. I had followed following sequence: ------- calibration start ------- Data Flash Access Commands to Change the Pin control register as per bq34110 I2C note. ------- calibration end I wanted to check weather the new value is stored accurately or not, What sequence should I follow ? 2. What I learnt from TRM is that factory calibration is necessary to read voltage value, Do I need to set Pin control, Operation config A and design capacity etc before Board Offset, temp, voltage, current calibration? 3. Minimum which registers and parameters required to get at least voltage reading? If possible, please recommend page number of document where all these details are mentioned. Thanks in Advance.