View previous topic :: View next topic |
Author |
Message |
VanFanel Apprentice


Joined: 19 Feb 2007 Posts: 161
|
Posted: Fri Aug 03, 2018 12:23 pm Post subject: Connecting a bluetooth device without running DBUS or BT srv |
|
|
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:
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 |
|
 |
VanFanel Apprentice


Joined: 19 Feb 2007 Posts: 161
|
Posted: Mon Aug 06, 2018 6:29 pm Post subject: |
|
|
C'mon guys, I don't believe there's no way around this  |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55262 Location: 56N 3W
|
Posted: Mon Aug 06, 2018 6:38 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55262 Location: 56N 3W
|
Posted: Mon Aug 06, 2018 6:39 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|