且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

核心蓝牙LE和iOS中的Classical

更新时间:2023-02-06 21:17:10

较旧的蓝牙是一种流协议,要求将设备配对.苹果只允许拥有特殊许可的开发人员开发蓝牙外围设备.

Older bluetooth is a streaming protocol, and requires that the devices be paired. Apple only allows developers with a special license to develop Bluetooth peripherals.

Bluetooth Low Energy(BLE)或Bluetooth 4.0是一种低能耗轮询接口,设备(外围设备)在该接口上通告他们提供的服务,而想要使用这些服务的设备(以BLE的术语为中间")则订阅这些服务.

Bluetooth Low Energy (BLE) or Bluetooth 4.0 is a low energy polling interface where devices (peripherals) advertise services that they offer and devices that want to use those services ("centrals", in BLE terms) subscribe to those services.

BLE在很短的突发时间内发送数据.发射功率低于经典"蓝牙,发射时间短得多.

BLE sends data in very short bursts. The transmitted power is lower than "classic" bluetooth, and the transmissions are MUCH shorter.

UUID用于标识BLE设备提供的不同服务.

UUID is used to identify different services offered by BLE devices.

关于教程或示例代码,我手边没有任何东西.到目前为止,我一直在使用iBeacons,它是在BLE之上构建的特定协议.但是,Google是您的朋友.

As for tutorials or example code, I don't have any on hand. I've been working with iBeacons so far, which is a specific protocol built on top of BLE. However, Google is your friend.