RFID cards management

Requests allow to manage the database of user cards.

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 card="123456789“ />

If no RFID card reading, then the response is:

<osdpcard card="“ />

If time for reading the RFID card is out, then response is error:

<error type="error" />

 

addosdpkey - to add/modify RFID card data to internal database. Extra options:

  • k - user session ID;

  • key - card 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.

 

delosdpkey - to delete RFID card data from internal database. Extra options:

  • k - user session ID;

  • key - card number.

 

getosdpkey - to read the RFID card records from internal database in XML form. Extra options:

  • k - user session ID.

Answer example

<database> <e k="550075C25B" n="Guest" wl="407001,3005" bl="" /> <e k="55007545E2" n="55007545E2" wl="407001,3005" bl="407016" /> <e k="55007A6040" n="Admin" wl="" bl="3008" /> </database>
  • k - card number;

  • n - 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.

Â