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

L2CAP sd_ble_l2cap_tx running out of buffer

FormerMember
FormerMember

Hi all, I am trying to send and receive generic data from the L2CAP layer. So, initially I am just trying to send data with sd_ble_l2cap_tx with S110. The code that I am using is attached. In it the timer handler is executed every second where the a L2CAP packet is to be transmitted, but not as the sniffer doesn't sniff any packets. The UART output through printf that I am getting is

Count:7 Count:7 Count:7 Count:7 Count:7 Count:7 Count:7 Count:7 Error of 3003 at 139 in src/main.c Error of 4 at 340 in src/SDK/app_timer.c Why is the count of the sd_ble_tx_buffer_count_get always 7, but on the 8th call of sd_ble_l2cap_tx, it complains that it has run out of buffers?

Also when two devices are communicating through the L2CAP layer, should one device have central soft device (S120) and the other peripheral (S110)?

Thanks a ton, Prithvi

main.c

Parents
  • Hi there,

    Thanks Carles for your detailed answer. So, right now is there software or binary with which two nrf51822 ICs communicate with each other through L2CAP layer? Can two devices with S110 communicate with each other from L2CAP layer?

    No, right now you cannot send arbitrary L2CAP data between 2 nRF51 ICs. But you can define your own custom protocol on top of GATT, and that is indeed fully supported by both the S110 and S120.

    Carles

Reply
  • Hi there,

    Thanks Carles for your detailed answer. So, right now is there software or binary with which two nrf51822 ICs communicate with each other through L2CAP layer? Can two devices with S110 communicate with each other from L2CAP layer?

    No, right now you cannot send arbitrary L2CAP data between 2 nRF51 ICs. But you can define your own custom protocol on top of GATT, and that is indeed fully supported by both the S110 and S120.

    Carles

Children
No Data
Related