libnfc  1.7.0-rc7
nfc-emulate-uid.c File Reference

Emulates a tag which which have a "really" custom UID. More...

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <nfc/nfc.h>
#include "utils/nfc-utils.h"

Go to the source code of this file.

Detailed Description

Emulates a tag which which have a "really" custom UID.

NFC devices are able to emulate passive tags but manufacturers restrict the customization of UID. With PN53x, UID is only 4-byte long and the first byte of emulated UID is hard-wired to 0x08 which is the standard way to say this is a random UID. This example shows how to emulate a fully customized UID by "manually" replying to anti-collision process sent by the initiator.

Definition in file nfc-emulate-uid.c.