Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BME68x reporting BME68X_E_COM_FAIL

    BME68x reporting BME68X_E_COM_FAIL

    Karthikg
    Established Member

    I am using the development board from Bosch which houses 8 BME688 modules with stacking headers talking to the ADAFRUIT Feather ESP32 board. I have installed BSEC 2.0. I have gotten the infrastructure running (i.e BSEC intializaiton looks fine - with the basic_config_state.ino from the BSEC 2.0 library) 

    when the code is running, it does return the expected values here  (BSEC library version 2.0.6.1 and BSEC error code 0)

    when it gets to  updateSubscription(), I see errors. and looking further, i see this has getting a -2 from the BME68x status (which is BME68X_E_COM_FAIL). so this must be related to not being able to talk to the devices correctly. does anyone have this issue? 

     

    9 REPLIES 9

    Minhwan
    Community Moderator
    Community Moderator

    Hello, 

     

    -2 means communication error that you might have wrong communication hardware setup or software setup. 

    Could you please check your hardware setup and software setup? 

    Please let me know if you have any quesitons. 

    Thanks, 

    Karthikg
    Established Member

    Hi Minhwan,

    this is related to another thread discussion where i got a response - it seems that we are supposed to use the SPI for the sensors, but the enables need to come from I2C driven by 6408. The documentation was not available. if there is any documentation that would be great. 

    Karthik

    Minhwan
    Community Moderator
    Community Moderator

    Hello Karthikg, 

     

    As some one already answered from your another thread, we are under reivew to release BME688 information more about. 

    Please check below url answer. 

    https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BME688-Development-board-Communication-p...

    And also let me know if you have further questions. 

    Thank you. 

    Hi Minhwan,

    I also met the difficulties on error code BME68X_E_COM_FAIL. And it is quite helpful for me to find your reply.

    I checked the link you posted but I am still struggling with the issue. Here are my codes. Would you mind offering me more hints please? 

    Thank you!

    #include "Wire.h"
    
    #define SDA 23
    #define SCL 22
    
    void setup(void)
    {
      Serial.begin(115200);
      Wire.begin(SDA, SCL);
      
      foodSensor.begin(BME68X_I2C_ADDR_HIGH, Wire);
    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