Retrieve a file: v=<p8> command – ALLIED Vision Technologies Pearleye P-030 LWIR User Manual

Page 63

Advertising
background image

Advanced parameters and commands

Pearleye Technical Manual V2.3.0

63

The character sequence is divided into the following parts:

If an error occurs during transmission, the operation will instantly be aborted.
The camera module sends a ? character as error mark. Already transmitted data
bytes will stay stored in the file, meaning that the first part of the file may still
exist after abort. The sender should regularly check for reception of the ? while
transmitting large files to efficiently recognize the error situation. This allows
the sender to stop the transmission. As soon as the module outputs its com-
mand prompt the sender may retry the transmission. If the transmission fails
several times, the flash chip may be full or there is an error in the hardware.

Retrieve a file: v=<p8> command

To retrieve (view) a file, the command

v=<p8> may be used. This command

directly outputs the data bytes of the specified file to the serial interface (not in
ASCII hexadecimal notation as with

Q=<p8>).

The above mentioned example would produce following output:

>v=10
Testtext
>

Because this example uses an ASCII text file, the data can be displayed correctly
in a terminal window. For binary data this is not the case.

Part

Description

Nnnnnnnnn

n = file size in bytes – 1.

Creating a file of size 0 is not specified.

Sttmm

t = file type (any between 01 and FE)

m = transmit mode (always 00)

[PAUSE]

To prevent an overflow of the input buffer, a pause of at
least one second is mandatory.

The file system needs time to open the file and delete
the data of a potentially existing file.

Ddddddd…

n+1 data bytes in ASCII hexadecimal representation

(two characters 0…9,A…F per byte)

Table 34: The Q=<p8> command: parts

Caution

Do not switch off the camera during file writing operation (e.g.
command

d=<p8> or Q=<p8>) until the host received the

command prompt character >.

Switching off the camera during file writing operation will very
likely corrupt the file system.

In this case return the camera to AVT for system recovery.

Advertising
This manual is related to the following products: