NFC reader with tablet [duplicate] - nfc

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to Connect External NFC Card Reader to Tablet(Android 2.3.3)
This is may be the duplication of this
How to Connect External NFC Card Reader to Tablet
I want to connect the nfc USB reader of http://www.sensorid.it/en/products/stickid.html
with a tablet running android OS 3.2. I need to read the nfc tags using my app and above mention NFC reader.
I am not able to conclude any thing so far. Is this possible or not?
If yes, what should be the starting point for me?
Thanks

After some research..my conclusion is that we can not talk with NFC reader without the help of manufacturers, as they knows how to communicate with it..what protocol they use.
So the solution of my problem is to USE a NFC reader which is HID compatible.
Like one I found at http://www.rsdm-systems.de/products/de/RFID-Systeme-LF-HF/RFID-Sticks/RFID-Stick-Mifare-Classic-USB.html
This solved my problem.

You mostly will not be able to use it directly.
3.2 supports host functionality, so it will recognize a USB device.
I doubt if your reader will be able to talk directly to the OS as there are in between layers which it has to go through before it can be read and converted into OS understandable values.
You should talk to the manufacturers to see if they have found a way. Then yyou should go ahead and buy it.

Related

Android Things and NFC

I'm running Android Things on a Raspberry Pi 3 Model B. I want to read NFC Tags, is it possible to do this? I've got like zero hardware knowledge about this stuff. All I know is how to write the necessary code.
A Raspberry Pi (or the other Dev kit) does not have NFC hardware. If you want to read NFC tags you need to get some hardware.
In addition to that, there is not user space driver for NFC, so you'd need to read it using a driver.
I only know of 2 chips that are sort of supported, both drivers are very limited. In fact, the simplest way to get them to work is to plug then into an Arduino and then communicate with the Arduino either using UART or I2C.
The best supported chip is RC-522. It reads mifare, but not sure how many other formats. You have a driver ported from arduino here: http://github.com/Galarzaa90/android-things-rc522
One of the important limitations is that it does not support card emulation.
I've had success with the ACR122U running over USB. It supports Mifare.

NFC ACR122U (reader/writer mode) and Nexus 5(HCE mode) example

i am developing an application where users can transfer files from phone to desktop using NFC technology. As i found in this post there is an option to use ACR122U in reader/writer mode and Nexus 5 phone in HCE mode. Can anyone please suggest some samples of such application as it is difficult for me to understand how it works. Your help will be so appreciated, thanks in advance.
When you use HCE on your Nexus 5 the Nexus will emulate a NFC tag. The ACR122U can read this tag in reader/writer mode, so that makes the communication possible. Study this example, it will help you farther. For more general information about HCE on Android you can read this.
I have worked in this exact use case. I used P2P mode. I didn't have to treat one partner as a tag, infact data transfer worked both ways.
In my experiment- Smart phone side I tried Samsung S4, HTC One, Nexus 3, Nokia LUMIA etc.. worked like a charm. There is some limitation in the APDU/payload size. For Reader to Phone case. For your case P2P mode with attachments works fine.
I downloaded this NFC library and tweaked it to my needs. I used it in WP7 along with ACCR122U.
I wrote a simple Android app to receive/send data to ACCR122U.
if your ok to try P2P mode with SNEP as opposed to NPP, do let me know.I can help you.

Functionatlity of Open NFC Framework

I have fundamental question about what Open NFC framework is for. I want to write a program that will run on a PC to communicate with a NFC card reader connected to the PC through USB. The program will write to and read from NFC tags by commanding the NFC card reader.
Is Open NFC framework suited for this purpose? Or is it for developing programs that will run on NFC tags?
Aritra
OpenNFC is a software stack implementing NFC functionalities.
It is hardware independent, so in theory you could use it with an USB connected reader. The problem is, the only available HALs (Hardware Abstraction Layers) for OpenNFC are for an NFC simulator and Inside Secure hardware. Until we get some HALs for most common hardware, I'd say you should take look at http://www.libnfc.org/documentation/introduction
There are many NFC readers on the market, that are being sold with their own SDKs. With such SDKs you are 100% sure the code is compatible with the particular NFC reader.
BR
STeN

How do I write an OSX device driver for a USB WiMax modem?

I am planing to spend few days a week writing a driver for a Greenpacket USB WiMax modem. Greenpacket only provides Windows driver with it and as I am fond of Linux and Mac I feel very bad not having driver for them.
I have experience writing C++ programs so I think it won't be hard for me. Even I like C++ programming very much. I have never written drivers but I know some concepts. I have PDF of the device specification from the company's website.
I would like to ask if I can write driver with that provided specifications? If yes what would be my starting point assuming I would like to write it for MAC first and then Linux. I am reading this article right now but your experiences would be of great help.
The product specifications sheet does not provide enough data to write a device driver. You are going to need low-level information about how to speak with the WiMax device via USB. You are probably also way out of your depth of you think a product sheet is enough information to write a device driver.

Nexus S and a NFC reader

I am sitting here with an ACS contactless reader ACR122 which is a NFC-reader/terminal. From my android app I want to send data to this reader, by creating two separate applications, one for the laptop and one app for the phone. For the application which should run one the computer I've been using the javax.smartcardio library. So my question is: Can I interact this way? Cuz I read one different forums that android doesn't support the javax.smartcardio library, but I guess this is just for the android SDK, am I right?
Thanks in advance! :)
you can interact in a way you have mentioned. The ACR122 can communicate in a p2p mode with the Nexus S, but it will not be that easy, because you have to implement or port couple of things. Look e.g. here:
http://www.libnfc.org/community/topic/401/p2p-communication-between-android-phone-and-nfc-reader/
BR
Petr

Resources