HCI数据是以小端字节序存储的;
小端字节序:低位数据存放在内存低地址处
大端字节序:高位字节数据存放在内存低地址处
1. 命令:
OGF:不同组的命令,有不同的OGF
Link Control commands, the OGF is defined as 0x01.
Link Policy commands, the OGF is defined as 0x02. 这两个OGF下的命令是和对端设备有关的命令
Control and Baseband commands, the OGF is defined as 0x03.
Informational Parameters commands, the OGF is defined as 0x04. 这两个OGF下的命令是和本端设备有关的命令status parameters commands, the OGF is defined as 0x05.
Testing commands, the OGF is defined as 0x06.
LE Controller commands, the OGF code is defined as 0x08.
vendor-specific debug commands,The OGF code is defined as 0x3F. OCF:代表不同OGF下的命令标号,是唯一的 如Link Control commands下的inquiry command,其OCF为0x0001,所以Opcode[0] = OCF & 0XFF,Opcode[1] = OCF>>8 | OGF<<2
2. ACL数据:
3. SCO数据:
4. 事件:
标签:commands,OGF,字节,defined,OCF,命令,数据格式,HCI From: https://www.cnblogs.com/zj-studyrecoding/p/17402224.html