SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 95
9.1 Open File - 0x46, 0x4Fhex - ‘F, ‘O’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x4F (hex), O (ascii). *Open File.
3.- Workspace 0x00 to 0x0D (hex) 0-13 (ascii).
4.- Open Mode:
0x01 (hex)- Read Only
0x02 (hex)- Write Only
0x03 (hex)- Read +Write
5 to n .- File Name Including Extension.
n+1 .- 0x00 (hex), NULL ascii.
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
This command opens / allocates a file that is
inside the current directory path on the
received workspace#, the file access
depends on the “Open Mode” parameter:
- Read Only: Specifies read access to the
object, file data can only be read, not write.
- Write Only: Specifies write access to the
object, file data can only be write, not read.
- Read+Write: Specifies read and write
access to the object, file data can be write
or read.