libnfc
1.7.1
|
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.
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.