PN7160: RF_INTF_ACTIVATED_NTF missing fields in response

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PN7160: RF_INTF_ACTIVATED_NTF missing fields in response

380件の閲覧回数
tobias91
Contributor II

Hi,

I am using the PN7160 and trying to read 2 different cards.

The first card is a mifire DESfire card, when reading the RF_INTF_ACTIVATED_NTF response it follows the spec with all the fields as defined in the NCI 2.3 document.

But the i tried with a Mifare 4k card and the last part of the response of RF_INTF_ACTIVATED_NTF is "RF Technology
Specific Parameters" but the fields for "Data Exchange RF Technology and Mode" and all fields after that are not in the message. Are they excluded in the response for some reason?

 

0 件の賞賛
返信
7 返答(返信)

340件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi

 

Do you have a log file for this?  please enable NCI_DEBUG compile flag in side the project properties.  " Mifare 4K" means  "Mifare classic 4K"?

 

Regards

Daniel

0 件の賞賛
返信

335件の閲覧回数
tobias91
Contributor II

Hi, yes it's a Mifare classic 4K"
Here is the log when trying to start moving the code to our codebase:

{0x20, 0x0, 0x1, 0x1} ---> NCI core reset

{0x40, 0x0, 0x1, 0x0} ---> NCI core reset response

{0x60, 0x0, 0x9, 0x2, 0x1, 0x20, 0x4, 0x4, 0x61, 0x12, 0x50, 0x5, 0x0} -> NCI core reset notification response

{0x20, 0x1, 0x2, 0x0, 0x1, 0x1} -> NCI ---> NCI core init

{0x40, 0x1, 0x1e, 0x0, 0x1a, 0x7e, 0x6, 0x2, 0x1, 0xd0, 0x2, 0xff, 0xff, 0x1, 0xff, 0x0, 0x8, 0x0, 0x0, 0x1, 0x0, 0x2, 0x0, 0x3, 0x0, 0x80, 0x0, 0x82, 0x0, 0x83, 0x0, 0x84,
0x0} ---> Nci core init response

{0x21, 0x3, 0x3, 0x1, 0x0, 0x1, 0x0} ---> start discovery

{0x41, 0x3, 0x1, 0x0} ---> start discovery response

{0x61, 0x5, 0x15, 0x1, 0x1, 0x2, 0x0, 0xff, 0x1, 0xa, 0x2, 0x0, 0x4, 0x3c, 0x56, 0x78, 0xcb, 0x1, 0x18, 0x0} -> response for found card

 

 

0 件の賞賛
返信

275件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

 

it works on my side.

[61 05 15 01 80 80 00 ff 01 0a 02 00 04 5b b3 9a 00 01 18 00 00 00 00 00]

 

RF_INTF_ACTIVATED_NTF
* RF Discovery ID = 1 [0x01]
* RF Interface = {NXP PN547-PN548} TAG-CMD [0x80]
* RF Protocol = {NXP PN547-PN548} MIFARE Classic [0x80]
* Activation RF Technology and Mode = {Std} NFC_A_PASSIVE_POLL_MODE [0x00]
* Max Data Packet Payload Size = 255 [0xFF]
* Initial Number of Credits = 1 [0x01]
* Length of RF Technology Specific Parameters = 10 [0x0A]
* RF Technology Specific Parameters = [0x02 0x00 0x04 0x5B 0xB3 0x9A 0x00 0x01 0x18 0x00]
--> SENS_RES = [0x02 0x00]
--> NFCID1 Length = 4 [0x04]
--> NFCID1 = [0x5B 0xB3 0x9A 0x00]
--> SEL_RES Response Length = 1 [0x01]
--> SEL_RES Response = [0x18]

* Data Exchange RF Technology and Mode = {Std} NFC_A_PASSIVE_POLL_MODE [0x00]
* Data Exchange Transmit Bit Rate = {Std} NFC_BIT_RATE_106: 106 Kbit/s [0x00]
* Data Exchange Receive Bit Rate = {Std} NFC_BIT_RATE_106: 106 Kbit/s [0x00]
* Length of Activation Parameters = 0 [0x00]
* Activation Parameters = []
--> Proprietary interface is activated, proprietary parameters MAY be used.

0 件の賞賛
返信

296件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

it is weird, this is a incomplete message,   do you see any function issues?

0 件の賞賛
返信

240件の閲覧回数
tobias91
Contributor II

For desfire card everything works as expected get the full response.

As you said it is an incomplete message. If I after getting the message keep waiting for more data i do not get the rest of the message. Do i have to send something to get the remaining parts of the message?
The reason is that to be able to lift this in to our current codebase need to be able to read out the ats and sak.

0 件の賞賛
返信

206件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Do you have other Mifare Classic card to verify this issue?

0 件の賞賛
返信

207件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi  @tobias91 

 

RF_INTF_ACTIVATED_NTF is from NFCC to activate an RF interface.  We can check the card first.

could you please use the NXP taginfo app  on your android phone to scan the Mifare Classic card?  full scan and send me the full log,  The purpose is to check whether this card is from NXP or cloned.

 

Regards

Daniel

 

 

 

Regards

Daniel

0 件の賞賛
返信