![Desfire ev2 8k Desfire ev2 8k](http://www.cardzgroup.com/images/mifare_desfire_comparison_chart.jpg)
Found bellow some code examples on how to use Mifare DESFire chip functionality with this sdk. All examples assume you already have a valid chip object. Please see How to Use Liblogicalaccess first. Using specific chip functionality means you cannot use the generic abstraction layer / plug-in. Plate Load Test – How it Works – Measuring Ev2 and Ev1. The Plate Load Test AX01 is the simple solution to determine the strain moduli Ev2 and Ev1 (a figure for the bearing capacity) and the ratio Ev2/Ev1 (a figure for the compaction level).
![Ev2 Ev2](https://shop.kupan.com/pub/media/catalog/product/cache/c687aa7517cf01e65c009f6943c2b1e9/9/2/9215.jpg)
Logicalaccess::DESFireAccessRights accessRights;accessRights.readAccess = logicalaccess::ARKEY2;accessRights.writeAccess = logicalaccess::ARKEY1;accessRights.readAndWriteAccess = logicalaccess::ARKEY1;accessRights.changeAccess = logicalaccess::ARKEY1;// Create a 4-byte data file which required communication encryptiondesfirecmd- createStdDataFile( 0, logicalaccess::CMENCRYPT, accessRights, 4);std::cout. // Set the current targeted key to the chip profile for further usestd::sharedptr dprofile = std::dynamicpointercast(chip- getProfile);std::sharedptr doldkey( new logicalaccess::DESFireKey);doldkey- fromString( '22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 ');dprofile- setKey( 0x000521, 2, doldkey);desfirecmd- authenticate( 2);std::cout.
// Set the current targeted key to the chip profile for further usestd::sharedptr dprofile = std::dynamicpointercast(chip- getProfile);std::sharedptr doldkey( new LOGICALACCESS::DESFireKey);doldkey- fromString( '22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 ');dprofile- setKey( 0x000521, 2, doldkey);std::sharedptr dkey( new LOGICALACCESS::DESFireKey);dkey- fromString( '2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b ');// Change the keydesfirecmd- changeKey( 2, dkey);std::cout.