This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Stream data over nRF52 Example?

Hello, I would like to stream sensor data from the Bosch IMU sensor over BLE at a maximum rate. I can collect data over I2C from the sensor but would like to know if there is an example that I can use for a template to stream the data to an iPhone. I understand that HID type transfer mode will provide the fastest transfer rate where up to four 20 byte block transfers can occur in a single transfer interval (of 11.25 mS) achieving an effective transfer rate up to about 7KBytes per second.

Is there an example in the SDK for HID or other type of example that will get me started with a template to connect with streaming data?

I understand that using UART mode for radio transfer will not achieve very good data rates. Can it be adapted to transfer multiple 20 byte records in a single interval to improve the effective data rate?

Can the heart rate example application be used as template for achieving a high effective data rate?

Regards, GaryD

Parents
  • Thank you for the suggestion. Can you also tell me which example(s) are in the SDK 11.0.0 that provide HID capability?

    I am also looking at the board configuration files nrf_drv_config.h. Does the following code in the .h file indicate that the I2C pins are attached to GPIO 26 and GPIO 27? I would like to know if I am interpreting the information correctly.

    #if (TWI0_ENABLED == 1)
    #define TWI0_USE_EASY_DMA 0
    
    #define TWI0_CONFIG_FREQUENCY    NRF_TWI_FREQ_100K
    #define TWI0_CONFIG_SCL 0x1b
    #define TWI0_CONFIG_SDA 0x1a
    #define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
    
    #define TWI0_INSTANCE_INDEX      0
    #endif
    

    Regards, GaryD

Reply
  • Thank you for the suggestion. Can you also tell me which example(s) are in the SDK 11.0.0 that provide HID capability?

    I am also looking at the board configuration files nrf_drv_config.h. Does the following code in the .h file indicate that the I2C pins are attached to GPIO 26 and GPIO 27? I would like to know if I am interpreting the information correctly.

    #if (TWI0_ENABLED == 1)
    #define TWI0_USE_EASY_DMA 0
    
    #define TWI0_CONFIG_FREQUENCY    NRF_TWI_FREQ_100K
    #define TWI0_CONFIG_SCL 0x1b
    #define TWI0_CONFIG_SDA 0x1a
    #define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
    
    #define TWI0_INSTANCE_INDEX      0
    #endif
    

    Regards, GaryD

Children
No Data
Related