Bluetooth Connection using Terminal

Arch based Porteus community project

Moderator: M. Eerie

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Bluetooth Connection using Terminal

Post#1 by raja » 16 Apr 2019, 11:36

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.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Bluetooth Connection using Terminal

Post#2 by ncmprhnsbl » 16 Apr 2019, 13:18

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Bluetooth Connection using Terminal

Post#3 by ncmprhnsbl » 17 Apr 2019, 11:46

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Bluetooth Connection using Terminal

Post#4 by raja » 17 Apr 2019, 20:07

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!
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

Post Reply