Bluetooth communication between Mac and iPhone - iphone

I want to write an app communicating between Mac and iPhone.
Specifically speaking, I want to write a mac app which translates the input from mac and sends it to mac.
For example, if I type 'a' on mac, the app changes it into 'ah' on iPhone.
Another example, if I type 'a' on mac, the app changes it into 'あ' in Japanese on iPhone.
To write this kind of app, What documentation should I refer?
Please let me know, what documentation should I read.
Thanks in advance.

There is no easy way to do this,
The iPhone supports standard bluetooth profiles and a general purpose app like what you have mentioned will require the mac to act like an iPhone Bluetooth accessory (which requires it be be as per Apple MFi requirements)
You can do it by connecting an external compatible Bluetooth hardware to the Mac which can make it act like an accessory then write your app for the required function.

Related

iphone blutooth device connection

I have an app which has to connect to a medical bluetooth device to get data from that device. (Not to any iOS device).
Using which framework or class I can connect and receive data from?
Thanks.
After you get an MFi license, you then have to have an Apple supplied authentication chip on the bluetooth device. You must create custom protocols to transfer the data.
The BT on iOS is locked down and you can only access simple AVRCP events inside an app, no data transfer is allowed, except using GameKit (which only works between iOS devices).
UPDATE:
If you are using a BLE device then you can checkout this, it is iOS 5 only though.
http://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html
Are you planning to develop this app with a jailbreak device?
If not, you have to enroll the MFI(Made For iPhone) program, then you can define your custom protocol and use the ExternalAccessory framework to communicate with your device.
If yes, take a look at Btstack project.

Communicating With iPhone With libusb

I have a program that essentially wants to be able to have the user plug in their iPhone or iPod Touch, then receive some info based on what device they are using and what firmware version they have. I have read into libusb a little, but I'm unsure on how to communicate and what info I would actually need from the device. Any help?
Take a look at iRecovery. It's an open source tool used to assist in jailbreaking iPods and iPhones. It uses libusb and should help get you started.

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

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.

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.

Transferring data from iPhone to Mac via Bluetooth

Is there any way built into the iPhone SDK that allows devices to send data to a Mac over bluetooth? I know of GameKit, which allows data sharing between iPhones, but I haven't seen anything about an iPhone --> computer connection.
Thanks
I've not seen this but I've seen several apps that open up a server port on the iphone that you can hit over http.
It's not possible to send files with the iPhone.
You need to jailbreak the iPhone to do that.