Component: RFID (BL0197) (E-blocks 2): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 67: | Line 67: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DecrementRFIDValue''' | ||
|- | |- | ||
| colspan="2" | Perfoms a 32-bit decrement on the number held in location page or block. | | colspan="2" | Perfoms a 32-bit decrement on the number held in location page or block. | ||
| Line 96: | Line 96: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FormatRFIDValue''' | ||
|- | |- | ||
| colspan="2" | Initialises the internal buffer of the Microcontroller so that it is ready to perform a Increment, Decrement or Transfer command. | | colspan="2" | Initialises the internal buffer of the Microcontroller so that it is ready to perform a Increment, Decrement or Transfer command. | ||
| Line 110: | Line 110: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetRFIDStatus''' | ||
|- | |- | ||
| colspan="2" | Collect the status of the RFID device (see help for the explaination of the status byte). | | colspan="2" | Collect the status of the RFID device (see help for the explaination of the status byte). | ||
| Line 124: | Line 124: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetRFIDTypeID''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 138: | Line 138: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetRFIDUID''' | ||
|- | |- | ||
| colspan="2" | Collects the UID from a RFID device. Stores the result into the UID buffer and returns the response of the module. | | colspan="2" | Collects the UID from a RFID device. Stores the result into the UID buffer and returns the response of the module. | ||
| Line 152: | Line 152: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''IncrementRFIDValue''' | ||
|- | |- | ||
| colspan="2" | Perfoms a 32-bit increment on the number held in location page or block. | | colspan="2" | Perfoms a 32-bit increment on the number held in location page or block. | ||
| Line 181: | Line 181: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Configures the RFID device by presetting the Osc type and Mode via the Flowcode component properties. | | colspan="2" | Configures the RFID device by presetting the Osc type and Mode via the Flowcode component properties. | ||
| Line 195: | Line 195: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''IsTagPresent''' | ||
|- | |- | ||
| colspan="2" | Checks to see if a card is present. Returns 0 if no tag is present. Returns 1 if a valid tag is present. | | colspan="2" | Checks to see if a card is present. Returns 0 if no tag is present. Returns 1 if a valid tag is present. | ||
| Line 209: | Line 209: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRFIDBlock''' | ||
|- | |- | ||
| colspan="2" | Reads a block of information from the RFID device. | | colspan="2" | Reads a block of information from the RFID device. | ||
| Line 233: | Line 233: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRFIDBuffer''' | ||
|- | |- | ||
| colspan="2" | Reads a byte of data from the incoming buffer. | | colspan="2" | Reads a byte of data from the incoming buffer. | ||
| Line 252: | Line 252: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRFIDUID''' | ||
|- | |- | ||
| colspan="2" | Reads a byte of data from the UID buffer. | | colspan="2" | Reads a byte of data from the UID buffer. | ||
| Line 271: | Line 271: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetBeep''' | ||
|- | |- | ||
| colspan="2" | Allows the buzzer output to be configured | | colspan="2" | Allows the buzzer output to be configured | ||
| Line 290: | Line 290: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetCardType''' | ||
|- | |- | ||
| colspan="2" | Allows the RFID tag type to be configured | | colspan="2" | Allows the RFID tag type to be configured | ||
| Line 309: | Line 309: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''StoreRFIDKey''' | ||
|- | |- | ||
| colspan="2" | Stores a 6 byte key for use with MIFARE type devices that require authorisation. | | colspan="2" | Stores a 6 byte key for use with MIFARE type devices that require authorisation. | ||
| Line 358: | Line 358: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TransferRFIDValue''' | ||
|- | |- | ||
| colspan="2" | Perfoms a 32-bit block data transfer on the number held in location page or block. | | colspan="2" | Perfoms a 32-bit block data transfer on the number held in location page or block. | ||
| Line 387: | Line 387: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteRFIDBlock''' | ||
|- | |- | ||
| colspan="2" | Writes a block of information to the RFID device. | | colspan="2" | Writes a block of information to the RFID device. | ||
| Line 411: | Line 411: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteRFIDBuffer''' | ||
|- | |- | ||
| colspan="2" | Writes a byte of data to the outgoing buffer. | | colspan="2" | Writes a byte of data to the outgoing buffer. | ||
| Line 435: | Line 435: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteRFIDModule''' | ||
|- | |- | ||
| colspan="2" | Stores a byte of data to the internal EEPROM of the RFID module at the address specified. | | colspan="2" | Stores a byte of data to the internal EEPROM of the RFID module at the address specified. | ||
| Line 460: | Line 460: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd. |
| Version | 2.0 |
| Category | E-blocks 2 |
RFID (BL0197) component
Low level routines for controlling a BL0197 RFID E-block 2 board. Complete with macros to control the tag type and buzzer parameters.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_RFID_BL0197.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_RFID_BL0197.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
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 | |
IsTagPresent
| IsTagPresent | |
| Checks to see if a card is present. Returns 0 if no tag is present. Returns 1 if a valid tag is present. | |
| 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 | |
SetBeep
| SetBeep | |
| Allows the buzzer output to be configured | |
| BeepDelay | |
| 0 = Off, 1 = 40mS, 2 = 80mS, 3 = 120mS etc. | |
| Return | |
SetCardType
| SetCardType | |
| Allows the RFID tag type to be configured | |
| TagType | |
| 0 = MIFARE, 1 = ICODE, 2 = ISO14443B | |
| 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 | |