PN532 shield - Mifare - Implementing Electronic Purse Functions

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby noisette123 » Mon Dec 03, 2012 6:57 pm

I have successfully assembled and tested all example sketches for my Adafruit PN532 shield.

The issue that i have right now is to find a way to implement Electronic Purse Functions on the Mifare tags :

1- initialize a Data Blocks as "Value Blocks"
2- Increment ,Decrement, Restore and Transfer on those Value Blocks.

I have tried modifying some on the Adafruit .h and .cpp files to implement these functions, with no success so far.

Can someone here guide me on implementing these functions in a sketch please?

Congratulations for the great work on these shields,

Jean-Francois
noisette123
 
Posts: 7
Joined: Sat Sep 08, 2012 8:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby ktownsend » Wed Dec 12, 2012 11:58 am

Unfortunately, there are no plans at the moment to expand the NFC examples in this rather specialized direction since 99% of people mostly use them as basic RFID tags ... you're free to extend the existing examples, though, and I'd recommend looking at libnfc and similar projects to see if you can repurpose some existing code.
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby noisette123 » Thu Dec 13, 2012 8:36 pm

Hi K. Townsend,

I've modified the .cpp and .h library files to implements all the Mifare Increment, Decrement, Restore, Transfer for Value Blocks Electronic Purse Function.

Can i send you the files so that others may benefit from this?

Thanks again for the great work!
Jean-Francois.
noisette123
 
Posts: 7
Joined: Sat Sep 08, 2012 8:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby ktownsend » Fri Dec 14, 2012 8:40 am

Jean-Francois:

I'd be happy to have a look ... are you able to post the files on github, for example?

If it's based on the SPI library (https://github.com/adafruit/Adafruit_NFCShield_I2C) or the I2C shield (https://github.com/adafruit/Adafruit_NFCShield_I2C) the best thing is to create a pull request or raise an issue in the appropriate library so I can do a compare ...

Otherwise, send the files to support@adafruit.com 'ATTN: Kevin' and I'll have a look.

Kevin
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby noisette123 » Fri Dec 14, 2012 9:53 am

Hi Kevin,

I tried to send them via Github, but with no success. I've emailed you with the files.

Cheers,
Jean-Francois
noisette123
 
Posts: 7
Joined: Sat Sep 08, 2012 8:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Postby ktownsend » Sat Dec 15, 2012 6:35 pm

Jean-Francois:

Thanks ... I received them and I'll try to have a look at test them out next week!

Kevin
ktownsend
 
Posts: 201
Joined: Thu Nov 05, 2009 1:18 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]