简体   繁体   English

iPhone应用程序-与蓝牙设备通信

[英]iPhone App - Communicate with Bluetooth Device

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. 我的任务是开发一个iPhone应用程序,该应用程序的首要功能是连接到蓝牙传输设备,从该设备接收数据并使用该数据执行其他重要操作。 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. 我遇到的问题是似乎没有什么好的SDK可以使用,因此我正在考虑使用GameKit框架搜索蓝牙传输设备,连接到(正确的)设备,以及从该设备接收数据。

Bullet points: - search for bluetooth device - connect to bluetooth device - receive data only from the device 要点:-搜索蓝牙设备-连接到蓝牙设备-仅从设备接收数据

Tips/advice? 提示/建议?

Apple doesn't let just any Bluetooth device to connect to an iOS device. Apple不允许任何蓝牙设备连接到iOS设备。 The device must be MFi compliant. 该设备必须符合MFi。

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 . 假设您承担了编写可与公司产品一起使用的应用程序的任务,那么首先要从Apple注册MFi开发人员计划

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. 假设情况与此相反,您要负责编写与第三方设备一起使用的应用程序,请确保该产品符合MFi。 Finding a "Made for iPhone" or "Made for iPad" logo on the device or packaging is likely to indicate it is MFi compliant. 在设备或包装上找到“ Made for iPhone”或“ Made for iPad”徽标可能表明它符合MFi。

From there you should investigate the External Accessory Framework. 从那里您应该研究外部附件框架。 Try reading External Accessory Programming Topics 尝试阅读外部附件编程主题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM