Tool/software: TI-RTOS
Hello,
there have been questions regarding L2CAP CoC examples in this forum. Your answer has been that you don't see the need in light of missing smartphone support.
I think it's safe to say that this has changed. iOS supports CoC since iOS 11.0. Android includes the first (very basic) support since 8.0.
and: AFAICT the L2CAP CoC clearly bring some missing features to the table that will make it preferable to using a GATT based communication scheme, namely data-segmentation and flow control which has to be implemented on top of GATT/ATT.
so 2 questions:
1. are L2CAP applications using CoC possible at all for the cc2640r2? in the _sdk_2_20_00_49 there are a couple of pieces missing (marked as not available for now and clearly not implemented)
/* the following API are not available for now */ #define L2CAP_CmdReject(...) (icall_directAPI(ICA... #define L2CAP_ConnParamUpdateRsp(...) (icall_directAPI(ICA... #define L2CAP_SetUserConfig(...) (icall_directAPI(ICA... #define L2CAP_SetBufSize(...) (icall_directAPI(ICA... #define L2CAP_GetMTU(...) (icall_directAPI(ICA... #define L2CAP_RegisterApp(...) (AssertHandler(0,0)) #define L2CAP_SendData(...) (AssertHandler(0,0)) #define L2CAP_SetControllerToHostFlowCtrl(...) (AssertHandler(0,0)) #define L2CAP_HostNumCompletedPkts(...) (AssertHandler(0,0))
2. any advice on how to use the l2cap API to establish a L2CAP CoC and transmit data?