iOS 和蓝牙 [英] iOS and bluetooth

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

问题描述

我想开发一个通过蓝牙与设备通信的应用程序.我找不到任何教程来帮助我解决这个问题.我指的不是蓝牙 4.0 LE,而是经典蓝牙.我发现的只是 CoreBluetooth 框架,但我认为这仅适用于蓝牙 LE.我还发现了类似 IOBluetooth 和 IOBluetoothUI 的东西,但我不确定它是适用于 Mac OS 还是适用于 iOS.但是仍然找不到任何教程或其他东西来帮助我理解整个过程(发现、建立连接、通信……).你能帮我解决这个问题吗?

I want to develop an app which will communicate with devices via bluetooth. I am not able to find any tutorial to help me with this. I don't mean bluetooth 4.0 LE but classic bluetooth. All I have found is CoreBluetooth framework but I think this is only for bluetooth LE. I have found also something like IOBluetooth and IOBluetoothUI but I am not sure if it is for Mac OS or for iOS. But still can't find any tutorial or something to help me understand whole process (discovering, establish connection, communication,...). Can you help me with this?

推荐答案

好的,所以我才发现这个 文章.

OK so I just found this article.

根据这篇文章,有 5 种使用蓝牙的方法:

According to this article there are 5 ways how to work with Bluetooth:

  1. 注册 MFI 计划 - 费用高且周期长
  2. CoreBluetooth 框架 - 仅适用于蓝牙 4.0 LE 设备
  3. GameKit 框架 - 仅适用于 iOS 设备(两部 iPhone),因此您无法使用其他设备然后使用 iOS
  4. 私有 API - 带有私有 API 的应用不会在 Appstore 上获得 Apple 的批准
  5. 越狱
  1. Enroll MFI program - expensive and long period process
  2. CoreBluetooth framework - works only with Bluetooth 4.0 LE devices
  3. GameKit framework - only for iOS device (two iPhones) so you can't work with other device then with iOS
  4. Private API - app with private API won't be approved by Apple on the Appstore
  5. Jailbreak

似乎没有正常的官方方式如何使用蓝牙.

It seems there isn't normal official way how to work with bluetooth.

我的情况:我想与不是具有蓝牙 2.1 的 iOS 设备通信,我想在应用商店中使用它 -> 我只能使用第一个,所以我搞砸了...

My case: I want to communicate with not iOS device which has bluetooth 2.1 and I want to have it on the app store -> I can use only first one so I am screwed...

这篇关于iOS 和蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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