Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

BME680 Not Working After Migration from V1 #107

Open
mbauer599 opened this issue Jun 26, 2021 · 6 comments
Open

BME680 Not Working After Migration from V1 #107

mbauer599 opened this issue Jun 26, 2021 · 6 comments

Comments

@mbauer599
Copy link

I'm having the following issue, multiple BME680 sensors are failing to work with v2 out of the box -- sensors that were (and are) working with v1. I'm using devices that are being migrated from a v1 project, so this could be the issue. Any help on how to do this properly is appreciated.

Looks like sensor script is failing and hanging:

Starting mqtt client, publishing to mqtt:1883
Using MQTT publish interval: 8.0 sec(s)
Initializing sensors...
======== Searching i2c bus for devices... ========
Found device at 0x77
======== Removing existing devices from the i2c bus... ========
Deleting device found at 0x77.
======== Unloading any existing modules... ========
New active: [119]
======== Loading devices found... ========
modprobe: FATAL: Module bme680-i2c not found in directory /lib/modules/4.19.75
Loading device bme680-i2c (chip ID 97) on address 0x77.
Loaded 1 of 1 device(s) found
initializing reading
IIO context created: local
Backend version: 0.16 (git tag: v0.16)
Backend description string: Linux 1b23cdd24eb2 4.19.75 #1 SMP Mon Mar 23 10:27:22 UTC 2020 armv7l
IIO context has 1 attributes: 
        local,kernel: 4.19.75
IIO context has 0 devices:

I will stress that it's working on V1 so I don't think hardware is the issue. As well, I have updated to SUPERVISOR VERSION
12.8.8 from 10.x and have the issue on both.

V1 Output from Sensor:

root@fec2c46:/# curl sensor
{"temperature": 22.62, "pressure": 974.29, "humidity": 46.82, "air_quality_score": 25.0, "air_quality_score_accuracy": 0, "eco2_ppm": 0.0, "bvoce_ppm": 0.0}
@mbauer599 mbauer599 changed the title BME680 Now working out of the box BME680 Not working out of the box Jun 26, 2021
@mbauer599 mbauer599 changed the title BME680 Not working out of the box BME680 Not Working After Migration from V1 Jun 26, 2021
@alanb128
Copy link
Contributor

alanb128 commented Jul 1, 2021

What type of device are you using?

@mbauer599
Copy link
Author

mbauer599 commented Jul 1, 2021

Multiple BME680s. If you are looking for manufacturers:

I also am using a Sense HAT that also does not appear to work, however I did not (and have not) tested this on V1 so I'm excluding this for now. I also have done exactly no troubleshooting on the Sense Hat so asking for help wouldn't exactly be fruitful.

I will point out that this is probably something on my end (how I set it up or whatnot) but for V2 I have it deployed to it's own (clean new) project and did attempt to perform both a migration and a fresh build with the same effect. I'm running a PI Zero, a PI 2, and two PI 3's.

@alanb128
Copy link
Contributor

alanb128 commented Jul 1, 2021

Sense V2 won't work on the Pi Zero because Influx does not have an ARMv6 build, but there should not be an issue with the Pi2 or 3. What version of balenaOS are you running?

@mbauer599
Copy link
Author

In the long run that's not an issue for me, since I'm using a centralized Influx/Grafana for all my sensor data (one view for many rooms in my house), although I haven't even thought about building this for V2 of this project yet. Need to get the sensors working first.

Copied from my PI 2:
SUPERVISOR VERSION -- 12.8.8
HOST OS VERSION -- balenaOS 2.48.0+rev1

I'm also running: balenaOS 2.54.2+rev1

Would updating this version be of use for testing or functionality?

@benhowes
Copy link

benhowes commented Jun 7, 2022

FWIW, I was hitting this error and updating the host OS (2.98.33 after the update) worked for me. I believe this is due to the use of the kernel modules for IO in v2

@mbauer599
Copy link
Author

mbauer599 commented Jun 7, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants