I’m trying to add a new driver for bq40z80 battery monitor in the ap_battmonitor directory. It uses smbus for communication using the I2C protocol for communication with CUAV V5+ flight controller and trying to display the bms data from mission planner and QGC.
Since the bq40z80 battery monitor uses smbus protocol, i’m currently trying to refer the already written smbus backend driver here to read the buffer data of voltages and current in a given register addresses.
I have established smbus connection here i want to read the bms data now
Register address :
- Per Cell voltages : 0x71 (block read for cells 1-4) & 0x7B (block read for cells 5-6)
- Battery Pack voltage : 0x10 (word read pack voltage)
I’ve already implemented the driver and established smbus connection but it’s giving me cell block read failed and smbus read failed commands.