Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4990

Beginners • Re: Please help me connect phone to Pi 5 via Bluetooth.

$
0
0
Phones use the OBEX protocol, so you definitely need an OBEX server. The problem seems to be the initial pairing which must be done for the Pi to show up as a share destination. I have a Bluetooth library on github with an OBEX server that will not reject a pairing request, so might be worth trying. But best solution would be to find out why the Pi rejects the pairing.

https://github.com/petzval/btferret

Code:

Download  obex_server.c  btlib.c  btlib.h  devices.txtCompile  gcc obex_server.c btlib.c -o obex_serverRun  sudo ./obex_serverOn the phone  Unpair the Pi to clear any previous pairing which will not be recognised  Pair the Pi with obex_server running  Share the photo via Bluetooth
OK, thank you, amazing. That worked. I could send the photo.
I didn't need to unpair the Pi as it hasn't paired yet.

I found a couple of different messages.
When I try to connect from the Pi. I saw:
br-connection-unknown

Then I tried sending a pic from phone and it stated:
Couldn’t pair with Pi because of incorrect pin or passkey

I have not got to a bit where I have to put in a code.

Statistics: Posted by Grarea — Tue Jul 30, 2024 11:53 am



Viewing all articles
Browse latest Browse all 4990

Trending Articles