Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Bluetooth to serial device - Will it work?

I've been playing around with a bluetooth to serial device for a while now trying to get it to work with Android. I've got it communicating properly with Android and every thing seems to be working fine there.

Now I need to get it to work with iOS. It seems Apple is being all Apple like as always and only supporting certain interfaces. According to this document, only UART, USB, SPI, PCM, SPDIF, and SPP are supported with the device that I'm using. More information on the device can be found here.

I'm not really sure what any of those are other than USB and SPP, but I believe SPP doesn't work with iOS.

So my question is will this device work with iOS for bluetooth to serial communication?

Also, if this device won't work (which I'm assuming it won't), what are some good bluetooth to serial options? According to some of my research, I need an MFi certified device?

Upon further research it looks like Bluetooth LE is an option using devices like these with connectBlue Low Energy Serial Port Service:

http://www.u-blox.com/en/bluetooth-wifi-multiradio-modules/bluetooth-low-energy/ols425-olp425-modules.html http://www.spezial.cz/pdf/RBS421-Product-Brief.pdf

like image 830
Jared Price Avatar asked Apr 03 '15 17:04

Jared Price


People also ask

Can iPhone communicate with Arduino?

An app called BLExAR allows Arduino users to communicate to either an iPhone or an iPad via Bluetooth. The app permits control of an Arduino board, and communication via the serial port, as well as data transfer from the Arduino to the iOS device.

Is Bluetooth a serial connection?

Nearly every form of digital communication is based on a serial protocol with varying levels of encapsulation, even Bluetooth Classic.

What is serial port in Bluetooth?

The most common type of Bluetooth socket is RFCOMM, which is the type supported by the Android APIs. RFCOMM is a connection-oriented, streaming transport over Bluetooth. It is also known as the Serial Port Profile (SPP).

How do I use Bluetooth serial terminal?

Open Android Settings > Bluetooth, switch Bluetooth on and Search for Devices. Connect to the Brainboxes Bluetooth to Serial Adapter by default named by its part number (e.g. BL-819 or BL-830) Enter the Bluetooth Pairing PIN number.


2 Answers

I was able to get Bluetooth to serial working on iOS by using a Bluetooth Low Energy to serial device which uses the TruConnect service. I followed this guide to get everything working:

https://truconnect.ack.me/1.5/apps/communicating_via_ble#reading_from_a_truconnect_device_serial_interface

This is the device I ended up using:

https://serialio.com/product/bluetooth-serial-adapter/bluesnap-smart-bluetooth-40-rs232-adapter

like image 189
Jared Price Avatar answered Oct 09 '22 12:10

Jared Price


We have been following this issue for some time and you are correct: the only way to get serial data from a device to your application is via an MFi certified device.

Previously answered here.

like image 33
joeybladb Avatar answered Oct 09 '22 14:10

joeybladb