Bosch Sensortec Community

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

    BMI270 API/github lib v2.53.2: bmi2_get_config_file_version(...) does not report anything

    BMI270 API/github lib v2.53.2: bmi2_get_config_file_version(...) does not report anything

    stephanhd
    New Poster

    I am using the BMI270 and want to differentiate/check/report/document the config file type and version.

    int8_t bmi2_get_config_file_version(...)

    looks good BUTinside bmi2_get_config_file_version()

    other internals are called which does not find the "markers" that they looks for ...

    The "Problem" is here:

    uint8_t bmi2_extract_input_feat_config(struct bmi2_feature_config *feat_config, uint8_t type,
    const struct bmi2_dev *dev){
    /* Variable to define loop */
    uint8_t loop = 0;

    /* Variable to set flag */
    uint8_t feat_found = BMI2_FALSE;

    /* Search for the input feature from the input configuration array */
    while (loop < dev->input_sens){
    if (dev->feat_config[loop].type == type) {
    *feat_config = dev->feat_config[loop]; //this is never reached
    feat_found = BMI2_TRUE; 
    break;
    }

    loop++;
    }

    /* Return flag */
    return feat_found;
    }

     

    Neither for gesture nor for context based config file....

    Is this a misunderstanding from my side what int8_t bmi2_get_config_file_version(...) should do or ...it is a bug?🐛

    Would be nice to determine the type of initialization (gesture || context) as well...

    Thanks and kind regards, Stephan

    5 REPLIES 5

    Vincent
    Community Moderator
    Community Moderator

    We have API regular update plan. When we fix some bugs in API,  we will try to release it on the Github.

    But according to the configure string,  it is quite stable now,  we don't have plan to update it in near future.

    The detail content of configure file can not be shared to you but i can tell you it contains sensor configuration and also the inialization code.  Without it,  the sensor can not working properly. 

    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