JPH01296743A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH01296743A
JPH01296743A JP63125655A JP12565588A JPH01296743A JP H01296743 A JPH01296743 A JP H01296743A JP 63125655 A JP63125655 A JP 63125655A JP 12565588 A JP12565588 A JP 12565588A JP H01296743 A JPH01296743 A JP H01296743A
Authority
JP
Japan
Prior art keywords
data
transfer
host
transfer speed
terminal
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.)
Pending
Application number
JP63125655A
Other languages
Japanese (ja)
Inventor
Yuji Uramoto
浦本 雄次
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP63125655A priority Critical patent/JPH01296743A/en
Publication of JPH01296743A publication Critical patent/JPH01296743A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To eliminate complicated changeover switch operation by using a transfer speed discrimination data transferred from the host so as to allow a terminal side to discriminate the transfer speed automatically, synchronizing the synchronization of data transfer speed between the host side and the terminal side and transiting the transfer processing of a communication data. CONSTITUTION:A discrimination means at the terminal side discriminates the transfer speed automatically by a transfer speed discrimination data transferred by the transfer means from the host side, the data transfer speed between the host side and the terminal side is synchronized and the mode is transited to the transfer processing of the transfer data. Thus, the limit of the combination due to the difference the transfer speed is eliminated and complicated switch operation is eliminated. Moreover, a data transfer speed discrimination data is transferred at the start of transaction transfer to switch the reception transfer speed clock at the terminal side and the reception of data is attained.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はホストとターミナル間におけるデータ通信方式
に関し、データ転送速度同期を行なうデータ通信方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data communication system between a host and a terminal, and more particularly to a data communication system that performs data transfer rate synchronization.

[従来の技術] 従来、ホストからターミナルへのデータ転送方式におけ
るデータ転送方式として、予め、ホストとターミナル間
でデータ転送速度を決めておき、この決まった転送速度
によりデータ通信を行なう調歩同期式と呼ばれる通信方
式がある。
[Prior Art] Conventionally, as a data transfer method for data transfer from a host to a terminal, there is a start-stop synchronous method in which a data transfer speed is determined in advance between the host and the terminal, and data communication is performed at this determined transfer speed. There is a communication method called

この方式は、ホストからスタートビットを送出すると、
ターミナル(周辺機器)側はデータ転送の開始を認識し
、以下、予め定められた転送速度に応じてスタートビッ
トに続いて送られてくるデータを受信し、ホストからの
ストップビットを検出するまでこのデータを受信すると
いう方式である。この調歩同期式の場合には、複雑なデ
ータ転送手順も必要なく簡単に行なえる為、現在、パー
ソナルコンピュータ間通信等の世界では広く用いられ、
汎用的な通信手順となっている。
In this method, when the host sends a start bit,
The terminal (peripheral device) side recognizes the start of data transfer, receives data sent following the start bit according to a predetermined transfer rate, and continues this process until it detects a stop bit from the host. This is a method of receiving data. In the case of this start-stop synchronization method, complicated data transfer procedures are not required and it can be easily performed, so it is currently widely used in the world of communication between personal computers.
This is a general-purpose communication procedure.

また、他の同期化方式を用いるにしても、データ転送速
度は予め固定的に決めておかなければならず、汎用性に
欠けるものであった。
Further, even if other synchronization methods were used, the data transfer rate had to be fixed and determined in advance, resulting in a lack of versatility.

[発明が解決しようとする課題] しかし、データ転送速度にもいろいろ種類があり、例え
ば4800BPS、9600BPS。
[Problems to be Solved by the Invention] However, there are various types of data transfer speeds, such as 4800 BPS and 9600 BPS.

19200BPS等の各種の転送速度が存在している。There are various transfer speeds such as 19200 BPS.

この種類の違いにより、ホスト側とターミナル側の組み
合わせが制限されるという欠点があり、その都度最適の
速度を選択できなかった。
This difference in types has the disadvantage that combinations of host and terminal sides are limited, making it impossible to select the optimal speed for each case.

また、各装置側で切替スイッチを持つことにより転送速
度を同一に揃える構成とすることも考えられるが、煩わ
しく面倒であった。
It is also conceivable to have a configuration in which each device has a changeover switch so that the transfer speeds are the same, but this is troublesome and troublesome.

[問題点を解決するための手段] 本発明は上述の課題を解決することを目的として成され
たもので、上述の課題を解決する一手段として以下の構
成を備える。
[Means for Solving the Problems] The present invention has been made for the purpose of solving the above-mentioned problems, and includes the following configuration as one means for solving the above-mentioned problems.

即ち、第1図の機能ブロック図に示す如く、ホストにデ
ータ転送速度を決定する決定手段と、該決定手段の決定
した転送速度で転送速度判別データを転送する転送手段
とを備え、ターミナルに前記ホストよりの転送速度判別
データを受信する受信手段と、該受信手段で受信した転
送速度判別データよりデータ転送速度を判別する判別手
段と、該判別手段の判別結果に従って受信クロックを切
替る切替手段とを備える。
That is, as shown in the functional block diagram of FIG. 1, the terminal is equipped with a determining means for determining a data transfer rate to the host, and a transfer means for transmitting transfer rate determination data at the transfer rate determined by the determining means. a receiving means for receiving transfer rate determination data from a host; a determining means for determining a data transfer rate from the transfer rate determining data received by the receiving means; and a switching means for switching a reception clock according to the determination result of the determining means. Equipped with.

[作用] 以上の構成において、ホスト側より転送される転送速度
判別データにより、ターミナル側で転送速度を自動判別
し、ホスト側とターミナル側とのデータ転送速度の同期
を取ってから通信データの転送処理の移行することによ
り、転送速度の違、いによる組み合わせの制限を取り除
き、煩雑な切替スイッチ操作を取り除くものである。
[Operation] In the above configuration, the terminal side automatically determines the transfer speed based on the transfer speed determination data transferred from the host side, synchronizes the data transfer speed between the host side and the terminal side, and then transfers the communication data. By shifting the processing, restrictions on combinations due to differences in transfer speeds are removed, and complicated switch operations are eliminated.

[実施例] 以下図面を参照して本発明に係る一実施例を詳細に説明
する。
[Embodiment] An embodiment of the present invention will be described in detail below with reference to the drawings.

第2図は本発明に係る一実施例のブロック構成図であり
、図中10はパーソナルコンピュータ、ワープロ等のホ
ストであり、必要なデータをターミナル50側に送出す
る。50はターミナルであり、ホストlOとターミナル
50間は、2組の信号線、即ち、データ信号線(RXD
)2iと制御信号線(DR)22により互いに接続され
、必要なデータの授受を行なう、なお、ターミナル50
を駆動する電源は、全てホスト10側よりの電源線23
により供給される。
FIG. 2 is a block diagram of an embodiment according to the present invention. In the figure, 10 is a host such as a personal computer, word processor, etc., which sends necessary data to the terminal 50 side. 50 is a terminal, and between the host IO and the terminal 50 there are two sets of signal lines, namely data signal lines (RXD
) 2i and a control signal line (DR) 22 to exchange necessary data.
The power supply that drives the is all connected to the power line 23 from the host 10 side.
Powered by.

ホスト10において、11はROM12に内蔵された後
述する制御プログラムに従い本実施例全体の制御を司る
MPU、12は上述したプログラムの他ホストで使用す
るパラメータ等を記憶するROM、13は送受信データ
や処理データ等を記憶するメモリ、14はターミナルと
のインタフェースを司るインタフェース回路、15は電
源部である。
In the host 10, numeral 11 is an MPU that controls the entire embodiment according to a control program to be described later, which is built into a ROM 12, 12 is a ROM that stores the above-mentioned program and parameters used in the host, and 13 is a ROM for transmitting/receiving data and processing. A memory stores data, etc.; 14 is an interface circuit for interfacing with a terminal; and 15 is a power supply section.

ターミナル50において、51はROM52に内蔵され
た後述する制御プログラムに従い本実施例全体の制御を
司るCPU、52は上述したプログラムの他ターミナル
で使用するパラメータ等を記憶するROM、53は送受
信データや処理データ等を記憶するメモリ、54はホス
トとのインタフェースを司るインタフェース回路である
In the terminal 50, 51 is a CPU which controls the entire embodiment according to a control program which will be described later and which is built into a ROM 52, 52 is a ROM which stores the above-mentioned program and other parameters used in the terminal, and 53 is a CPU for transmitting/receiving data and processing. A memory 54 stores data and the like, and an interface circuit 54 controls the interface with the host.

第3図は以上の構成より成る本実施例で用いられるデー
タ1フレームの線路上での転送状態を表わす図であり、
データ“11010000”を転送する時のRXD21
上の状態を表わす図である。
FIG. 3 is a diagram showing the state of transfer of one frame of data on the line used in this embodiment having the above configuration.
RXD21 when transferring data “11010000”
It is a figure showing the above state.

第3図のごとく、データ1フレームは、スタートビット
61、ストップビット62を含む10ビツトで構成され
、下位ビットより順に送出される。
As shown in FIG. 3, one frame of data consists of 10 bits including a start bit 61 and a stop bit 62, and is sent out in order from the least significant bit.

本実施例の基本的なデータ通信処理の概略を以下に説明
する。
An outline of the basic data communication processing of this embodiment will be explained below.

ターミナル側では、自装置が稼動状態であり、ホスト1
0よりのデータ通信(データ受信)が可能の時にデータ
レディ信号(DR)22をオンにする。このため、基本
的なデータ転送手順は、ホスト側は1フレーム転送する
毎にターミナル50からのDR信号22を確認してから
データの転送処理を実行する手順である。
On the terminal side, the own device is in operation and host 1
When data communication (data reception) from 0 is possible, the data ready signal (DR) 22 is turned on. Therefore, the basic data transfer procedure is such that the host side checks the DR signal 22 from the terminal 50 every time one frame is transferred, and then executes the data transfer process.

第4図は本実施例で用いる、1トランザクシヨンのデー
タ転送フレーム構成図であり、転送データのフォーマッ
トを示している。
FIG. 4 is a diagram showing the structure of a data transfer frame for one transaction used in this embodiment, and shows the format of transfer data.

図示の如く、1トランザクシヨンの先頭には、これから
転送するデータ長65を転送し、以下データ66を転送
する。
As shown in the figure, the data length 65 to be transferred from now on is transferred at the beginning of one transaction, and the data 66 is transferred thereafter.

なお、ターミナル内のCPU51は、データ転送フレー
ムを受信すると、データ長65を読み込んで、続いて送
られてくるこのデータ長65で指定された量だけのデー
タを受信し、データの転送処理を終了する。
When the CPU 51 in the terminal receives the data transfer frame, it reads the data length 65, receives the amount of data specified by the data length 65 that is sent subsequently, and ends the data transfer process. do.

次に、以上の構成より成る本実施例の同期化処理を第5
図のフローチャートを参照して説明する。
Next, the synchronization process of this embodiment having the above configuration will be explained as follows.
This will be explained with reference to the flowchart shown in the figure.

第5図はターミナル内のROM52に格納された同期化
処理プログラムのフローチャートであるが、ホスト側で
もROM12内の同期化処理プログラムを実行するが、
ホスト側ではまずターミナル50とのデータ転送速度を
決定する。この速度はオペレータによる指定入力でも、
プログラム上で、伝送データの性質により異なるものと
成るよう制御してもよい。本実施例では19200BP
S、9600BPSの両方の転送速度をカバーするもの
である。
FIG. 5 is a flowchart of the synchronization processing program stored in the ROM 52 in the terminal, and the host side also executes the synchronization processing program in the ROM 12.
The host side first determines the data transfer rate with the terminal 50. This speed can also be specified by the operator.
It may be controlled by the program to be different depending on the nature of the transmitted data. In this example, 19200BP
This covers both transfer speeds of S and 9600 BPS.

そして、後述する判別データを、決定した転送速度でタ
ーミナル側に送出する。
Discrimination data, which will be described later, is then sent to the terminal at the determined transfer rate.

ターミナル側では、後述する処理により伝送速度を検出
してこの判別データ転送速度に同期した受信タイミング
で以下のデータ受信を行なう。
On the terminal side, the transmission rate is detected through processing to be described later, and the following data is received at a reception timing synchronized with the determined data transfer rate.

即ち、まずステップS1でターミナル50では、インタ
フェース回路54の受信クロックを192008PSに
セットする。そして続くステップS2でDR信号22を
オン(アクティブ)にし、ステップS3でホストからの
データ転送を待つ。データの転送があるとステップS4
に進み、受信したフレームデータが“#EF”か否かを
調べる。“#EF”であったらホストからの転送速度は
19200BPSとしてステップS8にジャンプし、第
4図に示したトランザクションを受信処理に進む。
That is, first, in step S1, the terminal 50 sets the receiving clock of the interface circuit 54 to 192008 PS. Then, in the following step S2, the DR signal 22 is turned on (active), and in step S3, data transfer from the host is waited for. If data is transferred, step S4
Then, it is checked whether the received frame data is "#EF" or not. If it is "#EF", the transfer rate from the host is determined to be 19200 BPS, and the process jumps to step S8, and the process proceeds to receive the transaction shown in FIG.

一方、“#EF”でなければステップS5に進み、受信
したフレームデータが“#FE”か否かを調べる。”#
FE”でなければ、受信誤りとしてステップS2に戻る
On the other hand, if it is not "#EF", the process proceeds to step S5, and it is checked whether the received frame data is "#FE". ”#
If it is not "FE", it is determined that there is a reception error and the process returns to step S2.

ステップS5で“#FE”であった時にはステップS6
に進み、次の受信データを待ち、次の受信データも“#
FE”であるか否かを調べる。次の受信データも“#F
E”の時にはホストからの転送速度はもう一方の960
0BPSであるため、ステップS7に進み、インタフェ
ース回路54の受信クロックを96008PSに切り替
え、これで受信クロックの同期化処理が終了したためス
テップS8に進む。
If it is “#FE” in step S5, step S6
Wait for the next received data, and the next received data will also be “#”.
The next received data is also “#F”.
E", the transfer speed from the host is 960
Since it is 0BPS, the process proceeds to step S7, and the reception clock of the interface circuit 54 is switched to 96008PS, and since the reception clock synchronization process is now complete, the process proceeds to step S8.

ステップS6で次の受信データが“#FE”でない場合
はやはり受信誤りとしてステップS2に戻る。
If the next received data is not "#FE" in step S6, it is determined that there is a reception error and the process returns to step S2.

ステップS8では第4図に示す1トランザクシヨンのデ
ータ転送フレーム毎に必要量のトランザクションを受信
する。そして、ステップS9で受信完了を報知する為に
、ターミナル内のランプ等を点灯させ、一連の処理を終
了する。
In step S8, the required amount of transactions is received for each data transfer frame of one transaction shown in FIG. Then, in step S9, a lamp or the like in the terminal is turned on to notify completion of reception, and the series of processing is completed.

上述の転送速度判別処理のタイミングチャートを第6図
に示す。
A timing chart of the above-mentioned transfer rate determination process is shown in FIG.

送信側が9600BPSでデータ“#EF”を転送、し
た時に、19200BPSにセットされている受信側が
どの様にデータを受は取るかを示した図である。
FIG. 7 is a diagram showing how the receiving side, which is set to 19200 BPS, receives and receives data when the transmitting side transfers data "#EF" at 9600 BPS.

図示の如く、この場合には“#FE”を2回受信するこ
とになる。
As shown in the figure, in this case, "#FE" is received twice.

この様にして、実際のデータ伝送に先だって、予め定め
た各転送速度の判別に最適な伝送パターンをターミナル
側に送出し、ターミナル側でこのパターンを受信し、ど
のようなデータとして判読するかにより、データ転送速
度を知ることができる。
In this way, prior to actual data transmission, the optimal transmission pattern for determining each predetermined transfer rate is sent to the terminal side, and the terminal side receives this pattern and determines what kind of data to interpret. , you can know the data transfer speed.

この転送パターンは実施例のパターンに限るものではな
く、転送速度を判別可能な任意のパターンでよい。また
、転送速度も上述の2種に限るものではなく、任意の速
度とすることができ、その種類にも制約は無い。転送パ
ターンにより判別可能であれば種々応用可能である。
This transfer pattern is not limited to the pattern in the embodiment, but may be any pattern that allows the transfer speed to be determined. Further, the transfer speed is not limited to the above two types, but can be any speed, and there are no restrictions on the type. As long as it can be determined based on the transfer pattern, various applications are possible.

以上説明した様に本実施例によれば、トランザクション
情報転送前にデータ転送速度判別データを転送すること
で、受信側がデータ転送速度を判別し、受信クロックを
切り替えることで、ホスト側とターミナル側の転送速度
選択の制限を取り除き、かつ煩雑なスイッチ操作を取り
除く機器を提供することを可能とする。
As explained above, according to this embodiment, by transmitting the data transfer rate determination data before transferring transaction information, the receiving side determines the data transfer rate and switches the receiving clock, so that the host side and terminal side can communicate with each other. To provide a device that eliminates restrictions on transfer rate selection and eliminates complicated switch operations.

又、トランザクションの前で、必ず転送速度判別データ
を送出するので、ホストから電源を供給されている様な
ターミナルの場合、ホスト側はターミナル側との接続が
遮断されたのを検出するという様な煩わしい制御も不要
となる。
Also, since transfer rate determination data is always sent before a transaction, in the case of a terminal that is powered by the host, the host side will detect that the connection with the terminal side is interrupted. Troublesome controls are also unnecessary.

このように、ホスト側より転送される転送速度判別デー
タにより、ターミナル側で転送速度を自動判別し、ホス
ト側とターミナル側とのデータ転送速度の同期を取って
から通信データの転送処理の移行することにより、転送
速度の違いによる組み合わせの制限を取り除き、煩雑な
切替スイッチ操作を取り除くことができるものである。
In this way, the terminal side automatically determines the transfer speed based on the transfer speed determination data transferred from the host side, synchronizes the data transfer speeds between the host side and the terminal side, and then transfers the communication data. This eliminates restrictions on combinations due to differences in transfer speeds and eliminates complicated switch operations.

又、トランザクション転送開始時にデータ転送速度判別
データを転送することにより、ターミナル側の受信転送
速度クロックを切り替え、データを受信することを可能
とするものである。
Furthermore, by transferring data transfer rate determination data at the start of transaction transfer, it is possible to switch the reception transfer rate clock on the terminal side and receive data.

[発明の効果] 以上説明した如く本発明によれば、ホスト側より転送さ
れる転送速度判別データにより、ターミナル側で転送速
度を自動判別し、ホスト側とタ−ミナル側とのデータ転
送速度の同期を取ってから通信データの転送処理の移行
することにより、転送速度の違いによる組み合わせの制
限を取り除き、煩雑な切替スイッチ操作を取り除くこと
ができる。
[Effects of the Invention] As explained above, according to the present invention, the terminal side automatically determines the transfer speed based on the transfer speed determination data transferred from the host side, and the data transfer speed between the host side and the terminal side is adjusted. By shifting communication data transfer processing after synchronization, restrictions on combinations due to differences in transfer speeds can be removed, and complicated switch operations can be eliminated.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図i本発明の機能ブロック図、 第2図は本発明に係る一実施例のブロック構成図、 第3図は本実施例のデータ1フレームの転送タイミング
チャート、 第4図は本実施例のデータ転送フレーム構成図、 第5図は本実施例のターミナル側の通信制御フローチャ
ート、 第6図は本実施例のデータ転送速度判別の処理を説明す
るための図である。 図中、10・・・ホスト、11・・・MPU、12゜5
2・・・ROM、13.53・・・メモリ、14.54
・・・インタフェース回路、15・・・電源部、21・
・・データ信号線RXD、22・・・制御信号線DR1
23・・・電源線である。
Figure 1 is a functional block diagram of the present invention. Figure 2 is a block diagram of an embodiment of the present invention. Figure 3 is a timing chart for transferring one frame of data in this embodiment. Figure 4 is a diagram of this embodiment. FIG. 5 is a communication control flowchart on the terminal side of this embodiment, and FIG. 6 is a diagram for explaining the data transfer rate determination process of this embodiment. In the figure, 10...Host, 11...MPU, 12゜5
2...ROM, 13.53...Memory, 14.54
...interface circuit, 15...power supply section, 21.
...Data signal line RXD, 22...Control signal line DR1
23...Power line.

Claims (1)

【特許請求の範囲】[Claims] 1)ホストとターミナル間におけるデータ通信方式にお
いて、ホストにデータ転送速度を決定する決定手段と、
該決定手段の決定した転送速度で前記判別データを転送
する転送手段とを備え、ターミナルに前記ホストよりの
前記判別データを受信する受信手段と、該受信手段で受
信した判別データよりデータ転送速度を判別する判別手
段と、該判別手段の判別結果に従つたタイミングでデー
タ受信を行なうデータ受信手段とを備え、データ通信に
先立ち、判別データによりホスト側とターミナル側との
データ転送速度の同期を取ることを特徴とするデータ通
信方式。
1) In the data communication method between the host and the terminal, a determining means for determining the data transfer rate for the host;
a transfer means for transmitting the discrimination data at the transfer rate determined by the determining means; receiving means for receiving the discrimination data from the host at the terminal; and a data transfer rate determined by the discrimination data received by the reception means. The apparatus includes a discriminating means for discriminating, and a data receiving means for receiving data at a timing according to the discriminating result of the discriminating means, and synchronizes the data transfer speed between the host side and the terminal side using the discriminating data prior to data communication. A data communication method characterized by:
JP63125655A 1988-05-25 1988-05-25 Data communication system Pending JPH01296743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63125655A JPH01296743A (en) 1988-05-25 1988-05-25 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63125655A JPH01296743A (en) 1988-05-25 1988-05-25 Data communication system

Publications (1)

Publication Number Publication Date
JPH01296743A true JPH01296743A (en) 1989-11-30

Family

ID=14915387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63125655A Pending JPH01296743A (en) 1988-05-25 1988-05-25 Data communication system

Country Status (1)

Country Link
JP (1) JPH01296743A (en)

Similar Documents

Publication Publication Date Title
CN110138761B (en) MIPI (Mobile industry processor interface) protocol-based inter-device communication method and equipment topological structure
JPS63255760A (en) Control system
JPH01296743A (en) Data communication system
JP2578773B2 (en) Serial data transfer device
JPH0630506B2 (en) Serial communication device
JP2821162B2 (en) Data line termination equipment
JPH11177654A (en) Data transmission reception method
JP2893897B2 (en) Serial I / O device
JP2623816B2 (en) Signal transmission method
JPS59161956A (en) Transmission controller
JP3460502B2 (en) Serial transmission system
JP3408046B2 (en) Data communication system and data communication method
JPH0764472A (en) Remote i/o system of programmable controller
JPH01162028A (en) Alarm signal transmission system
JPH0722284B2 (en) Communication control device
JPS61167248A (en) Data communication
JPH0477940B2 (en)
JP2001127826A (en) Synchronous serial communication controller
JPH063915B2 (en) System bus data transfer device
JPH114242A (en) D channel contention control method for isdn and device for using isdn
JPH02250453A (en) Data receiver
JPH05244216A (en) Transfer mode setting system
JPS5912656A (en) Communication control system
JPH10190669A (en) Optical signal transfer terminal equipment and optical radio lan system using the same
JPH10207653A (en) Interface device