View previous topic :: View next topic |
Author |
Message |
tiago.ferreira
Joined: 17 Jan 2008 Posts: 2

|
Posted: Thu Jan 17, 2008 2:49 pm Post subject: READMAGCARD problem |
|
|
Hello,
I'm connecting a card reader to an ATMEGA64, and I'm trying to use the function READMAGCARD. The problem is that when I call that, the program stops running, and it won't go further unless I swipe a card in the reader... is there a way to stop that particular function, or a way to detect if a card is being swiped?
Thanks in advance,
Tiago Ferreira
Portugal |
|
Back to top |
|
 |
binu_ji
Joined: 07 Jan 2006 Posts: 17

|
Posted: Tue May 20, 2008 9:45 am Post subject: |
|
|
Call the READMAGCARD function only after the CS line goes low, that is call the function only if the reader sense any card. |
|
Back to top |
|
 |
tiago.ferreira
Joined: 17 Jan 2008 Posts: 2

|
Posted: Fri Jun 06, 2008 4:22 pm Post subject: |
|
|
Thank you binu_ji, for your help. I had allready done that, but that only solve half the problem, because if a card is "badly swiped", the program will stop anyway until another card is swiped. |
|
Back to top |
|
 |
binu_ji
Joined: 07 Jan 2006 Posts: 17

|
Posted: Sat Jun 07, 2008 11:24 am Post subject: |
|
|
Did you get the data for both direction.
I am getting 37bytes for track 2 at one direction and when i swipe the card on the other direction i am getting only 1 byte.
Anybody get this problem. |
|
Back to top |
|
 |
binu_ji
Joined: 07 Jan 2006 Posts: 17

|
Posted: Mon Jun 23, 2008 9:23 am Post subject: |
|
|
I have solved it now with 8051 Microcontroller with my own code to read the magnetic stripe card on both directions. |
|
Back to top |
|
 |
|