JPH04307838A - Data transmission/reception method - Google Patents

Data transmission/reception method

Info

Publication number
JPH04307838A
JPH04307838A JP3072862A JP7286291A JPH04307838A JP H04307838 A JPH04307838 A JP H04307838A JP 3072862 A JP3072862 A JP 3072862A JP 7286291 A JP7286291 A JP 7286291A JP H04307838 A JPH04307838 A JP H04307838A
Authority
JP
Japan
Prior art keywords
data
received
line
reception
receiving
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
JP3072862A
Other languages
Japanese (ja)
Inventor
Atsushi Matsumura
篤 松村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3072862A priority Critical patent/JPH04307838A/en
Publication of JPH04307838A publication Critical patent/JPH04307838A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、コンピュータシステム
、データ端末等の通信システムにおけるデータ送受信方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for transmitting and receiving data in communication systems such as computer systems and data terminals.

【0002】0002

【従来の技術】従来、この種のデータ送受信方法におい
ては、受信側で1データの終わりを識別するために、あ
らかじめ送信側と受信側の取り決めにより送受信される
データ長を固定し、若しくはデータの終わりに特定の文
字、または文字列を付加する方法を採っている。
Conventionally, in this type of data transmission/reception method, in order to identify the end of one data on the receiving side, the length of the data to be sent and received is fixed in advance by agreement between the sending and receiving sides, or the length of the data is fixed. The method is to add a specific character or string of characters to the end.

【0003】0003

【発明が解決しようとする課題】しかしながら、上記従
来例のうち、送受信されるデータ長を固定する方法では
、通信システムで必要な最大長のデータにデータ長を固
定する必要があるため、通信システムの資源、回線の使
用の面から見て効率的ではない。一方、データの終わり
に特定の文字、または文字列を付加する方法では、透過
な通信を行う際の制御が複雑になる。
[Problems to be Solved by the Invention] However, among the conventional methods described above, in the method of fixing the data length to be transmitted and received, it is necessary to fix the data length to the maximum length of data required by the communication system. It is not efficient in terms of resource and line usage. On the other hand, the method of adding a specific character or character string to the end of data complicates control when performing transparent communication.

【0004】本発明は、このような従来の問題を解決す
るものであり、可変長データによる効率のよい通信を容
易な制御で実現することができるようにしたデータ送受
信方法を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention is intended to solve these conventional problems, and an object of the present invention is to provide a data transmission/reception method that can realize efficient communication using variable length data with easy control. That is.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するために、通信システムにおける受信側にデータ回
線を監視し、データ回線上に一定時間、データが存在し
ないことにより受信データの終了を検出するデータ終了
検出手段を備え、あらかじめ送信側と受信側で、データ
回線に一定時間、データが存在しないことにより1つの
データが終了することを取り決め、送受信が開始される
と、上記データ終了検出手段によりデータ回線を監視し
、受信データの終了を検出することにより受信処理を行
うようにしたものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention monitors a data line on the receiving side of a communication system, and terminates received data when no data exists on the data line for a certain period of time. The transmitting side and the receiving side agree in advance that one piece of data ends when no data exists on the data line for a certain period of time, and when transmission/reception starts, the data ends. The data line is monitored by the detection means, and reception processing is performed by detecting the end of received data.

【0006】[0006]

【作用】したがって、本発明によれば、通信が開始され
ると、受信側のデータ終了検出手段によりデータ回線を
監視し、送信側では、データの送出を終了すると、一定
時間、次のデータの送出を停止する。そして、データ終
了検出手段がデータ回線に一定時間、データが存在しな
いことを検出することにより受信処理を行うので、特定
の文字、または文字列により終端を表わす方法を用いる
ことなく、可変長のデータを送受信することができる。
[Operation] Therefore, according to the present invention, when communication is started, the data end detection means on the receiving side monitors the data line, and when the transmitting side finishes transmitting the data, it waits for a certain period of time to start the next data. Stop sending. Since the data end detection means performs reception processing by detecting that no data exists on the data line for a certain period of time, variable length data can be can be sent and received.

【0007】[0007]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0008】図1は本発明の一実施例におけるデータ送
受信方法を具現化した受信側の概略ブロック図である(
図中、実線矢印は受信データの流れを示し、点線矢印は
制御、または通知を示す)。
FIG. 1 is a schematic block diagram of a receiving side embodying a data transmitting/receiving method in an embodiment of the present invention.
In the figure, solid line arrows indicate the flow of received data, and dotted line arrows indicate control or notification).

【0009】図1において、1はマイクロコンピュータ
であり、受信機能全体の動作を制御する。2は受信デー
タをシリアルに送るシリアルインタフェース、3はシリ
アルインタフェース2を通して受信データを受信する受
信部、4は受信部3で受信された受信データを転送する
転送部、5は転送部4から転送された受信データを一時
的に蓄える受信バッファ、6はマークホールド検出部で
あり、シリアルインタフェース2の受信データラインが
N秒間、マーク状態、すなわち、受信データの不存在状
態を継続すると、マイクロコンピュータ1へ通知を行う
。Nの値は、データの送受信を行う通信システム間であ
らかじめ取り決める。
In FIG. 1, reference numeral 1 denotes a microcomputer, which controls the operation of the entire receiving function. 2 is a serial interface that serially sends received data; 3 is a receiving section that receives received data through the serial interface 2; 4 is a transfer section that transfers the received data received by the receiving section 3; 5 is a transfer section that transfers the received data from the transfer section 4. A receive buffer 6 is a mark hold detector which temporarily stores the received data, and when the receive data line of the serial interface 2 continues to be in a mark state, that is, a state in which no receive data exists, a signal is sent to the microcomputer 1. Give notice. The value of N is determined in advance between communication systems that transmit and receive data.

【0010】次に、図2に示すフローチャートを参照し
ながらデータ送受信方法について説明する。
Next, a data transmission/reception method will be explained with reference to the flowchart shown in FIG.

【0011】あらかじめ送信側と受信側で、1つのデー
タの送信に際し、データ回線に一定時間(N秒間)、デ
ータが存在しないことにより1つのデータが終了するこ
とを取り決めておく。まず、マイクロコンピュータ1は
転送部4に受信データの転送を指令すると共に、受信部
3にデータの受信を指令する(ステップ11、12)。 受信部3はデータ受信の指令を受けた後、シリアルイン
タフェース2を通して受信データの最初の文字を受信す
ると(ステップ13)、マイクロコンピュータ1へ通知
を行う。これに伴い、マイクロコンピュータ1はマーク
ホールド検出部6に対し、シリアルインタフェース2の
受信データラインのマーク状態の継続時間の監視開始を
指令する(ステップ14)。受信部3により受信された
受信データは、転送部4により受信バッファ5へ転送さ
れる。送信側はデータの送出を終了すると、N秒間、次
のデータの送出を停止するので、データの受信が終了す
ると、シリアルインタフェース2の受信データラインは
マーク状態となる。マークホールド検出部6は受信デー
タラインがN秒間マーク状態を継続したことを検出する
と(ステップ15)、マイクロコンピュータ1へ通知を
行う。これに伴い、マイクロコンピュータ1は受信部3
、転送部4、マークホールド検出部6へ動作停止の指令
を行う(ステップ16、17)。このようにして1つの
受信データの受信処理が完結する。
[0011] The transmitting side and the receiving side agree in advance that when transmitting one piece of data, one piece of data will end if no data exists on the data line for a certain period of time (N seconds). First, the microcomputer 1 instructs the transfer section 4 to transfer the received data, and also instructs the reception section 3 to receive the data (steps 11 and 12). After receiving the command to receive data, the receiving section 3 receives the first character of the received data through the serial interface 2 (step 13) and notifies the microcomputer 1. Accordingly, the microcomputer 1 instructs the mark hold detection section 6 to start monitoring the duration of the mark state of the received data line of the serial interface 2 (step 14). The reception data received by the reception section 3 is transferred to the reception buffer 5 by the transfer section 4. When the sending side finishes sending the data, it stops sending the next data for N seconds, so when the receiving end of the data ends, the receive data line of the serial interface 2 enters the marked state. When the mark hold detection unit 6 detects that the received data line continues to be marked for N seconds (step 15), it notifies the microcomputer 1. Along with this, the microcomputer 1
, the transfer unit 4, and the mark hold detection unit 6 are instructed to stop their operations (steps 16 and 17). In this way, the reception processing of one received data is completed.

【0012】このように、上記実施例によれば、データ
回線を監視し、データ回線上に一定時間、データが存在
しないことにより受信データの終了を検出するマークホ
ールド検出部6を備え、可変長のデータの終了を検出す
るようにしているので、特定の文字、または文字列によ
り終端を表わす方式を使用することなく、可変長のデー
タを送受信することができる。したがって、効率のよい
通信を実現することができる。また、透過な通信を行う
際にも、複雑な制御を行う必要はない。
As described above, according to the above-mentioned embodiment, the mark-hold detection section 6 is provided which monitors the data line and detects the end of received data when no data exists on the data line for a certain period of time. Since the end of the data is detected, variable length data can be transmitted and received without using a method of indicating the end with a specific character or character string. Therefore, efficient communication can be achieved. Further, when performing transparent communication, there is no need to perform complicated control.

【0013】[0013]

【発明の効果】以上説明したように本発明によれば、通
信が開始されると、受信側のデータ終了検出手段により
データ回線を監視し、送信側では、データの送出を終了
すると、一定時間、次のデータの送出を停止する。そし
て、データ終了検出手段がデータ回線に一定時間、デー
タが存在しないことを検出することにより受信処理を行
うので、特定の文字、または文字列により終端を表わす
方法を用いることなく、可変長のデータを送受信するこ
とができる。したがって、通信システムの資源、回線の
使用の面から見て効率のよい可変長データによる通信を
容易な制御で実現することができる。
As explained above, according to the present invention, when communication is started, the data end detection means on the receiving side monitors the data line, and on the sending side, when data transmission is finished, the data line is monitored for a certain period of time. , stop sending the next data. Since the data end detection means performs reception processing by detecting that no data exists on the data line for a certain period of time, variable length data can be can be sent and received. Therefore, communication using variable length data that is efficient in terms of communication system resources and line usage can be realized with easy control.

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

【図1】本発明の一実施例におけるデータ送受信方法を
具現化した受信側の概略ブロック図
FIG. 1 is a schematic block diagram of a receiving side embodying a data transmission/reception method in an embodiment of the present invention.

【図2】本発明の一実施例におけるデータ送受信方法説
明用の受信処理フローチャート
FIG. 2: A reception process flowchart for explaining a data transmission and reception method in an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1  マイクロコンピュータ 2  シリアルインタフェース 3  受信部 4  転送部 5  受信バッファ 6  マークホールド検出部 1 Microcomputer 2 Serial interface 3 Receiving section 4 Transfer section 5 Receive buffer 6 Mark hold detection section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】受信側にデータ回線を監視し、データ回線
上に一定時間、データが存在しないことにより受信デー
タの終了を検出するデータ終了検出手段を備え、あらか
じめ送信側と受信側で、データ回線に一定時間、データ
が存在しないことにより1つのデータが終了することを
取り決め、送受信が開始されると、上記データ終了検出
手段によりデータ回線を監視し、受信データの終了を検
出することにより受信処理を行うようにしたデータ送受
信方法。
Claim 1: The receiving side is equipped with data end detection means for monitoring the data line and detecting the end of the received data when no data exists on the data line for a certain period of time. It is agreed that one piece of data ends when no data exists on the line for a certain period of time, and when transmission and reception start, the data line is monitored by the data end detection means, and the data is received by detecting the end of the received data. Data transmission/reception method for processing.
JP3072862A 1991-04-05 1991-04-05 Data transmission/reception method Pending JPH04307838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3072862A JPH04307838A (en) 1991-04-05 1991-04-05 Data transmission/reception method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3072862A JPH04307838A (en) 1991-04-05 1991-04-05 Data transmission/reception method

Publications (1)

Publication Number Publication Date
JPH04307838A true JPH04307838A (en) 1992-10-30

Family

ID=13501580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3072862A Pending JPH04307838A (en) 1991-04-05 1991-04-05 Data transmission/reception method

Country Status (1)

Country Link
JP (1) JPH04307838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7296081B2 (en) 2001-05-29 2007-11-13 Matsushita Electric Industrial Co., Ltd. Packet reception apparatus and packet reception method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0230253A (en) * 1988-07-20 1990-01-31 Ricoh Co Ltd How to control workstation equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0230253A (en) * 1988-07-20 1990-01-31 Ricoh Co Ltd How to control workstation equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7296081B2 (en) 2001-05-29 2007-11-13 Matsushita Electric Industrial Co., Ltd. Packet reception apparatus and packet reception method

Similar Documents

Publication Publication Date Title
JPH04307838A (en) Data transmission/reception method
JPH0358217B2 (en)
JP3454264B2 (en) Wireless communication system and wireless communication method
JP2945123B2 (en) Communications system
JP2969868B2 (en) Fixed interval short fixed length data transmission method
JP2530748B2 (en) Data communication connection device, data communication system and data communication method
JP2679648B2 (en) Transmission system
JP2692255B2 (en) Multi-drop communication method
JP3138595B2 (en) Communication device
JPH04192746A (en) Device and method for transmitting data
JPH05233495A (en) Transmission controller
JPH0316350A (en) Communication control device
JPH05344106A (en) Semidouble base band transmission system
JPS625753A (en) modem
JPS5912656A (en) Communication control system
JPH0561819B2 (en)
JPS61281349A (en) Interface controlling method
JPS60117846A (en) Data transmission system
JPH05252207A (en) Data transfer method
JPH0484531A (en) Communication system for local network system
JPS6229343A (en) data communication equipment
JP2002051064A (en) Transmission control device and transmission control method
JPH02270444A (en) 2-wire full duplex/half-duplex switching device
JPH07200422A (en) Information processor
JPH06350673A (en) Protocol processor