Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

RFID Reader
Goto page 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
dema

Bascom Member



Joined: 14 Jul 2014
Posts: 7

ukraine.gif
PostPosted: Mon Jul 14, 2014 2:33 pm    Post subject: RFID Reader Reply with quote

Hello:
Please help me in the library or program in bascom avr for this module"MIFAIR RC522 Chip IC Card Induction Module RFID Reader"
thank you



(BASCOM-AVR version : 2.0.7.7 )
Back to top
View user's profile
i.dobson

Bascom Expert



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

switzerland.gif
PostPosted: Mon Jul 14, 2014 5:11 pm    Post subject: Reply with quote

Hi,

I've just ordered exactly this RFID Reader/writer. Once I get it I'll have a look at writing a Driver. I imagine it'll take some time as this isn't at the top of my list.

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
dema

Bascom Member



Joined: 14 Jul 2014
Posts: 7

ukraine.gif
PostPosted: Tue Jul 15, 2014 12:47 am    Post subject: Reply with quote

thank you
I will wait you
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 677

poland.gif
PostPosted: Wed Jul 16, 2014 11:50 am    Post subject: Reply with quote

I have more immoboxes from cars like this in the picture below. I want to use it for educational purpose but cannot find datascheet for chip inside. Look to be simalar to EM4095. Only "Megamos/RES" is writed on it. This chip I can buy 5$ only but cannot find datascheet Shocked If any one know proper name for this part , please let me know Smile
Back to top
View user's profile Visit poster's website
Vincent

Bascom Member



Joined: 25 Jun 2012
Posts: 69

blank.gif
PostPosted: Thu Jul 17, 2014 2:06 pm    Post subject: Reply with quote

Hello everybody,

I have order the same module, but still not receive. I have search information about it, and have found this:
http://www.nxp.com/documents/data_sheet/MFRC522.pdf
Perhaps it can help you.
Best regards

Vincent
Back to top
View user's profile
protoncek

Bascom Member



Joined: 16 May 2011
Posts: 43
Location: Slovenia

slovenia.gif
PostPosted: Thu Jul 17, 2014 5:09 pm    Post subject: Reply with quote

Hi!

i've just got this module a few days ago, and i'm also in the dark...
so far i managed to change communication protocol to UART (somehow i couldn't communicate via SPI), and i came to the stage that i can read and write to registers, but so far that's it. Chip seems very powerful and as such it has a ton of functions, so convincing it to read a card is very difficult..

In short, Ian, i would be also very gratefull if you manage to write a library for it (for default SPI communication, of course). I'm suprprised that no-one actually played with this very cheap reader in bascom... there are quite a few sample programs, but they are all written for arduino and therefore in C language...

So, i join ther waitlist. If necesarry, i'm willing to contribute web space and put resulting library and demo program on my website, with all proper credits, of course.

OH, and...i just read that you're the author fo AVRtimer! Congratulations! I use it often and it's practically a must for me. Thanks!
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: Thu Jul 17, 2014 6:15 pm    Post subject: Reply with quote

Hi,

I'm still waiting for mine. Not sure if I'll use SPI or i2c. i2c is more important for me, but from what I've read/understood sofar SPI and i2c are compatible at Register Level so it wouldn't be too hard to have a constant usespi/usei2c that just uses the lowlevel i2c or spi routines in the read/write Register functions. We will see.

Thanks for the comment. I wrote AVRTimer long ago just to help me understand how the timers work in AVR. Maybe one day I'll update it with PWM/Frequency calculations and a function to read the bascom def files (To find Chips and what timers/prescalers are supported)

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: Thu Jul 17, 2014 6:53 pm    Post subject: Reply with quote

RC522 can detect which communication mode you chosen through two pins, which are connected either to GND or to +Vcc. The only problem on this board is that these two pins are already connected to SPI mode, so in order to change this a microscope or at least good magnifying glass is reccomended, since you must cut tiny PCB connection and solder it to a different level.
But either way you choose it will be fine, at least for me.


Best regards, Paul
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: Thu Jul 17, 2014 7:23 pm    Post subject: Reply with quote

Hi,

Working on SMD/0.2mm tracks is not a Major problem for me. I have access to a microscope/rework bench.

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
dema

Bascom Member



Joined: 14 Jul 2014
Posts: 7

ukraine.gif
PostPosted: Fri Jul 18, 2014 4:03 pm    Post subject: Reply with quote

Do I understand that there is no solution, I have failed and I don't succeeded in having a solution ....
Is there hope or not ??
Greetings and respect for all
Back to top
View user's profile
i.dobson

Bascom Expert



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

switzerland.gif
PostPosted: Fri Jul 18, 2014 6:01 pm    Post subject: Reply with quote

Hello,

At the Moment there is not solution.

When I get my RFID Reader I'll have a look at writing a lib but it might take some time.

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
dema

Bascom Member



Joined: 14 Jul 2014
Posts: 7

ukraine.gif
PostPosted: Sun Jul 20, 2014 10:37 am    Post subject: Reply with quote

i.dobson wrote:
Hello,

At the Moment there is not solution.

When I get my RFID Reader I'll have a look at writing a lib but it might take some time.

Regards
Ian Dobson

OK I will wait you
Back to top
View user's profile
i.dobson

Bascom Expert



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

switzerland.gif
PostPosted: Fri Jul 25, 2014 2:55 pm    Post subject: Reply with quote

Hi,

Just got mine today, maybe I'll get a chance to have a look at it over the Weekend.

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: Fri Jul 25, 2014 3:38 pm    Post subject: Reply with quote

Great! I didn't come any further than to the point where 13M signal is present in the coil (certain init procedure is required to get that). So, my reader is alive, i can write to registers, but i can't read any card info from it. i put my test program on my web site, if you find it useful, you can find it here:
http://www.protoncek.com/files/rfid.rar
Note that some words are slovenian, and i used UART protocol (i changed HW for that, so that i didn't bother with SPI at this stage) but i hope you'll get the point. It's only init routine: i don't know if it's enough or too much of it, and i don't know why timer is needed to be on (i copied routine from one C test file).

If you manage to run it (i'm sure you will), it would be great.

Thanks in advance!

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

Bascom Member



Joined: 12 Mar 2007
Posts: 70
Location: Ljubljana

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

Hi,

I have spent many houres trying to get some hints around handling this MFRC522. I found out, that this chip is most common for all Mifare readers/writers that you can buy world wide.
But, to get working code is almost impossible.
Therefore I choose this product and it works fine:

http://www.stronglink-rfid.com/en/rfid-modules/sl031.html

Best regards/ Lep pozdrav!

Andrej
Back to top
View user's profile
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 1, 2, 3  Next
Page 1 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