Get UID from multiple cards (Anticollision)

Forum / MIFARE general topics and applications / Get UID from multiple cards (Anticollision)

  • 25. January 2018 at 16:14
    Hi Guys,

    I'm struggeling. I can't find out how to read multiple cards placed on the reader at once.
    I'm using WinSCard in C#.
    I can go through to get a UID of one of the cards.
    Then i suspect i need to HLTA this card, and then try again.
    But i get the same UID for each try.

    I can get from:
    SmartCard.SCardConnect(hContext, readerName, 2, 3, ref phCard, ref ActiveProtocol);
    TransmitAPDU(phCard, APDU, out UID);
    - The APDU is: { 0xFF, 0xCA, 0x00, 0x00, 0x00 }

    And then i'm not 100% sure what to do. I have tried:
    Anticollision 1: { 0xFF, 0x68, 0x0E, 0x03, 0x0C, 0x0A, 0x00, 0x00, 0x0A, 0x58, 0x70, 0x00, 0x00, 0x00, 0x00, 0x93, 0x20, 0xFE }
    Anticollision 2: { 0xFF, 0x68, 0x0E, 0x03, 0x11, 0x0F, 0x00, 0x00, 0x0A, 0x58, 0x70, 0x00, 0x00, 0x00, 0x00, 0x93, 0x70, 0x26, 0x5C, 0x40, 0x4A, 0x70, 0xFE }
    HLTA: { 0xFF, 0x68, 0x0E, 0x03, 0x0C, 0x0B, 0x00, 0x00, 0x00, 0x34, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0xFE }
    REQA: { 0xFF, 0x68, 0x0E, 0x03, 0x0B, 0x0A, 0x07, 0x00, 0x10, 0x8D, 0x80, 0x00, 0x00, 0x00, 0x00, 0x26, 0xFE }
    And then GETUID again: { 0xFF, 0xCA, 0x00, 0x00, 0x00 }

    But i keep getting the same uid.
    What am i missing? Or am i just totally in the wrong direction?

    Thanks for any pointers.

    + 0  |  - 0

    Re: Get UID from multiple cards (Anticollision)

    29. January 2018 at 13:02
    Hi Micael,

    Sorry, I cannot give you any help in C# programming the PC/SC interface. Only general questions to use MIFARE products.

    Please have a look to this site:

    http://www.nxp.com/support

    Regards,
    The TapLinx team

    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.