This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1352P: Help needed to use connection oriented channels of L2CAP

Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: CC2651R3, CC1352P7

Tool/software:

Hello TI experts,

I am using launchpad  CC1352P7 and CC2651R3.

SDK version - 7.41.0.17

I have Ble central code modified with simple serial socket code on CC1352P7 and project zero code on CC2651R3.

I am trying to implement data transfer with L2cap connection oriented channel example provided at below link

https://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_4_30_00_54/docs/ble5stack/ble_user_guide/html/ble-stack-common/l2cap.html#connection-oriented-channels-example 

Some part of code is working,

I am getting stack events generated "L2CAP_CHANNEL_ESTABLISHED_EVT"

But when after this when I call function

// Give max credits to the other side
bStatus_t status = -1;
status = L2CAP_FlowCtrlCredit(pEstEvt->CID, 0xFFFF);
if(status == SUCCESS)
{
UART2_printf("L2CAP_FlowCtrlCredit Success");
}
else
{
UART2_printf("L2CAP_FlowCtrlCredit error=%d",status);
}

I get error code as 0x18

 

Please help us to resolve this problem 

Thank you 

Dnyaneshvar Salve