Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Support writing driver for BHI160B

    Support writing driver for BHI160B

    ajmire
    New Poster

    I am trying to write a python driver for the BHI160B foy my application. At the end of uploading FW I get an error raised saying the crcFromFw and crcFromDevice do not match.  I calculated my own CRC with an external library, but even that does not match anything previous. 

    The CRC accoring to my FW header should be:[154, 49, 27, 231] ;['0x9a', '0x31', '0x1b', '0xe7'] ;3877319066

    What I read from device registers (0x97): [28, 198, 67, 179]; ['0x1c', '0xc6', '0x43', '0xb3']; 3007563292

    What I am calculating: [156, 237, 155, 233];[0x9c,0xed,0x9b,0xe9]; 2632817641 

    The arduino MCU code is too large to be implemented on an Arduino. (https://github.com/BoschSensortec/BoschSensorHub

    Is there an FAE for this product that I can reach out for techincal support and development? 

     

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ajmire,

    Could we know some information from you:
    1. Did you you use BMM150 on your hardware?
    2. Currently, which firmware you used?

    Hello,

     

    We are not using the BMM150 in our hardware.

     

    We have tried with with the following firmware versions. 

    Bosch_PCB_7183_di03_BMI160-7183_di03.2.1.11824 (Lastest found on https://www.bosch-sensortec.com/products/smart-sensors/bhi160-firmware/

    Bosch_PCB_7183_di03_BMI160_BMM150-7183_di03.2.1.11696_170103.h (Found on Bosch Github) 

    BSTRobin
    Community Moderator
    Community Moderator

    Hi ajmire,

    You could refer BHI160B sensor API on github https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution, download this firmware "examples/firmware/Bosch_PCB_7183_di03_BMI160-7183_di03.2.1.11696_170103" as you used BHI160B and don't have BMM150 in your design.

    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