[Previous] [No next] [Title]

5 Equipment and communications


Some of the practical problems facing a user of an information retrieval system.

This chapter introduces the equipment and data communications concepts involved in searching a remote database system. A summary of the instructions for all of the retrieval systems discussed later in the Handbook, is also provided.

In order to communicate with (`talk to') a remote computer system, you will need a terminal or computer and suitable communications software.

Terminals vs microcomputers

The user's first requirement is a terminal or microcomputer. The differences between the two are:

(i) A terminal has a display screen and a keyboard, but is not a separate computer in its own right. Its purpose is to be attached to another computer (in our case the host computer), and to use the processor of that computer. A microcomputer has its own processor, as well as a display terminal and keyboard, and is intended for use as a `stand alone' computer. A microcomputer is also capable of acting as a terminal to another computer, in which case it uses the processor of the other computer to carry out searches. A terminal does have its own simple processor, but not one which is intended to allow it to be used as a computer in its own right.

(ii) Terminals do not have disk drives or other information storage devices, whereas microcomputers do. One advantage of a microcomputer for information retrieval is that the user can save every word which appears on the screen during a search onto a disk (subject to copyright considerations). The search can later be reviewed on screen using a word processing program or some other editing program, and then stored away on disk for future reference if necessary. Parts of the search, for example a quotation from a case, or a new section of an Act, can be moved electronically from the saved search to a letter of advice or some other legal document being prepared using the word processor. With a terminal, all you can do is view the search on screen as it happens, or print it on paper at the time of the search, but there is no disk drive for it to be saved on disk for later manipulation. Although some terminals allow for the attachment of printers, it is likely that this will lead to a slowing down of communications and thus lead to longer connection times and higher searching charges. Terminals limit severely the uses that can be made of information retrieval services.

(iii) One advantage of `dumb' terminals is that they usually have a communications program built into the terminal, so there is no need to obtain one separately (see below). Microcomputers usually require a separate communications program, but there are many of these available (eg Crosstalk, MacTerminal) and some are in the public domain (eg Kermit, Xmodem).

(iv) Both terminals and microcomputers can have special keys (function keys, usually numbered F1, F2 etc) which can be pre-programmed to carry out certain parts of a search, such as automatically dialling the correct number, entering the user's identification and exiting the search. However, a microcomputer can also run an interface program, if one is available from a system operator, which can change how the remote system appears to the microcomputer user, making it more `user friendly', and making searching easier and more efficient. The LEXIS communications software for the Macintosh is a good example.

The CLIRS `standard package' includes a terminal, not a microcomputer. It has pre-programmed function keys to simplify CLIRS access and exit (see CLIRS User Manual - 3(1) Equipment Set Up).

Communications programs

If you are using a microcomputer, you need to obtain a program which will allow your computer to communicate with other computers, and which makes the computer behave as if it were a terminal. Such programs allow you to specify such matters as the bps speed at which you wish to communicate, to instruct the modem to dial a telephone number, to instruct your computer to save the search onto a disk, or to print it, and numerous other matters. If you have a terminal, a simple form of such a program is built into the terminal.

Some database vendors supply specialised packages which offer increased functionality over traditional terminals. For example, LEXIS offers software for the IBM PC/XT/AT and the Apple Macintosh, which provides a user friendly front end to their database system, allowing the user to use function keys, or a mouse and pull down menus. For a few systems, such as the Australian Patents Office system, the only way to access the system is via such specialised communications software.

Terminal Types

A terminal, or communications program emulating a terminal, may respond to special sequences of characters (`terminal escape sequences', so called because they generally start with the escape character) to do such things as turning highlighting on and off, clearing the screen and moving the cursor. Unfortunately, there is no widely accepted standard for these commands, although some manufacturers provide emulation of other terminal types. Common terminal types include DEC's VT100, the ANSI standard, Televideo (TVI) and ADM3A.

Most on-line systems will ask you which type of terminal you are using when you first log on. If you are in doubt, say that you are using a dumb or TTY terminal. This instructs the host that your terminal doesn't understand any commands.

Printers

If you only have a terminal, you must have the search print out while you do it. Printing on your own printer is called on-line or local printing. If you have a microcomputer, you have the choice of printing the search while it occurs, which may slow the search down, depending on the speed of your printer, or of saving the search to disk and printing it later.

If you don't have a printer, it is possible to have the search (or some part of it) printed out on printers controlled by the system operator (eg CLIRS or LEXIS), and then mailed to you. This is called off-line or remote printing, and is discussed in Tutorial 12.

Modems

Information travels back and forth between the host computer and your terminal or microcomputer through the normal public telephone system. Your terminal / microcomputer is usually connected to a normal telephone wall socket by a device called a modem.

The main purpose of a modem is to convert the information sent out in digital (or binary) form by a computer into information in analog form, and vice versa. This two-way conversion is called modulation and de-modulation, from which `modem' is derived. The binary or two value form of representation has been discussed in Chapter 3. Analog form allows representation of information by continuously variable values, such as a wave. This conversion is necessary because, while computers can only process information in digital form, normal telephone lines can only transmit information in analog form, because that is the form in which information is transmitted by the human voice.

Two modems are therefore necessary, one connected to the host computer, and one to the terminal, as in the illustration below.

Data communications using a modem

The two modems must be able to operate at the same speed of data transfer, which is measured in bits per second (bps). The most common speeds are 300 bps in both directions (`full duplex'), 1200 bps full duplex, and 1200/75, which means 1200 bps for information sent from the host computer, but only 75 bps for information sent from the terminal. Speeds of 2400 bps and up are possible, but normal telephone lines may not be able to cope with them. Bps speeds are also referred to as `baud rates'.

Physically, a modem may be an external box, a plug in board or even a built in function of a terminal or computer. Where the modem is external, it is generally connected by a piece of multi-core cable. There are several standards as to the wiring of this cable. The most commonly used standard, as far as we are concerned, is RS-232. The modem may be attached to the telephone line directly (via a standard Telecom plug) or by means of two rubber acoustic cups which attach to a telephone handset (an acoustic coupler).

Some large firms of solicitors or Government Departments may have a direct cable connecting their computer system to the host computer, by-passing the normal telephone system. This is called a leased line.

Depending on where you are dialling the host computer from, you may not be able to make a local call to do so. There is no need to make an expensive STD call, because of the existence of a service called AUSTPAC, which is Australia's packet switching network. Depending on the speed of your modem, there is one number which can be dialed from anywhere in Australia to connect to a service such as CLIRS.

Intelligent and manual modems

Modems, may be manual or intelligent. The main distinction between these two broad classes of modem, is that whereas an intelligent modem is capable of automatically dialing phone numbers, connecting to remote systems, answering incoming calls and so on, such tasks must be done by the user with manual models.

Manual Modems

To use a manual modem, the following steps should be followed:

1. Set up the appropriate communications parameters (that is the bps, parity and so forth as discussed below) using switches on the modem itself. Make sure that the terminal or communications program is similarly set up. The answer/originate switch should generally be set to originate. The on-line/off-line switch (sometimes also labeled phone/modem) should be set to the off-line (phone) position.

2. Manually dial the number of the service you wish to use and wait for the phone to answer with a high pitched squeal.

3. Switch the on-line/off-line switch to 'on-line'. You should now be connected.

Intelligent Modems

Intelligent or smart modems have their own command language. Rather than setting physical switches on the modem, commands are sent to the modem from the computer, instructing it to select appropriate communications parameters, dial a phone number and connect to another system. Most modems now use a standard set of commands originally used by the American manufacturer, Hayes. Such modems are said to be `Hayes compatible'.

Intelligent modems operate in two modes: command mode and on-line mode. When in command mode the modem will respond to commands.

Some useful commands, for use with a Hayes compatible modem are:

ATDno. Dial the specified phone number and when the remote system answers, connect and go on-line. You may force either pulse or tone dialing by appending the letters P or T to the ATD sequence (that is - ATDP or ATDT).

Delays may be specified in the dialing process (such as may be necessary for some PABX exchanges) by placing commas in the number. For example, if you need to dial zero to get out an appropriate sequence to dial CLIRS might be atd0,,2125166.

ADBn Manually select the bps. Many modems will set this automatically. If you are having problems getting the modem to connect, try setting this to 3 for V21, 5 for V23, 6 for V22 or 8 for V22bis. This may not function correctly on all modems.

ATH Hang up the line. This is similar to placing the phone back on the hook.

ATZ Reset the modem. Use this if the modem does not appear to be working correctly.

AT&F Reset the modem to factory defaults. This does a complete reset of the modem back to the state in which it was originally set up by the manufacturer. Try this if all else fails.

Most communications programs will issue these sequences automatically. If yours does not, or if you are using a terminal, type atd followed by the phone number, to dial and connect.

When in on-line mode, the modem will not respond to such commands. There is generally an escape sequence to return to command mode. If you are using a Hayes compatible modem, for example, the sequence is `+++' by default.

Some modems tend to get confused as to which mode they are supposed to be in. This is particularly true of some of the cheaper brands. If you cannot get the modem to do anything, first try resetting it via the manual reset switch (if available) and then if you are still having problems, try turning it off and on.

Speed

It is possible to communicate with remote systems at different speeds. These speeds are usually expressed in terms of the number of bits of information transferred per second (bps or baud). Commonly available rates for telephone communications are 300, 1200, 1200/75 and 2400 bps. Where dedicated lines are used, higher speeds are possible due to greater line quality, and typical rates are 4800, 9600, 19200 and above.

Obviously when a terminal or computer is talking to another computer, both must generally communicate at the same speed. (One exception to this, is the standard 1200/75 rate where data is sent to the remote at 75 bps and received at 1200 bps). A given modem will allow for communications only at a set of predefined rates.

Duplex

Communications may be either full or half duplex. Full duplex mode allows for simultaneous two way flow of data over the same line. You can send data to the host at the same time as you are receiving from the host. In full duplex mode, all characters typed are generally echoed by the remote system. That is, when you type a character, it is sent down the line to the remote system and then sent back and displayed on your screen.

In half duplex mode, data may only flow in one direction at any given time. So that you can see what you type, typed characters are echoed on your screen by your own local machine.

The CCITT Standard

There are two main speed standards - CCITT, which is used primarily in Australia and the UK, and BELL which is used mainly in the USA. For practical purposes, you only need worry about about the CCITT standard in Australia. The names assigned to the various rates are as follows:

V21

300 bps
(full duplex)
V23
1200/75
(half duplex)
V22bis
2400
(full duplex)
V22
1200
(full duplex)

Some intelligent modems automatically match the bps rate of the calling modem to that of the remote system. In other cases, it may be necessary to manually select the appropriate rate either by issuing a command sequence (eg atb6) or manually changing a switch on the modem. Note that in either case, it is still necessary to tell the terminal itself (or communications software) which speed you are using.

Character Protocol

Apart from the speed and duplex settings, there are three more parameters which need to be borne in mind.

During interactive asynchronous communications between two computer systems, characters are generally sent as collections of words. Each word will start with a start bit, then contain 8 bits for the character itself (possibly including a parity bit), and finally, one or more stop bits. Diagramatically, each word has the following format:

There will always be one start bit. The number and function of the remaining bits depends upon the protocol settings. One of the data bits (P) can also be used be used the parity bit, as explained below.

Data Bits

The number of data bits will always be either 7 or 8. Seven bits is sufficient to represent any of the standard ASCII characters (that is - letters, digits, punctuation symbols and so on). Where 8 bits are used no parity checking is possible.

Parity

Where only seven bits are used, the remaining bit may be used for parity checking. By using parity checking the receiving computer can verify that the character has been sent properly and that the data bits have not been scrambled.

Parity checking may be either odd or even. The eighth bit will be set to ensure that the total number of 1 bits is either odd or even respectively.

Stop Bits

Although the number of stop bits is arbitrary, in almost all cases there will be one stop bit.

Putting it all Together

From the above discussion, it is apparent that, in order to connect to a remote system, you need the following information (apart from the phone number and/or network address):

BPS Rate:

300 (V21), 1200 (V22), 1200/75 (V23) or 2400 (V22bis)
Duplex:
Full or Half
Data Bits:
7 or 8
Parity:
None, Even or Odd
Stop Bits:
1 or 2

The CCITT specified bps rates are all full duplex other than 1200/75 which is half duplex. Thus, unless you are using 1200/75 (V23) you should set your terminal or communications software to use full duplex.

Very few systems use odd parity. Generally, you should set the data bits/parity settings to either 8 bit no parity or 7 bit even parity.

Unless you are told otherwise, always set the number of stop bits to one.

Is it likely that any system will use 8 bit even parity ? Why ?

Where you are using a terminal, you should set up these parameters by either hitting the SETUP button (if present) or by changing physical switches on the back. Where you are using a computer, the communications software will make provision for you to change them.

Such software may also allow you to save such settings and automate the log on process. You should consult the manual for your software for further details.

Packet Switching Networks

When communicating over long distances, the costs involved and problems with line quality make the use of the standard voice telephone network unattractive. The alternative is to use a facility set up specifically for computer communications called a packet switching network. A packet switching network allows for many users to use a single line, by dividing their data into packets of characters and sending them in mixed fashion. At the destination point, the packets are unscrambled and sent to the appropriate host computer. From the users point of view, this process is quite transparent and for practical purposes, simply provides a cheaper and more reliable means of communication.

In Australia there are two available networks: AUSTPAC which is run by Telecom for accessing systems within Australia and OTC's Data Access service for overseas telecommunications.

You can dial up either of these systems in much the same way that you would call a conventional dial up host. You then enter the destination network address and are connected through. Of course OTC and Telecom do not provide these services free of charge. In some cases, however, the database vendor may pick up the bill. Where this is not the case, you must have a separate account with OTC and/or Telecom and a corresponding combined login name and password called a Network User Identifier or NUI.

OTC Data Access

For normal interactive use the OTC Data Access number is (02) 2 0991.

Use the same number for all the CCITT standard bps rates. When the phone answers, the answering modem will cycle through the available rates to match the incoming call.

After calling OTC Data Access, you will receive the following message:

Welcome to OTC Data Access
Please log in
24817
*

In response to the star prompt, you should then type:

NNUI -Address

where NUI is your OTC Data Access Network User Identifier and Address is the network address for the target host system. The network address may be the full host address number or a dot followed by an abbreviated address. For example to if your NUI was abc1234 you could connect to LEXIS by typing:

Nabc1234-0311051300030

or Nabc1234-.LEXI

If the connection is successful you will then receive a message giving the local date and time, the call identification number, and the host address. This will be followed by the word COM to indicate that you are connected to the host. For example:

07-MAR-88 15:23:11
CID: 25381
311051300030
COM

If the connection fails you will get the message CLR followed by an error code. Try again as above. When you log out from the host you will get a message:

07-MAR-88 15:25:11
YOUR CALL HAS BEEN CLEARED
YOU MAY PLACE ANOTHER CALL
AT THE ASTERIX PROMPT.
24817
CALL STATISTICS
CID: 25381
DUR: 00 DAYS, 00 HRS, 02MINS, 00 SEC
SEGS TX: 00021
CLR CONF
*

You may then either call another system or hang up the line.

AUSTPAC

The telephone numbers for Telecom's AUSTPAC service are -- 01921 (V21), 01922 (V22), 01923 (V23), 01924 (V22bis).

You can use AUSTPAC to connect to various Australian systems. There is also an automated link through to OTC Data Access, so that you can call overseas systems in exactly the same fashion as for Australian systems.

To connect to a system such as CLIRS where no personal NUI is required simply type a question mark followed by the network address of the host as in:

?222130013

To connect to a system where a personal NUI is required type a question mark then proceed as for OTC as in ?NNUI-12345678.

If the connection is successful, you will get the message COM and you will be connected to the host. If the connection fails you will get a CLR message.


[Previous] [No next] [Title]