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

Does s112 have nrf_ble_gatt_data_length_set()

Hi,

I am trying s112 on pca10040 with SDK16.0.

I found that I can't build the app whenever I use the "nrf_ble_gatt_data_length_set()" api... does this mean that s112 don't support this API?

If yes, how can we increase the throughput by changing other parameters that s112 allows? Please share the specific api name if that is available.

Regards,

yf13

Parents
  • Hi,

    I found that I can't build the app whenever I use the "nrf_ble_gatt_data_length_set()" api... does this mean that s112 don't support this API?

    Correct. S112 does not support DLE. If you want DLE on nRF52832 you need to use S132 or S113.

  • Thanks for the confirmation.

    Before moving to S132, I am wondering if s112 peripheral can have higher notification throughput by adjusting some other parameters?

    For example, does s112 supports "Connection length extension", if yes, which api can help enable it?

  • Throughput numbers for S112 can be found at this link.

    You will get higer throughput with S132 since that supports DLE(larger on-air packets). So if high throughput is needed I recommend S132. 

    yf13 said:
    For example, does s112 supports "Connection length extension", if yes, which api can help enable it?

     Yes. See this snippet on how to enable it:

    void conn_evt_len_ext_set(void)
    {
        ret_code_t err_code;
        ble_opt_t  opt;
    
        memset(&opt, 0x00, sizeof(opt));
        opt.common_opt.conn_evt_ext.enable = 1;
    
        err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_EVT_EXT, &opt);
        APP_ERROR_CHECK(err_code);
    }

  • Thanks for all the help. I now can run my custom GATT service with both s112 and s132 soft devices on pca10040.

    However, the biggest throughput I can achieve is about 8KB/s with Android test devices such as Nexus 7 tablet and Redmi4X phone. I found even s132 has API to change data length from 27 to 251, but actual data length I got is always 27 with my Android devices. perhaps those Android devices doesn't support DLE. Clearly they all only support 1Mbps PHY.

    I will create another ticket later on throughput result later when necessary.

Reply
  • Thanks for all the help. I now can run my custom GATT service with both s112 and s132 soft devices on pca10040.

    However, the biggest throughput I can achieve is about 8KB/s with Android test devices such as Nexus 7 tablet and Redmi4X phone. I found even s132 has API to change data length from 27 to 251, but actual data length I got is always 27 with my Android devices. perhaps those Android devices doesn't support DLE. Clearly they all only support 1Mbps PHY.

    I will create another ticket later on throughput result later when necessary.

Children
No Data
Related