Table 6- 1
Parameter
brp_open_usb_session
Return value
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
Parameter
brp_open_usb_session
SIMATIC RF1000
Operating Instructions, 02/2019, C79000-G8976-C432-04
Description of the parameters
Description
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.
ProductID
0x00
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-
ues (Page 31)".
Description of the parameters
Description
The parameter opens a connection to the reader via the USB interface.
Handle
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)
•
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)
•
RF1070R: max. 1024 bytes (data length 1018 bytes)
•
Programming
6.2 Programming via USB interface
19