HP C3916A HP LaserJet 5, 5M, and 5N Printer - User's Guide - Page 189

Serial Communication

Page 189 highlights

E Serial Pin-out and Cabling Configuration Serial Communication Serial communication is simply the transmission of data one bit at a time. With just one bit to transmit at a time, data can be transferred with a simple electrical circuit consisting of only two wires. In this fashion an eight bit byte is transmitted one bit at a time and the individual bits are reassembled into the original byte on the receiving end. Bit transmission occurs from the least significant bit to the most significant bit. Data Terminal Equipment (DTE) Transmit on pin 2 and receive on pin 3. A printer is typically a DTE device. Data Communications Equipment (DCE) Transmit on pin 3 and receive on pin 2. A modem is typically a DCE device. Asynchronous Communication Asynchronous communication or start/stop transmission is the concept of enclosing a character with a start and stop bit. The RS-232 specification defines the standards for asynchronous serial communication. Parity Parity is a method of error checking in which a bit is added to keep the number of bits in a character even or odd depending upon whether or not even or odd parity is used. HP LaserJet Serial Transmission is asynchronous, with one start bit, eight data bits and one stop bit. Parity is not Data Format used. HP LaserJets are DTE devices. Serial Interface Protocol (handshaking) Handshaking is the method in which the flow of data between two devices is controlled. The two methods of flow control that are used by HP LaserJet printers are software flow control, in which one device controls another by the content of the data and hardware flow control, in which one device can control another by changing the voltage on a wire. Software Flow Control (software handshaking) Xon/Xoff is a data stream handshake protocol which sends Xon (DC1; 11 Hex) to the computer from the printer's transmit data pin when the printer is able to accept data and sends Xoff (DC3; 13 Hex) when the printer is not ready for data. Hardware Flow Control (hardware handshaking) By definition hardware handshaking is performed when two programs manipulate RS-232 control pins-DTR, DSR, RTS, and CTS to achieve a hardware-based form of flow control. In DTR/DSR handshaking, the sender asserts DTR (Data Terminal Ready) before sending the first character in a stream of data and waits for DSR (Data Set Ready) to be asserted in return. RTS/CTS handshaking is similar, but uses the Request To Send and Clear To Send pins rather than Data Terminal Ready. In either case, the sender delays transmitting data until the receiver is ready. EN Serial Pin-out and Cabling Configuration E-1

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208

E
Serial Pin-out and Cabling Configuration
Serial Communication
Serial communication is simply the transmission of data one bit at a time.
With just one bit to transmit at a time, data can be transferred with a simple
electrical circuit consisting of only two wires. In this fashion an eight bit
byte is transmitted one bit at a time and the individual bits are reassembled
into the original byte on the receiving end. Bit transmission occurs from
the least significant bit to the most significant bit.
Data Terminal
Equipment (DTE)
Transmit on pin 2 and receive on pin 3. A printer is typically a DTE device.
Data
Communications
Equipment (DCE)
Transmit on pin 3 and receive on pin 2.
A modem is typically a DCE device.
Asynchronous
Communication
Asynchronous communication or start/stop transmission is the concept of enclosing a character
with a start and stop bit.
The RS-232 specification defines the standards for asynchronous serial
communication.
Parity
Parity is a method of error checking in which a bit is added to keep the number of bits in a
character even or odd depending upon whether or not even or odd parity is used.
HP LaserJet Serial
Data Format
Transmission is asynchronous, with one start bit, eight data bits and one stop bit.
Parity is not
used. HP LaserJets are DTE devices.
Serial Interface
Protocol
(handshaking)
Handshaking is the method in which the flow of data between two devices is controlled.
The two
methods of flow control that are used by HP LaserJet printers are software flow control, in which
one device controls another by the content of the data and hardware flow control, in which one
device can control another by changing the voltage on a wire.
Software Flow
Control (software
handshaking)
Xon/Xoff is a data stream handshake protocol which sends Xon (DC1; 11 Hex) to the computer
from the printer’s transmit data pin when the printer is able to accept data and sends Xoff (DC3; 13
Hex) when the printer is not ready for data.
Hardware Flow
Control (hardware
handshaking)
By definition hardware handshaking is performed when two programs manipulate RS-232 control
pins-DTR, DSR, RTS, and CTS to achieve a hardware-based form of flow control.
In DTR/DSR
handshaking, the sender asserts DTR (Data Terminal Ready) before sending the first character in
a stream of data and waits for DSR (Data Set Ready) to be asserted in return.
RTS/CTS
handshaking is similar, but uses the Request To Send and Clear To Send pins rather than Data
Terminal Ready.
In either case, the sender delays transmitting data until the receiver is ready.
EN
Serial Pin-out and Cabling Configuration
E-1