RFID cards management
Requests allow to manage the database of user cards and PIN codes.
Requests for management:
readosdpcard - set OSDP reader into a reading mode of an RFID card for 15 seconds. Extra options:
k - user session ID;
id - ID of the reader element.
The card data is obtained by a periodic request described below.
getosdpcard - read actual RFID card data. Extra options:
k - user session ID.
If the RFID card was read successfully, then the response contains the card number in the "card" field:
<osdpcard key="123456789“ /> |
If no RFID card reading, then the response is:
<osdpcard key="“ /> |
If time for reading the RFID card is out, then response is error:
<error type="error" /> |
addosdpkey - to add RFID card data or PIN code to internal database. Extra options:
k - user session ID;
type - type of the record: “card“ - RFID cards, “pin“ - PIN code;
key - card or PIN number;
name - user defined name for card;
wl - white list of OSDP readers, numbers are listed through a comma;
bl - black list of OSDP readers, numbers are listed through a comma.
modifyosdpkey - to modify RFID card or PIN code data from internal database. Extra options:
k - user session ID;
key - card or PIN number (not changed);
name - user defined name for card;
wl - white list of OSDP readers, numbers are listed through a comma;
bl - black list of OSDP readers, numbers are listed through a comma.
delosdpkey - to delete RFID card or PIN code data from internal database. Extra options:
k - user session ID;
key - card or PIN number.
getosdpkey - to read the RFID card and PIN code records from internal database in XML form. Extra options:
k - user session ID.
Answer example
<database>
<entry key="550075C25B" type="card" nname="Guest" wl="407001,3005" bl="" />
<entry key="55007545E2" type="card" nname="55007545E2" wl="407001,3005" bl="407016" />
<entry key="12345" type="pin" name="Admin" wl="" bl="3008" />
</database> |
key - card or PIN number;
type - type of the record: “card“ - RFID cards, “pin“ - PIN code;
name - user defined name for record;
wl - white list of OSDP readers, numbers are listed through a comma;
bl - black list of OSDP readers, numbers are listed through a comma.