Other Parts Discussed in Thread: BQSTUDIO
I try to get the gaugingstatus refer to manual, but I don't get the value correctly. my sourcecode like below, please tell me where is wrong in my sourcecode.
write(0xAA) // I2Caddress
write(0x00,0x56,0x00) // write gaugingstatus subcommand
wait(2ms)
write(0xCE) //try to get writeen subcommand
read(2byte)
wait(2ms)
write(0x40) //try to get the gaugingstatus value
read(2byte)
wait(2ms)
I can get the subcommand(0x0056) correctly by [0xCE] ,
but I can not get the gaugingstatus value correctly by[0x40]