PN532 shield - Mifare - Implementing Electronic Purse Functions

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
noisette123
 
Posts: 12
Joined: Sat Sep 08, 2012 9:55 am

PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by noisette123 »

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

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by ktownsend »

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.

noisette123
 
Posts: 12
Joined: Sat Sep 08, 2012 9:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by noisette123 »

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.

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by ktownsend »

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 [email protected] 'ATTN: Kevin' and I'll have a look.

Kevin

noisette123
 
Posts: 12
Joined: Sat Sep 08, 2012 9:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by noisette123 »

Hi Kevin,

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

Cheers,
Jean-Francois

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

Post by ktownsend »

Jean-Francois:

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

Kevin

dcfrost
 
Posts: 1
Joined: Wed Jan 22, 2014 12:23 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Fu

Post by dcfrost »

Greetings, Jean-Francois and Kevin!

I know that it's been over a year since you have visited this thread, but if either of you has the .cpp and .h files to include the increment and value blocks and would not mind going over the functions briefly with me (function name, what to pass to it, etc.) for my project, I would be most appreciative.

Thanks!
David

User avatar
andresazp
 
Posts: 1
Joined: Thu Jan 24, 2013 8:51 pm

Re: PN532 shield - Mifare - Implementing Electronic Purse Fu

Post by andresazp »

Hi, I'm truly sorry to resurrect this old thread, but I think that value blocks implementation would be very helpful to the community.

Does anybody still have it?, even if there is not enough interest to include it to the library

Thanks,

andresazp

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”