MFRC 522_V2 RF ID read working but ID key false

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

MFRC 522_V2 RF ID read working but ID key false

Post by celebriums »

Hi All

MFRC522 is not reading tag. Help Me Please
Are there any healty running software?

Notes:
MCU Connections
Channel 1
MISO B9
MOSI B8
SCK B7
SS/SDA A4
RESET B4
Used MCU: DSPIC33EP128MC206 70Mhz External Osc

and

MFRC522 Osc Freq= 27.120Mhz


http://i.hizliresim.com/Xd1dgR.jpg
http://i.hizliresim.com/byXy0d.jpg
http://i.hizliresim.com/dXdXJV.jpg
http://i.hizliresim.com/5YlYvj.jpg
http://i.hizliresim.com/A3M3bp.jpg
Attachments
RF ID .fcfx
(428.8 KiB) Downloaded 371 times
Last edited by celebriums on Sat Oct 22, 2016 9:50 pm, edited 3 times in total.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

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: MFRC 522_V2 Flowcode V7.1.1.0 is not working.

Post by Benj »

Investigating for you now.

In your program you set A8 to 0 and C7 to 1 with the comments GND and 3V3.

You're not powering the RFID module from I/O pins are you? If you are then the current from the pins is probably not enough to correctly power the module.

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: MFRC 522_V2 Flowcode V7.1.1.0 is not working.

Post by celebriums »

Hi Benj

3V3 and GND pins directly connected is Step Down Regulator outputs.
A8 and C7 ports not ussualy
:(
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: MFRC 522_V2 Flowcode V7.1.1.0 is not working.

Post by celebriums »

Hi All
Is there a program that you know is working correctly?

SPI is made using the didin't work. RFID Card even when not plugged in, the read operation.

The Result
Card ID =0,0,0,0

(for MFRC522 reader with Flowcode 7.1.1.0)
Thank you
Attachments
MFRC522_component_V2_sad.fcfx
(75.6 KiB) Downloaded 331 times
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

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: MFRC 522_V2 Flowcode V7.1.1.0 is not working.

Post by Benj »

Hello,

I see you are using the CAL SPI component, what about instead using the MRFC522 component, there's an example here you can use.

http://www.matrixtsl.com/wikiv7/index.p ... 0c86d9ebb7

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: MFRC 522_V2 Flowcode V7.1.1.0 is not working. (Solved)

Post by celebriums »

Hello Benj

MISO,MOSI,CS,SCK and RESET signal is ok.

I think I found general problem.

I think that, MFRC522 board, can not produce antenna signal.

First possibility; MFRC522 board has corrupted.
Second possibity; It is not working, "Antenna ON" macros in Flowcode.

I'm going to buy new MFRC522 boards to electronic market in now.

I'm going to the share with you the results.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: MFRC 522_V2 Flowcode V7.1.1.0 false RF ID key

Post by celebriums »

Hello Benj
RF ID card reader board has malfunctioned. I replace it with a new one. RF reading process has become can.

But as new problems.

ID CARD ID=99;103;99;106;62

testaddress[0]=99
testaddress[1]=103
testaddress[2]=99
testaddress[3]=106
testaddress[4]=62 not true


values should be;

ID CARD ID=(testaddress[0]); 80 ; 103 ;99; 106

testaddress[0]=????
testaddress[1]=80
testaddress[2]=103
testaddress[3]=99
testaddress[4]=106
Attachments
MFRC522_component_V2_WorkedOnlyRead.fcfx
SPI Component
(77 KiB) Downloaded 329 times
RF ID worked .fcfx
MFRC522 Componenent
(430.74 KiB) Downloaded 332 times
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

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: MFRC 522_V2 RF ID read working but ID key false

Post by Benj »

Thanks for letting me know. I had a go at fixing this a while back but only ended up breaking the component completely.

I'll have another swing at it this week and see if I can improve things.

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: MFRC 522_V2 RF ID read working but ID key false

Post by celebriums »

Hello Benj
Thanks for the answer. We look forward to the correct component.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: MFRC 522_V2 RF ID read working but ID key false

Post by mnf »

This topic is a bit old but the RFID_MFRC522_v2 component now works well:

Using an Arduino and connecting: D9 to RST, D10 to SDA, D11 to MOSI, D12 to MISO and D13 to SCK.

The following flowcode reads and sends the key_id and the first data block of 16 bytes to the UART. Note that the documentation states that Check returns 255 if a key is present - but seems to return 0 and 255 if no key.
Also the interrupt pin doesn't seem to be able to be set so that an interrupt to occurs if a RFID tag is detected (which would be very convenient)
I use a dash of C to pull the RFID tag id (one line) - there doesn't seem to be another way to get this (first five bytes of block 0 store the key?)
rfid.fcfx
(13.38 KiB) Downloaded 270 times

tarmar
Posts: 3
Joined: Sun Sep 03, 2017 10:07 am
Contact:

Re: MFRC 522_V2 RF ID read working but ID key false

Post by tarmar »

Hi,

... still wrong card ID. The first and third nummer of the card ID are always the same

14:152:14:26:92
69:4:69:214:31
4:139:4:98:208

or is there something wrong in my flowcode?
Attachments
TM_MFRC522_UID.fcfx
(13.75 KiB) Downloaded 179 times

Post Reply