I am developing an iphone application which will communication with multiple bluetooth receivers that all have the same uuid. I am trying to figure out how I can create a mapping to allow the client to give each device a personalized name that would be persistent across connects/disconnets with the device. I have done something similiar in bluetooth 3.0 by mapping the name to the mac address of the device, but it doesn't appear the the mac address is available in bluetooth 4.0 of the CBPeripheral. Anyone having any ideas on how to solve this?
Related
I am trying to establish a bluetooth connection between a Windows CE handheld device(A bank card reader) and iPhone. I want to make data transfer betweeen the two. I have read that prior to IOS 6.0 this was not possible. But with IOS 6.0 I can use core bluetooth to establish a connection.
I would like to know whether the handheld devices bluetooth should be of certain spec to make it work with IOS devices? Or are there any restriction fro any bluetooth device to communicate with an IOS device?
I have read here that the device should be Bluetooth LE. How can I detect whether my handheld device is bluetooth LE?
Thanks
It would be nice if you would provide more information about this Windows CE device.
Just search for the specs of it. If it supports Bluetooth 4.0 LE you have to look if it specifies any of the known profiles. If not the manufacturer may have implemented an own profile to provide certain services and characteristics.
If this is not the case, there is no possibility to establish a connection over CoreBluetooth.
But if its a bank card reader I can't imagine, that it supports BLE.
If the device just supports Bluetooth 2.x you can only connect via the External Accessories Framework. But this only works if the manufacturer bought the MFi (Made for iPod) license and implemented the required specs into the hardware (only then the device is "MFi approved").
I have a requirement - I need to connect the my iPhone application with external Bluetooth Devices like (Thermometer, Oximeter) without External Accessory and I need to transfer the data with my application to Bluetooth Device. Is it possible? Can I connect my iPhone to any other devices (not a Apple device)? Is anyone aware of this?
if you are asking for connect bluetooth with any other bluetooth than its possible from now.
in ios apple introduce core bluetooth for connect with external bluetooth devices. The CoreBluetooth framework provides access to Bluetooth 4.0 low energy devices. but its support after ios 5.0 .
you can get more information and demo source code for it from below url.
http://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html
hope this will help you.
if you are asking for connect bluetooth with any other bluetooth than its possible from now.
you have aslo get more information from given below url.
http://developer.apple.com/library/ios/#samplecode/TemperatureSensor/Introduction/Intro.html
I would like to build an IPhone app that should check the identity of a BT device, by name or MAC.
If the device is not part of the MFI programme what profiles should the device support in order for an IPhone app to connect to it and validate its MAC or name ?
Cheers,
Ionut
I'm not sure you need to connect to something to get a MAC address or a name. My coworker's iphone seems to see all other bluetooth devices in our work area and displays the names, it just won't connect to them. And I'm sure it gets the MAC before it gets the name, but avoids displaying it to the user because names are a lot more friendly.
I do know that with android and blackberry, you actually use MAC addreses as your basic internal identifier, and only pull out the name when you want to identify your remote devices to the user.
If you really do need to make a connection from iOS to non MFi bluetooth radio, the advanced audio distribution profile (A2DP) would do what you want. There's a product out there I've seen that is a bluetooth controlled power board, and it used audio pulses being transmitted over A2DP to get around MFi requirements. Though you should reconsider this approach because it's problematic for a non audio device to advertise an audio profile. And this fake audio device will get seen by by a lot more than your application.
If you're happy to only work with iphone 4s and above, I've also heard rumours that bluetooth LE(4.0?) devices are not required to have the apple verification chip... but haven't really looked into it
After searching on Google, I found that people say it's only possible to connect an iOS device with a non iOS device with the 'MFi program'. Is that true?
My project is mainly focused on sending and receiving information with the Arduino device via Bluetooth directly.
Is communication between iOS and non iOS devices without jailbreak possible? If yes, is there a reference?
(I viewed Stack Overflow question How can an iPhone access another non-iPhone device over wireless or Bluetooth?.)
As I stated in the above-linked question, general Bluetooth communication to external devices on non-jailbroken iOS devices is restricted to MFi-compliant Bluetooth hardware.
However, newer iOS devices (iPhone 4S, new iPad) are capable of Bluetooth 4.0 LE communication with external devices without the need for those devices to be MFi-compliant. This interaction is done through the new Core Bluetooth framework, which lets you send and receive arbitrary data to and from Bluetooth LE devices. This only works with those listed newer iOS devices, though.
Tim points out an interesting hack that you might be able to get away with in making your device appear like a Bluetooth HID keyboard. Devices like this barcode scanner have special modes to appear as HID devices to iOS. You might be able to pull something together based on this, but all data transfer will be one-way from your device, and it looks like this will require entering that data into text fields as if you had a keyboard connected.
Alasdair Alan's "iOS Sensor Apps with Arduino" is a good resource to look at. I've used Wifi with another microprocessor (mbed) but not sure about bluetooth. Alasdair is active on Twitter and he usually is kind enough to answer questions.
I need to know the Bluetooth MAC address of an iOS device, is there any way this data is accessible?
The purpose would be to identify when any user gets near that Bluetooth device.
In case this isn't possible in any way, what alternatives should I take into account?
No this is not possible with iOS public APIs