07-15-2019 09:47 PM
Hello,
is it possible to process multiple BME680 devices with BSEC library? Our application implements two BME680 devices, each using a dedicated I2C bus. As far as I understood, it's not possible to pass duplicate (physical) sensor IDs to he library. How can I pass different physical sensor instances to the BSEC library?
Thanks,
Paul
12-18-2019 10:40 AM
The error returned here by bsec_do_steps() is due to the time_stamp value of 0. Using time_stamp=1 instead in the 'dummy' do_steps() call should solve this.
12-18-2019 11:04 AM
Are you successfully able to calibrate BSEC (i.e. reach IAQ accuracy of 3) with this pseudo-code? Did you totally skip the 'dummy' do_steps call?
08-15-2020 03:54 AM
/Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/main.o: in function `app_bsec_state_load': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/main.c:1526: undefined reference to `bsec_get_state' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/main.o: in function `app_bsec_config_load': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/main.c:1542: undefined reference to `bsec_get_configuration' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/main.o: in function `main': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/main.c:1577: undefined reference to `bsec_get_version' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/bsec_integration.o: in function `bme680_bsec_update_subscription': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:140: undefined reference to `bsec_update_subscription' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/bsec_integration.o: in function `bsec_iot_init': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:186: undefined reference to `bsec_init' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:196: undefined reference to `bsec_set_configuration' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:207: undefined reference to `bsec_set_state' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/bsec_integration.o: in function `bme680_bsec_process_data': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:417: undefined reference to `bsec_do_steps' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: Output/ble_iaqm Debug/Obj/bsec_integration.o: in function `bsec_iot_loop': 1> /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:521: undefined reference to `bsec_sensor_control' 1> /Applications/SEGGER Embedded Studio for ARM 4.52b/gcc/arm-none-eabi/bin/ld: /Users/baranibremaaarohi/ble_project/iaqm_project/ble_iaqm/bme680/BSEC/bsec_integration.c:539: undefined reference to `bsec_get_state' Build failed
09-09-2020 12:13 PM
In my case i had to create a process per sensor (which i don't like, but at that time was the only think that got me to get correct results for several sensors at the same time). I will try your approach as soon as i get some time, thanks!