|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
[Muscle] card terminal hang up
From: Krystian Maculewicz (yob
linuxnews.pl)
Date: Thu Feb 17 2005 - 08:26:47 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hello
Im trying to write some data to 1kb memory card using towitoko library
and towitoko chipdrive extern contected to rs232. Its working fine but
once a while there is some strange error. It seams that reader hang up
and does not allow to write any data to card. Readed data from card is
as well bogus (some patern data at random location or all data filed
with nulls). Response from reader seams random lots of 63 00 few 90 00
(but nothing new was writen) and 69 83 (with pin was ok). After
disconecting reader for a while (few minutes) and conecting it back,
reader is working fine with no errors. Reader also hang up with
towitoko-tester after initialising terminal, inserting a card and
waiting about 30 s. Schema of my code is:
initializiation_of_reader;
sending_pin;
writing_some_data;
closing_reader;
When throwing this code in endless loop, after >10 iterations there are
coming garbage in readed data. Is this conception good ? or i have to
reset the reader after writing or before reading some data? or i need to
close reader after all operation (writing or reading) ?
Regards
--
Krystian 'yoB' Maculewicz
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]