Obsah

Bluetooth

Pharaon:/home/djbuldog# systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-07-23 10:29:59 CEST; 2s ago
     Docs: man:bluetoothd(8)
 Main PID: 2533 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─2533 /usr/lib/bluetooth/bluetoothd

čec 23 10:29:59 Pharaon bluetoothd[2533]: sap-server: Operation not permitted (1)
čec 23 10:29:59 Pharaon bluetoothd[2533]: RFCOMM server failed for Message Notification: socket(STREAM, RFCOMM): Pr
čec 23 10:29:59 Pharaon bluetoothd[2533]: RFCOMM server failed for Message Access: socket(STREAM, RFCOMM): Protocol
 [*] Networking support
      <M> Bluetooth subsystem support
        [*]   Bluetooth Classic (BR/EDR) features
    <M>     RFCOMM protocol support
    [*]       RFCOMM TTY support
    <M>     BNEP protocol support
    [*]       Multicast filter
    [*]       Protocol filter support
    <M>     CMTP protocol support
    <M>     HIDP protocol support
    [*]     Bluetooth High Speed (HS) features
    [*]   Bluetooth Low Energy (LE) features
    <M>     Bluetooth 6LoWPAN support
    [ ]   Bluetooth self testing support
    [*]   Export Bluetooth internals in debugf
čec 23 11:26:45 Pharaon systemd[1]: Started Bluetooth service.
čec 23 11:26:45 Pharaon bluetoothd[2133]: Starting SDP server
čec 23 11:26:46 Pharaon bluetoothd[2133]: kernel lacks bnep-protocol support
čec 23 11:26:46 Pharaon bluetoothd[2133]: System does not support network plugin
čec 23 11:26:46 Pharaon bluetoothd[2133]: Failed to open RFKILL control device
čec 23 11:26:46 Pharaon bluetoothd[2133]: Bluetooth management interface 1.14 initialized
čec 23 11:26:46 Pharaon bluetoothd[2133]: Sap driver initialization failed.
čec 23 11:26:46 Pharaon bluetoothd[2133]: sap-server: Operation not permitted (1)
čec 23 11:29:05 Pharaon bluetoothd[2133]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSource
čec 23 11:29:05 Pharaon bluetoothd[2133]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSink

Předchozí pokusy

Obecně

# HID daemon
HIDD_ENABLED=1
#HIDD_OPTIONS="--master --server"
HIDD_OPTIONS="--server"
sudo hidd --connect 00:0F:DE:A8:71:24
# Local device class (viz manual)
# class 0xSSDDdd SS service class, DD major class, dd minor class
# OBEX (5bit z 8) = 00001000 = 0x10 - SS
# computer = 0x01 - DD
# driv tu bylo 0x100
class 0x100100;

#!# Default packet type (viz slidy o BT str 38)
#DH1 = Data High Rate 1 time slot
#HV1 = High Quality Voice 1 time slot
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
# Inquiry - hledani novych stanic, odpoved na vyhledani
# Page scan - cekani na ramec page, domlouvani na spojeni
iscan enable; pscan enable;

# Default link mode
#   none   - no specific policy 
#   accept - always accept incoming connections
#   master - become master on incoming connections,
#            deny role switch on outgoing connections
#lm master; - master se sekal - segfault pri incomming.. zkusim accept
lm accept

# Default link policy
#   none    - no specific policy
#   rswitch - allow role switch - prej prepnuti master-slave
#   hold    - allow hold mode - neresi prenos dat, pouze hlas
#   sniff   - allow sniff mode - cenichani, poslouchani
#   park    - allow park mode - zaparkovani (uspavani)

#default rswitch,hold,sniff,park
lp sniff,park,rswitch
rfcomm0 {
        # Automatically bind the device at startup
        # automaticky pripravit TTY /dev/rfcomm0 pro BT zarizenim
       bind yes;

        # Bluetooth address of the device
        # BT HW adresa ciloveho zarizeni
       device 00:0F:DE:A8:71:24; #moje K700

        # RFCOMM channel for the connection
        # Kanal pro komunikaci
       channel 1;

        # Description of the connection
#       comment "buldokova k700i";
#}
[gammu]
synchronizetime = no
name = Sony Ericsson K700i
logformat = nothing
connection=blueat
model=auto
port = 00:0F:DE:A8:71:24

Headset

apt-get install bluetooth-alsa
Pharaon:/home/djbuldog# hcitool scan
Scanning ...
        00:16:B8:FF:C5:B0       HBH-608
hcitool cc 00:16:B8:FF:C5:B0
vim /etc/bluetooth/hcid.conf
  #passkey "0000";
  # PIN helper
  pin_helper /etc/bluetooth/feed-pin.sh;