【问题标题】:What types of bluetooth devices exist?存在哪些类型的蓝牙设备?
【发布时间】:2019-10-23 00:47:06
【问题描述】:

我正在使用 bluetoothctl 来检查设备类型(我需要它来为蓝牙设备选择正确的图标)。我发现到目前为止存在 phoneaudio-card。您知道在哪里可以找到所有这些类型的蓝牙设备的列表吗? 这是 bluetoothctl 的输出,并且有一个带有 Icon 的字段。该字段中所有可能的类型都是我感兴趣的。

设备 XX:XX:XX:XX:XX:XX(公共)

姓名:XXXXX

别名:XXXXX

类:0x00240408

图标:声卡

【问题讨论】:

    标签: linux bluetooth device


    【解决方案1】:

    这个问题的答案可以通过浏览src/dbus-common.c中的bluez蓝牙栈的源码来找到。

    在撰写此答案时,完整列表为:

    "audio-card"
    "audio-headphones"
    "audio-headset"
    "camera-photo"
    "camera-video"
    "computer"
    "input-gaming"
    "input-keyboard"
    "input-mouse"
    "input-tablet"
    "modem"
    "multimedia-player"
    "network-wireless"
    "phone"
    "printer"
    "scanner"
    "unknown"
    "video-display"
    

    【讨论】:

      【解决方案2】:

      gtk3-icon-browser 的帮助下,我注意到 bluetoothctl 中的图标类型与主题默认图标相对应。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-03-28
        • 1970-01-01
        • 2015-06-13
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多