beautypg.com

Your hal tester – Seaward ClareHAL User Manual

Page 156

background image

155


SSSCMD_TESTFILE_SAVE_NOW (command code 0x32)

This command is used to commit the SRAM testfile assembly area into
flash memory. The tester will respond with an interim ACK before
eventually issuing a final ACK or NAK.

If the ‘itemd id’, ‘instance’, or amount of supplied data is non-zero, then
the tester will respond with SSSRSP_NAK and the appropriate reason
code.

8. Tester Commands

The following commands are associated with performing electrical
tests on the HAL range.

SSSCMD_HAL_QUERY_STATE (command code 0x80)

This command is used to establish the state of various inputs to the
tester such as the guard switch, remote probe switch, etc. The tester
always returns two bytes representing 16 flag bits.

Currently only bit 0 if defined: this bit is set if the external guard switch
is closed.

If the ‘itemd id’, ‘instance’, or amount of supplied data is non-zero, then
the tester will respond with SSSRSP_NAK and the appropriate reason
code.

SSSCMD_HAL_BARCODE_OR_KEY (command code 0x81)

This command is used to obtain barcode or keyboard input from the
HAL tester.

The host specifies a single byte of data that represents the number of
seconds to wait for a response. This can be in the range 0 through 255.
The value of 255 is a special case representing an infinite timeout.

The tester issues an empty interim acknowledgement, switches the
RS232 monitoring to the barcode port, then waits between 0 and 254
seconds, or an infinite time, for a barcode or keypress, then sends
back the result in a final ACK.

The tester’s final ACK contains 1 or more bytes. The first byte defines
the event that terminated the command:

Your HAL tester

This manual is related to the following products: