What is nfc and its implementation - android

I don't know is this the right place to ask. Because I need to know the concept about NFC. From the Android 2.3 Platform reference. And i googled it. But i didn't get the correct concept. Can anyone please provide me good links and tutorials for that. And how to implement it in android.

NFC = Near Field Communication
By using NFC tags you are able to scan these tags and retrieve information from the tag. This enables you to enhance physical objects with digital data. F.ex. posters can have a NFC tag and when you scan this tag with your NFC enabled mobile phone you can get some relevant information from the poster
There is a longer and better explanation on http://en.wikipedia.org/wiki/Near_field_communication and there are also examples of use..
Additionally the Android SDK contains a NFC demo project.. take a look at it to see how it is implemented

You can imagine it as bluetooth with a very close field.

NFC is a radio communications technology which works on an effective range of 4 cm. It is used to exchange small amounts or data (or settings up longer session) between devices in the implicit context of close proximity (and thus trusted parties). Passive tags can also be used.
After investigating NFC for about one month, my current impression is that NFC should be supported by most mobile applications, if only to share data with other devices. For example, a mobile web browser would share the link of the currently viewed page if an NFC session is initiated.
I have created an NFC Eclipse plugin if you would like to get started with some passive tags experimentation, it comes with a corresponding (free) Android app which does the actual NFC interfacing. I also recommend reading this guide from Android.
Edit: Plugin now also supports some card readers :-)

Related

If I can read my RFID Tags with my Android Phone, doesn't that mean I could emulate my phone to act as the RFID Tag itself?

I am exploring the possibility of being able to use my Android Phone as an RFID Tag itself so I do not have to carry the RFID Tag all the time.
I've research and work about reading the RFID Tag itself with the NFC available in my android phone. In my mind, I should be able to use the same data I read, store it in my phone and somehow be able to project the exact same data back to the RFID reader making my android phone act as the RFID Tag itself.
As I've mention I am able to read the RFID Tag by doing,
adapter.enableReaderMode(this#MainActivity, { tag ->
Log.v("log.log", "I got the Tag!")
adapter.disableReaderMode(this#MainActivity)
}, flags, bundleOf())
I've read on the Card Emulation Documentation here: https://developer.android.com/guide/topics/connectivity/nfc/hce
but it seems that I would need a AID to make it work, but that assumes that I know the AID the reader would request.
I can't seems to figure out how to achieve what I am trying to do. Most of the documentation seems to only point to being able to write the same data to a new RFID Tag but that's not really what I want to do.
I am very new to this topic and its highly likely that I just don't understand what things I should be looking or working at. I would really appreciate some guidance whether this is even possible.
I would appreciate any help. Thanks in advance!
So Apparently, this isn't as straight forward as I though it was. For one, the type of NFC/RFID Tag determine whether it could work with Android HCE.
Short Answer: In other words not all NFC/RFID tags could be emulated.

What is involved in connecting an app to a mac via Bluetooth?

I realize that this is the kind of question that frequently gets a lot of (well deserved) "what have you tried" comments and down-votes, but I'm hoping that by the time I'm done asking I can avoid that.
I've been looking around but unable to find the answer to how one goes about writing an application that consists of the following three things:
An Android app that connects to a host device via bluetooth
Communication io layer that sends signals back and forth on
that bluetooth connection
A host resident native app (preferably Unity3D, or AIR) that can receive/send messages back and forth to the connected app.
I have written many Android applications so I am not in need of any kind of "getting started" hand-holding, rather I just need some guidance (preferably in the way of a web link or book tutorial) on what it takes to utilize bluetooth and how one actually communicates via it.
Thanks in advance for all useful tips.
Here are a few links that I found in terms of Bluetooth connections
First of all the dev guide(I assume you have already looked here, but if not this is a good place to start)
http://developer.android.com/guide/topics/connectivity/bluetooth.html
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html
This one is a basic tutorial on how to Bluetooth on android
http://luugiathuy.com/2011/02/android-java-bluetooth/
This is a long PDF on Bluetooth programming in general (I haven't read it, but from what I have seen it looks over in depth) it covers java and OSX, but not android
people.csail.mit.edu/rudolph/Teaching/Articles/BTBook.pdf
Here is a similar SO question which might contain helpful links
Code samples for Android Bluetooth programming
This is the best Bluetooth open source project that I could find for android, it doesn't fit your description over well, but here it is anyways
http://code.google.com/p/bluetooth-remote-control/source/browse/#svn%2Ftrunk%2Fsrc%2Fpro%2Fapus%2Fblueremote
I realise that a lot of these links are simpler than what you really want, if I find anything more complicate I will add that.

How to do NFC(Near Field Communication) in android

I just want to scan details from my bussiness card through NFC into my native app(like address,name,company name) programmatically. I dont have much idea on this.What are the necessary steps i need to set up?How could i begin to do this app in android?
And one more,QR scanner is something different from NFC?
Thanks.
Broadly speaking NFC is a radio communication technology while QR is a image communication technology, so although they have some things like channel coding in common, they are available in mobile phones through quite different APIs.
In terms of functionally, NFC has more features than QR, but QR can be made to work on more devices (at this point in time).
I've actually made an app which supports both NFC and QR. You can get yourself started using the NFC Eclipse plugin (by yours truly) and XZing.
NFC Android Guide: http://developer.android.com/guide/topics/connectivity/nfc/index.html
QRCode is a 2-dimensional barcode. ZXing is an open-source, multi-format 1D/2D barcode image processing library.
Barcodes are different from NFC Tags.
If you're working on NFC, the basic things you'll need is an NFC enabled phone and a tag.. I hope you're aware of this.. Secondly, you should go through this link here. It gives you a basic idea of what NFC is and you can build on that.. Everything you want to know about Android NFC has been described there.
As far as QR is concerned, it's not the same as NFC.. But one thing I'd like to say here is that using QR for a project over NFC would bring down the cost since QR doesn't need extra hardware support like NFC does. But if you want to do something new, then NFC could be "the thing" you're searching for.
Hope this answers your question. If you're looking for something more, then please mention that too so that I can edit my answer later on..

Read RFID by Android device

I need to read RFID tag and use it as a bar-code system. How to read RFID by using an Android device? Please guide me.
This topic is too big to be addressed here. Here is a presentation that can get you started.
NFC is a type of RFID and I think that is what you actually want to know about. Since some Android devices support NFC.
I was also going through the R&D process that how to read RFID tags on Android, So I found some useful links which describes how exactly it works.
For basics understanding go here & for demo Application it has very good explanation

Technologies involved using NFC

I'm thinking of starting a project for a local University where we would use NFC to read tags along all the campus with specific information. For example: if a user owns a NFC enabled phone, he could use it to grab additional information when walking through important parts of the library, or auditorium, etc. So he could get contact numbers, attention schedules, and even we would like to show him some 3D models using AR when reading the correct information tag.
Which technologies would be required to create a program for doing this? Android would be our first option since the Google Nexus S is the only cellphone that has NFC. But also what about the tags? Are there any places where I could buy them, and then how could we load information inside the tag?
Also for the Augmented reality in iPhone there are libraries like ARToolkit, so here again guess we would need to use the Android NDK to use it. However if there are any libraries for AR written in Java that would be better.
Anyway if I'm missing some point or ignoring an important technology I should consider when planning the project, would be great to hear about it.
Thanks a lot.
NFC technology is an application of RFID so provided the phone could be set to reader mode then all you'd need is passive RFID tags placed at various points. You could easily use Phidgets for the RFID tags.
http://www.phidgets.com/products.php?category=14
As for AR toolkits there are several ones used for Android. Some using NDK and others in Java.
http://www.arvertising.com/news/2009/11/nyartoolkit-for-android-en/
http://developer.qualcomm.com/dev/augmented-reality
http://www.slashgear.com/qualcomm-augmented-reality-sdk-for-android-released-04105775/
The NXP TagWriter application makes it possible to write NFC tags with one's Android phone. The standard tag reader application makes it possible to read NFC tags and launch URLs stored on them. If you want to roll your own app, the android.nfc package has the various bits you need for reading tags.
There is already a StackOverflow question for where to buy NFC tags, although there aren't very many answers there. A Google search for "create NFC tag" or "buy NFC tag" will give a handful of sources.

Categories

Resources