iOS的Mac OS X的[核心]蓝牙数据传输 [英] iOS to Mac OS X [core] bluetooth data transfer

查看:574
本文介绍了iOS的Mac OS X的[核心]蓝牙数据传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里我的目标是建立一个的设备运行iOS 的之间的连接的设备运行Mac OS X 的,通过蓝牙。我知道,我也许可以使用CoreBluetooth这个,但我不知道如何,因为我没有看到一个方法来设置的 iOS设备的对服务和广播作为一个可用的服务运行Mac OS X的设备的。换句话说,我只是想建立一个连接,以获得的 iOS设备的数据发送到的的Mac OS X设备的。另外,我怎么会去指定如何设置服务的属性。我试着研究这个东西,但大多数文件意义不大了我。数据传输是小,所以蓝牙是工作不够好。我试图避免卓悦这一点,而且由于OS X的P2P游戏中心框架无法处理(我认为)。

My objective here is to create a connection between a device running iOS to a device running Mac OS X, via bluetooth. I know that I might be able to use CoreBluetooth for this but I don't understand how since I don't see a method to setup a service on the iOS device and broadcast it as an available service for a device running Mac OS X. In other words, I simply want to setup a connection to get the iOS device to send data to the Mac OS X device. Also, how would I go about to specify how to setup properties of the service. I've tried researching this stuff but most of the documentation makes little sense to me. The data transfer is small so bluetooth is good enough for the job. I'm trying to avoid Bonjour for this, and the Game center framework for P2P since OS X can't handle that (I think).

推荐答案

在iOS6的iPhone 4S的,5和新的iPad既可以作为外设和中央蓝牙智能/低功耗模式下工作。
从APP Store的尝试下载LightBlueAPP。它让你把iPhone4S的或5成随机服务外设模式,然后您可以从Mac读取(如果你有一个较新的与BT的能量低,我用的是视网膜对于这一点,但也是新的iMac和Mac mini得到了BT低能量)。

In iOS6 the iPhone 4S, 5 and New iPad can work both as Peripheral and as Central in Bluetooth Smart / Low Energy mode. Try downloading "LightBlue" APP from APP Store. It let's you put the iPhone4S or 5 into Peripheral mode with random Services which you can then read from the Mac (if you have a newer one with BT Low Energy, I use the Retina for that but also the new iMac and Mac Mini got BT Low Energy).

您是正确的,核心的蓝牙只给进入低功耗蓝牙不允许的MFI芯片。

You are correct that Core Bluetooth only give access to Bluetooth Low Energy which doesn't allow for the MFI chip.

这篇关于iOS的Mac OS X的[核心]蓝牙数据传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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