Programming
7.2 Programming via USB/RS232 interface (using DLL functions)
7.2.1.3
brp_set_checksum
You start a checksum algorithm with this function. The checksum allows you to check/protect
the communication via the RS232 interface. This check is performed automatically when
communicating via the USB interface.
Function call
int
brp_set_checksum(
int Handle,
int checksum
);
Table 7-3
Parameter
brp_open_usb_session
Return value
7.2.1.4
brp_set_bufsize
This function allows you to define the buffer size for the job and response telegrams. The
maximum permissible buffer size depends on the reader type used. 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
);
38
Description of the parameters
Description
Function call to configure the checksum algorithm
Handle
The session key returned by the "brp_open_usb_session" or "brp_open_seri‐
al_session" function.
checksum
Definition of the checksum procedure:
•
0x00: BRP_CECKSUM_NONE (Default)
•
0x01: BRP_CECKSUM_BCC8
•
0x02: BRP_CECKSUM_CRC16
•
0x03: BRP_CECKSUM_BCC16
•
BRP_OK
•
BRP_ERR_BUSY
You will find more information on return values in the section "Return values
(Page 52)".
Operating Instructions, 05/2023, C79000-G8976-C432-10
SIMATIC RF1000