API Overview
8
40-400-00025, Rev. D
Command responses
Command responses
Command responses
Command responses
Command responses
The command response messages give the user feedback about the last command
that was executed by the TLE. These messages use the following format:
!unitnumber,messagetype,X,Y<cr><lf>
Unitnumber: Unique ID given to TLE by the user.
0,1-255 If no unit number is assigned, TLE returns 0.
messagetype:
7 Invalid state. The line the command was directed at was in a
state that was invalid for the function (ie: trying to send
ringing to an off-hook line, no dial receiver available,etc.) or
the command can not be run at this time (script commands
while scripts not running, etc).
8 Command accepted
9 Error
X: 0 if under PC control:
Script number (1-4) if running from a script
Y: Command number (up to 3 digits)
Note:
Note:
Note:
Note:
Note: The Tfmessage function does not interpret command response messages.
User Scr
User Scr
User Scr
User Scr
User Scripts
ipts
ipts
ipts
ipts
The TLE supports downloadable scripts for custom standalone operation. Three
scripting modes are available; a single script mode, which allows only one script that
can access all four lines, a dual script mode which allows two scripts that each
accesses two lines, and a quad script mode where there is a separate script for each
line. These scripts are saved in the TLE non-volatile memory. If TS_SCRIPTRUN has
been enabled, the scripts will automatically start when power is applied to the TLE.
When a running script reaches its end, it will automatically restart.
Before entering any scripts into the TLE, a TS_SCRIPTMODE command must be
sent to select single, dual, or quad script mode. To enter the actual scripts, a
TS_STARTDEF is sent first, followed by the desired script functions, and ending with
a TS_ENDDEF. All commands between the TS_STARTDEF and TS_ENDDEF must
be script functions. To include any of the other TLE commands as part of a script, it is
included as a parameter to the TS_EXECUTE script function.
Once all of the scripts are entered into the TLE, the TS_SCRIPTRUN is used to start
and stop the scripts. While scripts are running, the TS_SCRIPTRUN is the ONLY
command which is recognized by the TLE (to allow the user to stop the script). If the
user has started the scripts and then removed power from the TLE, the scripts will
automatically restart when power is re-applied.
See Script Examples section for more information.
Impor
Impor
Impor
Impor
Important:
tant:
tant:
tant:
tant: The TLE must be in Automated Test mode before entering commands or
scripts. A "System Offhook" message is given if not in the correct mode.