Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 java api ?

    BME688 java api ?

    Flou1282
    Occasional Visitor

    Hi All,

    I'm using a bme688 bosh sensor (Adafruit) with a Raspberrypi5.

    I want to read sensor values from a java program.

    Someone knows a java library for this sensor ?

    Thank you for your help.

    Florian.

    4 REPLIES 4

    kmca
    Established Member

    BME688  BSEC 2 is a binary release (no source) and the PI is supported so you would need to use JNI to integrate.

    There is a Python wrapper for BSEC 2 and you could push results to Java (via a queuing system like mosquito, or file system, etc) or broadcast via BLE and read on a seperate PI.

    It all depends what you want to do and how much effort  it will take.

    Keith

    Flou1282
    Occasional Visitor

    Hi @kmca .

    Thank you for your reply.

    I just want obtain the BME688 temperature from a java program executed on RPI5.

     

    Thanks.

    kmca
    Established Member

    OK. Well you do not need BSEC to do that.

    What you do need is an I2C library - PI4J  perhaps to communicate with the BME688.
    And read the data sheet and integration guide for formula.

    The Adafruit BME680 Python code is pure python and works on the 688, so should give a template for a java implementation. 

    Regards

     

    Update; it looks like this has already been done here:

    mattjlewis - diozero 

    Keith

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Flou1282,

    Thanks for your inquiry.
    The official BME688 API is based on the C language(https://github.com/boschsensortec/BME68x_SensorAPI), and you can refer to it, migrate it to your platform.

    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