iphone blutooth device connection - iphone

I have an app which has to connect to a medical bluetooth device to get data from that device. (Not to any iOS device).
Using which framework or class I can connect and receive data from?
Thanks.

After you get an MFi license, you then have to have an Apple supplied authentication chip on the bluetooth device. You must create custom protocols to transfer the data.
The BT on iOS is locked down and you can only access simple AVRCP events inside an app, no data transfer is allowed, except using GameKit (which only works between iOS devices).
UPDATE:
If you are using a BLE device then you can checkout this, it is iOS 5 only though.
http://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html

Are you planning to develop this app with a jailbreak device?
If not, you have to enroll the MFI(Made For iPhone) program, then you can define your custom protocol and use the ExternalAccessory framework to communicate with your device.
If yes, take a look at Btstack project.

Related

List (and connect to) Bluetooth devices from within iOS App

I have a device that broadcasts data via bluetooth. It is MFI certified and I already have an application on the AppStore that communicates with it, using the External Accessory Framework.
The problem is that my application assumes the device is already paired.
Is there a way to enumerate all such devices within reach and allow the user to select (and therefore pair) to one of the devices in the list?
No, you can not do this unless two criteria are first met.
Your device must be a Bluetooth Low-Energy device.
The device must have the Bluetooth 4.0 integrated chip which, at the moment, is just the iPhone 4S and the New iPad.
These devices, if operating in the low-energy mode, can be discovered and paired through the CoreBluetooth framework. There is no walk-through form of documentation on this framework, but if you are a seasoned iOS developer, you should be able to figure out how to use the framework through the cut-and-dry framework docs.
As mentioned, information regarding the MFi program and hardware development is locked down under an Apple NDA. However, the information regarding pairing to these devices in this manner is readily available through information in Apple's own documentation.
In IOS 6.0, they introduced showBluetoothAccessoryPickerWithNameFilter:completion:
I haven't had much success with it (when it does find devices, they become lost a few seconds later, but this may be an issue with my code).

iOS Two different apps talk to each other

I have an app that I want to release for iPhone and iPad. There is a feature in the app that allows data transfers via gamekit between other people who have the app. I don't want to make the app universal. I want an iPhone version and an iPad HD version. The iPhone version will be free and the iPad version will be paid. My question is, will my iPhone app be able to "speak" to my iPad app if they are two separate apps? The code base is the same for both iPhone and iPad as far as data transmission goes.
Thoughts?
Yes, the two app's can speak using either GameKit over bluetooth or via Bonjour wifi. When you setup a GameKit session, you define the the session with a string identifier. This identifier is the key, as any app that includes the same identifier in it's code will be able to speak to other apps that use the same identifier regardless of what device or app bundle the user is running with.

iOS application control non-ios devices via bluetooth

I want to develop iOS application that is a remote cotrol via bluetooth for the specific product. I try to research related methods for iOS programming, but most people almost said is impossible in iOS. I know iOS allow communication between iOS devices and iOS devices via bluetooth and also support some bluetooth control iOS. But I want to develop iOS application that can control non-iOS device via bluetooth.
It is possible - The non iOS device must be an apple approved accessory or MFi Compliant
It is possible if Jailbreaking is an option: you can use BTstack.org to use RFCOMM & L2CAP to talk to remote Bluetooth devices.

External bluetooth devices to iphone?

is it possible to get data from external bluetooth device(not iphone) to iphone(bluetooth sensor to iphone)?because normally apple requires both end must open the application with same GKsessionID?any help please?will mFI provide special chip t0 install in external device?
This is related to the question about getting data from external device.
Se if this helps. I am trying to use the same in one of my project now.
I'm not sure what you mean about a special chip, but I can tell you that bluetooth can only be accessed via GameKit, which only works on Apple iOS devices. I'm sure there's some private api, but that would require jailbreaking, which would get your app rejected from Apple right away.

IPhone SDK - Bluetooth capabilities

with the current version of the iPhone SDK, is it possible to establish a bluetooth connection to any other bluetooth device, or are there restrictions?
A customer wants an iPhone app to get specific data from another device via bluetooth. This device is measuring some chemical stuff and has a bluetooth interface. So the customer wants to send some data to this device, and then the device sends data back to the iPhone. Is this possible right now?
And by the way: Is it possible to offer iPhone apps to a customer other than using iTunes?
Thanks for your help!
Here you go! All I can say is have fun trying to get in. And to get the apps on try ad hoc which is part of the $99 a year dev program