Page 1 of 1

Bluetooth Connection using Terminal

Posted: 16 Apr 2019, 11:36
by raja
Installed bluez-openrc and bluez-tools

Code: Select all


[porteus guest]# rc-update add bluetooth default
 * service bluetooth added to runlevel default
[porteus guest]# rc-service bluetooth start
 * Starting bluetooth ...                                                 [ ok ]
Looking for listed devices...

Code: Select all

[porteus guest]# bt-device -l
**
ERROR:lib/bluez/adapter.c:165:adapter_get_dbus_object_path: assertion failed: (ADAPTER_IS(self))
Aborted
stuck here at this moment.

Bluetooth Connection using Terminal

Posted: 16 Apr 2019, 13:18
by ncmprhnsbl
possibly it's bluez libs being out of date ..
i guess there was more pulled in with bluez-openrc and bluez-tools (namely bluez and libical)
give me a day or two and i'll update the base modules and maybe include the bluez stack..

Bluetooth Connection using Terminal

Posted: 17 Apr 2019, 11:46
by ncmprhnsbl
ok, base modules updated with added bluez, bluez-openrc, bluez-utils, bluez-tools, and libical..
didn't have much luck with bluez-tools, so included bluez-utils which seems to be working..
after starting the bluetooth service:

Code: Select all

[guest@porteus ~]$ bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller F0:42:1C:FB:C1:AA Powered: yes
[bluetooth]# devices
Discovery started
for more : https://wiki.archlinux.org/index.php/Bluetooth#Console

Bluetooth Connection using Terminal

Posted: 17 Apr 2019, 20:07
by raja
Thanks ncmprhnsbl ....

Code: Select all

[porteus guest]# bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# devices
[bluetooth]# devices
[bluetooth]# scan on
Discovery started

[NEW] Device 28:FB:D3:63:B2:F3

[bluetooth]# pair 28:FB:D3:63:B2:F3

Attempting to pair with 28:FB:D3:63:B2:F3
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
[CHG] Device 28:FB:D3:63:B2:F3 RSSI: -48
[CHG] Device 28:FB:D3:63:B2:F3 RSSI: -71
[CHG] Device 28:FB:D3:63:B2:F3 RSSI: -54
[bluetooth]#
Shall try again tomorrow.. hope to establish connection!