Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BLE accelerometer data ErrorCode78

    hemanthm
    New Poster

    BLE accelerometer data ErrorCode78

    Hi,

    I have tried to modify "SendAccelerometerDataOverBle" to send data every 10ms (100Hz) / even 5ms (200Hz) and encountered ErrorCode78 - probably because the frequency of the data from accelerometer was less compared to the data output rate(?)

    I have separatly initialized BMA280 sensor at 500Hz (even at other frequencies), but I still face the same ErrorCode. Could someone suggest me where I am going wrong?

    Expected output - BLE data transfer at 100Hz/200Hz

    Settings:

    APP_CONTROLLER_BLE_SEND_TIMEOUT_IN_MS UINT32_C(10)

    APP_CONTROLLER_BLE_TX_DELAY UINT32_C(10)

    ACCELEROMETER_BMA280_BANDWIDTH_500HZ

    Really appreciate your help?

    Tags (3)
    1 REPLY 1
    LlobetAtWork
    Long-established Member

    Re: BLE accelerometer data ErrorCode78

    Hi hemanthm,

    the packet rates 10ms or 5ms are not supported by BLE. 
    The time between packets in BLE is called connection interval and this is limited, for example in iOS to 15ms (https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf) . Also due to thermal management and duty-cycling, every 4 packets there will be a  larger pause between packets.

    The recomendation to increase payload (up to a certain point) is to pack the most amount of data points into the characteristic's payload.
    Besides that, BLE is usually not the recomended physical layer for high-troughput telemetry.

    Best regards,

    Francisco Llobet

    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