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

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

Statistics: Posted by petzval — Sat Jul 27, 2024 2:29 pm



Viewing all articles
Browse latest Browse all 5070

Trending Articles