Other Parts Discussed in Thread: EV2400, BQ78350, BQSTUDIO
Hello
we are developing a battery that uses bq78350R2. On the BMS board we have an MCU that handle various tasks and act as an SMBus gateway with the external world.
When communicating through PC (using EV2300 or EV2400) we have a probem in the ReadSMBusBlock function calls because of the PEC.
For instance we are willing to read MAC command 0x0071: our MCU is sending the correct number of bytes as read from bq78350 and is calculating the PEC correctly, but for some reason the bq80xRW.ReadSMBusBlock returns error 3 (bad PEC) on reading.
The frustration is that if we use the same hardware with bqStudio we notice that:
- bqstudio does not send the PEC at all on sending the MAC Write command 44 71 00
- bqstudio receives correctly the 34 bytes that our MCU sends out, ignoring the PEC that we calculate and that we include in the message. We confirm this because we also managed to send a wrong PEC by purpose and the communciation always works with bqstudio.
Please note that the gauge has Settings.Configuration.SmbConfiguration with the HPE bit deisabled.
The question is: how can we use the bq80xRW.ReadSMBusBlock function in our software without the PEC check in the protocol ?
Thanks in advance
Pietro