Autoread_Setmode (Called Via "Exec_Comand") - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

Programming
6.2 Programming via USB/RS232 interface (using DLL functions)
6.2.1.15

Autoread_SetMode (called via "exec_comand")

This function controls the "Autoread" functionality during runtime. The memory content of the
cards that enter the antenna field of the reader is automatically read in "Autoread" mode
without an explicit read job. You can specify in your reader configuration whether only the
UID or also explicit memory areas should be read. The read data is output with the
"Autoread_GetMessage" function.
Note that in "Autoread" mode, the "vhl_select" function is automatically executed cyclically by
the reader. If the "vhl_select" function is executed from the Demo application as well, this
can result in the card not being recognized when it enters the antenna field of the reader
because it was already read in "Autoread" mode. In addition, the mode is ended with the
function call "vhl_select" in "Autoread" mode. Make sure that the "vhl_select" function is not
executed in addition in "Autoread" mode.
By activating/deactivating the "Autoread" function, the "MessageBuffer" is deleted. This
ensures that no incorrect results are supplied by a subsequent call of the
"Autoread_GetMessage" function when no card is located in the antenna field.
Function call
int
brp_exec_comand(
int Handle,
byte devcode,
byte cmdcode,
byte * param,
byte param_len,
init timeout,
init * Status,
byte * resp,
int * resp_len,
init max_resp_len
);
Table 6- 17
Parameter
brp_exec_comand
38
Description of the parameters
Description
The parameter activates/deactivates the "Autoread" function.
Handle
The session key returned by the "brp_open_usb_session" or
"brp_open_serial_session" function.
devcode
0x05
cmdcode
0x00
param
Buffer for the function parameters:
0x00: The "Autoread" functionality is deactivated and VHL functions can
be used.
0x01: The "Autoread" functionality is permanently switched on. There is
a permanent check as to whether a card is located in the antenna field.
0x02: The "Autoread" functionality is executed once as soon as a card
enters the antenna field. This is followed by a switch to VHL mode. The
card identification is executed one more time with another call using the
parameter value 0x02.
Operating Instructions, 02/2020, C79000-G8976-C432-07
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents