Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 sensor API

    BME688 sensor API

    Rosso9
    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

    BSTRobin
    Community Moderator
    Community Moderator

    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/

    Rosso9
    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.

    Minhwan
    Community Moderator
    Community Moderator

    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. 

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

    coines_soft_reset();
    coines_delay_msec(1000);
    coines_close_comm_intf(COINES_COMM_INTF_USB);

    Thanks very much for helping,

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist