# DesFire Project(s) & call for ideas 💡

**URL:** <https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680>\
**Category:** Projects\
**Created:** [May 7, 2020, 11:31pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680 "2020-05-07T23:31:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 7, 2020, 11:31pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/1 "2020-05-07T23:31:21Z")

</div>

a related but, different question. I was looking for a page that listed out interesting use case projects people have done with [xDF2](https://dangerousthings.com/product/xDF2/) - that demonstrates capabilities and of course to seed inspiration for newcomers such as me. I am not looking for installation videos or how-to, but, rather here’s the “art of the possible” from solution and use cases. Does this exist, am I asking for too much.

thanks everyone for taking the time to nurturing this conversation.

(admins - please feel free to peel off this question to another thread as you see fit. I don’t want to get random off rails here on this subject. Thanks).

---

<div class="post-metadata">

**Author:** ![NiamhAstra](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/niamhastra/32/2933_2.png) [@NiamhAstra](https://forum.dangerousthings.com/u/NiamhAstra)\
**Post date:** [May 7, 2020, 11:39pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/2 "2020-05-07T23:39:33Z")

</div>

> [@NixieGeek](#):
>
> a page that listed out interesting use case projects people have done with [xDF2](https://dangerousthings.com/product/xDF2/) - that demonstrates capabilities and of course to seed inspiration for newcomers such as me.

As Amal said in this post, no one seems to look beyond the 8k storage.

> [@Purpose of the spark 2](https://forum.dangerousthings.com/t/purpose-of-the-spark-2/6644/29):
>
> I mean, the DESFire chip (both ev1 and ev2) have some powerful features, including encrypted sessions, but _nobody_ uses any of those features… people basically just create a maximum size NDEF file that eats up all 8k and then store a vCard with photo on it 😉

I recommend you make a project post asking for idea. I’m sure plenty of people will chime in. Do a bit of reading on NXPs site (the maker of the desfire ev2 in the DF2s) then you might pick up something useful.

Personally I intend to find some test cards to play with them… I would love to explore the features, but my project list is long and my time is limited.

> [@NixieGeek](#):
>
> admins - please feel free to peel off this question to another thread as you see fit. I don’t want to get random off rails here on this subject. Thanks

I SUMMON @Pilgrimsmaster 😛

![tenor-14](https://forum.dangerousthings.com/uploads/default/original/2X/2/235e43fb63f3c4f298bb8b3deb9a739f1de1d2ce.gif)

He’s not quite an admin, but reshuffling posts is kinda his thing it seems 😅

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [May 8, 2020, 12:03am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/3 "2020-05-08T00:03:30Z")

</div>

> [@NiamhAstra](#):
>
> reshuffling posts is kinda his thing it seems

Done

I can / or others can change the title if you want to be less generic.  
You asked specifically about [xDF2](https://dangerousthings.com/product/xDF2/) but same would go for [FlexDF2](https://dangerousthings.com/product/flexdf2/) and I guess even the xDF.

> [@NixieGeek](#):
>
> I am not looking for installation videos or how-to

Feel free to post your journey here with your how to guide, It will 100% be of interest and will most likely help others out

I’m sure you would have already seen the data sheets  
[DESFire EV2](https://dangerousthings.com/wp-content/uploads/doc_DESFire-EV2-MF3DX2_MF3DHX2_SDS.pdf)  
[DESFire EV1](https://store.dangerousthings.com/wp-content/uploads/doc_DESFire-EV1-MF3ICDX21-41-81.pdf)

---

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 8, 2020, 12:19am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/5 "2020-05-08T00:19:35Z")

</div>

> [@Pilgrimsmaster](#):
>
> I’m sure you would have already seen the data sheets  
> [DESFire EV2](https://dangerousthings.com/wp-content/uploads/doc_DESFire-EV2-MF3DX2_MF3DHX2_SDS.pdf)  
> [DESFire EV1](https://store.dangerousthings.com/wp-content/uploads/doc_DESFire-EV1-MF3ICDX21-41-81.pdf)

@Pilgrimsmaster - I somehow overlooked your links from your post earlier - sorry. Thanks for sharing these. I deleted my dup post with these links.

---

<div class="post-metadata">

**Author:** ![NiamhAstra](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/niamhastra/32/2933_2.png) [@NiamhAstra](https://forum.dangerousthings.com/u/NiamhAstra)\
**Post date:** [May 8, 2020, 12:20am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/6 "2020-05-08T00:20:21Z")

</div>

He edit his post, and added them at about the same time you posted 🤣 something something… great minds

---

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 8, 2020, 12:21am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/7 "2020-05-08T00:21:33Z")

</div>

> [@NiamhAstra](#):
>
> He edit his post, and added them at about the same time you posted 🤣

🙂 - NP

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [May 8, 2020, 12:23am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/8 "2020-05-08T00:23:30Z")

</div>

Sorry, I try to limit my posts and squeeze stuff in if I think of it afterwards within the 5min “free” edit time frame  
I do this alot… My bad!

> [@NiamhAstra](#):
>
> Personally I intend to find some test cards to play with them

I found this [DesFire EV1 UID](https://lab401.com/collections/rfid-badges/products/desfire-compatible-emulator-uid-modifiable) Modifiable card the other day, ( 4 or 7 byte options ) I found very interesting. I wish that was the chip that was used in the [FlexDF](https://dangerousthings.com/product/flexdf/), It would be the solution for mine and I’m sure many other peoples Transit 🚌 🚆 ⛴ ( assuming the transit system is onlylooking for UID )  
it also states

> Please note, this card does **not** emulate any other MIFARE DESFire® features.

I am **assuming** it keeps its DesFire feature, just not emulated other than the UID

@ €34.99 It is pretty expensive for just a test card though. That is a lot of actual travel !  
( I actually find LAB401 quite expensive for most things, A quick look and you can normally find it elsewhere for significantly cheaper )

---

<div class="post-metadata">

**Author:** ![amal](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/32/37192_2.png) [@amal](https://forum.dangerousthings.com/u/amal)\
**Post date:** [May 11, 2020, 12:36am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/9 "2020-05-11T00:36:46Z")

</div>

The datasheets should give inspiration… specifically the “file” types and what those file types can do on their own… like stored value increment/decrement capabilities… or automatic cyclical data storage…

---

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 26, 2020, 3:31pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/10 "2020-05-26T15:31:14Z")

</div>

quick 2 questions:

- how are [xDF2](https://dangerousthings.com/product/xDF2/) owners managing, overwriting and customizing their factory default PICC and App level keys.
- does anyone here use the TapLinx SDK by NXP ? I am having trouble even to have their sdk sample app load up. Does any one have a simple app they built that they are willing to share ?

thanks

---

<div class="post-metadata">

**Author:** ![amal](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/32/37192_2.png) [@amal](https://forum.dangerousthings.com/u/amal)\
**Post date:** [May 27, 2020, 4:00am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/11 "2020-05-27T04:00:15Z")

</div>

I doubt they are. I think pretty much everyone is just using [NFC tools](https://play.google.com/store/apps/details?id=com.wakdev.wdnfc&hl=en) or [tagwriter](https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter&hl=en) to set up the ndef aid and let that be that… so probably still default keys. You’re one of a very rare club of people who have ever asked or talked about the actual features of the desfire beyond NFC type 4.

---

<div class="post-metadata">

**Author:** ![Pilgrimsmaster](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/pilgrimsmaster/32/1179_2.png) [@Pilgrimsmaster](https://forum.dangerousthings.com/u/Pilgrimsmaster)\
**Post date:** [May 27, 2020, 4:22am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/12 "2020-05-27T04:22:50Z")

</div>

> [@amal](#):
>
> very rare club of people who have ever asked or talked about the actual features of the desfire beyond NFC type 4.

**I think** this is because anybody can easily deploy NDEF functionality, but it takes more skill to fully utilize the capabilities of the DesFire implants.  
However, if there was a readily available “library” 📖 of options and a how to guide, **I**  **think** there would be a larger uptake.

This is so enticing  
( IF you know what you are doing )

> a MIFARE DESFire EV1 card can hold up to 28 different applications and 32 files per application.

I am looking forward to some of our more capable forum members putting together some options, I for one will be jumping on those bandwagons

---

<div class="post-metadata">

**Author:** ![NiamhAstra](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/niamhastra/32/2933_2.png) [@NiamhAstra](https://forum.dangerousthings.com/u/NiamhAstra)\
**Post date:** [May 27, 2020, 6:13am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/13 "2020-05-27T06:13:46Z")

</div>

One of the issues is that the Desfire is still under NDA afaik 🙄 , I actually have sent an email requesting information on the NDA process so I’ll see how that goes as I do plan on messing around with it but it’s quite low on my project list atm. If you want to do more work on the NXP stuff it may be worth going through the NDA process yourself.

In the meantime have you looked at any other forums / GitHub? This community is fantastic but as @amal pointed out no one has done much with them in this community yet but I am sure there are projects that use them in existence.

EDIT:

[GitHub Search](https://github.com/search?q=DESFire&type=)

[DESFire python library](https://desfire.readthedocs.io/en/latest/)

---

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 28, 2020, 3:31am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/14 "2020-05-28T03:31:48Z")

</div>

I am just now sinking my teeth into the Java Android TapLinx SDK and think I am making some progress understanding the creds based file / app architecture. I was able to finally run their SDK sample on my phone this evening and think I shall “milk that cow” till I get some more grounding on the inner workings of the SDK.

It is my hope that I will have a “[xDF2](https://dangerousthings.com/product/xDF2/)” specific generic purpose utility that will allow me to manage apps’ CRUD operations based on custom Master PICC key and also allow me to update the default Master PICC key w/ custom keys. Perhaps that should be my initial milestone.

> [@NiamhAstra](#):
>
> One of the issues is that the Desfire is still under NDA afaik 🙄

I believe the NXP’s Java TapLinx SDK is free now and have opened it up for running offline.

---

<div class="post-metadata">

**Author:** ![NiamhAstra](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/niamhastra/32/2933_2.png) [@NiamhAstra](https://forum.dangerousthings.com/u/NiamhAstra)\
**Post date:** [May 28, 2020, 3:38am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/15 "2020-05-28T03:38:24Z")

</div>

Yeah the TapLinx SDK seems like a good starting point. I personally want to see the communication protocol for the DESFire ev2 🙂 should have access soon.

---

<div class="post-metadata">

**Author:** ![NixieGeek](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/nixiegeek/32/3757_2.png) [@NixieGeek](https://forum.dangerousthings.com/u/NixieGeek)\
**Post date:** [May 28, 2020, 11:56am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/16 "2020-05-28T11:56:48Z")

</div>

> [@NiamhAstra](#):
>
> I personally want to see the communication protocol for the DESFire ev2

yes, that would indeed be a good one to have access to.

---

<div class="post-metadata">

**Author:** ![Erik](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://forum.dangerousthings.com/u/Erik)\
**Post date:** [May 15, 2023, 5:48pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/17 "2023-05-15T17:48:15Z")

</div>

Hi Amal,  
Is there a easy way to program a file to my flex df2?  
I use acces control systems that require a file id and encryption (personal generated key) i hope i translated it correct  
I already ordered a ACS1252u reader (writer)

Best regards, Erik

---

<div class="post-metadata">

**Author:** ![amal](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/amal/32/37192_2.png) [@amal](https://forum.dangerousthings.com/u/amal)\
**Post date:** [May 16, 2023, 3:11am UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/18 "2023-05-16T03:11:51Z")

</div>

You can literally use the datasheet to get the commands necessary to create files etc. and the [NFC tools](https://play.google.com/store/apps/details?id=com.wakdev.wdnfc&hl=en) Java package can be run on the desktop to send the commands… or [NFC tools](https://play.google.com/store/apps/details?id=com.wakdev.wdnfc&hl=en) or NFC shell on your android phone

---

<div class="post-metadata">

**Author:** ![Erik](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://forum.dangerousthings.com/u/Erik)\
**Post date:** [May 17, 2023, 2:55pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/19 "2023-05-17T14:55:16Z")

</div>

Hi Amal,  
Thank you for the quick response.  
With the “[nfc tools](https://play.google.com/store/apps/details?id=com.wakdev.wdnfc&hl=en)” app i can only set hex data commands but the datasheet only says normal commands such as “readrecords” how can i translate that in to hex commands  
Greatings Erik

---

<div class="post-metadata">

**Author:** ![Erik](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://forum.dangerousthings.com/u/Erik)\
**Post date:** [May 17, 2023, 2:59pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/20 "2023-05-17T14:59:54Z")

</div>

Can you give a quick example of write the first file 0x01 application name and encryption key

---

<div class="post-metadata">

**Author:** ![Erik](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://forum.dangerousthings.com/u/Erik)\
**Post date:** [May 17, 2023, 3:05pm UTC](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680/21 "2023-05-17T15:05:35Z")

</div>

If i use the example code write 4 bites block 0x04  
A2:04:FF:FF:FF:FF i get error:I/o failure

[Next page](https://forum.dangerousthings.com/t/desfire-project-s-call-for-ideas/6680.md?page=2)
