Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement NFC (Near Field Communication) in iPhone?

Tags:

ios

iphone

nfc

I am looking forward to implement NFC in iPhone. Can anyone share some sample codes for its implementation? Till now I know that one needs an adapter to implement this on iPhone while this feature has already been deployed successfully on android phones. Here is what I've found about the adapter used http://www.icarte.ca/ and http://www.nexperts.com/typo/index.php?id=51

like image 854
Arshad Parwez Avatar asked Nov 05 '11 11:11

Arshad Parwez


2 Answers

If the proximity requirement is of the order of few centimeters then NFCis a good choice. NFC is still a new technology being adopted in Mobile phones so current install base is limited.

If the proximity requirement is of the order of few feet, then the best choice is Bluetooth. Bluetooth is available in a large number of devices. Bluetooth has the initial inquiry/discovery process which is a beaconing process to discover nearby devices in vicinity to connect to, with this is is possible to implement and detect proximity of devices.

On android this is fully supported and can be implemented easily. With iPhone Bluetooth public APIs are limited to only Gamekit, Gamekit uses internal automatic mechanism to detect devices in proximity running the same applications. Depending on your usage requirements it may be possible to do what you are thinking using the iPhone Bluetooth GameKit Apis.

iPhone also has MFi program allowing use of Blueototh to develop accessories using Bluetooth and will have more detailed access into the iPhone Blueooth capabilities/apis , to use this you need to part of the Apple MFi program to get access. See here for MFi details

like image 122
Srikar Appalaraju Avatar answered Sep 30 '22 00:09

Srikar Appalaraju


NFC seems to provide be better security for e-payment and contact solutions requiring privacy (ex: media exchange, like the new samsung galaxy s3 features) over bluetooth for two reasons:

1) the 802.11 bluetooth protocol specifies a range averaging 14 feet in diameter which is way too large to be standing at a checkout line, and someone being able to sniff or grab the signal, which is less possible on nfc, since the shorter range (a couple centimeters) and:

2) the NFC connection is made through magnetic coupling, creating the electronic field between the devices themselves, only when both devices are very close and your mfc apps are turn on/ready. bluetooth signals are their own small broadcasting antennae and it is therfore more code admin to create small network firewindows & firewalls (whitelists or blacklists) (pairing) based on IPv6 or even more of headache, ipv4.

like image 31
Fnord Prefect Avatar answered Sep 30 '22 00:09

Fnord Prefect