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

Table 9-6. Create Connection Command Format
StartOpcodeLengthData
Byte Number01-234-16
Size (bytes)12113
Value0x010x04050x0DSee 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.
Table 9-7. Data Field Parameters
Byte NumberValueParameter DescriptionLength
4-90x00 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-110x0000Packet type2 bytes

120x00

Page Scan Repetition mode

1 byte
130x00Reserved, must be set to zero1 byte
14-150x0000Clock offset2 bytes
160x00Role switch enable1 byte
Figure 9-3. Message Sequence for Create Connection Command

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
The BM70/71 does not append additional data to these responses. For more details, refer to Command Complete Event (Opcode – 0x0E) and Command Status Event (Opcode – 0x0F).