Access Restricted

This page contains internal documentation that is not publicly available.


Project / LegicVcp / VcpData Value

These values contain the VCP files for LEGIC 4000 series (SM-4x00) and LEGIC 6000 series (SM-6300). Every VCP file starts with a header value (file type, file identifier and optional password), followed by the content values of this VCP file. The VCP file ends with the next header value. Values have to be used contiguously starting with the first one: the first non-existing value marks the end of all VCP data.

Only VCP files of the series of the assembled LEGIC reader chip are loaded; the other ones are ignored. An error in one VCP file does not prevent loading the subsequent ones; Status reports the result of every VCP file.

Keys and mobile key sets of a VCP file are only loaded if an entry in Project/LegicKeySettings matches the VcpId of the VCP file, the VCP label and, for VCP files conforming to LOCS, the credential context of the key. This entry also determines the key storage index. All other keys and mobile key sets are skipped, since a VCP file may contain more keys than required by the reader.

Properties

  • Value ID: 0x0845/0x80 - 0xBF

Format

Name Type/Size Description
ValueType Enumeration (8 bits) Defines whether this value starts a new VCP file (header) or continues the VCP file of the preceding header (content).
Values (2):
  • Content (0x00)
    Next chunk of the VCP file started by the preceding header value
  • Header (0x01)
    Starts a new VCP file
Optional field, condition: ValueType == ValueType.Header
FileType Enumeration (8 bits) LEGIC series the VCP file is intended for (only available in header values)
Values (2):
  • Legic4000 (0x01)
    VCP file for LEGIC 4000 series (SM-4x00)
  • Legic6000 (0x02)
    VCP file for LEGIC 6000 series (SM-6300)
VcpId Integer (32 bits)

Identifier of the VCP file, referenced by Project/LegicKeySettings to assign the keys of this VCP file to key storage slots (only available in header values).

The VcpId is a hash value (CRC32) over the VCP file contents. If a VCP file is available for both LEGIC series, the CRC32 is calculated over both VCP files (4000 series first) and the header of both files contains this common VcpId. Thus a single entry in Project/LegicKeySettings applies to both series, and the VcpId does not depend on the position of the VCP file in VcpData.

Length of Password Integer (8 bits) Length of Password in bytes
Password Raw data Password required to load a password-protected VCP file (6...64 bytes); empty if the VCP file is not password-protected (only available in header values)
Optional field, condition: ValueType == ValueType.Content
Data Raw data (until end of frame) Next chunk of the VCP file content (max. 120 bytes per value; only available in content values)