为什么 Android Wear 蓝牙会在一段时间后断开连接 - btm_sec_disconnected?
Why does Android Wear bluetooth disconnect after some time - btm_sec_disconnected?
我正在为 android wear Android Wear 4.4W 开发一个 android 应用程序。我正在通过智能手表中的 USB 直接调试应用程序(这就是我想要的方式 - phone 上没有配套应用程序)。该应用程序每 10 毫秒接收一次蓝牙消息。 10-20 秒后,抛出此错误 -
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
我尝试按照此处所述发送 "keep alive" 消息-
Application using bluetooth SPP profile not working after update from Android 4.2 to Android 4.3 ,但这也不起作用。
我是否犯了任何错误或有任何解决此问题的方法?
好的,找到答案了。由于某些电路问题,外部蓝牙模块不断自行重置。重置导致连接暂时丢失。
我正在为 android wear Android Wear 4.4W 开发一个 android 应用程序。我正在通过智能手表中的 USB 直接调试应用程序(这就是我想要的方式 - phone 上没有配套应用程序)。该应用程序每 10 毫秒接收一次蓝牙消息。 10-20 秒后,抛出此错误 -
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
我尝试按照此处所述发送 "keep alive" 消息- Application using bluetooth SPP profile not working after update from Android 4.2 to Android 4.3 ,但这也不起作用。
我是否犯了任何错误或有任何解决此问题的方法?
好的,找到答案了。由于某些电路问题,外部蓝牙模块不断自行重置。重置导致连接暂时丢失。