I am trying to communicate between my verdin-dhalia to a battery using an I2C.Below are the configurations.
I am using dhalia secondary header pins 19(I²C_EXT_SDA) and 20(I²C_EXT_SCL). This is connected to I2C-3 port as per the reference manual.So below are the steps i am using to communicate.
file = open(“/dev/i2c-3”, O_RDWR); => file value is 19 after executing this line
rc = ioctl(file, I2C_SLAVE, addr); => rc value is 0 after execution, I2C_SLAVE is 0x0703 and addr is 0x16(battery address).
data = i2c_smbus_read_byte_data(file, reg); reg is 0x0e.This function call is below
Comparing the actual and expected signals, the problem currently i am facing is that i am not able to send I2C message continiously. I am able to just send one set of data/command Any help would be great.
I am Subbu. Vijay is my colleague. I am currently looking into this issue. We have revised our board schematics. Currently I dont see the battery (0x16) on any of the i2cs. Attached is the terminal output and the devicetree source. We have a custom build image.