Other Parts Discussed in Thread: EV2400, BQSTUDIO
Hi,
For some reason, my BQ28Z620 is pulling the DSG gate down but pulling the CHG data high. So, I am hoping to use to use the MAC command to enable the DSG FET.
So I first tried out the example with the Chemical ID but it is not doing what the datasheet says. I am using a STM32 to talk to it via I2C and I can get info like voltage and bat status from it with no problem.
Here is what I have done:
Send 0x55+W, 0x3E, 0x06, 0x00 using HAL_I2C_Master_Transmit.
Then, I used HAL_I2C_Master_Receive to read from the BQ28Z620, but i got {0x10, 0x12, 0x0 <repeats 30 times>, 0xd7, 0x6, 0x0, 0x2, 0x0 <repeats 28 times>} as a result.
I have the following four questions:
- Is this expected? Looks like I am missing the first two bytes which are the verification bytes 0x06 and 0x00.
- It also says the checksum is 0x0 and the length is 0x2, which seems wrong?
- Also, part A says the length is 36 bytes yet in part d it says the length is 6. What is going on? Where do these numbers come from?
- Why does it say `Read the result from MACSubcmd() and MfgMACData()` when i am only using 0x3E which is MACSubcmd() ?
Thank you!