home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / MNMAR19.ZIP / BUZZP3 < prev    next >
Encoding:
Text File  |  1991-02-18  |  12.5 KB  |  286 lines

  1.  
  2.  
  3.  
  4.  
  5. ┬─┬─────┐
  6. │ │     │
  7. │ ├─────┘ ┌┬──┐ ┬┬──┐ ┌─┬┬─┐    ┌──┬┐
  8. │ │       │├──┤ │├─┬┘   ││       ──┤│
  9. ┴─┴       ┴┴  ┴ ┴┴ ┴─   ┴┴      └──┴┘ o o o
  10. ┌─┬─────┐
  11. │ │
  12. │ │       ┌┬──┐ ┌┬─┬─┐ ┌┬─┬─┐ ┬┬  ┬ ┌┬─┐ ┬ ┬┬ ┌┬──┐ ┌┬──┐ ┌─┬┬─┐ ┬┬ ┌┬──┐ ┌┬─┐ ┬
  13. │ │       ││  │ ││ │ │ ││ │ │ ││  │ ││ │ │ ││ ││    │├──┤   ││   ││ ││  │ ││ │ │
  14. └─┴─────┘ └┴──┘ ┴┴ ┴ ┴ ┴┴ ┴ ┴ └┴──┘ ┴┴ └─┘ ┴┴ └┴──┘ ┴┴  ┴   ┴┴   ┴┴ └┴──┘ ┴┴ └─┘
  15. ┌───┬─┬───┐
  16.     │ │
  17.     │ │     ┬┬──┐ ┌┬──┐ ┬┬  ┬ ┌┬─┐ ┬ ┌┬──┐ ┬┬─   ┌┬──┐ ┌┬─── ┬  ┬┬
  18.     │ │     │├─   ││    │├──┤ ││ │ │ ││  │ ││    ││  │ ││ ┌┐ └──┤│
  19.     ┴─┴     ┴┴──┘ └┴──┘ ┴┴  ┴ ┴┴ └─┘ └┴──┘ ┴┴──┘ └┴──┘ └┴──┘ └──┴┘
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Of Bits and Parity... --------------------- In parts 1 and 2, we took a closer
  32. look at the most common and often least understood terms and standards in the
  33. world of the modems we use. There are, however, several other telecommunica-
  34. tions terms that can be confusing. Though they don't necessarily relate to
  35. modem-buying decisions specifically, understanding these terms can add impor-
  36. tant additional power to your communications dealings. They also will help you
  37. understand how to set up the terminal programs your users will have to config-
  38. ure to call your TBBS system. Among the most commonly faced (and least under-
  39. stood) are the concepts of Data Bits, Parity, and Stop Bits.
  40.  
  41. Data Bits --------- The American Standard Code for Information Interchange -
  42. ASCII - is a standard that defines 128 different characters that can be used
  43. for data transmission. These include control characters, letters of the
  44. alphabet (in both upper and lower case), numbers, and a full set of punctuation
  45. characters. Because there are only 128 ASCII characters, only 7 binary digits
  46. (bits) are required to form each of the 128 possibilities.
  47.  
  48.  
  49.  
  50.  
  51.  
  52. Many computer makers have extended the ASCII character set by adding 128 more
  53. characters. This was accomplished by simply adding one more binary digit,
  54. resulting in a total of 256 transmittable data characters. Each manufacturer,
  55. however, created their own set of 128 additional characters. All extended
  56. character sets are NOT the same.
  57.  
  58. In the case of the IBM PC and compatibles, the extended characters include
  59. international alphabet, graphics and mathematics characters. These are commonly
  60. known as IBM Graphics characters.
  61.  
  62. In communications, common settings are either for 7-bit or 8-bit data. General-
  63. ly, both ends of the connection must be set the same way. If one end is set to
  64. 7-bit data and the other end is set to 8-bit data, reliable communication
  65. cannot usually be established. This is because one end interprets the 8th data
  66. bit as a parity bit (explained in a moment), and the other end tries to
  67. interpret it as a part of the current character. On a connection like this,
  68. some characters will display properly, while others will appear as "garbage,"
  69. depending on which direction the data is traveling.
  70.  
  71.  
  72.  
  73.  
  74.  
  75. If the communications link is set to transmit only 7-bit data, the sendable
  76. characters are limited to the 128 defined ASCII characters. The extended
  77. character set, such as the PC's single- and double-line boxes and foreign
  78. characters, CANNOT be sent unless the link is first set to allow the transmis-
  79. sion of 8-bit data.
  80.  
  81. Some systems have even 5-bit and 6-bit data, and use character sets such as
  82. Baudot and Selectric, but these systems are uncommon today.
  83.  
  84. Parity Bit ---------- When you establish communications with another computer,
  85. parity is set to "even," "odd," "mark," "space" or "none." These are terms for
  86. the manner in which the parity bit is interpreted by the receiver.
  87.  
  88. Parity is a primitive form of error-checking. The state of the parity bit, when
  89. set to be even or odd, is based on a simple mathematical formula. Depending on
  90. the data bits, the parity bit will either be on or off. Normally, the limited
  91. error checking capabilities are not utilized. This explains why the setting of
  92. parity to "none" is so common in communications today. This allows the parity
  93. bit to be used as a normal data bit instead.
  94.  
  95.  
  96.  
  97.  
  98.  
  99. Start and Stop Bits ------------------- Start and stop bits allow each charac-
  100. ter sent to be set in a "frame." The beginning of the character, the first part
  101. sent, is the start bit, and the end of the character, the last part sent, is
  102. the stop bit. Each character sent is thus framed with a distinct beginning and
  103. ending bit and this allows the receiving system to know when each complete
  104. character has been sent.
  105.  
  106. There is always just one start bit. However, there may be one, one and a half
  107. or two stop bits.
  108.  
  109. Stop bit length used to be critical when serial communication was primarily
  110. handled with electromechanical equipment, such as an old-fashioned Teletype
  111. machine. The print head in this type of equipment took a fixed amount of time
  112. to return to its "home" position, and this was accomplished during the sending
  113. of the stop bits. A longer stop bit length gave the print head more time to
  114. return to its home position.
  115.  
  116. In modern all-electronic serial communication, the stop bit is still necessary,
  117. but only to mark the end of a character. A delay isn't necessary as there isn't
  118. usually anything mechanical involved.
  119.  
  120.  
  121.  
  122.  
  123. Asynchronous Communications --------------------------- Framing the character
  124. with start and stop bits forms the basis for "asynchronous" communications. In
  125. asynchronous transmission, characters do not have to flow constantly - there
  126. can be "gaps," or spaces, between each character. The receiver knows when a
  127. character is sent by the framed nature of asynchronous transmission - the start
  128. and stop points can easily be determined.
  129.  
  130. Synchronous Communications -------------------------- An alternate serial
  131. transmission method exists known as synchronous communications. It occurs when
  132. there are no start or stop bits, and is possible only if data characters flow
  133. constantly at a fixed bit rate with no interruptions. When there is no data to
  134. send, idle or padding characters are sent at the fixed rate (to keep data bits
  135. flowing constantly), but they are discarded by the receiver.
  136.  
  137. Because there are no start or stop bits, it is possible to remove 2 of every 10
  138. bits used in Asynchronous communications. This results in a 20% faster data
  139. speed with the same serial bit rate.  However, because of the requirement for
  140. constant data flow, Synchronous transmission requires additional protocol and
  141. is primarily used in mainframe computer or specialized applications.
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149. One place it is used with TBBS is hidden inside of high speed modems. When
  150. these modems use MNP or V.42 protocols, they have the needed protocol to use
  151. synchronous communications between the modems themselves. However, you still
  152. use asynchronous communications between the computer and the modem so this
  153. instance of hidden synchronous communications is primarily of interest as
  154. trivia.
  155.  
  156. Duplex ------ "Duplex" is a term which refers to whether a data communications
  157. path is one- way or two-way. "Full duplex" means that data can flow in both
  158. directions at the same time. "Half duplex" means that data can flow in only one
  159. direction at one time. Most modems are full duplex, but communications software
  160. can most often still be set to take advantage of half duplex connections.
  161.  
  162. Some less expensive high speed (9600+ bps) modems are pseudo- full-duplex. This
  163. means they cannot transmit data at high speed in both directions at the same
  164. time because they are really operating in a fast turn-around half duplex mode
  165. internally.
  166.  
  167.  
  168.  
  169.  
  170. Flow Control ------------ The term "flow control" refers to a method of
  171. controlling the flow of transmitted data, so it doesn't "overrun" the data
  172. receiver's ability to receive the incoming signals. Flow control allows the
  173. receiver to signal the transmitter to pause, while recently received data is
  174. properly assimilated, then signal it to restart the data flow when it's ready
  175. to receive more.
  176.  
  177. There are generally two forms of flow control - software and hardware.
  178.  
  179. RTS/CTS ------- Hardware flow control is not always required. It is generally
  180. needed only with modems that are capable of "buffering" out-going data, or with
  181. high speed modems. Hardware flow control, called RTS/CTS flow control, uses two
  182. of the RS-232 (serial) pins to start and stop the data flow. Its advantage is
  183. that it is data independent and thus can be used for reliable flow control with
  184. any type of data stream.
  185.  
  186. X-ON/X-OFF ---------- Software flow control, called XON/XOFF flow control,
  187. starts and stops the data flow based on the reception of certain control
  188. characters. Although this type of flow control can be used by hardware devices,
  189. software flow control is usually used with TBBS, to allow the TBBS user to
  190. start and stop data transmission by using control keys. This allows the user to
  191. press Ctrl-S at any time to temporarily halt data flow, and then press Ctrl-Q
  192. at any time to restart data flow. 
  193.  
  194.  
  195.  
  196.  
  197. Even when hardware flow control is in use, TBBS will honor software flow
  198. control codes to start and stop the flow of text data displays.
  199.  
  200. What is ANSI? ------------- "ANSI" is a common term in the bulletin board
  201. community today, but it's also a term that's usually misused.
  202.  
  203. ANSI stands for the American National Standards Institute, a standards develop-
  204. ment organization (sort of like the CCITT, which I discussed in my last
  205. column). ANSI develops and documents standards for thousands of different
  206. areas, from architectural specifications for the handicapped to computer
  207. programming languages.
  208.  
  209. Within the bulletin board community, the term "ANSI" generally refers to an
  210. ANSI standard called X3.64 as implemented by IBM in ANSI.SYS. The ANSI X3.64
  211. standard specifies a series of codes that a host system can send to a remote
  212. data terminal to control color attributes, cursor positioning, inverse video
  213. and screen clearing on the terminal display. 
  214.  
  215.  
  216.  
  217.  
  218.  
  219. "ANSI Graphics" is a term that is often used in the bulletin board community,
  220. but this actually refers to two separate elements. "ANSI" controls color and
  221. cursor positioning, while "Graphics" usually refers to characters in the IBM PC
  222. extended character set, such single- and double-line boxes, shading characters,
  223. and so on. "ANSI Graphics" is a common term, since normally only an IBM PC is
  224. capable of handling both ANSI and Graphics. In reality, many data terminals and
  225. software packages for various computers are capable of handling ANSI codes,
  226. although they may not always handle the IBM extended characters.
  227.  
  228. Actually, "ANSI Graphics" does NOT refer to a standard for displaying pictures
  229. or graphic images on the remote terminal.
  230.  
  231. The VT-100 terminal (a data terminal from Digital Electronics Corporation) and
  232. software that emulates a VT-100 terminal can also be used with ANSI escape
  233. codes, since the codes for both ANSI and VT-100 are very similar.
  234.  
  235. ANSI works by sending a series of characters to the remote terminal. The codes
  236. all begin with an escape character and a left bracket, and are followed by a
  237. variable quantity of numbers and letters. The terminal understands the meaning
  238. of these codes, and acts accordingly by setting screen colors or moving the
  239. cursor.
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247. Graphics -------- Graphics, as I mentioned previously, are the characters in
  248. the IBM PC extended character set. They are characters beyond the original 127
  249. possible ASCII characters as defined by IBM in all of their display adapters.
  250. These include single- and double-line boxes, shading characters, international
  251. characters and mathematical symbols.
  252.  
  253. IBM Graphics characters have become enough of a de-facto standard, that many
  254. other computers now emulate them. Many terminal programs on the Apple Macintosh
  255. computer will allow proper display of the IBM graphics character set, as will
  256. many of the true display terminals on the market today.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.                                    Summary 
  273.  
  274. That pretty well covers most of the common modem and telecommunications 
  275. program terms and standards in use today. I hope this series of articles has 
  276. made you better able to understand the seemingly endless number of buzz words 
  277. you find in microcomputer communications. You should now be able to 
  278. understand better why terminal programs must be configured to operate correct
  279. ly. You also should be able (with information from the first two parts of 
  280. this series) to better choose the type of modem you need to meet your 
  281. applications. I hope you'll let us know if you have any questions or need 
  282. further help understanding anything that I've already discussed. It's been 
  283. fun... 
  284.  
  285. Press the ENTER key to continue...                                   <TOC>
  286.