JPH02199937A - Block check system for plural received texts - Google Patents
Block check system for plural received textsInfo
- Publication number
- JPH02199937A JPH02199937A JP1743589A JP1743589A JPH02199937A JP H02199937 A JPH02199937 A JP H02199937A JP 1743589 A JP1743589 A JP 1743589A JP 1743589 A JP1743589 A JP 1743589A JP H02199937 A JPH02199937 A JP H02199937A
- Authority
- JP
- Japan
- Prior art keywords
- bcc
- message
- transmission
- check
- circuit
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 claims description 7
- 208000033079 susceptibility to 2 basal cell carcinoma Diseases 0.000 claims 2
- 230000005540 biological transmission Effects 0.000 abstract description 18
- 238000001514 detection method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 208000033748 Device issues Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 208000034100 susceptibility to 1 basal cell carcinoma Diseases 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔概 要〕
連続した複数の電文を受信する場合のブロックチェック
方式に関し、
複数の電文の全体を受信後にこれまで受信した各電文の
チェックを可能にしてCPUの負担を軽減することを目
的とし、
電文の開始を示すスタート・コード(STX)と、内容
を示すコード(TEXT)と、電文の終了を示すエンド
・コード(ETX)と、電文をチェックするチェック・
コード(BCC)で構成される電文を連続して受信する
複数電文受信のブロックチェック方式において、各電文
をチェックする前記チェック・コード(BCC)の後に
、当該電文をチェックした結果を示すチェック・コード
(BCC2)を付加し、前記連続した複数の電文全体を
受信した後でも、前記チェック・コード(BCC2)を
検索することにより、各電文の状態をチェックし得るよ
うに構成す条。[Detailed Description of the Invention] [Summary] Regarding the block check method when receiving a plurality of continuous messages, the present invention makes it possible to check each message received so far after receiving all of the plurality of messages, thereby reducing the burden on the CPU. In order to reduce the number of messages, the start code (STX) that indicates the start of the message, the code (TEXT) that indicates the content, the end code (ETX) that indicates the end of the message, and the check code that checks the message.
In the block check method for multiple message reception in which messages consisting of a code (BCC) are continuously received, a check code indicating the result of checking the message is added after the check code (BCC) that checks each message. (BCC2), and the state of each message can be checked by searching for the check code (BCC2) even after all of the plurality of continuous messages have been received.
本発明は複数の電文を受信する場合のブロックチェック
方式に関する。The present invention relates to a block check method when receiving a plurality of messages.
データ通信は、通常、ホスト計算機と複数の端末装置の
間を伝送回線を介してなされるディジタル通信である。Data communication is typically digital communication performed between a host computer and a plurality of terminal devices via a transmission line.
このための伝送制御符号が種々規定されており、例えば
、TEXTは電文の内容を示すコード、S T X (
Start of Text)はテキスト(ブロック)
の開始を示すスタート・コード、ET X (End
of、 Text)はそのブロックの終わりを示すエン
ド・コード、B CC(Block Check Co
de)はそのブロックの状態をチェックするためのブロ
ックチェック・コード、を示す0通常、STX、ETX
、BCCは8ビツト(1バイト)で構成される。Various transmission control codes have been defined for this purpose; for example, TEXT is a code indicating the content of the message, S T
Start of Text) is text (block)
Start code indicating the start of ET
of, Text) is the end code indicating the end of the block, B CC (Block Check Co.
de) indicates a block check code for checking the state of the block. 0 Usually, STX, ETX
, BCC consists of 8 bits (1 byte).
第6図は従来用いられている電文の構成図である0図示
のように、電文は、電文の開始を示すスタート・コード
STXと、電文の内容を示すコードTEXTと、電文の
終了を示すエンド・コードETXと、このブロックをチ
ェックするチェック・コードBCCとにより構成される
。Figure 6 is a diagram showing the configuration of a conventionally used message. - Consists of code ETX and check code BCC that checks this block.
第7図は第6図構成の電文が複数個連続して送受信する
場合の電文構成である。一般には本図のように複数の電
文(TEXTl=n)送受信される。FIG. 7 shows a message structure when a plurality of messages having the structure shown in FIG. 6 are transmitted and received in succession. Generally, a plurality of messages (TEXTl=n) are sent and received as shown in this figure.
第5図は複数の端末装置(#l〜#n)が制御装置Cと
の間でデエイジーチェインで接続されたシステム構成図
である。このようなシステムでは制御装置Cから各端末
装置に対しポーリングPを行い該当端末装置からデータ
Dが制御5装置Cに返される。この電文のビットエラー
の検出はこの電文をチャネル装置内のチェック回路に入
力し、そのチェック結果をレジスタに記憶させ、受信終
了後このレジスタを読出し、電文の良否を判定する方法
が用いられている。即ち、各電文のBCCのチェックは
、通常、BCC用のレジスタをチャネル装置内に用意し
、受信終了後にCPUがレジスタの値をチェックする。FIG. 5 is a system configuration diagram in which a plurality of terminal devices (#l to #n) are connected to a control device C in a daisy chain. In such a system, the control device C performs polling P for each terminal device, and data D is returned from the corresponding terminal device to the control device C. Bit errors in this message are detected by inputting this message into a check circuit in the channel device, storing the check result in a register, and reading this register after reception is complete to determine whether the message is good or bad. . That is, to check the BCC of each message, a register for BCC is usually prepared in the channel device, and the CPU checks the value of the register after completion of reception.
上述の従来方式において、特に、第7図に示す連続した
電文を受信する場合に問題を生じる。即ち、#lの端末
装置のBCC生成範囲は“l”の範囲であるが、#lか
ら#2に連続して伝送されると、#2の端末装置のBC
C生成範囲は“1+2”の範囲となり、#nの端末装置
のBCC生成範囲は結局°“l+2+−−−+n”がB
CC生成範囲となる。従って、受信終了後にレジスタの
内容をチェックしても、#nの端末装置のBCC生成範
囲でチェックされるため、ビットエラーが検出されても
どの電文(TEXTI〜n)で発生したかをチェックす
ることができない。In the above-mentioned conventional system, a problem arises especially when receiving continuous messages as shown in FIG. That is, the BCC generation range of the terminal device #l is the range of “l”, but when the BCC generation range of the terminal device #2 is continuously transmitted from #l to #2, the BCC generation range of the terminal device #2 is the range of “l”.
The C generation range is “1+2”, and the BCC generation range of the terminal device #n is “l+2+−−−+n” after all.
This is the CC generation range. Therefore, even if the contents of the register are checked after reception is completed, the check will be made within the BCC generation range of terminal device #n, so even if a bit error is detected, it will be checked in which message (TEXTI~n) it occurred. I can't.
このような問題に対処するために各々のブロックのBC
Cを受信したときにチャネル装置から割込みをあげても
らい、CPUがBCCレジスタを読み出すことでチェッ
クすることもできるが、CPUがレジスタから読み出す
以前に次の電文の受信を開始してしまうと、BCCの内
容が変わってしまうため実行が難しい、また、−度、受
信した後にCPLJがソフトウェアによりBCCを算出
することもできるが、この場合にはCPUに負担がかか
り過ぎるという問題がある。To deal with this problem, the BC of each block is
It is possible to check by having the channel device issue an interrupt when a C is received and the CPU reading the BCC register, but if the CPU starts receiving the next message before reading it from the register, the BCC It is difficult to execute because the contents of the BCC will change.Furthermore, CPLJ can also calculate the BCC by software after receiving the BCC, but in this case there is a problem that the CPU is overloaded.
本発明の目的は複数の電文を連続して受信する場合でも
CPUに負担をかけずにどの電文についてもBCCチェ
ックを可能とする複数電文受信におけるブロックチェッ
ク方式を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a block check method for receiving multiple messages that enables BCC checking of any message without placing a burden on the CPU even when multiple messages are received in succession.
第1図は本発明による電文構成図である。本発明は、電
文の開始を示すスタート・コード(STX)と、内容を
示すコード(TEXT)と、電文の終了を示すエンド・
コード(ETX)と、電文をチェックするチェック・コ
ード(BCC)で構成される電文を連続して受信する複
数電文受信のブロックチェック方式において、各電文を
チェックする前記チェック・コード(BCCI)の後に
、当該電文をチェックした結果を示すチェック・コード
(BCC2)を付加し、前記連続した複数の電文全体を
受信した後でも、前記チェック・コード(BCC2)を
検索することにより、各電文の状態をチェックし得るよ
うにしたことを特徴とする。FIG. 1 is a diagram showing the structure of a message according to the present invention. The present invention provides a start code (STX) indicating the start of a message, a code (TEXT) indicating the content, and an end code indicating the end of the message.
In the block check method for receiving multiple messages in which messages consisting of a code (ETX) and a check code (BCC) that checks the messages are continuously received, a check code (BCCI) that checks each message is , a check code (BCC2) indicating the result of checking the message is added, and the status of each message can be checked by searching for the check code (BCC2) even after receiving the entire plurality of consecutive messages. It is characterized by being able to be checked.
本発明による電文構成では前述のように各電文のチェッ
ク・コードBCCの後に、さらにそのチェック結果を示
すチェック・コードBCCを付加することにある。即ち
、電文の終わりはETXと、BCCIと、BCC2とに
より構成される。ここで、BCClは従来のBCCであ
り、BCC2は本発明により追加されたチェック・コー
ドである。In the message structure according to the present invention, as described above, a check code BCC indicating the check result is added after the check code BCC of each message. That is, the end of the message is composed of ETX, BCCI, and BCC2. Here, BCCl is a conventional BCC, and BCC2 is a check code added according to the present invention.
BCC2は前述のようにその電文のチェック結果を示し
、従って、送信側では任意の値を付加してよく受信側の
チャネルがその結果を生成し、メモリに書き込む、この
ような構成にするとCPUが受信終了後に各BCC2を
チェックするだけで電文毎のチェックが可能となる。As mentioned above, BCC2 indicates the check result of the message. Therefore, the sending side can add any value and the receiving side channel generates the result and writes it to the memory. With this configuration, the CPU is It is possible to check each message by simply checking each BCC2 after receiving the message.
第2図は本発明によるBCC転送回路の一実施例ブロッ
ク構成図である。この回路はチャネル装置内に設けられ
る。図において、21はSTX検出回路、22はETX
検出回路、23はBCCl用レジスタ、24はBCC2
用レジスタ、25〜27はゲート回路、28は送受信(
T/R)回路、DBはチャネル装置の内部データバスで
ある。FIG. 2 is a block diagram of an embodiment of the BCC transfer circuit according to the present invention. This circuit is provided within the channel device. In the figure, 21 is the STX detection circuit, 22 is the ETX
Detection circuit, 23 is BCCl register, 24 is BCC2
registers, 25 to 27 are gate circuits, 28 is transmission/reception (
T/R) circuit, DB is the internal data bus of the channel device.
第3,4図は第2図回路の信号タイムチャートであり、
第3図は送信時、第4図は受信時を示す。Figures 3 and 4 are signal time charts of the circuit in Figure 2,
FIG. 3 shows the time of transmission, and FIG. 4 shows the time of reception.
以下に第2図回路の動作を第3,4図を参照しつつ説明
する。The operation of the circuit shown in FIG. 2 will be explained below with reference to FIGS. 3 and 4.
送信時において、STX検出回路21が送信時にSTX
を検出すると信号■がオン(ON)になり、ETX検出
回路22がETXを検出すると信号■がオン(ON)に
なる。そして、第3図に示すように、信号■は信号■が
オンになるとオフ(OFF) L、信号■は信号■がオ
フになった後に後述するタイミングでオフになる。これ
らの信号は送受信回路28に入力される書込み信号■の
立上がりに同期する。At the time of transmission, the STX detection circuit 21 detects the STX at the time of transmission.
When the ETX detection circuit 22 detects ETX, the signal ■ turns on (ON), and when the ETX detection circuit 22 detects ETX, the signal ■ turns on (ON). As shown in FIG. 3, the signal (2) turns off (OFF) when the signal (2) turns on, and the signal (2) turns off at the timing described later after the signal (2) turns off. These signals are synchronized with the rise of the write signal (2) input to the transmitter/receiver circuit 28.
信号■、■が入力されるゲート回路26は信号■。The gate circuit 26 to which the signals ■ and ■ are input is the signal ■.
■の両方共がオンのときのみオン(ゲートを開く)にな
る、BCCI用レジ入レジスタ23タバスDBから送信
データを入力しチェックコードBCCIを生成してゲー
ト回路26に送出する。ゲート回路26は上述したオン
のときBCCI用レジ入レジスタ23を送受信回路28
に送出する。ゲート回路26はBCC1用レジスタ23
の内容を送出する一方向のゲートである。また、ゲート
回路25は送信時はデータバスの内容を送受信回路28
に送出するがBCClの送信時はオフになっている。Transmission data is input from the BCCI register 23 tabus DB, which turns on (gate opens) only when both of (2) are on, generates a check code BCCI, and sends it to the gate circuit 26. When the gate circuit 26 is on as described above, the BCCI cash register 23 is transferred to the transmitter/receiver circuit 28.
Send to. Gate circuit 26 is BCC1 register 23
It is a one-way gate that sends out the contents of . Furthermore, during transmission, the gate circuit 25 transmits the contents of the data bus to the transmitting/receiving circuit 28.
However, it is turned off when BCCl is sent.
受信時において、STX検出回路21.ETX検出回路
22がそれぞれ受信時にSTX、ETXを検出すると信
号■、信号■がオンになる。そして、第4図に示すよう
に、信号■はSTXを検出するとオンし、信号■のオン
のときにオフなり、信号■はETXの検出でオンとなり
、信号■がオフのときにオフになる。そして、信号■、
■のタイミングは送受信回路28に入力される読出し信
号RDに同期する。読出し信号TT5’−はゲート回路
25の方向を切り換えるために用いる。BCC2用レジ
スタ24はデータバスDBを介して受信データを入力し
、生成したBCC2をゲート回路27に送出する。At the time of reception, the STX detection circuit 21. When the ETX detection circuit 22 detects STX and ETX during reception, the signals ■ and ■ are turned on. As shown in Figure 4, the signal ■ turns on when STX is detected, turns off when the signal ■ is on, and the signal ■ turns on when ETX is detected, and turns off when the signal ■ is off. . And the signal ■,
The timing of (2) is synchronized with the read signal RD input to the transmitting/receiving circuit 28. The read signal TT5'- is used to switch the direction of the gate circuit 25. The BCC2 register 24 inputs received data via the data bus DB and sends the generated BCC2 to the gate circuit 27.
ゲート回路27はBCC2用レジスタ24からデータバ
スDBへの一方向のゲートであり、BCC2を受信した
ときオンになる。ゲート回路25はBCC2を受信した
ときオフになり、送受信回路28とデータバスDBを切
り離す、結局、ゲート回路25は送信時にはデータバス
DBから送受信回路28へ切り換わり、受信時は送受信
回路2日からデータバスDBに切り換わる。The gate circuit 27 is a one-way gate from the BCC2 register 24 to the data bus DB, and is turned on when BCC2 is received. When the gate circuit 25 receives BCC2, it turns off and disconnects the transmitting/receiving circuit 28 from the data bus DB.In the end, the gate circuit 25 switches from the data bus DB to the transmitting/receiving circuit 28 when transmitting, and when receiving, it switches from the transmitting/receiving circuit 28 to the transmitting/receiving circuit 28. Switches to data bus DB.
以上のような動作でBCCI 、BCC2の転送が実現
できる。Transfer of BCCI and BCC2 can be realized by the above-described operation.
以上説明したように、本発明によれば、複数の電文を連
続して受信する場合でも、複数の電文の全体を受信後に
これまで受信した各電文のBCCチェックを可能にして
CPUの負担を軽減することができる。As explained above, according to the present invention, even when receiving multiple messages in succession, it is possible to check the BCC of each message received so far after receiving the entirety of the multiple messages, thereby reducing the burden on the CPU. can do.
第1図は本発明による電文構成図、
第2図は本発明の一実施例BCC転送回路図、第3図は
本発明の信号タイムチャート(送信時)第4図は本発明
の信号タイムチャート(受信時)第5図はシステム構成
図、及び
第6,7図は従来の電文構成図である。
(符号の説明)
21・・・STX検出回路、
22・・・ETX検出回路、
23・・・BCCI用レジスタ、
24・・・BCC2用レジスタ、
25.26.27・・・ゲート回路、
28・・・送受信回路。FIG. 1 is a message configuration diagram according to the present invention, FIG. 2 is a BCC transfer circuit diagram of an embodiment of the present invention, FIG. 3 is a signal time chart of the present invention (at the time of transmission), and FIG. 4 is a signal time chart of the present invention. (At the time of reception) FIG. 5 is a system configuration diagram, and FIGS. 6 and 7 are conventional message configuration diagrams. (Explanation of symbols) 21... STX detection circuit, 22... ETX detection circuit, 23... BCCI register, 24... BCC2 register, 25.26.27... Gate circuit, 28. ...Transmission/reception circuit.
Claims (1)
内容を示すコード(TEXT)と、電文の終了を示すエ
ンド・コード(ETX)と、電文をチェックするチェッ
ク・コード(BCC)で構成される電文を連続して受信
する複数電文受信のブロックチェック方式において、 各電文をチェックする前記チェック・コード(BCC)
の後に、当該電文をチェックした結果を示すチェック・
コード(BCC2)を付加し、前記連続した複数の電文
全体を受信した後でも、前記チェック・コード(BCC
2)を検索することにより、各電文の状態をチェックし
得るようにしたことを特徴とする複数電文受信のブロッ
クチェック方式。[Claims] 1. A start code (STX) indicating the start of a message;
A block check method for receiving multiple messages that continuously receives messages consisting of a code (TEXT) indicating the content, an end code (ETX) indicating the end of the message, and a check code (BCC) for checking the message. , the said check code (BCC) that checks each message
is followed by a check mark indicating the result of checking the message.
Even after adding the check code (BCC2) and receiving the entire plurality of continuous messages, the check code (BCC2)
2) A block check method for receiving multiple messages, characterized in that the status of each message can be checked by searching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1017435A JP2755410B2 (en) | 1989-01-30 | 1989-01-30 | Method and apparatus for transmitting and receiving multiple messages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1017435A JP2755410B2 (en) | 1989-01-30 | 1989-01-30 | Method and apparatus for transmitting and receiving multiple messages |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH02199937A true JPH02199937A (en) | 1990-08-08 |
JP2755410B2 JP2755410B2 (en) | 1998-05-20 |
Family
ID=11943945
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1017435A Expired - Fee Related JP2755410B2 (en) | 1989-01-30 | 1989-01-30 | Method and apparatus for transmitting and receiving multiple messages |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2755410B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5962237A (en) * | 1982-10-01 | 1984-04-09 | Nippon Telegr & Teleph Corp <Ntt> | Error rate monitoring system of digital relay transmission line |
-
1989
- 1989-01-30 JP JP1017435A patent/JP2755410B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5962237A (en) * | 1982-10-01 | 1984-04-09 | Nippon Telegr & Teleph Corp <Ntt> | Error rate monitoring system of digital relay transmission line |
Also Published As
Publication number | Publication date |
---|---|
JP2755410B2 (en) | 1998-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4556958A (en) | Device for single line bidirectional data transmission between an intelligent card's microprocessor and a second processor | |
Peña et al. | Uart: A hardware communication protocol understanding universal asynchronous receiver/transmitter | |
JPS602813B2 (en) | Computer-to-computer communication method and system | |
WO1986000734A1 (en) | High speed data transfer between first and second processing means | |
JPH02199937A (en) | Block check system for plural received texts | |
JPH10111842A (en) | Device for receiving synchronization serial transmission data | |
JPS5829243A (en) | Signal monitoring device of transmission system | |
JPH04266239A (en) | Message-oriented digital-stream transmission circuit and digital-stream transmission method and digital-loop transmission system | |
JPH0510435Y2 (en) | ||
US6771716B1 (en) | Method of communication with coherence checking and device for the implementation thereof | |
JPH02234254A (en) | Data transfer circuit | |
JP2924209B2 (en) | Data transfer device and data transfer method | |
JP2953878B2 (en) | Data transfer system | |
JPS59200365A (en) | Transfer system of control information | |
JPH02193429A (en) | Method for communication between devices | |
CN116185936A (en) | SPI communication data receiving and transmitting abnormity detection control system and detection method | |
JPH06104875A (en) | Serial port | |
JPH0736572B2 (en) | Data transmission method | |
JPH0865277A (en) | Serial data transmitting method | |
JPS6256545B2 (en) | ||
JPH034623A (en) | Serial data transmission system | |
JPH0588995A (en) | Data communication system | |
JPH05347653A (en) | Data transmission fault detection system | |
JPS6124093A (en) | P-rom writer | |
JPH034942B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |