CoreBluetooth only support Bluetooth 4.0? - ipad

CoreBluetooth only support Bluetooth 4.0?
Using CoreBlutooth, I can not find my iPod3 from Mac Mini. Who can tell me if can i develop Bluetooth program on the old apple device(like iPod3)?
NSDictionary * options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:FALSE], CBCentralManagerScanOptionAllowDuplicatesKey, nil];
[manager scanForPeripheralsWithServices:[NSArray arrayWithObject:[CBUUID UUIDWithString:#"180A"]] options:options];

Take a look in the framework reference:
The CoreBluetooth framework provides access to Bluetooth 4.0 low energy devices.
So yes, the CoreBluetooth only works with iPhone 4S's and new iPad's.
To develop using Bluetooth to your older devices, use IOBluetoothUserLib

also remember that discovery of Bluetooth LE devices is only available in app, ie you cannot find LE devices through the standard iOS Bluetooth settings, you have to write an app for it.

Related

Using Bluetooth 5 on iPhone

I have application that already uses BLE. I know bluetooth 5 is supported on iPhone 8 and iPhone X. Client wants me to add support for bluetooth 5. I found that CoreBluetooth can be used only to "Communicate with Bluetooth 4.0 low-energy devices". How can I use Bluetooth 5.0 on iOS?
At the time of writing this, Apple has not provided API support for Bluetooth 5 functionality or any of its features (e.g. Long range, 2xSpeed, LE Advert Extensions, etc), so there's nothing you can do at your end. Currently only Bluetooth 4.2 features are supported (e.g. Data Packet Length Extension, LE Secure Connections, etc). Please have a look at the links below:-
https://developer.apple.com/videos/play/wwdc2017/712/
https://developer.apple.com/bluetooth/
I hope this helps.
iOS BLE 4.0 API s are not specific for Bluetooth 4.0 low-energy devices. Whatever works with Bluetooth 4.0 low-energy devices will also work for Bluetooth 5.0 low-energy devices.
Core Bluetooth library was working with BLE.
Its means no need to write different delegates and methods for bluetooth 4.0 or bluetooth 5.0.
All delegates working same for BLE(4.0, 4.1, 4.2 and 5.0 = BLE).

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

Is there any framework for bluetooth communication for iOS?

I need a library or framework for bluetooth communication for iOS but not for Bluetooth LE.
I want to communicate a device that cast bluetooth package, but my device not support LE. I have iPhone 4, iPhone 4s and newer support Bluetooth LE.
for this iPhone 4s and newer version there ne problem lots of example I can find and also CoreBluetooth library support this.
So I want proper library or framework for this.
Any Idea or Suggestion would be highly welcome.
Core Bluetooth is designed specifically for Bluetooth LE, a.k.a. BLE, Bluetooth 4.0 and Smart Bluetooth.
Core Bluetooth does not work with the older, classic Bluetooth devices. Those require special APIs and hardware available through Apple's MFi program. Already answered

Using CoreBluetooth/CBCentralManager.h framework

I am using CoreBluetooth framework for first time in my Objective-c code.
My iPhone version is iPhone-3GS.
When I run my code, I get output as "The platform or hardware does not support Bluetooth low energy".
I saw 3GS specifications and got to know that it supports v2.1 with A2DP. But what I expected is whether Bluetooth is powered ON or powered OFF.
How can I get Bluetooth status through objective-c code using CoreBluetooth framework?
How to get Bluetooth status through Objective-c ?
Can anyone share a link or tutorial on this?
CoreBluetooth is the API meant for Bluetooth LE in iOS5+.
It does not support "normal" Bluetooth or any "normal" Bluetooth profiles.
As far as I remember, the first iOS device supporting Bluetooth LE was the iPhone 4S - your 3GS just does not have the correct hardware.
Bluetooth LE is part of Bluetooth 4.0 and meant for reading sensors and alike...
https://en.wikipedia.org/wiki/Bluetooth_low_energy
You will definitely not make it work using your 3GS, sorry.

iOS and bluetooth...what framework will i need?

I have a Bluetooth 4.0 Low Energy board. I want to develop a iOS app for the iPhone 4S that receives and sends data from the board.
What framework do I need to reseach/find-documentation-for? Will the Core Bluetooth framework in the iOS SDK work? Will I need to use the GameKit framework?
I just started looking into iOS development a few days ago so I'm trying to navigate through this maze! Thanks!
Core Bluetooth which is part of the iOS5 SDK is all that you need.
You do not need Gamekit or MFi to develop Bluetooth low energy apps.
You will also need a device that supports Bluetooth Low Energy 4.0 (iPhone 4S or the new iPad) to test your app.
Frameworks which are used for discovering the device via Bluetooth are:
CoreBluetooth framework for discovering BLE devices
GameKit Framework for discovering other type of devices.
EAaccessory framework which can be used to interact with paired Bluetooth devices or devices connected through wired, Apple Connector at the base of the device.
Apple MFi Program means you will have a device that is designed to be compatible with iOS devices (meaning, the manufacturer must be a member of the Apple MFi program) and the device manufacturer most provide a protocol that you must add to your applications info.plist file.
Focus on Core Blutooth. Gamekit will only be useful with other iOS devices.

Resources