Bosch Sensortec Community

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

    BMI085 Data Synchronization

    Member

    BMI085 Data Synchronization

    Dear Bosch-Support

     

    We are currently integrating a BMI085 into our measurement environment and we want to have the Gyro and Accelerometer synchronized or even better having the sensor(s) triggered externally. Internet research led us to your Github project https://github.com/BoschSensortec/BMI08x-Sensor-API/ .

     

    General questions:

    1) Is the latency constant between actual measurement time and data ready rising edge?

    2) Can I trigger both sensors using an external signal? (not just the accelerometer)

     

    The following questions came up after using the example API with synchronization of GYRO and ACCEL:

    3) Using the example code (INT1 as ACCEL trigger input, INT2 disabled, INT3, INT4 as GYRO data ready output) seems to work. However, we are unsure if the accelerometer is really synchronized to GYRO or not. Especially when we move the configuration code to our framework, we are unsure if it works. Hence, we would like to enable the data ready output of the accelerometer on INT2. Unfortunately, this did not work (enabling seemed to be accepted by the API, but we cannot measure pulses on that pin). Is it possible to enable trigger input and data ready output on different ports? If so, how?

    4) Are there any constraints on synchronization pins? Can we switch to INT2 as ACCEL trigger input (and INT1 as ACCEL data ready output if possible)?

    5) Does the config dump cover functionality for synchronization (function bmi085_apply_config_file)? Does this improve measurements?

    6) Is there any restriction on the measurement rate when synchronization is enabled? The flyer as well as some texts only mention 2kHz measurement rate for synchronization but we only need to measure at 200Hz.

     

    I am looking forward for your answer.

    Thank you.

     

    Best regards,

    Roman

    Tags (1)
    5 REPLIES 5
    Community Moderator

    Re: BMI085 Data Synchronization

    Hi Roman,

    to your questions:

    1. The latency between actual measurement time and data ready interrupt is indeed constant, as it is mainly caused on the digital filter in the signal path.

    2. Unfortunately not.

    3. You can check whether sync feature works when you read both the sync values from the accerometer's internal registers and the unsynched values, which are still available in the normal registers 0x12-0x17. If you move the sensor a lot, you should see that in the normal registers sometimes the value is repeated, while value repetition should be by far less in the data obtained from the other registers (these values are a little bit ditributed, see details in bmi085_get_synchronized_data function in bmi085.c). This is not a super-proof that the sync is working, but should already give you a high level of confidence.

    The unsynched data is avaialble every 625us from the accelerometer part (when ODR is chosen to 1600Hz), while the values in the synched registers are updated every 500us.

    4. There are constraints, but swapping INT1 and INT2 is not a problem. Also, swapping INT3 and INT4 is possible, but not for example INT3 and INT1. Swapping is only possible pairwise.

    5. The config file contains the configuration for the sync feauture, the feature will not work without loading that config into the sensor. But the configuration does not effect the quality of the sensor signals, the sensor works fine without the configuration.

    6. The reason is that the first version of the api and configuration only contained the case of 2kHz data sync, later the other sync rates wer added. Sync is supported down to 400Hz, but not 200Hz. You may want to check reading sensor output not based on the data ready interrupt, but timer based, i.e. every 5ms, to achieve your 200Hz data rate.

    Hope this helps.

    Best regards,

    Mark

    Member

    Re: BMI085 Data Synchronization

    Dear Mark

    Thank you very much for your quick and detailed answer!

    1) This is good. Is the latency specified?

    3) Therefore, activating the ACCEL data ready output is not possible when the sync feature is activated. Is this correct?

    Best regards,

    Roman

    Highlighted
    Community Moderator

    Re: BMI085 Data Synchronization

    Hi Roman,

    in case of 2kHz ODR of gyro signal, the latency of the synchronized data (accel+gyro) is typically 1.5ms. When you choose lower ODR rates, this effects also the filter settings, which means the latency increases due to the increasing filter delay time.

    3. That is correct.

    Best regards,

    Mark

    Member

    Re: BMI085 Data Synchronization

    Hi Mark

    Thank you very much! This helps a lot.

    Best regards,

    Roman

    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