Forum / MIFARE and NFC Reader IC`s / Create file in mifare desfire
-
public void CreateFile() throws Exception {
byte[] buffer = new byte[7];
buffer[0] = (byte) ((0x00)); //file Number
buffer[1] = (byte) ((0xFF)); //Comm. Sett.
buffer[2] = (byte) (0x00); // 2 & 3 Access Rights
buffer[3] = (byte) (0x04);
buffer[4] = (byte) (0x0F); // 4 & 5 & 6 File Size
buffer[5] = (byte) (0x00);
buffer[6] = (byte) (0x00);
sendRequest(CREATE_FILE,buffer);
}
this code file successful created and write on this file are working but cannot read this file what is the settings for comm. sett. for creating the file to read and write in the file.
+ 0 | - 0
Hi Pradip,
Unfortunately I do not understand your code fragment. Do you want to build a APDU byte sequence? Which kind of file do you want to create?
Kind regards,
The MIFARE Team
+ 0 | - 0
i want to create file in mifare desfire ev1 this file i read access and write access
+ 0 | - 0
Hi Pradip,
The MIFARE DESFire EV1 supports StdDataFiles, BackupDataFiles, ValueFiles, LinearRecordFiles and CyclicRecordFiles. You have to define precisely what you want to do. For each file type you can give parameters which differ between file types.
The MIFARE Team
+ 0 | - 0
i want to create StdDataFile in mifare desfire
+ 0 | - 0
Hi Pradip,
Byte offset 1 defines the communication settings. You have set “fully enciphered communication”. In this case you have to set the correct access rights (byte offset 2, 3) for reading, writing, etc. In your case you have to use the application master key (key #0) to authenticate before you can write or read. Is it what you want to do?
The MIFARE Team
+ 0 | - 0
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.