core bluetooth 01 - intro

加入蓝牙项目已有半年多,越深入工作,发现自己缺的越多,对蓝牙协议栈几乎是一无所知,仅仅会iOS层框架很难去分析问题,以此契机把用到学到的蓝牙知识整理出来,供以后日常温习,这里先把苹果官方文档的学习笔记作为一系列文章的开篇,也会在后续蓝牙协议的学习过程中坚持记录, 整理笔记。

1. 什么是core bluetooth framework?

对低功耗蓝牙协议栈的抽象

提供iOS和Mac应用所需要的类

应用于低功耗蓝牙无线技术

从macOS 10.9和iOS 6开始,Mac,iOS设备也可以作为BLE外设

Apps -> Core Bluetooth -> Bluetooth low energy protocol stack (GATT, ATT, L2CAP)

基于蓝牙spec 4.0


2. Key players

蓝牙设备中有两个主要角色:central 和 peripheral

Peripheral通常有其他设备需要的数据

Central通常使用外设提供的信息来完成一些任务

As of iOS 7, Core Bluetooth supports saving state information for central and peripheral manager objects and restoring that state at app launch time.

You can use this feature to support long-term actions involving bluetooth devices.

https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html

你可能感兴趣的:(core bluetooth 01 - intro)