我在这里读到,2011 年中期的苹果电脑应该支持 BLE(蓝牙低功耗)。有没有办法(可能使用命令行)来检查设备和操作系统是否支持 BLE?
问问题
3902 次
4 回答
6
在 Mac OS X 终端应用程序中,您可以键入以下内容:
system_profiler -detailLevel full SPBluetoothDataType | grep "LMP Version"
如果此命令输出 >='0x6'
则支持蓝牙 4.0,因此也支持 BLE。
于 2014-10-20T09:35:04.253 回答
4
1) 通过 AppStore 安装 LightBlue for Mac OS。
2)如果它像附上的截图一样抱怨,你的硬件不支持蓝牙 LE,如果它没有抱怨“一切都好”。
于 2013-08-10T16:33:26.640 回答
2
显然,适用于 iOS 和 OSX 的 CBCentralManager api 是相同或非常相似的(不确定这是否可以预期,因为我刚从 iOS 和 OS X 开始),因为可以运行代码:
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 问答(学分归 Bob 那里)中提供,并了解设备是否支持 ble。
于 2013-08-08T09:22:39.173 回答
1
点击左上角的苹果图标,然后点击左侧的About This Mac -> System Report...点击Hardware -> Bluetooth,您将在Hardware, Features, and Settings下找到Bluetooth Low Energy Supported。
于 2015-07-31T07:19:22.947 回答