Difference between revisions of "Component: RFID (EB052, RWD-MICODE) (Wireless)"
(Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd. |- | width="20%" style="color:gray;" | Version | 2.0 |- | width="20%" style="color:gra...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 36: | Line 38: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 84: | Line 88: | ||
[[File:RFID_macr.jpg]] | [[File:RFID_macr.jpg]] | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 14:13, 20 January 2023
Author | Matrix Ltd. |
Version | 2.0 |
Category | Wireless |
Contents
RFID (EB052, RWD-MICODE) component
Low level routines for controlling a RF Solutions RFID interface Allows communications between Mifare, ICode and HiTag type RFID tags. Also available in the form of the EB052 RFID E-block.
Component Source Code
Please click here for the component source code: FC_Comp_Source_RFID.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Reading the status
The status of the RFID module is read using the "GetRFIDStatus" macro which returns a byte which is then displayed using the PORTB pins.
RFID Status
Status byte breakdown for Mifare.
Status byte breakdown for ICode.
Status byte breakdown for HiTag.
Status byte breakdown for EM Marin.
Reading and Writing Data
Example which talks to a ICode type card and allows the data to be read and written via a keypad.
RFID Read/Write
Macro compatibility
Not all the macros can be used with all card types, here is a list of RFID transponder types and the macros that are compatible.
Macro reference
![]() |
GetRFIDTypeID |
Collects the 3 bytes required to determine which kind of MIFARE device is present. Stores the result into the local buffer 0 - 2 and returns the response of the module. | |
![]() |
Return |
![]() |
WriteRFIDBlock |
Writes a block of information to the RFID device. | |
![]() |
Address |
Remote RFID Block Address. | |
![]() |
Key_Type |
![]() |
Return |
![]() |
WriteRFIDModule |
Stores a byte of data to the internal EEPROM of the RFID module at the address specified. | |
![]() |
Address |
![]() |
Data |
![]() |
Return |
![]() |
DecrementRFIDValue |
Perfoms a 32-bit decrement on the number held in location page or block. | |
![]() |
Src |
Page / Block | |
![]() |
Dst |
Page / Block | |
![]() |
Key_Type |
Needed for MIFARE Commands | |
![]() |
Return |
![]() |
FormatRFIDValue |
Initialises the internal buffer of the Microcontroller so that it is ready to perform a Increment, Decrement or Transfer command. | |
![]() |
Return |
![]() |
IncrementRFIDValue |
Perfoms a 32-bit increment on the number held in location page or block. | |
![]() |
Src |
Page / Block | |
![]() |
Dst |
Page / Block | |
![]() |
Key_Type |
Needed for MIFARE Commands | |
![]() |
Return |
![]() |
WriteRFIDBuffer |
Writes a byte of data to the outgoing buffer. | |
![]() |
Address |
The address of the buffer 0 - 15 | |
![]() |
Data |
The data to be stored in the buffer location 0 - 255. | |
![]() |
Return |
![]() |
GetRFIDStatus |
Collect the status of the RFID device (see help for the explaination of the status byte). | |
![]() |
Return |
![]() |
ReadRFIDBuffer |
Reads a byte of data from the incoming buffer. | |
![]() |
Address |
The address of the buffer 0 - 15 | |
![]() |
Return |
![]() |
GetRFIDUID |
Collects the UID from a RFID device. Stores the result into the UID buffer and returns the response of the module. | |
![]() |
Return |
![]() |
ReadRFIDUID |
Reads a byte of data from the UID buffer. | |
![]() |
Address |
The address of the buffer 0 - 7 | |
![]() |
Return |
![]() |
ReadRFIDBlock |
Reads a block of information from the RFID device. | |
![]() |
Address |
![]() |
Key_Type |
![]() |
Return |
![]() |
Initialise |
Configures the RFID device by presetting the Osc type and Mode via the Flowcode component properties. | |
![]() |
Return |