お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2019-03-25 19:40:36

raitan
新しいメンバ
登録日: 2019-03-25

walkman と ubuntu のペアリングができません

ubuntuをbluetoothレシーバーにしてwalkman sシリーズとペアリングをしたいと思っている者です。一応スマホとのペアリングまではこぎつけたのですが、walkmanとペアリングができず困っている状態です。自分なりに調べたところ/etc/bluetooth/main.confにclass=0x240404を追記すればいい的なことが書いてあったのですが、bluetoothctlのshowではclassに変化が見られず、八方塞がりな状況です。

コード:

Controller 74:F0:6D:D3:90:98 (public)
    Name: raichi-MS-N051
    Alias: raichi-MS-N051
    Class: 0x001c010c
    Powered: yes
    Discoverable: yes
    Pairable: yes
    UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
    UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
    UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
    UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
    UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
    UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
    UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
    UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v1D6Bp0246d0530
    Discovering: no

/etc/bluetooth/main.conf

コード:

[General]

# Default adaper name
# Defaults to 'BlueZ X.YZ'
#Name = BlueZ

# Default device class. Only the major and minor device class bits are
# considered. Defaults to '0x000000'.

Class = 0x240404

参考にさせていただいたサイト:https://qiita.com/dwarfJP/items/a4a90d5c0aa2833dac5b
(サイトはラズパイが対象ですが、僕のは普通のノートです)

オフライン

 

#2 2019-04-07 12:42:31

raitan
新しいメンバ
登録日: 2019-03-25

Re: walkman と ubuntu のペアリングができません

hciconfig hci0 class 0x240404
であっさりペアリングできました。ペアリング後はclassを変えずとも接続できるようです。

オフライン

 

Board footer

Powered by FluxBB