Can I connect iPhone and bluetooth 2.1 device and work with them via Core Bluetooth? I just need to send and receive some NSString data from/to iPhone.
No, Core Bluetooth only supports Bluetooth Low Energy/Bluetooth 4.0 devices. You can only connect to Bluetooth 2.1 devices via the MFI program and the external accessory framework.
The only exception is "standard" devices such as keyboards and audio devices (hands free etc). However in these cases you can't access any underlying Bluetooth information - you can simply send audio or receive keyboard input.
The only way your own device talk to your iPhone is Bluetooth Low energy if you can not apply MFI program(Most of cases). You need some Bluetooth Low Energy DevKit like TI2540/TI2541 or Nordic or Dialog, they are equipped with rich interface like UART, button, LED and simple speaker. The cheapest chip on market is TI2540(also oldest), but it is MCS51 based core MCU, not very friendly. Other arm based dev kits are more friendly.
The core bluetooth in iOS is not very easy to use, I will recommend you try https://github.com/kickingvegas/YmsCoreBluetooth , it is awesome.
Not possible to work with 2.1 bluetooth in core bluetooth library.
Core bluetooth support Bluetooth Low Energy(BLE) support.Ex. Bluetooth 4 or greater version of BLE devices.
Bluetooth 2.1 is classic bluetooth device.
Related
I have a idea that requires connecting an ios device to a Raspberry Pi without the end user having to do anything special. The device will not be connected to an existing wifi network so BT or wifi hotspot seem to be my only options, BT preferred.
I'm aware that Apple does require some sort of BT hardware approval which I wont have I'll be using generic BT hardware. Once a connection is established I then want to be able to request data or call API's running on the Raspberry PI.
Does any of this sound achievable and are there any links that may help.
There are two flavours of Bluetooth: the so-called Bluetooth Classic, and the newer Bluetooth Low Energy (also called Smart Bluetooth or Bluetooth 4.0, though this is actually incorrect as BT 4.0 includes both Classic and Low Energy).
On iOS, Bluetooth Classic devices do indeed need to go through specific processes (MFi), or use an existing BT protocol supported by iOS to be used.
However, you can connect to any Bluetooth Low Energy (BLE) device, without any need for MFi, approval, or support by iOS. This is done though the Core Bluetooth framework.
As long as Bluetooth is enable in the iDevice, you can connect to a BLE device without any user interaction (though UX usually dictates doing so, so a user can actually select a specific device if there are many "matching" devices in range).
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
We are making MFi hardware and an iOS app. We will want to have the BT device notify our app even if we are not running periodically when certain events happen.
I know the CoreBluetooth API is the one to use, but can't tell for sure if that API only works with BT Low Energy devices or if it will also work with regular (MFi of course) BT 2.1 and higher devices.
So my question is: Does the CoreBluetooth API only work with Bluetooth Low Energy devices or will it also work with 2.1 devices?
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.
I know that there are a lot of restrictions on bluetooth when it comes to iOS. I wanted some more information on Bluetooth Low Energy (LE) and the CoreBluetooth Framework apple provides from iOS 5.0 and greater.
Can i connect ANY Bluetooth LE device to an iOS device using the Core Bluetooth Framework?
Is there any Bluetooth LE device in production,that comes with a three axis accelerometer and a gyro that i could use like a Human Interface device?
Sagar, Maybe you can explain more about what you want to do.
Any BT4.0 LE device can connect and communicate with a iOS app using the CoreBluetooth Framework.
The CC2540 dev kit does contain a fob that has accelerometer, it does not have a gyro.
The USB dongle that comes with the kit is for communicating with the fob from a PC/Mac, you do not need it for communicating with the iOS device.
Would the following be possible?
Let's say I have a scale with Bluetooth capabilities, when I turn it on, it sends the weight via BT.
Is it technically possible to develop an iOS app which pairs with the scale and receives the data from it?
According to Apple:
Technical Q&A QA1657: Using External
Accessory framework with Bluetooth
devices.
Q: I understand that the External Accessory framework in iOS 3.0 and later will allow my application to communicate with Bluetooth devices. So why doesn't my application see the Bluetooth accessory sitting next to my iPhone?
A: The External Accessory framework is designed to allow iOS applications to communicate only with hardware accessories that are developed under Apple's MFi licensee program. MFi compliant accessories can be implemented as wired devices, meaning they plug in to the Apple device's 30-pin or Lightning connector, or as wireless devices, whereby they use Bluetooth as the communication channel. Either way, an application that uses the External Accessory framework will not be notified of an accessory's presence unless the accessory identifies itself as being MFi compliant, i.e., it was specifically designed to interface with an iOS application.
Yes, we can connect Bluetooth devices with iOS application through Core bluetooth framework. This framework is supported on the iPhone 4s, iPhone5,iPhone 5S ,iPad3. We can use BLE 4.0 for the communication between scale and iOS application. Here, iOS application become the client and scale become the peripheral. You Can set as well as get data from the weighing scale.
While the External Accessory Framework with Bluetooth is one of the possible solutions, it has additional requirements to be built as per Apple MFi, here Bluetooth reference is to the Classic Bluetooth (Version 3.x and below)
The best solution for the use case you have defined is to use the Bluetooth Low Energy (LE) (aka Bluetooth Smart) technology (Bluetooth 4.0) and it is available to applications as part of the Core Bluetooth Frameworks
Here are the APIs for Core Bluetooth that applications can use.
While currently Bluetooth Low Energy is supported on the latest iPhone 4S, New Mac Mini & Macbook Air - its expected most new Apple & Others hardware will have this standard.