Bosch Sensortec Community

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

    BSX-Lite Integration

    BSX-Lite Integration

    arjun
    Member

    Hi,

    I am trying to integrate BSX_lite sensor fusion library in my project.I  am using BMX160. I have referred the BSXLite Integration guide and followed the instructions aper the document. However, I am not getting the sensor data. I tried debugging by reading the return value s after executig each function, but its not showing any error.

    The steps I followed are the following -

    • Included the header files in the BSXLite zip file.
    • Included the algorithm library to the project
    • Configured the I2C lines.
    • Read the chip ID to ensure that the interface is proper. (Able to read the chip ID, Interface proper. )
    • Initialised and configured the sensor using bsx_init(). (Intialization sucessful) Configured the sensors using the specifications given in the BSXLite zip file.
    • Set the working mode using bsx_set_workingmode() (Set the working mode successfully.)
    • Called sensor acquisition functions - bsx_get_accrawdata/bsx_get_gyrorawdata_rps/bsx_get_magrawdata etc. 
    • Checked the return values of the above functions after execution. (All are returning 0, indicating no error).

     

    Kindly provide help with the same.

     

    Thanks

    7 REPLIES 7

    o_o
    Contributor
    From your description, I do not see how you sample the data and give it to the BSX library. Take a look at section 5.3.1 of the integration guide.

    BSXLite requires 4 inputs: Timestamp, accel data, gyro data, mag data.

    We have BSXLite integration sample code for BMF055, you can use it for your reference.

    Hi,

    Once I have initialized the library using bsx_init() function, I am trying to access the data from the sensors using the following functions - 

    bsx_get_accrawdata/bsx_get_gyrorawdata_rps/bsx_get_magrawdata etc..

    As I understood from the Integration documentation(fig), First I have to initialize the sensor parameters with the values that are provided in the BSX-Lite zip file, using bsx_init() function. Then I have to similarly set the working mode. After these two steps, I should be able to access the data from the sensors using the respective functions - bsx_get_accrawdata/bsx_get_gyrorawdata_rps/bsx_get_magrawdata.bsx-lite.png

    BSX is a sensor fusion library.

     

    Your initialization code seems correct, tbut the library cannot output any data on its own. You need to provide accelerometer, gyroscope and magnetometer sensor data to the library before you can retrieve the inputs.

     

    This is done with te do_steps API.

    Hi,

    As per your suggestion, I tried to read the sensor data. However, I observed that I am not getting any sensor data in the first place. When I am reading the data registers (ACC/GYRO/MAG), its always returning 0. 

    I ensured that there is nothing wrong with the interface by reading other registers. The interface seems to be proper as I am able to read the sensor time data and other registers.

    I verified the configurations of the sensors as well, by reading the configuration registers for the three sensors, before and after configuring. The configuration is also proper. I used the bsx_init/bsx_Set_working mode for configuring the sensors. 

    Still, I am not getting any data. Could you suggest if I am missing out something ??

    Thanks

     

    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