card reader on serial port

  • Thread starter =?ISO-8859-15?Q?Marcus_K=F6sters?=
  • Start date
?

=?ISO-8859-15?Q?Marcus_K=F6sters?=

Hello...

gotta problem here and hope someone can help me..

how do i read from a cardreader for magnetcards which is connected to a
serial port?

how do i read data from serial ports?

thanks for your help,


marcus
 
R

Rusty Wright

It can't be that hard. I remember doing a test and on a Windows
machine you can open COM1: using the normal java file stuff. On unix
it would be the same; open /dev/ttywhatever. On the other hand, if
you need to change the baud rate, parity, etc. I have no clue.

I was looking in to this a while ago and posted a query on a local
mailing list and someone just asked me about my progress; here's my
response, which might have some useful information in it:

I ended up not doing anything; the people who would have used it nixed
the idea.

On the other hand, after investigating it I did find out that it looks
like it's very easy to do. The Cal cards use a standard magnetic
stripe format which is readable by all the usual readers you can get.
There are several tracks on cards with a magnetic strip and the Cal
card is only using one of them, so you may have to program the reader
to read only that track, or maybe it will send you only its data since
it's the only active one. You can also program the reader to do stuff
for you so that your software has less to do. But since the data is
so short and simple I'm not sure I see the need for this.

The other thing someone pointed out to me is that the Cal card also
has the student/staff id on the front in bar code. The only thing
that's on the magnetic stripe is the student/staff id, so it's
functionally equivalent. So you could also use a bar code scanner,
which could be easier since people can just wave their card in front
of it and no need to mount a reader.

If you do a google search for magnetic stripe readers you'll get a
ton of hits, so there are many choices.
 
?

=?ISO-8859-15?Q?Marcus_K=F6sters?=

thanks for your help,
i will give it a try =)
if it does not work be sure that i'll scream for help again ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Data via serial port breaks down in multiple packets 7
Need help with this script 4
Help with Loop 0
pthread and serial port 3
Baccarat (card game) C++ 1
Serial port on J2ME 1
Tasks 1
Read from serial port 2

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top