Closed xury77 closed 3 years ago
Hi there, Please note that the bq chip needs significant waiting delays between subsequent i2c commands, for example; first tell the bq the address you like to read from with a write command, then wait for a 20ms delay and do a i2c read, for the amount of byes requested. When there is not enough delay, the BQ may return random values. In your case, what are the voltages present at the all 16 vc inputs?
At this moment I use evaluation board with resistor shunts. On bqStudio all cell cell shows about 1926 and stack voltage 3071. I don't have any temperature sensor so values as -273,2 are correct. By observing the data movement I have the impression that the data is moving. Sometimes they go to the right places. I will try, on your advice, to place some delays between readings. The cause was trivial. 7bit I2C address for read and write should be the same. Now direct commands working, but still I have problems with writing to memory registers.
Finally, I was able to start I2c communication. However, there is a problem with the data rotating and not going into place. After each loop, the read data goes to a different place.
Next time is: