Programming Via Usb/Rs232 Interface (Using Dll Functions); Functions Of The Usb/Rs232 Interface For Windows; Brp_Open_Usb_Session - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

Programming
7.2 Programming via USB/RS232 interface (using DLL functions)
synchronizes the card in the antenna field with the stored configurations. If a match is found,
the corresponding memory area is read and output with "Autoread_GetMessage".
In "Autoread" mode, after a card has been detected by the user, the data must be fetched
using the "Autoread_GetMessage" function within 5 seconds. Otherwise, this data is lost.
7.2

Programming via USB/RS232 interface (using DLL functions)

7.2.1

Functions of the USB/RS232 interface for Windows

You can program the reader using access functions. You can find the "RF1000R.zip" file on the
Siemens support page "Siemens Industry Online Support
support.industry.siemens.com/cs/ww/en/view/109741590)". It includes the DLL files
("BrpDriver_x64" and "BrpDriver_x86"), the DLL functions as well as a demo application which
demonstrates the use of the DLL functions.
With the demo application "AccessControlDemo" you can address the reader directly from
your application via the USB interface. A precompiled DLL file for Windows systems that
provides this function is included in the package.
The DLL files provide various DLL functions for communication with the reader for integration
in your application. The reader has return values and status codes to inform you of the reader
status and execution of the functions.
You can integrate the DLL files in your application under Microsoft Windows 7/8/10 and use
them to call the described functions directly.
Connection options for programming via DLL functions
The type of programming depends on the connection option used. Programming via the
following DLL functions can be performed when using the following connection options:
• Via the USB interface
• Via the USB interface, when using an RS232 interface converter
• Via the RS232 interface, when connected to a PC
• Via the virtual COM port interface, when connected to a PC
7.2.1.1

brp_open_usb_session

The function opens a connection to the reader via the USB interface and returns a session key
that is required for all functions and continued communication via this connection. If the
connection was successfully established, the value "BRP_OK" is returned.
34
(https://
Operating Instructions, 05/2023, C79000-G8976-C432-10
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents