Arduino NFC Reader Protocol
How to build a test circuit with a NFC controller and an Arduino Mega?
Arduino codes are included.
I. "Welcome" event from microcontroller
Example
//for RC522 modules: c=welcome&id=KT75pc&type=OzNfcReader&pos=1&name=MyNfcReader&t=1 //for PN532 modules c=welcome&id=fg7mtg&type=OzPN532Controller&pos=1&name=MyPN532Controller&t=1
Parameters
Parameter | Type | Range | Functionality |
c | String | 'welcome' | Identifies the welcome message. |
id | String | 6 characters (numbers, uppercase and lowercase characters) | The ID of the device which is chosen by the microcontroller. |
type | String | 'OzNfcReader' or 'OzPN532Controller' | Determines the type of the device. |
pos | Byte | 0-255 | Determines the position of the device on the list of the ID manager of the microcontroller. Please make sure there are no other devices in the same position. |
name (optional) | String | e.g. 'MyNfcReader' | You can give default names for devices. |
t | Byte | 0-255 | Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again. |
II. Commands to microcontroller
None
III. Event from microcontroller
'NFC Reader' event
This event is generated every time an NFC card is swiped over the NFC reader. It forwards the hexadecimal data contained on the NFC card. Every byte represents a pair of hexadecimal numbers.
Example
c=nfcreader&idhex=f9c8fbfe&id=i479ZY&t=3
Parameters
Parameter | Type | Range | Functionality |
c | String | 'nfcreader' | Identifies the event. |
idhex | String | Any bytelength (1 byte = 2 hex number) |
The read ID in hexadecimal format. They bytes are read from the NFC tag. |
id | String | 6 characters (numbers, uppercase and lowercase characters) | Identifies the device. The ID is never changed during communication. |
t | Byte | 0-255 | Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again. |
More information
- Protocolo serie del transceptor RF de 433 MHz
- Protocolo serie del joystick analógico
- Protocolo serie del sensor analógico
- Protocolo serie del botón
- Protocolo serie del zumbador
- Protocolo serie del motor de CC
- Protocolo serie del sensor DHT
- Protocolo serie de la EEPROM
- Protocolo serie del teclado
- Protocolo serie del sensor de giróscopo
- Protocolo serie del administrador de ID
- Protocolo serie del transceptor IR
- Protocolo serie de la pantalla LCD
- Protocolo serie del lector NFC
- Protocolo serie de la puerta óptica
- Registro
- Protocolo serie del transceptor RF24
- Protocolo serie del LED RGB
- Protocolo serie del sensor RGB
- Protocolo serie del codificador rotatorio
- Protocolo serie del motor servo
- Protocolo serie del contador de pasos
- Protocolo serie del motor paso a paso
- Protocolo serie del interruptor
- Protocolo serie del sensor de temperatura
- Protocolo serie del temporizador
- Protocolo serie del sensor ultrasónico
- Mensajes de bienvenida de la impresora 3D Ozeki