rfid


How to decrement value on a MIFARE Classic value block using PN532 reader?


I'm trying to manage value block with a Mifare Classic and PN532 reader.
I'm using an open source library named "libnfc" but I do not see anything related to value blocks in this library.
Does anyone know how I could make increment, decrement and transfer calls with this reader & library?
Have a look at the header utils/mifare.h (and its associated implementation utils/mifare.c). They contain an implementation of the MIFARE reader commands. For instance, for the increment command, you would use something like:
mp.mpv.abtValue[0] = 1;
mp.mpv.abtValue[1] = 0;
mp.mpv.abtValue[2] = 0;
mp.mpv.abtValue[3] = 0;
nfc_initiator_mifare_cmd(pnd, MC_INCREMENT, blockNumber, &mp);
Where pnd is a nfc_device *, mp is a mifare_param and you previously authenticated to that sector (see utils/nfc-mfclassic.c).

Related Links

How to write RFID data tag?
ISO 15693: read multiple security blocks
LLRP Impinj can't see Antenna Port when tag seen
Zebra RZ400 prints an RFID tag, but encodes the next tag
Different values of different RFID readers
Robot and RFID readers compatible with Contiki?
Small Distance Measurement With Reader and Passive Target
Dectect motion with RFID without use of sensors
How can I write data on UHF RFID tags?
Programming RFID Tags
MiFare - Difference between UID and Serial Number of MiFare Card
What kind of block format is the Desfire authentication message?
Zebra RZ400 prints an RFID tag, but encodes the subsequent one
RFID Limitations
Detecting presence (arrival/departure) with active RFID tags
Limit the RFID band

Categories

HOME
tensorflow
antivirus
cpu-architecture
docker-swarm
azureservicebus
avl-tree
actionscript-2
subquery
octopus-deploy
unity2d
metronic
wordpress-theming
ctypes
activesync
scaling
cairo
jogl
linq-to-sql
ghost-inspector
tcpclient
richfaces
explode
tampermonkey
geopandas
metis
classpath
vcard
helper
mangodb
sharp
graph-databases
preg-grep
web-audio-api
recurrence-relation
nunit-3.0
redhat-datavirt
inkscape
active-model-serializers
brute-force
tic-tac-toe
common.logging
mediawiki-extensions
dojox.grid.datagrid
ajp
tableau-server
floor
istorage
bnd
pluck
scd
cdk
emoticons
bettercms
payu
verbose
master
push-diffusion
children
firepath
freetype2
gherkin
ng2-material
image-editing
clob
difference
plone-3.x
geodjango
insert-into
wikitext
js-cookie
qbfc
programming-paradigms
castle-windsor-3
debian-based
httpie
virus
temp-tables
errorprovider
node-inspector
phpdocx
dbsetup
bigint
dynamic-binding
cgimageref
soa-suite
fraud-prevention
bulbs
continuous-testing
macruby
windows-phone-7-emulator
applicationcontext
jquery-selectbox
asp.net-routing
yajl
gears
self-reference

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App