Main.Bf2Upload

This command transfers a single line of a BF2 file starting with a colon to the reader (needed for firmware upload).

Properties

Parameters (request frame)

Name Type/Size Description
Bf2Line Raw data (until end of frame) This corresponds to 1 line in a BF2 file starting with a colon instead of a hash sign. As BF2 files are text files, you need to strip each space and colon from a BF2 line and transform each hex digit pair to a byte. Then, transfer the resulting sequence of bytes in this field.

Returned values (response frame)

Name Type/Size Description
ResultCode Enumeration (8 bits) Error code of this operation
Values:
  • Success (0x00)
    Successful operation
  • InvalidChecksum (0x01)
    The checksum of the line variable is invalid.
  • ProgrammingTimeout (0x02)
    Programming timeout; repeat operation (up to 3 times).
  • VerifyTimeout (0x03)
    Verify timeout; repeat operation (up to 3 times).
  • UnsupportedCodeType (0x04)
    Unsupported code type
  • ProtocolError (0x05)
    Protocol error
  • SecuredByConfigSecurityCode (0x06)
    Device is secured by a Config Security Code; perform a factory reset and repeat operation.
InvertedResultCode Integer (8 bits) Value of ResultCode with inverted bits (= ResultCode XOR 0xFF)