Hi,

[EMAIL PROTECTED] wrote:

Hi all,

may i ask you 2 questions ?

1. I want to check whether the card is inserted (so exists in reader) or
removed (sp doesnt exist in reader). Is it necessary to write a daemon
that monitoring the reader by using CT_init periodically ? I guess this
will make system so busy. Any idea? How to know when the card is inserted?

Once the card is inserted or removed, an interrupt is generated on the serial device ( which is a UART Chip, in my case ) and the interrupt handler sends a SIGIO signal to the application. On receiving the signal, the application can read and determine whether  card is inserted.
Also, in my case, the reader sends a sequence of bytes, which will tell the application whether the card is inserted or removed.

I guess, U'll have to use interrupts, polling eats up lots of CPU cycles .
 

 

2. Im doing LTSP and smartcard. I have posted it before. I got very
confused. The main problem is: the LTSP is run at the server, and my
reader is plugged at the client side. How can the server know whether the
card is inserted or removed.

Any idea ? please help me if you know something.

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle



warm regards,

Sreenidhi.B.G

 

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle


Reply via email to