03-15-2022 08:48 AM
Hi, I'm using the BME688 sensor for a new project with Nordik nRF52832. I find on github the API for using the sensor. The problem is that API's files include the library coines that I'm not able to find anywhere. I would like to ask you if you have it or if you have a structure of the library to implement (because I do not understand what the various functions do). Thanks for your helps
03-15-2022 09:27 AM
Hello Rosso9,
If you install COINES , you will see the files related to COINES in the installation directory.
https://www.bosch-sensortec.com/software-tools/tools/coines/
03-15-2022 10:27 AM
Thanks for the help BSTRobin.
I have seen the COIN installer and I have installed it. But I have problems again.
I import coines.h without problem, but when I also import coines.c, this file include other library, which are: coines_defs.h, comm_intf.h, comm_ringbuffer.h, usb.h, mutex_port.h. I tried to import all this library (do I need all this library?)
03-16-2022 01:58 AM
Hi Rosso9,
I assume that you downloaded below API.
https://github.com/BoschSensortec/BME68x-Sensor-API
This API is for our dev kit, so you need to remove all coines related codes.
For example, https://github.com/BoschSensortec/BME68x-Sensor-API/blob/master/examples/forced_mode/forced_mode.c
Remove include line and
coines_get_millis();
bme68x_coines_deinit();
Instead, you need to get system running time in mili second.
Also, you need to remove coines part in common folder and replace your own spi or i2c accrodingly.
https://github.com/BoschSensortec/BME68x-Sensor-API/blob/master/examples/common/common.c
If your nRF52 supports arduino, please check our bsec 2 library.
https://github.com/BoschSensortec/Bosch-BSEC2-Library
I'm not sure whether you would like to use only our bme68x api or BSEC.
Please let me know if you have questions.
Thank you.
03-16-2022 01:30 PM
Hi Minhwan,
First of all, thanks for the help.
At the moment I'm using the Adafruit development kit and would like to use only bme68x api.
I'm trying to remove coines part and replace with the code for nRF52832, but I have some difficulties for the following functions, because I cannot understand what they do or how to implement them for nRF52.
The functions are:
coines_config_i2c_bus(COINES_I2C_BUS_0, COINES_I2C_STANDARD_MODE);
coines_set_shuttleboard_vdd_vddio_config(3300, 3300); (both in the interface_init function)
coines_soft_reset();
coines_delay_msec(1000);
coines_close_comm_intf(COINES_COMM_INTF_USB);
Thanks very much for helping,