timmerk / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

NDEF Mifare Ultralight URL tag parser #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I created a NDEF parser example tool (nfc-ndef) that at this time can parse
a MFUL tag (among others the one from Tikitag/Touchatag) to extract the
NDEF URL stored in it. 

The code is universal in that it is easy to implement support for other
NDEF tags / message types as well, but it seems this one is best suited as
an example as most people will have the Tikitag tags lying around. In the
future a complete NDEF parser may be a possibility separate from this
project (as part of nfc-tools project?) 

Extending it to MIFARE Classic support (1k/4k) is trivial.

I didn't want to commit it just yet as the source style / copyright etc.
may not be what is required for this project :-) I used "indent -kr -i4" to
format the source. It's been a while since I was fluent in C :-)

The copyright owner can be changed if needed, as long as it remains GPLv3+ :)

Original issue reported on code.google.com by fkooman%tuxed.net@gtempaccount.com on 19 Oct 2009 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
Actually the license of libnfc is LGPL, is this ok with you? Otherwise need to 
set up
a different package, or you can add it to the nfc-tools package Romuald is 
making.
Your name as copyright will always be there, since you wrote (part of) the code.
People can always add their name to the list if they make (groundbreaking) 
changes ;)

Original comment by r...@libnfc.org on 31 Oct 2009 at 1:54

GoogleCodeExporter commented 9 years ago
Of course, this file is welcome at nfc-tools project and I think that if a real 
NDEF
support is made it should be in a library... which will spawn a new project: 
libndef.
I don't have the time to maintain it but I have made some changes/improvements 
into
this file. I'll put it under nfc-tools project, but if any people want to
externalize, that will be welcome.

Original comment by romu...@libnfc.org on 2 Nov 2009 at 8:28

GoogleCodeExporter commented 9 years ago
I put this file under nfc-tools project:
http://code.google.com/p/nfc-tools/source/browse/#svn/trunk/ndef

Some modifications have been made: it now decode a MFD (MiFare Dump) ie. produce
using nfc-mfclassic tool. And "Smart Poster" and "Text" records are now parsed.

Original comment by romu...@libnfc.org on 2 Nov 2009 at 2:23