I am trying to interface an STM32469 Discovery board to an 3DR smart battery for a drone which uses an SMbus to communicate with the master. I am tasked to be able to read data from the battery. I have a list of commands for the SMbus
0x08 ///< temperature register
0x09 ///< voltage register
0x0f ///< predicted remaining battery capacity as a percentage
0x10 ///< capacity when fully charged
0x18 ///< design capacity register
0x19 ///< design voltage register
0x1c ///< serial number register
0x20 ///< manufacturer name
0x23 ///< manufacturer data
0x25 ///< cell voltage register
0x2a ///< current register
Do I need to set the frequency of the master to work with the slave. Also I am using wire in order to connect the I2C bus to the discovery board. Would that pose a problem. The first time I tried this I got gar-baled data from the protocol analyser.
0x08 ///< temperature register
0x09 ///< voltage register
0x0f ///< predicted remaining battery capacity as a percentage
0x10 ///< capacity when fully charged
0x18 ///< design capacity register
0x19 ///< design voltage register
0x1c ///< serial number register
0x20 ///< manufacturer name
0x23 ///< manufacturer data
0x25 ///< cell voltage register
0x2a ///< current register
Do I need to set the frequency of the master to work with the slave. Also I am using wire in order to connect the I2C bus to the discovery board. Would that pose a problem. The first time I tried this I got gar-baled data from the protocol analyser.