Bosch Sensortec Community

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

    BME680 with BSEC Not seeing valid data

    BME680 with BSEC Not seeing valid data

    BrooklinEmbed
    Member

    I am using the BSEC software with a BME680 on a Microchip SAMD21 processor.    I have the code setup using the example code bsec_iot_example 

    It is initialzed using the code below

    BrooklinEmbed_0-1637091113979.png

    Then run in a loop as in example with code below. 

    BrooklinEmbed_1-1637091184719.png

    I am not seeing any output from the output_ready function.  This function is never called by the BSEC library. 

    Library version is BSEC 1.4.8.0     

    The I2C routines seem to be working fine.   Here are a couple plots of I2C Traffic. 

    BrooklinEmbed_2-1637091314182.png

    Zoomed in you can see when we read the 1D register the new data flag is never set.  And the sensor data is always 80 00 00 meaning its being skipped. 

    BrooklinEmbed_3-1637091373701.png

    What could be the cause of the the system is set to LP config so I should see new data every 3 seconds.... I never see new data.

    Regards

    Frank

     

     

     

     

     

    6 REPLIES 6

    zgg
    Long-established Member

    Hello

    I have looked at your i2c trace, and the reason why you are seeing num_bsec_inputs as 0, is because the first byte read back from 0x1d (based on your I2C trace) is 0 and that means (bit 7: new_data_0) is also 0,  so the statement if (data.status & BME680_NEW_DATA_MSK) yields false.

    It would be helpful if you share more I2C trace data (preferrably from the start of the device to a point where 0x1d reads back, and preferrably the original trace format (assuming it's logicdata extension  for easier analysis). I can look into it when you share the trace data.

    P.S. it would be appreciated if you could also compress the trace data  (because the original format might be much bigger in size)

     

     

     

    Thanks for Support.   Found issue in my I2C write routine.  

    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