Bluetooth connection pi 3
I try to connect to devices via Bluetooth. The pi says Connection Failed - No usable services on this device. What do I do? BTW- I am using raspian w/ pixel.
Re: Bluetooth connection pi 3
What do you want to use the connection for? Serial communication, file transfer, networking, audio streaming, HID, other?
Re: Bluetooth connection pi 3
Did you put the device into discovery mode?
With my Bluetooth headsets I hold down the power until the lights flash blue/red, then I get the Pi to do a search, finds them every time.
With my Bluetooth headsets I hold down the power until the lights flash blue/red, then I get the Pi to do a search, finds them every time.
Re: Bluetooth connection pi 3
It was another computer I was connecting to. I put the pi into discovery mode and paired it. It would stay connected for a second, but then disconnect.hazza96 wrote:Did you put the device into discovery mode?
With my Bluetooth headsets I hold down the power until the lights flash blue/red, then I get the Pi to do a search, finds them every time.
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
I had the same issue. I was trying to pair a Raspberry Pi3 with a Pi2 to use as serial communication between the two. I got "Connection failed - No usable services on this device.
Any suggestions or guidance?
Thank you.
Brian
Any suggestions or guidance?
Thank you.
Brian
Re: Bluetooth connection pi 3
You'll need to add the Serial Port Profile to both Pis. See this post: viewtopic.php?p=947185#p947185
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
I made the modifications to both Pi's as instructed in the post sent; Thank you for that by the way.
However when I rebooted both and paired I got the same message again. Is there another step I'm missing?
Thanks again for you help!!
However when I rebooted both and paired I got the same message again. Is there another step I'm missing?
Thanks again for you help!!
Re: Bluetooth connection pi 3
How are you trying to connect? You'll want to run an 'rfcomm watch' command on the slave Pi, and an 'rfcomm connect' on the master. That should create virtual /dev/rfcomm0 devices on each Pi which can be used with a serial terminal such as minicom, or programmatically with Python or C or whatever.
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Okay I add the "rfcomms" to the master and slave Pi's. However when I attempted to pair the two the "slave" reported;
"Paired successfully, but this device has no services which can be used with Raspberry Pi"
The "Master" first returned;
:"Pairing failed - GDBus.Error.org.bluez.Error Authentication Failed. Authentication Failed"
and then immediately followed with the following message.
"Connection failed-GDBus.Error.org.bluez.Error.NotAvailable: Operation currently not available. Try to connect manually".
Tried to "connect" from both PI's and got the same message of No Usable services on this device.
"Paired successfully, but this device has no services which can be used with Raspberry Pi"
The "Master" first returned;
:"Pairing failed - GDBus.Error.org.bluez.Error Authentication Failed. Authentication Failed"
and then immediately followed with the following message.
"Connection failed-GDBus.Error.org.bluez.Error.NotAvailable: Operation currently not available. Try to connect manually".
Tried to "connect" from both PI's and got the same message of No Usable services on this device.
Re: Bluetooth connection pi 3
OK, they must be paired and trusted first. How are you trying to pair them? Here's how I would do it, using bluetoothctl. First start it on the slave: Then enter: and You'll have three minutes for the following steps. On the master, start bluetoothctl and enter this: After some moments it should find the slave and print the Bluetooth device address, something like AA:BB:CC:DD:EE:FF. Then type Check the slave and follow any instructions; if asked to authorize, reply with 'yes', not 'y'. The master should indicate you are paired. Now enter and it should indicate trusted. You can now 'quit' bluetoothctl on both machines.
If you get this far, we can discuss the rfcomm commands.
Code: Select all
bluetoothctl
Code: Select all
agent on
Code: Select all
discoverable on
Code: Select all
scan on
Code: Select all
pair AA:BB:CC:DD:EE:FF
Code: Select all
trust AA:BB:CC:DD:EE:FF
If you get this far, we can discuss the rfcomm commands.
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Okay following your instructions the Master reported: Device 5C:F3:70:7D:EC:C6 RSSI: -58
So I typed in "pair 5C:F3:70:7D:EC:C6 "
The response I got was" Failed to pair: org.bluez.Error.AlreadyExists
If they are truly paired is there simple test to confirm?
So I typed in "pair 5C:F3:70:7D:EC:C6 "
The response I got was" Failed to pair: org.bluez.Error.AlreadyExists
If they are truly paired is there simple test to confirm?
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Further information. If I click on the Bluetooth icon on either device and select the device it is supposedly connected to and click on the "Connect" icon I get Connection failed - No usable services on this device.
Again Thank you so much for your assistance.
Again Thank you so much for your assistance.
Re: Bluetooth connection pi 3
Yes, they are already paired. You can confirm this in bluetoothctl with If the pairing is not trusted, be sure to trust it with (again)
The Bluetooth panel is generally only useful for keyboards and speakers. Instead, in a terminal window on the slave, enter Leave that window open. In a terminal window on the master, enter replacing <bdaddr> with the device address of the slave. You should see a message that the Pis are connected.
Code: Select all
info 5C:F3:70:7D:EC:C6
Code: Select all
trust 5C:F3:70:7D:EC:C6
Code: Select all
sudo rfcomm watch hci0
Code: Select all
sudo rfcomm connect hci0 <bdaddr>
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Again I appreciate all your help. I followed the instructions to the point on the master typing in the "sudo rfcomm" command.
On a terminal in the master I typed
[bluetooth]# sudo rfcomm connect hci0 5C:F3:70:7D:EC:C6
I got "Invalid command"
I retyped the command again this time putting the "address" in <>.
Same response.
What do you suggest?
Thank you
Brian
On a terminal in the master I typed
[bluetooth]# sudo rfcomm connect hci0 5C:F3:70:7D:EC:C6
I got "Invalid command"
I retyped the command again this time putting the "address" in <>.
Same response.
What do you suggest?
Thank you
Brian
Re: Bluetooth connection pi 3
The rfcomm commands should be entered on the Linux command line, outside of bluetoothctl. Do not use '<>'.
Last edited by Douglas6 on Sat Jan 07, 2017 4:31 pm, edited 1 time in total.
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Fantastic, it worked! Final question, is there a way to automatically launch both Pi's into Bluetooth connected mode when they boot up? The ultimate goal is a stand alone remote control system.
Thank you so much!!!
Brian
Thank you so much!!!
Brian
Re: Bluetooth connection pi 3
See this post on setting up a systemd service for the rfcomm commands: viewtopic.php?p=919463#p919463. Adjust the ExecStart= line for the master. You'll need to start the slave first, so the master has something to connect to when it starts. You might be able to get around that by replacing 'rfcomm connect' with 'rfcomm bind'.
-
- Posts: 42
- Joined: Wed Jun 29, 2016 4:40 pm
Re: Bluetooth connection pi 3
Great!! Thank you very much for all your help!!!