Search code examples
bluetoothbluetooth-lowenergybluez

BlueZ: what are the meaning of the fields of le_set_scan_parameters_cp?


In BlueZ there is this struct:

https://github.com/pauloborges/bluez/blob/master/lib/hci.h#L1536

typedef struct {
    uint8_t     type;
    uint16_t    interval;
    uint16_t    window;
    uint8_t     own_bdaddr_type;
    uint8_t     filter;
} __attribute__ ((packed)) le_set_scan_parameters_cp;

I'm searching for the meaning of its fields. Do you have any reference by any chance?

Specifically interval, window, and filter. What are their meaning?


Solution

  • The best reference for HCI commands is the Bluetooth Core Specification which you can find at: https://www.bluetooth.com/specifications/specs/

    The current Version is 5.3 and in Vol 4, Part E is HCI commands and events.

    7.8.10 LE Set Scan Parameters command is the section you are looking for where it has the following about the filter:

    enter image description here

    and for interval and window:

    enter image description here