iOS和蓝牙 [英] iOS and bluetooth

查看:326
本文介绍了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?

推荐答案

行,所以我刚刚发现这个<一个href=\"http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.UahOYZUeVeW\"相对=nofollow>文章。

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上批准

  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设备进行沟通,我想有它在App Store - >我只能使用第一个,所以我拧......

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天全站免登陆