A modem script is a set of instructions that tells a computer how to interact with a modem so that calls can be initiated and received. To establish a connection, a script typically configures and then connects the modem. To terminate a connection, the script disconnects the modem by hanging up and then restores the modem settings that were in effect before the call.
Each type of modem used with Apple Remote Access requires a modem script. Many scripts are provided with Apple Remote Access (see “Available Modem Scripts” in the Preface of this book for more information).
If no script is provided for your modem, you must write one using Communication Command Language (CCL), a programming language that configures and controls your modem. This chapter describes the basic elements and structure of a CCL file.
The following sections describe CCL script conventions for
m instructions
m comments
m capitalization
m labels
m script resources
m string formats
m variable strings (varStrings)
m match strings
m script size
Instructions
Each line of CCL code consists of one instruction that is made up of a command and its parameters, if any. Modem commands are used as parameters of CCL commands. For example, the command write “ATDT^1\13″
includes the following:
write
a CCL command
ATDT
a modem command
^1\13
a modem command parameter
This command tells the CCL interpreter to send to the modem the modem command ATDT followed by variable string 1, and a carriage return (ASCII code 13). The CCL interpreter reads scripts from left to right and from top to bottom. It reads straight through, from beginning to end, unless you tell it otherwise (for example, by using the JUMP command).
Download pdf Apple Remote Access modem script basics
Related Searches: ccl commands, modem scripts, modem command, modem script, modem commands
RSS feed for comments on this post · TrackBack URI
Leave a reply