bt_send的函数。
BT_HCI_OP_RESET 0x03 0x0c 00
BT_HCI_OP_READ_LOCAL_FEATURES 0x03 0x10 0x00
BT_HCI_OP_READ_LOCAL_VERSION_INFO 0x01 0x10 0x00
BT_HCI_OP_READ_SUPPORTED_COMMANDS 0x02 0x10 0x00
BT_HCI_OP_LE_READ_LOCAL_FEATURES 0x03 0x20 0x00
BT_HCI_OP_LE_READ_BUFFER_SIZE 0x02 0x20 0x00
BT_HCI_OP_LE_READ_SUPP_STATES 0x1C 0x20 0x00
BT_HCI_OP_LE_READ_MAX_DATA_LEN 0x2f 0x20 0x00
BT_HCI_OP_LE_WRITE_DEFAULT_DATA_LEN 0x24 0x20 0x04 0x1B 0x00 0x90 0x0a
BT_HCI_OP_LE_READ_RL_SIZE 0x2a 0x20 0x00
BT_HCI_OP_LE_SET_EVENT_MASK 0x01 0x20 0x08 0xFE 0X0B 0X00 0X00 0X00 0X00 0X00 0X00
BT_HCI_OP_SET_EVENT_MASK 0X01 0x0c 0x08 0x90 0x88 0x00 0x02 0x00 0x80 0x00 0x20
BT_HCI_OP_VS_READ_VERSION_INFO 0x01 0xfc 0x00
BT_HCI_OP_VS_READ_SUPPORTED_COMMANDS 0x02 0xfc 0x00
BT_HCI_OP_VS_READ_SUPPORTED_FEATURES 0x03 0xfc 0x00
BT_HCI_OP_LE_P256_PUBLIC_KEY 0x25 0x20 0x00
BT_HCI_OP_READ_BD_ADDR 0x09 0x10 0x00
BT_HCI_OP_VS_READ_STATIC_ADDRS 0x09 0xfc 0x00
/slave/
LBS的广播
BT_HCI_OP_LE_SET_RANDOM_ADDRESS 05 20 06 3C DD 17 51 5D F3
BT_HCI_OP_LE_SET_ADV_PARAM 0x06 0x20 0x0f 0x30 0x00 0x60 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x07 0x00
BT_HCI_OP_LE_SET_ADV_DATA 0x08 0x20 0x20 0x12 0x02 0x01 0x06 0x0e 0x09 0x4e 0x6f 0x72 0x64 0x69 0x63 0x5f 0x42 0x6c 0x69 0x6e 0x6b 0x79
接上一包0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
BT_HCI_OP_LE_SET_SCAN_RSP_DATA 0x09 0x20 0x20 0x12 0x11 0x07 0x23 0xd1 0xbc 0xea 0x5f 0x78 0x23 0x15 0xde 0xef 0x12 0x12 0x23 0x15 0x00 0x00
接上一包0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
BT_HCI_OP_LE_SET_ADV_ENABLE 0x0a 0x20 0x01 0x01
NUS的广播
BT_HCI_OP_LE_SET_RANDOM_ADDRESS 05 20 06 3C DD 17 51 5D F3
BT_HCI_OP_LE_SET_ADV_PARAM 06 20 0F 30 00 60 00 00 01 00 00 00 00 00 00 00 07 00
BT_HCI_OP_LE_SET_ADV_DATA 08 20 20 18 02 01 06 14 09 4E 6F 72 64 69 63 5F 55 41 52 54 5F 53 65 72 76 69 63 65 00 00 00 00 00 00 00
BT_HCI_OP_LE_SET_SCAN_RSP_DATA 09 20 20 12 11 07 9E CA DC 24 0E E5 A9 E0 93 F3 A3 B5 01 00 40 6E 00 00 00 00 00 00 00 00 00 00 00 00 00
BT_HCI_OP_LE_SET_ADV_ENABLE 0a 20 01 01
/ master///
HCI_LE_Set_-Random_Address
BT_HCI_OP_LE_SET_RANDOM_ADDRESS 05 20 06 D0 7F B9 D6 DA 3A
HCI_LE_Set_-Scan_Parameters
BT_HCI_OP_LE_SET_SCAN_PARAM 0B 20 07 01 60 00 30 00 01 00
HCI_LE_Set_-Scan_Enable
BT_HCI_OP_LE_SET_SCAN_ENABLE 0C 20 02 01 01