5 Responses

  1. mathi

    Hello Stephen!

    Thank you for this awsome article!
    It really helped my very much! thanks for that!

    But i have a question to you: could you please show me a way to extract/decrypt the data i get from my RFID reader?
    I use an Omnikey A Easy RFID module(serial) that i connected to to raspberry via the GPIO port.
    I can get the raw byte data like you did in your example above, but i’m not able to read the UID out of this.
    I even cant find the 0x0A and 0x0D bytes you mentioned in your post…
    Also the instruction of the RFID module doesnt help me much…
    Its 65 sites thick, and i dont know exactly what im looking for…

    it would be very nice if you could help mi out a bit…

    kind regards

  2. Tom

    Thanks for this!

    I’m new to RFID … do you know if there’s any way to poll or otherwise check to see if the RFID card/chip is still in the proximity of the reader? If you hold it close, does it keep sending the same thing?

    I’m looking to make something where I set a RFID card on the reader and my application does something until the card is removed.

  3. Andrew Timm

    Stephen, though this post is 18 months old – it’s the one that has progressed me the furthest – thanks!

    I’m trying to get my RPi NFC reader to be recognized by a Java class (exactly as you have done here). My setup is slightly different – I am using the “/dev/ttyAMA0″ serial port to connect instead of USB. I’m relatively certain my reader is connected and configured properly, as I can poll and get a response when a card is presented.

    When I execute the program, I can see that the COM port opens successfully, but when I present a card, nothing happens.

    I’ve tried numerous other Java methods to try the same thing :

    TerminalFactory terminalFactory = TerminalFactory.getInstance(“PC/SC”, null);
    System.out.println(“terminalFactory type: ” + terminalFactory.getType());

    List cardTerminalList = terminalFactory.terminals().list();

    In this case I get an exception “SCARD_E_NO_READERS_AVAILABLE” at the “List cardTerminalList = terminalFactory.terminals().list();” line.

    I test the poll directly after and it works.

    Any idea what is going on here? I’ve been scouring the net for a day and am at a standstill. My next option is to purchase the same Reader you use and connect it via USB.

    Greatly appreciate any help you can offer. Thanks, Andy

  4. Gokul Pothirajan

    Hey, this is great ! I was struggling with the get bytes bit.

    I was wondering if it will be possible to get bytes until it reaches 0x7E then put that into data?

    It’s a problem I face when I receive too many packets at once.

Leave a Reply