Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zgbjgg/arygon_nfc
arygon_nfc - NFC reader erlang application
https://github.com/zgbjgg/arygon_nfc
arygon-nfc erlang nfc reader
Last synced: about 2 months ago
JSON representation
arygon_nfc - NFC reader erlang application
- Host: GitHub
- URL: https://github.com/zgbjgg/arygon_nfc
- Owner: zgbjgg
- Created: 2014-02-13T19:54:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-24T17:56:31.000Z (almost 11 years ago)
- Last Synced: 2023-08-05T18:46:58.489Z (over 1 year ago)
- Topics: arygon-nfc, erlang, nfc, reader
- Language: Erlang
- Homepage:
- Size: 221 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
arygon_nfc - NFC reader erlang application
======Compile the application
$ make all
arygon_nfc have a dependence "gnuart", is necessary start it before. start applications with the correct path
$ erl -pa ebin/ deps/gnuart/ebin
1> application:start(gnuart).
okStart arygon_nfc
2> application:start(arygon_nfc).
okOpen the device
3> arygon_nfc:open().
arygon nfc got: <<"device_open">>
okSubscribe the process to the application
4> arygon_nfc:subscribe().
{ok, #Ref<0.0.0.39>}
All messages sent to the subscribed process are in the form:{nfc, Ref, Response}
Where Ref is the reference for the subscribed process and Response is the decoded
packet.
Send a TAMA command to the reader5> arygon_nfc:send("0av").
arygon nfc got value: 'V6.6'
okUnsubscribe the process
6> arygon_nfc:unsusbribe().
okClose the device
7> arygon_nfc:close().
arygon nfc got: <<"device_close">>
ok