iPhone 蓝牙设备连接
我有一个应用程序必须连接到医疗蓝牙设备才能从该设备获取数据。 (不适用于任何 iOS 设备)。 我可以使用哪个框架或类连接并接收数据?
谢谢。
I have an app which has to connect to a medical bluetooth device to get data from that device. (Not to any iOS device).
Using which framework or class I can connect and receive data from?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
获得 MFi 许可证后,您必须在蓝牙设备上安装 Apple 提供的身份验证芯片。您必须创建自定义协议来传输数据。
iOS 上的 BT 被锁定,您只能访问应用程序内的简单 AVRCP 事件,不允许数据传输,除非使用 GameKit(仅在 iOS 设备之间运行)。
更新:
如果您使用的是 BLE 设备,那么您可以查看此内容,但它仅限于 iOS 5。
http://developer.apple.com/library/ ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html
After you get an MFi license, you then have to have an Apple supplied authentication chip on the bluetooth device. You must create custom protocols to transfer the data.
The BT on iOS is locked down and you can only access simple AVRCP events inside an app, no data transfer is allowed, except using GameKit (which only works between iOS devices).
UPDATE:
If you are using a BLE device then you can checkout this, it is iOS 5 only though.
http://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html
您打算使用越狱设备开发这个应用程序吗?
如果没有,您必须注册 MFI(Made For iPhone) 计划,然后您可以定义您的自定义协议并使用ExternalAccessory框架与您的设备进行通信。
如果是,请查看 Btstack 项目。
Are you planning to develop this app with a jailbreak device?
If not, you have to enroll the MFI(Made For iPhone) program, then you can define your custom protocol and use the ExternalAccessory framework to communicate with your device.
If yes, take a look at Btstack project.