NEO 2 Interface Developer’s Guide
468
Length (bytes)
Description
2-128
File name including subdirectory, zero-terminated ASCII
1-9
Number of total file data bytes, zero-terminated ASCII
2
Flag to indicate the end points of file transmission, zero-terminated ASCII
0 = Neither first or last packet
1 = Last packet: commits all file transfers received since packet with first packet flag.
2 = First packet: all incomplete transfers are destroyed.
3 = First and Last packet: set for one packet <= 1000 bytes.
Variable
Binary file contents up to 1000 bytes
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14-
13+n
Byte 14+n
Byte 15+n
Header Tag
& Protocol
Version
Command
Status Code
Data Length
(MSB)
Data Length
(LSB)
Response
CRC (MSB)
CRC (LSB)
ViVOtech2\0
83h
See
00h
Variable
If the command returns an error status, the data portion may contain a 4-byte extended status giving
more detailed error information (in which case, see the Appendix on
A successful response contains a Status Code of zero and a data length of zero.
Example:
•
Download a 20-byte file named
testfile.x
. Each command contains 10 bytes of the file
contents. Set the flag to ASCII 2 to indicate first segment of file:
TX:
56 69 56 4F 74 65 63 68 32 00 83 24 00 1A 74 65 73 74 66 69 6C
65 2E 78 00 32 30 00 32 00 61 61 61 61 61 61 61 61 61 62 32 B3
RX:
56 69 56 4F 74 65 63 68 32 00 83 00 00 00 0A 70
19.3.25.
List Directory (83-22)
This command retrieves a directory listing of user-accessible files from the reader.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14-
13+n
Byte 14+n
Byte 15+n
Header Tag
& Protocol
Version
Command
Sub-
Command
Data Length
(MSB)
Data Length
(LSB)
Data
CRC (LSB)
CRC (MSB)
ViVOtech2\0
83h
22h
00h
variable