Transceive PN512

Re: Regarding Apdu Commands for the NFC reader.

17. September 2014 at 19:18
Dear Friends,


I am write a C library to interface the transceiver PN512 FNC EXPLORE with a 8 bit microcontroller. But currently I cannot read UID from a NFC MIFARE Ultralight card or any data or memory segments.

I lost the last tree day try solve this problem, but cannot found a solutions. Please I need your help.

This is my code to send data from FIFO BUFFER to RF anntena and read data sent by Card:

The code below init the PN512 NFC Board EXPLORE to enable the RF antenna and write the command that will be send to fifo

EXPLORE_NFC_PN512_ControlReg(0x05);
EXPLORE_NFC_PN512_TxAutoReg();
EXPLORE_NFC_PN512_RxThresholdReg();
EXPLORE_NFC_PN512_RFCfgReg();
EXPLORE_NFC_PN512_GsNOnReg();
EXPLORE_NFC_PN512_TxControlReg();

EXPLORE_NFC_PN512_Clear_Fifo_Buffer();
EXPLORE_NFC_PN512_WRITE_MB_INTO_FIFO_BUFFER(OutBuffer,0x01); // 0x26 is the data written into the fifo buffer

NOW is time to send the data to NFC Card:

EXPLORE_NFC_PN512_Start_Send();
EXPLORE_NFC_PN512_Transmit();
EXPLORE_NFC_PN512_Transceive();
nBytes=EXPLORE_NFC_PN512_GetFifoLevel(); // Get FiFo level
EXPLORE_NFC_PN512_READ_FIFO_BUFFER_MB(ReaderBuffer, 0x02);

After send the data I will check the data sent by card. In my case I dont receive nothing.


Thanks.
+ 0  |  - 0