Nokia 3.1 21.04.99 Cell Phone User Manual


 
SETTING UP DIAL-IN SYSTEM 6 (16)
Mobile Phones
3.1 21.04.99
Copyright©Nokia Mobile Phones 1999
where the "Password:" is what the server sends and "MyPassword" is what the user is supposed to input.
Unless the string which the communicator sends ends with /c, a carriage return character (ASCII 0x0d) is sent
after the string. If words contain spaces, they must be surrounded by "" quotation marks, e.g. "This word contains
spaces". There must not be any characters outside of the quotation marks.
Chat scripts are:
expect send
expect send...
where the communicator expects something from the dial-in server and after the server has sent something the
communicator sends something back.
or
expect1-send1-expect2 send2...
where if the "expect1" does not come from the server in TOUT (time out) time, "send1" is sent to the server. Then
the script waits for the "expect2" from the server, when that is received "send2" is sent. If "expect1" does come
then "send2" is sent. In the example scripts, case 2 and 3, these type of script conversations are used.
3.3. Script Features
Comments begin with the number sign (#), extend to the end of the line, and are ignored during script execution.
Scripts are case-sensitive and do not have a specified maximum length.
Because of some possible problems there are two words which define the behaviour of the script in problem
situations. ABT, the abort-string expects certain words coming from the server which would lead to abort the
connection. Such strings may be: NO CARRIER or BUSY. The ABT word has to be placed to "expect" part of the
script. If abort-string is seen in the incoming stream while executing the remainder of the chat script, the dialling
attempt is aborted and user receives an error note.
The other word is TOUT, timeout-time. While executing the current chat script, the communicator waits timeout-
time seconds for an expected response, before regarding the dialling attempt as failed. If no timeout-time is given
in the script, the default read timeout of 45 seconds is used.
There are two embedded programs which can be used in the scripts, "ask" and "askq". The percent character (%),
surrounds the name of an embedded program that is to be run before proceeding.
Program Description
ask(<text>) Shows user a text input dialog with title given in the paranthesis. Entered
characters are echoed normally. When the OK button is pressed, dialog is
dismissed and the entered text is sent onwards.
askq(<text>)
Same as ask(), but entered characters are echoed with asterisk characters ("*").
When the program has run the input will be sent to the dial-in server. "Ask" can be used when requesting for a
username and "askq" when requesting for a password.
Time spent waiting for user input in ask() and askq() does not count towards expector sendtime-outs. If the
user doesn't dismiss the input dialog set up by ask() or askq() during the user timeout of 4 minutes, the operation
is continued as if the user has dismissed the dialog.