JPS645498B2 - - Google Patents
Info
- Publication number
- JPS645498B2 JPS645498B2 JP58072466A JP7246683A JPS645498B2 JP S645498 B2 JPS645498 B2 JP S645498B2 JP 58072466 A JP58072466 A JP 58072466A JP 7246683 A JP7246683 A JP 7246683A JP S645498 B2 JPS645498 B2 JP S645498B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- character
- data line
- speed
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L13/00—Details of the apparatus or circuits covered by groups H04L15/00 or H04L17/00
- H04L13/18—Details of the apparatus or circuits covered by groups H04L15/00 or H04L17/00 of receivers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】
(a) 発明の技術分野
本発明は複数種類の通信速度を有するデータ回
線を交換接続するデータ通信システムに係り、特
にデータ回線に到着するデータの通信速度を検出
するデータ回線速度検出方式の改良に関す。[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to a data communication system that exchanges and connects data lines having multiple types of communication speeds, and particularly relates to data communication systems that detect the communication speed of data arriving at the data line. Concerning improvement of line speed detection method.
(b) 技術の背景
例えば50ボー乃至2400ボー等の複数種類の通信
速度を有する調歩同期式データ回線を交換接続す
るデータ通信システムにおいては、交換接続され
た対向データ回線の通信速度を先ず検出する必要
がある。(b) Technical background In a data communication system that connects asynchronous data lines with multiple communication speeds, such as from 50 baud to 2400 baud, the communication speed of the opposite data line that is connected in an exchange is first detected. There is a need.
(c) 従来技術と問題点
従来あるデータ通信システムの一例において
は、前記複数種類の通信速度でそれぞれ作動する
文字組立分解部を各データ回線毎に設け、交換接
続完了後送信側データ回線から最初に伝達される
予め定められた文字データを前記各文字組立分解
部により並列に受信し、所定の文字を検出した文
字組立分解部により通信速度を検出していた。然
しかかる手段によれば各データ通信回線毎に複数
の文字組立分解部を設ける必要があり、当該デー
タ交換システムの経済性を損なう恐れがあり、ま
た受信可能な通信速度も限定される欠点があつ
た。(c) Prior Art and Problems In an example of a conventional data communication system, a character assembly/disassembly unit that operates at each of the plurality of communication speeds is provided for each data line, and after the exchange connection is completed, the first Predetermined character data transmitted to the character assembly/disassembly section is received in parallel by each of the character assembly/disassembly sections, and the communication speed is detected by the character assembly/disassembly section that detects the predetermined character. However, according to such means, it is necessary to provide a plurality of character assembly/disassembly sections for each data communication line, which may impair the economic efficiency of the data exchange system, and has the disadvantage that the communication speed that can be received is also limited. Ta.
また従来あるデータ通信システムの他の例にお
いては、送信側データ回線は交換接続完了後にス
ペース状態の極力多い所定の文字データを送信
し、受信側データ回線は該文字データを最高通信
速度でサンプリングし、該通信速度でストツプビ
ツトが検出されるべき時にスペース状態であつた
場合は順次通信速度を低下させて検出を試み、以
上の過程を前記所定文字の受信に成功する迄繰返
していた。然しかかる手段によれば、通信速度の
検出用に送信する文字データが限定されると共
に、やはり受信可能な通信速度も限定され、当該
データ通信システムの融通性を損なう欠点があつ
た。 In another example of a conventional data communication system, the transmitting data line transmits predetermined character data with as many spaces as possible after the switching connection is completed, and the receiving data line samples the character data at the highest communication speed. If the stop bit is in a space state when it should be detected at the communication speed, the communication speed is sequentially lowered and detection is attempted, and the above process is repeated until the predetermined character is successfully received. However, according to such means, the character data to be transmitted for detecting the communication speed is limited, and the receivable communication speed is also limited, which has the drawback of impairing the flexibility of the data communication system.
(d) 発明の目的
本発明の目的は、前述の如き従来あるデータ回
線速度検出方式の欠点を除去し、データ通信シス
テムの経済性および融通性を損なわぬデータ回線
速度検出方式を実現することに在る。(d) Purpose of the Invention The purpose of the present invention is to eliminate the drawbacks of the conventional data line speed detection methods as described above, and to realize a data line speed detection method that does not impair the economy and flexibility of data communication systems. exist.
(e) 発明の構成
この目的は、複数種類の通信速度を有し、不使
用時マーク状態(論理値1)にあり、文字データ
が到着した時にスペース状態(論理値0)となる
調歩同期式のデータ回線を交換接続するデータ通
信システムにおいて、前記データ回線がスペース
状態に在る時間を計測する計時手段を前記データ
回線に対応して設けられる文字組立分解部に併設
し、前記文字組立分解部の文字データ受信速度検
出前の速度は、最高通信速度にて受信するように
予め設定され、前記データ回線に呼が着信した時
に、中央処理装置は、前記計時手段を初期設定
し、前記データ回線に最初に到着する予め定めら
れた文字データのスペース状態時間を前記計時手
段により自動的に計測し、前記文字組立分解部
は、文字データ受信開始後、前記最高通信速度に
て受信する文字データの受信時間経過後に前記中
央処理装置へ割込みをかけ、前記中央処理装置
は、前記割込み時点より前記最高通信速度にて受
信する受信開始時間を算出し、該受信開始時点か
ら前記データ回線の最低通信速度の前記所定文字
データを受信可能な所定時間経過後に、前記計時
手段の計測結果を読み取り、該計測結果に基づき
前記データ回線に到着するデータの通信速度を検
出し、前記文字組立分解部の受信速度を設定する
ことにより達成される。(e) Structure of the Invention The object is to provide an asynchronous system that has multiple types of communication speeds, is in a mark state (logical value 1) when not in use, and becomes a space state (logical value 0) when character data arrives. In a data communication system in which a data line is exchange-connected, a timer for measuring the time that the data line remains in a space state is provided in a character assembly/disassembly unit provided corresponding to the data line, and the character assembly/disassembly unit The speed before character data reception speed detection is set in advance so that the data is received at the highest communication speed, and when a call arrives on the data line, the central processing unit initializes the timer, The timer automatically measures the space state time of predetermined character data that arrives first at After the reception time has elapsed, an interrupt is issued to the central processing unit, and the central processing unit calculates a reception start time for receiving at the maximum communication speed from the time of the interruption, and calculates the minimum communication speed of the data line from the reception start time. After a predetermined time period during which the predetermined character data can be received, reads the measurement result of the timer, detects the communication speed of data arriving at the data line based on the measurement result, and determines the reception speed of the character assembly/disassembly unit. This is achieved by setting .
(f) 発明の実施例
以下、本発明の一実施例を図面により説明す
る。図面は本発明の一実施例によるデータ回線速
度検出方式を示す図である。図において、受信デ
ータ回線1および送信データ回線2に対応して設
けられている文字組立分解部3に、受信データ回
線1がスペース状態に在る時間を計測する計時手
段として、計数回路4、論理和ゲート5およびア
ドレス選択回路6が併設されている。受信データ
回線1がマーク状態(論理値1)に在る場合に
は、論理和ゲート5は常に論理値1を出力する
為、論理和ゲート5に入力されるクロツク信号
cpは計数回路4に伝達されぬが、受信データ回
線1がスペース状態(論理値0)に在る場合に
は、クロツク信号cpは論理和ゲート5を介して
計数回路4に伝達され、計数回路4を所定周期で
歩進させる。当初文字組立分解部3内のボーレー
ト発生器31は、受信データ回線1から如何なる
通信速度で文字データが到着した場合にも、受信
回路32がスタートビツトを検出できるように、
最高通信速度に設定されている。今受信データ回
線1および送信データ回線2に呼が設定される
と、中央処理装置7はバス8を介してアドレス選
択回路6を制御し、計数回路4を初期設定させ
る。なおかかる状態では受信データ回線1はマー
ク状態に在る為、計数回路4は歩進しない。続い
て図示されぬ対向データ回線が予め定められた文
字データ(例えばCRコード)を送出すると、該
文字データは図示されぬ交換機を介して受信デー
タ回線1に伝達される。計数回路4は前述の過程
により、受信データ回線1が前記文字データによ
りスペース状態にある間クロツク信号cpにより
歩進する。一方文字組立分解部3内の受信回路3
2は、スタートビツト検出により、受信開始を検
出する機能を有し、前記したように、ボーレート
発生器31に設定されている最高通信速度で前記
文字データを受信し、受信完了予定時間が経過す
ると受信文字データrc、状態情報st、受信割込情
報ir等を受信バツフア34に蓄積した後割込制御
回路35を介して中央処理装置7に受信完了割込
信号を伝達する。この受信完了予定時間は、最初
は最高通信速度に設定されているため、受信デー
タの速度と一致している場合や、受信データ速度
よりも早すぎる場合もある。(f) Embodiment of the invention An embodiment of the invention will be described below with reference to the drawings. The drawing is a diagram showing a data line speed detection method according to an embodiment of the present invention. In the figure, a character assembly/disassembly section 3 provided corresponding to a reception data line 1 and a transmission data line 2 includes a counter circuit 4, a logic A sum gate 5 and an address selection circuit 6 are also provided. When the receiving data line 1 is in the mark state (logical value 1), the OR gate 5 always outputs the logical value 1, so the clock signal input to the OR gate 5
cp is not transmitted to the counting circuit 4, but when the receiving data line 1 is in the space state (logical value 0), the clock signal cp is transmitted to the counting circuit 4 via the OR gate 5, 4 is incremented at a predetermined period. Initially, the baud rate generator 31 in the character assembly/disassembly section 3 is configured so that the reception circuit 32 can detect a start bit no matter what communication speed character data arrives from the reception data line 1.
The communication speed is set to the highest. When a call is now set up on the receive data line 1 and the send data line 2, the central processing unit 7 controls the address selection circuit 6 via the bus 8 to initialize the counting circuit 4. In this state, the receiving data line 1 is in the mark state, so the counting circuit 4 does not increment. Subsequently, when the opposite data line (not shown) sends out predetermined character data (for example, a CR code), the character data is transmitted to the receiving data line 1 via an exchange (not shown). The counting circuit 4 is incremented by the clock signal CP while the receiving data line 1 is in the space state due to the character data, according to the process described above. On the other hand, the receiving circuit 3 in the character assembly/disassembly section 3
2 has a function of detecting the start of reception by detecting a start bit, and as described above, receives the character data at the maximum communication speed set in the baud rate generator 31, and when the expected reception completion time has elapsed. After storing received character data rc, status information st, received interrupt information ir, etc. in the receiving buffer 34, a reception completion interrupt signal is transmitted to the central processing unit 7 via the interrupt control circuit 35. Since this expected reception completion time is initially set to the highest communication speed, it may match the speed of the received data or may be faster than the speed of the received data.
中央処理装置7は該受信完了割込信号を受信す
ると、該受信完了割込信号を受信した時刻と予め
設定しておいた前記通信速度により、前記所定文
字データの受信開始時刻を算出する。即ち、中央
処理装置7は受信完了割込信号の受信により文字
データを受信したものと見做し、この時点から現
在設定されている通信速度が最高速度に設定され
ているのでその最高速度での文字デーデ受信時間
を差し引くことで受信開始時刻を割出せることに
なる。 When the central processing unit 7 receives the reception completion interrupt signal, it calculates the reception start time of the predetermined character data based on the time when the reception completion interrupt signal was received and the communication speed set in advance. That is, the central processing unit 7 assumes that the character data has been received by receiving the reception completion interrupt signal, and from this point on, the currently set communication speed is set to the maximum speed, so the communication speed is set at the maximum speed. By subtracting the character data reception time, the reception start time can be determined.
次に、受信側で設定した最高通信速度よりも遅
い場合は、受信完了割込信号を受信した時点で
は、まだデータを受信完了していなので、中央処
理装置7は、先に算出した受信開始時刻から最低
通信速度によつても前記所定文字データを受信可
能な所定時間を待つ。この所定時間経過後、バス
8を介して計数回路4から計数結果を読取る。該
時点における計数結果は、前記文字データのスペ
ース状態時間の累計値に相当する。中央処理装置
7は各種通信速度で前記文字データを送信した場
合のスペース状態累計時間の基準値を内蔵してお
り、計数回路4から受信した計数結果を該基準値
と照合することにより、対向データ回線の通信速
度を検出し、バス8を介して文字組立分解部3内
のボーレート発生器31を検出した通信速度に設
定する。以後文字組立分解部3は対向データ回線
の通信速度により受信データ回線1に到着するデ
ータを受信し、また送信データ回線2にデータを
送信する。 Next, if the communication speed is slower than the maximum communication speed set on the receiving side, data reception has not yet been completed at the time the reception completion interrupt signal is received, so the central processing unit 7 Waits for a predetermined time during which the predetermined character data can be received even at the lowest communication speed. After this predetermined time has elapsed, the counting result is read from the counting circuit 4 via the bus 8. The counting result at this point in time corresponds to the cumulative value of the space state time of the character data. The central processing unit 7 has a built-in reference value for the space state cumulative time when the character data is transmitted at various communication speeds, and by comparing the counting result received from the counting circuit 4 with the reference value, The communication speed of the line is detected, and the baud rate generator 31 in the character assembly/disassembly section 3 is set to the detected communication speed via the bus 8. Thereafter, the character assembly/disassembly section 3 receives data arriving at the receiving data line 1 at the communication speed of the opposing data line, and also transmits data to the transmitting data line 2.
以上の説明から明らかな如く、本実施例によれ
ば、文字組立分解部3に計数回路4、論理和ゲー
ト5およびアドレス選択回路6を併設することに
より、接続完了後最初に伝達される前記所定文字
データのスペース状態累計時間を計測し、該計測
結果から文字組立分解部3に設定すべき通信速度
を検出することが可能となる。該所定文字データ
はスペース状態を含む文字データであれば任意に
選定可能である。また新たな通信速度が追加され
た場合にも、中央処理装置7の内蔵するスペース
状態累計時間の基準値を追加することにより容易
に対処可能である。 As is clear from the above description, according to this embodiment, the character assembly/disassembly section 3 is provided with a counting circuit 4, an OR gate 5, and an address selection circuit 6, thereby making it possible to select It becomes possible to measure the cumulative space state time of character data and detect the communication speed to be set in the character assembly/disassembly section 3 from the measurement result. The predetermined character data can be arbitrarily selected as long as it includes a space state. Furthermore, even when a new communication speed is added, this can be easily handled by adding a reference value for the cumulative space state time built into the central processing unit 7.
なお、図面はあく迄本発明の一実施例に過ぎ
ず、例えば前記文字データはCRコードに限定さ
れることは無く、他に幾多の変形が考慮される
が、何れの場合にも本発明に効果は変らない。ま
た計時手段および文字組立分解部3の構成は図示
されるものに限定されることは無く、他に幾多の
変形が考慮されるが、何れの場合にも本発明の効
果は変らない。 Note that the drawings are merely one embodiment of the present invention; for example, the character data is not limited to the CR code, and many other modifications may be considered; The effect remains the same. Further, the configurations of the timekeeping means and the character assembly/disassembly section 3 are not limited to those shown in the drawings, and many other modifications may be considered, but the effects of the present invention will not change in any case.
(g) 発明の効果
以上、本発明によれば、前記データ通信システ
ムにおいて、経済性に優れ且つ融通性に富むデー
タ回線速度検出方式を実現することが可能とな
る。(g) Effects of the Invention As described above, according to the present invention, it is possible to realize an economical and highly flexible data line speed detection method in the data communication system.
図面は本発明の一実施例によるデータ回線速度
検出方式を示す図である。
図において、1は受信データ回線、2は送信デ
ータ回線、3は文字組立分解部、4は計数回路、
5は論理和ゲート、6はアドレス選択回路、7は
中央処理装置、8はバス、31はボーレート発生
器、32は受信回路、33は送信回路、34は受
信バツフア、35は割込制御回路、36は入出力
制御回路、37は送信バツフア、cpはクロツク
信号、irは受信割込情報、rcは受信文字データ、
stは状態情報、を示す。
The drawing is a diagram showing a data line speed detection method according to an embodiment of the present invention. In the figure, 1 is a receiving data line, 2 is a sending data line, 3 is a character assembly/disassembly unit, 4 is a counting circuit,
5 is an OR gate, 6 is an address selection circuit, 7 is a central processing unit, 8 is a bus, 31 is a baud rate generator, 32 is a receiving circuit, 33 is a transmitting circuit, 34 is a receiving buffer, 35 is an interrupt control circuit, 36 is an input/output control circuit, 37 is a transmission buffer, cp is a clock signal, ir is reception interrupt information, rc is reception character data,
st indicates status information.
Claims (1)
状態(論理値1)にあり、文字データが到着した
時にスペース状態(論理値0)となる調歩同期式
のデータ回線を交換接続するデータ通信システム
において、 前記データ回線がスペース状態に在る時間を計
測する計時手段を前記データ回線に対応して設け
られる文字組立分解部に併設し、 前記文字組立分解部の文字データ受信速度検出
前の速度は、最高通信速度にて受信するように予
め設定され、 前記データ回線に呼が着信した時に、中央処理
装置は、前記計時手段を初期設定し、 前記データ回線に最初に到着する予め定められ
た文字データのスペース状態時間を前記計時手段
により自動的に計測し、 前記文字組立分解部は、文字データ受信開始
後、前記最高通信速度にて受信する文字データの
受信時間経過後に前記中央処理装置へ割込みをか
け、 前記中央処理装置は、前記割込み時点より前記
最高通信速度にて受信する受信開始時間を算出
し、該受信開始時点から前記データ回線の最低通
信速度の前記所定文字データを受信可能な所定時
間経過後に、前記計時手段の計測結果を読み取
り、 該計測結果に基づき前記データ回線に到着する
データの通信速度を検出し、 前記文字組立分解部の受信速度を設定すること
を特徴とするデータ回線速度検出方式。[Claims] 1. An asynchronous data line that has multiple types of communication speeds, is in a mark state (logical value 1) when not in use, and becomes a space state (logical value 0) when character data arrives. In a data communication system in which a character assembly/disassembly section provided corresponding to the data line is provided with a timer for measuring the time that the data line remains in a space state, the character data of the character assembly/disassembly section is connected in an exchange manner. The speed before reception speed detection is set in advance to receive at the highest communication speed, and when a call arrives on the data line, the central processing unit initializes the timer, The space state time of the predetermined character data that arrives is automatically measured by the clocking means, and the character assembly/disassembly section measures the elapsed reception time of the character data to be received at the maximum communication speed after starting to receive the character data. Later, an interrupt is issued to the central processing unit, and the central processing unit calculates a reception start time for receiving data at the highest communication speed from the time of the interrupt, and calculates a reception start time at the minimum communication speed of the data line from the reception start time. After a predetermined time period during which character data can be received has elapsed, the measurement result of the timer is read, the communication speed of data arriving at the data line is detected based on the measurement result, and the reception speed of the character assembly/disassembly unit is set. A data line speed detection method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58072466A JPS59198049A (en) | 1983-04-25 | 1983-04-25 | System for detecting data line speed |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58072466A JPS59198049A (en) | 1983-04-25 | 1983-04-25 | System for detecting data line speed |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59198049A JPS59198049A (en) | 1984-11-09 |
| JPS645498B2 true JPS645498B2 (en) | 1989-01-31 |
Family
ID=13490110
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58072466A Granted JPS59198049A (en) | 1983-04-25 | 1983-04-25 | System for detecting data line speed |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59198049A (en) |
-
1983
- 1983-04-25 JP JP58072466A patent/JPS59198049A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59198049A (en) | 1984-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0281307B1 (en) | Asynchronous interface and method for coupling data between a data module and a serial asynchronous peripheral | |
| JPS59153353A (en) | Data transmission system | |
| EP0196870B1 (en) | Interface circuit for transmitting and receiving data | |
| EP0564118B1 (en) | Serial data transfer apparatus | |
| US4210777A (en) | Pseudo-transparent stop bit generator | |
| EP0287678B1 (en) | Data transfer system having transfer discrimination circuit | |
| JPS634379B2 (en) | ||
| JPS645498B2 (en) | ||
| EP0111251A1 (en) | Data transmission system | |
| US4901311A (en) | Communication method and equipment therefor | |
| CA2052811C (en) | Framing bit sequence detection in digital data communication systems | |
| JPS61270952A (en) | Data transmitting system | |
| JPH0311701B2 (en) | ||
| JPH0351143B2 (en) | ||
| KR100286536B1 (en) | Arbitration apparatus of transrmission for multidrop communication system | |
| JP3436593B2 (en) | Data communication device | |
| JPH04117841A (en) | Communication speed detection method in start-stop synchronizing communication system | |
| JP2543552B2 (en) | Data transfer system having transfer identification circuit | |
| SU1689959A1 (en) | Device for connecting subscriber to common channel of local circuit of data transmission | |
| JP2621772B2 (en) | Serial transmission device | |
| JP2619939B2 (en) | Synchronous pattern detection circuit | |
| KR960016274B1 (en) | Home bus interface apparatus | |
| JP3461614B2 (en) | Communication device and communication method for digital control device | |
| JP2945123B2 (en) | Communications system | |
| JPH08191320A (en) | Data communication system |