Bosch Sensortec Community

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

    BHI260 - FIFO data format - descriptor and block header issues

    BHI260 - FIFO data format - descriptor and block header issues

    btruden_henway
    Long-established Member

    Hi, 

    I'm working with a BHI260 chip and now I'm developing the FIFO reading feature on my host device which communicates to the BHI over SPI.

    Issue 1

    Based on the chip's datasheet section 14 (FIFO Data Formats), after getting the FIFO length I'm supposed to get the delta timestamp. According to the datasheet the delta timestamp it's all filled with zeros (16 bits).

    btruden_henway_1-1631542712742.png

    I'm getting the following:

    btruden_henway_0-1631543474846.png

     

    Am I missing something?

    Issue 2

    Again, based on the chip's datasheet section 14 (FIFO Data Formats), in the Block Header and after the "Spacer" Meta Event I'm supposed to get a full timestamp 40 bits of length (5 Bytes).

    btruden_henway_2-1631542857199.png

    But in my case I see that the timestamp is 48 bits length (6 Bytes):

    btruden_henway_3-1631543217273.png

    Am I missing something?

    Thanks!

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hello btruden_henway,

    We would like to know some information from you first.
    1. Did you use BHI160AB or other sensor part?
    2. Which driver and FW you used?
    3. Could we know your application code?

    btruden_henway
    Long-established Member

    Hi Robin,

    1) Yes, I use the BHI160AB.

    2) I'm using the firmware Bosch_SHUTTLE_BHI260.fw (RAM image). What do you mean by the driver? the one that is running on the host MCU? If that's the question the driver running on the host MCU was entirely written by me.

    3) Application code (the driver running on the host MCU): https://drive.google.com/file/d/1h9p5VOSGRplQwA7WTCoEJ5FSb

    Thanks!

    Hello btruden_henway,

    1.Please refer the delta timestamp format in Table79: Overview of FIFO Event IDs in BHI260 datasheet. From the wave in SPI bus, the delta timestamp is 0xF4 0x00 where 0xF4 is the wake-up Timestamp Small Delta ID and 0x00 is the value.

    image-2021-11-05-11-00-58-129.png

    2.With the above table, we can see the Full Timestamp has 6 bytes in FIFO including the event ID. In the SPI wave, 0xF7 is the wake-up FIFO event ID of full timestamp and the following 5 bytes are timestamp value.

    btruden_henway
    Long-established Member

    Excellent! thanks!

    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