CARD emulation PN7160 Serial number

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

CARD emulation PN7160 Serial number

473 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

366 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

431 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