Bosch Sensortec Community

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

    BMI160 - what are steps required to get BMM150 to update to FIFO

    BMI160 - what are steps required to get BMM150 to update to FIFO

    Swingpro
    New Poster

    What are the programming steps required to get the BMM150 to update to the BMI160 FIFO?

    I tried the following steps :

    1) Reg 03 PMU Status -  Mag = normal

    2) Reg 7E CMD - Mag PMU = Normal

    3) Reg 44 MAG_Conf - Set Magnetometer ODR

    4) Reg 47 FIFO_Config[1] - fifo_mag_en = 1

    but from what I can tell the FIFO is not accepting mag data. The FIFO frame header doesn't change to indicate Magnetometer Data is included in the FIFO frame. For example with Mag, Accel and Gyro enabled the frame should be '156'  and there should be 20 bytes per frame but with above steps I can't seem to get the mag bit enabled - the frame code equals "140" and there are only 12 data bytes per frame. What am I missing?

     

    3 REPLIES 3

    Vincent
    Community Moderator
    Community Moderator

    There is still some steps missing like mapping i2c address of BMM150 into BMI160 aux address register.

    you can refer to the BMI160 API in Github. 

    Like function name "bmi160_aux_init" and "bmi160_set_aux_auto_mode". 

    Could you provide the steps in Python?

    I see another Magnetometer question for the BMX160 in the community where there is code provided for magnetometer configuration. Is it the same code for the BMI160?

    mnjirjak
    Established Member

    Hi Swingpro,

    as I was told in this topic, "BMX160 is nothing other than a BMM150 connected to the auxiliary interface of a BMI160, but packed in a single device (this is why the part is 0.12mm thicker)". If I understand correctly, that means that the same procedure is used when reading all three sensors from BMX160 and from BMI160+BMM150. I'm not an expert so if anyone can confirm, that would be great. If the former is true, that means that you can use the code presented in said topic to read out all three sensors, but you also need to make proper hardware connections between BMI160 and BMM150.

    Almost forgot, the code used in mentioned topic doesn't use FIFO, but I believe this and this is what you're looking for. Unfortunately I can't provide Python example, but it shouldn't be too hard to make a conversion.

    Kind regards,

    Marko Njirjak

    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