The demo application
7.2 Creating a custom application
SIMATIC RF1000
64
Operating Instructions, 02/2020, C79000-G8976-C432-07
Own application "Transfer reader configuration"
Requirement: A corresponding VHL configuration was created and transferred to a
configuration card.
Follow the steps below to transfer a reader configuration using a configuration card:
1.
Establish the connection to the reader ("brp_open_usb_session" or
"brp_open_serial_session").
2.
Check whether a configuration card is located in the read range of the reader
("vhl_select"; "AllowConfig = true").
If a configuration card is located in the read range, the status code "CONFIG_READ" or
"HF_ERR" is returned and the configuration is transferred to the reader. Parameterization
is complete as soon as "vhl_select = STATUS_OK" is returned.
3.
Terminate the connection to the reader ("brp_close_session").
4.
Establish the connection to the reader again ("brp_open_usb_session").
The source code of the demo application can serve as an example for your own application.
Figure 7-5
"Transfer reader configuration" flow diagram