![IDTECH Vivopay Neo 2 Developer'S Manual Download Page 312](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786312.webp)
NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
312
Mifare ePurse Data Field for Backup Function Block
Data Field
Length (bytes)
Description
Backup Block Number
1
Number of destination value block to be used for backup.
Command Length
1
Set to 01h or 08h, depending on whether a key type and key are
supplied.
Primary Block Number
1
Number of source value block to be copied.
Key Type
1
Present only if Command Length = 08h
Specifies which type of key to use for authentication. It can have
the following values.
01h: Key A 02h: Key B
Key
6
Present only if Command Length = 08h
Value of the Key
For details on these fields, refer to the relevant Mifare Specifications.
After receiving the Command Frame the ViVOpay reader verifies the parameters. If the
parameters are valid, it performs the operations specified in the order in which they appear
within the Purse Command Data Frame.
Note
: Although it is possible to include multiple value operations (Debit or Credit) in one
command, because there is only a single one-bit flag to specify the Debit or Credit mode all
value commands within one Purse Command must be either Debit or Credit functions
.
(However, backup operations may be included because they are distinguished by the
command length field).
If all operations are successful, the ViVOpay reader sends a
Response Frame
with a Status of
OK.
If the
Command Frame
is invalid or any of the operations fail then the reader sends a
Response Frame
with an appropriate Status.
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte14-15
Byte 16
Byte 17
Header Tag &
Protocol Version
Command Status Code
Data Length
(MSB)
Data
Length
(LSB)
Return Code
CRC (MSB)
CRC
(LSB)
ViVOtech2\0
2Ch
See
00h
02h
Varies
Varies
Varies
Note:
The Block Number and Error Code appear in the return data only if the block operation
fails. The remaining blocks will not be manipulated.