BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_Sys_CfgLoadBlock | ( | brp_protocol | protocol, |
unsigned | Version, | ||
brp_buf | Data, | ||
size_t | Data_len | ||
) |
This command transfers the configuration from a BEC file into the reader.
You have to call it for every block tag in the BEC file.
All Sys.CfgLoad commands only work with the legacy file format BEC. For the currentdefault format BEC2 , please use brp_Main_Bf3UploadStart() and brp_Main_Bf3UploadContinue() as explained in thisoverview .
To initiate the transfer, run brp_Sys_CfgLoadPrepare() before the first Sys.CfgLoadBlock. For legacy reasons, you can ommit Sys.CfgLoadPrepare because it's not supported by readers older than our current product lines based on ID-engine Z. In this case, ensure that the Sys.CfgLoadBlock transferring the first block of the BEC file is the first Sys.CfgLoadBlock after powerup.
To complete the operation once all block tags are transferred, run brp_Sys_CfgLoadFinish(). If you omit Sys.CfgLoadPrepare for legacy reasons, omit Sys.CfgLoadFinish as well. In this case, do a brp_Sys_Reset() to activate the configuration changes.
[in] | protocol | used to execute the command |
[in] | Version | Has to contain the version attribute of every block tag. |
[in] | Data | Has to contain the content attribute of every block x tag (converted into binary format). |
[in] | Data_len |