Communicating between iOS and Android with Bluetooth LE

后端 未结 6 597
遥遥无期
遥遥无期 2020-11-28 18:15

I\'ve got a working app using CoreBluetooth to communicate between an iPad (central) and iPhone (peripheral). I have one service that has two characteristics. I have a Nexus

6条回答
  •  自闭症患者
    2020-11-28 18:44

    I've already gone through this for at least one week having this same issue. I've already asked a question here and I've already answered on my own. The main problem is an Android BUG issue. It's sending a non permitted command on a fixed L2CAP channnel.

    But when Android is communicating with normal peripheral BLE devices, it works pretty well. In fact, the BLE sample works like a charm. The problem is when is comunicating with an iOS device for example: Just after the connection is made, they start negotiating their connection parameters (this phase doesn't happen with normal BLE peripheral), and this is when the problem comes up. Android sends a bad command to iOS, iOS drops the connection. That's basically how it works

    Some issues have been already reported to Google, and one of them have been already accepted and I hope they will start working on it soon.

    Unfortunately, what you can do, is to wait until next Android release. Anyway, I highly suggest you to have a look at my issue report with all my test documents if you want to make some light on this problem.

    Here's the link: https://code.google.com/p/android/issues/detail?id=58725

提交回复
热议问题