"NXP PN7160 example code" has bug : it can't display all of NDEF datas.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"NXP PN7160 example code" has bug : it can't display all of NDEF datas.

682 Views
BruceChang
Contributor I
NXP_TagInfo.jpg

"NXP PN7160 example code" has bug : it can't display all of NDEF datas.
 
My Tag had write data(ABCDEFGHIJKLMNOPQRSTUVWXYZ123456).
Use NXP Taginfo APP can display all of data, please check attached file : NXP_TagInfo.jpg
 
The example code read data as below and it is lose data (56).
---------------------------------------------------------------------------
Running the NXP-NCI2.0 example.
 
WAITING FOR DEVICE DISCOVERY
 - POLL MODE: Remote T2T activated
SENS_RES = 0x44 0x0
NFCID = 04 70 1d a2 a5 70 80 
SEL_RES = 0x0
--- NDEF record received:
   Text record: ABCDEFGHIJKLMNOPQRSTUVWXYZ1234
 
CARD REMOVED
 
WAITING FOR DEVICE DISCOVERY
---------------------------------------------------------------------------
 
When I add more debug message, the lose data is include from [Answer] as below :
 
Running the NXP-NCI2.0 example.
 
WAITING FOR DEVICE DISCOVERY
 - POLL MODE: Remote T2T activated
SENS_RES = 0x44 0x0
NFCID = 04 70 1d a2 a5 70 80 
SEL_RES = 0x0
---------- static void NxpNci_ReadNdef(NxpNci_RfIntf_t RfIntf) ---------- Start
1. Cmd : 00 00 00 00 00 00 00 00 02 00 
2. Answer : 00 00 11 55 56 57 58 59 5a 31 32 33 34 35 36 00 00 00 00 00 34 35 36 00 00 00 00 00 00 00 ...
3. Cmd : 00 00 02 30 03 00 00 00 02 00 00 00 
4. Answer : 60 06 03 01 00 01 58 59 5a 31 32 33 34 35 36 00 
5. Answer : 00 00 11 e1 10 12 00 03 28 c1 01 00 00 00 25 54 02 65 6e 00 34 35 36 00 00 00 00 00 00 00 ...
1. Cmd : 00 00 02 30 03 00 00 00 02 00 00 00 
2. Answer : 00 00 11 e1 10 12 00 03 28 c1 01 00 00 00 25 54 02 65 6e 00 34 35 36 00 00 00 00 00 00 00 ...
3. Cmd : 00 00 02 30 04 00 00 00 02 00 00 00 
4. Answer : 60 06 03 01 00 01 00 03 28 c1 01 00 00 00 25 54 
5. Answer : 00 00 11 03 28 c1 01 00 00 00 25 54 02 65 6e 41 42 43 44 00 34 35 36 00 00 00 00 00 00 00 ...
1. Cmd : 00 00 02 30 04 00 00 00 02 00 00 00 
2. Answer : 00 00 11 03 28 c1 01 00 00 00 25 54 02 65 6e 41 42 43 44 00 34 35 36 00 00 00 00 00 00 00 ...
3. Cmd : 00 00 02 30 08 00 00 00 02 00 00 00 
4. Answer : 60 06 03 01 00 01 01 00 00 00 25 54 02 65 6e 41 
5. Answer : 00 00 11 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 00 34 35 36 00 00 00 00 00 00 00 ...
1. Cmd : 00 00 02 30 08 00 00 00 02 00 00 00 
2. Answer : 00 00 11 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 00 34 35 36 00 00 00 00 00 00 00 ...
3. Cmd : 00 00 02 30 0c 00 00 00 02 00 00 00 
4. Answer : 60 06 03 01 00 01 48 49 4a 4b 4c 4d 4e 4f 50 51 
5. Answer : 00 00 11 55 56 57 58 59 5a 31 32 33 34 35 36 00 00 00 00 00 34 35 36 00 00 00 00 00 00 00 ...
1. Cmd : 00 00 02 30 0c 00 00 00 02 00 00 00 
2. Answer : 00 00 11 55 56 57 58 59 5a 31 32 33 34 35 36 00 00 00 00 00 34 35 36 00 00 00 00 00 00 00 ...
---------- void NdefPull_Cb(unsigned char *pNdefMessage, unsigned short ReceivedSize, unsigned int NdefMessageSize) ---------- Start
--- NDEF record received:
NdefRecord.recordPayload :  2 65 6e 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 31 32 33 34  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
   Text record: ABCDEFGHIJKLMNOPQRSTUVWXYZ1234
 
---------- void NdefPull_Cb(unsigned char *pNdefMessage, unsigned short ReceivedSize, unsigned int NdefMessageSize) ---------- End
---------- static void NxpNci_ReadNdef(NxpNci_RfIntf_t RfIntf) ---------- End
CARD REMOVED
 
WAITING FOR DEVICE DISCOVERY
 
 
I don't understand how it concatenates all the data and then loses the last two?
 
Some one can help for this bug ?
 
Thanks
 
 
0 Kudos
Reply
2 Replies

655 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @BruceChang 

 

Which example you are using?

 

Regards

Daniel

Tags (1)
0 Kudos
Reply

629 Views
BruceChang
Contributor I

The software : SW6705.zip download from NXP webside (NXP-NCI2.0_LPC82x_examples)

The hardware : LPCXpresso824-MAX board + PN7160 evaluation board

LPC82X.jpgPN7160.jpg


0 Kudos
Reply