JPH0226433A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH0226433A
JPH0226433A JP17680888A JP17680888A JPH0226433A JP H0226433 A JPH0226433 A JP H0226433A JP 17680888 A JP17680888 A JP 17680888A JP 17680888 A JP17680888 A JP 17680888A JP H0226433 A JPH0226433 A JP H0226433A
Authority
JP
Japan
Prior art keywords
signal
signal block
sequence number
received
block
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
JP17680888A
Other languages
Japanese (ja)
Inventor
Shizu Sumita
住田 志津
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP17680888A priority Critical patent/JPH0226433A/en
Publication of JPH0226433A publication Critical patent/JPH0226433A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To prevent double receiving by comparing the sequence number of a received signal block addressed to a self-equipment with a stored sequence number and anulling the signal block where the coincidence of the two sequence numbers is detected. CONSTITUTION:A transmission signal is divided into suitable signal blocks by a control part 6, a series of sequence numbers are given to the signal blocks and the latest sequence number of the signal block is stored on a reception side. When the signal block is received, it is checked whether or not the sequence number of the signal block is the same as the sequence number of the signal block received previously, when they are the same, the signal block received twice and stored in a buffer memory is cleared and is not transferred to a memory 10. Thus, double receiving can be prevented.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明はデータ通信装置に関し、特に二重受信を防止
できる装置に係わる。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a data communication device, and particularly to a device capable of preventing double reception.

「従来の技術」 従来のデータ通信装置(以下プロセッサと言う)を第6
図乃至第8図を参照して説明する。共通バスla、lb
に複数のプロセッサP+、Pz・・・が接続される。常
時各プロセッサは、受信モードにあり、信号受信部2が
スイッチ3の接点a、cを通して共通バス1aに接続さ
れ、信号送信部4がスイッチ5の接点a、cを通して共
通バス1bに接続される。これら信号受信部2及び信号
送信部4は各機能ブロックを制御する制御部6により制
御される。いま、あるプロセッサがデータを他の1つの
プロセッサに送信しようとする場合には、送信元プロセ
ッサの制御部6は信号受信部2がデータを受信中である
か否かをチエツクすることにより、共通バスla上にデ
ータがないこと、つまり共通バス1aが空いていること
を確認(第7図のステップ1)した後、スイッチ3.5
を制御して、それぞれの可動接点Cをb側に切損え、プ
ロセッサP1において点線で示すように、信号送信部4
を共通バス1aに、信号受信部2を共通バス1bに接続
し、受信モードより送信モードに切換える(ステップ2
)、制御部6は送信データを適当な長さの信号ブロック
(データブロックとも言う)に分割し、第8図に示すよ
うな信号ブロックのフォーマットで、送出先プロセッサ
番号・送出元プロセッサ番号、データバイト数、データ
の順に次に送信すべき信号ブロックSを設定しくステッ
プ3)、信号送信部4より送出させる(ステップ4)、
この信号ブロックSは他の全てのプロセッサの信号受信
部2で受信され、いったんバッファメモリ8に書き込ま
れる(ステップ5)、制御部6はそのあて先をチエツク
しくステップ6)、自装置あてでなければバッファメモ
リ8をクリアさせ(ステップ7)、自装置あてであれば
、必要に応じゲート回路9を介してバッファメモリ8の
データをメモリ10に転送させる(ステップ8)。
"Conventional technology" A conventional data communication device (hereinafter referred to as a processor) is
This will be explained with reference to FIGS. 8 to 8. Common bus la, lb
A plurality of processors P+, Pz, . . . are connected to. Each processor is always in reception mode, with the signal receiving section 2 being connected to the common bus 1a through contacts a and c of the switch 3, and the signal transmitting section 4 being connected to the common bus 1b through contacts a and c of the switch 5. . These signal receiving section 2 and signal transmitting section 4 are controlled by a control section 6 that controls each functional block. Now, when one processor tries to transmit data to another processor, the control section 6 of the transmission source processor checks whether the signal receiving section 2 is receiving data or not. After confirming that there is no data on the bus la, that is, that the common bus la is free (step 1 in Figure 7), switch 3.5.
is controlled to disconnect each movable contact C to the b side, and as shown by the dotted line in the processor P1, the signal transmitter 4
is connected to the common bus 1a, and the signal receiving section 2 is connected to the common bus 1b, and the reception mode is switched to the transmission mode (step 2).
), the control unit 6 divides the transmission data into signal blocks (also called data blocks) of an appropriate length, and in the signal block format shown in FIG. Set the signal block S to be transmitted next in the order of the number of bytes and data (step 3), send it from the signal transmitter 4 (step 4),
This signal block S is received by the signal receiving units 2 of all other processors and once written into the buffer memory 8 (step 5).The control unit 6 checks its destination (step 6), and if it is not addressed to its own device. The buffer memory 8 is cleared (step 7), and if the data is for the own device, the data in the buffer memory 8 is transferred to the memory 10 via the gate circuit 9 as necessary (step 8).

メモリ10へのデータの書き込みが終了すると、制御部
6は次の信号プロ7りSが受信可能であることを示すた
めに応答信号Rを信号送信元へ信号送信部4より送出さ
せる(ステップ9)。
When the writing of data to the memory 10 is completed, the control unit 6 causes the signal transmitting unit 4 to send a response signal R to the signal transmitting source to indicate that the next signal program 7R S can be received (step 9 ).

送信元の制御部6は信号を送信してより所定時間内に応
答信号Rを受信したか否かをチエツクしくステップ10
)、もし応答信号Rが途中で紛失し、所定時間内に来な
ければ、ステップ4に戻って前の信号ブロックSを再送
させる。また所定時間内に応答信号を受信すればステッ
プ3に戻って、次の信号ブロックを設定し、以下上述と
同様の動作が繰返されて、分割された信号ブロックの全
ての送受が行われる。なお制御部6にはコンピュータが
用いられるのが普通である。
The control unit 6 at the transmission source checks whether the response signal R is received within a predetermined time after transmitting the signal (step 10).
), if the response signal R is lost on the way and does not arrive within a predetermined time, the process returns to step 4 and the previous signal block S is retransmitted. Further, if a response signal is received within a predetermined time, the process returns to step 3 to set the next signal block, and the same operations as described above are repeated to perform transmission and reception of all the divided signal blocks. Note that a computer is normally used as the control unit 6.

[発明が解決しようとする課題」 応答信号の紛失によって再送された信号ブロックは送信
先で受信され、バッファメモリ8にストアされる。送信
先ではあて先はチエツクされるがデータの内容まではチ
エツクされないので、既にメモリ10にストアされてい
るにもかかわらず、バッファメモリ8のデータはメモリ
10に転送され、同じデータが再度メモリ10にストア
される。
[Problem to be Solved by the Invention] A signal block retransmitted due to loss of a response signal is received at the destination and stored in the buffer memory 8. At the destination, the destination is checked, but the contents of the data are not checked. Therefore, even though the data has already been stored in the memory 10, the data in the buffer memory 8 is transferred to the memory 10, and the same data is stored in the memory 10 again. Stored.

従って、転送に要する時間などの時間的なロスが発生す
ると共にメモリ10のストア領域が余分に占有されて無
駄である。この発明の目的はこのような不都合をなくそ
うとするものである。
Therefore, a time loss such as the time required for transfer occurs, and the storage area of the memory 10 is occupied in excess, which is wasteful. The purpose of this invention is to eliminate such inconveniences.

「課題を解決するための手段」 共通バスに接続され、 信号送信部と、信号受信部と、その信号受信部で受信さ
れた信号を一時記憶するバッファメモリと、そのバッフ
ァメモリより転送されたデータを記憶するメモリと、上
記各部を制御する制御部とを備え、 送信信号を適当な長さのブロックに分割して送信し、 自装置あての信号ブロックを受信すると応答信号を送信
し、 送信先よりの応答信号を受信して次の信号ブロックを送
信し、送信先よりの応答信号を受信しない場合に前の信
号ブロックを再送するデータ通信装置において、この発
明によれば、 上記送信信号の分割された信号ブロックにシーケンス番
号を付与する手段が上記制御部に設けられ、 受信した自装置あての上記信号ブロックの最新の上記シ
ーケンス番号を記憶するシーケンス番号記憶手段と、 受信した自装置あての信号ブロックの上記シーケンス番
号と上記シーケンス番号記憶手段に記憶されているシー
ケンス番号とを比較し、両シーケンス番号の一致を検出
する比較手段が上記データ通信装置に設けられ、 その比較手段によりシーケンス番号の一致を検出された
信号ブロックを破棄する手段が上記制御部に設けられる
"Means for solving the problem" Connected to a common bus, there is a signal transmitter, a signal receiver, a buffer memory that temporarily stores the signals received by the signal receiver, and data transferred from the buffer memory. It is equipped with a memory that stores the information, and a control unit that controls each of the above parts, and divides the transmission signal into blocks of appropriate length and transmits them.When it receives a signal block addressed to itself, it transmits a response signal, and sends the signal to the destination. According to the present invention, in a data communication device that receives a response signal from a destination and transmits the next signal block, and retransmits the previous signal block when a response signal is not received from the destination, the present invention provides a method for dividing the transmitted signal. The controller is provided with means for assigning a sequence number to the received signal block, a sequence number storage means for storing the latest sequence number of the received signal block addressed to the own device, and a sequence number storage means for storing the latest sequence number of the received signal block addressed to the own device. The data communication device is provided with a comparison means for comparing the sequence number of the block with the sequence number stored in the sequence number storage means and detecting a match between the two sequence numbers, and the comparison means detects a match between the sequence numbers. The control section is provided with means for discarding the signal block in which the signal block is detected.

「実施例」 受信側のプロセッサで、メモリ10へ同じデータブロッ
クが二重にストアされるような不都合を防止するために
、この発明では信号ブロックの番号管理が行われる。即
ぢこの発明では信号フォーマットとして第2図に示すよ
うに、データに先立って一連のシーケンス番号が付与さ
れる。
Embodiment In order to prevent the same data block from being stored twice in the memory 10 by the processor on the receiving side, the present invention manages the number of signal blocks. That is, in the present invention, as shown in FIG. 2, a series of sequence numbers are assigned in advance of data as a signal format.

この発明の実施例を第1図に、第6図と対応する部分に
は同じ符号を付し、重複説明の一部を省略する。第1図
の動作を第3図の動作フローチャートを参照して説明す
る。送信元では制御部6により共通バスが空きか否かが
チエツクされ(ステップ1)、空いていれば受信モード
より送信モードへ切換えが行われる(ステップ2)。
An embodiment of the present invention is shown in FIG. 1, and parts corresponding to those in FIG. 6 are denoted by the same reference numerals, and some redundant explanations will be omitted. The operation of FIG. 1 will be explained with reference to the operation flowchart of FIG. 3. At the source, the control unit 6 checks whether the common bus is free (step 1), and if it is free, the mode is switched from the reception mode to the transmission mode (step 2).

制御部6により次に送信すべき信号ブロックが設定され
るが、その際新しいシーケンス番号lがデータブロック
に付与される(ステップ3)、シーケンス番号lは例え
ばi−1よりはじめて1づつ増加する0次に信号ブロッ
クStが送信され(ステップ4)、送信先の信号受信部
2で受信されてバッファメモリ8にストアれさる(ステ
ップ5)、制御部6により信号ブロックSiの送出先プ
ロセッサ番号が自装置の番号であるか否かがチエツクさ
れる(ステップ6)、その結果自装置の番号でなければ
バッファメモリ8にストアされた信号ブロックSiはク
リアされ(ステップ7)、自装置の番号であれば信号ブ
ロックSiのシーケンス番号がシーケンス番号記憶手段
11に格納“された前回受信した信号ブロックのシーケ
ンス番号と一致しているか否かが比較器12により比較
され(ステップ8)、もし同じ番号であれば、制御部6
の制御によりバッファメモリ8の信号ブロックStはク
リアされ(ステップ7)、異なっていれば、必要に応じ
ゲート回路9を介してバッファメモリ8よりメモリ10
へ信号ブロックSlのデータ等が転送される(ステップ
9)、また制御部6の制御によりシーケンス番号記憶手
段11に記憶されるシーケンス番号は信号ブロックSI
のシーケンス番号iに更新される(ステップ10)。
The control unit 6 sets the signal block to be transmitted next, and at this time a new sequence number l is assigned to the data block (step 3).The sequence number l is, for example, 0, which increases by 1 starting from i-1. Next, the signal block St is transmitted (step 4), received by the destination signal receiving section 2, and stored in the buffer memory 8 (step 5). It is checked whether it is the number of the device (step 6). As a result, if the number is not the number of the device itself, the signal block Si stored in the buffer memory 8 is cleared (step 7). For example, the comparator 12 compares whether the sequence number of the signal block Si matches the sequence number of the previously received signal block stored in the sequence number storage means 11 (step 8). For example, the control unit 6
The signal block St of the buffer memory 8 is cleared by the control of the buffer memory 8 (step 7), and if different, the signal block St is cleared from the buffer memory 8 through the gate circuit 9 as necessary.
The data etc. of the signal block SI are transferred to the signal block SI (step 9), and the sequence number stored in the sequence number storage means 11 under the control of the control unit 6 is transferred to the signal block SI.
is updated to the sequence number i (step 10).

上記ステップ10が終了した場合、或いは上記ステップ
8において信号Stが前と同じシーケンス番号である場
合には、送信部4より、次の信号ブロックを受信可能で
あることを示す応答信号Rが送出される(ステップ11
)。
When the above step 10 is completed, or when the signal St has the same sequence number as before in the above step 8, the transmitter 4 sends a response signal R indicating that the next signal block can be received. (Step 11
).

送信元の制御部6では信号ブロック31を送出してより
所定時間内に応答信号Rが受信されたか否かがチエツク
され(ステップ12)、受信した場合には、ステップ3
に戻って次に送信すべき信号ブロックに新しいシーケン
ス番号が付与され、一方、応答が受信されない場合には
、ステップ4に戻って信号ブロックSiが再度送信され
、以下前と同様の動作が繰返される。
The control unit 6 at the transmission source checks whether the response signal R has been received within a predetermined time after sending the signal block 31 (step 12), and if it has been received, it is checked in step 3.
Returning to step 4, the next signal block to be transmitted is given a new sequence number, while if no response is received, returning to step 4, the signal block Si is transmitted again, and the same operations as before are repeated. .

第1図において、各ターミナルにおける送信信号、受信
信号それぞれのキャリアを異なる周波数f、、f、に選
び、通常の受信モードでは周波数f1を受信、f2を送
信に使用するものとし、送信元のみ周波数を反転して、
送信モードとする場合、つまりflを送信、f、を受信
に反転する場合には、第4図に示すように、スイッチ3
.5を省略し、共通バスを1つにすることができる。第
4図ではプロセッサP+のみが送信モード、他は受信モ
ードである。
In Fig. 1, the carriers of the transmitted and received signals at each terminal are selected at different frequencies f, , f, and in the normal reception mode, frequency f1 is used for reception and f2 is used for transmission, and only the transmitter's frequency Invert the
When setting to the transmission mode, that is, when inverting fl to transmit and f to receive, switch 3 is turned on as shown in Fig. 4.
.. 5 can be omitted and the number of common buses can be reduced to one. In FIG. 4, only processor P+ is in transmit mode, and the others are in receive mode.

また第1図のプロセッサP、相互が半二重通信のみ行い
、全二重通信を行う必要がなければ、第5図に示すよう
に、スイッチ3及び共通バス1aのみを使用し、スイッ
チ5及び共通バスlbを省略できる。第5図でも、プロ
セッサP、のみが送信モード、他は受信モードである。
Further, if the processors P in FIG. 1 perform only half-duplex communication with each other and there is no need to perform full-duplex communication, only the switch 3 and the common bus 1a are used, and the switch 5 and The common bus lb can be omitted. Also in FIG. 5, only the processor P is in the transmitting mode and the others are in the receiving mode.

各プロセッサは信号ブロック又は応答を送出するときの
み可動接点Cをb側に切換えて送信部4と共通バス1a
に接続し、その他の場合には可動接点Cをa側に接続し
、信号受信部2のみを共通バス1aに接続する。
Each processor switches the movable contact C to the b side only when transmitting a signal block or response, and communicates with the transmitter 4 through the common bus 1a.
In other cases, the movable contact C is connected to the a side, and only the signal receiving section 2 is connected to the common bus 1a.

「発明の効果」 この発明によれば送信信号は適当な信号ブロックに分割
され、その各信号ブロックに一連のシーケンス番号が付
与され、受信側において信号ブロックの最新のシーケン
ス番号が記憶され、信号ブロック受信時にその信号ブロ
ックのシーケンス番号がその前に受信した信号ブロック
のシーケンス番号と同一であるか否かがチエツクされ、
もし同一であればパンツアメモリにストアされている二
重受信した信号ブロックはクリアされ、メモ1月0に転
送されることはない。従ってこの発明によれば、従来問
題となっていた二重受信が完全に防止される。
"Effects of the Invention" According to the present invention, a transmission signal is divided into appropriate signal blocks, a series of sequence numbers are assigned to each signal block, the latest sequence number of the signal block is stored on the receiving side, and the signal block is Upon reception, it is checked whether the sequence number of the signal block is the same as the sequence number of the previously received signal block;
If they are the same, the duplicate received signal block stored in the panzer memory will be cleared and will not be transferred to memo January 0. Therefore, according to the present invention, double reception, which has been a problem in the past, can be completely prevented.

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

第1図はこの発明の実施例を示すデータ通信装置のブロ
ック図、第2図はこの発明で使用される送信信号の信号
ブロックのフォーマットを示す図、第3図は第1図の実
施例の動作フローチャート、第4図及び第5図はそれぞ
れこの発明の変形実施例の要部を示すブロック図、第6
図は従来のデータ通信装置のブロック図、第7図は第6
図のデータ通信装置の動作フローチャート、第8図は従
来の送信信号の信号ブロックのフォーマットを示す図で
ある。
FIG. 1 is a block diagram of a data communication device showing an embodiment of this invention, FIG. 2 is a diagram showing the format of a signal block of a transmission signal used in this invention, and FIG. 3 is a block diagram of a data communication device according to an embodiment of the invention. The operation flowchart, FIG. 4 and FIG. 5 are block diagrams showing main parts of a modified embodiment of the present invention, and FIG.
The figure is a block diagram of a conventional data communication device, and Figure 7 is a block diagram of a conventional data communication device.
FIG. 8 is an operation flowchart of the data communication device shown in FIG. 8, and FIG. 8 is a diagram showing the format of a signal block of a conventional transmission signal.

Claims (1)

【特許請求の範囲】[Claims] (1)共通バスに接続され、 信号送信部と、信号受信部と、その信号受信部で受信さ
れた信号を一時記憶するバッファメモリと、そのバッフ
ァメモリより転送されたデータを記憶するメモリと、上
記各部を制御する制御部とを備え、 送信信号を適当な長さの信号ブロックに分割して送信し
、 自装置あての信号ブロックを受信すると応答信号を送信
し、 送信先よりの応答信号を受信して次の信号ブロックを送
信し、送信先よりの応答信号を受信しない場合に前の信
号ブロックを再送するデータ通信装置において、 上記制御部に設けられ、上記送信信号の分割された信号
ブロックにシーケンス番号を付与する手段と、 受信した自装置あての上記信号ブロックの最新の上記シ
ーケンス番号を記憶するシーケンス番号記憶手段と、 受信した自装置あての信号ブロックの上記シーケンス番
号と上記シーケンス番号記憶手段に記憶されているシー
ケンス番号とを比較し、両シーケンス番号の一致を検出
する比較手段と、 上記制御部に設けられ、上記比較手段によりシーケンス
番号の一致を検出された信号ブロックを破棄する手段と
を具備するデータ通信装置。
(1) A signal transmitter, a signal receiver, a buffer memory that temporarily stores signals received by the signal receiver, and a memory that stores data transferred from the buffer memory, which are connected to a common bus; It is equipped with a control section that controls each of the above sections, divides the transmission signal into signal blocks of appropriate length and transmits them, transmits a response signal when it receives a signal block addressed to itself, and receives a response signal from the destination. In a data communication device that receives a signal block, transmits the next signal block, and retransmits the previous signal block when a response signal from the destination is not received, the signal block is provided in the control unit and is a signal block obtained by dividing the transmission signal. means for assigning a sequence number to the received signal block addressed to the own device; sequence number storage means for storing the latest sequence number of the received signal block addressed to the own device; and sequence number storage means for storing the sequence number and the sequence number of the received signal block addressed to the own device. Comparing means for comparing a sequence number stored in the means and detecting a match between both sequence numbers; and means provided in the control section for discarding a signal block whose sequence numbers have been detected to match by the comparing means. A data communication device comprising:
JP17680888A 1988-07-15 1988-07-15 Data communication equipment Pending JPH0226433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17680888A JPH0226433A (en) 1988-07-15 1988-07-15 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17680888A JPH0226433A (en) 1988-07-15 1988-07-15 Data communication equipment

Publications (1)

Publication Number Publication Date
JPH0226433A true JPH0226433A (en) 1990-01-29

Family

ID=16020202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17680888A Pending JPH0226433A (en) 1988-07-15 1988-07-15 Data communication equipment

Country Status (1)

Country Link
JP (1) JPH0226433A (en)

Similar Documents

Publication Publication Date Title
US4748560A (en) Occupancy control system for plural serial buses
US4769807A (en) Loop back control system
WO1984002628A1 (en) Method and apparatus for graceful preemption on a digital communications link
US5311510A (en) Data storing system for a communication control circuit
JPH0226433A (en) Data communication equipment
GB2251531A (en) Device for expanding the functions of a serial databus.
JPH0234518B2 (en)
JPS5942506B2 (en) Multiplexed circular bus system
JPS58225756A (en) Serial data communication device
JPH054040Y2 (en)
JP2738314B2 (en) Switching system of N + 1 redundant circuit controller
JPH0350927A (en) Frame alinger and its control method
KR100427764B1 (en) Apparatus for Interface between Devices of different Data Bus
JPH0438618Y2 (en)
JP2743880B2 (en) Broadcast message duplicate reception prevention function method
JP2822412B2 (en) Asynchronous line controller
JPH08171495A (en) Duplex operation system
JPH02217039A (en) Poling/selecting control procedure system
JPS61196353A (en) Multiplexing bus control system
JPS61252723A (en) Signal transmission system for distribution line
JPS61108239A (en) Method for transferring right of communication master station
JPS6188635A (en) Signal transmitting and receiving circuit
JPS58198941A (en) Simple data transmitter
JPS61287357A (en) Reception confirming system for data transmission
JPH05143498A (en) Method for coping with communication fault in distributed system