CARD emulation PN7160 Serial number

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

CARD emulation PN7160 Serial number

824 Views
awn
Contributor I

Hello,

I am currently working on card emulation with PN7160, connected to an ESP32.
When I tap the PN7160 to an Android NFC reader (using NFC Tools), the emulated card is detected. However, I notice that the UID changes on each tap, except for the first byte, which is always 08.

Example UIDs I observed:

  • 08467004

  • 0886036e

  • 08c7351f

  • 0831fb0d

  • ...

My question is:
Is it possible to configure a fully custom static UID (e.g., fixed 4-byte UID like "0456789A") when using card emulation mode on the PN7160?
Any insights or guidance would be greatly appreciated!

 

Tags (1)
0 Kudos
Reply
2 Replies

717 Views
awn
Contributor I

Hi @EduardoZamora ,

Thank you very much for your explanation and for pointing me to the NXP_HCE_RNDM_UID_ENB configuration. That clarifies the behavior I observed during testing.

I appreciate your support!

Best regards,
AWN

0 Kudos
Reply

782 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi @awn,

Hope you are doing well.

In Card Emulation mode, UID can be a random number, and only one byte would be fixed. In this configuration, UID will change every time there is an RF Off -> RF On transition (each tap).

I will recommend you checking PN7160/PN7220 configuration files, Section 5.8 NXP_HCE_RNDM_UID_ENB for more information.

Regards,
Eduardo.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2134119%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECARD%20emulation%20PN7160%20Serial%20number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2134119%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20on%20card%20emulation%20with%20PN7160%2C%20connected%20to%20an%20ESP32.%3CBR%20%2F%3EWhen%20I%20tap%20the%20PN7160%20to%20an%20Android%20NFC%20reader%20(using%20NFC%20Tools)%2C%20the%20emulated%20card%20is%20detected.%20However%2C%20I%20notice%20that%20the%20UID%20changes%20on%20each%20tap%2C%20except%20for%20the%20first%20byte%2C%20which%20is%20always%2008.%3C%2FP%3E%3CP%3EExample%20UIDs%20I%20observed%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E08467004%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E0886036e%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E08c7351f%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E0831fb0d%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E...%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EMy%20question%20is%3A%3CBR%20%2F%3EIs%20it%20possible%20to%20configure%20a%20fully%20custom%20static%20UID%20(e.g.%2C%20fixed%204-byte%20UID%20like%20%220456789A%22)%20when%20using%20card%20emulation%20mode%20on%20the%20PN7160%3F%3CBR%20%2F%3EAny%20insights%20or%20guidance%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2134119%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ECommunication%20%26amp%3B%20Control(I3C%20%7C%20I2C%20%7C%20SPI%20%7C%20FlexCAN%20%7C%20Ethernet%20%7C%20FlexIO)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138172%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CARD%20emulation%20PN7160%20Serial%20number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138172%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200888%22%20target%3D%22_blank%22%3E%40EduardoZamora%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20explanation%20and%20for%20pointing%20me%20to%20the%20NXP_HCE_RNDM_UID_ENB%20configuration.%20That%20clarifies%20the%20behavior%20I%20observed%20during%20testing.%3C%2FP%3E%3CP%3EI%20appreciate%20your%20support!%3C%2FP%3E%3CP%3EBest%20regards%2C%3CBR%20%2F%3EAWN%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136049%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CARD%20emulation%20PN7160%20Serial%20number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136049%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252709%22%20target%3D%22_blank%22%3E%40awn%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%3C%2FP%3E%0A%3CP%3EIn%20Card%20Emulation%20mode%2C%20UID%20can%20be%20a%20random%20number%2C%20and%20only%20one%20byte%20would%20be%20fixed.%20In%20this%20configuration%2C%20UID%20will%20change%20every%20time%20there%20is%20an%20RF%20Off%20-%26gt%3B%20RF%20On%20transition%20(each%20tap).%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20will%20recommend%20you%20checking%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN14431.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPN7160%2FPN7220%20configuration%20files%3C%2FA%3E%3CSPAN%3E%2C%20Section%205.8%20NXP_HCE_RNDM_UID_ENB%20for%20more%20information.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERegards%2C%3CBR%20%2F%3EEduardo.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E