Teltone is a registered trademark of Teltone Corporation.
Windows is a registered trademark of Microsoft Corporation.
Other company and product names may be trademarks or
registered trademarks of their respective owners.
Teltone Corporation
Bothell, Washington 98021 USA
Customer Service: 425-951-3388
Technical Support: 425-951-3390
Fax: 425-487-2288
Email: info@teltone.com
Website: www.teltone.com
New Features ...................................................................................................................4
Getting Started ........................................................................................................................................5
What’s on the API disk .....................................................................................................5
Serial Port.........................................................................................................................5
API Overview ..........................................................................................................................................6
API Command Summary ...............................................................................................57
Script Function Summary...............................................................................................58
TLE Command Parameter Summary.............................................................................59
TLE Messages (TM_).....................................................................................................61
Line Messages ..............................................................................................................61
Multiple Message Format Call Setup Parameter Types ................................................62
Set Caller ID Mode Command Parameter Definitions (TC_SETCALLERID_MODE) ...63
2
40-400-00025, Rev. D
Overview
Overview
The Automated Test module allows the user to control the Telephone Line Emulator
(TLE) to perform specific tests that may be required in a development or production
environment. Users have access to all features in the TLE-BASE, TLE-ADV and the
TLE-INTL software. For example, the user may wish to test the ring detect threshold
for a particular CPE device. Commands could be sent to the TLE to perform the
following operations:
•Set ring frequency and amplitude for line 1.
•Start ringing on line1.
•Verify that ringing has been detected. (External to the TLE.)
•Stop ringing on line 1 if device goes off-hook or times out.
•Change ring frequency and/or amplitude for line 1.
•Repeat ring test.
Alternately, the user may wish to configure the TLE to perform a particular test
without a PC being connected. In this scenario, after the user has developed and
downloaded a script, the PC may be disconnected and the unit will perform whatever
action specified by that script. For example a production test user could verify that a
CPE device meets minimum ring detect requirements by programming a script to
perform the following :
•Set ring frequency and amplitude for minimum detect threshold at line .
•When off-hook is seen on line 2, start ringing on line 1.
•When off-hook is seen on line 1, stop ringing.
•When on-hook is seen on line 2, restart script.
The Automated Test features of the TLE allow the user to control the operation of the
TLE through the serial interface. To facilitate writing programs to control the TLE, an
Application Programming Interface (API) is provided which consists of definitions of
all commands and parameters which the TLE recognizes (in both Visual Basic and C
formats).
When the TLE is configured with the Automated Test software, it will not operate as a
stand alone TLE. All operation will be under control of the PC or user downloaded
scripts. The TLE will still accept programming commands from the standard TLE PC
software to allow for the user to pre-configure the stored TLE settings. The user
generated script(s) will have commands that select which stored configurations are
used by the TLE during the operation of the script. It is recommended that during
initialization of any script to select a configuration using TC_SELECTCONFIG to
load a configuration for each line.
NoteNote
Note: ANY changes made by the API are
NoteNote
configuration loaded at power up or during TC_SELECTCONFIG. Changes made
during the running of an external or internal script are overwritten whenever
TC_SELECTCONFIG is used or when the TLE is reset.
temporarily stored in a copy of the default
40-400-00025, Rev. D3
Overview
NeNe
w Fw F
w F
w Fw F
eatureseatures
eatures
eatureseatures
Ne
NeNe
These new features were added to the TLE with the release of the TLE-TEST software.
CompleComple
Comple
CompleComple
Added to the TLE
Germany, and the United Kingdom. These parameters are loaded into the programmable SLIC used in the TLE. The details include:
Australia220Ω + (820Ω || 120nF)
Germany (See Note)220Ω + (820Ω || 310nF)
United Kingdom370Ω + (620Ω || 310nF)
Under the TLE
Upon selecting this option, a window appears with the following options.
DTMF GenerationDTMF Generation
DTMF Generation
DTMF GenerationDTMF Generation
The DTMF Generation feature allows for the setting of the frequency, signal level,
and On/Off timing for the Row and Column tones generated by a DTMF keypad.
These tone pairs include 1-9,0,#,*,A,B,C, and D. The TLE-Test module allows for the
user to send a DTMF string to a Line by using command TC_SENDDTMF,dtmfstring,
linenum
SwSw
Sw
SwSw
The Sweep Tone feature is an additional Test Tone similar to the ones seen in
NumbersNumbers
Numbers screen and allows for the setting of the Start Frequency, Range, Level, and
NumbersNumbers
Time. The TLE-TEST software allows for the user to send a Sweep Tone to a Line
using command TC_SENDTONE,tonename,linenum[,fromline]
x Impedancesx Impedances
x Impedances
x Impedancesx Impedances
eep eep
TT
oneone
eep
T
one
eep eep
TT
oneone
Loop PLoop P
Loop P
Loop PLoop P
ScreensScreens
Screens menu, there is a new sub menu called
ScreensScreens
arar
ameters ameters
ar
ameters are the complex impedances for Australia,
arar
ameters ameters
AA
utomated utomated
A
utomated
AA
utomated utomated
TT
estest
T
est.
TT
estest
PhonePhone
Phone
PhonePhone
Note:Note:
Note: This complex impedance is also used in Switzerland
Note:Note:
International Caller ID CommandsInternational Caller ID Commands
International Caller ID Commands
International Caller ID CommandsInternational Caller ID Commands
The purchase of the International (TLE-INTL) software and International Caller ID
(TLE-ICID) software will enable the TLE to execute International Caller ID commands
with the TLE in test mode.
440-400-00025, Rev. D
Getting Started
Getting Started
What’What’
What’
What’What’
The API consists of source code to assist in creation of programs to talk to the TLE.
This code includes definitions of all of the TLE commands, parameters and messages, plus the source code to the functions outlined in this manual.
The API disk contains the following (uppercase are directories, lowercase are files):
TLEAPI
s on the API disks on the API disk
s on the API disk
s on the API disks on the API disk
C_API
auto.hDefinitions of all TLE commands, parameters, and
auto.cppSource code for supported functions (see FUNC -
VB_API
auto.basDefinitions of all TLE commands, parameters, and
SAMPLE
readme.txtText file with details about the sample code and
DATA
tfloopc.000Data file used by TfLoopCurrent function.
tfloopi.00Data file used by TfLoopImpedance function.
tfloopi.01Data file used by TfLoopImpedance function.
tfloopi.02Data file used by TfLoopImpedance function.
tfloopi.03Data file used by TfLoopImpedance function.
tfloopi.04Data file used by TfLoopImpedance function.
tfmeter.000Data file used by TfMeterConfig function.
tfring.000Data file used by TfRingConfig function.
messages
TION DETAILS section of this manual) in C format.
messages, plus source code for supported functions
in Visual Basic format.
operation of the sample program. Read this file for
information about the full contents of this directory.
The C files were created using Microsoft Visual C++. The VB files and sample
program were created with Microsoft Visual Basic 3.0.
The data files are binary files used by the designated functions, and must be distributed with any programs written to talk to the TLE. The function routines provided
expect to find these files in the execution directory of the application.
SerSer
ial Pial P
Ser
ial P
SerSer
ial Pial P
The serial port on the TLE is configured as follows:
The TLE does not echo characters back to the user.
oror
tt
or
t
oror
tt
Baud Rate9600
Data bits8
ParityNone
Stop Bits1
Flow ControlHardware (RTS/CTS)
40-400-00025, Rev. D5
API Overview
API Overview
The TLE PC software program edits the stored configurations (non-volatile) in the
TLE and the API edits and uses a copy of the stored configuration(s) that is lost
when power is turned off. External and internal scripts should initially use
TC_SELECTCONFIG to load a copy of the appropriate stored configuration for each
line of the TLE. User scripts ARE saved in the TLE non-volatile memory.
Each line may use a separate configuration from the stored configurations for its
default values. Some parameters, however, are global and may not be changed on a
per-line basis. These global parameters will always use the configuration selected for
line 1. The global parameters are those associated with TC_SET commands which
do not include a “linenum” parameter.
DefinitionsDefinitions
Definitions
DefinitionsDefinitions
The API will contain definitions for all automated test commands and parameters.
Definitions fall into four categories:
TT
TC_
TP_
TM_
TS_
CC
TLE
CommandsCommands sent to the TLE.
TT
CC
TT
PP
TLE
ParametersParameters to be sent with commands.
TT
PP
TT
MM
TLE
MessagesMessages sent from the TLE.
TT
MM
TT
SS
TLE
Script operationsOperations to be entered into a script within
TT
SS
the TLE.
Command String Format.Command String Format.
Command String Format.
Command String Format.Command String Format.
All commands sent to the TLE consist of numeric values, preceeded by a colon “:”
followed by the appropriate unit number. Programs should wait for a response to a
command before sending the next command to the TLE.
Each programming and operational command string sent to the TLE will follow a
structure as follows:
1-255Only those TLE’s with matching ID’s will respond
Commandnumber: Command number provided by API for each TLE command.
Parameter_1…parameter_n: Command parameters. See individual commands for
details.
The TLE will work correctly with Carriage Return or Line Feed or both as a terminator. When the TLE receives a command, it will return either a Command Acknowledge, Invalid or Error message. The TLE will not respond to any command string that
does not begin with a colon “:”, followed by the appropriate unit number. Programs
should wait for a response to a command before sending the next command to the
TLE.
NoteNote
Note: While most commands return the confirmation, error or invalid response
NoteNote
immediately, a few commands will delay the confirmation until completed. These are
noted in the command details section.
640-400-00025, Rev. D
API Overview
Example:
In Visual Basic, the user would create a command string as follows, using the defined
constants.
This would compile to a command string that would be sent to the TLE as shown
below.
command_string =
:0,13,16,1<ret>
MessagesMessages
Messages
MessagesMessages
The TLE sends system and line messages to the PC to inform the user of specific
events which have occurred. These events include such things as on-hook, off-hook,
flash detected, dialed digits, etc. The TLE also responds to commands with an
appropriate command response message.
All messages sent by the TLE consist of numeric values preceeded by an exclamation “!” and terminated with a <cr> and <lf>. To assist in program development, the
API contains constants defined for all messages, and a function (TfMessage) for
converting System and Line messages to readable text.
The TLE will send messages to the user through the serial port. Messages are sent
as numbers, which the user can convert to text strings using the TfMessage function.
System MessagesSystem Messages
System Messages
System MessagesSystem Messages
System messages provide information about the operation of the TLE, and follow the
following format:
!unitnumber,messagetype,Y,P<cr><lf>.
Unitnumber: Unique ID given to TLE by the user.
0,1-255 If no unit number is assigned, TLE returns 0.
messagetype: 0 for system messages
Y: message number (up to 3 digits)
P: variable length parameter string (see individual messages for details)
Line messagesLine messages
Line messages
Line messagesLine messages
Line messages provide information about events that pertain to individual lines, and
follow this format:
!unitnumber,messagetype,Y,P<cr><lf>.
Unitnumber: Unique ID given to TLE by the user.
0,1-25: If no unit number is assigned, TLE returns 0.
messagetype: the line number 1 - 4
Y: message number (up to 3 digits)
P: variable length parameter string (see individual messages for details)
40-400-00025, Rev. D7
API Overview
Command responsesCommand responses
Command responses
Command responsesCommand 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: The Tfmessage function does not interpret command response messages.
Note:Note:
User ScrUser Scr
User Scr
User ScrUser Scr
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.
iptsipts
ipts
iptsipts
ImporImpor
tant:tant:
Impor
tant:
ImporImpor
tant:tant:
scripts. A "System Offhook" message is given if not in the correct mode.
840-400-00025, Rev. D
The TLE must be in Automated Test mode before entering commands or
API Overview
Dial receiversDial receivers
Dial receivers
Dial receiversDial receivers
The TLE can only detect DTMF digits on two lines at any time. The DTMF receivers
will be assigned on a first-come first-served basis. The DTMF receiver will remain
assigned until released by the user except under the following conditions:
If Caller ID with Call Waiting is sent, a DTMF receiver is automatically assigned to the
line, and is then released when completed.
If an ADSI script is sent, a DTMF receiver is automatically assigned to the line, and is
then released when completed. If no receiver is available, the TLE will respond with
an INVALID command response.
See the TC_DIALDETECT command for the format of the assign command.
Reset ButtonReset Button
Reset Button
Reset ButtonReset Button
The front panel reset button will set all configurations to factory defaults, and will
clear the unit ID and all scripts.
40-400-00025, Rev. D9
API Commands
API Commands
TC_CONNECTTC_CONNECT
TC_CONNECT
TC_CONNECTTC_CONNECT
FormatFormat
FormatTC_CONNECT,linenum,tolinenum
FormatFormat
DescriptionDescription
DescriptionConnects the audio path between line linenum and line tolinenum. If line linenum is already
DescriptionDescription
connected to another line, linenum will be added to that connection.
PP
arar
ameterameter
P
ar
ameterLinenum: line to connect
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Tolinenum: line to connect to
TP_OFF
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example connects line 1 to line 2:
ExampleExample
TC_CONNECT,TP_LINE1,TP_LINE2
This adds line 3 to the connection:
TC_CONNECT,TP_LINE3,TP_LINE2
This disconnects line 2, leaving the connection between lines 1 and 3:
TC_CONNECT,TP_LINE2,TP_OFF
NoteNote
NoteEstablishing a connection from an off-hook line to multiple on-hook lines may result in exces-
NoteNote
sive feedback (noise) being heard at the off-hook line. The PC control program should
monitor the line hook states and disconnect lines which have gone on-hook. Alternately, if
the line-to-line attenuation is increased, this condition will not occur.
TC_CONNECTTC_CONNECT
TC_CONNECT
TC_CONNECTTC_CONNECT
FormatFormat
FormatTC_CONNECTAUDIOPORT,linenum
FormatFormat
DescriptionDescription
DescriptionConnects a line to the audio output port.
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
AA
UDIOPORUDIOPOR
A
UDIOPOR
AA
UDIOPORUDIOPOR
TP_OFF
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TT
T
TT
ExampleExample
ExampleThis example connects line 1 to the audio port:
ExampleExample
TC_SETAUDIOPORT,TP_LINE1
This disconnects line 1 and connects line 2 to the audio port:
TC_SETAUDIOPORT,TP_LINE2
This disconnects line from audio port:
TC_SETAUDIOPORT,TP_OFF
1040-400-00025, Rev. D
TC_DCSIGNALTC_DCSIGNAL
TC_DCSIGNAL
TC_DCSIGNALTC_DCSIGNAL
FF
oror
matmat
F
or
matTC_SIGNAL,signaltype,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSets the DC loop state. The forced disconnect is momentary depending upon the pro-
DescrDescr
iptioniption
grammed timings for forced disconnect. All others are permanent states. The forced disconnect command will only be accepted if the line is in the off-hook state.
PP
arar
ameterameter
P
ar
ameterSignaltype: DC loop state
PP
arar
ameterameter
TP_FORCEDDISCONNECT
TP_OPEN
TP_REVERSE
TP_NORMAL
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sets reversed polarity on line 2:
ExampleExample
TC_DCSIGNAL,TP_REVERSE,TP_LINE2
NoteNote
NoteThe confirmation for this command is sent immediately for all signal types except
NoteNote
TP_FORCEDDISCONNECT. For TP_FORCEDDISCONNECT the confirmation is sent at the
completion of the forced disconnect pulse.
API Commands
See AlsoSee Also
See Also TC_SETFORCEDDISCONNECT
See AlsoSee Also
TC_DIALDETECTTC_DIALDETECT
TC_DIALDETECT
TC_DIALDETECTTC_DIALDETECT
FormatFormat
FormatTC_DIALDETECT,linenum,enable
FormatFormat
DescriptionDescription
DescriptionAssigns DTMF and rotary dial receivers to specified line. Note: only two dial receivers are
DescriptionDescription
available within the TLE. If a dial receiver is not available, this command will return an INVALID response.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Enable:
TP_DISABLE
TP_ENABLE
ExampleExample
ExampleThis example enables a DTMF detector on line 1:
ExampleExample
TC_DIALDETECT,TP_LINE1,TP_ENABLE
NoteNote
NoteBoth DTMF and Rotary dialed digits cannot be detected during the same call. As soon as
NoteNote
one type is detected, the other is blocked from detection. The receiver remains in this mode
until a new call is originated.
40-400-00025, Rev. D11
API Commands
TC_DISPLATC_DISPLA
TC_DISPLA
TC_DISPLATC_DISPLA
FF
oror
matmat
F
or
matTC_DISPLAY,type,message
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionDisplays a message on the TLE front-panel display. If type is TP_SYSTEM, the message is
DescrDescr
iptioniption
PP
arar
ameterameter
P
ar
ameterType: type of message
PP
arar
ameterameter
NoteNote
NoteThe TLE Display message type is broken into 2 types, TLE status messages (Onhook,
NoteNote
YY
Y
YY
displayed starting at the upper left and uses the entire display. If type is TP_LINE1-TPLINE4,
the message is displayed in the appropriate quadrant of the display for the selected line.
System messages are displayed for 1 second, then the display reverts to the individual line
messages. Line messages are displayed until replaced by new line messages.
TP_SYSTEM
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Message: message to display
If type is TP_SYSTEM, 0-40 characters, else 0-10 characters
Offhook, Ringing, etc..), and User generated messages, of which there are two types. User
generated Line Messages broken into four 10 character sets (which remain in the display
until updated), and a User generated System Message, a 40 character set that is displayed
for 1 second. The TLE remembers what message type (status vs. user) was in the Display
when a TP_SYSTEM message is displayed for 1 second, and returns that message after the
TP_SYSTEM message is complete. However, if a user generated message (e.g. TP_LINE1)
was in the TLE Display when a TP_SYSTEM message is sent, then the TLE remembers and
displays the user specified portion of the TP_SYSTEM message in the 10 character quadrant
until updated. Confused? Let’s look at the examples for clarification.
ExampleExample
ExampleCurrent message in display window for all four 10 character sets is “Onhook”.
ExampleExample
This command displays any text entered for one second:
TC_DISPLAY,TP_SYSTEM,Teltone Corporation Bothell, Washington
Teltone Corporation Bothell, Washington
and then the display returns to:
Onhook Onhook
Onhook Onhook
This command places “Hello” in the lower right quadrant left justified in the 10 character
set:
TC_DISPLAY,TP_LINE3,Hello
Now if we repeat the TP_SYSTEM message as shown above, the TLE Display will show:
Teltone Corporation Bothell, Washington
Then after 1 second:
Onhook Onhook
Onhook Ohook
After a device connected to Line 3 goes off-hook, the display is updated and displays:
Onhook Onhook
Onhook Offhook
1240-400-00025, Rev. D
API Commands
TC_PLATC_PLA
TC_PLA
TC_PLATC_PLA
FF
oror
matmat
F
or
matTC_PLAYMESSAGE,message,linenum
FF
oror
matmat
DescrDescr
Descr
DescrDescr
PP
arar
ameterameter
P
ar
ameterMessage: message number
PP
arar
ameterameter
ExamplesExamples
ExamplesThis example begins playback of message 1 on line 3:
ExamplesExamples
YMESSAYMESSA
YMESSA
YMESSAYMESSA
iptioniption
iptionPlays a pre-programmed voice message. The message will stop automatically when com-
iptioniption
pleted. TP_OFF allows the user to stop playback before the end of the message. This
command will return an INVALID response if the line is not in the off-hook state.
DescriptionRequests a signal level measurement from the specified line. The returned value must be
DescriptionDescription
processed through the TfSigLevel function.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ReturnsReturns
ReturnsTM_SIGLEVEL message, including a value from 0-4294967295 that must then be processed
ReturnsReturns
through the TfSigLevel function to yield either a voltage or dB value.
ExampleExample
ExampleThis example requests a signal level measurement from line 4:
ExampleExample
TC_REQLEVEL,TP_LINE4
See AlsoSee Also
See AlsoTM_SIGLEVEL, TfSigLevel
See AlsoSee Also
40-400-00025, Rev. D13
API Commands
TC_REQLINESTTC_REQLINEST
TC_REQLINEST
TC_REQLINESTTC_REQLINEST
FF
oror
matmat
F
or
matTC_REQLINESTATE,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionRequests the current on/off-hook state of the line.
DescrDescr
iptioniption
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
ReturnsReturns
ReturnsTM_OFFHOOK
ReturnsReturns
ExampleExample
ExampleThis example requests the current state of line 1:
ExampleExample
See AlsoSee Also
See AlsoTC_SETHOOKTIMING, TC_SETLOOPCURRENT, TC_DCSIGNAL, TM_OFFHOOK,
See AlsoSee Also
TM_ONHK
TC_REQVERSIONTC_REQVERSION
TC_REQVERSION
TC_REQVERSIONTC_REQVERSION
FormatFormat
FormatTC_REQVERSION
FormatFormat
AA
TETE
A
TE
AA
TETE
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TM_ONHK
TC_REQLINESTATE,TP_LINE1
DescriptionDescription
DescriptionRequests the firmware version number string from the TLE.
DescriptionDescription
ReturnsReturns
ReturnsTM_VERSION
ReturnsReturns
ExampleExample
ExampleThis example requests the version numbers of the boot code, microcontroller code and DSP
ExampleExample
code:
TC_REQVERSION
See AlsoSee Also
See AlsoTM_VERSION
See AlsoSee Also
1440-400-00025, Rev. D
TC_RINGTC_RING
TC_RING
TC_RINGTC_RING
FF
oror
matmat
F
or
matTC_RING,ringtype,linenum,fromline
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSends ringing to the line with pre-programmed voltage, frequency, and cadence. This com-
DescrDescr
iptioniption
mand will only be accepted if the line is in the on-hook state. Also sends Caller ID after the
first ring by default, or after every ring if enabled by TC_SETCALLERID_EVERYRING.
ExampleThis example sends ringing at group 2 cadence to line 3 from line 4:
ExampleExample
TC_RING,TP_RING_GROUP2,TP_LINE3,TP_LINE4
This stops ringing on line 3:
TC_RING,TP_OFF,TP_LINE3,TP_LINE4
See AlsoSee Also
See AlsoTC_SETTIME_RING, TC_SETRING, TC_SETTONE, TC_SENDTONE,
See AlsoSee Also
TC_SETCALLERID_EVERYRING
TC_SELECTCONFIGTC_SELECTCONFIG
TC_SELECTCONFIG
TC_SELECTCONFIGTC_SELECTCONFIG
FormatFormat
FormatTC_SELECTCONFIG,config,linenum
FormatFormat
DescriptionDescription
DescriptionSelects pre-programmed configuration to use for default values.
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterConfig: configuration
PP
arar
ameterameter
1-16
Linenum: line to set configuration for
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleSets the configuration for line 1 to configuration 1:
ExampleExample
TC_SELECTCONFIG,1,TP_LINE1
NoteNote
NoteThe TLE-ICID parameters set for line 1 for the configuration selected will be the same for all
NoteNote
the lines. For example, selecting a different configuration for line 2 will change all parameters
except for the TLE-ICID parameters; they will be identical to line 1.
40-400-00025, Rev. D15
API Commands
TC_SENDTC_SEND
TC_SEND
TC_SENDTC_SEND
FormatFormat
FormatTC_SENDADSI,linenum
FormatFormat
DescriptionDescription
DescriptionSends an ADSI script to the selected line. This command will only be accepted if the line is in
DescriptionDescription
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
ExampleExample
ExampleThis example sends an ADSI script to line 2:
ExampleExample
NoteNote
NoteThe phone must be off-hook for an ADSI script to be sent. The confirmation for this com-
NoteNote
TC_SENDCALLERIDTC_SENDCALLERID
TC_SENDCALLERID
TC_SENDCALLERIDTC_SENDCALLERID
FormatFormat
FormatTC_SENDCALLERID,linenum,fromline
FormatFormat
DescriptionDescription
DescriptionSends a pre-programmed Caller ID sequence.
DescriptionDescription
ADSIADSI
ADSI
ADSIADSI
the off-hook state.
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SENDADSI,TP_LINE2
mand is sent after the ADSI script has been sent to the line.
PP
arar
ameterameter
P
ar
ameterLinenum: line number
PP
arar
ameterameter
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Fromline: line whose Caller ID is being sent
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sends line 4’s Caller ID to line 3:
ExampleExample
TC_SENDCALLERID,TP_LINE3,TP_LINE4
NoteNote
NoteThe confirmation for this command is sent after the Caller ID has been sent to the line.
NoteNote
See AlsoSee Also
See AlsoTC_RING, TC_SETCALLERID_EVERYRING, TC_SETCALLERID_MODE,
ameterCallwaittype: Selects which Call Waiting cadence to send.
PP
arar
ameterameter
Linenum: line number
Fromline: line whose Caller ID is being sent
ExampleExample
ExampleThis example sends Distinctive Call Waiting to line 4:
ExampleExample
NoteNote
NoteThe confirmation for this command is sent after the Call Waiting sequence has been sent to
NoteNote
the line.
WW
AITINGAITING
W
AITING
WW
AITINGAITING
TP_CWNORMAL
TP_CWDISTINCTIVE
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SENDCALLWAITING,TP_CWDISTINCTIVE,TP_LINE4
See AlsoSee Also
See AlsoTC_SETTONE, TC_SETTIME_CALLWAIT
See AlsoSee Also
TC_SENDDTMFTC_SENDDTMF
TC_SENDDTMF
TC_SENDDTMFTC_SENDDTMF
FormatFormat
FormatTC_SENDDTMF,dtmfstring,linenum
FormatFormat
DescriptionDescription
DescriptionSends a string of DTMF digits. This command will only be accepted if the line is in the
DescriptionDescription
off-hook state.
PP
arar
ametersameters
P
ar
ametersDTMFstring: digit string to send
PP
arar
ametersameters
1-16 digits (0-9,*,#,ABCD)
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sends 5551212 to line 4:
ExampleExample
TC_SENDDTMF,5551212,TP_LINE4
NoteNote
NoteThe confirmation for this command is sent after the DTMF has been sent to the line.
NoteNote
See AlsoSee Also
See AlsoTC_SETDTMFCADENCE,TC_SETDTMFTONES.
See AlsoSee Also
40-400-00025, Rev. D17
API Commands
TC_SENDTTC_SENDT
TC_SENDT
TC_SENDTTC_SENDT
FF
oror
matmat
F
or
matTC_SENDTONE,tonename,linenum[,fromline]
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSends specified tones to the line. Tones are sent with programmed cadences. Dial tone will
DescrDescr
iptioniption
PP
arar
ametersameters
P
ar
ametersTonename: tone to send
PP
arar
ametersameters
ONEONE
ONE
ONEONE
turn off automatically upon detection of valid DTMF or rotary dialing (if a receiver was assigned). A SIT sequence is sent once, all others will continue until superceded by a new
TC_SENDTONE command or until the hook state transitions from off-hook to on-hook. All
tones are sent whether the line is currently off-hook or on-hook, except those with the
_ATOFFHOOK suffix, which are sent after the defined dial tone delay when off-hook is
detected.
ExampleThis example sets normal dial tone to be continuous for line 1:
ExampleExample
TC_SETTIME_DIALTONE, TP_DIALTONE_NORMAL, TP_CONTINUOUS,TP_LINE1
This sets recall dial tone to be 100 ms on and off, repeated three times before going continuous:
TC_SETTIME_DIALTONE, TP_DIALTONE_RECALL, TP_SIMPLE,100,100,3,TP_LINE1
This sets message waiting dial tone to be 100 ms on and off, then 200 ms on and off, with the
sequence continued forever:
DescriptionSets the cadence for ringing and ringback.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersGroup:
PP
arar
ametersameters
TP_RING_GROUP1
TP_RING_GROUP2
TP_RING_GROUP3
On:
0-3000 ms in 5 ms steps
Off:
0-6300 ms in 5 ms steps
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
40-400-00025, Rev. D33
API Commands
ExampleExample
ExampleThis example sets the line 1 group 1 ring cadence to 2 seconds on/4 seconds off:
ExampleExample
TC_SETTIME_RING, TP_RING_GROUP1, 2000,4000,0,0,0,0, TP_LINE1
This sets the line 4 group 2 ring cadence to 800 ms on/400 ms off, 800 ms on/4 seconds off:
TC_SETTIME_RING, TP_RING_ GROUP2, 800,400,800,4000,0,0, TP_ LINE4
This sets the line 2 group 3 ring cadence to 1 second on/1 second off, 1 second on/3 seconds off:
See AlsoTC_SETTONE, TC_SENDTONE, TC_SETRING,TC_RING
See AlsoSee Also
TC_SETTIME_SITTC_SETTIME_SIT
TC_SETTIME_SIT
TC_SETTIME_SITTC_SETTIME_SIT
FormatFormat
FormatTC_SETTIME_SIT,on,off,on,off,on,off,linenum
FormatFormat
DescriptionDescription
DescriptionSets the cadence for Special Information Tones.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersOn:
PP
arar
ametersameters
0-1000 ms in 5 ms steps
Off:
0-1000 ms in 5 ms steps
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sets the SIT tone timing to 330 ms on for all tones, and 5 ms off for all tones on
ExampleExample
line 2:
TC_SETTIME_SIT,330,5,330,5,330,5,TP_LINE2
NoteNote
NoteSIT and Number Unobtainable operations are mutually exclusive within the TLE. Sending
NoteNote
either TC_SETTONE_SIT or TC_SETTIME_SIT will override Number Unobtainable operation, and sending TC_SETTONE_NUMBERUNOB or TC_SETTIME_NUMBERUNOB will
override SIT operation. When changing between modes, the user must send both of the
appropriate TC_SETTONE_ and TC_SETTIME_ commands.
NoteSIT and Number Unobtainable operations are mutually exclusive within the TLE. Sending
NoteNote
either TC_SETTONE_SIT or TC_SETTIME_SIT will override Number Unobtainable operation, and sending TC_SETTONE_NUMBERUNOB or TC_SETTIME_NUMBERUNOB will
override SIT operation. When changing between modes, the user must send both of the
appropriate TC_SETTONE_ and TC_SETTIME_ commands.
DescriptionSets the frequencies and levels for Special Information Tones.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersTone1_freq,tone2_freq,tone3_freq:
PP
arar
ametersameters
ExampleExample
ExampleThis example sets the SIT tones to 950, 1400, and 1800 Hz, all at –24 dBm on line 2:
ExampleExample
NoteNote
NoteSIT and Number Unobtainable operations are mutually exclusive within the TLE. Sending
NoteNote
ONE_SITONE_SIT
ONE_SIT
ONE_SITONE_SIT
linenum
10-3000 Hz
Tone1_level,tone2_level,tone3_level:
0 – 60 (0 to –60 dBm)
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SETTONE_SIT,950,24,1400,24,1800,24,TP_LINE2
either TC_SETTONE_SIT or TC_SETTIME_SIT will override Number Unobtainable opera-
tion, and sending TC_SETTONE_NUMBERUNOB or TC_SETTIME_NUMBERUNOB will
override SIT operation. When changing between modes, the user must send both of the
appropriate TC_SETTONE_ and TC_SETTIME_ commands.
See AlsoSee Also
See AlsoTC_SENDTONE, TC_SETTIME_SIT
See AlsoSee Also
TC_SETTYPEWHITENOISETC_SETTYPEWHITENOISE
TC_SETTYPEWHITENOISE
TC_SETTYPEWHITENOISETC_SETTYPEWHITENOISE
FF
oror
matmat
F
or
matTC_SETTYPEWHITENOISE, type
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionFrom a power-up state the unit will default to line control. In this mode, white noise is gener-
DescrDescr
iptioniption
ated automatically when the line goes off-hook, stops generating white noise when the line
goes on-hook, and changes white noise level only when on-hook. If the unit is set to com-
mand control, the unit ignores on and off-hooks and changes the white noise level as soon as
a TC_SETWHITENOISE command is issued. White noise will also be heard on any line that
is connected (using a TC_CONNECT command) to a line that is generating white noise.
PP
arar
ametersameters
P
ar
ametersSettypewhitenoise: message format
PP
arar
ametersameters
TP_LINE_CONTROL
TP_COMMAND_CONTROL
ExampleExample
ExampleThis puts unit in CONNECT control.
ExampleExample
TC_SETTYPEWHITENOISE, TP_LINE_CONTROL
This puts unit in COMMAND control
TC_SETTYPEWHITENOISE, TP_ COMMAND _CONTROL
See AlsoSee Also
See AlsoTC_SETWHITENOISE
See AlsoSee Also
40-400-00025, Rev. D37
API Commands
TC_SETUNITNUMBERTC_SETUNITNUMBER
TC_SETUNITNUMBER
TC_SETUNITNUMBERTC_SETUNITNUMBER
FF
oror
matmat
F
or
matTC_SETUNITNUMBER,unitnumber
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSets an ID number to be used in command strings to uniquely identify multiple TLE’s. All
DescrDescr
iptioniption
TLE’s will respond to commands sent to ID 0. Changing the ID number is optional.
PP
arar
ameterameter
P
ar
ameterIdnumber:
PP
arar
ameterameter
0-255
ExampleExample
ExampleThis example sets the TLE ID number to 25:
ExampleExample
TC_SETUNITNUMBER,25
TC_SETVMWTC_SETVMW
TC_SETVMW
TC_SETVMWTC_SETVMW
FF
oror
matmat
F
or
matTC_SETVMWAITTYPE,vmwaittype,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSets the message format for Visual Message Waiting.
DescrDescr
iptioniption
PP
arar
ametersameters
P
ar
ametersVmwaittype: message format
PP
arar
ametersameters
ExampleExample
ExampleThis example sets the Visual Message Waiting format for line 3 to multi-message format
ExampleExample
See AlsoSee Also
See AlsoTC_SETOPENSWITCH, TC_SENDVMW
See AlsoSee Also
AITTYPEAITTYPE
AITTYPE
AITTYPEAITTYPE
TP_SINGLEMESSAGE
TP_MULTIPLEMESSAGE
(Note: Following valid only with TLE-ICID-ICID option)
TP_SINGLE_RBURST
TP_MULTIPLE_RBURST
TP_MULTIPLE_DTONE
TP_MULTIPLE_REVERSE
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
TC_SETVMWAITTYPE, TP_MULTIPLEMESSAGE, TP_LINE3
3840-400-00025, Rev. D
TC_SETWHITENOISETC_SETWHITENOISE
TC_SETWHITENOISE
TC_SETWHITENOISETC_SETWHITENOISE
FF
oror
matmat
F
or
matTC_SETWHITENOISE,level,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionSets the white noise level.
DescrDescr
iptioniption
PP
arar
ametersameters
P
ar
ametersLevel: White noise level is dBrn (Note: dBrn = dBm+90).
PP
arar
ametersameters
TP_OFF
20-85 dbrn
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleThis example sets white noise on line 3 to –30 dBrn:
ExampleExample
TC_SETWHITENOISE,30, TP_LINE3
This turns off white noise on line 4:
TC_SETWHITENOISE, TP_OFF, TP_LINE4
See AlsoSee Also
See AlsoTC_SETTYPEWHITENOISE
See AlsoSee Also
API Commands
40-400-00025, Rev. D39
Functions
Functions
Function SummarFunction Summar
Function Summar
Function SummarFunction Summar
yy
y
yy
There are certain parameters within the TLE that cannot be changed by downloading one single value. These
include the loop current, meter tone, ring voltage, and line impedance parameters. In these cases when one
parameter is to be changed it is necessary to download a table of values that configures the hardware for the
desired setting. To facilitate these operations, the API contains source code for functions which must be used
to perform table lookup for these values.
Source code in both Visual Basic(VB) and C is provided for the following functions on the API diskette.
VB: TfLoopCurrent(byval loopcurrent as integer) as stringConverts loopcurrent to the data string required by the TLE.
VB: TfRingConfig(byval ringvolt as double,byval ringfreqConverts metervolt and meterfreq to the data string required by
as double) as string the TLE.
C: void TfRingConfig (char returnstring[ ],double
ringvolt,int ringfreq)
VB: TfLoopImpedance(byval impedance as integer) as stringConverts impedance to the data string required by the TLE.
C: void TfLoopImpedance (char returnstring[ ],
in impedance)
In addition, the API provides functions to help interpret messages returned from the TLE. Also, when the TLE
outputs the data from a signal level measurement, this data must be processed, scaled, and formatted.
VB: TfMessage(byval messagestring as string) as string;Converts System and Line message strings returned from TLE
messagetype,messagenumber,parametersinto text strings. Does not convert Command Response messages.
C: void TfMessage (char returnstring[ ],
char messagestring[ ])
VB: TfSigLevel(byval impedance as integer, byval siglevel asConverts the signal level returned as part of TM_SIGLEVEL
double, byval mode as integer) as doublemessage into either a voltage or dBm value.
ameterReturnstring: string in which the function returns the requested data (C only)
PP
arar
ameterameter
Messagestring: Framed message from TLE.
ReturnsReturns
ReturnsReadable message.
ReturnsReturns
Function Function
Function
Function Function
FormatFormat
FormatVB: TfMeterConfig(byval metervolt as double,byval meterfreq as integer) as string
FormatFormat
DescriptionDescription
DescriptionConverts metervolt and meterfreq to the data string required by the TLE.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersMetervolt: Metering tone voltage
PP
arar
ametersameters
ReturnsReturns
ReturnsCharacter string to be sent as volt_freq parameter of the TC_SETMETERTONES command.
ReturnsReturns
TfMeterConfigTfMeterConfig
TfMeterConfig
TfMeterConfigTfMeterConfig
C: void TfMeterConfig (char returnstring[ ],double metervolt, int meterfreq)
0.0-5.0 volts in .1 volt steps
Meterfreq: Metering tone frequency
TP_12khz
TP_16khz
Returnstring: string in which the function returns the requested data (C only)
40-400-00025, Rev. D41
Functions
Function Function
Function
Function Function
FF
oror
matmat
F
or
matVB: TfRingConfig(byval ringvolt as double,byval ringfreq as double) as string
FF
oror
matmat
DescriptionDescription
DescriptionConverts ringvolt and ringfreq to the data string required by the TLE.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersRingvolt: Ring voltage
PP
arar
ametersameters
ReturRetur
nsns
Retur
nsCharacter string to be sent as volt_freq parameter of the TC_SETRING command.
ReturRetur
nsns
Function Function
Function
Function Function
FF
oror
matmat
F
or
matVB: TfSigLevel(byval impedance as integer, byval siglevel as double, byval mode as integer)
FF
oror
matmat
DescriptionDescription
DescriptionConverts the signal level returned as part of TM_SIGLEVEL message into either a voltage or
DescriptionDescription
TfRingConfigTfRingConfig
TfRingConfig
TfRingConfigTfRingConfig
C: void TfRingConfig (char returnstring[ ],double ringvolt, int ringfreq)
20-80 volts in 5 volt steps
Ringfreq: Ring frequency
17-70Hz in 1 Hz steps
Returnstring: string in which the function returns the requested data (C only)
TfSigLeTfSigLe
TfSigLe
TfSigLeTfSigLe
as double.
C: double TfSigLevel (int impedance, char siglevel[ ], int mode)
dBm value.
vv
elel
v
el
vv
elel
Impedance: Impedance of the line being measured.
TP_IMPEDANCE600
TP_IMPEDANCE900
TP_IMPEDANCE_GERMANY
TP_IMPEDANCE_UK
TP_IMPEDANCE_AUSTRALIA
Siglevel: Value returned as part of TM_SIGLEVEL message
0-4294967295
Mode:
TP_VOLT
TP_DBM
ReturRetur
nsns
Retur
nsSignal level, as voltage or dBm value.
ReturRetur
nsns
Function Function
Function
Function Function
FF
oror
matmat
F
or
matVB: TfLoopImpedance(byval impedance as integer) as string
FF
oror
matmat
DescriptionDescription
DescriptionConverts impedance to the data string required by the TLE.
DescriptionDescription
PP
arar
ametersameters
P
ar
ametersImpedance: Impedance value
PP
arar
ametersameters
TfLoopImpedanceTfLoopImpedance
TfLoopImpedance
TfLoopImpedanceTfLoopImpedance
C: void TfLoopImpedance (char returnstring[ ], in impedance)
TP_IMPEDANCE600
TP_IMPEDANCE900
TP_IMPEDANCE_GERMANY
TP_IMPEDANCE_UK
TP_IMPEDANCE_AUSTRALIA
Returnstring: string in which the function returns the requested data (C only)
ReturRetur
nsns
Retur
nsCharacter string to be sent as impedance parameter of the TC_SETIMPEDANCE command.
ReturRetur
nsns
4240-400-00025, Rev. D
Script Details
Script Details
TS_DELATS_DELA
TS_DELA
TS_DELATS_DELA
FF
oror
matmat
F
or
matTS_DELAY,delaytime
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionDelays a fixed amount of time before performing the next script command.
DescrDescr
iptioniption
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
TS_ENDDEFTS_ENDDEF
TS_ENDDEF
TS_ENDDEFTS_ENDDEF
FormatFormat
FormatTS_ENDIF
FormatFormat
DescriptionDescription
DescriptionEnds entry of a script.
DescriptionDescription
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
NoteNote
NoteThis command will return an error if a TS_STARTDEF has not been previously sent.
NoteNote
See AlsoSee Also
See AlsoTS_STARTDEF, TS_SCRIPTMODE ,TS_SCRIPTRUN
See AlsoSee Also
YY
Y
YY
Delaytime:
0-30000 ms in 5 ms steps
TS_EXECUTETS_EXECUTE
TS_EXECUTE
TS_EXECUTETS_EXECUTE
FormatFormat
FormatTS_EXECUTE,commandstring
FormatFormat
DescriptionDescription
DescriptionExecutes a TC_ command within a script.
DescriptionDescription
Commandstring:
Any complete TC_ command string.
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
40-400-00025, Rev. D43
Script Details
TS_RESTTS_REST
TS_REST
TS_RESTTS_REST
FF
oror
matmat
F
or
matTS_RESTARTCONDITION,restartcondition,linenum
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionRestarts the script if the defined condition is met at any point after this command.
DescrDescr
iptioniption
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
NoteNote
NoteOnly one restart condition may be active in each script. Sending a new
NoteNote
TS_SCRIPTMODETS_SCRIPTMODE
TS_SCRIPTMODE
TS_SCRIPTMODETS_SCRIPTMODE
FormatFormat
FormatTS_SCRIPTMODE,scriptmode
FormatFormat
DescriptionDescription
DescriptionDefines how many scripts the user can run.
DescriptionDescription
ARAR
TCONDITIONTCONDITION
AR
TCONDITION
ARAR
TCONDITIONTCONDITION
Restartcondition:
TP_OFF
TP_OFFHOOK
TP_ONHOOK
TP_DIALDETECTED
TX_RESARTCONDITION command will replace any prior condition.
Scriptmode:
TP_SCRIPT_SINGLEOne script that can access all four lines.
TP_SCRIPT_DUALTwo scripts. Script 1 accesses lines 1 and 2,
Script 2 accesses lines 3 and 4.
TP_SCRIPT_QUADFour scripts. Script 1 accesses line 1, script 2
accesses line 2, etc.
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
NoteNote
NoteThis command must be sent to the TLE before defining any scripts, and will return an error if
NoteNote
sent between a TS_STARTDEF and TS_ENDDEF. Setting scriptmode will clear all existing
scripts from the TLE.
See AlsoSee Also
See AlsoTS_SCRIPTRUN, TS_STARTDEF, TS_ENDDEF
See AlsoSee Also
TS_SCRIPTRTS_SCRIPTR
TS_SCRIPTR
TS_SCRIPTRTS_SCRIPTR
FF
oror
matmat
F
or
matTS_SCRIPTRUN,enable
FF
oror
matmat
DescrDescr
iptioniption
Descr
iptionStarts and stops scripts from running. If a script is running, TP_ENABLE will restart the
DescrDescr
iptioniption
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
NoteNote
NoteWhen scripts are running, external TC_ commands are ignored. The TLE will continue to
NoteNote
UNUN
UN
UNUN
script.
Enable:
TP_ENABLE
TP_DISABLE
send messages while scripts are running, including the command accepted (!8) and error (!9)
messages for each of the commands within the scripts. This command will return an error if
sent between a TS_STARTDEF and TS_ENDDEF.
See AlsoSee Also
See AlsoTS_SCRIPTMODE, TS_STARTDEF, TS_ENDDEF
See AlsoSee Also
4440-400-00025, Rev. D
Script Details
TS_STTS_ST
TS_ST
TS_STTS_ST
FF
oror
F
or
FF
oror
DescrDescr
Descr
DescrDescr
ExampleExample
ExampleThis example configures the TLE for a single script:
ExampleExample
ARAR
TDEFTDEF
AR
TDEF
ARAR
TDEFTDEF
matmat
matTS_STARTDEF,scriptnum
matmat
iptioniption
iptionBegins entry of a script. Clears out any previous script defined with the same script number.
NoteThis command will return an error if a TS_ENDDEF has not been sent after a previous
NoteNote
TS_STARTDEF.
See AlsoSee Also
See AlsoTS_ENDDEF, TS_SCRIPTMODE, TS_SCRIPTRUN
See AlsoSee Also
40-400-00025, Rev. D45
Script Details
TS_WTS_W
TS_W
TS_WTS_W
FF
oror
F
or
FF
oror
DescrDescr
Descr
DescrDescr
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
NotesNotes
NotesA dial receiver must be assigned prior to this command.
NotesNotes
See AlsoSee Also
See AlsoTC_DIALDETECT
See AlsoSee Also
TS_WTS_W
TS_W
TS_WTS_W
AITDIALAITDIAL
AITDIAL
AITDIALAITDIAL
matmat
matTS_WAITDIAL,linenum,phonenumber
matmat
iptioniption
iptionWaits for dialing.
iptioniption
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
Phonenumber:
0-16 digits (0-9,*,#,ABCD, or ? to match any character)
The line must be off-hook or this command will not work.
If a line is on-hook, or goes on-hook while waiting, this command will return an INVALID.
AITFLASHAITFLASH
AITFLASH
AITFLASHAITFLASH
FormatFormat
FormatTS_WAITFLASH,linenum
FormatFormat
DescriptionDescription
DescriptionWaits until a hook-flash is detected.
DescriptionDescription
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
NoteNote
NoteIf a line is on-hook, or goes on-hook while waiting, this command will return an INVALID.
NoteNote
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
TS_WTS_W
TS_W
TS_WTS_W
FF
oror
F
or
FF
oror
DescrDescr
Descr
DescrDescr
AITAIT
OFFHOOKOFFHOOK
AIT
OFFHOOK
AITAIT
OFFHOOKOFFHOOK
matmat
matTS_WAITOFFHOOK,linenum
matmat
iptioniption
iptionWaits until line is off-hook.
iptioniption
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
4640-400-00025, Rev. D
Script Details
TS_WTS_W
TS_W
TS_WTS_W
FF
oror
F
or
FF
oror
DescrDescr
Descr
DescrDescr
ExampleExample
ExampleSee TS_STARTDEF.
ExampleExample
AITAIT
ONHOOKONHOOK
AIT
ONHOOK
AITAIT
ONHOOKONHOOK
matmat
matTS_WAITONHOOK,linenum
matmat
iptioniption
iptionWaits until line is on-hook
iptioniption
Linenum: line number
TP_LINE1
TP_LINE2
TP_LINE3
TP_LINE4
40-400-00025, Rev. D47
Script Examples
Script Examples
When a PC program is being developed that utilizes Automated Test commands, or scripts are being developed, it is advantageous to use ASCII command codes (e.g. TC_CONNECT) and item codes (e.g. TP_LINE1)
HoHo
ww
ee
vv
erer
, bef, bef
to enhance readability.
necessarnecessar
necessar
necessarnecessar
the header file which defines the numeric value for each command and item. (AUTO.BAS or AUTO.C are
supplied) For example, the command :0,TC_CONNECT,TP_LINE1,TP_LINE2 must be translated to the
string :0,0,1,2.
A sample PC program “SAMPLE.EXE” is provided with the Automated Test Module which translates ASCII
formats to numeric formats for both commands and scripts. Also, it automatically translates the numeric
return codes from the TLE to the equivalent ASCII format. See the README text file for further information
about this program.
The TLE allocates a maximum of 8K bytes for all scripts. In single script mode the entire 8K is allocated to the
script; in dual mode 4K is allocated to each script, and in quad mode 2K is allocated to each script. If these
limits are exceeded the TLE will return an error during the download process.
The TLE will not accept a new download if an existing script is running. In this case the command to stop
scripts (:0,59,0) must be entered prior to the start of the download.
y to try to tr
anslate them to their equivanslate them to their equiv
y to tr
anslate them to their equiv
y to try to tr
anslate them to their equivanslate them to their equiv
Ho
HoHo
w
e
v
ww
ee
vv
ore these commands or scrore these commands or scr
er
, bef
ore these commands or scr
erer
, bef, bef
ore these commands or scrore these commands or scr
alent nalent n
alent n
alent nalent n
umerumer
umer
umerumer
ic vic v
ic v
ic vic v
ipts are doipts are do
ipts are do
ipts are doipts are do
aluesalues
alues
. This can be accomplished by referencing
aluesalues
wnloaded to the wnloaded to the
wnloaded to the
wnloaded to the wnloaded to the
TLE, it isTLE, it is
TLE, it is
TLE, it isTLE, it is
The following are samples of scripts. Remember that prior to downloading, all ASCII command and item
codes must be translated to equivalent numerics. Also, all lines must be terminated with a carriage return or
carriage return/line feed. The comments (lines that start with a semicolon) are included here for elaboration
and must not be included in the download.
Example of a Single Script For All LinesExample of a Single Script For All Lines
Example of a Single Script For All Lines
Example of a Single Script For All LinesExample of a Single Script For All Lines
;send a single script for all lines
:0,TS_SCRIPTMODE,TP_SCRIPT_SINGLE
;script is number 1 (only number allowed in single script mode)
:0,TS_STARTDEF,1
;use config. 1 for all lines
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE1
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE2
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE3
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE4
;set CID sequence as name, number, time, no checksum error
:0,TS_EXECUTE,TC_SETCALLERID_SEQUENCE,TP_CID_NAME,TP_CID_NUMBER,TP_CID_TIME,TP_ENABLE
;set CID time as Jan 31, 1:25 PM
:0,TS_EXECUTE,TC_SETCALLERID_TIME,1,31,13,25
;CID name = Line1
:0,TS_EXECUTE,TC_SETCALLERID_NAME,Line 1,TP_LINE1
;CID name = Line2
:0,TS_EXECUTE,TC_SETCALLERID_NAME,Line 2,TP_LINE2
;CID name = Line3
:0,TS_EXECUTE,TC_SETCALLERID_NAME,Line 3,TP_LINE3
;CID name = Line4
4840-400-00025, Rev. D
:0,TS_EXECUTE,TC_SETCALLERID_NAME,Line 4,TP_LINE4
;set all lines to multiple message format for Caller ID
:0,TS_EXECUTE,TC_SETCALLERID_MODE,TP_MULTIPLEMESSAGE,TP_LINE1
:0,TS_EXECUTE,TC_SETCALLERID_MODE,TP_MULTIPLEMESSAGE,TP_LINE2
:0,TS_EXECUTE,TC_SETCALLERID_MODE,TP_MULTIPLEMESSAGE,TP_LINE3
:0,TS_EXECUTE,TC_SETCALLERID_MODE,TP_MULTIPLEMESSAGE,TP_LINE4
;wait until all lines are on-hook
:0,TS_WAITONHOOK,TP_LINE1
:0,TS_WAITONHOOK,TP_LINE2
:0,TS_WAITONHOOK,TP_LINE3
:0,TS_WAITONHOOK,TP_LINE4
;wait until line 1 goes off-hook
:0,TS_WAITOFFHOOK,TP_LINE1
;send ringback tone to line1
;using cadence of group1 line 2 ringing
:0,TS_EXECUTE,TC_SENDTONE,TP_RINGBACK_GROUP1,TP_LINE1,TP_LINE2
;ring line 2 using group 1 cadence and
;send caller ID using name and number from line 1
:0,TS_EXECUTE,TC_RING,TP_RING_GROUP1,TP_LINE2,TP_LINE1
;wait until line 2 goes off-hook
:0,TS_WAITOFFHOOK,TP_LINE2
;turn off ringback tone at line 1
:0,TS_EXECUTE,TC_SENDTONE,TP_OFF,TP_LINE1
;connect line 1 to line
:0,TS_EXECUTE,TC_CONNECT,TP_LINE1,TP_LINE2
;display the message “2-WAY CONFERENCE”
:0,TS_EXECUTE,TC_DISPLAY,TP_SYSTEM,2-WAY CONFERENCE
;wait for line 1 to go on-hook
:0,TS_WAITONHOOK,TP_LINE1
;disconnect line 1 from line 2
:0,TS_EXECUTE,TC_CONNECT,TP_LINE1,TP_OFF
;wait for line 2 to go on-hook
:0,TS_WAITONHOOK,TP_LINE2
;mark end of the script
:0,TS_ENDDEF
;flag the script to run after it is downloaded
:0,TS_SCRIPTRUN,TP_ENABLE
Note 1Note 1
Note 1
Note 1Note 1
Note 2Note 2
Note 2
Note 2Note 2
Note 3Note 3
Note 3
Note 3Note 3
Note 4Note 4
Note 4
Note 4Note 4
Script Examples
When the script processor gets to the end of a script, it automatically cycles back to the start.
Note 1Note 1
Note 1 Caller ID information is automatically sent after the 1st ring cycle, if the “ring off” time is satisfied.
Note 1Note 1
Note 2Note 2
Note 2 System messages are displayed for a fixed 1 second; line messages stay on the display until they are
Note 2Note 2
replaced by a new line message.
Note 3Note 3
Note 3 In order to break a connection it is only necessary to send the TC_CONNECT with the TP_OFF for
Note 3Note 3
one line in a two line connection. If more than two lines are connected, when this command is ex
ecuted, the remaining lines will stay connected.
Note 4Note 4
Note 4 This command will cause the unit to automatically start running the script after it is downloaded.
Note 4Note 4
Also the SCRIPTRUN command is stored in non-volatile memory. Unless a
TS_SCRIPTRUN,TP_DISABLE command is issued, this script will automatically restart after a
power-down/ power-up cycle.
40-400-00025, Rev. D49
Script Examples
Example of a Dual ScrExample of a Dual Scr
Example of a Dual Scr
Example of a Dual ScrExample of a Dual Scr
Note that in a dual script the first script can only access lines 1 & 2 and the second script can only access
lines 3 & 4.
;send a dual script
:0,TS_SCRIPTMODE,TP_SCRIPT_DUAL
;start of script number 1
:0,TS_STARTDEF,1
;use configuration 1 for line 1
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE1
;wait until line 2 is on-hook
:0,TS_WAITONHOOK,TP_LINE2
;wait until line 1 is off-hook
:0,TS_WAITOFFHOOK,TP_LINE1
;send dialtone to line 1
:0,TS_EXECUTE,TC_SENDTONE,TP_DIALTONE,TP_LINE1
;enable dtmf detection on line 1
:0,TS_EXECUTE,TC_DIALDETECT,TP_LINE1,TP_ENABLE
;set 5 sec delay
:0,TS_DELAY,5000
;if dtmf is detected on line 1 jump to the start of the script
:0,TS_RESTARTCONDITION,TP_DIALDETECTED,TP_LINE1
;ring line 2 using group 1 cadence and
;send caller ID using name and number from line 1
;wait for on-hook on line 3
:0,TS_WAITONHOOK,TP_LINE3
;wait for on-hook on line 4
:0,TS_WAITONHOOK,TP_LINE4
;end of script
:0,TS_ENDDEF
This script does not have a SCRIPTRUN command; it will not automatically start after being downloaded. It
will wait for a SCRIPTRUN command sent manually.
Note 1Note 1
Note 1 The TLE has only 2 DTMF detectors. Once these have been enabled for any 2 lines, no additional
Note 1Note 1
assignments (enables) may be made until at least one of these has been disabled.
Note 2Note 2
Note 2 If a restart condition is true the script will restart from the beginning.
Note 2Note 2
Note 3Note 3
Note 3 The system will wait here until the correct number is dialed. If the initial dial attempt is incorrect the
Note 3Note 3
user can continue dialing with the correct sequence to obtain a match (e.g. for this number the
sequence 55412125551212 would be accepted.)
Example of a Quad Script:Example of a Quad Script:
Example of a Quad Script:
Example of a Quad Script:Example of a Quad Script:
Note that in a quad script the 1st script can only access line 1, the 2nd line 2, etc.
;send a quad script
:0,TS_SCRIPTMODE,TP_SCRIPT_QUAD
;start of script number 1
:0,TS_STARTDEF,1
;use configuration number 1 for line 1
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE1
wait for on-hook on line 1
:0,TS_WAITONHOOK,TP_LINE1
;wait for off-hook on line 1
:0,TS_WAITOFFHOOK,TP_LINE1
;wait for 2 seconds
:0,TS_DELAY,2000
;play audio message 1 on line 1
:0,TS_EXECUTE,TC_PLAYMESSAGE,1,TP_LINE1
;wait for on-hook on line 1
:0,TS_WAITONHOOK,TP_LINE1
;end of script
:0,TS_ENDDEF
;start of script number 2
:0,TS_STARTDEF,2
;use configuration number 1 for line 2
:0,TS_EXECUTE,TC_SELECTCONFIG,1,TP_LINE2
;wait for off-hook on line 2
:0,TS_WAITOFFHOOK,TP_LINE2
;play audio message 1 on line 2
:0,TS_EXECUTE,TC_PLAYMESSAGE,1,TP_LINE2
;wait for on-hook on line 2
:0,TS_WAITONHOOK,TP_LINE2
;end of script
40-400-00025, Rev. D51
Script Examples
:0,TS_ENDDEF
;start of script 3
:0,TS_STARTDEF,3
;wait for off-hook on line 3
:0,TS_WAITOFFHOOK,TP_LINE3
;play audio message 2 on line 3
:0,TS_EXECUTE,TC_PLAYMESSAGE,2,TP_LINE3
;wait for on-hook on line 3
:0,TS_WAITONHOOK,TP_LINE3
;end of script
:0,TS_ENDDEF
;start script 4
:0,TS_STARTDEF,4
;wait for off-hook on line 4
:0,TS_WAITOFFHOOK,TP_LINE4
;play audio message 3 on line 4
:0,TS_EXECUTE,TC_PLAYMESSAGE,3,TP_LINE4
;wait for on-hook on line 4
:0,TS_WAITONHOOK,TP_LINE4
;end of script
:0,TS_ENDDEF
;start the 4 scripts
:0,TS_SCRIPTRUN,TP_ENABLE
Note that in dual or quad script modes all scripts are enabled or disabled together; that is, all scripts must be
running or all scripts must be inactive.
5240-400-00025, Rev. D
Default Configuration
Default Configuration
For the Automated Test Module the default values for all lines are set to the values stored in configuration #1. These values are as
follows:
DefDef
ault ault
VV
ault
ault ault
V
VV
aluealue
alue
aluealue
Def
DefDef
Dial tone low tone frequency350 Hz
Dial tone low tone amplitude-13 dBm
Dial tone high tone frequency440 Hz
Dial tone high tone amplitude-13 dBm
Normal dial tone cadencecontinuous
Recall dial tone cadence3 burst .1 sec on/off then steady on
Message Waiting DT cadence10 burst .1 sec on/off then steady on
Confirmation dial tone cadence3 burst .1 sec on/off then steady on
Ringback low tone frequency440 Hz
Ringback low tone amplitude-19 dBm
Ringback high tone frequency480 Hz
Ringback high tone amplitude-19 dBm
Busy low tone frequency480 Hz
Busy low tone amplitude-24 dBm
Busy high tone frequency620 Hz
Busy high tone amplitude-24 dBm
Busy cadence.5 on/off
Reorder low tone frequency480 Hz
Reorder low tone amplitude-24 dBm
Reorder high tone frequency620 Hz
Reorder high tone amplitude-24 dBm
Reorder cadence.25 on/off
Call Waiting frequency 1440 Hz
Call Waiting frequency 2off
Call Waiting tone 1 amplitude-13 dBm
Call Waiting tone 2 amplitudeoff
Call Waiting cadence
Normal.3 sec on
Distinctive.1 on/.1 off/.1 on
Leading blank time50 ms
Trailing blank time50 ms
Call Waiting typesingle tone (normal)
SIT tone frequency 1950 Hz
SIT tone frequency 21400 Hz
DefDef
Def
DefDef
ault ault
ault
ault ault
VV
V
VV
aluealue
alue
aluealue
40-400-00025, Rev. D53
Default Configuration
SIT tone frequency 31800 Hz
SIT tone amplitude 1-24 dBm
SIT tone amplitude 2-24 dBm
SIT tone amplitude 3-24 dBm
SIT cadencein order: 950 Hz, 1400 Hz, 1800 Hz @ 330 ms each
CAS low tone frequency2130 Hz
CAS low tone amplitude-15 dBm
CAS high tone frequency2750 Hz
CAS high tone amplitude-15 dBm
CAS cadencesingle burst, 80 ms
CAS wait for acknowledge160 ms
Special test frequency 11004 Hz
Special test frequency 2off
Special test amplitude 1-10 dBm
Special test amplitude 2off
FSK frequencylow tone frequency, 1200 Hz
high tone frequency, 2200 Hz
FSK amplitude-15 dBm per tone
Ring generator frequency20 Hz
Ring generator amplitude80 V RMS
Line impedance, all lines900Ω
On-hook timer, lines connected1.115 sec
On-hook timer, lines not connected.34 sec
Off-hook timer.1 sec
Hook-flash timer
minimum.300 sec
maximum1.1 sec
Monitor Port Accessdisabled
Audio Attenuation per line10 dB
DefDef
ault ault
Def
ault
DefDef
ault ault
Audio Messages
1 (Response to invalid)“The number you have dialed....” , repeat disabled
2 (Audio on disconnect)“Please hang-up”, repeat disabled