Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    bmi088 sync problem

    bmi088 sync problem

    sunnyYang
    New Poster

    hi professor,

    In my design, set acce and gyro odr in 400hz and set sync according to the BMI08x-Sensor-API-master from github.The CPU reads acce and gyro FIFO once every 0.1s. But the fifo length is not equal between acce and gyro. Sometimes the acce are 41 frames and gyro are 39 frames(in normal should output 40 frames).

    The question one is Why do accelerometers output one more frame of data?

    The question two is how to sync acce and gyro in fifo mode?

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello sunnyYang,

    Yes, it should be 40 frame number according your parameter setting.

    When MCU read ACC & GYRO data once every 0.1S, to get 40 frame FIFO data the 0.1S interval must be accurate.

    Could you check 0.1S interval time?

    hi,

    I'm using fifo warm mark interrupt to read data instead of timer.When I set 280 bytes to trigger interrupt,the acce I can get 40 frames but gyro sometimes just have 39 frames.

    According to bmi088_master project of git hub, I set  synce between acce and gyro.There are registers I can't found descript in datasheet.for example :

        static const uint8_t ACC_INIT_CTRL_ADDR = 0x59;
        static const uint8_t ACC_FEATURE_LSB_ADDR = 0x5B;
        static const uint8_t ACC_FEATURE_MSB_ADDR = 0x5C;
        static const uint8_t ACC_FEATURE_CFG_ADDR = 0x5E;

    1、Are these private regsiger ?

    2、How I achieve acce and gyro sync?

    BSTRobin
    Community Moderator
    Community Moderator

    Hello sunnyYang,

    You will see 0x59~0x6B registers were reserved in data sheet.

    BMI088 reg map.png

    If you set 400 Hz ODR and read data every 0.1 s. For high ODR application scenario, most application read RAW data with high spped(ms). Can your application accept reading data every 0.1 second? It is better to directly read RAW data if you set ODR with a high value.

    By the way, which communication interface(SPI or I2C) you use?

    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