5.6.3 Read BD_ADDR Command
Format:
| Command | OGF | OCF | Command Parameters | Return Parameters |
| Read BD_ADDR | 0x04 | 0x0009 | — | Status, BD_ADDR |
This command reads the Public Device Address. Upon issuing the command, the user receives a command complete event with return parameters (see the following figure). The return value will be 0x000000000000 if the device does not support public device addressing.
Return parameters:
Status: Size: 1 octet
| Value | Parameter Description |
|---|---|
| 0x00 |
HCI_Read_BD_ADDR command succeeded. |
| 0x01 to 0xFF | HCI_Read_BD_ADDR command failed. See [Vol 1] Part F, Controller Error Codes for a list of error codes and descriptions. |
BD_ADDR: Size: 6 octets
| Value | Parameter Description |
|---|---|
| 0xXXXXXXXXXXXX |
BD_ADDR of the device |
| Example: | 01 09 10 00
| // Read_BD_ADDR command |
| Response: | 04 0E 0A 01 09 10 00 AC 0E AE F4 81 34
|
// Command complete event with status and BD_ADDR parameters |
