meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.99k stars 715 forks source link

[Bug]: BME680 data output no longer works #3956

Closed memo-567 closed 1 month ago

memo-567 commented 1 month ago

Category

Other

Hardware

T-Beam

Firmware Version

2.3.10.d19607b Alpha

Description

After updating to FW 2.3.10, the BME680 data output no longer works. After downgrading to FW 2.3.9, everything works perfectly again. Tested twice.

Relevant log output

No response

Talie5in commented 1 month ago

I've tested rolling back https://github.com/meshtastic/firmware/pull/3904 as a test case against RAK4631 variant (only hardware i have a BME680/RAK1906)

Test #1: changing the BSEC2 package back to 1.5.2400, building and flashing... sensors come back (no IAQ displaying) Test #2: changing the BSEC2 package back to 1.6.2400, building and flashing... sensors come back (no IAQ displaying) Test #3-7 changing BSEC iteratively backwards until #898bc7d where Sensor Data returns (last good working commit against meshtastic/firmware, also changing lib path where it changes to bsec2 appropriately)

Looks like

in platformio.ini

lib_deps =
  https://github.com/boschsensortec/Bosch-BSEC2-Library#v1.6.2400

in variant.h under rak4631

build_flags = ${nrf52840_base.build_flags} -Ivariants/rak4631 -D RAK_4631
  -L "${platformio.libdeps_dir}/${this.__env__}/**BSEC2 Software Library**/src/cortex-m4/fpv4-sp-d16-hard"
memo-567 commented 1 month ago

A small side effect of the update and back: Before the update to 2.3.10, the temperature displayed was 0.8 °C higher than that of the reference thermometer. This was fine since it was still within the BME680's one degree manufacturing tolerance. After going back and forth, there is a difference of 2.8 °C! A reset to factory settings does not lead to any changes, as it is not a real reset. Data will still be preserved somewhere on the device. Maybe also (wrong) data stored by the BME680?

memo-567 commented 1 month ago

I have shut down the node with the sensor for now. The difference was getting bigger and bigger. At the end the temperature difference to the reference thermometer was almost 6 °C.

caveman99 commented 1 month ago

resolved with 2.3.11

memo-567 commented 1 month ago

Works again, but with restrictions only. The air pressure is displayed incorrectly (10.1 hPa) and the line is overwritten on the left side by the new added (V and mA) values. photo_2024-06-02_14-54-48

Talie5in commented 1 month ago

Works again, but with restrictions only. The air pressure is displayed incorrectly (10.1 hPa) and the line is overwritten on the left side by the new added (V and mA) values. photo_2024-06-02_14-54-48

Thats a client side issue - the Android app needs updating to suit from everything I've seen discussed.

memo-567 commented 1 month ago

Possibly the voltage and current values, but the incorrect air pressure can probably be traced back to the Bosch library.