<open>1</open>
Turning the green diode on for 2 seconds:
<ledg>20,0,1</ledg>
Red flashing 2 times with time 0.5 / 0.5 seconds:
<ledr>5,5,2</ledr>
The syntax of the XML file is not checked. Only information between known tags is searched.
Example of php server support:
<?php
if( $_GET["id"] ) {
// module send id and MAC - $_GET["mac"]
// you can check id in DB and do some action
echo "<buzz>1</buzz>";
// sound signal
echo "<clear>1</clear>";
//clear lcd
echo "<text>Card ID:
".$_GET["id"];
// print ID on LCD
echo "<open>1</open>";
// door open
}
else { // no id - default state polling
echo "<clear>0</clear>";
// clr LCD
echo "<text>Hello</text>";
//print prompt text
}
7.5
Integration with own software
RFID IND modules can be integrated with Customer own software. They can work as a
server (select
Administration -> Enable HTTP Get)
or as a client (select
Administration -> Enable HTTP Client
).
Server mode
(HTTP GET)
:
In this mode, the external host connects to the module and manages it through the http
protocol.
The management host must periodically read the status.xml resource from the module
and, depending on the state read from the xml file, call the appropriate functions.
After approaching the tag to the field of reading, in the resource status.xml the
appropriate fields will be filed and the module will block the ability to read until calling
the function
Released,
wich turns the module to the waiting for the tag approaching
state.
By using appropriate functions the Led can be light up, the signaling sound can be
generate, the LCD display can be controlled, etc.
The disadvantage of this solution is the need to read the status.xml resource cyclically
User manual RFID IND-U4, RFID IND-U2
Page
26
from
31