Programming
6.2 Programming via USB interface
SIMATIC RF1000
Operating Instructions, 11/2019, C79000-G8976-C432-06
23
Table 6- 1 Description of the parameters
The parameter opens a connection to the reader via the USB interface.
Handle Session key initialized by this function. The session key is valid as soon as
"BRP_OK" is returned.
Return value
• BRP_OK
• BRP_ERR_BUSY
• BRP_ERR_GENERAL_IO
• BRP_ERR_BUFFER_OVERFLOW
• BRP_ERR_NO_MORE_HANDLES
• BRP_ERR_INSUFFICIENT_MEM
You will find more information on return values in the section "Return val-
6.2.1.2 brp_set_bufsize
This function allows you to define the buffer size for the job and response telegrams. Note
that the buffer size is automatically set to the default value of 128 bytes after the restart.
Function call
int
brp_set_bufsize(
int * Handle,
int TotalBufsize,
int SendBufsize,
int RecvBufsize
);
Table 6- 2 Description of the parameters
The parameter opens a connection to the reader via the USB interface.
The session key returned by the function "brp_open_usb_session".
TotalBufsize Specifying the maximum size of the job and response telegram
• Default value: 128 bytes (data length 122 bytes)
• RF1060R: max. 512 bytes (data length 506 bytes)
• RF1040R/RF1070R: max. 1024 bytes (data length 1018 bytes)
SendBufsize Specifying the maximum size of the request telegram
• Default value: 128 bytes (data length 122 bytes)
• RF1060R: max. 512 bytes (data length 506 bytes)
• RF1040R/RF1070R: max. 1024 bytes (data length 1018 bytes)