beautypg.com

SmarTek Systems SAS-1 Detailed Communication Formats User Manual

Page 11

background image

SmarTek Systems (www.smarteksys.com)

11

Repeat Sending Line 1 of Code File.

The above process is continued for each line of the Code File until the End of the File is reached
or an unrecoverable error occurs during the transfer at which time,

SAS-1 Response:

Chr(2)DONEChr(3)

Indicates SAS-1 received all data correctly.

SAS-1 Response:

Chr(2)ABORTChr(3)

Indicates SAS-1 aborted the process.

SAS-1 Response:

Chr(2)WRFAILChr(3)

Indicates the write to non-volatile memory failed.

Successful completion of this process results in the New Executable Code replacing the Old
Executable Code
in the SAS-1’s non-volatile memory (flash memory). Use the “RESET
command to restart SAS-1 using the New Executable Code. At any time before last code line
has been sent to the SAS-1 (EOF record), the process may be aborted by SAS-1 (unrecoverable
error) or by sending the “STOP” command to SAS-1. After aborting the process, the Old
Executable Code remains in the SAS-1’s non-volatile memory and the New Executable Code is
cleared and lost. If a flash memory write failure occurs (indicated by the WRFAIL response
from the SAS-1), the user may retry the upload process so long as the RESET” command has
not
been sent to the SAS-1. A flash memory write failure will probably require the sensor be de-
installed and returned to SmarTek Systems for memory replacement.

Command to SAS-1: Set SAS-1 Date and Time

{SASxxxx,STIME=mm-dd-yyyy,hh:mm:ss}

SAS-1 Response:

Chr(2)OKChr(3)

“OK” is ASCII.

Command to SAS-1: Get SAS-1 Date and Time

{SASxxxx,GTIME}

SAS-1 Response: