Component: RFID (EB052, RWD-MICODE) (Wireless): Difference between revisions
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 121: | Line 121: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DecrementRFIDValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DecrementRFIDValue''' | ||
|- | |- | ||
| Line 150: | Line 150: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FormatRFIDValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FormatRFIDValue''' | ||
|- | |- | ||
| Line 164: | Line 164: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDStatus''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDStatus''' | ||
|- | |- | ||
| Line 178: | Line 178: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDTypeID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDTypeID''' | ||
|- | |- | ||
| Line 192: | Line 192: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDUID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRFIDUID''' | ||
|- | |- | ||
| Line 206: | Line 206: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementRFIDValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementRFIDValue''' | ||
|- | |- | ||
| Line 235: | Line 235: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 249: | Line 249: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDBlock''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDBlock''' | ||
|- | |- | ||
| Line 273: | Line 273: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDBuffer''' | ||
|- | |- | ||
| Line 292: | Line 292: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDUID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRFIDUID''' | ||
|- | |- | ||
| Line 311: | Line 311: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StoreRFIDKey''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StoreRFIDKey''' | ||
|- | |- | ||
| Line 360: | Line 360: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransferRFIDValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransferRFIDValue''' | ||
|- | |- | ||
| Line 389: | Line 389: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDBlock''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDBlock''' | ||
|- | |- | ||
| Line 413: | Line 413: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDBuffer''' | ||
|- | |- | ||
| Line 437: | Line 437: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDModule''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRFIDModule''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix Ltd. |
| Version | 2.0 |
| Category | Wireless |
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 to download the component source project: FC_Comp_Source_RFID.fcfx
Please click here to view the component source code (Beta): 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
DecrementRFIDValue
| 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
| FormatRFIDValue | |
| Initialises the internal buffer of the Microcontroller so that it is ready to perform a Increment, Decrement or Transfer command. | |
| Return | |
GetRFIDStatus
| GetRFIDStatus | |
| Collect the status of the RFID device (see help for the explaination of the status byte). | |
| Return | |
GetRFIDTypeID
| 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 | |
GetRFIDUID
| GetRFIDUID | |
| Collects the UID from a RFID device. Stores the result into the UID buffer and returns the response of the module. | |
| Return | |
IncrementRFIDValue
| 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 | |
Initialise
| Initialise | |
| Configures the RFID device by presetting the Osc type and Mode via the Flowcode component properties. | |
| Return | |
ReadRFIDBlock
| ReadRFIDBlock | |
| Reads a block of information from the RFID device. | |
| Address | |
| Key_Type | |
| Return | |
ReadRFIDBuffer
| ReadRFIDBuffer | |
| Reads a byte of data from the incoming buffer. | |
| Address | |
| The address of the buffer 0 - 15 | |
| Return | |
ReadRFIDUID
| ReadRFIDUID | |
| Reads a byte of data from the UID buffer. | |
| Address | |
| The address of the buffer 0 - 7 | |
| Return | |
StoreRFIDKey
TransferRFIDValue
WriteRFIDBlock
| WriteRFIDBlock | |
| Writes a block of information to the RFID device. | |
| Address | |
| Remote RFID Block Address. | |
| Key_Type | |
| Return | |
WriteRFIDBuffer
| 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 | |
WriteRFIDModule
| WriteRFIDModule | |
| Stores a byte of data to the internal EEPROM of the RFID module at the address specified. | |
| Address | |
| Data | |
| Return | |




