Bosch Sensortec Community

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

    BMX160 FOC takes longer than what the datasheet says

    BMX160 FOC takes longer than what the datasheet says

    carlos1
    Member

    Hello,

    I have been working with the BMX160, specifically the accelerometer and gyroscope. I have configured both these sensors as per my desired settings, and can successfully stream data from them. However, I am having a problem with the fast offset calibration (FOC), specifically with the gyroscope. When I enable FOC for accelerometer only, FOC works, but if I try to run it on both accelerometer and gyroscope, or even just gyroscope, it fails.

    I have attached an example of how I have set up the device.

    I have also seen this post, which describes the same problem I am seeing and has not been answered:

    https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMX160-FOC-for-accel-and-gyro-PROBLEM/td...

    Like that user, if I go into the driver and increase the timeout, the FOC will succeed, but that seems to suggest that the spec sheet, and therefore the driver, may be incorrect as to how long FOC takes, at least for the gyroscope. Can someone please confirm or deny if I am correct in my conclusion that the datasheet and driver are wrong in this instance?

    6 REPLIES 6

    BSTRobin
    Community Moderator
    Community Moderator

    Hello carlos1,

    Usually, FOC is done on the production line. What is your expected completion time?

    The datasheet says it will take a maximum of 250 ms, so I guess that is my expectation. The driver's FOC function returns an error code if it doesn't complete in that time. However it never completes in that time, and the only way this function will return BMI160_OK is if I go into the driver and change the timeout. I am just wondering if this is an error in the datasheet.

    BSTRobin
    Community Moderator
    Community Moderator

    Hello carlos1,

    Thanks for your feedback. We will check and let you know.

    Have you been able to clarify this issue?

    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