原则上,Android设备可以通过蓝牙/GameKit与iPhone进行接口吗?

时间:2022-06-03 18:53:07

(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.)

(我对纯理论不感兴趣,但作为一种实际的接近或中期的可能性,比如在12-24个月内。)

As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out which can spoof itself onto an iPhone app's GameKit-based network. It seems reasonable that a Bluetooth interface between platforms might square the opportunity to make useful applications, in the same way that modems benefited PC/Mac platforms via Metcalfe's Law.

作为一个熟悉(但不是专门研究)两种主要智能手机平台的开发人员,我是否应该期待Android库的出现,它可以在iPhone应用的基于gamekit的网络上欺骗自己。似乎合理的是,平台之间的蓝牙接口可能会减少开发有用应用的机会,就像调制解调器通过梅特卡夫定律使PC/Mac平台受益一样。

I am looking for one of two answers:

我在寻找两个答案中的一个:

  1. Is this obviously not likely (e.g. because of encryption)? If so, what is the reason? Is it possible in principle, but requiring years of reverse-engineering (like SMB/CIFS/Samba)? Or is it a no-brainer and just a matter of time? Please give evidence supporting your reason.

    这显然不太可能(例如,因为加密)?如果是,原因是什么?这在原则上是可能的,但是需要多年的逆向工程(比如SMB/CIFS/Samba)?还是说,这是一个显而易见的问题,只是时间问题?请提供支持你理由的证据。

  2. Is there an alternative way to have direct peer-to-peer networking besides GameKit? For example, a hand-rolled network using Bluetooth or ad-hoc WiFi? It would be nice to spoof an Android device into an existing iPhone app but my main question is, can the devices speak with each other at all!

    除了GameKit之外,还有其他的方式可以直接进行点对点网络吗?例如,使用蓝牙或特别WiFi的手摇网络?如果能在现有的iPhone应用程序中植入一个Android设备,那就太好了。但我的主要问题是,这些设备能互相交流吗?

7 个解决方案

#1


10  

Yes, it is possible. GameKit is a protocol using TCP and/or UDP over a BNEP Bluetooth connection. It also uses a trick to identify other iOS devices using the Extended Inquiry mechanism in Bluetooth 2.1+.

是的,这是可能的。GameKit是一个通过BNEP蓝牙连接使用TCP和/或UDP的协议。它还使用蓝牙2.1+中的扩展查询机制识别其他iOS设备。

I was able to simulate the EIR responses, now, someone needs to reverse engineer the GameKit protocol. This doesn't need Bluetooth, as it is also used for GameKit connections over WLAN.

我能够模拟EIR反应,现在,有人需要逆向设计GameKit协议。这并不需要蓝牙,因为它也用于通过无线局域网的GameKit连接。

If anybody can re-implment GameKit for WLAN connections, I can finish the Bluetooth version.

如果有谁可以重新请求WLAN连接的GameKit,我可以完成蓝牙版本。

#2


4  

No, and it wont come soon or even at all... Apple pride themselves with their security features, and bluetooth connections can access private data. There will probably not be any cross platform bluetooth framework until something is agreed upon by both companies.

不,它不会很快来,甚至根本不会来……苹果以其安全特性自豪,而蓝牙连接可以访问私人数据。在两家公司达成一致之前,可能不会有任何跨平台的蓝牙框架。

Bump as said by a previous answerer uses a remote server, and the data transferred is not via BT.

正如前面的回答所说,Bump使用远程服务器,传输的数据不是通过BT。

#3


1  

GameKit is Bonjour so a Bonjour (which is on IP) over Bluetooth on Android should work.

GameKit是Bonjour,所以一个Bonjour(在IP上)可以通过Android上的蓝牙运行。

#4


0  

That should be possible as Bluetooth is capable of setting up tcp/ip networks. Though I have no knowledge of the IPhone SDK whatsoever, but Android does have a BluetoothSocket and BluetoothServerSocket for TCP connections.

这应该是可能的,因为蓝牙能够设置tcp/ip网络。虽然我对IPhone SDK一无所知,但是Android确实有一个蓝牙套接字和蓝牙服务器套接字用于TCP连接。

#5


0  

This article, http://blog.moritzhaarmann.de/blog/2014/04/27/sorry-state-of-p2p/ written in 2014, suggest it is possible via Bluetooth LE. Available in Android 4.3+ and iOS6+

这篇文章(http://blog.moritzhaarmann.de/blog/blog/2014/04/27 /sorry-state-of-p2p/写于2014年)表明,通过蓝牙LE是可能的。可在Android 4.3+和iOS6+中使用

Two issues:

两个问题:

  • According to the Android Dashboard only around 30 percent of Android devices support Bluetooth LE https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net
  • 根据Android Dashboard的数据,只有大约30%的Android设备支持蓝牙,https://developer.android.com/about/dashboards/index.html?
  • Communication between Android-to-Android must be done using some other method (which is not a big problem) because Android devices cannot act as server for B LE connections.
  • Android与Android之间的通信必须使用其他方法(这不是什么大问题),因为Android设备不能作为服务器来进行B - LE连接。

#6


-3  

Bounjour on the iPhone gives you full access to all of the Bluetooth protocols, so you don't have to use GameKit. As for when someone will provide an easy to use iPhone to Android GameKit like framework - hard to tell.

iPhone上的Bounjour提供了对所有蓝牙协议的完全访问,因此您不必使用GameKit。至于什么时候有人会给Android GameKit提供一个简单易用的iPhone框架——这很难说。

An iPhone can already talk to any other Bluetooth device using Bonjour today.

如今,iPhone已经可以通过Bonjour与任何其他蓝牙设备通话。

-t

- t

#7


-5  

It is absolutely possible! In fact I am amazed that more people haven't done it!

这绝对是可能的!事实上,我很惊讶还有更多的人没有这么做!

Theory:

理论:

Bluetooth is just a wireless socket that you push data across and it comes across the other side, just like tcp/ip.

蓝牙只是一个无线套接字,你可以将数据推送到另一端,就像tcp/ip一样。

Practice:

实践:

http://www.techcrunch.com/2009/11/11/bump-goes-cross-platform-with-new-android-app-upgrades-iphone-version-too/

http://www.techcrunch.com/2009/11/11/bump-goes-cross-platform-with-new-android-app-upgrades-iphone-version-too/

Better yet, Bump is cross-platform, which means that you can bump an Android phone with an iPhone and it should work seamlessly.

更好的是,Bump是跨平台的,这意味着你可以用iPhone来碰撞Android手机,它应该可以无缝地工作。

#1


10  

Yes, it is possible. GameKit is a protocol using TCP and/or UDP over a BNEP Bluetooth connection. It also uses a trick to identify other iOS devices using the Extended Inquiry mechanism in Bluetooth 2.1+.

是的,这是可能的。GameKit是一个通过BNEP蓝牙连接使用TCP和/或UDP的协议。它还使用蓝牙2.1+中的扩展查询机制识别其他iOS设备。

I was able to simulate the EIR responses, now, someone needs to reverse engineer the GameKit protocol. This doesn't need Bluetooth, as it is also used for GameKit connections over WLAN.

我能够模拟EIR反应,现在,有人需要逆向设计GameKit协议。这并不需要蓝牙,因为它也用于通过无线局域网的GameKit连接。

If anybody can re-implment GameKit for WLAN connections, I can finish the Bluetooth version.

如果有谁可以重新请求WLAN连接的GameKit,我可以完成蓝牙版本。

#2


4  

No, and it wont come soon or even at all... Apple pride themselves with their security features, and bluetooth connections can access private data. There will probably not be any cross platform bluetooth framework until something is agreed upon by both companies.

不,它不会很快来,甚至根本不会来……苹果以其安全特性自豪,而蓝牙连接可以访问私人数据。在两家公司达成一致之前,可能不会有任何跨平台的蓝牙框架。

Bump as said by a previous answerer uses a remote server, and the data transferred is not via BT.

正如前面的回答所说,Bump使用远程服务器,传输的数据不是通过BT。

#3


1  

GameKit is Bonjour so a Bonjour (which is on IP) over Bluetooth on Android should work.

GameKit是Bonjour,所以一个Bonjour(在IP上)可以通过Android上的蓝牙运行。

#4


0  

That should be possible as Bluetooth is capable of setting up tcp/ip networks. Though I have no knowledge of the IPhone SDK whatsoever, but Android does have a BluetoothSocket and BluetoothServerSocket for TCP connections.

这应该是可能的,因为蓝牙能够设置tcp/ip网络。虽然我对IPhone SDK一无所知,但是Android确实有一个蓝牙套接字和蓝牙服务器套接字用于TCP连接。

#5


0  

This article, http://blog.moritzhaarmann.de/blog/2014/04/27/sorry-state-of-p2p/ written in 2014, suggest it is possible via Bluetooth LE. Available in Android 4.3+ and iOS6+

这篇文章(http://blog.moritzhaarmann.de/blog/blog/2014/04/27 /sorry-state-of-p2p/写于2014年)表明,通过蓝牙LE是可能的。可在Android 4.3+和iOS6+中使用

Two issues:

两个问题:

  • According to the Android Dashboard only around 30 percent of Android devices support Bluetooth LE https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net
  • 根据Android Dashboard的数据,只有大约30%的Android设备支持蓝牙,https://developer.android.com/about/dashboards/index.html?
  • Communication between Android-to-Android must be done using some other method (which is not a big problem) because Android devices cannot act as server for B LE connections.
  • Android与Android之间的通信必须使用其他方法(这不是什么大问题),因为Android设备不能作为服务器来进行B - LE连接。

#6


-3  

Bounjour on the iPhone gives you full access to all of the Bluetooth protocols, so you don't have to use GameKit. As for when someone will provide an easy to use iPhone to Android GameKit like framework - hard to tell.

iPhone上的Bounjour提供了对所有蓝牙协议的完全访问,因此您不必使用GameKit。至于什么时候有人会给Android GameKit提供一个简单易用的iPhone框架——这很难说。

An iPhone can already talk to any other Bluetooth device using Bonjour today.

如今,iPhone已经可以通过Bonjour与任何其他蓝牙设备通话。

-t

- t

#7


-5  

It is absolutely possible! In fact I am amazed that more people haven't done it!

这绝对是可能的!事实上,我很惊讶还有更多的人没有这么做!

Theory:

理论:

Bluetooth is just a wireless socket that you push data across and it comes across the other side, just like tcp/ip.

蓝牙只是一个无线套接字,你可以将数据推送到另一端,就像tcp/ip一样。

Practice:

实践:

http://www.techcrunch.com/2009/11/11/bump-goes-cross-platform-with-new-android-app-upgrades-iphone-version-too/

http://www.techcrunch.com/2009/11/11/bump-goes-cross-platform-with-new-android-app-upgrades-iphone-version-too/

Better yet, Bump is cross-platform, which means that you can bump an Android phone with an iPhone and it should work seamlessly.

更好的是,Bump是跨平台的,这意味着你可以用iPhone来碰撞Android手机,它应该可以无缝地工作。