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

data transfer over BLE using S130

Hello, I am building a sample protocol using nRF51822 DK. I am using S130 soft device. I have a few BLE nodes communicating with each other. The nRF51 DK acts as these nodes and hence, I have full control over all these nodes . I have some doubts regarding data transfer.

  1. Whether writing data to a characteristics is the only means of data transfer? Is there any API available that will send data directly?
  2. Whether S130 supports access to L2CAP layer? If so, can I have the ful control of the packet structure that is over BLE? What will be an efficient way for device to device data transfer??

Please forgive me if I am asking stupid things..

Parents
  • Hi Anjaly,

    You can use sd_ble_l2cap_tx() to send and BLE_L2CAP_EVT_RX event to catch RX event. Doing this you can save 3 bytes (for ATT opcode, handle ID) in the L2CAP payload to transfer data. Please have a look at ble_l2cap.h

    But you should be aware that you won't be able to use that to send data to a phone because it's your custom L2CAP channel.

    Also, we are planing to change the APIs in S130 v2.0 (not to remove, but change) so you may need to update it when we come to the new S130 version.

Reply
  • Hi Anjaly,

    You can use sd_ble_l2cap_tx() to send and BLE_L2CAP_EVT_RX event to catch RX event. Doing this you can save 3 bytes (for ATT opcode, handle ID) in the L2CAP payload to transfer data. Please have a look at ble_l2cap.h

    But you should be aware that you won't be able to use that to send data to a phone because it's your custom L2CAP channel.

    Also, we are planing to change the APIs in S130 v2.0 (not to remove, but change) so you may need to update it when we come to the new S130 version.

Children
Related