RaspberryPi で Bluetooth を使用

2014-09-09 の raspbian に最初から入っていないので追加

sudo apt-get isntall bluez

hciconfig や hcitool が使えるようになり
bluetoothd が常駐するようになります。

hciconfig で動作確認取れたもの

ELECOM Logitech

  • LBT-UAN04C1
  • MADE IN TAIWAN

    $ lsusb
    Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
    
    $ dmesg
    usb 1-1.2: new full-speed USB device number 7 using dwc_otg
    usb 1-1.2: device descriptor read/64, error -32
    usb 1-1.2: New USB device found, idVendor=0a12, idProduct=0001
    usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    usb 1-1.2: Product: CSR8510 A10
    

    iBUFFALO

  • BSBT4D09
  • Mede in China

    $ lsusb
    Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
    
    $ dmesg
    usb 1-1.2: new full-speed USB device number 5 using dwc_otg
    usb 1-1.2: New USB device found, idVendor=0a12, idProduct=0001
    usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    usb 1-1.2: Product: CSR8510 A10
    

    I-O DATA

  • USB-BT40LE
  • MADE IN CHINA

    $ lsub
    Bus 001 Device 006: ID 0a5c:21e8 Broadcom Corp.
    
    $ dmesg
    usb 1-1.2: new full-speed USB device number 6 using dwc_otg
    usb 1-1.2: New USB device found, idVendor=0a5c, idProduct=21e8
    usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.2: Product: BCM20702A0
    usb 1-1.2: Manufacturer: Broadcom Corp
    usb 1-1.2: SerialNumber: xxxxxxxxxxxx
    

    hciconfig で動作確認できないもの

    SANWA

  • MM-BTUD43
  • MADE IN TAIWAN

    $ lsusb
    Bus 001 Device 008: ID 0a12:100b Cambridge Silicon Radio, Ltd
    
    $ dmesg
    usb 1-1.2: new full-speed USB device number 8 using dwc_otg
    usb 1-1.2: device descriptor read/64, error -32
    usb 1-1.2: New USB device found, idVendor=0a12, idProduct=100b
    usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    usb 1-1.2: Product: CSR8510 A10
    input: CSR8510 A10 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
    hid-generic 0003:0A12:100B.0001: input,hiddev0,hidraw0: USB HID v1.11 Keyboard [CSR8510 A10] on usb-bcm2708_usb-1.2/input0
    input: CSR8510 A10 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/input/input1
    hid-generic 0003:0A12:100B.0002: input,hidraw1: USB HID v1.11 Mouse [CSR8510 A10] on usb-bcm2708_usb-1.2/input1
    

    こいつだけは HID モードで立ち上がってくるので使用できません。

    vid:pid の 0A12:100B で検索をかけると違うの買えとか
    bluez 入れろとか頓珍漢な突込みとかwww

    http://www.spinics.net/lists/linux-bluetooth/msg51495.html

    に HCI モードへの切り替えパッチがあるので bluez のバージョンがあがれば…

    https://bugzilla.kernel.org/show_bug.cgi?id=69181

    の方法で切り替えれるみたいなので hid2hci を自前コンパイルすればいけるかも

    http://elinux.org/RPi_USB_Bluetooth_adapters

    Sitecom CN-524. CSR 8510 a10, USB ID 0a12:0001. Not out of the box on Raspbian or Lubuntu, only after changing the initial bootmode to HCI using Bluesuite on a Windows machine (http://blog.ruecker.fi/2013/10/06/adventures-in-bluetooth-4-0-part-i/). 
    

    Windows マシンで初期起動モードを切り替えれば使用できるようになるみたいです…

    This entry was posted in Linux Ubuntu, RaspberryPi, raspbian. Bookmark the permalink.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>