9.3 HCI Command Packet – Create Connection Command (Opcode – 0x0405)
The host MCU uses the create connection command (opcode – 0x0405) to create a connection with a remote device. With regards to memory programming, the host MCU uses this packet to establish a programming session with the BM70/71 module. The parameters in the packet are all set to zero, which indicates to the BM70/71 module that the host MCU is requesting a programming connection.
Command Format – Host MCU to BM70/71 Module
Start | Opcode | Length | Data | |
---|---|---|---|---|
Byte Number | 0 | 1-2 | 3 | 4-16 |
Size (bytes) | 1 | 2 | 1 | 13 |
Value | 0x01 | 0x0405 | 0x0D | See the following table |
Note: The opcode field for the HCI vendor command is formatted as LE. For the opcode (0x0C33), byte[1] is 0x33, byte[2] is 0x0C.
Byte Number | Value | Parameter Description | Length |
---|---|---|---|
4-9 | 0x00 0x00 0x00 0x00 0x00 0x00 | Bluetooth address. The host MCU uses a value of zero to indicate about the BM70/71 module requesting a programming session. | 6 bytes |
10-11 | 0x0000 | Packet type | 2 bytes |
12 | 0x00 | Page Scan Repetition mode | 1 byte |
13 | 0x00 | Reserved, must be set to zero | 1 byte |
14-15 | 0x0000 | Clock offset | 2 bytes |
16 | 0x00 | Role switch enable | 1 byte |
Response Format – BM70/71 Module to Host MCU
The BM70/71 module responds with the following:
- HCI event response – Command status event (opcode – 0x0F) packet
- HCI event response – Connection complete event (opcode – 0x03) packet