Serial Communication

Nowadays, servers are often located in data centers, where they can be remotely accessed by both end-users and system administrators. The servers themselves are usually supplied “headless,” which means that instead of having a graphics console (and associated keyboard), they are configured with a dumb terminal that connects via the serial port.

A modem may also be connected to provide access to the machine in the event of a network failure. Again, this will probably be via a serial port.

Although we'll only look at terminals and modems here, serial connectivity is used to control many other types of devices, including printers and digital cameras. The devices we'll describe use the RS-232 specification (officially known as TIA/EIA-232), which has been around for some time now. Sun serial ports support both this and its counterpart, RS-423, although you will need to check the hardware manual for any required jumper configurations.

Serial devices communicate by sending data one bit after another. At first glance, this seems a relatively easy task—just connect a few wires between the machines and start sending and receiving data. In practice, though, things are more complicated. For example, we need to be sure that the data is transmitted correctly, without any errors. The RS-232 specification achieves this by defining additional wires that are used for control and timing signals.

Table 14.1 shows the general RS-232 definition, although not all the signals are needed for every case, as we'll see later.

Table 14.1. RS-232 Signals
PinSignalCommon Symbol
1Frame GroundFG
2Transmitted DataTD
3Received DataRD
4Request to SendRTS
5Clear to SendCTS
6Data Set ReadyDSR
7Signal GroundGND
8Carrier DetectDCD
9Reserved for Testing 
10Reserved for Testing 
11Unassigned 
12Secondary Carrier DetectSDCD
13Secondary Clear to SendSCTS
14Secondary TransmitSTD
15Transmitter Signal Timing (DCE)TC
16Secondary ReceiveSRD
17Receiver Signal TimingRC
18Local Loopback 
19Secondary Request to SendSRTS
20Data Terminal ReadyDTR
21Signal Quality DetectSQ
22Ring IndicatorRI
23Data Signal Rate SelectorDRS
24Transmitter Signal Timing (DTE)SCTE
25Test ModeBUSY

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset