Existing bluetooth device and Apple MFI

坚强是说给别人听的谎言 提交于 2019-12-10 15:48:09

问题


I am developing an App which needs to connect to a bluetooth device. I dont want to deploy this app in the app store. I only need this for personal use. Is there any way to connect to this bluetooth device (which is old as hell and definitely not MFI certified). In the FAQ of the MFI program (http://mfi.apple.com/faqs) it says that it is possible with third party solutions. Does anyone know something about that? I havent found any products which builds a bridge between the iPhone and the bluetooth device.

Furthermore the faq says:

"app developers and developers of accessories that rely solely on standard technology (e.g., Bluetooth Low Energy or standard Bluetooth profiles) do not need to join the MFi Program."

My bluetooth device uses a standard bluetooth profile, but i can't connect to it.


回答1:


If your app is not going to app store, you can try using the private framework called BlueToothManager. I haven't worked with it but it can help you.

The MFI compatible devices are registered with Apple and communicate with a Bluetooth Profile registered with Apple. That particular protocol string (Eg. com.apple.ps1) will be given by the MFI device manufacturer, which you will need to include in the info.plist file.




回答2:


If you are targeting devices which have ios 5 and up you can try using the CoreBluetooth Framework. Here is the link

https://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html#//apple_ref/doc/uid/TP40011295



来源:https://stackoverflow.com/questions/11685409/existing-bluetooth-device-and-apple-mfi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!