iPhone 应用程序 - 与蓝牙设备通信
我的任务是开发一个 iPhone 应用程序,其首要功能是连接到蓝牙传输设备,从该设备接收数据,并使用该数据来做其他重要的事情。我遇到的问题是,似乎没有任何好的 SDK 可以使用,所以我正在考虑使用 GameKit 框架来搜索蓝牙传输设备,连接到(正确的)设备,然后从该设备接收数据。
要点: - 搜索蓝牙设备 - 连接到蓝牙设备 - 仅从设备接收数据
提示/建议?
I'm tasked with developing an iPhone app whose first bit of functionality is to connect to a bluetooth transmitting device, receive data from that device, and use that data to do other important things. The issue I'm having is that there doesn't seem to be any good sort of SDK to work with, so I'm thinking of using the GameKit framework to search for bluetooth transmitting devices, connect to the (correct) device, and to receive data from this device.
Bullet points:
- search for bluetooth device
- connect to bluetooth device
- receive data only from the device
Tips/advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apple 不允许任何蓝牙设备连接到 iOS 设备。该设备必须符合 MFi 标准。
假设您的任务是编写与您公司的产品配合使用的应用程序,请首先注册 MFi Apple 的开发者计划。
假设相反,您的任务是编写与第三方设备配合使用的应用程序,确保该产品符合 MFi 标准。在设备或包装上找到“Made for iPhone”或“Made for iPad”徽标可能表明它符合 MFi 标准。
从那里您应该研究外部附件框架。尝试阅读外部附件编程主题
Apple doesn't let just any Bluetooth device to connect to an iOS device. The device must be MFi compliant.
Assuming you've been tasked with writing the app to work with your company's product, start with signing up with the MFi developer program from Apple.
Assuming the opposite, that you've been tasked with writing the app to work with a third party device make sure the product is MFi compliant. Finding a "Made for iPhone" or "Made for iPad" logo on the device or packaging is likely to indicate it is MFi compliant.
From there you should investigate the External Accessory Framework. Try reading External Accessory Programming Topics