4.1 General Format of HCI Command Packets (Host MCU to BM70/71 Module)
The following table provides details about the general message format of the HCI command packet. All messages from the host MCU (PC, host MCU and more) to the BM70/71 IC Device Under Test (DUT) follow this format. For more details, refer to the Bluetooth Core Specification (4.2).
Start | OPCODE | Length | Data | ||
---|---|---|---|---|---|
Byte Number | 0 | 1-2 | 3 | 4-XX | |
Size (bytes) | 1 | 2 | 1 | 0 | |
Value | 0x01 | OCF bits[9:0] | OGF bits[15:10] | 0xNN | Command parameters |
— | Packet indicator | — | — | Length – 0xNN bytes |
Note:
- The OPCODE field for the HCI command is transmitted over the UART LSB first, for example, the OPCODE (0xFC20), byte[1] is 0x20, byte[2] is 0xFC.
- For the list of HCI commands that are available on the BM70/71 module, refer to the HCI Command Overview.