藍牙控制器設定檔

藍牙控制器設定檔

在 中bluetoothctl,如果我show在預設的藍牙控制器上運行,我會得到以下資訊:

Controller XX:XX:XX:XX:XX:XX
        Name: computer-name
        Alias: computer-name
        Class: 0x00010c
        Powered: yes
        Discoverable: no
        Pairable: yes
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0517
        Discovering: no

支援的藍牙設定檔(例如 A/V 遠端控制)在哪裡設定?它是來自我的 USB 藍牙適配器的韌體還是來自 bluez 堆疊中的某個位置?我可以更改設定檔以支援新的設定檔嗎?

答案1

我發現可以透過提供適當功能的程式添加額外的藍牙設定檔。因此,如果我在電腦上設定藍牙 OBEX 伺服器,則show該命令的輸出bluetoothctl會有一堆新行:

Controller XX:XX:XX:XX:XX:XX
        Name: computer-name
        Alias: computer-name
        Class: 0x10010c
        Powered: yes
        Discoverable: no
        Pairable: yes
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
        Modalias: usb:v1D6Bp0246d0517
        Discovering: no

第一次設定時,我執行了類似以下步驟的操作(配對之後,連接之前):

sudo killall bluetoothd
sudo bluetoothd --compat
sudo hciconfig hci0 up
bt-obex -s [/path/to/receiving/directory]

然而,現在我似乎只需要運行最後一步,這實際上啟動了 OBEX 伺服器。我不確定現在其他步驟是否有必要。

相關內容