iPhone Bluetooth SDK - discover Android / Windows phone 7 devices and background discovery - iphone

I am an Android developer and .Net developer and not yet have acquired the needed knowledge regarding iOS .
I did a search on-line but couldnt get conclusive answers to several questions I have which are the following :
1.iOS Bluetooth , do I have to use the Bonjour or Game Kit or can I access a lower level API.
2.Do currently I have an option to perform pairing between an iPhone device and an Android device ?
3.Can an application access the iPhones MAC ID and Friendly ID Bluetooth slots and change them while its in the background ? Or while the device is sleeping ?
4.Can an application set if the iPhone is discoverable or not discoverable to other devices - not iPhone ? Can it perform it while in the background ?
Regards !
Jessy85

This might be helpful to you: How can an iPhone access another non-iPhone device over wireless or Bluetooth?
Generally, there is NO option to communicate with non-iOS device via bluetooth in regular iOS API. GameKit is intended for using between only iOS devices. However I don't know the lower level API which open to only licensed accessory hardware developer except acquiring the license is incredibly hard differently with software license.

1) You can only get to the base API if you are developing specific hardware and are a MFi member. http://developer.apple.com/programs/mfi/
2) Don't think so. But Not really sure
3) You want to change the mac id in the background? Not that I know of. Also it seems like a really questionable idea.
4) Again don't think so. Maybe with MFi but I don't know.

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 5.0 SDK - USB host OTG

I would like to connect to the iPhone a device that was not manufactured specifically for the iPhone. It can be accessed from a PC through USB, so what I'd like to do is connect it through an iPhone dock connector-USB adaptor. I am aware of the previous questions regarding this topic but most of them seem outdated.
Can it be done in the newest iOS SDK (5.0 or higher)? (If no, can I dit it with a jailbroken iPhone?)
Are there any limitations?
Do I have to join the MFI program? AFAIK, MFI program is aimed at companies that are creating hardware components together with the software.
You should be able to do it with a jailbroken phone.
Otherwise you would have to join the MFI, and it would additionally require custom hardware on the device.

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 4: set up/use bluetooth SPP

How would I program an iPhone app that utilitizes bluetooth SPP to connect to another bluetooth device? I can't find the documentation anywhere.
Thanks so much.
EDIT
I guess Mac OS X uses RFCOMM but i can't find anything similar in iphone documentation
As mentioned here:
iPhone Development with Bluetooth SPP OS 3/4
It's not supported and I doubt they will both supporting it either:
http://support.apple.com/kb/HT3647
I'd love them to support it too, but I just don't think it's going to happen. Because it doesn't help them to sell more gear, it becomes a very low priority.

Does the iPhone 3.0 SDK support serial communication?

There is already a hack to get serial communications working through the iPhone's 30-pin connector, which requires a jailbroken phone. Looking at the the iPhone development website, the 3.0 SDK seems to be a bit friendlier when it comes to communication with 3rd party hardware.
I'm not part of the developer program so can't dig into any of the technical details of the 3.0 SDK, but I'm wondering if serial support through the physical connector is going to be supported. It says Bluetooth is going to be supported, and that it's possible to go blutetooth<->serial, but I'm asking about the physical connector specificially.
What I'm considering is an iPhone app which connects to and existing device I have which speaks serial. I've never done any iPhone development or hacking.
The 3.0 SDK is still under NDA, so no registered developer is at liberty to talk about it. Just wait one more week, there's a good chance that the 3.0 SDK will go public at the WWDC keynote on June 8.
The physical and bluetooth connections are both restricted to "Made for iPod" devices. If your device is MFi then you can communicate over whatever protocol you want. If not then you are not going to be connecting without jailbreaking.