Bosch Sensortec Community

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

    temperature values is always 0

    JimitP
    New Poster

    temperature values is always 0

    Hi ,

     

    I am trying to integrate BESEC software to interface BME680  with EFR32BG22(Cortex M33).I sucessfully integrate libalgobsec.a file for GCC cortex M33F into my project.The project get  compiled sucessfully without any error.

    I have problem with the output data from the BME680.The temperature value remain 0 all the time, and CO2,Iaq and breath values take quiet long time to show-up (initially they all shows 0 values)

    My program take reading every 3 sec. I am using simplicity studio IDE and GNU ARM v10.2.1 compiler.

    I susppect there is  someting wrong with bsec_init()(initialization in BESEC library) function .It looks like  temperature functionality of BME680 is not getting initialize properly.

    I am attaching the snapshot output console:

    Please help me to resolve this issue.

     

    Thank You

    8618fd96-29e6-478f-b562-c2ccca8fb874.jpg

     

    19 REPLIES 19
    Minhwan
    Community Moderator

    Re: temperature values is always 0

    Hello, 

     

    If you are using BME680 + BSEC, I believe that you are using our latest BSEC library as below. (If you don't use our reference code, please let me know) 

    https://www.bosch-sensortec.com/software-tools/software/bsec/

    And there is example code you can refer to.

    \BSEC Library\bsec_1-4-8-0_generic_release\BSEC_1.4.8.0_Generic_Release\examples\bsec_iot_example.c

    After applying my suggestion, if you still have problem, please let me know. 

    Thanks, 

     

    JimitP
    New Poster

    Re: temperature values is always 0

    Yes, I am using Bosch latest BESEC library and, my program is based on besec_iot_example.c code.

    I still have problem with temperature value.
    Minhwan
    Community Moderator

    Re: temperature values is always 0

    Okay, 

    Following two questions. 

    1) Did you change any source code except bsec_iot_example.c? 

    2) If no, please share your bsec_iot_example.c? If yes, you need to share the changed source code. 

    Thanks, 

    JimitP
    New Poster

    Re: temperature values is always 0

    I did not change any source code .

    I have  rewrite bsec_iot_example.c into two separete files ,one file has all th defination of functions and the other contain only the main() function

    I am attaching two files.

    1. app.c (contain main() function)

    2.BME.c (contain function defination)

     

    please find the attached files

     

    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