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

How to set the number of packets for one communication

OS in development environment :Windows7
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
Soft Ver:nRF5_SDK_15.3.0_59ac345


Please tell me how to set the number of communication packets in one cycle of BLE communication setting.
The current setting conditions are described below.
/* Communication cycle: 15ms to 30ms */
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_1_25_MS) /**< Minimum acceptable connection interval (15 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(30, UNIT_1_25_MS) /**< Maximum acceptable connection interval (30 ms), Connection interval uses 1.25 ms units. */
/* Data length: 247byte */
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
How many packets can be configured under this condition?

Parents
  • You can calculate the amount of packets by using the formula given in chapter 17 in the S132 SofDevice Specification:

    Check the maximum throughput in the table for your ATT_MTU, event length and conn. interval, and calculate the num_packets based on that.

    Also, if you want to get a more accurate answer, read and understand this article, where a formula is presented and explained, that lets you calculate the number of packets in a connection interval.

    If anything is unclear, please tell me, and I will explain it in more details.

    Best regards,

    Simon

Reply
  • You can calculate the amount of packets by using the formula given in chapter 17 in the S132 SofDevice Specification:

    Check the maximum throughput in the table for your ATT_MTU, event length and conn. interval, and calculate the num_packets based on that.

    Also, if you want to get a more accurate answer, read and understand this article, where a formula is presented and explained, that lets you calculate the number of packets in a connection interval.

    If anything is unclear, please tell me, and I will explain it in more details.

    Best regards,

    Simon

Children
No Data
Related