Forum › MIFARE SDK › DesFire EV2 read linear record › Reply To: DesFire EV2 read linear record
Hi Support,
After much debugging I found out that after
When I read the file settings with
And log the result with
I am getting the 0 as currentNumberOfRecords
Why is the currentNumberOfRecords = 0?
I am banging my head to understand.
Thanks in advance.
After much debugging I found out that after
desFireEV2.createFile(1, new DESFireFile.LinearRecordFileSettings(
IDESFireEV1.CommunicationType.Enciphered, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
fileSize, 1, 1));
desFireEV2.writeRecord(1, 0, data, IDESFireEV1.CommunicationType.Enciphered);
desFireEV2.commitTransaction();
When I read the file settings with
DESFireFile.LinearRecordFileSettings fileSettings = (DESFireFile.LinearRecordFileSettings) desFireEV2.getFileSettings(1);
And log the result with
Log.i(TAG, "fileSettings: => MaxNumberOfRecords: " + fileSettings.getMaxNumberOfRecords()
+ " CurrentNumberOfRecords: " + fileSettings.getCurrentNumberOfRecords() +
" RecordSize: " + fileSettings.getRecordSize() + " fileType: " + fileSettings.getType());
I am getting the 0 as currentNumberOfRecords
I/DemoActivity: fileSettings: => MaxNumberOfRecords: 3, CurrentNumberOfRecords: 0, RecordSize: 500, fileType: RecordLinear
Why is the currentNumberOfRecords = 0?
I am banging my head to understand.
Thanks in advance.
+ 0
|
- 0