Bosch Sensortec Community

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

    BME 680 IAQ not computed

    BME 680 IAQ not computed

    hugo
    Member

    Hello,

    I'm porting BSEQ to nrf52, cortex M4F. The library has fine SPI configuration. I import config from generic_33v_3s_28d, I init setup at BSEC_SAMPLE_RATE_LP.
    All the init is fine. Every function works fine and returns BSEC_OK. All measurement are fine at 3seconds+-2ms.
    I'm based on bseq_integration demo. I get good temperature/humidity/pressure...but not IAQ/SIAQ/CO2_eq...etc...
    Values are  read fine, including gas resistance.
    But IAQ stays at 25 even after an hour of test.
    I can't debug check what's happening in bme680_bsec_process_data, but it returns BSEC_OK too.

    I'm quite lost, what should I check to go further?

    8 REPLIES 8

    I would also like to add, after 300seconds, bsec buffers. I cannot use them to deduct anything, but maybe you can.

    work buffer:
    08 00 0A A5 AC 50 BA 41 00 00 00 00 00 00 00 00
    00 8D 8F 48 01 00 00 00 2C 01 14 14 00 00 00 00
    00 00 00 00 00 00 03 00 18 A8 5F 3F 14 A5 A5 A5
    A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
    A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
    A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
    A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5
    ...(0xA5 in loop until last 2048th byte)

    bsec_state:
    00 08 04 01 3D 00 00 00 00 00 00 00 73 00 00 00
    2D 00 01 A5 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 2C 01 14 14 00 00 00 00
    00 00 00 00 00 00 03 00 18 A8 5F 3F 14 0C 00 02
    A5 00 00 C8 41 00 00 C8 41 10 00 03 A5 38 A7 9D
    40 4B BD B9 41 52 B0 32 42 16 00 05 A5 2F 88 04
    00 00 00 00 00 00 00 00 00 00 8D 8F 48 01 00 0C
    00 09 A5 2F 88 04 00 00 00 00 00 08 00 0A A5 AC
    50 BA 41 A5 A5 A5 A5 C4 91 00 00

    Minhwan
    Community Moderator
    Community Moderator

    Hello Hugo, 

     

    Your input looks okay.

    If you just multiply 100 after library function, you should get right IAQ value unless library has problem. 

    Could you share your code with me? I will check it in detail.  

    Thanks, 

    Thanks for your message. I can"t share my personnal code in public, and without specific board, you cannot test it.

    There is 2 things to check: input, and if input are not enough: init.
    My init functions are on buttom of my second post, as requested, on the 1st page. There is no error detecting from processor side when running.
    Especially you will find:
    return_values_init bsec_iot_init()
    calling

    static bsec_library_return_t bme680_bsec_update_subscription()

    I can't share content of bme680_bsec_process_data, as I don't know what's inside. All what I see is smart data such as IAQ stays at 25.00 or 0.00, as if something just ask to to process.

     

    just to say the answer was just simply I didn't use ns in bme680_bsec_read_data. So data were read fine, but the soft sensor did consider I didn't spend enough time to update bsec datas.

    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