Bosch Sensortec Community

    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 sensor API

    BME688 sensor API

    Established Member

    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

    18 REPLIES 18

    Community Moderator
    Community Moderator

    Hello Rosso9,

    If you install COINES , you will see the files related to COINES in the installation directory.

    Established Member

    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?)

    In particular, mutex_port.h library creates me a problem, I think because I cannot find the mutex_port.c file to add to the program.
    Indeed, when I compile the program (after including all this libraries), the building fails and give this output:
    error: unknown type name 'mutex_t'
    and also some warnings about some implicit function declaration of mutex_init, mutex_destroy, mutex_lock, mutex_unlock.
    I don't know where to find the file. Or have I to do something different?
    Thanks again for the help.

    Community Moderator
    Community Moderator

    Hi Rosso9, 


    I assume that you downloaded below API.

    This API is for our dev kit, so you need to remove all coines related codes. 

    For example,

    Remove include line and 



    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.


    If your nRF52 supports arduino, please check our bsec 2 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. 

    Established Member

    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)


    Thanks very much for helping,