Product data

USRobotics
Command Reference
Syntax and Procedures - 8
Action Commands
Action Execution Command Syntax
There are two general types of action commands: those that have associated
subparameter values that affect only that invocation of the command, and those
that have no subparameters.
If subparameters are associated with a command, the definition of the action
command indicates, for each subparameter, whether the specification of a value
for that subparameter is mandatory or optional. For optional subparameters, the
definition indicates the assumed (default) value for the subparameter if no value is
specified for that subparameter; the assumed value may be either a previous
value (i.e., the value of an omitted subparameter remains the same as the
previous invocation of the same command, or is determined by a separate
parameter or other mechanism), or a fixed value (e.g., the value of an omitted
subparameter is assumed to be zero). Generally, the default value for numeric
subparameters is 0, and the default value for string subparameters is "" (empty
string).
The following syntax is used for actions that have no subparameters:
+<name>
The following syntax is used for actions that have one subparameter:
+<name>[=<value>]
The following syntax is used for actions that have two or more subparameters:
+<name>[=<compound_value>]
For actions that accept subparameters, if all subparameters are defined as being
optional, and the default values for all subparameters are satisfactory, the data
terminal equipment (DTE) may use the first syntax above (i.e., omit the "=" from
the action execution command as well as all of the subparameter value string).
If all other relevant criteria are met (e.g., the modem is in the proper state), the
command is executed with any indicated subparameters. If <name> is not
recognized, the modem issues the ERROR result code and terminates processing
of the command line. An ERROR is also generated if a subparameter is specified
for an action that does not accept subparameters, if too many subparameters are
specified, if a mandatory subparameter is not specified, if a value is specified of
the wrong type, or if a value is specified that is not within the supported range.
Action Test Command Syntax
The DTE may test if an action command is implemented in the modem by using
the syntax:
+<name>=?
If the modem does not recognize the indicated name, it returns an ERROR result