【问题标题】:Why does Android Wear bluetooth disconnect after some time - btm_sec_disconnected?为什么一段时间后 Android Wear 蓝牙断开连接 - btm_sec_disconnected?
【发布时间】:2015-06-17 00:05:52
【问题描述】:

我正在为 android wear Android Wear 4.4W 开发一个 android 应用程序。我正在通过智能手表中的 USB 直接调试应用程序(这就是我想要的方式 - 手机上没有配套应用程序)。该应用程序每 10 毫秒接收一次蓝牙消息。 10-20s后,抛出此错误-

01-01 21:10:22.683 E/bt-btm  (  826): btm_sec_disconnected - Clearing Pending flag
01-01 21:10:22.686 W/bt-btif (  826): invalid rfc slot id: 4

我基本上是在使用这个代码-How to receive serial data using android bluetooth

我尝试发送此处提到的“保持活力”消息- Application using bluetooth SPP profile not working after update from Android 4.2 to Android 4.3 ,但这也不起作用。

我是否有任何错误或任何解决此问题的方法?

【问题讨论】:

    标签: android bluetooth wear-os


    【解决方案1】:

    好的,找到答案了。由于某些电路问题,外部蓝牙模块不断自我重置。重置导致连接暂时丢失。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-29
      • 2015-10-30
      • 2015-12-18
      • 1970-01-01
      • 2015-12-27
      • 1970-01-01
      相关资源
      最近更新 更多