Hi,
I am using a bq34z100evm an ev2300 and an android beagle bone black device.
I connected our battery pack to the bqEVM +BAT and BAT- connector and tested the connectivity functionality directly with the ev2300 and the bqStudio on a win7 pc. Works fine bqEVM i2c address is 0xaa.
Than i am connecting the sda, scl, and gnd pin of the evm to the beagle bone blacks i2c port.
The N/C pin is still connceted to the ev2300.
I am opening the ic2 port on the beagle bone black android/ linux device with
int fileDescriptor = open("/dev/i2c-1", O_RDWR);
and try to to activate the bqEVM by sending his i2c address
if(ioctl(fileDescriptor, I2C_SLAVE, 0xaa) < 0)
{
LOGE("i2c: failed to set i2c device address %d fd= %d", 0xaa, fileDescriptor);
return -1;
}
this is failing.
I tested the code with an ds1307 rtc over i2c at the !!! identical port and the identical code procedure !!!! and it works great.
Is there something that i miss?
Is the evm not designed to be used in this way?
What should than the bst was to connect the evm with the BBB?
Or why can't i get a connection to the bqEVM?
The i2c frequency is set to 100kHz and as you can see the bqEVM is used as slave.
Thanks in advanced with best regards,