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
  • I don't think TWI0_CONFIG_SCL or TWI0_CONFIG_SDA used any where else in the code. If you have a look at the twi_config() function in main.c you can find that SCL and SDA pin was configured to ARDUINO_SCL_PIN (27) and ARDUINO_SDA_PIN (26) .

    It's important what you configured in the parameter you pass to in APP_TWI_INIT(). Those configured with that call will be used.

Reply
  • I don't think TWI0_CONFIG_SCL or TWI0_CONFIG_SDA used any where else in the code. If you have a look at the twi_config() function in main.c you can find that SCL and SDA pin was configured to ARDUINO_SCL_PIN (27) and ARDUINO_SDA_PIN (26) .

    It's important what you configured in the parameter you pass to in APP_TWI_INIT(). Those configured with that call will be used.

Children
No Data
Related