【问题标题】:BlueZ: what are the meaning of the fields of le_set_scan_parameters_cp?BlueZ:le_set_scan_parameters_cp的字段是什么意思?
【发布时间】:2021-12-15 17:37:33
【问题描述】:

在 BlueZ 中有这个结构:

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;

我正在寻找其字段的含义。你有任何参考吗?

特别是 intervalwindowfilter。它们的含义是什么?

【问题讨论】:

    标签: bluetooth bluetooth-lowenergy bluez


    【解决方案1】:

    HCI 命令的最佳参考是蓝牙核心规范,您可以在以下位置找到: https://www.bluetooth.com/specifications/specs/

    当前版本是 5.3,在第 4 卷中,E 部分是 HCI 命令和事件。

    7.8.10 LE Set Scan Parameters command 是您要查找的部分,其中包含有关过滤器的以下内容:

    对于区间和窗口:

    【讨论】:

    • 非常感谢这个参考,很有用!核心规范包含超过 3k 个页面,因此这对我自己了解它有很大帮助。您是否知道在哪里可以找到有关过滤器策略的更多信息?例如:将过滤策略设置为0x03,如何指定过滤器的详细信息?
    • 开始处于我知识的边缘。我认为这是您需要的“4.3 LINK LAYER DEVICE FILTERING”部分并设置“Filter Accept List”。这些命令是上一个命令的几页。规范中的“7.8.16 LE Add Device To Filter Accept List command”应该是一个不错的起点。
    猜你喜欢
    • 2017-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-25
    • 1970-01-01
    • 1970-01-01
    • 2019-08-28
    • 2015-09-12
    相关资源
    最近更新 更多