如何在OS X上检查硬件BLE支持?

时间:2013-08-08 08:40:36

标签: macos bluetooth-lowenergy

我已经阅读here,2011年中期的Apple电脑应支持BLE(蓝牙低功耗)。有没有办法(可能使用命令行)来检查设备和操作系统是否支持BLE?

4 个答案:

答案 0 :(得分:6)

在Mac OS X终端应用中,您可以输入以下内容:

system_profiler -detailLevel full SPBluetoothDataType | grep "LMP Version"

如果此命令输出> = '0x6',则支持蓝牙4.0,因此也支持BLE。

答案 1 :(得分:4)

1)通过AppStore安装适用于Mac OS的LightBlue。

2)如果它像所附的截图一样抱怨,你的硬件不支持蓝牙LE,如果它没有抱怨“这一切都很好”。

enter image description here

答案 2 :(得分:2)

显然,iOS和OSX的CBCentralManager api是相同或非常相似的(不确定是否可以预期,因为我刚开始使用iOS和OS X),从某种意义上说,可以运行代码:< / p>

switch ([_manager state])
{
    case CBCentralManagerStateUnsupported:
        state = @"This device does not support Bluetooth Low Energy.";
        break;
    case CBCentralManagerStateUnauthorized:
        state = @"This app is not authorized to use Bluetooth Low Energy.";
        break;
    case CBCentralManagerStatePoweredOff:
        state = @"Bluetooth on this device is currently powered off.";
        break;
    case CBCentralManagerStateResetting:
        state = @"The BLE Manager is resetting; a state update is pending.";
        break;
    case CBCentralManagerStatePoweredOn:
        state = @"Bluetooth LE is turned on and ready for communication.";
        break;
    case CBCentralManagerStateUnknown:
        state = @"The state of the BLE Manager is unknown.";
        break;
    default:
        state = @"The state of the BLE Manager is unknown.";

}

在OS X中提供等效的iOS Q&A(信用额去Bob那里),并了解设备是否支持ble。

答案 3 :(得分:1)

点击左上角的苹果图标,然后点击关于本机 - &gt;左侧的系统报告... 点击硬件 - &gt;的蓝牙下, 您将在硬件,功能和设置下找到支持蓝牙低功耗