Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I connect an iOS device to non iOS device (Arduino devices) via Bluetooth?

After searching on Google, I found that people say it's only possible to connect an iOS device with a non iOS device with the 'MFi program'. Is that true?

My project is mainly focused on sending and receiving information with the Arduino device via Bluetooth directly.

Is communication between iOS and non iOS devices without jailbreak possible? If yes, is there a reference?

(I viewed Stack Overflow question How can an iPhone access another non-iPhone device over wireless or Bluetooth?.)

like image 490
antonio081014 Avatar asked May 15 '12 18:05

antonio081014


People also ask

How do I connect my iPhone to my Arduino Bluetooth?

Run the iPhone app on a physical device. Make sure you have Bluetooth enabled. When you see your Arduino show up, click “Connect”. Use a lighter to test that the system is working.

Can Arduino communicate with iPhone?

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.

Can iPhone connect to Ble?

BLE and Apple The iOS5 SDK introduced Core Bluetooth framework that allows interact with BLE devices either as a central or a peripheral. All iOS devices since the iPhone 4S support BLE.

Can HC 06 connect to iPhone?

Hi the iphone is not compatible with the HC-05/06 module because of different bluetooth protocols which Iphone doesn't allow.


1 Answers

As I stated in the above-linked question, general Bluetooth communication to external devices on non-jailbroken iOS devices is restricted to MFi-compliant Bluetooth hardware.

However, newer iOS devices (iPhone 4S, new iPad) are capable of Bluetooth 4.0 LE communication with external devices without the need for those devices to be MFi-compliant. This interaction is done through the new Core Bluetooth framework, which lets you send and receive arbitrary data to and from Bluetooth LE devices. This only works with those listed newer iOS devices, though.

Tim points out an interesting hack that you might be able to get away with in making your device appear like a Bluetooth HID keyboard. Devices like this barcode scanner have special modes to appear as HID devices to iOS. You might be able to pull something together based on this, but all data transfer will be one-way from your device, and it looks like this will require entering that data into text fields as if you had a keyboard connected.

like image 144
Brad Larson Avatar answered Sep 20 '22 11:09

Brad Larson