https://github.com/don/nfc-acr122
https://github.com/don/nfc-acr122
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/don/nfc-acr122
- Owner: don
- Created: 2015-04-29T17:37:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T17:37:37.000Z (about 11 years ago)
- Last Synced: 2025-04-01T13:51:18.447Z (about 1 year ago)
- Language: Java
- Size: 523 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an experimental project to use an external NFC reader from Android.
It uses the [ACR122U NFC reader](http://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader) from [ACS](http://www.acs.com.hk/). The NFC reader is connected to the Android with a USB On-the-Go (OTG) cable.
This is a very rough proof of concept written for a client. The NfcId Plugin code is embedded in the native project and will need to be extracted into a true Cordova plugin to be useful. The code in /plugins simply provides the manifest file. The NFC functions are provided by the ascsmc-1.1.1.jar.
This was written with Cordova-3.x, so it probably won't work with the latest code.
$ cd platforms/android
$ ant debug install
If you run the app without a reader attached, you'll get an ArrayIndexOutOfBoundsException exception.
[Video](https://plus.google.com/+DonColeman/posts/EwkZ8wund7g) of a Cordova app scanning an id from a NFC tag.