Programming
6.2 Programming via USB interface
SIMATIC RF1000
26 Operating Instructions, 11/2019, C79000-G8976-C432-06
6.2.1.6 syscmd_get_boot_status
The function returns a boot status.
Each bit of the value returned by the function represents an internal component of the
reader. If the component of the reader could not be initialized the corresponding bit is set.
Check the value of "boot_status" for the value "0" and output an error or a warning if the
values do not match.
Function call
int syscmd_get_boot_status(
int Handle,
dword * boot_status,
int * Status
);
Table 6- 6 Description of the parameters
sys-
The parameter returns a boot status value.
The session key returned by the function "brp_open_usb_session".
Each bit represents an internal component of the reader.
Return value You will find more information on return values in the section "Return val-
Note
Value of boot status not equal to "0"
If the function returns a value not equal to "0", please contact "
Service & Support".
6.2.1.7 syscmd_set_port
You can use this function to assign parameters to the LEDs and the acoustic signal of the
reader. In this way, you can view reader status changes or feedback from the application
(e.g. incorrect authentication) via the LED and the acoustic signal.
You can select the desired LED color and/or the acoustic signal using the "port_mask"
parameter. You will find a list of possible values in the following table.
Function call
int
syscmd_set_port(
int Handle,
word port_mask,
int * Status
);