Page 1 of 1

RFID macro ReadRFIDBlock problem

Posted: Tue Jul 28, 2015 9:41 am
by Reinier
Hallo,

I tried to learn about Keys A, B in Mifare mode. (using course: EB9328 ; exercise 7 )
Suddenly, if I use the property Key type = 0 (Key A) in macro ReadRFIDblock the macro looks to crash after compiling to chip (takes time of appr. 30 seconds , to exit without show data on the display)
I could not resolve that problem.
If I use Key type is 1 (Key B) then all data is showing proper on the display
I tested alse for several blocks (address)
I use a PIC 16F877A

What could be wrong ????
Thanks for answer.

Re: RFID macro ReadRFIDBlock problem

Posted: Thu Jul 30, 2015 5:26 pm
by Benj
Hello,

It could be that this is what it is meant to do.

Using the correct key B allows the data to be read but using the incorrect key A does not.

Re: RFID macro ReadRFIDBlock problem

Posted: Thu Jul 30, 2015 9:00 pm
by Reinier
Dear Benj,

Thanks for reply, I supposed that I changed key A in the RWD MiCode module only, not the RF cards itself .
These cards are to read with key_type parameter =1; the trailer block of all sectors are still the same as for new cards : 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF
Key A = 00 00 00 00 00 00 and key B = FF FF FF FF FF FF .
How can I reset the keys in the RWD module , for also read values with Key A (access bits C1=0 C2=0 C3=0) ? (I tried also to do with these default values using macro StoreRFIDkey )
By the way, how is property key 0-31 organized for key A an key B ?

Thans for answer,

Reinier

Re: RFID macro ReadRFIDBlock problem

Posted: Tue Aug 04, 2015 10:07 am
by Benj
Hello Reiner,

I have sent you a PM with an attachment that should help.