2 0 H a M e s i l a S t . , N e s h e r 3 6 8 8 5 2 0 , I s r a e l
P O B 2 5 0 0 4 , H a i f a 3 1 2 5 0 0 1 , I s r a e l
T e l : ( + 9 7 2 ) - 7 2 - 2 7 2 3 5 0 0 F a x : ( + 9 7 2 ) - 7 2 - 2 7 2 3 5 1 1
Page no. 29 | Configuration Interface
File Operation
Status
Represents the file operation
execution status
FileOperationStatus
Enumeration
0
Success
1
Failure
File Operation
Result
Represents the file operation
result. For Read or Write
operations, the number of
successfully read/written
bytes is returned
FileOperationResult
Integer
Table 15 – File Access Control parameters
6.7.2
How to Use File Access Control
The purpose of file access control interface is to perform large data transfer with the camera. This can be
achieved using the following sequence:
Write operation sequence:
1.
Select the file section to access using “FileSelector”
2.
Change the “FileOpenMode” to either “Write” or “ReadWrite”
3.
Set the “FileOperationSelector” to “Open” in order to open write access to selected file
4.
Open the file using “FileOperationExecute” command.
5.
Check the operation status in “FileOperationStatus“. On success file will open for writing.
6.
Set the “FileOperationSelector” to “Write” in order to select write operation.
7.
Fill “FileAccessOffset”, “FileAccessLength” and “FileAccessBuffer” with offset position, length and data for
next transection.
8.
Perform write operation using “FileOperationExecute” command.
9.
Check the operation status in “FileOperationStatus“ and count of transferred bytes in
“FileOperationResult”
10.
Proceed to next transaction, by performing steps 7-9 until all file is transferred
Read operation sequence:
1.
Select the file section to access using “FileSelector”
2.
Change the “FileOpenMode” to either “Read” or “ReadWrite”
3.
Set the “FileOperationSelector” to “Open” in order to open read access to selected file
4.
Open the file using “FileOperationExecute” command.
5.
Check the operation status in “FileOperationStatus“. On success file will open for reading.
6.
Set the “FileOperationSelector” to “Read” in order to select read operation.
7.
Fill “FileAccessOffset”, “FileAccessLength” with offset position and length for next transection.
8.
Perform read operation using “FileOperationExecute” command.
9.
Check the operation status in “FileOperationStatus“ and count of transferred bytes in
“FileOperationResult”
10.
On success, read the extracted data from “FileAccessBuffer”.
11.
Proceed to next transaction, by performing steps 7-10 until all file is transferred