beautypg.com

SmarTek Systems SAS-1 Detailed Communication Formats User Manual

Page 13

background image

SmarTek Systems (www.smarteksys.com)

13

Line 1 of Header Record File (Intel Format) is sent to SAS-1.

SAS-1 Response:

Chr(2)OKChr(3)

If record is received with no errors,

Chr(2)NOT_OKChr(3)

If record is received with errors.

If SAS-1 Response is “OK” then:

Line 2 of Header Record File is sent to SAS-1,

Else If SAS-1 Response is “NOT_OK” Then

Repeat Sending Line 1 of Header Record File.

The above process is continued for each line of the Header Record 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 Header Record replacing the Old
Header Record
in the SAS-1’s non-volatile memory (flash memory). If the process is aborted
before successful completion, the stored Header Record in the SAS-1 may be corrupted. The
Header Record upload process should be repeated. If a flash memory write failure occurs
(indicated by the WRFAIL response from the SAS-1), the user may retry the upload process. A
flash memory write failure may require the sensor be de-installed and returned to SmarTek
Systems for memory replacement.

The SAS-1 Header Record may be edited and uploaded to the SAS-1 using the SAS Monitor and
Setup Program supplied by SmarTek Systems.

Note that setting the SAS-1 Date and Time or sending an Archive Header to the SAS-1 will
reset the SAS-1 archive pointer. This will result in the loss of any archive data that was
previously logged.

After either of these actions or upon SAS-1 power on or reset, data