RFID macro ReadRFIDBlock problem

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
Reinier
Posts: 4
Joined: Sat Jul 25, 2015 12:52 pm
Been thanked: 1 time
Contact:

RFID macro ReadRFIDBlock problem

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: RFID macro ReadRFIDBlock problem

Post 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.

Reinier
Posts: 4
Joined: Sat Jul 25, 2015 12:52 pm
Been thanked: 1 time
Contact:

Re: RFID macro ReadRFIDBlock problem

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: RFID macro ReadRFIDBlock problem

Post by Benj »

Hello Reiner,

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

Post Reply