1 udf description – 2N M2M Solution 2N SmartCom - User Manual 1.9.0 User Manual

Page 118

Advertising
background image

118

2N TELEKOMUNIKACE a.s., www.2n.cz

®

9.1 UDF Description

UDF provides a user–defined set of conditions for the terminal that are necessary for
execution of the set actions. The conditions must be met to make it possible to send
SMS/ TCP messages or set the relay position on the given terminal.
Up to 10 UDF conditions can be set for a terminal.
Each condition is evaluated continuously and, if

, the defined action will be

True

executed. For re–execution, the condition must meet the

status or remain in the

False

set status for a timer–defined period. Thus, SMS will not be sent at every iteration.

Caution

Follow the general programming principles while creating the
conditions to avoid nonsensical syntaxes and/or repetition of identical
conditions. Such meaningless statuses cannot be processed effectively
due to a limited memory and power capacities of the terminal.

Set the conditions using the AT commands in the terminal configuration. Each AT
command must include the condition syntax (<parameter1>sign<parameter2>)
followed by the separator ':', action type and action parameters.
A typical AT commands looks as follows:

AT^SCUDF="ADD","AIN1>=50:SMS P[+420123456789]m[alarm1] t[60]"

Caution

Make sure that each command includes the condition (syntax),
separator (:) and action to be executed("

to

<syntax>:<action>"

avoid command setting error.

Caution

The maximum length of an AT command is 80 characters.

Note

Any error occurring during condition saving is signalled by the ERROR
message and identified by a code if necessary. Refer to the Error

subsection below for the list of available messages.

Codes

Advertising