5

Ok I've been searching googling and learning all morning. I've installed gatttool, learned about hciconfig, hcitool, sdptool, and a bunch of other stuff and I still cannot find the answer.

I would like to be able to have a bluetooth process on my raspberry pi that I can connect to from my iPhone's "bluetooth" menu. Seems like it should be really really simple.

I've seen guides and tutorials about connecting to a bluetooth device from a raspberry pi, but nothing that will allow me to make the raspberry pi the bluetooth device.

I've also tried running: sudo hciconfig hci0 piscan, but this didn't really do anything for me.

Is it possible to have my raspberry pi participate in the Service Discovery Protocol and be found by my phone?

Update:

I've also seen this answer Automatically accepting Bluetooth connections on a Pi 3 using this command: hciconfig hci0 sspmode 1, and while that seemed promising it didn't resolve the issue

  • Please post your answer, when you will find it! – moonvader Nov 13 '16 at 7:41
  • Please try using a different device to find the Pi. For example a laptop with BT on Windows seem to find everything. You can also get nice tools on windows to try and test connection and debug them. It is possible iPhone is being difficult as usual. – Piotr Kula Dec 1 '16 at 10:10
2

This task (To be able to discover raspberry pi from iphone's bluetooth menu) seems require quite an effort. iPhone seems to ignore all discovered bluetooth device which doesn't meet its standard. See: https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf I don't think a simple script or a single command line would do the trick, you have to write a bunch of codes defining iPhone known bluetooth services, profiles and characteristics.

I am also aiming this, and learned that I have to teach myself the concept of bluetooth communication protocol on all its layers.

  • Bluetooth is supposed to be so simple for user to use but I have always found writing code for it was a nightmare. Especially for iOS with their crazy extra layers of standards as you mention. – Piotr Kula Dec 1 '16 at 10:09
  • Just for the record, as described at didier.io/post/raspberrypi-stream-sound-over-bluetooth it works without much effort now. – Stepan Vavra May 16 '18 at 17:58
  • Stepan Vavra, We are talking about BLE here, not Bluetooth. – Nandha Handharu Nov 14 '18 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.