Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI088 Streaming timestamps are counting slow.

    BMI088 Streaming timestamps are counting slow.

    Chris89
    Member

    We have implemented the interrupt-streaming-pc example from here https://github.com/BoschSensortec/BMI08x-Sensor-API/blob/master/examples/interrupt_streaming_pc/inte...

    We are using the BMI088 and the version 3 dev board.

    We have both the accelerometer and the gyro configured with ODR's of 200 Hz.

    The timestamps being reported are counting slow, by a factor of ~ 2X. E.g. it takes ~ 10 seconds to record 5 seconds of data with respect to the reported time stamps.

    Example time stamps from a block of 6 valid samples:

    valid sample count: 6

    time stamps: 3073012389
    time stamps: 3073015034
    time stamps: 3073017702
    time stamps: 3073020324
    time stamps: 3073022980
    time stamps: 3073025644

    Time delta between the final two samples is 0.00266, where it should be closer to 0.005 for a sample rate of 200 Hz.

    The timestamps are calculated as: 48bit_timstamp / 30. Is the factor of 30 correct for the BMI088? 

    Something is clearly not being converted correctly as the delta between timestamps are out by a factor of ~2, but it takes approx twice as long to get a 5 second recording implying that the data is sampled at the correct rate, but the timestamps themselves are incorrect. 

    Any idea what we could be doing wrong?

    6 REPLIES 6

    Thank you for the response. Unfortunately "bmi08a_get_sensor_time" is not accurate enough to provide precise time stamps per sample. 

    Ideally we want to use the FIFO to stream data at 200 Hz, with a timestamp provided for each sample where there is no variance on the sampling interval. This should be achievable as a 200 Hz ODR would request 1 sample every 128 ticks of the 24 bit clock. 

    Any pointers on the best way to achieve this would be appreciated.

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Could you please let us know a little more about your application? Is it a drone or robot application?

    Unfortunately it is not possible for BMI088 to fill data into FIFO at exact 200Hz, because BMI088 gyro has typical ODR tolerance of +/-0.3%.  BMI088 fills data into FIFO based on ODR. At 200Hz ODR, each BMI088 gyro will have actual ODR from 199.4Hz to 200.6Hz. What you could do is use your accurate crystal for your MCU to find out the relationship to each BMI088's gyro ODR and then you could do some kind of compensation.

    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