JP2720513B2 - Communication method and communication system device used for the communication method - Google Patents

Communication method and communication system device used for the communication method

Info

Publication number
JP2720513B2
JP2720513B2 JP1106467A JP10646789A JP2720513B2 JP 2720513 B2 JP2720513 B2 JP 2720513B2 JP 1106467 A JP1106467 A JP 1106467A JP 10646789 A JP10646789 A JP 10646789A JP 2720513 B2 JP2720513 B2 JP 2720513B2
Authority
JP
Japan
Prior art keywords
communication
data
flag
synchronization signal
error
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
JP1106467A
Other languages
Japanese (ja)
Other versions
JPH02285742A (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.)
Showa Denko Materials Co Ltd
Original Assignee
Hitachi Chemical 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 Hitachi Chemical Co Ltd filed Critical Hitachi Chemical Co Ltd
Priority to JP1106467A priority Critical patent/JP2720513B2/en
Publication of JPH02285742A publication Critical patent/JPH02285742A/en
Application granted granted Critical
Publication of JP2720513B2 publication Critical patent/JP2720513B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、家庭内の電化機器を端末とする制御装置を
共通の通信路によって制御するホームオートメイション
システムに使用される通信方法とその通信方法に用いる
通信システム装置に関する。
Description: TECHNICAL FIELD The present invention relates to a communication method used in a home automation system for controlling a control device having a home electric appliance as a terminal through a common communication path, and communication thereof. The present invention relates to a communication system used in the method.

(従来の技術) 電子機器の発達に伴い、複数の装置を統合的に制御す
るために、複数の端末機器と複数の操作機器とを各々通
信回路を介して結合し制御するといういわゆるネットワ
ークによる制御方法が使用されるようになってきた。
(Prior Art) With the development of electronic devices, so-called network control in which a plurality of terminal devices and a plurality of operation devices are connected and controlled via communication circuits to control a plurality of devices in an integrated manner. Methods have come to be used.

このように複数の通信機によって構成された通信装置
による通信方法は、JISC−6325に代表されるように、1
つの送信局から1つ以上の受信局に受信局を選択するセ
レクト信号と制御する信号とを送る方法と、本願出願人
が以前に提出した特願昭62−334213号に示すように、1
つの通信路に接続された複数の通信装置が1つの同期信
号によって同時に通信先と通信内容を含む通信データの
送受信を行う方法とがある。
As described above, a communication method using a communication device including a plurality of communication devices, as represented by JISC-6325, is a communication method.
A method of transmitting a select signal for selecting a receiving station and a signal for controlling the transmitting station from one transmitting station to one or more receiving stations, and as disclosed in Japanese Patent Application No. 62-334213 previously filed by the present applicant,
There is a method in which a plurality of communication devices connected to one communication path simultaneously transmit and receive communication data including communication contents to and from a communication destination by one synchronization signal.

ところで、このような複数の通信機間における通信信
号は外来のノイズや通信機内部の同期遅れによるデータ
の誤りが発生し、その誤りが判別できなければ、端末装
置の誤動作や暴走を引き起こし、大きな事故になる。
By the way, such communication signals between a plurality of communication devices cause data errors due to external noise and synchronization delays inside the communication devices. If the errors cannot be determined, malfunctions and runaway of the terminal device may occur, resulting in large errors. It will be an accident.

そこで、JISC−6325に代表されるような方法において
は、制御データに冗長部を設けデータが奇数または偶数
になるようにし、受信する局内部でそのデータが奇数ま
たは偶数であることを確認するというパリティチェック
等の方法を用いてエラーを検出し、エラーが発生した場
合には受信局がエラーを発生したデータを破棄し、送信
局にエラー発生信号を送るとともに再度そのデータを送
るよう要求することが行われている。
Therefore, in a method represented by JISC-6325, a redundant part is provided in control data so that data becomes odd or even, and it is confirmed that the data is odd or even in the receiving station. If an error is detected by using a method such as parity check, and if an error occurs, the receiving station must discard the data in which the error has occurred, send an error signal to the transmitting station, and request that the data be sent again. Has been done.

また、1つの通信路に接続された複数の通信装置が1
つの同期信号によって同時に送受信を行う方法において
は、2つの同期信号間において複数の通信機が同時に送
受信するので、ある通信機が同期できなかったときにそ
の同期できなかったことを他の通信機に送信する手段が
ないため、誤動作を引き起こすという問題があったた
め、本願出願人は以前に提出した特願昭63−235197号に
示すように、同期信号間に通信データの他に同期の終了
を示すフレーム終了信号を設け、1つの通信機が同期ず
れを起こした場合でも、他の通信装置で同期ずれを検出
できる方法を開発した。
In addition, a plurality of communication devices connected to one communication path
In the method of transmitting and receiving simultaneously using two synchronization signals, since a plurality of communication devices simultaneously transmit and receive between two synchronization signals, when one communication device cannot be synchronized, the fact that the synchronization cannot be performed is transmitted to another communication device. Since there is no means for transmitting, there has been a problem of causing a malfunction, and as shown in Japanese Patent Application No. 63-235197 previously filed, the present applicant indicates the end of synchronization in addition to communication data between synchronization signals. A method has been developed in which a frame end signal is provided so that even if one communication device loses synchronization, another communication device can detect the synchronization loss.

(発明が解決しようとする課題) 従来のJISC−6325に代表されるような方法において
は、エラーが起こったときに、受信側からエラー検出信
号を送信側に送り、送信側はこれに応じてデータを再度
送らねばならず、そのエラー信号の送受信中は他の通信
が行われない。従って、大容量のデータを高速で通信処
理する場合には有効な手段であるが、ホームオートメイ
ションのように小容量のデータと応答性が要求される用
途においては、必要とする応答性が得られず待ち時間が
多くなるという問題がある。
(Problems to be Solved by the Invention) In a method represented by the conventional JISC-6325, when an error occurs, an error detection signal is sent from the receiving side to the transmitting side, and the transmitting side responds accordingly. The data must be sent again, and no other communication takes place during the transmission and reception of the error signal. Therefore, this is an effective means for high-speed communication processing of large volumes of data. However, in applications where small volumes of data and responsiveness are required, such as home automation, the required responsiveness can be obtained. There is a problem that the waiting time increases.

また、従来の他の方法、すなわち第4図(a)に示す
ように、1つの通信路4に接続された複数の通信装置20
0が、第4図(b)に示す信号形式の1つの同期信号301
によって同時に送受信を行う方法においては、フレーム
終了信号331が通信データ302と同期できなかった場合に
は、通信にエラーが発生したと判断でき各通信装置はエ
ラー処理が行えるが、通信装置200からの通信データ302
と同期信号301との同期がずれた場合には、通信路4へ
伝送された通信データ302が受信できず、また、同期信
号301とフレーム終了信号331の両方が同期が取れていて
も、通信データ302と同期信号301、または通信データ30
2とフレーム終了信号331との間で同期がずれた場合に
は、エラーの発生であることが検出できず、通信路4上
でデータが干渉し誤動作や暴走の原因となってしまうと
いう問題があった。
Further, as shown in FIG. 4 (a), a plurality of communication devices 20 connected to one communication path 4 are used.
0 is one synchronization signal 301 of the signal format shown in FIG.
In the method of transmitting and receiving at the same time, when the frame end signal 331 cannot be synchronized with the communication data 302, it can be determined that an error has occurred in the communication and each communication device can perform error processing. Communication data 302
If the synchronization between the synchronization signal 301 and the synchronization signal 301 is shifted, the communication data 302 transmitted to the communication path 4 cannot be received, and even if both the synchronization signal 301 and the frame end signal 331 are synchronized, Data 302 and synchronization signal 301 or communication data 30
If the synchronization between the frame 2 and the frame end signal 331 is out of synchronization, it cannot be detected that an error has occurred, and data may interfere on the communication path 4 and cause a malfunction or a runaway. there were.

本発明は、エラー検出に優れ安全な通信方法およびそ
の通信方法に用いられる通信システム装置を提供する。
The present invention provides a secure communication method that is excellent in error detection and a communication system device used in the communication method.

(課題を解決する手段) 本発明の通信方法は、1つの通信路によって結合され
た複数の通信装置が1つの同期信号301によって同時に
送受信を行い、送受信される通信データ302が互いに区
別できる通信先と通信内容からなるデータ部311と各通
信装置における通信不良の有無を示す通信フラグ312と
から成り、自己の通信装置が送信したデータを受信した
ときにエラーがなければ通信フラグ312の該当箇所にフ
ラグを立て、エラーがあれば該当箇所にフラグを立て
ず、かつ、1つ以上の通信装置に通信エラーが生じた場
合に通信データの破棄を行うことを特徴とする。
(Means for Solving the Problems) According to a communication method of the present invention, a plurality of communication devices connected by one communication path simultaneously transmit and receive by one synchronization signal 301 and communication data 302 to be transmitted and received can be distinguished from each other. And a communication flag 312 indicating the presence or absence of a communication failure in each communication device.If there is no error when receiving data transmitted by the own communication device, the communication flag 312 A flag is set, a flag is not set at a corresponding portion if an error occurs, and communication data is discarded when a communication error occurs in one or more communication devices.

この通信方法では、第1図(a)に示すように、同期
信号301、全通信装置のデータ部311、全通信装置のフラ
グ部312の順に並べられた信号形式を用いることがで
き、また、第1図(b)に示すように、同期信号301の
後に、1つの通信装置のデータ部311とその通信装置の
フラグ部312を組とする信号を1以上並べた信号形式を
用いることもできる。このような信号形式は第1図
(c)に示すように、データ部及び/又はフラグ部にお
いて、それぞれ拡張された信号を用いれば、通信装置に
接続された端末機器の制御やデータ収集が精密にでき好
ましい。さらに、第1図(d)に示すように、通信デー
タ302の後に、信号の終了を示す終了信号303を有する信
号形式を使用することもできる。
In this communication method, as shown in FIG. 1 (a), a signal format in which a synchronization signal 301, a data section 311 of all communication apparatuses, and a flag section 312 of all communication apparatuses are arranged in this order can be used. As shown in FIG. 1B, a signal format in which one or more signals each including a data unit 311 of one communication device and a flag unit 312 of the communication device are arranged after the synchronization signal 301 may be used. . As shown in FIG. 1 (c), such a signal format enables precise control and data collection of terminal equipment connected to the communication device by using extended signals in the data section and / or the flag section. And is preferred. Further, as shown in FIG. 1D, a signal format having an end signal 303 indicating the end of the signal after the communication data 302 can be used.

このような通信方法において、データの信頼性を高め
るために、第1図(e)に示すように、同期信号301と
は別に符号化された同期信号304を先頭に配したデータ
部311を有し、通信データ302の送受信にエラーがあった
ときにフラグを立てないことに替えてその符号化された
同期信号304の送受信にエラーがあったときにフラグ部3
12にフラグを立てない方法があり、これは、通信データ
302の送受信にエラーがあったときにフラグを立てない
ことに加えて、符号化された同期信号304の送受信にエ
ラーがあったときもフラグ部312にフラグを立てない方
法であってもよい。また第1図(f)に示すように、同
期信号301の後に、符号化された同期信号304と通信デー
タ302を組とする信号を1以上並べた信号形式や、第1
図(g)に示すように、同期信号301と符号化した同期
信号304と1組の通信データ302を2以上並べた信号形式
を用いることもできる。このような信号形式を用いた場
合にも、前記と同様に、第1図(h)に示すように、通
信データ302の後に終了信号303を組み合わせることがで
きる。これらの組み合わせは、制御対象に要求される応
答性と、制御対象の数および必要とされる信号の信頼性
によって選択することができ、いずれもハードウェアを
共通化した上で、ソフトウェアの変更によって選択でき
るように設計することも可能であり、多品種少量生産に
適している。
In such a communication method, in order to improve the reliability of data, as shown in FIG. 1 (e), there is provided a data section 311 in which a synchronization signal 304 encoded separately from the synchronization signal 301 is arranged at the head. However, instead of setting the flag not to be set when there is an error in the transmission and reception of the communication data 302, the flag unit 3
There is a way to not flag 12
In addition to not setting a flag when there is an error in transmission / reception of 302, a method of not setting a flag in the flag unit 312 also when an error occurs in transmission / reception of the encoded synchronization signal 304 may be adopted. Also, as shown in FIG. 1 (f), after the synchronization signal 301, one or more signals in which an encoded synchronization signal 304 and communication data 302 are arranged as a set are arranged.
As shown in FIG. 9G, a signal format in which a synchronization signal 301, an encoded synchronization signal 304, and one or more sets of communication data 302 are arranged can be used. When such a signal format is used, the end signal 303 can be combined after the communication data 302 as shown in FIG. These combinations can be selected depending on the responsiveness required of the controlled object, the number of controlled objects and the required signal reliability. It is possible to design so that it can be selected, and it is suitable for high-mix low-volume production.

また、エラーの発生したときのデータの処理方法とし
て、通信データ302のうち、通信不良を起こした通信装
置に関係するデータのみを破棄する方法、どの通信装置
にエラーを生じても、そのエラーを生じたサイクルの受
信データを全て破棄し、送信データを再送する方法、連
続的にエラーが発生した場合に、全ての通信装置をリセ
ットする方法、または、エラーを生じないときに通信デ
ータ302を蓄積手段に蓄えておき、エラーを生じたとき
には、その蓄えられたデータを用いる方法を適宜選択し
て用いることができる。
In addition, as a method of processing data when an error occurs, a method of discarding only data related to a communication device having a communication failure among the communication data 302, and no matter which communication device has an error, A method of discarding all received data in the cycle that occurred and retransmitting the transmitted data, a method of resetting all communication devices when errors continuously occur, or storing communication data 302 when no error occurs When an error occurs, the method using the stored data can be appropriately selected and used.

本発明の通信方法に用いられる通信システム装置は、
通信データ302と同期信号301とを弁別する同期信号弁別
手段14と、通信データ302を通信路4に伝送する送信手
段12と、通信路4に伝送された通信データ302を受信す
る受信手段13と、送信データのうちデータ部311を一時
的に蓄える送信データ蓄積手段21と、受信データのうち
データ部311を一時的に蓄える受信データ蓄積手段23
と、自己の通信にエラーがないときに通信フラグを発生
し蓄える通信フラグ発生手段22と、受信データのうちフ
ラグ部312を一時的に蓄えるフラグ部蓄積手段24と、端
末機器へのデータの入出力を行う端末機器入出力手段26
と、論理演算手段120とを備え、その論理演算手段120が
同期信号301を受けて初めて送信データ蓄積手段21に蓄
えられたデータ部311と通信フラグ発生手段22に蓄えら
れたフラグ部312とを通信路4に送出する送信手段12に
伝送する手段と、受信手段13に伝送された通信データ30
2のうちデータ部311を受信データ蓄積手段23に格納しフ
ラグ部312をフラグ部蓄積手段24に格納する手段と、エ
ラーの有無の判断を行う手段と、そのエラーの有無の判
断によって受信データ蓄積手段23内のデータ部を破棄す
ることの判断を行う手段と、エラーの有無の判断によっ
て送信データ蓄積手段21内のデータを再送することの判
断を行う手段と、端末機器入出力手段26とのデータの伝
送を行う手段とを備えた第2図(a)に示す通信装置20
0aを複数個と、同期信号発生手段11とを第2図(d)に
示すように、通信路4で接続したことを特徴とする。
The communication system device used in the communication method of the present invention,
Synchronization signal discriminating means 14 for discriminating communication data 302 from synchronization signal 301; transmitting means 12 for transmitting communication data 302 to communication path 4; and receiving means 13 for receiving communication data 302 transmitted to communication path 4; A transmission data storage means 21 for temporarily storing the data part 311 of the transmission data, and a reception data storage means 23 for temporarily storing the data part 311 of the reception data.
Communication flag generating means 22 for generating and storing a communication flag when there is no error in its own communication, flag section storing means 24 for temporarily storing flag section 312 of the received data, and inputting data to the terminal device. Terminal device input / output means 26 for output
And a logical operation means 120, the logical operation means 120 receiving the synchronization signal 301 and the data part 311 stored in the transmission data storage means 21 and the flag part 312 stored in the communication flag generation means 22 for the first time. Means for transmitting to the transmitting means 12 for transmitting to the communication path 4 and communication data 30 transmitted to the receiving means 13
Means for storing the data part 311 in the received data storage means 23 and storing the flag part 312 in the flag part storage means 24; means for determining the presence or absence of an error; and storing the received data by determining whether or not the error exists. A means for determining to discard the data portion in the means 23; a means for determining retransmission of data in the transmission data storage means 21 by determining whether there is an error; and a terminal device input / output means 26. The communication device 20 shown in FIG.
As shown in FIG. 2 (d), a plurality of 0a and the synchronization signal generating means 11 are connected by a communication path 4.

このような通信システム装置は、前記通信装置200a内
に同期信号発生手段11を備えた第2図(b)に示す通信
装置200bを一つと、前記通信装置200aを複数個、第2図
(e)に示すように通信路4で接続して構成することも
でき、また、第2図(f)に示すように、前記通信装置
200b内に、同期信号301を通信路4に伝送することの可
否を決定する切換手段15を有する通信装置200c(第2図
(c)に示す。)を複数個通信路4で接続し、前記通信
装置200aに替えてその切換手段15によって同期信号301
を通信路4に伝送しないことを選択し、前記通信装置20
0bに替えてその切換手段15によって同期信号301を通信
路4に伝送することを選択して構成することもできる。
Such a communication system device includes one communication device 200b shown in FIG. 2 (b) provided with a synchronization signal generating means 11 in the communication device 200a, a plurality of the communication devices 200a, and FIG. 2), it is also possible to configure by connecting with a communication path 4, and as shown in FIG.
A plurality of communication devices 200c (shown in FIG. 2 (c)) having switching means 15 for determining whether or not to transmit the synchronization signal 301 to the communication path 4 are connected in the communication path 200b. Instead of the communication device 200a, the synchronization signal 301
Is not transmitted to the communication path 4 and the communication device 20 is selected.
Instead of 0b, transmission of the synchronization signal 301 to the communication path 4 by the switching means 15 can be selected and configured.

このような装置において、通信データ302と同期信号3
01とを弁別する同期信号弁別手段14としては、各種のコ
ンパレータが使用でき、同期信号301が通信データ302と
異なる電圧である場合には電圧コンパレータを用い、周
波数が異なる場合には周波数コンパレータ、位相が異な
る場合には位相コンパレータをそれぞれ使用できる。通
信データ302を通信路4に伝送する送信手段12と、通信
路4に伝送された通信データ302を受信する受信手段13
は、通信データ302の信号形式によって選択し、電波に
よる伝送の場合は、公知の周波数変調、位相変調、また
は振幅変調およびこれらの復調手段を使用でき、光ファ
イバーや電線による伝送の場合は、通常の情報通信に使
用される回路であればどのようなものでも使用できる。
In such a device, the communication data 302 and the synchronization signal 3
Various types of comparators can be used as the synchronization signal discriminating means 14 for discriminating between the communication signal 302 and the communication data 302. A voltage comparator is used when the synchronization signal 301 has a different voltage from the communication data 302. Are different, phase comparators can be used. Transmission means 12 for transmitting the communication data 302 to the communication path 4 and reception means 13 for receiving the communication data 302 transmitted to the communication path 4
Is selected according to the signal format of the communication data 302.In the case of transmission by radio waves, known frequency modulation, phase modulation, or amplitude modulation and these demodulation means can be used.In the case of transmission by optical fiber or electric wire, normal transmission is used. Any circuit used for information communication can be used.

送信データを一時的に蓄える送信データ蓄積手段21
と、受信データを一時的に蓄える受信データ蓄積手段23
と、自己の通信にエラーがないときにフラグを立て蓄え
る通信フラグ発生手段22は、各種のレジスタやメモリ用
半導体が使用できる。
Transmission data storage means 21 for temporarily storing transmission data
Receiving data storage means 23 for temporarily storing received data
The communication flag generating means 22 for setting up and storing a flag when there is no error in its own communication can use various registers and semiconductors for memories.

同期信号301を受けて初めて送信データ蓄積手段21に
蓄えられたデータ部311と通信フラグ発生手段22に蓄え
られた通信フラグ312とを通信路4に送出する送信手段1
2に伝送する手段と、受信手段13に伝送された通信デー
タ302のうちデータ部311を受信データ蓄積手段23に格納
し通信フラグ312を通信フラグ蓄積手段24に格納する手
段と、エラーの有無の判断を行う手段と、そのエラーの
有無の判断によって受信データ蓄積手段23内のデータを
破棄することの判断を行う手段と、エラーの有無の判断
によって送信データ蓄積手段21内のデータを再送するこ
との判断を行う手段と、端末機器入出力手段26とのデー
タの伝送を行う手段とを備えた論理演算手段120として
は、予め論理素子を用いて固定化した回路を用いること
は可能ではあるが、制御する端末機器の種類や数に応じ
てデータ形式を変更したり、多種の装置に共通して同じ
通信装置を搭載するという経済性から、マイクロコンピ
ュータを用いることが好ましい。
The transmitting means 1 for transmitting the data portion 311 stored in the transmission data storing means 21 and the communication flag 312 stored in the communication flag generating means 22 to the communication path 4 only after receiving the synchronization signal 301.
Means for transmitting to the communication means 302, the data part 311 of the communication data 302 transmitted to the reception means 13 is stored in the reception data storage means 23, and the communication flag 312 is stored in the communication flag storage means 24. Means for making a decision, means for making a decision to discard the data in the received data storage means 23 by judging the presence or absence of the error, and resending the data in the transmission data storage means 21 by judging the presence or absence of the error. Although it is possible to use a circuit fixed in advance using a logic element as the logical operation means 120 including the means for making the determination and the means for transmitting data to and from the terminal device input / output means 26, It is preferable to use a microcomputer in view of the economics of changing the data format according to the type and number of terminal devices to be controlled and mounting the same communication device in common with various devices. .

同期信号301を受けて初めて送信データ蓄積手段21に
蓄えられたデータ部311と通信フラグ発生手段22に蓄え
られた通信フラグ312とを通信路4に送出する送信手段1
2に伝送する手段としては、予め設定した順にデータ信
号とフラグ信号を経時的に送り出す回路を用いればよ
く、メモリ内に蓄えられたデータとフラグをパラレル−
シリアル変換回路で変換する方法や、メモリ内のデータ
とフラグを上位の桁から順に送信手段12に出力するプロ
グラムを用いることもできる。
The transmitting means 1 for transmitting the data portion 311 stored in the transmission data storing means 21 and the communication flag 312 stored in the communication flag generating means 22 to the communication path 4 only after receiving the synchronization signal 301.
The means for transmitting the data signal and the flag signal in a predetermined order may be used as a means for transmitting the data signal and the flag signal over time.
It is also possible to use a method of performing conversion by a serial conversion circuit, or a program for outputting data and flags in the memory to the transmitting means 12 in order from the upper digit.

受信手段13に伝送された通信データ302のうちデータ
部311を受信データ蓄積手段23に格納し通信フラグ312を
通信フラグ蓄積手段24に格納する手段としては、前記と
逆の操作を行えばよく、シリアル−パラレル変換回路や
特定のメモリの上位の桁から順に受信手段13からの信号
を格納するプログラムを用いることができる。
As means for storing the data part 311 in the received data storage means 23 and storing the communication flag 312 in the communication flag storage means 24 of the communication data 302 transmitted to the receiving means 13, the reverse operation may be performed. It is possible to use a serial-parallel conversion circuit or a program for storing signals from the receiving means 13 in order from the upper digit of a specific memory.

エラーの有無の判断を行う手段としては、送信データ
蓄積手段21内のデータの自己に関する箇所と、受信デー
タ蓄積手段23内のデータの自己に関する箇所との排他論
理和をとればよく、回路によってもプログラムによって
も実現できる。その結果、エラーがなければ通信フラグ
発生手段2にフラグを立て、エラーがあれば通信フラグ
発生手段22にフラグを立てない。エラーの有無の判断に
よって受信データ蓄積手段23内のデータを破棄すること
の判断を行う手段としては、前記通信フラグ発生手段22
から送信手段12を介して伝送された通信フラグ312のど
のフラグが欠けていても、受信データ蓄積手段23をクリ
アすればよく、論理回路またはプログラムによって実現
できる。エラーの有無の判断によって送信データ蓄積手
段21内のデータを再送することの判断を行う手段として
は、前記と同様に通信フラグ312のどのフラグが欠けて
いても、送信データ蓄積手段21に次のデータを入れず、
再度その送信データ蓄積手段21内のデータを送る。この
場合、通信エラーがないときに通信データ302を蓄積す
る手段31を送信データ蓄積手段21とは別個に備え、エラ
ーが発生したときは、そのエラーが発生する前の通信デ
ータを保持することとして、常に送信データ蓄積手段21
は一回の通信ごとにクリアし、エラーが発生したときに
のみその蓄積手段31からデータを送信データ蓄積手段21
に転送することとすれば、動作が継続でき好ましい。
The means for determining the presence or absence of an error may be obtained by performing an exclusive OR operation on a location related to the data itself in the transmission data storage unit 21 and a location related to the data itself in the reception data storage unit 23. It can also be realized by a program. As a result, if there is no error, the communication flag generation means 2 is flagged, and if there is an error, the communication flag generation means 22 is not flagged. As means for determining whether to discard the data in the received data storage means 23 by determining whether or not there is an error, the communication flag generation means 22
No matter which of the communication flags 312 transmitted from the transmission means 12 is missing, the reception data storage means 23 may be cleared, and can be realized by a logic circuit or a program. As means for determining whether to retransmit the data in the transmission data storage means 21 by determining the presence or absence of an error, the transmission data storage means 21 has the following Without data,
The data in the transmission data storage means 21 is sent again. In this case, the means 31 for storing the communication data 302 when there is no communication error is provided separately from the transmission data storage means 21, and when an error occurs, the communication data before the error occurs is held. , Always transmit data storage means 21
Is cleared after each communication, and only when an error occurs, the data is transmitted from the storage means 31 to the transmission data storage means 21.
Is preferable because the operation can be continued.

また、通信フラグ312のデータによって受信データ蓄
積手段23内のデータを破棄し送信データ蓄積手段21内の
データを再送するだけでなく、フラグ部のデータにエラ
ーが一定サイクル以上連続して発生したことを検出する
手段401として、カウンタ回路やプログラムによるエラ
ー回数の検出を行う手段を備え、その検出手段401に連
動して通信装置のリセットを行うリセット回路やプログ
ラムによるソフトウェアリセット等の切換手段を用いれ
ば、装置自体の故障や他のプログラムの破壊による誤動
作や暴走を防止でき好ましい。
In addition to the fact that the data in the reception data storage means 23 is discarded by the data of the communication flag 312 and the data in the transmission data storage means 21 is retransmitted, an error has occurred in the data of the flag part continuously for a certain cycle or more. Means 401 for detecting the number of errors by a counter circuit or a program as a means 401 for detecting the error, if a reset circuit for resetting the communication device in conjunction with the detection means 401 or switching means such as a software reset by a program is used. This is preferable because malfunction or runaway due to failure of the device itself or destruction of other programs can be prevented.

さらにまた、予め符号化された同期信号304を蓄積す
る手段28を備え、受信データ内の符号化された同期信号
304と前記蓄積手段28とを比較し、受信データ内の符号
化された同期信号304が前記蓄積手段28と異なっている
ときは、フラグ部312にフラグを立てない手段として、
あるメモリにコードを登録しておき、同期信号304と排
他論理和をとって、一致した場合に前記の通信フラグ蓄
積手段24を立てることとすれば、通信データ302のデー
タ数が多くなっても、同期がずれることがなくデータの
信頼性が高く好ましい。このときに、送信データ蓄積手
段21内のデータの自己に関する箇所と、受信データ蓄積
手段23内のデータの自己に関する箇所との排他論理和
と、前記の符号化された同期信号304のフラグと論理和
をとって、通信データ302と符号化された同期信号304の
両方にエラーがなければ通信フラグ発生手段22にフラグ
を立て、エラーがあれば通信フラグ発生手段22にフラグ
を立てないことと共に行えば、よりデータの信頼性を高
くでき好ましい。
Furthermore, it comprises means 28 for storing a pre-encoded synchronization signal 304, wherein the encoded synchronization signal
Comparing 304 with the storage means 28, when the encoded synchronization signal 304 in the received data is different from the storage means 28, as means for not setting a flag in the flag unit 312,
If the code is registered in a certain memory, the exclusive OR is taken with the synchronization signal 304, and the above-mentioned communication flag storage means 24 is set up when the codes coincide with each other, even if the number of communication data 302 becomes large, It is preferable that the synchronization is not lost and the data reliability is high. At this time, the exclusive OR of the location relating to the self of the data in the transmission data storage means 21 and the location relating to the self of the data in the reception data storage means 23, and the flag and logic of the encoded synchronization signal 304 If there is no error in both the communication data 302 and the encoded synchronization signal 304, the communication flag generation means 22 is flagged.If there is an error, the communication flag generation means 22 is not flagged and the processing is performed. For example, it is preferable because the reliability of data can be increased.

本発明の通信システム装置において、同期信号301の
レベルを通信データ302のレベルより高くすれば、同期
信号弁別手段14に、電圧コンパレータ等の比較的簡単な
回路を用いることができ好ましい。このときに、同期信
号301を整流して得られた直流電力を電源として用いれ
ば、電源の供給を通信システム内の装置の1つに集約で
き、他の装置において設置のスペース、電子部品を節約
でき好ましい。
In the communication system of the present invention, it is preferable that the level of the synchronization signal 301 be higher than the level of the communication data 302 because a relatively simple circuit such as a voltage comparator can be used for the synchronization signal discriminating means 14. At this time, if the DC power obtained by rectifying the synchronization signal 301 is used as a power supply, the power supply can be centralized in one of the devices in the communication system, thereby saving installation space and electronic components in other devices. It is preferable.

(作用) 本発明の作用を、第2図(a)に示す通信装置200aを
2以上と、第2図(b)に示す通信装置200bを1つ使用
し、第2図(e)に示す接続を行った通信システム装置
とし、論理演算手段120内のプログラムを第2図(g)
に示すフローチャートで表し、主要な箇所のデータを2
値のデータとして第2図(h)によって説明する。
(Operation) The operation of the present invention is shown in FIG. 2 (e) by using two or more communication devices 200a shown in FIG. 2 (a) and one communication device 200b shown in FIG. 2 (b). FIG. 2 (g) shows the program in the logical operation means 120 as the communication system device which made the connection.
The data at the main points are represented by 2
The value data will be described with reference to FIG.

端末機器入出力手段29に端末機器からデータが入力さ
れると、プログラムによってそのデータは送信データ蓄
積手段21へ格納され、予め定められた同期信号301から
自己の通信先と通信内容を示すデータを送信するための
時間に到達したときに、bNの箇所にデータが1となった
信号が送信手段12を介して通信路4へ伝送される。それ
と同時に、受信手段13を介して同じデータが受信データ
蓄積手段23に格納され、プログラムによって、送信デー
タ蓄積手段21内のデータと受信データ蓄積手段23内のデ
ータが比較される。このときに、両データが一致してい
ると、実線で示すようにエラーは発生せず、必要な場合
には、端末機器入出力手段29を介して端末機器へデータ
が転送される。一方、両データが一致していない場合に
は、破線で示すように、エラーが発生し、通信フラグ蓄
積手段22に格納されて、送信され、各通信装置はエラー
の発生を検出し、受信データ蓄積手段23内のデータをリ
セットする。
When data is input from the terminal device to the terminal device input / output means 29, the data is stored in the transmission data storage means 21 by the program, and data indicating the communication destination of the self and the communication content are determined from a predetermined synchronization signal 301. When the time for transmission has arrived, a signal whose data becomes 1 at the location of bN is transmitted to the communication path 4 via the transmission means 12. At the same time, the same data is stored in the reception data storage means 23 via the reception means 13, and the data in the transmission data storage means 21 and the data in the reception data storage means 23 are compared by the program. At this time, if the two data match, no error occurs as indicated by the solid line, and if necessary, the data is transferred to the terminal device via the terminal device input / output means 29. On the other hand, if the two data do not match, an error occurs, as indicated by the broken line, is stored in the communication flag storage means 22 and transmitted, and each communication device detects the occurrence of the error and The data in the storage means 23 is reset.

従って、通信したデータにエラーがあった場合には、
必ずそのエラーの発生したデータを破棄できる。
Therefore, if there is an error in the transmitted data,
You can always discard the data in which the error occurred.

実施例1 本発明の一実施例として、給湯機用制御装置と2つの
遠隔操作器とのそれぞれに通信装置を設け、給湯制御装
置の通信装置としては第3図(a)に示す回路構成と
し、遠隔操作器の通信装置としては第3図(b)に示す
回路構成とし、いずれもユーザプログラムを書き込むRO
Mを内臓し、ワークエリアとしてのRAMを有するワンチッ
プのマイクロプロセッサ40であるHD146805U/V(株式会
社日立製作所、商品名)を用い、給湯機の方は第3図
(a)に示すように、同期信号を出力するトランジスタ
TR1およびTR2を設け、操作器の方には設けなかった。
Embodiment 1 As an embodiment of the present invention, a communication device is provided in each of a water heater control device and two remote controllers, and the communication device of the hot water control device has a circuit configuration shown in FIG. 3 (a). The communication device of the remote controller has the circuit configuration shown in FIG. 3 (b).
As shown in FIG. 3 (a), the HD146805U / V (Hitachi, Ltd., trade name) which is a one-chip microprocessor 40 having a built-in M and having a RAM as a work area is used. Transistor that outputs a synchronization signal
TR1 and TR2 were provided, but not the actuator.

同期信号は、マイクロコンピュータ回路に用いる同期
信号をプログラムで分周したソフトウェアクロックを用
い、出力ポートPo0からトランジスタTR2のベース端子に
接続し、12Vの電源をオン・オフすることによって得
た。
The synchronization signal was obtained by using a software clock obtained by dividing the synchronization signal used for the microcomputer circuit by a program, connecting the output port Po0 to the base terminal of the transistor TR2, and turning on and off a 12V power supply.

送信データと受信信号を一時的に蓄える手段として
は、前記マイクロプロセッサ40内のワークエリア用RAM
を用いた。自己の通信のエラーを監視する手段として
は、受信した自己の通信データと送信データ蓄積手段に
蓄えられたデータとを比較するプログラムを用いた。同
期信号を受けて初めて送信データとエラー信号とを通信
路に送出する手段としては、メモリ内のデータのフラグ
信号を上位の桁から順に前記マイクロプロセッサ内の出
力端子Po1に出力するプログラムを用いた。通信路に伝
送された通信データを受信する手段としては、前記マイ
クロプロセッサ内の入力端子Pi0を用い、その信号を前
記マイクロプロセッサ内のワークエリア用RAMに格納す
るプログラムを用いた。同期信号がデータと異なる電圧
を用いたので、通信データと同期信号とを弁別するため
に、電圧コンパレータCOMP1を用いた。また、フラグ信
号を検出すると、次の処理を行うまでに一時的にメモリ
の別の箇所に、通信データを格納しておくプログラムと
した。通信装置と端末機器とを結合する入出力手段29と
しては、前記マイクロプロセッサに設けられたインター
フェイス用の入力端子Pi2と出力端子Po2を用いた。フラ
グ部のデータによって受信データを破棄することの判断
を行う論理演算手段120は、フラグ信号に一つでもフラ
グが立っていなければ、受信データを蓄積せず、前記通
信データを蓄積手段に残っていた前回のデータを使用す
るプログラムとした。このときに、どの通信装置にエラ
ーを生じても、そのエラーを生じたサイクルの受信デー
タは全て破棄し、送信データは保持することとした。
As means for temporarily storing the transmission data and the reception signal, a work area RAM in the microprocessor 40 is used.
Was used. As a means for monitoring an error in its own communication, a program for comparing received own communication data with data stored in transmission data storage means was used. As means for transmitting the transmission data and the error signal to the communication path for the first time after receiving the synchronization signal, a program for outputting the flag signal of the data in the memory to the output terminal Po1 in the microprocessor in order from the upper digit was used. . As a means for receiving the communication data transmitted to the communication channel, a program was used which uses the input terminal Pi0 in the microprocessor and stores the signal in a work area RAM in the microprocessor. Since the synchronization signal used a different voltage from the data, the voltage comparator COMP1 was used to discriminate between the communication data and the synchronization signal. When a flag signal is detected, the program temporarily stores communication data in another part of the memory until the next processing is performed. As the input / output means 29 for connecting the communication device and the terminal device, an input terminal Pi2 for interface and an output terminal Po2 provided in the microprocessor were used. The logical operation means 120 for determining whether to discard the received data based on the data in the flag section does not accumulate the received data and stores the communication data in the accumulating means unless at least one flag is set in the flag signal. The program uses the previous data. At this time, no matter which communication device generates an error, all the received data in the cycle in which the error occurred is discarded, and the transmitted data is retained.

このような構成の通信装置を使用し、第3図(c)に
示すフローチャートのプログラムをマイクロプロセッサ
内のROMに書き込んだ。
Using the communication device having such a configuration, the program of the flowchart shown in FIG. 3C was written in the ROM in the microprocessor.

このプログラムを説明すると、第3図(a)のマイク
ロプロセッサMCPU1の入力ポートPi2信号が入力される
と、一旦その信号がMCPU1内のワークエリアに格納さ
れ、次に、出力ポートPo0から同期信号が送られた後、
その格納したデータをPo1から送る。その送信信号を自
らのコンパレータCOMP1で同期信号と弁別し、受信信号
として入力端子Pi0を介してプロセッサ内のワーキング
レジスタに格納し、前記の入力信号を格納したメモリの
データと比較する。自己の信号部分において、一致した
場合は、通信フラグ部のデータとして1を出力し、一致
しない場合は0を出力する。次に、通信フラグ部を受信
して、全ての通信フラグ部が1ならば、自己のデータを
出力ポートPo2から出力する。通信フラグ部のどれかが
0ならば、自己のデータを出力せず、保持している通信
データ蓄積手段内のデータを出力する。
The program will be described. When the input port Pi2 signal of the microprocessor MCPU1 shown in FIG. 3A is input, the signal is temporarily stored in a work area in the MCPU1, and then a synchronization signal is output from the output port Po0. After being sent,
The stored data is sent from Po1. The transmission signal is discriminated from the synchronization signal by its own comparator COMP1, stored as a reception signal in a working register in the processor via the input terminal Pi0, and compared with the data of the memory storing the input signal. In the own signal portion, when they match, 1 is output as the data of the communication flag portion, and when they do not match, 0 is output. Next, the communication flag unit is received, and if all the communication flag units are 1, the own data is output from the output port Po2. If any of the communication flag sections is 0, the data in the communication data storage means held is output without outputting the own data.

このプログラムは、第3図(d)に示すように、第3
図(b)の遠隔操作器用の通信装置にも同様に用いるこ
とができる。
This program, as shown in FIG.
The same can be applied to the communication device for the remote controller in FIG.

すなわち、第3図(b)のマイクロプロセッサMCPU2
の入力端子Pi2に信号が入力されると、一旦その信号がM
CPU2内のワークエリアに格納され、次に、割り込み処理
端子INTにコンパレータCOMP2によってデータと弁別され
た同期信号が入力されると、その格納したデータをPo1
から送る。その送信信号を自らのコンパレータCOMP3で
同期信号と弁別し、受信信号としてプロセッサ内のワー
キングレジスタに格納し、前記の入力信号を格納したメ
モリのデータと比較する。自己の信号部分において、一
致した場合は、通信フラグ部のデータとして1を出力
し、一致しない場合は0を出力する。次に、全ての通信
フラグ部を受信して、全ての通信フラグ部が1ならば、
自己のデータを出力ポートPo2から出力する。通信フラ
グ部のどれかが0ならば、自己のデータは出力せず、保
持されていた通信データ蓄積手段内のデータを出力す
る。
That is, the microprocessor MCPU2 shown in FIG.
Signal is input to the input terminal Pi2 of
When the sync signal discriminated from the data by the comparator COMP2 is input to the interrupt processing terminal INT and stored in the work area in the CPU2, the stored data is stored in Po1.
Sent from The transmission signal is discriminated from the synchronization signal by its own comparator COMP3, stored as a reception signal in a working register in the processor, and compared with the data of the memory storing the input signal. In the own signal portion, when they match, 1 is output as the data of the communication flag portion, and when they do not match, 0 is output. Next, all communication flag units are received, and if all communication flag units are 1,
Outputs its own data from output port Po2. If any one of the communication flag sections is 0, the self-data is not output, and the held data in the communication data storage means is output.

また、このときのデータ形式を第3図(e)に示す。
すなわち、同期信号301に続いて、リモコン1のスイッ
チデータ101、リモコン2のスイッチデータ102、リモコ
ン1の出力表示データ103、リモコン2の出力表示デー
タ104、給湯制御器本体の通信フラグ部105、リモコン1
の通信フラグ部106、及びリモコン2の通信フラグ部107
の順である。同期信号の間隔は、15msであった。
FIG. 3E shows the data format at this time.
That is, following the synchronization signal 301, the switch data 101 of the remote controller 1, the switch data 102 of the remote controller 2, the output display data 103 of the remote controller 1, the output display data 104 of the remote controller 2, the communication flag unit 105 of the hot water supply controller main body, and the remote controller 1
Communication flag unit 106 and remote control 2 communication flag unit 107
The order is as follows. The interval between the synchronization signals was 15 ms.

実施例2 通信信号に第1図(e)に示す形式を採用し、符号化
された同期信号として、01011010の符号を予め定め、RO
M内に蓄積し、通信データを比較するときに送信データ
の前にこの符号化したデータを呼び出し、受信データは
符号化した同期信号とそれに続く通信データを共に、メ
モリに一旦蓄積して、両データを符号化した同期信号と
ともに比較して、一致すればフラグを立て、エラーがあ
ればフラグを立てないプログラムを使用した以外は、実
施例1と同様とした。
Embodiment 2 The format shown in FIG. 1 (e) is adopted for the communication signal, and the code of 01011010 is determined in advance as an encoded synchronization signal.
This encoded data is called before the transmission data when comparing the communication data, and the received synchronization data is temporarily stored in the memory together with the encoded synchronization signal and the subsequent communication data. The data was compared with the coded synchronization signal, and the procedure was the same as that of the first embodiment, except that a program was used if a match was found, and a flag was not set if there was an error.

実施例3 RAM内に、エラー回数をカウントするエリアを確保
し、全フラグの否定の数を入力し、1通信サイクル毎に
そのカウントのエリア内の数とROMに予め設定した12と
いう数と比較し、一致したときには、第3図(a)の電
力用同期信号出力制御を行うTR2への出力を2秒以上行
わず、それによって、同期信号を整流して電源としてい
る他のマイクロコンピュータのチップをリセットし、同
時に、MCPU1はソフトウェアによるリセットを行った他
は、実施例1と同様とした。
Example 3 An area for counting the number of errors is secured in the RAM, the number of all flags is negated, and the number in the area of the count is compared with the number 12 preset in the ROM for each communication cycle. If they match, the output to TR2 for controlling the output of the power synchronization signal shown in FIG. 3A is not performed for more than 2 seconds, thereby rectifying the synchronization signal and using it as a power source of another microcomputer. Was reset, and at the same time, the MCPU 1 was reset by software.

このような通信装置において、故意に大きな雑音信号
を強制的に通信路に印加すると、その信号が加わってい
る間は、制御または出力表示が全く変化せず、また、故
意に遠隔操作器または給湯制御装置の通信端末の片方を
外しても同様であった。
In such a communication device, if a large noise signal is intentionally applied to the communication path, the control or output display does not change at all while the signal is added, and the remote controller or hot water supply is intentionally applied. The same was true even if one of the communication terminals of the control device was removed.

(発明の効果) 以上に説明したように、本発明によって、簡便で信頼
性の高い通信方法と通信装置を提供することができた。
(Effects of the Invention) As described above, a simple and highly reliable communication method and communication device can be provided by the present invention.

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

第1図(a)は本発明の一実施例の信号形式を示す波形
図、第1図(b)〜(h)は本発明の他の実施例の信号
形式を示す波形図、第2図(a)は本発明の一実施例に
用いる装置のブロック図、第2図(b)および(c)は
本発明の他の実施例に用いる装置のブロック図、第2図
(d)は本発明の一実施例の装置の概要示す概略図、第
2図(e)および(f)は本発明の他の実施例の装置の
概要示す概略図、第2図(g)は本発明の一実施例の作
用を説明するためのフローチャート、第2図(h)は本
発明の一実施例を説明するための装置内のデータの遷移
を示す波形図、第3図(a)及び(b)は本発明の一実
施例に用いる通信装置を示す回路図、第3図(c)およ
び(d)は本発明の一実施例に用いたプログラムを示す
フローチャート、第3図(e)は本発明の一実施例のデ
ータフォーマットを説明するための信号波形図、第4図
(a)は従来例を示す装置の概要を示す概略図、第4図
(b)は従来例の信号形式を示す波形図である。 符号の説明 4……通信路、11……同期信号発生回路 12……送信手段、13……受信手段 14……同期信号弁別手段 15……切換手段 21……送信データ蓄積手段 22……エラー部蓄積手段 23……受信データ蓄積手段 24……通信フラグ蓄積手段 28……符号化された同期信号の蓄積手段 29……端末機入出力手段 51……端末機器 100……通信路用端子 101……リモコン1のスイッチデータ 102……リモコン2のスイッチデータ 103……リモコン1の出力表示データ 104……リモコン2の出力表示データ 105……給湯機本体の通信フラグ 106……リモコン1の通信フラグ 107……リモコン2の通信フラグ 120……論理演算手段 200a.200b.200c……通信装置 301……同期信号 302……通信データ 303……終了信号 304……符号化された同期信号 311……データ部 312……フラグ部 321……拡張データ部 322……拡張フラグ部 AVR……定電圧用IC BUF1……バッファアンプ1 BUF2……バッファアンプ2 COMP1……コンパレータ1 COMP2……コンパレータ2 COMP3……コンパレータ3 C1……平滑用コンデンサ1 C2……平滑用コンデンサ2 D1……整流用ダイオード LED……ランプ MCPU1……ワンチップマイクロコンピュータ1 Vcc:電源端子 Po0:出力端子0 Po1:出力端子1 Po2:出力端子2 Pi0:入力端子0 Pi1:入力端子1 Pi2:入力端子2 MCPU2……ワンチップマイクロコンピュータ2 INT……割り込み処理端子 R1〜R8……抵抗器 SW1……スイッチ Tr1〜Tr5……トランジスタ
1 (a) is a waveform diagram showing a signal format of one embodiment of the present invention, FIGS. 1 (b) to 1 (h) are waveform diagrams showing a signal format of another embodiment of the present invention, and FIG. (A) is a block diagram of an apparatus used in one embodiment of the present invention, FIGS. 2 (b) and (c) are block diagrams of an apparatus used in another embodiment of the present invention, and FIG. FIGS. 2 (e) and 2 (f) are schematic diagrams showing the outline of an apparatus according to one embodiment of the present invention, and FIGS. 2 (g) and 2 (g) are schematic diagrams showing the outline of an apparatus according to another embodiment of the present invention. FIG. 2 (h) is a flowchart for explaining the operation of the embodiment, FIG. 2 (h) is a waveform diagram showing a transition of data in the apparatus for explaining an embodiment of the present invention, and FIGS. 3 (a) and 3 (b). FIG. 3 is a circuit diagram showing a communication device used in one embodiment of the present invention; FIGS. 3C and 3D are flowcharts showing programs used in one embodiment of the present invention; 3 (e) is a signal waveform diagram for explaining a data format of one embodiment of the present invention, FIG. 4 (a) is a schematic diagram showing an outline of a device showing a conventional example, and FIG. FIG. 9 is a waveform diagram showing a signal format of a conventional example. Description of reference numerals 4 ... communication path, 11 ... synchronous signal generation circuit 12 ... transmitting means, 13 ... receiving means 14 ... synchronous signal discriminating means 15 ... switching means 21 ... transmitted data storage means 22 ... error Unit storage means 23 Received data storage means 24 Communication flag storage means 28 Coded synchronization signal storage means 29 Terminal input / output means 51 Terminal equipment 100 Communication path terminal 101 ... Switch data of remote controller 1 102 Switch data of remote controller 2 103 ... Output display data of remote controller 1 104 ... Output display data of remote controller 2 105 Communication flag of water heater main body 106 Communication flag of remote controller 1 107 Communication flag of remote controller 2 120 Logical operation means 200a.200b.200c Communication device 301 Synchronization signal 302 Communication data 303 End signal 304 Encoded synchronization signal 311 Data part 312 …… Flag part 321 …… Extended Data section 322 Extension flag section AVR Constant voltage IC BUF1 Buffer amplifier 1 BUF2 Buffer amplifier 2 COMP1 Comparator 1 COMP2 Comparator 2 COMP3 Comparator 3 C1 Smoothing capacitor 1 C2 Smoothing capacitor 2 D1 Rectifier diode LED Lamp MCPU1 One-chip microcomputer 1 Vcc: Power supply terminal Po0: Output terminal 0 Po1: Output terminal 1 Po2: Output terminal 2 Pi0: Input terminal 0 Pi1 : Input terminal 1 Pi2: Input terminal 2 MCPU2 ... One-chip microcomputer 2 INT ... Interrupt processing terminals R1 to R8 ... Resistor SW1 ... Switches Tr1 to Tr5 ... Transistors

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭61−212145(JP,A) 特開 昭60−16743(JP,A) 特開 昭58−120341(JP,A) 特開 平1−91551(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-61-212145 (JP, A) JP-A-60-16743 (JP, A) JP-A-58-120341 (JP, A) JP-A-1- 91551 (JP, A)

Claims (19)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1つの通信路によって結合された複数の通
信装置が1つの同期信号(301)によって同時に送受信
を行い、送受信される通信データ(302)が互いに区別
できる通信先と通信内容からなるデータ部(311)と各
通信装置における通信不良の有無を示す通信フラグ(31
2)とから成り、自己の通信装置が送信したデータにエ
ラーがなければ通信フラグ(312)の該当箇所にフラグ
を立て、エラーがあれば該当箇所にフラグを立てず、か
つ、1つ以上の通信装置に通信エラーが生じた場合に通
信データの破棄を行う通信方法。
1. A plurality of communication devices connected by one communication path transmit and receive simultaneously by one synchronization signal (301), and communication data (302) to be transmitted and received comprises a communication destination and communication contents that can be distinguished from each other. A communication flag (31) indicating whether or not there is a communication failure between the data section (311) and each communication device.
2), if there is no error in the data transmitted by the own communication device, a flag is set at a corresponding portion of the communication flag (312), if there is an error, no flag is set at the corresponding portion, and one or more A communication method for discarding communication data when a communication error occurs in a communication device.
【請求項2】同期信号(301)、全通信装置のデータ部
(311)、全通信装置の通信フラグ部(312)の順に並べ
られた信号形式を有する請求項1記載の通信方法。
2. The communication method according to claim 1, wherein the communication format has a signal format in which a synchronization signal (301), a data section (311) of all communication apparatuses, and a communication flag section (312) of all communication apparatuses are arranged in this order.
【請求項3】同期信号(301)の後に、1つの通信装置
のデータ部(311)とその通信装置の通信フラグ部(31
2)を組とする信号を1以上並べた信号形式を有する請
求項1記載の通信方法。
3. A data section (311) of one communication apparatus and a communication flag section (31) of the communication apparatus after the synchronization signal (301).
2. The communication method according to claim 1, wherein the communication method has a signal format in which one or more signals forming the group 2) are arranged.
【請求項4】同期信号(301)と1組の通信データ(30
2)を2以上並べた信号形式を有する請求項1記載の通
信方法。
4. A synchronization signal (301) and a set of communication data (30)
2. The communication method according to claim 1, wherein the communication method has a signal format in which 2) or more are arranged.
【請求項5】通信データ(302)の後に、信号の終了を
示す終了信号(303)を有する請求項1、2、3または
4のうちいずれかに記載の通信方法。
5. The communication method according to claim 1, further comprising an end signal (303) indicating the end of the signal after the communication data (302).
【請求項6】同期信号(301)とは別に符号化された同
期信号(304)を先頭に配したデータ部(311)を有し、
通信データ(302)の送受信にエラーがあったときにフ
ラグを立てないことに替えてその符号化された同期信号
(304)の送受信にエラーがあったときにフラグ部(31
2)にフラグを立てない請求項1記載の通信方法。
6. A data section (311) having a synchronization signal (304) encoded separately from a synchronization signal (301) arranged at the head thereof.
Instead of setting a flag when an error occurs in the transmission / reception of the communication data (302), a flag unit (31) is provided when an error occurs in the transmission / reception of the encoded synchronization signal (304).
The communication method according to claim 1, wherein no flag is set in (2).
【請求項7】通信データ(302)の送受信にエラーがあ
ったときにフラグを立てないことに加えて、符号化され
た同期信号(304)の送受信にエラーがあったときもフ
ラグ部(312)にフラグを立てない請求項7記載の通信
方法。
7. In addition to not setting a flag when there is an error in the transmission and reception of the communication data (302), a flag unit (312) is also provided when there is an error in the transmission and reception of the encoded synchronization signal (304). 8. The communication method according to claim 7, wherein no flag is set.
【請求項8】通信データ(302)のうち、通信不良を起
こした通信装置に関係するデータのみを破棄する請求項
1、2、3、4、5、6または7のうちいずれかに記載
の通信方法。
8. The communication data according to claim 1, wherein only data relating to a communication device having a communication failure among the communication data is discarded. Communication method.
【請求項9】どの通信装置にエラーを生じても、そのエ
ラーを生じたサイクルの受信データを全て破棄し、送信
データを再送する請求項1、2、3、4、5、6、7ま
たは8のうちいずれかに記載の通信方法。
9. An apparatus according to claim 1, wherein any received data in the cycle in which the error occurred is discarded, and the transmitted data is retransmitted. 9. The communication method according to any one of 8.
【請求項10】連続的にエラーが発生した場合に、全て
の通信装置をリセットする請求項6、7、8または9の
うちいずれかに記載の通信方法。
10. The communication method according to claim 6, wherein all the communication devices are reset when an error occurs continuously.
【請求項11】エラーを生じないときに通信データ(30
2)を蓄積手段に蓄えておき、エラーを生じたときに
は、その蓄えられたデータを用いることを特徴とする請
求項1、2、3、4、5、6、7、8、9または10のう
ちいずれかに記載の通信方法。
11. The communication data (30) when no error occurs.
12. The method according to claim 1, wherein the stored data is stored in a storage means, and when an error occurs, the stored data is used. Communication method described in any of them.
【請求項12】通信データ(302)と同期信号(301)と
を弁別する同期信号弁別手段(14)と、通信データ(30
2)を通信路(4)に伝送する送信手段(12)と、通信
路(4)に伝送された通信データ(302)を受信する受
信手段(13)と、送信データのうちデータ部(311)を
一時的に蓄える送信データ蓄積手段(21)と、受信デー
タのうちデータ部(311)を一時的に蓄える受信データ
蓄積手段(23)と、自己の通信にエラーがないときに通
信フラグを発生し蓄える通信フラグ発生手段(22)と、
受信データのうちフラグ部(312)を一時的に蓄えるフ
ラグ部蓄積手段(24)と、端末機器へのデータの入出力
を行う端末機器入出力手段(26)と、論理演算手段(12
0)とを備え、の論理演算手段(120)が同期信号(30
1)を受けて初めて送信データ蓄積手段(21)に蓄えら
れたデータ部(311)と通信フラグ発生手段(22)に蓄
えられたフラグ部(312)とを通信路(4)に送出する
送信手段に伝送する手段と、受信手段(13)に伝送され
た通信データ(302)のうちデータ部(311)を受信デー
タ蓄積手段(23)に格納しフラグ部(312)をフラグ部
蓄積手段(24)に格納する手段と、エラーの有無の判断
を行う手段と、そのエラーの有無の判断によって受信デ
ータ蓄積手段(23)内のデータ部を破棄することの判断
を行う手段と、エラーの有無の判断によって送信データ
蓄積手段(21)内のデータを再送することの判断を行う
手段と、端末機器入出力手段(26)とのデータの伝送を
行う手段とを備えた複数の通信装置(200a)と同期信号
発生手段(11)とを通信路(4)で接続した通信システ
ム装置。
12. A synchronization signal discriminating means (14) for discriminating communication data (302) from a synchronization signal (301);
(2) transmitting means (2) to the communication path (4), receiving means (13) for receiving communication data (302) transmitted to the communication path (4), and a data part (311) of the transmission data. ), And a reception data storage means (23) for temporarily storing the data portion (311) of the reception data. A communication flag is set when there is no error in its own communication. Means for generating and storing a communication flag (22);
A flag section storing means (24) for temporarily storing a flag section (312) of the received data; a terminal device input / output means (26) for inputting / outputting data to / from the terminal apparatus;
0), and the logical operation means (120) of the synchronization signal (30)
For the first time after receiving (1), the data part (311) stored in the transmission data storage means (21) and the flag part (312) stored in the communication flag generation means (22) are transmitted to the communication path (4). Means for transmitting to the means, and the data part (311) of the communication data (302) transmitted to the receiving means (13) is stored in the received data storage means (23), and the flag part (312) is stored in the flag part storage means ( 24) means for determining whether there is an error, means for determining the presence or absence of an error, means for determining whether to discard the data portion in the received data storage means (23) based on the determination of the presence or absence of the error, and A plurality of communication devices (200a, 200b) provided with means for determining retransmission of the data in the transmission data storage means (21) and means for transmitting data to the terminal device input / output means (26). ) And the synchronization signal generating means (11) through the communication path (4). Connect the communication system equipment.
【請求項13】通信データ(302)と同期信号(301)と
を弁別する同期信号弁別手段(14)と、通信データ(30
2)を通信路(4)に伝送する送信手段(12)と、通信
路(4)に伝送された通信データ(302)を受信する受
信手段(13)と、送信データのうちデータ部(311)を
一時的に蓄える送信データ蓄積手段(21)と、受信デー
タのうちデータ部(311)を一時的に蓄える受信データ
蓄積手段(23)と、自己の通信にエラーがないときに通
信フラグを発生し蓄える通信フラグ発生手段(22)と、
受信データのうちフラグ部(312)を一時的に蓄えるフ
ラグ部蓄積手段(24)と、端末機器へのデータの入出力
を行う端末機器入出力手段(26)と、論理演算手段(12
0)とを備え、の論理演算手段(120)が同期信号(30
1)を受けて初めて送信データ蓄積手段(21)に蓄えら
れたデータ部(311)と通信フラグ発生手段(22)に蓄
えられたフラグ部(312)とを通信路(4)に送出する
送信手段に伝送する手段と、受信手段(13)に伝送され
た通信データ(302)のうちデータ部(311)を受信デー
タ蓄積手段(23)に格納しフラグ部(312)をフラグ部
蓄積手段(24)に格納する手段と、エラーの有無の判断
を行う手段と、そのエラーの有無の判断によって受信デ
ータ蓄積手段(23)内のデータ部を破棄することの判断
を行う手段と、エラーの有無の判断によって送信データ
蓄積手段(21)内のデータを再送することの判断を行う
手段と、端末機器入出力手段(26)とのデータの伝送を
行う手段とを備えた複数の通信装置(200a)と前記通信
装置(200a)内に同期信号発生手段(11)を備えた1つ
の通信装置(200b)とを通信路(4)で接続した通信シ
ステム装置。
13. A synchronizing signal discriminating means (14) for discriminating communication data (302) and a synchronizing signal (301);
(2) transmitting means (2) to the communication path (4), receiving means (13) for receiving communication data (302) transmitted to the communication path (4), and a data part (311) of the transmission data. ), And a reception data storage means (23) for temporarily storing the data portion (311) of the reception data. A communication flag is set when there is no error in its own communication. Means for generating and storing a communication flag (22);
A flag section storing means (24) for temporarily storing a flag section (312) of the received data; a terminal device input / output means (26) for inputting / outputting data to / from the terminal apparatus;
0), and the logical operation means (120) of the synchronization signal (30)
For the first time after receiving (1), the data part (311) stored in the transmission data storage means (21) and the flag part (312) stored in the communication flag generation means (22) are transmitted to the communication path (4). Means for transmitting to the means, and the data part (311) of the communication data (302) transmitted to the receiving means (13) is stored in the received data storage means (23), and the flag part (312) is stored in the flag part storage means ( 24) means for determining whether there is an error, means for determining the presence or absence of an error, means for determining whether to discard the data portion in the received data storage means (23) based on the determination of the presence or absence of the error, and A plurality of communication devices (200a, 200b) provided with means for determining retransmission of the data in the transmission data storage means (21) and means for transmitting data to the terminal device input / output means (26). ) And synchronization signal generating means ( A communication system device in which one communication device (200b) having 11) is connected by a communication path (4).
【請求項14】前記通信装置(200b)内に、同期信号
(301)を通信路(4)に伝送することの可否を決定す
る切換手段(15)を有する通信装置(200c)を複数個通
信路(4)で接続し、前記通信装置(200a)に替えてそ
の切換手段(15)によって同期信号(301)を通信路
(4)に伝送しないことを選択し、前記通信装置(200
b)に替えてその切換手段(15)によって同期信号(30
1)を通信路(4)に伝送することを選択した請求項13
記載の通信システム装置。
14. A plurality of communication devices (200c) having switching means (15) for determining whether or not to transmit a synchronization signal (301) to a communication path (4) in said communication device (200b). The communication device (200) is connected to the communication device (200a), and the switching means (15) selects not to transmit the synchronization signal (301) to the communication device (200).
In place of b), the synchronizing signal (30
14. The transmission of (1) to the communication path (4) is selected.
A communication system according to claim 1.
【請求項15】論理演算手段(120)内に、通信エラー
がないときに通信データ(302)を蓄積する手段(31)
を備え、エラーが発生したときは、そのエラーが発生す
る前の通信データを保持することを特徴とする請求項1
2、13または14のうちいずれかに記載の通信システム装
置。
15. A means (31) for storing communication data (302) in a logical operation means (120) when there is no communication error.
When an error occurs, the communication data before the error occurs is held.
15. The communication system device according to any one of 2, 13, and 14.
【請求項16】フラグ部(312)のデータによって受信
データ蓄積手段(23)内のデータを破棄し送信データ蓄
積手段(21)内のデータを再送するだけでなく、フラグ
部のデータにエラーが一定サイクル以上連続して発生し
たことを検出する手段(401)を有し、その検出手段(4
01)に連動して通信装置のリセットを行う切換手段(22
1)を有することを特徴とする請求項12、13、14または1
5のうちいずれかに記載の通信システム装置。
16. The data in the flag section (312) not only discards the data in the reception data storage section (23) and retransmits the data in the transmission data storage section (21), but also causes an error in the data in the flag section. A means (401) for detecting occurrence of continuous occurrence of a certain cycle or more;
Switching means (22) that resets the communication device in conjunction with (01)
Claim 12, 13, 14, or 1 characterized by having 1)
6. The communication system device according to any one of 5.
【請求項17】同期信号(301)のレベルが通信データ
(302)のレベルより高いことを特徴とする請求項12、1
3、14、15または16のうちいずれかに記載の通信システ
ム装置。
17. The system according to claim 12, wherein the level of the synchronization signal is higher than the level of the communication data.
17. The communication system device according to any one of 3, 14, 15, and 16.
【請求項18】同期信号(301)を整流して得られた直
流電力を電源として用いることを特徴とする請求項12、
13、14、15、16または17のうちいずれかに記載の通信シ
ステム装置。
18. The method according to claim 12, wherein DC power obtained by rectifying the synchronization signal (301) is used as a power supply.
18. The communication system device according to any one of 13, 14, 15, 16 and 17.
【請求項19】予め符号化された同期信号(304)を蓄
積する手段(29)を備え、受信データ内の符号化された
同期信号(304)と前記蓄積手段(29)とを比較し、受
信データ内の符号化された同期信号(304)が前記蓄積
手段(29)と異なっているときは、フラグ部(312)に
フラグを立てない手段を論理演算手段(120)に有する
ことを特徴とする請求項12、13、14、15、16、17または
18のうちいずれかに記載の通信システム装置。
19. Means for accumulating a previously encoded synchronization signal (304), comparing the encoded synchronization signal (304) in received data with the accumulation means (29), When the encoded synchronization signal (304) in the received data is different from the storage means (29), the logic operation means (120) has means for not setting a flag in the flag section (312). Claims 12, 13, 14, 15, 16, 17 or
19. The communication system device according to any one of 18.
JP1106467A 1989-04-26 1989-04-26 Communication method and communication system device used for the communication method Expired - Fee Related JP2720513B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1106467A JP2720513B2 (en) 1989-04-26 1989-04-26 Communication method and communication system device used for the communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1106467A JP2720513B2 (en) 1989-04-26 1989-04-26 Communication method and communication system device used for the communication method

Publications (2)

Publication Number Publication Date
JPH02285742A JPH02285742A (en) 1990-11-26
JP2720513B2 true JP2720513B2 (en) 1998-03-04

Family

ID=14434357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1106467A Expired - Fee Related JP2720513B2 (en) 1989-04-26 1989-04-26 Communication method and communication system device used for the communication method

Country Status (1)

Country Link
JP (1) JP2720513B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2750956B2 (en) * 1991-02-22 1998-05-18 日工株式会社 Analog multiplex transmission method
JPH04268897A (en) * 1991-02-22 1992-09-24 Nikko Co Ltd Analog multiplex transmission method
JPH04268896A (en) * 1991-02-22 1992-09-24 Nikko Co Ltd Analog multiplex transmission method

Also Published As

Publication number Publication date
JPH02285742A (en) 1990-11-26

Similar Documents

Publication Publication Date Title
US3845472A (en) Data communication system employing a series loop
US4988990A (en) Dual master implied token communication system
US4745597A (en) Reconfigurable local area network
US5122794A (en) Dual master implied token communication system
US5166678A (en) Dual master implied token communication system
JPS59144243A (en) Variable time division communication system station apparatus
KR100341706B1 (en) Single Channel Communication Bus System
WO2007060574A2 (en) A data processor system and a method for communicating data
US7135789B2 (en) Controlling devices using cascaded control units
JP2720513B2 (en) Communication method and communication system device used for the communication method
US5422877A (en) Dual bus switching
JP2021082027A (en) Safety controller
JP2011151769A (en) Data communication system and data communication method
JP2001177508A (en) Radio communication equipment
JPS6358567A (en) Serial interface bus system
US6885715B1 (en) Method and apparatus for synchronizing a network link
KR100567033B1 (en) Method for operating synchronous serial communication in which master and slave are fixed
CN116383115A (en) Data communication method and system
JPH11234364A (en) Communication control method and communication module
CN114064533A (en) RS-485 signal polarity identification method
JPS62171349A (en) Communication control equipment
CN116260675A (en) System and method for solving SPI master-slave switching interaction
JPH0548674A (en) Data communication equipment
JPH021411B2 (en)
JPH02101840A (en) Communication controller and home bus system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees