Topic: PN532 Psuedo-APDUs and internal registers

Hi,

I've seen that libnfc and RFIDiot have different sets of pseudo-APDUs implemented in them.

I presume that the documentation for these can only be obtained by signing the NDA with NXP?

It would be interesting to see the list of APDUs, internal registers, and what their values mean.

Thanks,

Andrew

Re: PN532 Psuedo-APDUs and internal registers

There seems to be more documentation available under NDA.
It would be very interesting to add useful APDU's which are not yet available.
Could you suggest the ones you have seen which are missing in libnfc?

Re: PN532 Psuedo-APDUs and internal registers

Just from a quick look, RFIDiot has APDUs for controlling the LED on the reader and working with the SAM installed in some of the ACR122U readers.

Some of these require a different beginning to the APDU, so I was working on sorting this out in libnfc and adding them.

Re: PN532 Psuedo-APDUs and internal registers

Hey cybergibbons,

This would be great. It is a nice addition for the dev_acr122{.c|.h} files. Though the LED functionality is ACR122 specific and has nothing to do with the PN53x chip. Controlling the SAM chip instead could be an interesting to add to libnfc self. I'm happy to integrate your contribution into the project. Just let me know when you got some nice examples smile.

Cheers,

  Roel

Re: PN532 Psuedo-APDUs and internal registers

Hi cybergibbons,

There is a documentation on ACR122 API available on the proxmark site in section "files/nfc", directly at http://www.proxmark.org/files/index.php … ACR122.pdf (you have to register and login before).

For example, the section LED (that you want of course !) :

Appendix 3: Sample Codes for Setting the LED

Example 1: To read the existing LED State.
// Assume both Red and Green LEDs are OFF initially //
// Not link to the buzzer //
APDU = “FF 00 40 00 04 00 00 00 00”
Response = “90 00”. RED and Green LEDs are OFF.

Example 2: To turn on RED and Green Color LEDs
// Assume both Red and Green LEDs are OFF initially //
// Not link to the buzzer //
APDU = “FF 00 40 0F 04 00 00 00 00”
Response = “90 03”. RED and Green LEDs are ON,
#To turn off both RED and Green LEDs, APDU = “FF 00 40 0C 04 00 00 00 00”

Example 3: To turn off the RED Color LED only, and left the Green Color LED unchanged.
// Assume both Red and Green LEDs are ON initially //
// Not link to the buzzer //
...

Good luck !