USE UPS NEXT DAY AIR FOR ANY USA ORDER BEFORE 11AM ET *TODAY* 12/19/2014 TO GET YOUR PACKAGE IN TIME FOR XMAS - PLEASE SEE OUR SHIPPING DEADLINE NOTICE FOR MORE DETAILS!

PN532 shield - Mifare - Implementing Electronic Purse Functions
Moderators: adafruit_support_bill, adafruit

PN532 shield - Mifare - Implementing Electronic Purse Functions

by noisette123 on Mon Dec 03, 2012 7: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: 12
Joined: Sat Sep 08, 2012 9:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

by ktownsend on Wed Dec 12, 2012 12:58 pm

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.
User avatar
ktownsend
 
Posts: 378
Joined: Thu Nov 05, 2009 2:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

by noisette123 on Thu Dec 13, 2012 9: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: 12
Joined: Sat Sep 08, 2012 9:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

by ktownsend on Fri Dec 14, 2012 9: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
User avatar
ktownsend
 
Posts: 378
Joined: Thu Nov 05, 2009 2:18 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

by noisette123 on Fri Dec 14, 2012 10: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: 12
Joined: Sat Sep 08, 2012 9:55 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Functions

by ktownsend on Sat Dec 15, 2012 7:35 pm

Jean-Francois:

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

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

Re: PN532 shield - Mifare - Implementing Electronic Purse Fu

by dcfrost on Wed Jan 22, 2014 12:32 am

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
dcfrost
 
Posts: 1
Joined: Wed Jan 22, 2014 12:23 am

Re: PN532 shield - Mifare - Implementing Electronic Purse Fu

by andresazp on Wed Feb 12, 2014 8:58 pm

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
andresazp
 
Posts: 1
Joined: Thu Jan 24, 2013 8:51 pm