Would it be possible for a contactless reader (I am using SCR331-DI) to detect 2 cards at once? Meaning, I place 2 mifare cards on top of the wireless reader, establish connection with one of them, do some data transfer, cloes connection and connect the other one. Would this be possible? This is what I am doing right now:

while((Reader[0].dwEventState & SCARD_STATE_PRESENT) != SCARD_STATE_PRESENT)
                {
                        ret = SCardGetStatusChange(ContextHandle, MINTIMEOUT, Reader, 1);
                }

I first use a while loop to detect that a card has been inserted (contactless). Then I use this:

ret = SCardConnect(ContextHandle,Readername, SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,  &CardHandle, &Protocol);

to establish a connection with the card before I begin transaction and data transfer. So, if I put two cards on top of the reader, what would be different or needed in order to detect both? I tried running pcscd in foreground, but after it detects the insertion of the first card, and I put the second card on top, there is no reaction. What can I do? Or it is a limitation of the hardware that I can't do this?

Thanks a lot for all help in advance. :)

Cheers,

  Arthur
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to