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.

[参考译文] CC2650MODA:GATT 服务发现失败

Guru**** 2564260 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/642894/cc2650moda-gatt-service-discovery-fails

器件型号:CC2650MODA

您好!

我目前正在基于简单的外设和中央项目构建 BLE 应用。

有时、在断开并重新连接外围设备和中央设备后、为响应我的 GATT_DiscPrimaryServiceByUUID 调用而收到的 ATT_find_By_TYPE_Value_RSP 消息的状态为 numInfo = 0、其状态既不是 bleProcedureComplete、也不是 bleTimeout、服务发现停止。 这可能是由什么原因引起的?

谢谢你。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    GATT_DiscPrimaryServiceByUUUUUUUUID()过程可以通过以下两种方式之一完成:

    ATT_find_BY_TYPE_Value_RSP (具有 bleProcedureComplete 或 bleTimeout 状态)
    ATT_ERROR_RSP、带有 errRsp.reqOpcode = ATT_find_BY_TYPE_Value_RSP

    您是否正在检查代码中的案例#2? 此外、您能否提供监听器捕获功能、以便我们可以查看器件之间通过无线方式发送的内容?