Home:ALL Converter>Communicate between iOS app and Raspberry Pi via Bluetooth

Communicate between iOS app and Raspberry Pi via Bluetooth

Ask Time:2013-11-09T08:18:05         Author:ttarik

Json Formatter

I'm trying to communicate between an iOS app and Raspberry Pi using Bluetooth. The Raspberry Pi is using a Python script for this purpose.

I was originally using the PyBluez library, however this does not support Bluetooth LE and thus can't be used with CoreBluetooth on iOS.
My next solution was to use the private BluetoothManager framework to communicate with the Pi, but this doesn't work on iOS 7.

I've researched a bit more and have seen suggestions for manually sending/receiving LE packets with PyBluez, but this seems incredibly complex and I really have no idea where to start.

So at the moment, I'm stuck. I need either:

  • A solution to communicate with a non-LE Bluetooth device via iOS, or
  • A solution for advertising and communicating as a LE device on the Raspberry Pi via Python

Author:ttarik,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/19870781/communicate-between-ios-app-and-raspberry-pi-via-bluetooth
Mark Ch :

One option is to buy a USB dongle with a BLE stack in it already.\n\nWe have used the Laird BL620-USB, flashed with BL600 firmware to operate as a BLE peripheral. \n\nHaving BLE stack in the dongle means it can be communicated with from the Raspberry Pi like a simple USB serial port, without using any linux Bluetooth stack. \n\nBL600 includes the Nordic / Laird proprietary Virtual Serial Port Profile already, so you can achieve the simplicity similar to the classic Bluetooth SPP, even when communicating to an iOS device. \n\nLaird will provide iOS and Android code to use the VSP on the mobile side. \n\nOther BLE module makers probably do the same.",
2017-06-25T15:11:02
fulvio :

Have you tried this?\n\nBy default, the Wheezy distribution comes without a Bluetooth stack. The bluez package is version 4.99, which has patchy support for Low Energy.\n\nKeep in mind at the time of writing Bluetooth Low Energy (BLE) is not well supported by the standard Raspberry Pi distributions. Some work is required to get it working, as described in the link provided above.",
2016-01-18T05:32:28
yy