![IDTECH Vivopay Neo 2 Скачать руководство пользователя страница 469](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786469.webp)
NEO 2 Interface Developer’s Guide
469
Command Data
The command data is a zero-terminated ASCII string specifying the directory and contents to be
listed. To retrieve all sub-directories and files below the specified directory, add the recursive
directory option before the directory name.
Length (bytes)
Description
3
Zero-terminated ASCII hex flags
Allowed values:
30 30 00 – List top directory files only
31 30 00 – Recursively list all files and directories below the top directory
2-128
Zero-terminated directory name
Response Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Bytes 14-
13+n
Byte 14+n
Byte 15+n
Header Tag
& Protocol
Version
Command
Status Code
Data Length
(MSB)
Data Length
(LSB)
Listing
Response
String
CRC (MSB)
CRC (LSB)
ViVOtech2\0
83h
See
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 the requested directory list as a zero-
terminated ASCII string containing the file names and file sizes in bytes. The files are listed
sequentially separated by commas. The file size of each file immediately follows the file name and is
separated by a colon. Subdirectories are shown with a slash (/) suffix.
Example 1:
d/,afile.txt:35,bfile.txt:38222,cfile.txt:38241
Example 2:
List the contents of the root custom directory, recursive flag is set:
56 69 56 4F 74 65 63 68 32 00 83 22 00 04 31 30 00 00 9D 9B
The response is a single file (testfile.x) of length 40 bytes:
56 69 56 4F 74 65 63 68 32 00 83 00 00 0E 74 65 73 74 66 69 6C 65 2E
78 3A 34 30 00 22 79