Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BNO055 unable to read multiple bytes continuously in I2C at 400Khz or 100Khz

    BNO055 unable to read multiple bytes continuously in I2C at 400Khz or 100Khz

    Nithinhs
    New Poster

    In my application we have used BNO055 as 1 of the peripherals along with other 2 peripherals, where I'm not able to do multiple bytes read and write continuously.Whereas I'm able to read and write multiple bytes for other two peripherals continuously.

    Ex:- Magnetometer is set to 30Hz bandwidth,  AccMag mode is set and I2C is kept at 400Khz or 100Khz.

    Whenever the device which contains the BNO055 is kept stable I'm able to read the data continuously even while the multiple byte read method is used.

    When the device is moved little I don't get the data continuous instead there will be no proper transactions in the bus, not only the Magnetometer readings im not able to read the chip Id and next bytes in the multibyte read method.

    As the number of bytes read increases the transactions on the bus ceases.Ex:- If 2 byte read i get most data if it increases to 4 bytes the continuous data read ceases.

    But if a single byte read is performed I'm able to read the data at 30Hz frequency.

    5 REPLIES 5

    Vincent
    Community Moderator
    Community Moderator

    Please see the logic analyzer result i captured with APP2.0 for BNO055 ACCMAG mode and sensor is in motion status. 

    From the plotter,  you can see the multiple reads are correct. 

    The address is 0x28 also when i capture the plotter. 

    When i open your plotter of non-countious,  i saw the following pattern.  after first reading,  the sensor already send ACK.  this means slave already release the I2C bus.  but host didn't send new clock.  Instead of it,  both SDA and SCL are pull to high at the end. 

    Clock stretch is slave hold SCK to low until it is ready.  you can also see in your log,  the ACK will be sent from slave quite long time after sending last bit of registers.  then host directly start next clock for reading. 

    Also after first byte get ACK,  next clock comes with a new START signal for reading from address 0x73 with NAK (280 ms later) twice,  then go back to 0x28 (BNO055 address).  

    Can you check if you have any other high pirority interrupt with I2C bus communication at your platform?

    Vincent_0-1603141124213.png

     

    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