SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 108
9.8 Test Error in File - 0x46, 0x51hex - ‘F, ‘Q’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x51 (hex), Q (ascii). *Test File.
3.- Workspace 0x00 to 0x0D (hex) 0-13 (ascii).
4.- 0x52 (hex), R (ascii). *Error in File.
Responses (device)
byte(s)
1.- 0x00 (hex) for FALSE condition or
0x01 (hex) for TRUE condition.
2.- 0xXX - FAT ACK/NAK List Byte Reply
3.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
The Test Error File command checks for any
error in a file allocated in the given
workspace#. An error could be bad /
corrupted data, write errors, etc. This
command is helpful to check file sanity.
A file must be already opened/allocated in
the selected workspace for this command to
work.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,51,02,52- Test file in workspace# 2 for an
Error condition.
Received data:
-00,00,4F- OK, OK. Error in file is FALSE, the
written bytes or any other procedure was
correctly performed; file sanity is correct.
*All data is in hex.