Trying to get iPhone / iPad / iPod Touch to connect to a generic Bluetooth Device.
Works for Windows 7 Bluetooth / Android Bluetooth / Mac Laptop Bluetooth, but does not seem to work with any of the Apple iOS devices.
I assume that this is an Apple decision to limit the user of Bluetooth Devices to only the devices that they seem "correct". So just want to make sure this is the case.
What is the generic bluetooth device ? and what bluetooth profile does it use ?
Devices connect only with compatible devices which have the compatible profile, not all devices support all profiles.
In Addition with iOS if you are using SPP there is additional requirement to develop as per the Apple MFi guidelines.
If you have a Bluetooth 4.0 Low Energy device, you can do it using the new Core Bluetooth framework (assuming you have an iPhone 4S). Otherwise, as noted, only approved devices will connect.
Related
I want to develop an ios application that communicates with another bluetooth supported device via Bluetooth SPP.
Does iOS support SPP?
I checked iOS supported profiles bu couldn't see anything about SPP..
http://support.apple.com/kb/ht3647
So, is there any other way for using SPP ?
Thanks..
No, unfortunately Apple (iOS) Bluetooth does not support SPP. In order to make a serial cable communication to an iOS Device you have to use the Authentication CoProcessor. I guess from that reason, Bluetooth does not support Wire Communication Emulation because you will not have the Authentication of the "Genuine iPod Device" iAP Protocol (MFI Specification)
Does CoreBluetooth allow detection of a Bluetooth 4.0 dongle? Or does the peripheral device have to be under the "Made for iPhone" program to be detected?
The dongle essentially turns the Simulator from an iPhone 4 (without BLE4.0 support) to iPhone 4S (with BLE4.0 support)
If you are using an older Mac, then there are some things you need to do to make it load your dongle.
http://www.atpeaz.com/index.php/2012/using-unsupported-bluetooth-4-0-usb-dongle-with-os-x/
Then, you need to issue a Terminal command so the Simulator will use the new BLE 4.0 dongle.
http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
Terminal Command
This needs to be issued while the Simulator is NOT running, after this command, then launch the Simulator.
sudo nvram bluetoothHostControllerSwitchBehavior="never"
Is the dongle the peripheral device that you want to talk to?
The dongle does not need to be MFI to be detected. If you are using iPhone 4S (with bluetooth 4.0), you can talk to it without it being MFI. However, if your device does not support bluetooth 4.0, talking to the device (ie, create EASession, NSStreamInput/Output) requires that device being MFI.
I want to develop a toy car, which I can use iPhone to control it. My toy car has a bluetooth interface. So I am wondering is it possible to connect to it from my iPhone. The toy car is not a MFi (made for iPhone/iPod/iPad) program.
My iPhone mode is iPhone 4S.
If not possible, is there any alternative way?
Without joining Apple's Made for iPhone (MFi) program, your choices are really WiFi or Bluetooth LE. WiFi is more power-hungry and, unless you're very careful in your chip selection, can be difficult to implement. Bluetooth LE is only supported by iPhone 4S and the new iPad (i.e. 3rd-gen); it's likely to be supported in future iOS devices, such as the new iPhone and much-rumoured 'mini' iPad.
Just Bluetooth 4.0 isn't enough, from my understanding, it needs to be Bluetooth 4.0 LE (the low-energy variant). Support for such devices is provided in the iOS 5.0 SDK and later with the CoreBluetooth framework. See Apple's documentation on the CoreBluetooth framework [free developer registration required].
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.
I have two questions:
I want to trasfer data between iPhone and another Bluetooth device. It may be iPhone, iPod touch or any other mobile, like Nokia, Samsung or any PC. Is it possible in iPhone programming? If yes, please give me guidelines.
Can we test Bluetooth applications in iPhone simulator?
No we can't test bluetooth in simulator. for testing we need minimum ios 3.0 version
iPhone Bluetooth Does Nothing But Calls