LP-EM-CC2340R53: [BLE 6.0 CS DKC]CC2340 key node L2CAP API L2CAP_SendSDU() returns error code 0x14( bleNotConnected: Connection or Channel is down) issue

Part Number: LP-EM-CC2340R53

Tool/software:

Hi,Ti

*SDK:9.11.00.18

Currently, we need to transmit button events and battery voltage data via BLE  from CC2340R53 (keynode demo code) to CC2745R10_Q1. For this purpose, we are using the L2CAP_SendSDU() API to transmit button events and battery voltage data (once every second), while the existing L2CAPCOC_sendSDU() in the keynode demo code is used to transmit CS results. After transmitting data for about 5 minutes, L2CAP encounters an error and returns the result Error code 0x14( bleNotConnected: Connection or Channel is down). At this point, the Bluetooth connection remains intact, but the L2CAP channel is closed and cannot transmit data anymore. We then call L2CAPCOC_connectReq() to establish the L2CAP channel after it has been closed. The CC2745 has already received the data sent from CC2340, but the L2CAP channel still gets closed after sending. We call L2CAP_SendSDU() to send button/battery information and CS demo code L2CAPCOC_sendSDU() to send CS results. Could this cause conflicts or lead to stack overflow? Is this anomaly related to Known Issues ID: BLE_LOKI-3428? What could be causing this abnormal phenomenon of the L2CAP channel being closed and unable to transmit data?

Best Regards,

Burt

  • Hello Burt,

    Thank you for reaching out! This is certainly strange behavior. I suspect this issue may be because you're calling L2CAPCOC_sendSDU(), while it's being called by the keynode demo as well. I would recommend adding some form of protection to prevent this from happening (semaphores, or conditional statements).

    Please let me know if your problem persists! I hope this helps!

    Best Regards,

    Tarek D