Can the iOS App communicate with the devices of Bluetooth V2.0 through CoreBluetooth.framework? - ios

I'm developing an App, which is required to communicate with the devices of Bluetooth V2.0, V3.0, or V4.0. The communication is completed through the serial service of Bluetooth. The App is for iPad. We develop it with the Xcode V7.3.1 on the MacBook OS X El Capitan V10.11.4. There are many materials about the Bluetooth development for iOS, but lots of them are for CoreBluetooth.framework. I indeed tried to connect a device in hands through CoreBluetooth.framework, but it does not work. I have some basic questions about the CoreBluetooth and the Bluetooth-communication development.
Suppose the iPad, on which our App runs, has the chip of Bluetooth V4.0 (Smart Ready), can the App establish the Bluetooth connection with the devices of Bluetooth V2.0 or V3.0 through CoreBluetooth.framework? and then communicate with them?
If the answer of the 1st question is "No!", are there any other APIs available for the iOS App to communicate with the Bluetooth devices? If there are, what are they? Of course, we suppose that the Bluetooth devices are the MFi Bluetooth devices.

iOS devices which support Bluetooth Low Energy (v4.0) can connect and accept connections from other BLE compatible devices.
However, in order to connect using older protocols, you would need to become a member of the MFI program.
Hope this helps

Related

Is it possible to connect bluetooth low energy OBDII devices to iOS?

I want to develop an app that allows me to connect Bluetooth 4.0 OBDII to an iPhone and read car data from it. From what I've read so far, it's not supported, but the OBDII adapters here and here both support iOS. How is this possible?
Bluetooth 4.0 devices have been supported since iOS 6 which was released in 2012. Since then, a multitude of apps have been written that communicate via BLE.

Bluetooth sensor iOS app

Is there any way to list all the Bluetooth enabled iDevices in my application.
I tried out with coreBluetooth framework but it needs atleast two devices (central and peripheral) and communication happens only between these two devices.
But my requirement is: The application installed on my device should list all the iOS devices with Bluetooth enabled(these devices will not have any app installed on them).
Please post your suggestions.
Thanks.

iOS sample to connect a Bluetooth with MFI

I have an application for Android that communicates via Bluetooth with a hardware we develop. Now I need to develop an application for iOS that connects with the same hardware via bluetooth. This hardware makes serial communication via Bluetooth.
I've been researching quite recently and found two outputs:
- Bluetooth Low Energy (BLE).
- Bluetooth with "MFI Program".
Analyzing the smartphone today, both Android as iOS, the best option would be the MFI. Due to availability on older smartphones. Even already started the enrollment process over MFI program.
My question focuses on the development on iOS. And my question is:
Looking for Objective-C. Is there a difference between connecting to a Bluetooth Low Energy or MFI? Could someone show me an example of connecting via Bluetooth MFI?
As I understand it, devices enrolled in the MFi program use the EAAccessory framework, not CoreBluetooth. Documentation is here: External Accessory Programming Topics.
Sample code here.
MFI is for Bluetooth device Hardware.
Coming to connecting to BLE device from iOS devices, you have to use CoreBluetooth framework.
http://www.raywenderlich.com/52080/introduction-core-bluetooth-building-heart-rate-monitor
Check this link.

how to connect to Bluetooth 2.1 enabled device with iphone 5 in ios

I have a medical device which is Bluetooth enabled with version 2.1+EDR.
I want to integrate the device inside my application. I am targeting mainly the iOS devices with BLE/Bluetooth 4.0 .
Any idea the latest iOS devices will be compatible with mentioned medical device. IF so how will be the approach.(means I can use Corebluetooth ,EAAccessory framework or I have enroll the MFi Program).
If the device is Bluetooth 4/Bluetooh Low Energy (also known as Bluetooth Smart) the you can use Core bluetooth. If it is Bluetooth 2.1 then you need to go through the MFI program and embed an Apple chip in your device I order to identify it to iOS and use the external accessory framework

Testing bluetooth from within iOS Simulator

I have followed the instructions on Technical Note TN2295 to enable testing bluetooth within the iOS Simulator, which includes buying a separate Bluetooth 4 dongle. However, within the Simulator when I go to the iOS Bluetooth settings, I can turn bluetooth on, but it never discovers any other bluetooth device (yes, those devices are discoverable).
I have tried the following to narrow things down:
I can pair the MacBook with the bluetooth device (Pebble watch), but it is not clear if I am doing so with the in-built bluetooth, or the bluetooth dongle.
I can plug the dongle into a Windows PC that doesn't have bluetooth, and then pair it to the Pebble watch. This tells me the dongle is working.
Other questions on SO relate to not being able to turn bluetooth on in the Simulator, but I am getting past this point. Can anybody help with the next step?
According to this ReadMe from ExternalAcccessory (non-LE bluetooth) framework's demo, there's no support to connect to real accessories through simulator.
Also, the technical note you mentioned applies only to the CoreBluetooth framework (LE bluetooth).
So you can only connect to Low-energy (Bluetooth 4.0) devices from your iOS simulator.
As far as i know, Pebble watch is using both Bluetooth 2.1 and Bluetooth 4.0 though. In this case, you can try connecting to it using CoreBluetooth framework.

Resources