JPH077969B2 - Communication control method - Google Patents

Communication control method

Info

Publication number
JPH077969B2
JPH077969B2 JP63182350A JP18235088A JPH077969B2 JP H077969 B2 JPH077969 B2 JP H077969B2 JP 63182350 A JP63182350 A JP 63182350A JP 18235088 A JP18235088 A JP 18235088A JP H077969 B2 JPH077969 B2 JP H077969B2
Authority
JP
Japan
Prior art keywords
communication control
communication
control device
packet
transmission
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 - Fee Related
Application number
JP63182350A
Other languages
Japanese (ja)
Other versions
JPH0231542A (en
Inventor
健 後藤
祥太郎 田中
由紀子 小野
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 JP63182350A priority Critical patent/JPH077969B2/en
Publication of JPH0231542A publication Critical patent/JPH0231542A/en
Publication of JPH077969B2 publication Critical patent/JPH077969B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、通信パケットを用いる通信方法に関するもの
である。
TECHNICAL FIELD The present invention relates to a communication method using communication packets.

従来の技術 第3図は従来の情報伝送システムの一実施例を示すブロ
ック図である。1は通信パケットを伝送する情報伝送
路、2.1〜2.nは情報伝送路1を介して相互に通信する通
信制御装置である。
2. Description of the Related Art FIG. 3 is a block diagram showing an embodiment of a conventional information transmission system. Reference numeral 1 is an information transmission path for transmitting communication packets, and 2.1 to 2.n are communication control devices for communicating with each other via the information transmission path 1.

従来1台の通信制御装置が他の通信制御装置に対して連
続して複数の通信パケットを送信しようとするとき第1
番目の通信パケットを送出してから第2番目の通信パケ
ットを送出するまでの間隔は送信側通信制御装置が適当
な時間を定めるか、もしくは全く間隔をあけずに送信し
ていた。
Conventionally, when one communication control device tries to continuously transmit a plurality of communication packets to another communication control device,
The transmission side communication control device sets an appropriate time for the interval from the transmission of the second communication packet to the transmission of the second communication packet, or the transmission is performed without any interval.

発明が解決しようとする課題 従来の方法で通信制御装置1が通信制御装置2に対して
連続して複数の通信パケットを伝送する場合、まず通信
制御装置1から通信制御装置2に対して第1番目の通信
パケットが伝送される。通信制御装置2は受信した通信
パケットの処理が終了するまで受信バッファが使用でき
ないので次の通信パケットを受信することができない。
一方、通信制御装置1は通信制御装置2の受信データ処
理がいつ終了するか分からないため、ただちにまたは一
定時間経過後第2番目の通信パケットを伝送する。しか
し、通信制御装置2では受信データ処理中であるので
『受信不可』の応答が返送される。通信制御装置1は
『受信不可』応答を受信したら一定時間後に第2番目の
パケットを再送する。このシーケンスを通信制御装置2
が受信可能となるまで繰り返す。このため、受信データ
処理に時間が掛かる場合、情報伝送路上には再送パケッ
トが頻繁に送信されるため情報伝送路上のトラフィック
が大きくなり、他の通信に支障を与えるという課題があ
った。
When the communication control device 1 continuously transmits a plurality of communication packets to the communication control device 2 according to the conventional method, first, the communication control device 1 first sends the communication control device 2 to the communication control device 2. The th communication packet is transmitted. The communication control device 2 cannot receive the next communication packet because the reception buffer cannot be used until the processing of the received communication packet is completed.
On the other hand, the communication control device 1 does not know when the reception data processing of the communication control device 2 will end, and therefore transmits the second communication packet immediately or after a lapse of a predetermined time. However, since the communication control device 2 is processing the received data, a response of "reception not possible" is returned. The communication control device 1 retransmits the second packet after a certain time period when it receives the "reception not possible" response. This sequence is applied to the communication control device 2
Repeat until can be received. Therefore, when the received data processing takes a long time, the retransmission packet is frequently transmitted on the information transmission line, so that the traffic on the information transmission line becomes large and other communication is hindered.

課題を解決するための手段 本発明は上記課題を解決するため、送信側通信制御装置
が連続して複数の通信パケットを送出する場合や受信側
から『現在受信不可』の旨の応答を受け取った場合に次
の通信パケットを送出するまでの『待ち時間情報』を受
信通信制御装置から得られるように、通信制御装置内の
属性テーブルに受信パケットを処理するのに必要な『処
理時間』や、現在実行中の処理が終了するまでの『処理
待ち時間』を格納し、送信側通信制御装置が適宜読み出
せるようにするものである。
Means for Solving the Problem In order to solve the above-mentioned problems, the present invention receives a response indicating “currently unreceivable” when a communication control device on a transmitting side continuously sends out a plurality of communication packets or from a receiving side. In order to obtain the "waiting time information" until the next communication packet is sent from the receiving communication control device, the "processing time" required to process the receiving packet in the attribute table in the communication control device, The "processing waiting time" until the currently executed processing is completed is stored so that the transmission side communication control device can read it as appropriate.

作 用 本発明は上記した方法で送信側通信制御装置があらかじ
め次の通信パケットを送信するまでに必要な『待ち時間
情報』を得られることで『受信不可』による不要な通信
パケットを情報伝送路上に送出することが無くなり、情
報伝送路上のトラフィックが減少し、通信効率および再
送の為の処理効率が非常に良くなる。
Operation According to the present invention, the communication control device on the transmitting side can obtain the "waiting time information" required until the next communication packet is transmitted in advance by the above-mentioned method, so that unnecessary communication packets due to "reception not possible" are transmitted on the information transmission path. The transmission on the information transmission path is reduced, and the communication efficiency and the processing efficiency for retransmission are improved.

実施例 以下、図面に従い本発明の実施例を詳細に説明する。本
発明の通信制御方法を適用するシステム例は従来のもの
と同様である。
Embodiments Embodiments of the present invention will be described in detail below with reference to the drawings. An example of a system to which the communication control method of the present invention is applied is the same as the conventional system.

第4図aは本発明の通信パケットの構成を示すものであ
る。スタートビット、送信元アドレスを示すマスターア
ドレス、マスターアドレスに対するパリティビット、相
手先アドレスを示すスレーブアドレス、スレーブアドレ
スに対するパリティビットとアックビット、コントロー
ルフィールド、コントロールフィールドに対するパリテ
ィビットとアックビットと、データフィールドから構成
されている。第4図bはデータフィールドの内容を示す
ものである。データフィールドは1バイト毎のデータと
コンティニュービットとパリティビットとアックビット
で構成されている。パリティビットはパリティチェック
を行うためのビットである。アックビットは受信側が正
常にそれぞれのデータを受信したことを送信側に通知す
る応答ビットで、正常に受信したとき肯定応答“0"、受
信エラーのとき否定応答“1"を返送する。スレーブアド
レスに対して肯定応答が返送されたときは送信側からコ
ントロールフィールドが送信される。否定応答が返送さ
れたときはその時点で通信が終結する。コントロールフ
ィールドは第5図に示すように4ビットで構成され、デ
ータの方法とパケットの制御内容とユニットのロック制
御を示している。データの方向はスレーブからマスター
へ送信する(リード)とマスターからスレーブへ送信す
る(ライト)がある。データの制御内容はスレーブステ
ータス、データ、ロックアドレスのリードやメモリアド
レス、コマンド、データのライトがある。例えば、テー
タのライトを受信するとスレーブ側ではデータフィール
ドのデータを受信し、受信バッファに格納する。ユニッ
トのロックはマスターがスレーブに対してロックをかけ
るもので、一旦ロックをかけられると他のマスターから
スレーブの状態を変えるような内容の通信パケットは受
け付けない。
FIG. 4a shows the structure of the communication packet of the present invention. Start bit, master address indicating source address, parity bit for master address, slave address indicating destination address, parity bit and ACK bit for slave address, control field, parity bit and ACK bit for control field, and data field It is configured. FIG. 4b shows the contents of the data field. The data field is composed of data for each byte, a continue bit, a parity bit, and an ACK bit. The parity bit is a bit for performing a parity check. The ACK bit is a response bit for notifying the transmitting side that the receiving side has normally received the respective data, and returns an affirmative response "0" when receiving normally and a negative response "1" when receiving error. When the positive response is returned to the slave address, the control field is transmitted from the transmission side. When a negative response is returned, the communication ends at that point. The control field is composed of 4 bits as shown in FIG. 5 and indicates the data method, the packet control contents, and the unit lock control. Data can be transmitted from the slave to the master (read) or from the master to the slave (write). The data control contents include reading of slave status, data, lock address, and writing of memory address, command, and data. For example, when a data write is received, the slave side receives the data in the data field and stores it in the receive buffer. The unit is locked by the master locking the slave, and once locked, it does not accept communication packets from other masters that change the slave's state.

以上のような構成要素を持つシステムにおける通信制御
方法について説明する。第1図は特許請求の範囲第1項
記載の発明を適用した場合の通信シーケンスを示す図、
第2図は特許請求の範囲第2項記載の発明を適用した場
合の通信シーケンスを示す図、第6図は本発明の一実施
例に使用する情報通信システムの構成図である。3は情
報伝送路、4.1,4.2は通信制御装置、5.1,5.2は通信パケ
ットのパケット送受信部、7.1,7.2はメモリー部、8.1,
8.2は端末側データ処理部である。第8図は属性テーブ
ルの構成図である。
A communication control method in the system having the above components will be described. FIG. 1 is a diagram showing a communication sequence when the invention described in claim 1 is applied,
FIG. 2 is a diagram showing a communication sequence when the invention described in claim 2 is applied, and FIG. 6 is a configuration diagram of an information communication system used in an embodiment of the present invention. 3 is an information transmission line, 4.1 and 4.2 are communication control devices, 5.1 and 5.2 are packet transmission / reception units for communication packets, 7.1 and 7.2 are memory units, and 8.1,
8.2 is the data processing unit on the terminal side. FIG. 8 is a configuration diagram of the attribute table.

本発明の特許請求の範囲第1項に対応する方法では通信
制御装置2.1から通信制御装置2.2に通信データを伝送す
る場合に通信制御装置2.2内の属性テーブル9上の仮想
アドレスN上に『処理時間』10.Nを格納しておき第1図
に記述するシーケンスで通信を行う。送信側通信制御装
置2.1が複数の通信パケットを連続で通信制御装置2.2に
伝送する場合に通信制御装置2.1は第1番目の通信パケ
ットの伝送に先だって、コントロールフィールドで定義
された『データ読みだし』の機能を利用して通信制御装
置2.2内の属性テーブル上に格納された『処理時間』を
読み出した後、第1番目の通信パケットを伝送する。通
信制御装置2.2は通信制御装置2.1から通信データを受信
した後受信データ処理に入るため次の通信パケットを受
信できない状態にはいる。通信制御装置2.1では先に読
みだしておいた『処理時間』だけ間隔をあけて第2番目
の通信パケットを伝送する。この時点においては通信制
御装置2.2内ではすでに先程受信した通信パケットの処
理は終了しており、通信制御装置2.1が送信した第2番
目の通信パケットは受理される。第3番目の通信パケッ
トはさらに『処理時間』だけ間隔をあけて送出する。こ
のシーケンスを繰り返し、複数の通信パケットを連続し
て送出すれば通信制御装置2.2から『受信不可』となっ
て排除される事なく伝送され、再送による伝送効率の悪
化やトラフィックの増大は発生しない。
In the method according to claim 1 of the present invention, when the communication data is transmitted from the communication control device 2.1 to the communication control device 2.2, the "processing" is performed on the virtual address N on the attribute table 9 in the communication control device 2.2. "Time" 10.N is stored and communication is performed in the sequence described in FIG. When the transmission-side communication control device 2.1 continuously transmits a plurality of communication packets to the communication control device 2.2, the communication control device 2.1 precedes the transmission of the first communication packet, and "reads data" defined in the control field. After the "processing time" stored in the attribute table in the communication control device 2.2 is read out using the function of, the first communication packet is transmitted. Since the communication control device 2.2 receives the communication data from the communication control device 2.1 and then starts receiving data processing, it is in a state where it cannot receive the next communication packet. The communication control device 2.1 transmits the second communication packet with an interval of the "processing time" previously read. At this point of time, the processing of the communication packet received previously has been completed in the communication control device 2.2, and the second communication packet transmitted by the communication control device 2.1 is accepted. The third communication packet is further transmitted with an interval of "processing time". If this sequence is repeated and a plurality of communication packets are continuously transmitted, the communication control device 2.2 transmits the data as "unreceivable" without being eliminated, and the retransmission does not deteriorate the transmission efficiency or increase the traffic.

本発明の特許請求の範囲第2項に対応する方法では通信
制御装置2.1から通信制御装置2.2に通信データを伝送を
試みたが、通信制御装置2.2は以前に受信した通信パケ
ットの処理中であるために『受信不可』の応答を受けた
場合に、通信制御装置2.1が通信パケットを通信制御装
置2.2に対して再送するのに先だって、コントロールフ
ィールドで定義された『データ読みだし』の機能を利用
して通信制御装置2.2内の属性テーブル9上の仮想アド
レスMに格納された『処理待ち時間』10.Mを読みだし、
通信制御装置2.1が通信制御装置2.2へ再送するまでの待
ち時間に対応させる事により、通信制御装置2.1が通信
制御装置2.2に対して伝送した再送パケットが再び『受
信不可』によって排除することを防ぎ、伝送効率の向上
を図る。
In the method according to the second aspect of the present invention, the communication control device 2.1 tried to transmit the communication data to the communication control device 2.2, but the communication control device 2.2 is processing the previously received communication packet. For this reason, when receiving the response of "not receivable", the function of "data read" defined in the control field is used before the communication control device 2.1 retransmits the communication packet to the communication control device 2.2. Then, the "processing wait time" 10.M stored in the virtual address M on the attribute table 9 in the communication control device 2.2 is read,
By supporting the waiting time until the communication control device 2.1 retransmits to the communication control device 2.2, the retransmission packet transmitted by the communication control device 2.1 to the communication control device 2.2 is prevented from being rejected again by "unable to receive". , Improve transmission efficiency.

発明の効果 本発明を採用することで受信側通信制御装置が受信デー
タ処理中のため『受信不可』となって、送信側通信制御
装置が再送を繰り返し、情報伝送路上のトラフィックを
増大させるという問題点を解決することが可能となる。
EFFECTS OF THE INVENTION By adopting the present invention, the reception side communication control device is in the process of receiving data and becomes “unreceivable”, and the transmission side communication control device repeats retransmission and increases traffic on the information transmission path. It becomes possible to solve the point.

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

第1図は本発明の第1の実施例の通信シーケンス図、第
2図は本発明の第2の実施例の通信シーケンス図、第3
図は本発明を適用する情報伝送システムの一実施例の構
成図、第4図aは本発明を適用する通信パケットの構成
図、同図bは通信パケット中のデータフィールドの内容
図、第5図はコントロールフィールドの定義図、第6図
は通信制御装置の構成図、第7図は従来の通信シーケン
ス図、第8図は属性テーブルの構成図である。 1……情報伝送路、2.1〜2.n……通信制御装置。
1 is a communication sequence diagram of the first embodiment of the present invention, FIG. 2 is a communication sequence diagram of the second embodiment of the present invention, and FIG.
FIG. 4 is a configuration diagram of an embodiment of an information transmission system to which the present invention is applied, FIG. 4a is a configuration diagram of a communication packet to which the present invention is applied, FIG. 4b is a content diagram of a data field in the communication packet, and FIG. 6 is a definition diagram of a control field, FIG. 6 is a configuration diagram of a communication control device, FIG. 7 is a conventional communication sequence diagram, and FIG. 8 is a configuration diagram of an attribute table. 1 ... Information transmission path, 2.1 to 2.n ... Communication control device.

フロントページの続き (56)参考文献 特開 昭61−186046(JP,A) 特開 昭55−80946(JP,A) 特開 昭62−146045(JP,A) 特開 昭60−28349(JP,A)Continuation of the front page (56) Reference JP-A-61-186046 (JP, A) JP-A-55-80946 (JP, A) JP-A-62-146045 (JP, A) JP-A-60-28349 (JP , A)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数台の通信制御装置が一系統の情報伝送
路に接続され、前記各通信制御装置は自己の属性を登録
し、他の通信制御装置から読みだすことのできる属性テ
ーブルを具備し、前記複数台の通信制御装置のうちの一
台が通信パケットの送信側となり他の一台が受信側とな
って1対1で情報通信を行う場合において、前記属性テ
ーブル内に前記送信側通信制御装置から前記情報伝送路
経由で受信した通信パケットを処理し次の通信パケット
が受信可能となるまでに要する処理時間を予め格納して
おき、前記送信側通信制御装置が連続して複数の通信パ
ケットを受信側通信制御装置に伝送する場合に、第1番
目の通信パケットの送信に先だって前記受信側通信制御
装置内の前記属性テーブル上の処理時間を読みだし、連
続して送信する複数の通信パケットの送信間隔を調節す
ることを特徴とする通信制御方法。
1. A plurality of communication control devices are connected to an information transmission line of one system, and each communication control device is provided with an attribute table that can register its own attributes and read from other communication control devices. However, in the case where one of the plurality of communication control devices becomes the transmission side of the communication packet and the other one becomes the reception side for one-to-one information communication, the transmission side is set in the attribute table. A processing time required for processing a communication packet received from the communication control device via the information transmission path and enabling reception of the next communication packet is stored in advance, and the transmission side communication control device continuously stores a plurality of times. When the communication packet is transmitted to the receiving side communication control device, the processing time on the attribute table in the receiving side communication control device is read prior to the transmission of the first communication packet, and the continuous transmission is performed. A communication control method characterized by adjusting the transmission interval of the communication packet.
【請求項2】特許請求の範囲第1項記載の属性テーブル
内に受信側通信制御装置が受信した通信パケットに対し
て現在行っている処理が終了し次の通信パケットが受信
可能となるまでの処理待ち時間を格納し、送信側通信制
御装置が通信パケットの送信に先だって前記処理待ち時
間を読みだし、通信パケットを送信するまでの待ち時間
を調節することを特徴とする通信制御方法。
2. Until the next communication packet becomes receivable after the processing currently performed on the communication packet received by the receiving side communication control device is completed in the attribute table according to claim 1. A communication control method comprising storing a processing waiting time, reading the processing waiting time before the transmission side communication control device transmits the communication packet, and adjusting the waiting time until the communication packet is transmitted.
JP63182350A 1988-07-21 1988-07-21 Communication control method Expired - Fee Related JPH077969B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63182350A JPH077969B2 (en) 1988-07-21 1988-07-21 Communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63182350A JPH077969B2 (en) 1988-07-21 1988-07-21 Communication control method

Publications (2)

Publication Number Publication Date
JPH0231542A JPH0231542A (en) 1990-02-01
JPH077969B2 true JPH077969B2 (en) 1995-01-30

Family

ID=16116776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63182350A Expired - Fee Related JPH077969B2 (en) 1988-07-21 1988-07-21 Communication control method

Country Status (1)

Country Link
JP (1) JPH077969B2 (en)

Also Published As

Publication number Publication date
JPH0231542A (en) 1990-02-01

Similar Documents

Publication Publication Date Title
US4337465A (en) Line driver circuit for a local area contention network
JPH0380381B2 (en)
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JP2778373B2 (en) Buffer device with retransmission function
JPH0744567B2 (en) Communication interface device
JPH077969B2 (en) Communication control method
JPH0458215B2 (en)
JP3217397B2 (en) Data transmission method of communication control device
AU609791B2 (en) Improvements in or relating to data communication systems
JPS6316767B2 (en)
JPS648504B2 (en)
JPH04263545A (en) Data communication equipment
JP2615982B2 (en) Communication error recovery method and device
JPH0234518B2 (en)
JPS61187445A (en) Packet transmission control system
JPH06112973A (en) Packet re-transmission system
JPS58219856A (en) Data communication system
JP2560758B2 (en) Communication control device
JPH0157538B2 (en)
JPH06112953A (en) Packet re-transmission system
JP2644558B2 (en) Test apparatus and test method for communication device
JPH0222959A (en) Facsimile communication system
JPS6159944A (en) Sequence number check system
JPS58216B2 (en) Kanjiyoutsuushinmoupackettsutsuushinboshiki
JPS6165649A (en) Communication control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees