Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Connecting a bluetooth device without running DBUS or BT srv
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Fri Aug 03, 2018 12:23 pm    Post subject: Connecting a bluetooth device without running DBUS or BT srv Reply with quote

Hi all,

You guys from the Gentoo community are my last hope on this. I have tried with Debian-based distros, Gentoo... but couldn't find an answer.
I am trying to connect a BT device to a Raspberry Pi. Thing is, this is an embedded-like enviroment I have to setup, so no BT services are allowed: I just need to connect it, no need to store settings, restore on boot, etc...no, just establish a connection.

So far I have got to setup the device and add it to the HCI:

Code:
sudo modprobe hci_uart
sudo modprobe btbcm
sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -


I can see it's working without problems with:
Code:
sudo hciconfig -a


I can easily bring up the device like this:
Code:
sudo hciconfig hci0 up

I can even scan devices with sudo hcitool scan, and I can see the target devices in range. Great so far!

The problem comes when I try to connect the Pi3b+ to them.
There used to be
Code:
hidd --connect <address>
, but the hidd command has been deprecated in favor of some mumbo-jumbo using DBUS and systemd services. I guess a service is needed to manage connections, etc, but all I need here is to manually stablish an one-time BT connection manually. Simple.
So, what should I use in place of
Code:
hidd --connect <address>
now?

I have tried
Code:
sudo hcitool cc <address>
, but it doesn't stablish any connections (connections can be verified with hcitool con).
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Mon Aug 06, 2018 6:29 pm    Post subject: Reply with quote

C'mon guys, I don't believe there's no way around this :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55262
Location: 56N 3W

PostPosted: Mon Aug 06, 2018 6:38 pm    Post subject: Reply with quote

VanFanel,

Its been a while but I think you get the old tools if you emerge net-wireless/bluez with USE=deprecated.

The old was has not been removed, just hidden.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55262
Location: 56N 3W

PostPosted: Mon Aug 06, 2018 6:39 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Gentoo on ARM.

Its likely to be more use here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum