1

We are trying to make an device which can connect to another device running BT and BLE application. Our device is running android kitkat. We are facing following issue.

Once we connect using BT (stream songs over BT) , BLE application running on the same device (that is streaming music) is not detected in BLE scan.

But is detected by other devices (phones in the vicinity).

When we connect using BLE and do some data transfer then connect BT and stream music fromt the same device then both work fine.

Only when we connect to BT first we are not able to detect BLE app running on same device.

Has anyone faced this issue before?

After checking the logs it seems device (Android) does get advertisement packets from BLE app running on another device (iOS) but not the scan response packets. So it keeps waiting for scan response packet. I tried looking for scan request function but couldn't find it.

4

1 回答 1

0

我从android堆栈的调试日志中弄清楚了。Stack 没有报告它在 BT 流式传输到应用程序期间收到的广告。它一直在等待扫描响应数据包。我在堆栈中启用了此数据包的报告,现在能够扫描并连接到运行 iOS 的 BLE 应用程序,同时通过 BT 从同一 iOS 设备流式传输音乐。

不过有一个谜团,我无法弄清楚为什么 iPhone 在通过 BT 流式传输时不发送扫描响应。如果我弄明白了会更新。

于 2015-02-27T11:12:53.757 回答