Multi bluetooth device Connection using EAAccessory framework - ios

This question might seem silly but since im new to IOS Developement i ask it again.
Can we connect to multiple devices at a time in IOS using the EAAccessory framework?
What is the maximum data rate for an Iphone, Ipad mini, Ipad, Ipod using bluetooth connection?
Will the data rate change according to the framework used in the application? If so, then what is the maximum data rate for the Iphone, Ipad mini, Ipad, Ipod?
Thanks in Advance
Ramnathpraveen G

I only have an answer to your first question.
Yes it is possible. I just did a small test with a iPhone 5c and 2 accessories connected via Bluetooth. I can see that these accessories can connect at the same time.
I recommend that you give the EADemo a try to test more scenario's.
I do not have information regarding your your other 2 questions.

Related

Identifying another device using CoreBluetooth

I'm jut trying to make a sample iOS app that will scan & collect data from a another bluetooth enabled device. Initially I'm just trying to scan a another bluetooth enabled device. So I downloaded a sample from Apple "BTLE Central Peripheral Transfer" app. I'm confused with UUID. There are two types of UUID I see in the sample app Service and Characteristic. How to get this two different UUID's ? My first mission is two identify a another bluetooth enabled device through my app. Now I'm testing with two iPhone (5 & 4 running iOS 7),trying to scan a another iPhone through my app. It looks quite difficult at the moment. By changing the correct two UUID's Is it possible to scan the another device ? Please provide your suggestion.
Edited :
I have two iPhone for testing 1. iPhone 5 2. iPhone 4 My big concern is Does iPhone 4 has BTLE ? Do both iPhone I test requires BTLE ?
How to identify a another device and pair it ?
I would suggest taking a look at this example on github: https://github.com/liquidx/CoreBluetoothPeripheral/tree/master/CoreBluetoothOSXCentral
If that works for you - try adopting your code. Otherwise, provide code examples that you assume may be problematic

Multipeer Connectivity : Not discovering device over Wifi Infrastructure

I created a network on my Macbook Pro (Right below the list of WiFi's) and I had 2 iOS 7 (iPad 2 & iPod Touch) devices join to this network. When I started to browse for devices, I just have the "Searching " and the wheel spinning in the native BrowseViewController. Apparently one device is not discovering the other device. But the setup works when I have bluetooth switched ON on both. Please, can you help me with this ?
I'm actively developing MPC at the moment and debugging using two Macs. As #samkit mentions, the devices need to be on the same WiFi network. If that is true for you, make sure you also implement the didReceiveCertificate method per this answer to ensure your devices get to the connected state
Make sure that Both devices are connected to same wifi. They will definitely work.
I think I have found out the issue. In fact, an observation here. It is not working only on the iPad 2 I am using. I tried the same code with 2 iPods, the result : ButterSmooth.
But what hurts is the fact that nowhere its mentioned. Note, my iPad 2 is running iOS 7.

multipeer connectivity test on iphone and a simulator simultaneously

Hello I was searching in all topics of the forum about how can i test an app which uses multipeer connectivity framework. Can someone tell me how can i test an app by using an iPhone device and a simulator simultaneously, player one for device and player two on the simulator and vice versa. I already test the app by using two simulators one per mac - user on a mac and its working but it is not convenient to continuously switch users to test an app.
I tried all the alternatives, running once in simulator and one on device at the same time,make second target, nothing happened.
Thanks in advance
If you put your iPhone and your Mac on the same WiFi network they should able to discover each other without any problem.
Yes you can test your app on Device an Simulator simultaneously.
I'm developing an app with Multipeer Connectivity right now and communication between
Iphone and Simulator works fine.
I'm running it on a MacBook Air.
All you have to do is to make sure, that Bluetooth is enabled on your Mac.
You can do this in System Preferences -> Bluetooth.
In addition to testing on WiFi, you can also test your app based on "Multipeer Connectivity framework" on simulator and any IOS device using Bluetooth, As long as simulator and devices are connected in same Personal area network.
For example, on Iphone you can turn on Personal Hotspot (in your phone General settings) to connect your phone with your mac in same personal area network via bluetooth or WiFi and then try testing your app sharing messages between simulator and Iphone using any personal network based on Bluetooth or WiFi.
All the combination will work as long as app using "Mutlipeer connectivity framework" are on same personal area network.

How to connect iOS app with non iOS Bluetooth devices?

I want to connect my iOS application with a bluetooth device which is non iOS based device and used for measuring Glucohealth and also not MFI compliant. Is there any way to connect iOS app with that device? If yes, then how? I searched that before 2 years it was not possible. But need to know if this can be possible now?
Now you can do it with help of CoreBluetooth framework if you device is Bluetooth 4.0-compliant.
If it supports only Bluetooth Classic then you can't communicate with it if it is MFi-compliant device

Bluetooth framework for older iOS devices

My question is related with Bluetooth technology around iOS.
I've watched WWDC about Bluetooth Low Energy 101, what's new, the basics etc, and about using the CoreBluetooth framework available in iOS 5 and later.
I've looked through different sites and documentations trying to find more information about Bluetooth 2.1 and 4, but there is so few.
GameKIt is not an answer, I am developing an app to work with an non-iOS device.
Some of the topics I've went through:
Connecting to a Bluetooth device from iOS, no MFi
iOS - How to integrate bluetooth devices in my app
http://www.bluegiga.com/files/bluegiga/Presentations/BT4_0_for_Apple.pdf
Bluetooth 4.0 with older Bluetooth
IPhone Bluetooth Connectivity to Non IOS Devices
But the supported devices are just 4S and up and latests iPads...
1) will the latest CoreBluetooth framework just fail on older devices?
2) Did apple have any frameworks for BT 2.1 or something? What to do, there are still so many ipad2 and iphone4 users, I can't just ignore them.. So what framework actually to use?
Any help, advice, idea,link will be highly appreciated!
Well...
You need to understand one thing: CoreBluetooth framework is used for Bluetooth Low Energy and ExternalAccessory framework for the "Classic" Bluetooth. It is really two kind of different approchs of what we usually call Bluetooth (as a simple user/consumer).
Only recent iDevices support Bluetooth Low Energy (iPhone from 4S, MacBook Air from 2011, etc.). That's why it doesn't support iOS4 for example.
For your information, Bluetooth Low Energy is kind of a fork of Bluetooth which appears only in Bluetooth 4.0. Even if having a Bluetooth 4.0 device does not ensure that it supports Bluetooth Low Energy (as I said, it's a fork which is not always include).
As a simplistic vision, Bluetooth Low Energy works like a NSDictionnary with a NSDictionnary in it. You get a Peripheral, which as one of more Services which has one or more Characteristics. Quite different from a common device, right ?
Did apple have any frameworks for BT 2.1 or something? What to do, there are still so many ipad2 and iphone4 users, I can't just ignore them.. So what framework actually to use?
To talk to a Bluetooth 2.1 device, you need to be in the Made for iPhone accessory program. The details of it are under NDA, but you should expect things like Apple reviewing your manufacturing processes and auditing your accounts, and putting a custom chip into the accessory. If you don't make the accessory yourself, you're probably out of luck.
The only exceptions are the classes of device that iOS supports natively: keyboards, audio output, car stereos, other iPhones etc. However, you still can't send and receive arbitrary data, you're limited to using whatever APIs exist for the specific functions (e.g. for audio output, Core Audio lets you set a few properties for how Bluetooth devices behave).

Resources