Bluetooth相關套件

載入bluetooth usb模組

  • 確認btusb模組是否已載入核心 lsmod|grep -i btusb
    • 如果沒有載入時,使用指令載入 modprobe btusb
lsmod|grep btusb
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             520192  24 bnep,btbcm,btrtl,btusb,btintel

相關套件

  • sudo dpkg -l|grep -i bluetooth
ii  bluedevil                                       4:5.8.4-0ubuntu1~ubuntu16.04~ppa1          amd64        KDE Bluetooth stack
ii  bluetooth                                       5.37-0ubuntu5                              all          Bluetooth support
ii  bluez                                           5.37-0ubuntu5                              amd64        Bluetooth tools and daemons
ii  bluez-cups                                      5.37-0ubuntu5                              amd64        Bluetooth printer driver for CUPS
ii  libbluetooth3:amd64                             5.37-0ubuntu5                              amd64        Library to use the BlueZ Linux Bluetooth stack
ii  pulseaudio-module-bluetooth                     1:8.0-0ubuntu3.1                           amd64        Bluetooth module for PulseAudio sound server
  • 確認系統服務已啟動 sudo systemctl status bluetooth

  • 如果要在command模式下操作bt,可使用 bluetoothctl 進入藍芽的console互動模式操作

    • 如果bluetoothctl找不到任何controller,可能是因為藍芽卡住了,可用 rfkill unblock bluetooth 處理
  • lsusb
Bus 001 Device 004: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
  • hciconfig -a : configure Bluetooth devices
hci0:   Type: BR/EDR  Bus: USB
BD Address: 5C:F3:70:7F:0A:90  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING
RX bytes:2511 acl:0 sco:0 events:222 errors:0
TX bytes:37228 acl:0 sco:0 commands:221 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'par49'
Class: 0x000104
Service Classes: Unspecified
Device Class: Computer, Desktop workstation
HCI Version: 4.0 (0x6)  Revision: 0x153a
LMP Version: 4.0 (0x6)  Subversion: 0x220e
Manufacturer: Broadcom Corporation (15)
  • hcitool scan : 掃描附近的藍芽設備

results matching ""

    No results matching ""