IPhone与非IOS设备的蓝牙连接 [英] IPhone Bluetooth Connectivity to Non IOS Devices

查看:211
本文介绍了IPhone与非IOS设备的蓝牙连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果有办法将iPhone用作HID设备,还有其他一些设备,如PS3。我检查了蓝牙规范,IOS设备支持HID配置文件。因此我认为使用密钥机制将我的iPhone配对并且应该能够开始使用我的iPhone作为键盘或鼠标而没有太多麻烦。但我很快发现这个假设是天真的,我需要开发自定义解决方案。

I was wondering, if there is a way to use IPhone as an HID device, with some other device like PS3. I checked out the Bluetooth specification and IOS Devices do support HID Profile. So I thought it would be easy to pair my iPhone using passkey mechanism and should be able to start using my iPhone as keyboard or mouse without much hassle. But I found very soon that this assumption is naive and I need to develop custom solution.

我最初考虑使用GameKit框架,但我认为它只适用于两个兼容的IOS设备。如果我想扩展此功能,那么我必须使用iPhone外部附件API。在我的分析中,我还发现iPhone只会与Apple许可的设备进行通信和配对。 (专为iPhone \iPod程序而制作)。这是否意味着,如果我想将iPhone与其他设备一起使用,我需要让Apple批准该设备。 (这不会让我感到惊讶)。另外,如果有人可以向我指出更详细的文档,这也会有所帮助。(什么是MFI开发人员?)

I was initially thinking about using GameKit framework, but I think it only works between two compatible IOS Devices. If I want to extend this capability, then I have to use iPhone External Accessory API .In my analysis, I also found that iPhone will only communicate and pair with devices that are licensed by Apple. (Made for iPhone\iPod program). Does it mean that, if I want to use iPhone with another device, I need to get that device approved by Apple. ( Which will not surprise me one bit). Also if someone could point me to more detailed documentation on this, that will also be helpful.( What is an MFI developer board ??)

我不想要解决方案这需要我越狱iPhone。 (或任何会使Apple取消我的应用程序资格的解决方案。)

I do not want a solution that needs me to jailbreak an iPhone. (or any solution that will disqualify my app by Apple).

总结一下:

1-请验证我的发现,如果错误就纠正它们?

1- Please validate my findings, correct them if they are wrong?

2a-外部附件API如何工作?
b-我可以使用它来连接第三方配件吗? (或者这仅适用于配件开发商。)

2a- How does External Accessory API Work? b- Can I use this to connect to third party accessories ? (or is this only for accessory developers).

3-或者是否有更好的解决方案而不使用外部附件API?

3- Or is there a better solution without using External Accessory API?

如果可以,请提供支持性文件或链接。谢谢。

Please provide supportive documentation or link if you can. Thank You.

推荐答案

除非你是一家大公司,否则你不太可能从苹果公司获得外部配件程序(你可以尝试,但我已经阅读了很多地方)。 iPhone使用专有的蓝牙接口,硬件也必须实现此接口,因此没有太多机会直接连接到任何其他硬件。

You are unlikely to get on the External accessory program from apple unless you are a big company ( you can try, but I have read this a number of places) . iPhones use a proprietary Bluetooth interface that and hardware must also implement this interface, so not much chance of getting it to connect to any other hardware directly.

大多数这样的应用程序(远程鼠标)例如,连接到您的WiFi网络,并在您的计算机上安装另一个应用程序。然后iphone可以通过Wi-Fi网络与该应用程序通信,但不能与蓝牙通信。我建议我可以看到这个唯一的方法来创建你安装在wi-fi网络上的计算机上的服务器应用程序,然后如果你有一个可以使用的API,它就可以控制第三方设备从桌面应用程序来控制第三方设备。

Most apps like this (Remote Mouse) for example, connect to your wifi network, and have another application installed on your computer. The iphone can then talk to this application over the wi-fi network, but not bluetooth. I would suggest that the only way I can see this would be possible to to create the server app that you install on a computer on the wi-fi network that then in turn controls the 3rd party device if there is an API that you can use from the desktop app to control the 3rd party device.

这就是我在研究这个用于制作iPhone控制蓝牙手表的应用程序时所发现的。最后我不得不越狱,用可以连接到任何硬件设备的蓝牙堆栈取代iPhone上的蓝牙堆栈。不受苹果限制。

This is just what I have found when I researched about this for making an app for iPhone to control a bluetooth watch. I had to jailbreak in the end to replace the bluetooth stack on the iPhone with one that could connect to any hardware device. Not limited by apple.

这篇关于IPhone与非IOS设备的蓝牙连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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