Skip to main content

Control Language Instructions

The HEMS Monitoring and Control Language defines a suite of operations which the query processor must be able to perform. These operations and their operands are ASN.1 objects which are passed to the query processor over a network connection. The operations and operands are sent in postfix form (the operation follows the operands). Operands are pushed onto a stack and are processed when the operation is encountered.

To ensure that operations are easily recognized in the input stream, they are all encoded in a single application-specific type. This type is shown below.

               Operation ::= [APPLICATION 1] IMPLICIT INTEGER {
reserved(0), get(1) begin(2), end(3),
get-match(4), get-attributes(5),
get-attributes-match(6), get-range(7),
set(8), set-match(9)
}

When the query processor encounters an Operation object it consults the value to determine which operation is to be done (e.g., GET).