通过蓝牙传输iOS和Android之间的数据? [英] Transfer data between iOS and Android via Bluetooth?

查看:802
本文介绍了通过蓝牙传输iOS和Android之间的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经读了有关如何使用的GameKit蓝牙传输iOS设备之间传输数据。我不写一个游戏,本身,而是确实有需要两个设备之间传输少量的二进制数据。两人之间的ISO设备,这是很容易做到。不过,我想知道是否有可能通过同样的机制在iOS设备和Android设备之间传送数据。

I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between two devices. Between two iSO devices, this is easy enough. However, I was wondering if it is possible to transfer data between an iOS device and an Android device via the same mechanism.

有没有人碰到文档/教程将介绍如何做到这一点?它甚至技术上是可行的?或者有苹果放在某种形式的限制,将prevent这一点?

Has anyone come across documentation/tutorial that would explain how to do this? Is it even technically possible? Or has Apple put in some sort of restriction that would prevent this?

我发现了另一种选择是卓悦通过蓝牙。这会是一个比较合适的选择这种类型的操作

The other option I discovered was Bonjour over Bluetooth. Would this be a more suitable option for this type of operation?

推荐答案

这个问题已经被问了很多次在本网站的明确答案是:否,你不能在Android手机连接到iPhone上蓝牙是苹果公司的限制prevent这一点。

This question has been asked many times on this site and the definitive answer is: NO, you can't connect an Android phone to an iPhone over Bluetooth, and YES Apple has restrictions that prevent this.

一些可能的备选方案:

  1. 在卓悦通过WiFi,正如你所说。但是,我找不到一个COM prehensive教程吧。
  2. 在一些基于互联网的同步服务,如Dropbox的,谷歌驱动器,亚马逊的S3。这些通常有库可用于多种平台。
  3. 通过套接字
  4. 直接TCP / IP通信。在iOS中(如何写一个小(插座)服务器
  5. 低功耗蓝牙将有可能曾经对Android端的问题都解决了(<一href="http://stackoverflow.com/questions/18410081/communicating-between-ios-and-android-with-bluetooth-le">Communicating iOS和Android与蓝牙LE )之间
  1. Bonjour over WiFi, as you mentioned. However, I couldn't find a comprehensive tutorial for it.
  2. Some internet based sync service, like Dropbox, Google Drive, Amazon S3. These usually have libraries for several platforms.
  3. Direct TCP/IP communication over sockets. (How to write a small (socket) server in iOS)
  4. Bluetooth Low Energy will be possible once the issues on the Android side are solved (Communicating between iOS and Android with Bluetooth LE)

<打击> 最酷的替代:使用凹凸API 。它有iOS和Android的支持,真的很容易整合。对于小型有效载荷这可能是最方便的解决方案。

Coolest alternative: use the Bump API. It has iOS and Android support and really easy to integrate. For small payloads this can be the most convenient solution.

为什么你不能任意的设备连接到iPhone的详情。的iOS允许在不使用只有一些蓝牙配置文件的iPhone专用(MFI)认证( HPF,A2DP,地图... )。该串行端口配置文件,你将需要实现通信势必小额信贷机构的成员。会员这个程序为您提供到的 MFI认证模块的,有被添加到您的硬件,并采取认证对iPhone设备的照顾。 Android手机没有这个模块,所以即使物理连接可能建立,认证步骤将失败。 iPhone到iPhone的通信是可能的两端都能够进行身份认证。

Details on why you can't connect an arbitrary device to the iPhone. iOS allows only some bluetooth profiles to be used without the Made For iPhone (MFi) certification (HPF, A2DP, MAP...). The Serial Port Profile that you would require to implement the communication is bound to MFi membership. Membership to this program provides you to the MFi authentication module that has to be added to your hardware and takes care of authenticating the device towards the iPhone. Android phones don't have this module, so even though the physical connection may be possible to build up, the authentication step will fail. iPhone to iPhone communication is possible as both ends are able to authenticate themselves.

这篇关于通过蓝牙传输iOS和Android之间的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆