Reads NFC-card and sends data to WebSocket. Forked from Inter-Actief/JulianaNFC_C.
- Grab the latest release and unzip.
- Do you need SSL? - Make sure you have a
juliana.crt
andjuliana.key
file.
- Do you need SSL? - Make sure you have a
- Start
JulianaNFC.exe
- You can connect to the service at
localhost:3000
(ws:// of wss://, depending on SSL) - Plug in the nfc-card reader
- Scan a card, the data will be send to the WebSocket
JulianaNFC is developed and tested on a ACR122U from ACS. This model is generally easy to find. Make sure the drivers are installed on your device.
During connection we need to set the WebSocket protocol to nfc
.
new WebSocket("ws://localhost:3000", "nfc");
The data you will receive when connecting is in the Json format.
{
"type": "iso-a",
"uid": "aa:bb:cc:dd",
"atqa": "aa:bb", // only for iso-a
"sak": "aa", // only for iso-a
}
JulianaNFC is written in pure C and uses the Windows API. The included project files are for Visual Studio 2017. Strong reccomendation to use vcpkg. JulianaNFC depends on libwebsockets.
To install the dependencies run: vcpkg install libwebsockets:x86-windows libwebsockets:x64-windows
.
After this you can open and build the solution.
build\
- output from Visual Studiocode\
- sourcecodemisc\
mkcert\
- script to generate SSL certificatemsvc\
- Visual Studio solutionnsis\
- NSIS instalation script
Contact (Cas Ebbers) or the WWW-committee of Inter-Actief.