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.
Related
I'm trying Apples BTLE Core Bluetooth test app.
But when I run on the iOS Simulator, it doesn't work because Simulator's Settings > Bluetooth was off.
But when I click Settings > Bluetooth to turn it on, it opens the right-hand Bluetooth pane and just shows the busy rotator, and never turns on.
Same problem simulating iPhone or iPad.
POSSIBLE SOLUTION ALREADY:
I just found this Apple Tech note,
http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
If solution, then I will add the answer to this question, so that others may benefit.
This is no longer supported, unfortunately. (As of Xcode 5.0, iOS7) The tech note has been taken down and this third-party article describes some of the changes, including loss of BTLE support in the simulator: http://www.doubleencore.com/2013/09/whats-new-in-bluetooth-le-ios-7/
This tech note from Apple describes the complete procedure for getting ios simulator to do Bluetooth.
http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
I bought the Bluetooth LE USB dongle at Best Buy. Be sure to ask for one with Bluetooth 4.0 because they still sell 2.0 (cheap).
I worked on detecting nearest BLE 4.0 ios devices using corebluetooth by referring this link
http://olesitune.mine.nu/blelogg/?page_id=180
It's not detecting any ios device.can anyone provide some information regarding this.
Thanks in advance
Are you using iOS 6? Only iOS 6 has support for setting the iOS device as server/peripheral. Remember that you can not discover any BLE devices from iOS just using the standard bluetooth settings, you have to write an app for both sides of the communication.
That guide will not help you discover any iOS devices, only standard BLE devices like heart rate monitors, temperatur sensors and such if you don't have an iOS6 device which is configured as a peripheral device.
I see that you have also posted this question elsewhere, but please submit some of your project code, results, debug data before expecting any helpful answers
I bought my current Macbook Pro new less than 6 months ago, but my instance of CBCentralManager returns CBCentralManagerStateUnsupported for [centralManager state];
My mac uses Bluetooth software version 4.0.3f12 but I can't find anything that says it supports Bluetooth LE, and I can't find any relevant documentation from Apple saying what Macs support LE. Where can I find this documentation, and if my Mac is in fact not a Bluetooth LE device, what suggestions do you have for bluetooth communications between Mac and iOS? I have an iPhone 4S with Bluetooth LE hardware.
I have a old iMac with "Cambridge Silicon Radio" that does not support low energy and it gets CBCentralManagerStateUnsupported , my MBA from last year does however with a Broadcom chip and i get CBCentralManagerStatePoweredOn for it, they both have version 4.0.3f12 but that is not to be confused with version 4.0 of the Bluetooth spec.
Here are the details from Bluetooth Explorer
To use CoreBluetooth you will need low energy compatible BT 4.0 chips other than that the only other api with bluetooth is GameKit
Even the current page of tech specs on macbook pro says it has "Bluetooth 2.1 + EDR", which means no LE. If it supported LE, it would say BT 4.0
http://store.apple.com/us/browse/home/shop_mac/family/macbook_pro
(see tab "tech specs")
Don't confuse Bluetooth software version (which is just an apple thing relating to their host stack) with Bluetooth spec numbers.
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.
I am in the process of developing an iPhone application that communicates with a number of Bluetooth devices that all support Serial Port Profile - well I assume that it is SPP as they show on my MacBook as Serial Port DevB etc.
I understand that iPhone OS 3.x does not support SPP - is that correct? Does anyone know if that has been "fixed" in OS 4? I've seen reports of OS 4 supporting keyboards, but is that a locked version of HID, or will SPP be available via the SDK?
Kind Regards,
Nige.
It appears to be a locked version of HID, you can track Bluetooth support here:
http://support.apple.com/kb/HT3647