hcitool scan liefert:
Code: Alles auswählen
88:00:00:00:31:F0 BT-SPEAKER
Code: Alles auswählen
88:00:00:00:31:F0 BT-SPEAKER
Hier steht eigentlich alles: https://wiki.debian.org/BluetoothUserLeider habe ich nicht in Erfahrung bringen können, mit welchem CLI-Kommando das geht und auch der Stellenwert eines ominösen "arbitrary"(=beliebigen?) PINs zu diesem Behufe ist mir noch unklar.
Indiskutabel, es geht um einen Lautsprecher.Nimm vllt. zuerst ein Smartphone/Tablet und paare mit Debian
RichtigWenn ich mich recht erinnere verwendest du pulseaudio nicht, richtig?
Na toll!Dann wird es nämlich nix mit Bluetooth und Audiogeräten.
GUI-neutral? Der wird mir ja dann wohl pulseaudio aufzwingen.blueman
Code: Alles auswählen
# bluetoothctl
[NEW] Controller 00:1B:DC:0B:8B:E3 BlueZ 5.43 [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# devices
[bluetooth]# devices
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1B:DC:0B:8B:E3 Discovering: yes
[NEW] Device 88:00:00:00:31:F0 BT-SPEAKER
[bluetooth]# agent on
Agent registered
[bluetooth]# pair MAC Address
Device MAC Address not available
[bluetooth]# pair 88:00:00:00:31:F0
Attempting to pair with 88:00:00:00:31:F0
[CHG] Device 88:00:00:00:31:F0 Connected: yes
[CHG] Device 88:00:00:00:31:F0 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 88:00:00:00:31:F0 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 88:00:00:00:31:F0 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 88:00:00:00:31:F0 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 88:00:00:00:31:F0 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 88:00:00:00:31:F0 ServicesResolved: yes
[CHG] Device 88:00:00:00:31:F0 Paired: yes
Pairing successful
[CHG] Device 88:00:00:00:31:F0 ServicesResolved: no
[CHG] Device 88:00:00:00:31:F0 Connected: no
[bluetooth]# trust 88:00:00:00:31:F0
[CHG] Device 88:00:00:00:31:F0 Trusted: yes
Changing 88:00:00:00:31:F0 trust succeeded
[bluetooth]# connect 88:00:00:00:31:F0
Attempting to connect to 88:00:00:00:31:F0
Failed to connect: org.bluez.Error.Failed
Obwohl ich das oben bejaht habe: So pauschal würde ich das nicht sagen wollen. Ich hatte pulseaudio bisher nicht nötig. Und ich übe mich auch an mehreren Kisten.smutbert hat geschrieben:Wenn ich mich recht erinnere verwendest du pulseaudio nicht, richtig?
Hmm,Du startest die [bluetooth] - Shell mittels bluetoothctl. Auch als User!
Code: Alles auswählen
PID TTY TIME CMD
2886 ? 00:00:00 pulseaudio
Code: Alles auswählen
~$ bluetoothctl
[bluetooth]# pairable
Missing on/off argument
[bluetooth]# pairable on
No default controller available
Code: Alles auswählen
power on
Code: Alles auswählen
rfkill list
Code: Alles auswählen
$ ps -C pulseaudio
PID TTY TIME CMD
2887 ? 00:00:00 pulseaudio
[user]@radio:~$ su
Passwort:
root@radio:/home/[user]# /etc/init.d/bluetooth restart
[ ok ] Stopping bluetooth: /usr/sbin/bluetoothd.
[ ok ] Starting bluetooth: bluetoothd.
root@radio:/home/[user]# exit
exit
[user]@radio:~$ bluetoothctl
[bluetooth]# power on
No default controller available
[bluetooth]# exit
[user]@radio:~$ su
Passwort:
root@radio:/home/[user]# rfkill list
0: eeepc-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Code: Alles auswählen
# bluetoothctl
[NEW] Controller 00:1B:DC:0B:8B:E3 BlueZ 5.43 [default]
[NEW] Device 88:00:00:00:31:F0 BT-SPEAKER
Code: Alles auswählen
[bluetooth]# info 88:00:00:00:31:F0
Device 88:00:00:00:31:F0
Name: BT-SPEAKER
Alias: BT-SPEAKER
Class: 0x240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
Code: Alles auswählen
[bluetooth]# connect 88:00:00:00:31:F0
Attempting to connect to 88:00:00:00:31:F0
Failed to connect: org.bluez.Error.Failed
Code: Alles auswählen
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1B:DC:0B:8B:E3 Discovering: yes
[CHG] Device 88:00:00:00:31:F0 RSSI: -56
[CHG] Device 88:00:00:00:31:F0 RSSI: -48
[bluetooth]# scan off
[CHG] Device 88:00:00:00:31:F0 RSSI is nil
Discovery stopped
[CHG] Controller 00:1B:DC:0B:8B:E3 Discovering: no
Code: Alles auswählen
# rfcomm connect hci0 88:00:00:00:31:F0
Connected /dev/rfcomm0 to 88:00:00:00:31:F0 on channel 1
Press CTRL-C for hangup
Code: Alles auswählen
rfcomm connect hci0 <phone address>
Code: Alles auswählen
# CONFIG_BLK_WBT is not set
CONFIG_BT=m
CONFIG_BT_BREDR=y
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
# CONFIG_BT_BNEP is not set
# CONFIG_BT_HIDP is not set
CONFIG_BT_HS=y
CONFIG_BT_LE=y
# CONFIG_BT_LEDS is not set
# CONFIG_BT_SELFTEST is not set
CONFIG_BT_INTEL=m
CONFIG_BT_BCM=m
CONFIG_BT_RTL=m
CONFIG_BT_QCA=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIBTUSB_BCM=y
CONFIG_BT_HCIBTUSB_RTL=y
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIUART_ATH3K=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
CONFIG_BT_HCIUART_INTEL=y
CONFIG_BT_HCIUART_BCM=y
CONFIG_BT_HCIUART_QCA=y
CONFIG_BT_HCIUART_AG6XX=y
CONFIG_BT_HCIUART_MRVL=y
CONFIG_BT_HCIBCM203X=m
CONFIG_BT_HCIBPA10X=m
CONFIG_BT_HCIBFUSB=m
CONFIG_BT_HCIVHCI=m
CONFIG_BT_MRVL=m
CONFIG_BT_ATH3K=m
# CONFIG_INPUT_WISTRON_BTNS is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
# CONFIG_SND_BT87X is not set
# CONFIG_DELL_RBTN is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_INTEL_VBTN is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_RBTREE_TEST is not set