Bosch Sensortec Community

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

    can i calculate iaq without bsec_iot_loop() function

    can i calculate iaq without bsec_iot_loop() function

    pallyapd
    Established Member

     

    I am using bme680 for iaq calculation and another sensor is one of optical sensor which gives some optical data ...because of infinite bsec_iot_loop i can't do anything for this optical sensor .so please help me how to do other tasks while using Bsec_iot_loop(), I also trying timer-based interrupt to read optical data but after some time error occurs.is any method to calculate iaq .I have used the nrf52840 controller .and i want to run only one thread so please help me also i post my query on the community forum.

    9 REPLIES 9

    pallyapd
    Established Member

    yes, its works. I used a timer to call the above function but when I tried to call with a custom time interval (10sec) IAQ did not change. I want to calculate IAQ every (10 sec) .is it possible?

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hello pallyapd,
    Timer interval should be configured according your BSEC config file.

    BSEC configurations.png

    pallyapd
    Established Member

    I want to use a custom sampling rate(every 60 sec) .but only two sampling rates are available (LP and ULP).how to calculate iaq with a custom sampling period..?

    BSTRobin
    Community Moderator
    Community Moderator

    Hello pallyapd,

    Currently, only configurations in the list are supported.

    pallyapd
    Established Member

    in bsec only 2 configurations are available. I create a timer which is called bsec_loop every 3 seconds (lp mode) it works fine .but whenever I configure ULP mode 300 seconds IAQ is not calculated.IAQ_accurancy remains zero.

    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