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.
Related
iOS 6 can use simulator to run BLE for debug.
But when I upgrade to Xcode5, the iOS 7 simulator without bluetooth switch.
So,I can't run BLE on iOS7 simulator.
Is that a only way to load the program on iphone to test the BLE?
Yes correct. This was discussed in the Core Bluetooth 2013 WWDC video. Effective iOS7, you need to run your app on a physical device to test BLE.
Xcode Simulator not support BLE, need to real/physical ios device.
I am writing an application and try to configure mouse, gamepad and handset. Those BT devices are using BT 4.0 chipset (single mode) and BT3.0/BT4.0 (Dual mode). They both accept GATT protocol.
I would like to know with iOS 5.x - coreBluetooth framework, whether my application has any chance to communicate to BT3.0/BT4.0 device via GATT on iPhone 3GS.
It seems that coreBluetooth would not work on iPhone 3GS as iPhone 3GS does not have BT 4.0 module.
Am I right ?
You are correct. CoreBluetooth is only for Bluetooth 4.0 (BLE) communications. So it wont work on your 3GS.
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].
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.
Not able to connect iphone simulator to iphone device in bluetooth gamekit application (iPhone SDK) ?
same bluetooth application is installed in both simulator and device, when i am trying to connect device with simulator (via bluetooth), in simulator side(mac system) i am able to get device, but when i select that device, app saying that "Waiting for ******* iphone.." and then after some time, message appear like "Connection Lost". I mean, i am not able to connect iphone simulator to iphone device (via bluetooth).
How to solve this issue ??
The iPhone Simulator cannot connect to a device through Bluetooth. From the Game Kit Programming Guide:
Bluetooth networking is not supported
on the original iPhone or the
first-generation iPod Touch. It is
also not supported in Simulator.