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

can s130 1.0.0 send multiple packets per connect interval ?

hi,

1.I find some same issues on website, most of them can send more than 1 packet per connection interval up to 6 packets, but I'm not sure what version of sofedevice they use. Can s130 1.0.0 supports mulitple packets per interval time?

now, conn_params is

ble_gap_conn_params_t conn_params =
{
	6,
	6,
	0,
	100
};

connect interval is 7.5ms.

When press a button, following code is executed

  for(cnt = 0; cnt < 3; cnt++)
    {
        errcode = sd_ble_gattc_write(conn_handle, &write_param);
        if(NRF_SUCCESS != errcode)
        {
             printf("gattc write error\n");
        }
    }

cnt < 3 (sd_ble_tx_buffer_count_get() return 3)

2.but these 3 packets took 3 intervals. why? image description

3.after sd_ble_gattc_write() was called 3 times, I got BLE_EVT_TX_COMPLETE evt 3 times. why?

Best Regards!

Parents
  • You can see the BLE data throughput for the S130 SoftDevice here.

    Edit 07.07.2015: As you can see from the tables it depends your device is acting as a peripheral or a central.

    It seems you are acting as a central, with a GATT client that are sending write commands. From Table 2 you can see that if you are connected to one peripheral and you are using write commands you can achieve a maximum data throughput of 21.3 kbps. You can achieve this with a connection interval of 7.5 ms, 1 packet per connection interval, and 20 B (160 bit) payload.

    160 * 1 /0.0075 = 21333.3 bps = 21.3 kbps.

  • hi, Peter, thanks for your reply. I have seen this chapter before, i want to know is there exactly number of packets s130 1.0.0 can send per connect interval? assume connect interval is 7.5ms, send 20 bytes per packet.

    thanks!

Reply Children
No Data
Related