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

    Minhwan
    Community Moderator
    Community Moderator

    Here is my answer for below your question. 

    coines_config_i2c_bus(COINES_I2C_BUS_0, COINES_I2C_STANDARD_MODE);

    - Set I2C communication. This function is to set i2c for our platform. 
    coines_set_shuttleboard_vdd_vddio_config(3300, 3300); (both in the interface_init function)

    - coines_set_shuttleboard_vdd_vddio_config handles our board power source. In your case, no need to apply. 

    coines_soft_reset(); - Please remove it. bme68x_coines_deinit is not necessary for test. 
    coines_delay_msec(1000); - mili second delay function. 

    Thank you. 
    coines_close_comm_intf(COINES_COMM_INTF_USB);

    Rosso9
    Established Member

    Thanks for helping.

    Now I try to adapt the code.

    One further question. If I have already initialized the I2C communication in my project (I use it with other sensors), does I need to use this command  coines_config_i2c_bus(COINES_I2C_BUS_0, COINES_I2C_STANDARD_MODE);

    or can I avoid it?

    Minhwan
    Community Moderator
    Community Moderator

    No you don't have to do. 

    It's our i2c configuration code, so you don't need it 🙂 

    Rosso9
    Established Member

    Thanks again for the answer.

    I have a last (I hope) question.

    I was looking the API code and I saw that a lot of functions refer to SPI comunication (for example in get_regs function there is a mask called BME68X_SPI_RD_MSK even though in the previous if the condition is I2C interface). I use I2C comunication, does it create a problem?

    Thanks again

    Minhwan
    Community Moderator
    Community Moderator

    Hi Rosso, 

     

    You should do use I2C or SPI without any problem in BME688 API. 

    All SPI functions should be called only if you select BME68X_SPI_INTF. 

    Please let me know if you have any questions. 

    Thank you.  

    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