SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 99
Examples (sent and
received commands)
Example 1:
Sent data:
-46,52,08,00,64- Request to read 100 bytes
from the file in workspace# 8.
Received data:
-XX…XX,00,64,00,4F- Received 100 bytes,
then Successfully Read Bytes(100), OK, OK.
This is a case:1
Bytes to Read == Successfully Read Bytes
*All of the received data bytes are valid file data.
Example 2:
Sent data:
-46,52,04,02,00- Request to read 512 bytes
from the file in workspace# 4.
Received data:
-XX…XX,00,64,00,4F- Received 512 bytes,
then Successfully Read Bytes(100), OK, OK.
This is a case 2:
Bytes to Read > Successfully Read Bytes
*From the received data bytes, the Successfully
Read Bytes parameter (100 bytes) indicates the
valid data, and the complementary received data
(412 bytes) are dumb filled 0x00 (hex) NULL bytes.
*All data is in hex.