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

about maximum throughput of nrf51822

Hi,

I tried to use nrf51822 to update light intensity of 64 area to smartphone and then the smart phone will display those light intensity values in gray scale. I want make the data transmit as fast as it can. therefore I set the max connection interval to 10ms and min connection interval to 7.5ms. But the phone stop updates the data after a few second. I wonder is the bug from the ble or from the smart phone apps.

Also, I wonder how small the interval can be set.

Parents
  • Wait are you GAP Peripheral or Central? And GATT server or client on top of that? Normally you simply push as many packets to the GATT layer of SoftDevice as possible (typically by using sd_ble_gatts_hvx or sd_ble_gattc_write function) - until you get BLE_ERROR_NO_TX_PACKETS error instead of NRF_SUCCESS. Then you simply wait for BLE_EVT_TX_COMPLETE event in your SoftDevice event handler and continue with the procedure (again until you are done or you get another BLE_ERROR_NO_TX_PACKETS). Packets are then utilized over connection intervals automatically by the SoftDevice and it of course depends on capabilities of both sides of a link. Again you can easily see all this if you plug BLE sniffer and read the trace.

Reply
  • Wait are you GAP Peripheral or Central? And GATT server or client on top of that? Normally you simply push as many packets to the GATT layer of SoftDevice as possible (typically by using sd_ble_gatts_hvx or sd_ble_gattc_write function) - until you get BLE_ERROR_NO_TX_PACKETS error instead of NRF_SUCCESS. Then you simply wait for BLE_EVT_TX_COMPLETE event in your SoftDevice event handler and continue with the procedure (again until you are done or you get another BLE_ERROR_NO_TX_PACKETS). Packets are then utilized over connection intervals automatically by the SoftDevice and it of course depends on capabilities of both sides of a link. Again you can easily see all this if you plug BLE sniffer and read the trace.

Children
No Data
Related