Description

This frame type is emitted in response to a Bluetooth GAP Scan Request and whenever the Bluetooth scan timer has timed out. The status field of this frame indicates the Bluetooth scanner state.

Format

The following table provides the contents of the frame. For details on frame structure, see API frames.

Offset Size Field Name Description

0

8-bit

Start Delimiter

Indicates the start of an API frame.

1

16-bit

Length

Number of bytes between the length and checksum.

3

8-bit

Frame Type

Bluetooth Scan Request - 0xB5

4

8-bit

Scan Status

Reflects the status of the Bluetooth scanner:

  • 0x00: Scanner has successfully started

  • 0x01: Scanner is currently running

  • 0x02: Scanner has successfully stopped

  • 0x03: Scanner was unable to start or stop

  • 0x04: Invalid parameters

EOF

8-bit

Checksum

0xFF minus the 8-bit sum of bytes from offset 3 to this byte (between length and checksum).