View previous topic :: View next topic |
Author |
Message |
six1
Joined: 27 Feb 2009 Posts: 553
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Wed Aug 06, 2014 6:07 pm Post subject: |
|
|
Hi,
That's what I'm seeing at the moment. Although I've not spent much time working on mine the documentation that I've read isn't the best.
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
Posted: Wed Aug 06, 2014 7:09 pm Post subject: |
|
|
If you mean datasheet of RC522 i think it's really somewhat ... funny. It doesn't explain many functions this chip has so it's hard to configure it, and there's no sample initializaton procedure in datasheet.
So, i think that only possibility is that you know C language and translate one of C examples, since there are easy to find.
I really hope that you will be succesfull in Bascom, Ian! |
|
Back to top |
|
|
Hkipnik
Joined: 03 May 2010 Posts: 20
|
Posted: Sat Sep 06, 2014 3:44 pm Post subject: |
|
|
Hello,
here a small Program for the RC522 Chip,
it read the Tag ID
Best regards
Hkipnik |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Sep 07, 2014 8:51 am Post subject: |
|
|
Hi Hkipnik,
Thanks for the code, I'll try it out when I get the time.
I wanted to write my own code but I've sent most of my time getting the i2c bootloader working.
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
Posted: Sun Sep 07, 2014 10:09 am Post subject: |
|
|
It works! Great work, Hkipnik!
For a start, showing ID is quite OK. Range is as expected, not very big (around 3.4cm), but i guess it's what you pay for...
(I still hav to figure it out why one series of cards work and other doesn't, but i bought them from ebay, so i guess one option is that they are defect...)
UPDATE: i found out that those "non-working" cards are actually 125khz ones, so chinaman sent me wrong ones
So, all works like a charm!
Many thanks! |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Sep 08, 2014 12:18 pm Post subject: |
|
|
super Hkipnik ! Thanks for sharing.
It seems a capable chip with i2c, spi and uart inferfact
I include a link to the PDF for the ones interested.
http://www.nxp.com/documents/data_sheet/MFRC522.pdf _________________ Mark |
|
Back to top |
|
|
Hkipnik
Joined: 03 May 2010 Posts: 20
|
Posted: Thu Sep 11, 2014 7:13 pm Post subject: |
|
|
Hello,
here is a Demo to read and write Data to the Tag.
Best regards
Hkipnik |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Sep 12, 2014 9:09 pm Post subject: |
|
|
excellent update, thanks ! Never worked out how to write cards myself so it great to have some working code. _________________ Mark |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
Posted: Mon Sep 15, 2014 3:28 pm Post subject: |
|
|
Hello!
It seems that i can't get it to write on my tags...program reports "Storage volume KByte 8, which means 1kb of storage, i did uncomment line for write data and terminal says "Write data" 3 times, but still i only get tag ID...
any clue what's wrong? i have tags and cards from ebay, card type 0400.
Thanks!
Best regards, Paul |
|
Back to top |
|
|
Hkipnik
Joined: 03 May 2010 Posts: 20
|
Posted: Tue Sep 16, 2014 7:25 pm Post subject: |
|
|
Hello Paul,
the program supported only 4Byte Tag ID,
your Tag have certainly 8Byte ID.
if the first Byte-ID H88,
the Chip has 8Byte ID
Best regards
Hkipnik |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
|
Back to top |
|
|
Hkipnik
Joined: 03 May 2010 Posts: 20
|
Posted: Wed Sep 17, 2014 7:27 pm Post subject: |
|
|
Hello Paul,
try in the Sub RC522_auth the Password
to place on A0 - A1 - A2 - A3 - A4 - A5
or try other Tag |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
Posted: Wed Sep 17, 2014 8:37 pm Post subject: |
|
|
Nope...nothing.
At the moment i have only one type of cards at home. Maybe i will order some other type once, but for now the main thing is that reading ID works, and that alone is a great job from you!
What kind of card did you use?
Thanks again! |
|
Back to top |
|
|
|