Bluetoothコントローラプロファイル

Bluetoothコントローラプロファイル

デフォルトの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

サポートされているBluetoothプロファイル(A / Vリモートコントロールなど)はどこに設定されていますか?私のUSB Bluetoothアダプタのファームウェアから出てきますか、それともbluezスタックのどこかから出ますか?新しい設定ファイルをサポートするように設定ファイルを変更できますか?

ベストアンサー1

適切な機能を提供するプログラムを通じて、追加のBluetoothプロファイルを追加することが可能であることがわかりました。したがって、マイコンピュータにBluetooth 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サーバーを起動する最後のステップを実行するだけです。今別のステップが必要かどうかはわかりません。

おすすめ記事