BSEC Sensor Library


#1
  • Compiling with Particle CLI like particle compile photon.
  • Using BME680 4-in-1 sensor.

I’ve been able to retrieve gas resistance values, but it’s incredibly difficult to interpret them into anything useful beyond maybe aggregating them over a long time and collecting subjective feedback… I noticed that Bosch makes a binary-only library for interpreting IAQ from this sensor: https://www.bosch-sensortec.com/bst/products/all_products/bsec How can I include this headers-only library via particle compile photon? Do I need to migrate to local toolchain for this?


#2

Let me ping someone that might be able to help, @rickkas7 or @ParticleD are you able to assist?


#3

@warriorofwire,

My apologies, I have edited this post to correct my oops.
The STM32F205 is in fact part of the ARM Cortex family.

I think you will need to do a local build to have a chance of this working.

Particle Dev or Particle Build will definitely not work since they compile in the cloud.


#4

Hi @cyclin_al, huge fan of your work & thanks for your reply!

I’m looking at https://docs.particle.io/datasheets/photon-(wifi)/photon-datasheet/ and see STM32F205RGY6 120Mhz ARM Cortex M3 in the P0 module. Looking at my Photon on my desk, it is marked P0. I see (the 2nd row) a GCC-compiled ARM Cortex M3 distribution of the BSEC library at the 1st post url. Is this not suitable?


#5

It is not possible to use a binary library with any of the cloud compilers (Particle Build Web IDE, Particle Dev Atom IDE, or Particle CLI).

It is possible using the to include a ARM Cortex M3 gcc library (.a) using the local gcc-arm build chain, however.


#6

Thanks for the confirmation. I’ll work through getting the local build chain running.