工具/软件:TI-RTOS
您好!
在本论坛中、我们有关于 L2CAP CoC 示例的问题。 您的答案是、由于智能手机支持缺失、您看不到这种需求。
我认为可以肯定的是、这已经发生了变化。 iOS 自 iOS 11.0起支持 CoC。 Android 包括自8.0以来的第一个(非常基本)支持。
和:AFICT L2CAP CoC 显然为表提供了一些缺失的功能、使其更适合使用基于 GATT 的通信方案、即必须在 GATT/ATT 之上实现的数据分段和流控制。
所以有2个问题:
1. 使用 CoC 的 L2CAP 应用程序是否完全可以用于 cc2640r2? 在_sdk_2_20_00_49中、缺少几个部分(标记为目前不可用、显然未实现)
/*以下 API 目前不可用*/ #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_HostNumCompletPkts(...) (AssertHandler (0、0))
2.对于如何使用 l2cap API 建立 L2CAP CoC 和传输数据、有什么建议?