Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 Arduino recent example

    hugehead
    Established Member

    Re: BME688 Arduino recent example

    Thanks a lot, let me try if that solves my issues

     

    iamdjango
    Member

    Re: BME688 Arduino recent example

    No problem, let me know how you get on or if you have any other issues 🙂

    hugehead
    Established Member

    Re: BME688 Arduino recent example

    Hello,

    Again, thank you very much for your help! I ran the code with your suggested sensor type:

    bsec_virtual_sensor_t sensorList[] = {
      BSEC_OUTPUT_RAW_TEMPERATURE,
      BSEC_OUTPUT_RAW_HUMIDITY,
      BSEC_OUTPUT_RAW_GAS,
      BSEC_OUTPUT_IAQ,
      BSEC_OUTPUT_STATIC_IAQ,
      BSEC_OUTPUT_CO2_EQUIVALENT,
      BSEC_OUTPUT_BREATH_VOC_EQUIVALENT,
      BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_TEMPERATURE,
      BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_HUMIDITY
    };

    Unfortunately, i get an error after the first data coming in. This is as long as BSEC_OUTPUT_RAW_GAS_INDEX is not part of the sensor. I am assuming, that it might have to do with my sensor config, it is still the original one called bsec_serialized_* .

    12:55:52.317 -> BSEC outputs:
    12:55:52.317 -> 	timestamp = 1050
    12:55:52.317 -> 	temperature = 33.53
    12:55:52.317 -> 	pressure = 97709.91
    12:55:52.317 -> 	humidity = 21.84
    12:55:52.317 -> 	gas resistance = 301176.47
    12:55:52.317 -> 
    12:55:52.317 ->  no bsec run 
    12:55:52.317 -> BSEC error code : -4

     

    Did that happen to you as well?

    BTW: Meanwhile, the BSEC2 github repo was filled with content. https://github.com/BoschSensortec/Bosch-BSEC2-Library

    There are multiple examples now, i remember that this repo was empty  a while ago. Anyway, i get an error while comilation which is described in there: 

     

    https://github.com/BoschSensortec/Bosch-BSEC2-Library/issues/1

     

    Kind Regards!

    iamdjango
    Member

    Re: BME688 Arduino recent example

    Hi,

    No I don't have any error returned by the BSES instance. When I look at bsec_datatypes.h in the BSEC 2 library your error is:

    BSEC_E_DOSTEPS_TSINTRADIFFOUTOFRANGE = -4, /*!< Past timestamps passed to bsec_do_steps() */

    That looks like it comes from the Bsec::processData() function in the Arduino API which is called by bsecInst.run(). It shouldn't be possible as bsecInst.run() always updates the timestamps passed to the BSEC 2 library. Maybe there's an issue with calling millis() on your device but doubt it. You could try debugging by invoking millis() every time you call bsecInst.run() and make sure it's incrementing. Other than that I can't really help much unless you upload your ino file so we can see what your current use of the API is like.

    Thankyou very much for highlight that they've filled the the BSEC2 arduino repo! Shame they didn't test the examples. Also are you using that Arduino library from github? That seems to be different to the version I downloaded from the bosch website. It might also have bugs in it?

    Cheers,

    BSTRobin
    Community Moderator

    Re: BME688 Arduino recent example

    Hello hugehead,

    Could you provide your source file you used, then we check it.

    Thank for your kindly sharing in commmunity, iamdjango,

    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