Escribir el UID en Magic card

Se utiliza el lector PN532 conectado por USB a un PC con Linux y tarjetas magic tag tipo Gen1A.

Para ponerle a la tarjeta el UID 11223344 se ejecuta la orden...

nfc-mfsetuid 11223344

(hay que tener pegada al lector la tarjeta antes de ejecutar esta orden)

Es necesario tener instalado el paquete "libnfc" del que se usa la utilidad "nfc-mfsetuid". Para instalar este paquete se puede ejecutar...

sudo apt install libnfc-bin

Datos mostrados por pantalla al ejecutar esta herramienta para poner el UID 11223344 (la tarjeta tenía inicialmente el UID ee5d9c1e).

nfc-mfsetuid 11223344
NFC reader:  opened
Sent bits:     26 (7 bits)
Received bits: 04  00  
Sent bits:     93  20  
Received bits: ee  5d  9c  1e  31  
Sent bits:     93  70  ee  5d  9c  1e  31  0a  ce  
Received bits: 08  b6  dd  

Found tag with
 UID: ee5d9c1e
ATQA: 0004
 SAK: 08

Sent bits:     50  00  57  cd  
Sent bits:     40 (7 bits)
Received bits: a (4 bits)
Sent bits:     43  
Received bits: 0a  
Card unlocked
Sent bits:     a0  00  5f  b1  
Received bits: 0a  
Sent bits:     11  22  33  44  44  08  04  00  46  59  25  58  49  10  23  02  aa  d5  
Received bits: 0a