SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 104
9.5 Set File Pointer - 0x46, 0x50hex - ‘F, ‘P’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x50 (hex), P (ascii). *File Pointer.
3.- Workspace 0x00 to 0x0D (hex) 0-13 (ascii).
4.- 0x53 (hex), S (ascii) Set Pointer.
5.- Pointer Position - High Byte.
6.- Pointer Position - Medium High Byte.
7.- Pointer Position - Medium Low Byte.
8.- Pointer Position - Low Byte.
Responses (device)
byte(s)
1.- 0xXX - FAT ACK/NAK List Byte Reply.
2.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
When the Set Pointer command is called, it
moves the current file pointer position in
bytes of the received workspace#. This
command can also be used to increase the
file size when writing data (cluster pre-
allocation; data contained in the expanded
area is undefined).
The current file pointer position parameter is
always computed from the file origin.
A file must be already opened/allocated in
the selected workspace for this command to
work.
*Note that the “Read File” or “Write File”
commands calls automatically advance the
current file pointer position depending on
the successfully read or written bytes.