Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Problem in receiving data from BNO085 over I2C interfaced with SAMD21

    Problem in receiving data from BNO085 over I2C interfaced with SAMD21

    RajTalashilkar
    New Poster

    I have interfaced BNO085 with SAMD21G18A controller via I2C synchronous communication running at 100KHz on SERCOM1 of controller and processor is running at 8MHz. I am trying to read Gyroscope and Accelerometer's data using SHTP protocol (reference manual). which the sensor employs.

    Here's how I am doing the I2C initialization:

      i2c_m_sync_get_io_descriptor(&SYS_I2C_BUS, &io);
      i2c_m_sync_enable(&SYS_I2C_BUS);
      i2c_m_sync_set_slaveaddr(&SYS_I2C_BUS, I2C_Address_of.IMU_BNO, I2C_M_SEVEN); //Address = 0x68

     When I try to receive data, I always get the following packet: 

    image.png

    From this reference manual, we can see that it is an advertisement channel of BNO085, It confirms that the communication is established with the controller. I tried soft resetting BNO085 using

    shtpData[0] = 1;
        BNO085_send_packet(CHANNEL_EXECUTABLE, 1);  //CHANNEL_EXECUTABLE = 1, size = 1

     

    and I have turned the mode to 'ON' to take it out of sleep mode using

        shtpData[0] = 2; 
        BNO085_send_packet(CHANNEL_EXECUTABLE, 1);  //CHANNEL_EXECUTABLE = 1, size = 1

    When I try to read the Product_ID report using SHTP_REPORT_PRODUCT_ID_REQUEST(0xf9) I do not receive anything of the data rather the same thing as the above image.

    Here's a link of my I2C probing using logic analyser-> Waveforms

    What am I missing and how to read the correct data from BNO085?

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi RajTalashilkar,

    BNO085 is the product of CEVA Technologies, not the product from Bosch Sensortec.
    You can find Bosch sensortec product from https://www.bosch-sensortec.com/products.

    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