Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

RFID Reader
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 552

germany.gif
PostPosted: Wed Aug 06, 2014 8:03 am    Post subject: Reply with quote

...Page is in German, but there are links to Raspberry C Code and others...

http://regnerischernachmittag.wordpress.com/2013/08/03/5euro-rfidnfc-modul-rc522-zum-auslesen-von-mifare-tags/

_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5060
Location: Holland

blank.gif
PostPosted: Wed Aug 06, 2014 8:49 am    Post subject: Reply with quote

the module sl30 has code included : http://www.stronglink-rfid.com/download/SampleCode/SL030/AVR-SL030.zip
it should be fairly simple to translate it.
if have no module but it would not take more than an hour to convert it to bascom.

_________________
Mark
Back to top
View user's profile Visit poster's website
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1534
Location: Basel, Switzerland

switzerland.gif
PostPosted: Wed Aug 06, 2014 6:07 pm    Post subject: Reply with quote

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

_________________
Home of AVRTimer, the Bascom timer value calculator.
http://www.planet-ian.com

Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile Visit poster's website
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Wed Aug 06, 2014 7:09 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Hkipnik

Bascom Member



Joined: 03 May 2010
Posts: 20

PostPosted: Sat Sep 06, 2014 3:44 pm    Post subject: Reply with quote

Hello,
here a small Program for the RC522 Chip,
it read the Tag ID

Best regards
Hkipnik
Back to top
View user's profile
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1534
Location: Basel, Switzerland

switzerland.gif
PostPosted: Sun Sep 07, 2014 8:51 am    Post subject: Reply with quote

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

_________________
Home of AVRTimer, the Bascom timer value calculator.
http://www.planet-ian.com

Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile Visit poster's website
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Sun Sep 07, 2014 10:09 am    Post subject: Reply with quote

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 Evil or Very Mad
So, all works like a charm!

Many thanks!
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5060
Location: Holland

blank.gif
PostPosted: Mon Sep 08, 2014 12:18 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Hkipnik

Bascom Member



Joined: 03 May 2010
Posts: 20

PostPosted: Thu Sep 11, 2014 7:13 pm    Post subject: Reply with quote

Hello,
here is a Demo to read and write Data to the Tag.

Best regards
Hkipnik
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5060
Location: Holland

blank.gif
PostPosted: Fri Sep 12, 2014 9:09 pm    Post subject: Reply with quote

excellent update, thanks ! Never worked out how to write cards myself so it great to have some working code.
_________________
Mark
Back to top
View user's profile Visit poster's website
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Mon Sep 15, 2014 3:28 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Hkipnik

Bascom Member



Joined: 03 May 2010
Posts: 20

PostPosted: Tue Sep 16, 2014 7:25 pm    Post subject: Reply with quote

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
View user's profile
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Tue Sep 16, 2014 8:39 pm    Post subject: Reply with quote

Hi!

well, my ID's are, say, 94 70 26 EB, or 75 02 F5 2D, and 04 0B 5A 2E.... that's what program shows.

cards are Mifare Classic 1k S50, like this ones:

http://www.ebay.com/itm/5-x-NFC-thin-smart-card-tag-tags-Mifare-1k-S50-IC-13-56MHz-Read-Write-RFID-/321189711006

Thanks!

Best regards, Paul
Back to top
View user's profile Visit poster's website
Hkipnik

Bascom Member



Joined: 03 May 2010
Posts: 20

PostPosted: Wed Sep 17, 2014 7:27 pm    Post subject: Reply with quote

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
View user's profile
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Wed Sep 17, 2014 8:37 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum