Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI260AP Soft Iron Calibration matrix

    tonny1010
    Member

    BHI260AP Soft Iron Calibration matrix

    Hi Bosch,

    We are using BHI260AP + BMM150 in our product. We would like to get the 9dof quaternion  from the sensor.

    The datasheet 13.3.3 said the BSX library can use the soft iron calibration matrix to improve the estimation accuracy. We have successfully read the 3x3 SIC matrix in 72 bytes from bhi260. Could you please provide more information about the SIC matrix ? For example, how is the SIC matrix value coded? LSB or MSB first? and what is scale? max and min of the value?

    Thanks

    7 REPLIES 7
    BSTRobin
    Community Moderator

    Re: BHI260AP Soft Iron Calibration matrix

    Hello tonny1010,

    Currently, BHI260AP software was not officially released. It was released if customer designed a project with it and applied for it.
    Could we know did you get BHI260AP software from distributor or other channel?

    tonny1010
    Member

    Re: BHI260AP Soft Iron Calibration matrix

    Hello BSTRobin,

    The FW, driver and SDK are aviable on the product page of BHI260AP and also on bosch's official github.

     

    These informations regarding to SIC matrix are also presented iin the datasheet of BHI260AB. We use both bhi260ab and bhi260ap in our products, could please provide information about this?

    Thanks

    BSTRobin
    Community Moderator

    Re: BHI260AP Soft Iron Calibration matrix

    Hello tonny1010,

    You could see it in data sheet, the SIC matrix use a BSX internal binary data format and are not inteded to be interpreted by the host. Driver code supported get and set operation.

    int8_t bhy2_get_sic_matrix(uint8_t *sic_matrix, uint16_t matrix_len, uint32_t *actual_len, struct bhy2_dev *dev);

    int8_t bhy2_set_sic_matrix(const uint8_t *sic_matrix, uint16_t matrix_len, struct bhy2_dev *dev);

    BHI260 BSX SIC matrix.png

    tonny1010
    Member

    Re: BHI260AP Soft Iron Calibration matrix

    Hello BSTRobin,


    Thanks for the replay,


    We have read this note and found those functions in the driver. But could you confirm that the bhi260AP/AB firmware takes care of both HARD iron and SOFT iron calibration? We did not find this information in the datasheet. Another sensor like BNO055 from Bosch takes care only of hard iron calibration and we must load a soft iron matrix into the sensor. This is why we think the SIC matrix should be sent to BHI260AP/AB.
    Moreover, we have found these CSV files in bhi260ap/ab sdk, which contain the sic matrix for different boards and phones. The value in the fies "bsx4configSerialization_SENSORHUB_SIC_BMM150_SHUTTLE_BHI260.csv" is exactly what we read from the sensor using "bhy2_get_sic_matrix()". So we think the sic matrix should be generated by ourself for each device, then loaded into the BHI260.

    tonny1010_0-1638867720542.png

    Please give us more information regarding the soft/hard iron calibration of magnetometer.

     

    Thanks for your help

    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