EasyManua.ls Logo

Ericsson MC 218 - 13 Serial Terminal Support, Comms; How Script Commands Are Used

Ericsson MC 218
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
81
 6HULDO7HUPLQDO6XSSRUW&RPPV
Basic serial terminal support is provided by the EPOC Comms application. It is split into an
engine and an application.
The application uses EIKON’s console support to display the emulator.
The engine supports login scripting, XMODEM and YMODEM file transfer, and emulation of
TTY and VT100 terminals.
The language used in scripts is made up of commands, which are very similar to ordinary English
words. This section provides an introduction to some important aspects of the scripting language.
The following section then guides you through all the script commands.
13.1 How script commands are used
A short script might look like this:
STATUS “Uploading test file”
UPLOAD “C:\Documents\anyfile”, “Xmodem”
EXIT
This script uses three commands: STATUS, which displays an information message in the bar at
the bottom of the screen; UPLOAD, which sends a file to the remote machine, and EXIT, which
stops the script running, returning control to the Terminal emulation screen.
Commands can be entered in upper or lower case, or a mixture of both.
To combine more than one command on a line, separate them with a colon, e.g.
INFO “Receiving test transmission” : DOWNLOAD “C:\Temp\trashfile” ,
“XModem” : EXIT
The total length of a line must not exceed 255 characters.
Note: In general, scripts should finish with a carriage return (i.e. ensure that there is an extra
blank line at the end).
13.1.1Labels
Scripts are split up into sections marked by “labels”. A label, e.g. ‘mylabel:’ denotes the start of a
section of script. Use labels to split up scripts into manageable sections, and to enable the script to
jump directly to a given area by using the GOTO command. E.g., in the script
GOTO mylabel
STATUS “Didn’t jump to mylabel”
mylabel:
STATUS “Jumped to mylabel”
The first status message is never displayed, since the GOTO command jumps straight to
‘mylabel:’
Note: To learn how to repeat the instructions given in a label a specific number of times, see the
sections on the SET and
REPEAT…UNTIL commands in the glossary of commands later.
13.1.2 End-commands
Some commands, e.g. SETUP, IF and QUERY, require an “end-command” to tell the machine
that the instructions they refer to are finished. E.g.
SETUP
BAUD=57600
PARITY=Even
HANDSHAKE=XONXOFF
ENDSETUP

Other manuals for Ericsson MC 218