SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 96
After open file command is executed and
succeeds(ACK), the file object workspace is
then valid, now the workspace can be used
for subsequent read/write operations.
Only one file can be open at the same time
in the same workspace#, always be sure
close a workspace file object before
opening a new one on it.
Examples (sent and
received commands)
Example 1:
Sent data:
-46,4F,02,03,74,65,73,74,2E,74,78,74,00- Open
file “test.txt” in workspace# 2 with
read+write access(0x03).
Received data:
-00,4F- OK, OK. File correctly open and
allocated in workspace# 2 for read+write
access.
Example 2:
Sent data:
-46,4F,0A,01,74,65,73,74,2E,74,78,74,00-
Open file “test.txt” in workspace# 10 with rea
only access(0x01).
Received data:
-00,4F- OK, OK. File correctly open and
allocated in workspace# 10 for read only
access.
*All data is in hex.