Dear All, I have a custom board with Multitech xdot LoRA Chip and BME680 Sensor. I can confirmed my board already deep sleeping, as measured from the development kit without BME. The total power consumption of the board now having 0.08mA draw (80uA), which is similiar to the sensor power consumption described in BME developer guide. Somewhere in this forum had seen people doing 0.15-0.18uA only. My sensor reading is fine at the moment and I believe my bme680 is not sleeping yet.. I tried debuging sensor mode before and after setting sensor mode and in func bme680_bsec_trigger_measurement, the mode is always in FORCED mode. Can the problem be the I2C Write or maybe I2C Read function? The Read should be correct as I'm getting the sensor values.. I'm not sure about the Write. Anyone had any experience in this? Below is my I2C function with Mbed I2C Api int8_t Bsec::i2cRead(uint8_t devId, uint8_t regAddr, uint8_t *regData, uint16_t length) { int8_t rslt = 0; char data[1]; data[0] = (char) regAddr; rslt = Bsec::i2c->write(devId, data, 1); rslt = Bsec::i2c->read(devId, (char *) regData, length); return rslt; } int8_t Bsec::i2cWrite(uint8_t devId, uint8_t regAddr, uint8_t *regData, uint16_t length) { int8_t rslt = 0; char data[length + 1]; data[0] = (char) regAddr; for(int i = 1; i <= length; i++) { data[i] = (char) regData[i-1]; } rslt = Bsec::i2c->write(devId, data, length + 1); return rslt; }
... View more