Bluetooth
藍牙控制器配置文件
在
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 堆棧中的某個位置?我可以更改配置文件以支持新的配置文件嗎?
我發現提供適當功能的程序可以添加額外的藍牙配置文件。因此,如果我在我的電腦上設置了藍牙 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 伺服器。我不確定現在是否需要其他步驟。