Automatic BLE disconnect-connect - Windows10, Android

萝らか妹 提交于 2019-12-11 15:50:55

问题


When I try to reconnect, immediate and automatic [disconnect-connect-disconnect-...] happens before they truly connect and read/write/subscribe.


  • PC: Windows10(1903), using CSR 4.0 dongle + UWP app for BLE pairing/connection

  • Mobile: LG V40, Galaxy Note5, LG X Power, Galaxy S9+, Galaxy S10

V40 ALMOST ALWAYS: automatic quick discon-con happens 10 times or more

S10 ALMOST ALWAYS: similar to V40. *First connection (step 3 below) doesn't work. Takes forever to find the services that I get timeout disconnect.

Note5 HALF OF THE TIME: similar to V40

The above 3 devices sometimes never truly connects (I waited 70 times and just disconnected by myself)

X Power SOMETIMES: usually less than 10 times

S9+ RARELY: similar to X Power


Here are the etl files I traced bluetooth logs.

  • Please refer to V40 and Note5 logs (IGNORE X Power; I traced it for different issue)

I want to know if mobile does it or PC does it or both and HOW TO FIX THIS ISSUE (if I can...)

Any help is appreciated!!


More Info. Just in Case:

  1. Client(PC) searches for the Server(Mobile)

  2. Pair

  3. Connect (reading/writing/subscribing notification works PERFECTLY)

  4. Disconnect (Unsubscription done before disposing)

  5. Connect (automatic and quick [discon-con-discon-con-discon-...] happens before they truly connect that PC can write/subscribe so on)

来源:https://stackoverflow.com/questions/59062163/automatic-ble-disconnect-connect-windows10-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!