android - Android和iOS之间通过蓝牙进行数据通信

标签 android ios bluetooth bluetooth-lowenergy ios-bluetooth

android 设备和 iOS 之间的通信使用 Bluetooth LE 非常简单,在这里我可以执行简单的命令和小的数据传输。 但是在通过蓝牙从 Android 设备到 iOS 应用程序的图像、视频、文档等大数据传输方面遇到了困难。

虽然 Android 到 android 的大数据传输是通过蓝牙套接字进行的,但无论如何我可以通过蓝牙实现图像和视频传输到 iOS 吗?

从很长一段时间以来,我一直在探索这个主题,但所有文档都说使用 iOS 是不可能的,有人可以阐明这种方法吗?...

最佳答案

一个原因可能是 iOS 有严格的电池使用政策。我从我们的应用程序团队了解到,当通过 BLE 为我们的外围设备之一进行固件更新时,他们需要限制 BLE 传输速度。如果他们不这样做,iOS 会在一段时间后终止该应用程序,因为它在较长时间内消耗了太多能量。

有关吞吐量的问题,请参见示例:

BLE peripheral throughput limit

Bluetooth BLE Android write to peripheral with max throughput

How can I increase the throughput of my BLE application?

简而言之,请查看连接间隔、MTU 大小以及可能的 BLE 数据包长度扩展。但也指出,根据我的经验,BLE 吞吐量通常低于 EDR 吞吐量。

关于android - Android和iOS之间通过蓝牙进行数据通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56232800/

相关文章:

user-interface - ViewPagerIndicator 突然不捕捉或显示寻呼机内容

android - Android 多用户支持(4.2 中新增)对服务器端数据模型(例如 android_id)的影响

javascript - uiwebview html表单上的图像压缩

ios - Action script 3.0 问题,我的 swf 无法卸载

ios - CLBeaconRegion 没有从终止调用 didEnterRegion

android - Arduino数字引脚高低输出似乎颠倒了

c# - 第二个 await 没有在方法中返回正确的值

android - Android CoordinatorLayout下FloatingActionButton不跳起来

ios - 使用 ios webView 播放视频时不调用 didEndDisplayingCell

iphone - iOS 7 的 CBCentralManager 更改