SMbus to a smart battery

Thread Starter

Ally Cat

Joined Mar 28, 2016
80
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.
 

Deleted member 115935

Joined Dec 31, 1969
0
Sounds like you have some good test equipment,
do you have a scope ?

check if you get an I2C ack is a good first step.

frequency, start at the slowest I2C rate

SMbus is a standard that well defined, hunt the web for the full spec.
 
Top