This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BLE应用层数据通信接口的疑问



在看BLE Guide文档的时候,讲到,GAP负责link的建立,link终止,link管理等工作,

想问一下:

1.这个link是应用层还是物理层连接?discover到BLE设备之后,paring,鉴权,bond之后建立的是物理层还是应用层?

2.对于BLE的应用(层)而言,在这个之上还有类似于WIFI,或者是Ethernet的socket连接吗?还是说只要在GAP层建立好link,应用层就直接可以通过GATT接口发送数据了?我在BLE的协议栈里也没找到和socket相关接口调用。

3.GATT_Notification是用来主动向slave端发送数据的,因为看不到这个函数的实现,所以不知道这个函数的数据承载方式是什么,看上去不是走socket的。

4.在看Android4.3以上的SDK的时候,发现了BluetoothGatt和BluetoothSocket两个类。TI提供的支持BLE Android app的代码里也没有调用BluetoothSocket里的接口,只有BluetoothGatt的接口,那是不是说,BLE的应用层通信,不需要建立socket连接,GAP层的link就支持应用数据通信?

之前一直做WIFI,刚接触BLE,有些东西还没理清楚。

谢谢!