I'm trying to do data commands so that I can read the voltage,current, etc. Using code posted on this forum, I was able to access the data flash (checked subclass 112 and they match ), but I'm having trouble doing data commands.
I've been trying to get device id or chem id, and tried a few of the ways posted here already but its still not working.
My output is : DevID: 32. Shouldn't I be getting a device id like 0110? Edit: sometimes I get 2E...
I try a similar way to get the chemID and the output is: chemID: 30. Shouldn't the chemID be 0x0800? Edit: sometimes I get 2D...
Am I setting up my board incorrectly? Am I not writing the correct values? Any help would be much appreciated.
To get the device ID, I do
Wire.beginTransmission(0x55); Wire.write(0x01); //Control Wire.write(0x00); //Control Wire.endTransmission(); Wire.beginTransmission(0x55); Wire.write(0x01); //DevID Wire.write(0x00); //DevID Wire.endTransmission(); delay(0.1); Wire.requestFrom(0x55, 2); uint16_t q = Wire.read(); Serial.println(q,HEX);