JP2003224570A - Communication equipment - Google Patents

Communication equipment

Info

Publication number
JP2003224570A
JP2003224570A JP2002019257A JP2002019257A JP2003224570A JP 2003224570 A JP2003224570 A JP 2003224570A JP 2002019257 A JP2002019257 A JP 2002019257A JP 2002019257 A JP2002019257 A JP 2002019257A JP 2003224570 A JP2003224570 A JP 2003224570A
Authority
JP
Japan
Prior art keywords
signal
communication
communication signal
data
transmitted
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.)
Withdrawn
Application number
JP2002019257A
Other languages
Japanese (ja)
Inventor
Juichi Kawashima
寿一 川島
Shigeo Goshima
成夫 五島
Yoshinobu Murakami
善宣 村上
Nariyuki Yamauchi
得志 山内
Hiroo Kawaminami
博生 川南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP2002019257A priority Critical patent/JP2003224570A/en
Publication of JP2003224570A publication Critical patent/JP2003224570A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide communication equipment to which a new function can be easily added while keeping compatibility with existing communication equipment. <P>SOLUTION: The communication equipment A1 of a transmission origin waits for the lapse of a suspension period TA, transmits a communication signal Vs to the communication equipment A2 of an opposite party and transmits a special code SD to a signal line 1 when standby time WA elapses. The communication equipment A2 on a reception side starts the countdown of the standby time WA from the point of time of completing the reception of the communication signal Vs and receives the special code SD before the countdown of the standby time WA ends. Thus, the new function is easily added by utilizing the special code SD while keeping the compatibility with the existing communication equipment Bn and excessive resources are not consumed accompanying the addition of the new function. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数の通信機器間
あるいは複数の親機と子機の間で同一の信号線を介して
データ通信を行う通信装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication device for performing data communication between a plurality of communication devices or between a plurality of parent devices and child devices via the same signal line.

【0002】[0002]

【従来の技術】従来、複数の通信機器が同一の信号線上
にバス接続されてなる通信装置では、信号線を流れる通
信信号を確実に区別するために信号線をアイドル状態
(何れの通信機器もバスにアクセスしていない状態)と
する期間(休止期間)が必要となる。例えば、シリアル
通信の規格であるIEEE1394では上述のようなア
イドル状態の期間をギャップ期間と呼んでいる。そし
て、多対多のデータ通信を行う分散型の通信装置におい
ては、信号線の未使用時間が休止期間を超えれば他の通
信機器によって信号線が使用されていないと判断してい
る。また、親機と子機の間で1対多(あるいは1対1)
のデータ通信を行う通信装置においては、親機からの問
い合わせに対する子機の返信を受信するために上記休止
期間が利用される。さらに、通信機器として内部処理の
処理時間が遅いものと早いものとが混在する場合、処理
時間の遅い通信機器にて通信信号に基づく内部処理が完
了するまでの時間を確保するために休止期間を設ける必
要がある。
2. Description of the Related Art Conventionally, in a communication apparatus in which a plurality of communication devices are bus-connected on the same signal line, the signal line is in an idle state (for any communication device, in order to reliably distinguish a communication signal flowing through the signal line). It is necessary to have a period (pause period) in which the bus is not accessed. For example, in IEEE 1394, which is a standard for serial communication, the idle period as described above is called a gap period. Then, in the distributed communication apparatus that performs many-to-many data communication, it is determined that the signal line is not used by another communication device if the unused time of the signal line exceeds the idle period. Also, one-to-many (or one-to-one) between the master and slave
In the communication device that performs the data communication, the idle period is used to receive the reply of the slave unit to the inquiry from the master unit. Furthermore, when communication devices with both slow and fast internal processing times coexist, a pause period is provided to ensure the time until internal processing based on communication signals is completed in the communication device with slow processing time. It is necessary to provide.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記分散型
の通信装置において、既存の通信装置に新たな機能を追
加しようとする場合、データ(例えばコマンドデータ)
の割り当てに使用するリソースに余裕がなければデータ
の情報量(通信信号のデータ長)を増やす必要がある。
しかしながら、データの情報量を増やすために数ビット
あるいは数バイトを追加すると、通信信号が長くなって
既存の通信装置との互換性が失われてしまう虞がある。
また、分散型の通信装置(通信システム)として、米国
エシェロン社が開発したLonWorks(登録商標)によるLO
N(Local Operating Network)(登録商標)が普及しつ
つあるが、このシステムでは全ての通信機器に衝突検知
処理を含む複雑なプロトコルスタックを実装すると同時
にそれぞれ固有のアドレスが割り当てられており、新た
な機能の追加が容易ではあるものの、処理能力の高いC
PUや大容量の記憶装置等が必要となってコストが高く
ついてしまう。なお、開始符号と停止符号の間にデータ
が位置する信号フォーマットの通信信号を送受信し、通
信信号の中に信号線をアイドル状態とする休止期間を設
け、その休止期間の直前直後のデータを特殊なデータと
して取り扱うようにしたものが提案されている(特開2
000−196630号公報参照)が、新たな機能を追
加しようとしても追加される機能を盛り込んだプロトコ
ルを設定する必要があるから機能の追加には不向きであ
る。
By the way, in the above distributed communication device, when adding a new function to an existing communication device, data (for example, command data) is added.
If there is no margin in the resources used for the allocation, it is necessary to increase the amount of data information (data length of communication signal).
However, if a few bits or a few bytes are added to increase the information amount of data, the communication signal becomes long and compatibility with existing communication devices may be lost.
Also, as a distributed communication device (communication system), an LO based on LonWorks (registered trademark) developed by Echelon Corporation in the United States.
N (Local Operating Network) (registered trademark) is becoming widespread, but in this system, a complicated protocol stack including collision detection processing is implemented in all communication devices, and at the same time, a unique address is assigned to each communication device. Although it is easy to add functions, C has high processing capacity.
A PU, a large-capacity storage device, and the like are required, resulting in high cost. In addition, the communication signal of the signal format in which the data is located between the start code and the stop code is transmitted and received, and a pause period is provided in the communication signal to put the signal line in an idle state. It has been proposed that the data be handled as various types of data (Japanese Patent Laid-Open No. 2-216058)
However, since it is necessary to set a protocol including a function to be added even if an attempt is made to add a new function, it is not suitable for adding the function.

【0004】一方、親機と子機からなる通信装置の従来
例として、例えば、親機と固有のアドレスが割り当てら
れた複数の子機からなり、親機からは各子機に対するア
ドレス信号及び制御信号を所定の休止期間を介して順次
送出するとともに、各子機からは上記休止期間に親機に
対して監視信号を送信するもの(特開平11−1352
69号公報参照)や、親機により複数の子機をポーリン
グし、子機から親機へのデータ送信を、親機から子機へ
の伝送信号に設けた信号返送期間に行うようにしたもの
(特開平5−22777号公報参照)がある。しかしな
がら、前者のものでは、子機から親機へデータを送信す
る際に必ず親機からの制御信号の送信が必要となる。同
様に、後者のもののようなポーリング/セレクティング
方式では、親機が各子機を常時ポーリングしてデータ送
信の有無を確認する必要があるから、送信待ちのデータ
を持たない子機に対してもポーリングが行われることで
通信処理の負担が大きくなって親機や子機に高い処理能
力が要求される。特に後者の公報に記載されているよう
に遠隔から負荷の動作を制御するものにあっては、煩雑
にデータ通信が行われないにもかかわらず常時ポーリン
グを行うために高い処理能力が必要となってコストがか
かるという問題がある。なお、データ通信が煩雑に行わ
れない状況においては、送信データがある場合にのみ親
機から子機へデータを送信し、親機からの問い合わせが
あった場合にのみ子機から親機へデータを送信するとい
う方式のものを用いれば、子機に高い処理能力が要求さ
れない。しかしながら、子機から親機にデータを送信す
る場合、親機から子機に定期的に問い合わせを行う必要
が生じるから、結局のところ上記ポーリング/セレクテ
ィング方式と同様に子機が常時通信処理を行わなければ
ならず、余分な処理能力が必要となってコストが高くつ
くことになる。
On the other hand, as a conventional example of a communication device composed of a master unit and a slave unit, for example, a master unit and a plurality of slave units to which a unique address is assigned are provided, and from the master unit, an address signal and control for each slave unit are provided. Signals are sequentially transmitted during a predetermined rest period, and each slave unit transmits a monitoring signal to the master unit during the rest period (Japanese Patent Laid-Open No. 11-1352).
No. 69), or by polling a plurality of slave units by the master unit and performing data transmission from the slave unit to the master unit during the signal return period provided in the transmission signal from the master unit to the slave unit. (See Japanese Patent Laid-Open No. 5-22777). However, in the former case, when transmitting data from the slave unit to the master unit, the control signal must be transmitted from the master unit without fail. Similarly, in the polling / selecting method such as the latter one, the master unit needs to constantly poll each slave unit to check whether or not data is transmitted, so that for slave units that do not have data waiting to be transmitted. As a result of polling being performed, the load of communication processing is increased and a high processing capacity is required for the parent device and the child device. Particularly in the case of remotely controlling the load operation as described in the latter publication, a high processing capacity is required for constant polling even though data communication is not complicated. There is a problem that it takes a lot of money. In a situation where data communication is not complicated, data is sent from the base unit to the handset only when there is data to send, and data is sent from the handset to the handset only when the base unit makes an inquiry. Is used, a high processing capability is not required for the slave unit. However, when data is transmitted from the child device to the parent device, it is necessary for the parent device to periodically make inquiries to the child device, and as a result, the child device always performs communication processing as in the polling / selecting method. This has to be done, which requires extra processing power and is costly.

【0005】請求項1の発明は上記前者の問題に鑑みて
為されたものであり、その目的は、既存の通信装置との
互換性を保ちながら新たな機能を容易に追加することが
できる通信装置を提供することにある。
The invention of claim 1 is made in view of the former problem, and an object thereof is communication in which a new function can be easily added while maintaining compatibility with an existing communication device. To provide a device.

【0006】また、請求項2の発明は上記後者の問題に
鑑みて為されたものであり、その目的は、親機による常
時ポーリングを行わずに子機から親機へ自発的にデータ
送信が行える通信装置を提供することにある。
Further, the invention of claim 2 is made in view of the latter problem, and an object thereof is that data transmission from the slave unit to the master unit is voluntarily performed without constant polling by the master unit. It is to provide a communication device capable of performing.

【0007】[0007]

【課題を解決するための手段】請求項1の発明は、上記
目的を達成するために、同一の信号線上に接続され、開
始符号と停止符号の間にデータが位置する信号フォーマ
ットを持った通信信号を互いに信号線を介して送受信す
る複数の通信機器からなり、通信機器から通信信号を送
信する場合に先の通信信号の停止符号と後の通信信号の
開始符号との間に信号線に信号を送出しない休止期間を
設けてなる通信装置において、各通信機器は、通信信号
に含めることのできない特別符号を通信信号送信後の所
定期間内に送受信するとともに当該特別符号の送信後に
休止期間を開始することを特徴とし、既存の通信装置と
の間で通信信号を送受信することが可能であり、既存の
通信装置との互換性を保ちながら特別符号を利用して新
たな機能を容易に追加することができる。
In order to achieve the above object, the invention according to claim 1 is a communication having a signal format which is connected on the same signal line and in which data is located between a start code and a stop code. It consists of multiple communication devices that send and receive signals to and from each other via signal lines.When sending communication signals from communication devices, signals are sent to the signal line between the stop code of the preceding communication signal and the start code of the subsequent communication signal. In a communication device provided with a pause period that does not send, each communication device transmits and receives a special code that cannot be included in the communication signal within a predetermined period after the transmission of the communication signal, and starts the pause period after the transmission of the special code. It is possible to send and receive a communication signal with an existing communication device, and a new function can be easily implemented by using a special code while maintaining compatibility with the existing communication device. It can be pressurized.

【0008】請求項2の発明は、上記目的を達成するた
めに、1乃至複数の親機と、同一の信号線で各親機と接
続されるとともに固有のアドレスが割り当てられた1乃
至複数の子機とを備え、開始符号と停止符号の間に宛先
アドレスを含むデータが位置する信号フォーマットを持
った通信信号を親機から送信するとともに通信信号を送
信する場合に先の通信信号の停止符号と後の通信信号の
開始符号との間に信号線に信号を送出しない休止期間を
設け、各子機は、受信した通信信号の宛先アドレスが自
己のアドレスと一致した場合に当該通信信号を取得し、
且つ取得した通信信号のデータに応じた処理を行い、当
該データが親機からの問い合わせに関するデータであれ
ば当該問い合わせに対する返信データを休止期間内に設
けた返信待ち時間内に親機に送信し、親機に対して自発
的に通知する必要のあるデータが有る場合に当該情報を
データとして含む通信信号を休止期間の開始から所定期
間が経過した後に送信することを特徴とし、通信装置の
トラフィックが少ない場合に子機から自発的にデータを
送信することができるため、親機による常時ポーリング
を行わずに子機から親機へ自発的にデータ送信が行え
る。
In order to achieve the above-mentioned object, the invention of claim 2 is one to a plurality of masters, and one to a plurality of masters connected to each master by the same signal line and assigned a unique address. A stop code of the previous communication signal when the master unit transmits a communication signal having a signal format in which the data including the destination address is located between the start code and the stop code. A pause period in which no signal is sent to the signal line is provided between the start code of the communication signal and the start code of the subsequent communication signal, and each slave unit acquires the communication signal when the destination address of the received communication signal matches its own address. Then
And processing is performed according to the data of the acquired communication signal, and if the data is data related to an inquiry from the parent device, the reply data to the inquiry is transmitted to the parent device within the reply waiting time provided during the suspension period, When there is data that needs to be voluntarily notified to the parent device, a communication signal including the information as data is transmitted after a predetermined period has elapsed from the start of the pause period, and the traffic of the communication device is Since the data can be voluntarily transmitted from the child device when the number is small, data can be voluntarily transmitted from the child device to the parent device without constant polling by the parent device.

【0009】請求項3の発明は、請求項2の発明におい
て、子機は、何れかの親機から通信信号が送信され且つ
その通信信号が宛先の子機に対して返信を要求する問い
合わせコマンドを含まない場合に当該通信信号送信後の
一定期間であって休止期間よりも長くない期間内に自発
的に通信信号を送信することを特徴とし、親機に対する
返信信号と衝突する虞が無く、複数の子機から自発的に
通信信号が送信された場合にしか衝突が発生しないか
ら、信号線上で衝突が生じる確率を低減することができ
る。
According to a third aspect of the present invention, in the second aspect of the invention, the slave unit has an inquiry command for which a communication signal is transmitted from any of the master units and the communication signal requests a reply to the destination slave unit. When not including, the communication signal is voluntarily transmitted within a fixed period after the communication signal is transmitted, which is not longer than the idle period, and there is no risk of colliding with a reply signal to the master unit. Since the collision occurs only when the communication signals are spontaneously transmitted from the plurality of slave units, it is possible to reduce the probability of the collision on the signal line.

【0010】請求項4の発明は、請求項2の発明におい
て、子機は、信号線上に通信信号がなくなった時点から
休止期間以上の所定時間が経過した後に自発的に通信信
号を送信することを特徴とし、子機の自発的な通信信号
の送受信に対して親機の通信信号の送受信を優先させる
ことができる。
According to a fourth aspect of the invention, in the second aspect of the invention, the slave unit voluntarily transmits the communication signal after a lapse of a predetermined time longer than the pause period from the time when there is no communication signal on the signal line. The transmission / reception of the communication signal of the master unit can be prioritized over the transmission / reception of the communication signal of the slave unit.

【0011】請求項5の発明は、請求項2又は3又は4
の発明において、子機は、信号線上に信号が流れていな
いことを確認した場合に自発的に通信信号を送信するこ
とを特徴とし、信号線上で信号が衝突する確率を低減さ
せることができる。
The invention of claim 5 is the invention of claim 2 or 3 or 4.
In the invention, the slave unit is characterized by voluntarily transmitting the communication signal when it is confirmed that no signal is flowing on the signal line, and the probability of signal collision on the signal line can be reduced.

【0012】請求項6の発明は、請求項5の発明におい
て、親機又は子機の少なくとも何れか一方は、自らが送
信した通信信号を受信し当該受信信号に含まれるデータ
と送信したデータを比較し、両データが一致しない場合
に同一のデータを再送信することを特徴とし、通信信号
が送信されなくなる不動作の確率を低減することができ
る。
According to a sixth aspect of the present invention, in the fifth aspect, at least one of the master unit and the slave unit receives the communication signal transmitted by itself, and includes the data included in the received signal and the transmitted data. In comparison, when the two data do not match, the same data is retransmitted, and it is possible to reduce the probability of non-operation in which the communication signal is not transmitted.

【0013】請求項7の発明は、請求項6の発明におい
て、親機又は子機の少なくとも何れか一方は、通信信号
を再送信する場合に先の通信信号の送信終了時点から休
止期間よりも長くない時間であって各親機並びに子機毎
に任意に設定される遅延時間が経過した後に通信信号を
再送信することを特徴とし、再送信における衝突の発生
を防ぐことができる。
According to a seventh aspect of the invention, in the sixth aspect of the invention, at least one of the master unit and the slave unit, when retransmitting a communication signal, is longer than a pause period from the end of transmission of the previous communication signal. It is characterized in that the communication signal is retransmitted after a delay time which is not long and which is arbitrarily set for each parent device and each child device has elapsed, and it is possible to prevent the occurrence of collision in the retransmission.

【0014】[0014]

【発明の実施の形態】(実施形態1)本実施形態の通信
装置は、図1に示すように既存の通信機器Bj(j=
1,2,…,n)とともに2線式の信号線1に接続され
た通信機器Ai(i=1,2)で構成される。これら2
種類の通信機器Ai,Bjは、少なくとも信号線1を介
して互いにデータ伝送を行う通信制御部を備えるととも
にそれぞれに固有のアドレスが割り当てられ、図2に示
すように開始符号STと停止符号EDの間に宛先アドレ
ス、送信元アドレス並びにコマンドなどのデータDAが
位置する信号フォーマットを持った通信信号Vsを互い
に信号線1を介して送受信する。また、信号線1上にお
ける通信信号Vsの衝突を回避するために先の通信信号
Vsの停止符号EDと後の通信信号Vsの開始符号ST
との間に信号線1に信号を送出しない休止期間TAを設
けている。
BEST MODE FOR CARRYING OUT THE INVENTION (Embodiment 1) As shown in FIG. 1, a communication apparatus of this embodiment has an existing communication device Bj (j =
1, 2, ..., N) and a communication device Ai (i = 1, 2) connected to the two-wire signal line 1. These two
The types of communication devices Ai and Bj each include a communication control unit that transmits data to each other via at least the signal line 1 and are assigned unique addresses. As shown in FIG. 2, a start code ST and a stop code ED are assigned. A communication signal Vs having a signal format in which a data DA such as a destination address, a source address, and a command is located therebetween is transmitted and received via the signal line 1. Further, in order to avoid collision of the communication signal Vs on the signal line 1, the stop code ED of the previous communication signal Vs and the start code ST of the subsequent communication signal Vs.
And a pause period TA in which no signal is sent to the signal line 1 is provided.

【0015】ここで、既存の通信機器Bjにおける通信
信号Vsの受信処理について図3のフローチャート並び
に図4のタイミングチャートを参照して説明する。例え
ば、信号線1上に通信信号Vsが存在しない状況におい
て、通信機器B1からB2にデータを送信する場合を考
える。まず、送信元の通信機器B1では、信号線1上に
通信信号Vsが存在するか否かを判断し(ステップS
1)、通信信号Vsが存在しなければ(信号線1がアイ
ドル状態であれば)、タイマ時間をカウントアップし
(ステップS2)、さらにタイマ時間が所定の休止期間
TAを経過したか否かを判断し(ステップS3)、タイ
マ時間が休止期間TAを経過するまでの間、上記ステッ
プS1〜ステップS3の処理を繰り返す。
Now, the receiving process of the communication signal Vs in the existing communication device Bj will be described with reference to the flowchart of FIG. 3 and the timing chart of FIG. For example, consider a case where data is transmitted from the communication devices B1 to B2 in a situation where the communication signal Vs does not exist on the signal line 1. First, in the communication device B1 of the transmission source, it is determined whether or not the communication signal Vs exists on the signal line 1 (step S
1) If the communication signal Vs does not exist (if the signal line 1 is in the idle state), the timer time is counted up (step S2), and it is further determined whether or not the timer time has passed a predetermined pause period TA. The determination is made (step S3), and the processes of steps S1 to S3 are repeated until the timer time elapses the pause period TA.

【0016】タイマ時間が休止期間TAを経過すれば送
信データの有無を判断し(ステップS4)、送信データ
があれば上記信号フォーマットに則って通信信号Vs1
により相手先の通信機器B2にデータを送信する処理を
行う(ステップS5)。そして、送信処理が完了するま
での間、ステップS1〜ステップS6の処理を繰り返
し、通信号Vs1の送信処理が完了したらタイマ時間を
クリア(ステップS7)した後、信号線1上の信号を監
視する状態に戻る(ステップS1)。ここで、他にも送
信データが有る場合、通信機器B1ではステップS1〜
ステップS3の処理を繰り返してタイマ時間が休止期間
TAを経過するまで待ち、タイマ時間が休止期間TAを
経過すれば、次の送信データを送る通信信号Vs2の送
信が完了するまでステップS1〜ステップS6の処理を
繰り返す。
If the timer time has passed the quiescent period TA, it is judged whether or not there is transmission data (step S4). If there is transmission data, the communication signal Vs1 is based on the above signal format.
Thus, processing for transmitting data to the communication device B2 of the other party is performed (step S5). Then, the processing of steps S1 to S6 is repeated until the transmission processing is completed, and after the transmission processing of the communication signal Vs1 is completed, the timer time is cleared (step S7), and then the signal on the signal line 1 is monitored. It returns to the state (step S1). Here, if there is other transmission data, the communication device B1 performs steps S1 to S1.
The process of step S3 is repeated until the timer time elapses the pause period TA. If the timer time passes the pause period TA, steps S1 to S6 are performed until the transmission of the communication signal Vs2 for transmitting the next transmission data is completed. The process of is repeated.

【0017】一方、受信する側の通信機器B2でも同じ
処理を行っており、信号線1上に通信信号Vsが存在す
るか否かを判断する(ステップS1)。いま、信号線1
上に通信機器B1から送信された通信信号Vs1が存在
するので、信号線1より受信した通信信号Vs1をバッ
ファに取り込みつつ停止符号EDの受信を待ち(ステッ
プS8)、ステップS1,S2,S8,S3の処理を繰
り返す。そして、停止符号EDを受信して通信信号Vs
1の受信を完了したら、通信信号Vs1を作業メモリに
格納し、データDAに含まれる宛先アドレスが自己のア
ドレスに一致するか否かを判断し、一致すればデータD
Aに含まれるコマンドに基づく処理等を実行し、一致し
なければ作業メモリに格納した通信信号Vs1を破棄す
る。
On the other hand, the communication device B2 on the receiving side also performs the same processing, and judges whether or not the communication signal Vs exists on the signal line 1 (step S1). Now signal line 1
Since the communication signal Vs1 transmitted from the communication device B1 exists above, the communication signal Vs1 received from the signal line 1 is stored in the buffer while waiting for the reception of the stop code ED (step S8), steps S1, S2, S8, The process of S3 is repeated. Then, the stop code ED is received and the communication signal Vs is received.
When the reception of 1 is completed, the communication signal Vs1 is stored in the working memory, it is determined whether the destination address included in the data DA matches its own address, and if they match, the data D
The processing based on the command included in A is executed, and if they do not match, the communication signal Vs1 stored in the working memory is discarded.

【0018】また、通信機器B2では通信信号Vs1の
受信が完了したらタイマ時間をクリアし(ステップS1
0)、上記ステップS1〜ステップS3の処理を繰り返
してタイマ時間のカウントを行う。そして、通信機器B
1から送信された次の通信信号Vs2を受信すると(ス
テップS1)、通信機器B2では信号線1より受信した
通信信号Vs2をバッファに取り込みつつ停止符号ED
の受信を待ち(ステップS8)、停止符号EDを受信し
て通信信号Vs2の受信を完了するまでステップS1,
S2,S8,S3の処理を繰り返す。ここで、通信信号
Vs2で送信されてきたデータが応答を要求するコマン
ド等であった場合、通信機器B2ではタイマ時間が休止
期間TAを経過した後にステップS4〜ステップS7の
処理を行って応答用のデータを通信機器B1に返信す
る。
When the communication device B2 completes the reception of the communication signal Vs1, the timer time is cleared (step S1).
0), the processing of steps S1 to S3 is repeated to count the timer time. And communication device B
When the next communication signal Vs2 transmitted from 1 is received (step S1), the communication device B2 captures the communication signal Vs2 received from the signal line 1 in a buffer and stops code ED.
Until the reception of the stop code ED and the reception of the communication signal Vs2 are completed (step S8).
The processing of S2, S8 and S3 is repeated. Here, when the data transmitted by the communication signal Vs2 is a command or the like requesting a response, the communication device B2 performs the processing of steps S4 to S7 after the timer time elapses, and then performs response processing. Data is returned to the communication device B1.

【0019】次に本発明に係る通信機器A1,A2の送
受信処理を図5及び図6のフローチャート並びに図7の
タイムチャートを参照して説明する。例えば、信号線1
上に通信信号Vsが存在しない状況において、通信機器
A1からA2にデータを送信する場合を考える。
Next, the transmission / reception processing of the communication devices A1 and A2 according to the present invention will be described with reference to the flowcharts of FIGS. 5 and 6 and the time chart of FIG. For example, signal line 1
Consider a case where data is transmitted from the communication devices A1 to A2 in the situation where the communication signal Vs does not exist above.

【0020】まず、送信元の通信機器A1では図3にお
けるステップS1〜ステップS3の処理を繰り返してタ
イマ時間が休止期間TAを経過するまで待ち、タイマ時
間が休止期間TAを経過すれば、通信信号Vs1により
相手先の通信機器A2にデータを送信する処理を行う
(図3のステップS5)。そして、データの送信処理が
完了するまで待ち(図5のステップS5,S6)、通信
信号Vs1の送信処理が完了したら、特別符号SDを送
信するまでの待ち時間WAのカウントダウンを行い(図
5のステップS11)、図7に示すように待ち時間WA
のカウントダウンが終了したら特別符号SDを信号線1
に送信(図5のステップS12)し、送信処理を終了し
て図3のステップS1に戻る。
First, in the communication device A1 of the transmission source, the processing of steps S1 to S3 in FIG. 3 is repeated to wait until the timer time elapses the pause period TA, and if the timer time elapses the pause period TA, the communication signal is transmitted. A process of transmitting data to the communication device A2 of the partner by Vs1 is performed (step S5 of FIG. 3). Then, it waits until the data transmission process is completed (steps S5 and S6 in FIG. 5), and when the communication signal Vs1 transmission process is completed, the waiting time WA until the special code SD is transmitted is counted down (see FIG. 5). Step S11), waiting time WA as shown in FIG.
After the end of the countdown, the special code SD is applied to the signal line 1
(Step S12 in FIG. 5), the transmission process ends, and the process returns to step S1 in FIG.

【0021】一方、受信する側の通信機器A2では、信
号線1上に通信信号Vsが存在するか否かを判断し(図
3、図5のステップS1)、信号線1より受信した通信
信号Vs1をバッファに取り込みつつ停止符号EDの受
信完了を待ち(図6のステップS8)、図3のステップ
S1,S2,S8,S3の処理を繰り返す。そして、停
止符号EDの受信を完了した時点で待ち時間WAのカウ
ントダウンを開始し(図6のステップS13)、待ち時
間WAのカウントダウンが終了するまでの間は特別符号
SDの受信の有無を監視する(図6のステップS13〜
S15)。待ち時間WAのカウントダウンが終了する前
に特別符号SDを受信すれば、通信信号Vs1並びに特
別符号SDを作業メモリに格納し(図6のステップS1
6)、データDAに含まれる宛先アドレスが自己のアド
レスに一致するか否かを判断し、一致すればデータDA
に含まれるコマンドに基づく処理等を実行するとともに
特別符号SDに基づく処理を実行し、一致しなければ作
業メモリに格納した通信信号Vs1並びに特別符号SD
を破棄する。なお、特別符号SDを受信することなく待
ち時間WAのカウントダウンが終了した場合、通信信号
Vs1を作業メモリに格納し(図6のステップS1
7)、宛先アドレスの確認結果に応じて上記の処理を実
行する。
On the other hand, in the communication device A2 on the receiving side, it is judged whether or not the communication signal Vs exists on the signal line 1 (step S1 in FIGS. 3 and 5), and the communication signal received from the signal line 1 is judged. Waiting for the completion of reception of the stop code ED while taking Vs1 into the buffer (step S8 in FIG. 6) and repeating the processes of steps S1, S2, S8 and S3 in FIG. Then, when the reception of the stop code ED is completed, the waiting time WA is started to be counted down (step S13 in FIG. 6), and the presence or absence of the reception of the special code SD is monitored until the countdown of the waiting time WA is completed. (Step S13-
S15). If the special code SD is received before the countdown of the waiting time WA is completed, the communication signal Vs1 and the special code SD are stored in the working memory (step S1 in FIG. 6).
6) Determine whether the destination address included in the data DA matches its own address, and if they match, the data DA
And the special code SD are stored in the working memory and the special code SD and the special code SD are stored in the working memory.
Discard. When the countdown of the waiting time WA is completed without receiving the special code SD, the communication signal Vs1 is stored in the working memory (step S1 in FIG. 6).
7) The above process is executed according to the confirmation result of the destination address.

【0022】上述のような手順により通信機器A1,A
2の間で通信信号Vs及び特別符号SDの伝送が行われ
る。なお、通信機器Aiにおける通信信号Vsの伝送手
順は既存の通信機器Bjと共通であるから、2種類の通
信機器Ai,Bjの間で通信信号Vsの伝送が可能であ
ることはいうまでもない。
The communication devices A1 and A are processed by the above-described procedure.
The communication signal Vs and the special code SD are transmitted between the two. It is needless to say that the transmission procedure of the communication signal Vs in the communication device Ai is the same as that of the existing communication device Bj, so that the communication signal Vs can be transmitted between the two types of communication devices Ai and Bj. .

【0023】ここで、特別符号SDとしては通信信号V
sのデータDAに含まれるコマンドの拡張ビットや受信
完了通知(ACK)の返信要求ビット等の種々のものが
利用可能であり、要するに通信機器Aiで予め整合され
た内容のものであればよい。例えば、既存の通信装置で
は通信信号Vsの受信確認ができない場合でも、特別符
号SDを上記受信完了通知(ACK)の返信要求と定義
すれば、通信機器A1から特別符号SDが付加された通
信信号Vsを送信し、通信信号Vs並びに特別符号SD
を受信した通信機器A2から受信完了通知(ACK)を
送信元の通信機器A1に返信するから、受信完了通知が
返信されなければ、送信元の通信機器A1において通信
信号Vsの再送信等の適切な処置を行うことができ、通
信装置が不動作となる確率を低減することが可能とな
る。あるいは、既存の通信装置に伝送エラーのチェック
機能がない場合であっても、特別符号SDをパリティコ
ードに利用すれば、受信側の通信機器Aiで特別符号S
Dに基づいて通信信号Vsの伝送誤りをチェックするこ
とができるから、誤動作の確率を低減することが可能と
なる。
The special code SD is a communication signal V.
Various items such as the extension bit of the command included in the data DA of s, the reply request bit of the reception completion notification (ACK), and the like can be used, that is, the contents that are previously matched by the communication device Ai. For example, even if the existing communication device cannot confirm the reception of the communication signal Vs, if the special code SD is defined as a reply request of the reception completion notification (ACK), the communication signal to which the special code SD is added from the communication device A1. Vs is transmitted, communication signal Vs and special code SD
Since the reception completion notification (ACK) is returned from the communication device A2 that received the message to the communication device A1 that is the transmission source, if the reception completion notification is not returned, it is appropriate to retransmit the communication signal Vs in the communication device A1 that is the transmission source. Therefore, it is possible to reduce the probability that the communication device will be inoperative. Alternatively, even if the existing communication device does not have a transmission error check function, if the special code SD is used for the parity code, the special code S is received by the communication device Ai on the receiving side.
Since the transmission error of the communication signal Vs can be checked based on D, the probability of malfunction can be reduced.

【0024】上述のように本実施形態の通信装置では、
既存の通信装置との互換性を保ちながら、特別符号SD
を利用して新たな機能を容易に追加することができ、し
かも、新たな機能の追加に伴って余分なリソースを消費
することがない。なお、図8に示すように電源供給装置
2を信号線1に接続し、信号線1を介して通信機器A
i,Bjに電源を供給するようにしても構わない。
As described above, in the communication device of this embodiment,
Special code SD while maintaining compatibility with existing communication devices
It is possible to easily add a new function by using, and moreover, an extra resource is not consumed with the addition of the new function. As shown in FIG. 8, the power supply device 2 is connected to the signal line 1, and the communication device A is connected via the signal line 1.
Power may be supplied to i and Bj.

【0025】ところで、通信機器Aiに比較して既存の
通信機器Bjの動作速度が遅い場合に、通信機器Bjに
おいて受信した通信信号Vsに対する返信処理が確実に
行われるようにするために、通信機器Bjの内部処理を
待つ待機期間と通信機器Bjから通信信号Vsを返信す
る返信期間とを休止期間TA内に設けるようにしてもよ
い。このような待機期間及び返信期間を設けた場合にお
ける通信信号Vsの送受信処理について図9のフローチ
ャートを参照して説明する。但し、基本的な処理は図3
のフローチャートと共通であるから、共通する処理につ
いては詳しい説明を省略する。
By the way, when the operation speed of the existing communication device Bj is slower than that of the communication device Ai, in order to ensure that the reply process to the communication signal Vs received by the communication device Bj is performed, A waiting period for waiting for the internal processing of Bj and a reply period for returning the communication signal Vs from the communication device Bj may be provided within the pause period TA. The transmission / reception processing of the communication signal Vs in the case of providing such a waiting period and a reply period will be described with reference to the flowchart of FIG. However, the basic processing is shown in FIG.
Since it is the same as the flowchart of 1., detailed description of the common processing will be omitted.

【0026】例えば、通信機器A1から送信された通信
信号Vsに対して通信機器B1より通信信号Vsを返信
する場合を考える。なお、通信機器A1から通信信号V
sを送信する手順については説明を省略する。受信側の
通信機器B1では、通信機器A1から送信された通信信
号Vsを受信(ステップS1〜S10)した後、通信機
器A1に対する返信データがなければ(ステップS1
8)、タイマ時間が休止期間TAを経過するまでの間、
ステップS1〜ステップS3の処理を繰り返す。この場
合、通信機器B1では休止期間TAの間に必要な処理を
行うことができる。
For example, let us consider a case where the communication signal Vs is returned from the communication device B1 in response to the communication signal Vs transmitted from the communication device A1. The communication signal V from the communication device A1
The description of the procedure for transmitting s is omitted. In the communication device B1 on the receiving side, after receiving the communication signal Vs transmitted from the communication device A1 (steps S1 to S10), if there is no reply data to the communication device A1 (step S1).
8), until the timer time elapses the pause period TA,
The processing of steps S1 to S3 is repeated. In this case, the communication device B1 can perform necessary processing during the pause period TA.

【0027】一方、通信信号Vsに含まれるデータDA
が応答を要求するものであって通信機器A1に対する返
信データが有れば(ステップS18)、待機時間のカウ
ントダウンを開始(ステップS19)し、待機時間のカ
ウントダウンが終了するまでの間に必要な処理を実行す
る(ステップS19,S20)。そして、待機時間のカ
ウントダウンが終了したら送信処理を実行して通信機器
A1に返信用の通信信号Vsを送信する(ステップS
5)。
On the other hand, the data DA included in the communication signal Vs
Is a request for a response and there is reply data to the communication device A1 (step S18), the countdown of the waiting time is started (step S19), and necessary processing is performed until the countdown of the waiting time is completed. Is executed (steps S19 and S20). Then, when the countdown of the waiting time is completed, the transmission process is executed to transmit the communication signal Vs for reply to the communication device A1 (step S
5).

【0028】而して、待機時間を設けたことで動作速度
の遅い通信機器Bjが混在する場合でも通信機器Bjの
返信処理を確実に実行することができる。
Thus, by providing the waiting time, the reply process of the communication device Bj can be surely executed even when the communication devices Bj having slow operating speeds are mixed.

【0029】(実施形態2)本実施形態の通信装置は、
図10に示すように複数の親機MAi(i=1,2)
と、複数の子機SLj(j=1,2,…,n)とが2線
式の信号線1により接続されて構成されている。親機M
Ai並びに子機SLjは、実施形態1と同様に少なくと
も信号線1を介して互いにデータ伝送を行う通信制御部
を備えるとともにそれぞれに固有のアドレスが割り当て
られる。親機MAiは、図11(a)に示すように開始
符号ST、宛先の子機アドレスADs、送信データDA
及び停止符号EDからなる信号フォーマットを持った通
信信号Vxを子機SLjへ送信する。ここで、信号線1
上における通信信号Vxの衝突を回避するために先の通
信信号Vxの停止符号EDと後の通信信号Vxの開始符
号STとの間に信号線1に信号を送出しない休止期間T
Bを設けている。なお、この休止期間TBは通信信号V
xを受信した子機SLjにおける処理を待つための待機
時間TRと、親機MAiからの問い合わせに対して子機
SLjから返信信号を送信するための返信待ち時間TW
とからなる。
(Embodiment 2) The communication device of this embodiment is
As shown in FIG. 10, a plurality of master devices MAi (i = 1, 2)
And a plurality of slaves SLj (j = 1, 2, ..., N) are connected by a two-wire signal line 1. Base unit M
Similar to the first embodiment, the Ai and the slave SLj each include a communication control unit that performs data transmission with each other via at least the signal line 1 and are assigned unique addresses. As shown in FIG. 11A, the master unit MAi has a start code ST, a destination slave unit address ADs, and transmission data DA.
And a communication signal Vx having a signal format including a stop code ED to the slave device SLj. Here, signal line 1
In order to avoid the collision of the communication signal Vx above, a pause period T in which no signal is transmitted to the signal line 1 between the stop code ED of the previous communication signal Vx and the start code ST of the subsequent communication signal Vx.
B is provided. It should be noted that during the rest period TB, the communication signal V
A waiting time TR for waiting for processing in the slave device SLj that has received x, and a reply waiting time TW for transmitting a reply signal from the slave device SLj in response to an inquiry from the master device MAi.
Consists of.

【0030】次に、親機MAiから子機SLjへ通信信
号Vsを送信する手順を図12のフローチャート及び図
14を参照して説明する。
Next, the procedure for transmitting the communication signal Vs from the master unit MAi to the slave unit SLj will be described with reference to the flowchart of FIG. 12 and FIG.

【0031】親機MAiは、子機SLjから自発的に送
信される通信信号Vkの受信の有無を監視しているが
(ステップS100)、これについては後述する。そし
て、通信信号Vkを受信しない状況において、親機MA
iは送信データがあれば(ステップS102)、信号線
1上に通信信号Vx,Vkが存在するか否かを判断し、
通信信号Vx,Vkが存在しなければ最後の通信信号V
x,Vkの送信完了から所定の休止期間TBを経過する
まで待って通信信号Vxの送信処理を行い(ステップS
103)、送信データがなければ子機SLjからの通信
信号Vkの受信待ち状態に戻る(ステップS100)。
親機MAiでは、送信データが子機SLjの制御に関わ
る制御コマンドではなく子機SLjに対する問い合わせ
のコマンドデータであるか否かを判別し(ステップS1
04)、制御コマンドであれば子機SLjからの通信信
号Vkの受信待ち状態に戻り(ステップS100)、問
い合わせのコマンドデータであれば通信信号Vxの送信
完了時点(停止符号EDの送信完了時点)から待機時間
TRが経過するまで待ち(ステップS105)、待機時
間TRが経過した時点で返信待ち時間TWのカウントダ
ウンを開始するとともに子機SLjからの返信信号の有
無を判断する(ステップP106)。そして、返信待ち
時間TW内に子機SLjからの返信信号を受信すれば返
信信号の受信処理を行い(ステップS107)、受信処
理完了後に子機SLjからの通信信号Vkの受信待ち状
態に戻る(ステップS100)。また、子機SLjから
の返信信号を受信することなく返信待ち時間TWが経過
した場合にも子機SLjからの通信信号Vkの受信待ち
状態に戻る(ステップS100)。
The master unit MAi monitors whether or not the communication signal Vk spontaneously transmitted from the slave unit SLj is received (step S100), which will be described later. Then, in a situation where the communication signal Vk is not received, the parent device MA
If there is transmission data (step S102), i determines whether or not the communication signals Vx and Vk are present on the signal line 1,
If the communication signals Vx and Vk do not exist, the last communication signal V
The transmission processing of the communication signal Vx is performed after waiting a predetermined pause period TB from the completion of transmission of x, Vk (step S
103), if there is no transmission data, the process returns to the waiting state for receiving the communication signal Vk from the slave device SLj (step S100).
The master device MAi determines whether the transmission data is not the control command related to the control of the slave device SLj but the command data of the inquiry to the slave device SLj (step S1).
04), if it is a control command, it returns to the waiting state for receiving the communication signal Vk from the slave device SLj (step S100), and if it is inquiry command data, the transmission completion time of the communication signal Vx (completion time of the stop code ED). Waits until the waiting time TR elapses (step S105), and when the waiting time TR elapses, starts counting down the reply waiting time TW and determines whether or not there is a reply signal from the child device SLj (step P106). Then, if a reply signal from the slave device SLj is received within the reply waiting time TW, the reply signal receiving process is performed (step S107), and after completion of the receiving process, the process returns to the waiting state for receiving the communication signal Vk from the slave device SLj ( Step S100). Also, when the reply waiting time TW elapses without receiving the reply signal from the slave device SLj, the process returns to the waiting state for receiving the communication signal Vk from the slave device SLj (step S100).

【0032】次に、子機SLjにおける通信信号Vxの
受信手順並びに通信信号Vkの送信手順を図13のフロ
ーチャート及び図14を参照して説明する。
Next, the procedure for receiving the communication signal Vx and the procedure for transmitting the communication signal Vk in the slave device SLj will be described with reference to the flowchart of FIG. 13 and FIG.

【0033】子機SLjは信号線1上の通信信号Vxを
監視しており(ステップS200)、親機MAiから送
信された通信信号Vxを受信し、受信した通信信号Vx
の宛先(子機)アドレスADsが自己のアドレスに一致
するか否かを判断し(ステップS201)、一致すれば
データDAに含まれるコマンドを解析して当該コマンド
に基づく処理等を実行する(ステップS202)。な
お、宛先アドレスADsが自己のアドレスに一致しなけ
れば当該通信信号Vxを破棄する。さらに子機SLjで
は、コマンドが問い合わせコマンドである場合に返信が
必要か否かを判断し(ステップS203)、返信が必要
であれば通信信号Vxの受信完了時点(停止符号EDの
受信完了時点)から待機時間TRが経過するまで待ち
(ステップS204)、待機時間TRが経過した後に返
信信号の送信処理を行い(ステップP205)、送信処
理完了後に親機MAiからの通信信号Vxの受信待ち状
態に戻る(ステップS200)。ここで、例えば親機M
A1が問い合わせコマンドを含む通信信号Vxを子機S
L1に送信した場合、他の親機MA2では通信信号Vx
を受信してそのコマンドデータを解析することにより自
分以外の親機MA1が子機SL1に対して問い合わせコ
マンドを送った通信信号Vxであることが判断できる。
このため、子機SL1からの返信信号に宛先の親機MA
1のアドレスが含まれていなくても送信元の親機MA1
のみがその返信信号を受信処理することができ、他の親
機MA2ではその返信信号を無視する。なお、返信が必
要でなく且つ自発的に送信すべき送信データもない場合
も親機MAiからの通信信号Vxの受信待ち状態に戻る
(ステップS206)。
The slave SLj monitors the communication signal Vx on the signal line 1 (step S200), receives the communication signal Vx transmitted from the master MAi, and receives the received communication signal Vx.
It is determined whether the destination (slave device) address ADs of the same matches its own address (step S201), and if they match, the command included in the data DA is analyzed and the process based on the command is executed (step S201). S202). If the destination address ADs does not match its own address, the communication signal Vx is discarded. Further, in the slave device SLj, when the command is an inquiry command, it is determined whether or not a reply is necessary (step S203), and if a reply is necessary, a reception completion time point of the communication signal Vx (a reception completion time point of the stop code ED). Until the waiting time TR elapses (step S204), the reply signal is transmitted after the waiting time TR elapses (step P205), and after the transmission processing is completed, the communication signal Vx from the parent device MAi is awaited. Return (step S200). Here, for example, the parent device M
A1 transmits the communication signal Vx including the inquiry command to the slave unit S.
When it is transmitted to L1, the communication signal Vx is transmitted to the other master device MA2.
And the command data is analyzed, it can be determined that the master device MA1 other than itself sends the inquiry command to the slave device SL1 by the communication signal Vx.
Therefore, the master device MA of the destination is added to the reply signal from the slave device SL1.
Master device MA1 of the transmission source even if the address of 1 is not included
Only the master unit MA2 can receive and process the reply signal, and the other master unit MA2 ignores the reply signal. If no reply is required and there is no transmission data to be voluntarily transmitted, the process returns to the waiting state for receiving the communication signal Vx from the master device MAi (step S206).

【0034】続いて、本実施形態の特徴である子機SL
jから親機MAiへの自発的な通信信号Vkの送受信手
順について説明する。この通信信号Vkの信号フォーマ
ットは、図11(b)に示すようなものであって親機M
Aiから子機SLjへの通信信号Vxの信号フォーマッ
トとほぼ共通であるが、通信信号Vxの信号長mよりも
短い信号長n(<m)を有する点が異なる。
Subsequently, the slave unit SL, which is a feature of this embodiment,
A transmission / reception procedure of the spontaneous communication signal Vk from j to the master MAi will be described. The signal format of this communication signal Vk is as shown in FIG.
The signal format is almost the same as the signal format of the communication signal Vx from Ai to the slave SLj, except that the signal length n (<m) is shorter than the signal length m of the communication signal Vx.

【0035】而して、親機MAiからの問い合わせとは
無関係に自発的に親機MAiに送信しなければならない
送信データが有る場合、その子機SLjは信号線1上に
信号がなくなった時点から所定時間(少なくとも休止期
間TBよりも短くない時間)が経過するまで待ち(ステ
ップS207)、上記所定時間が経過した後に通信信号
Vkの送信処理を行い(ステップS205)、送信処理
完了後に親機MAiからの通信信号Vxの受信待ち状態
に戻る(ステップS200)。
Therefore, when there is transmission data that must be voluntarily transmitted to the master unit MAi regardless of the inquiry from the master unit MAi, the slave unit SLj starts from the time when there is no signal on the signal line 1. It waits until a predetermined time (at least a time not shorter than the rest period TB) elapses (step S207), and after the predetermined time elapses, the communication signal Vk is transmitted (step S205). The process returns to the waiting state for receiving the communication signal Vx from (step S200).

【0036】一方、親機MAiは子機SLjから自発的
に送信される通信信号Vkの受信の有無を監視しており
(ステップS200)、受信した信号の信号長m,nに
基づいて受信信号が他の親機MAiが送信した通信信号
Vxであるか、子機SLjが自発的に送信した通信信号
Vkであるかを判断するとともに、通信信号Vkの宛先
アドレスADmが自己のアドレスに一致するか否かで何
れの親機MAiに対して送信された通信信号Vkである
かを判別する(ステップS201)。このような手順で
子機SLjと親機MAiとの間で子機SLjから自発的
に送信される通信信号Vkの送受信が可能となる。
On the other hand, the master unit MAi monitors whether or not the communication signal Vk voluntarily transmitted from the slave unit SLj is received (step S200), and the received signal is received based on the signal lengths m and n of the received signal. Is a communication signal Vx transmitted by another master device MAi or a communication signal Vk voluntarily transmitted by a slave device SLj, and the destination address ADm of the communication signal Vk matches its own address. It is determined whether or not the communication signal Vk is transmitted to which master device MAi (step S201). With such a procedure, the communication signal Vk voluntarily transmitted from the child device SLj can be transmitted and received between the child device SLj and the parent device MAi.

【0037】而して従来例においては、子機から親機へ
のデータ伝送は親機からの問い合わせに対する返信のみ
しか行えなかったが、通信装置のトラフィックが少ない
場合に子機SLjから自発的にデータを送信することが
できるため、親機MAiが各子機SLjを常時ポーリン
グする必要がなく、親機MAiの負担が減るとともに高
機能のリソースが不要となり、コスト上昇を抑えつつ子
機SLjから親機MAiへ自発的にデータを送信するこ
とができるようになる。なお、本実施形態では親機MA
iから子機SLjへの通信信号Vxの信号長mと、子機
SLjから自発的に送信される通信信号Vkの信号長n
とを異ならせることで両者を判別しているが、図15に
示すように開始符号STの次に2種類の通信信号Vx,
Vkを区別するためのフラッグFLを挿入し、通信信号
Vx,Vkの信号フォーマットを同一のものとしてもよ
い。また、図16に示すように電源供給装置2を信号線
1に接続し、信号線1を介して親機MAi並びに子機S
Ljに電源を供給するようにしても構わない。
In the conventional example, therefore, the data transmission from the slave unit to the master unit can be performed only by replying to the inquiry from the master unit, but when the traffic of the communication device is small, the slave unit SLj voluntarily transmits. Since data can be transmitted, the master device MAi does not need to constantly poll each slave device SLj, which reduces the burden on the master device MAi and eliminates the need for high-performance resources. It becomes possible to voluntarily transmit data to the master device MAi. In the present embodiment, the master unit MA
The signal length m of the communication signal Vx from i to the slave SLj and the signal length n of the communication signal Vk voluntarily transmitted from the slave SLj.
The two are distinguished by differentiating from each other, but as shown in FIG. 15, two types of communication signals Vx,
A flag FL for distinguishing Vk may be inserted so that the communication signals Vx and Vk have the same signal format. Further, as shown in FIG. 16, the power supply device 2 is connected to the signal line 1, and the master unit MAi and the slave unit S are connected via the signal line 1.
Power may be supplied to Lj.

【0038】(実施形態3)本実施形態の通信装置は、
図17に示すように実施形態2における子機SL1〜S
L3を通信制御部を有する照明器具、親機MA1を照明
器具SL1〜SL3の状態を監視する監視装置、親機M
A2を照明器具SL1〜SL3を点滅制御する制御装置
としたものである。制御装置MA2は、例えば壁スイッ
チ等の操作スイッチの操作に応じて対応する照明器具S
L1〜SL3の点灯又は消灯のための制御コマンドを含
む通信信号Vxを送信するものである。照明器具SL1
〜SL3は、白熱灯や蛍光灯のような光源、点灯回路
部、光源の寿命末期等の異常を検出する異常検出部、並
びに通信制御部等を具備し、通信信号Vxを受信し制御
コマンドに応じて点灯回路部を制御することにより光源
の点滅を行う。監視装置MA1は、問い合わせコマンド
を含む通信信号Vxを照明器具SL1〜SL3に送信し
照明器具SL1〜SL3からの返信信号によって各照明
器具SL1〜SL3の状態を監視するものである。
(Third Embodiment) The communication device of the present embodiment is
As shown in FIG. 17, the slaves SL1 to S in the second embodiment.
L3 is a lighting device having a communication control unit, master device MA1 is a monitoring device for monitoring the states of the lighting devices SL1 to SL3, and master device M.
A2 is a control device for controlling blinking of the lighting fixtures SL1 to SL3. The control device MA2 responds to an operation of an operation switch such as a wall switch or the like, and the corresponding lighting fixture S.
The communication signal Vx including a control command for turning on or off L1 to SL3 is transmitted. Lighting equipment SL1
The SL3 includes a light source such as an incandescent lamp or a fluorescent lamp, a lighting circuit section, an abnormality detection section that detects an abnormality such as the end of the life of the light source, and a communication control section. The SL3 receives the communication signal Vx and sends it to a control command. The light source is blinked by controlling the lighting circuit unit accordingly. The monitoring device MA1 transmits a communication signal Vx including an inquiry command to the lighting fixtures SL1 to SL3 and monitors the states of the respective lighting fixtures SL1 to SL3 by a reply signal from the lighting fixtures SL1 to SL3.

【0039】ここで、本実施形態における照明器具SL
1〜SL3は、例えば寿命により光源が点灯しなくなっ
たことを異常検出部で検出した場合、その異常を自発的
に監視装置MA1に知らせるために通信信号Vkを送信
する。すなわち、図18に示すように異常検出部で異常
が検出された照明器具SL1はトラフィックの少ないと
きに通信信号Vkにより自己のアドレスを監視装置MA
1に送信する。この通信信号Vkを受信した監視装置M
A1は、送信元の照明器具SL1に対して問い合わせコ
マンドを含む通信信号Vxを送信する。照明器具SL1
では通信信号Vxを受信すると検出した異常内容(ラン
プ切れ)を知らせるデータを含んだ返信信号を監視装置
MA1に返信する。返信信号を受信した監視装置MA1
において照明器具SL1の光源が寿命で点灯しなくなっ
たことを知ることができる。但し、通信信号Vkに異常
内容を知らせるデータを含めて送信すれば、監視装置M
A1からの問い合わせの手順を省くことができる。
Here, the lighting fixture SL in the present embodiment.
When the abnormality detection unit detects that the light source is no longer lit due to, for example, the life, each of 1 to SL3 spontaneously transmits the communication signal Vk to notify the monitoring apparatus MA1 of the abnormality. That is, as shown in FIG. 18, the luminaire SL1 in which the abnormality is detected by the abnormality detecting unit detects its own address by the communication signal Vk when the traffic light is low and the monitoring device MA.
Send to 1. Monitoring device M that has received this communication signal Vk
A1 transmits a communication signal Vx including an inquiry command to the transmission source lighting fixture SL1. Lighting equipment SL1
Then, when the communication signal Vx is received, a reply signal including data indicating the detected abnormality content (lamp out) is returned to the monitoring device MA1. Monitoring device MA1 that received the reply signal
In, it is possible to know that the light source of the lighting fixture SL1 is no longer lit due to its life. However, if the communication signal Vk is transmitted by including the data notifying the abnormality content, the monitoring device M
The inquiry procedure from A1 can be omitted.

【0040】このように本実施形態では、監視装置MA
1が各照明器具SL1〜SL3を常時ポーリングしなく
ても状態の監視が行えるものである。
As described above, in this embodiment, the monitoring device MA
1 is capable of monitoring the state without constantly polling each of the lighting fixtures SL1 to SL3.

【0041】(実施形態4)本実施形態の通信装置を構
成する子機SLjのブロック図を図19に示す。但し、
本実施形態の通信装置は実施形態2とほぼ共通の構成及
び動作を有するため、共通の構成要素には同一の符号を
付して説明を省略する。
(Embodiment 4) FIG. 19 shows a block diagram of a child device SLj which constitutes a communication device of this embodiment. However,
Since the communication device of this embodiment has almost the same configuration and operation as those of the second embodiment, common components are designated by the same reference numerals and the description thereof is omitted.

【0042】子機SLjは、RS485用のトランシー
バICやパルストランス等からなり信号線1に信号を送
信したり信号線1から信号を取り込む送受信変換手段1
0と、シフトレジスタ等を具備し送受信変換手段10に
て取り込んだ受信信号のアドレスADやデータDAを一
時的に保存する受信手段11と、バイナリカウンタやク
ロック素子等で構成されたタイマ処理手段12と、マイ
クロコンピュータからなる制御手段13と、シフトレジ
スタ等を具備して制御手段13から出力された送信デー
タを一時的に保存し送受信変換手段10に出力する送信
手段14とを備えている。但し、受信手段11、タイマ
処理手段12並びに送信手段14をハードウェアで構成
する代わりに制御手段13のマイコンに実装されるソフ
トウェア(プログラム)で同じ機能を持たせることも可
能である。
The slave unit SLj is made up of a transceiver IC for RS485, a pulse transformer, etc., and transmits / receives conversion means 1 for transmitting a signal to the signal line 1 and taking in a signal from the signal line 1.
0, a receiving means 11 having a shift register and the like for temporarily storing the address AD and data DA of the received signal fetched by the transmission / reception converting means 10, and a timer processing means 12 composed of a binary counter, a clock element and the like. And a transmission means 14 that includes a shift register or the like and that temporarily stores transmission data output from the control means 13 and outputs the transmission data to the transmission / reception conversion means 10. However, instead of configuring the receiving means 11, the timer processing means 12, and the transmitting means 14 with hardware, it is possible to provide the same function with software (program) installed in the microcomputer of the control means 13.

【0043】次に、子機SLjにおける送受信処理につ
いて図20のフローチャートを参照して説明する。
Next, the transmission / reception processing in the child device SLj will be described with reference to the flowchart of FIG.

【0044】親機MAiからの通信信号Vxを受信する
と受信手段11のシフトレジスタに順次格納されて受信
処理が行われ(ステップS300、S302)、停止符
号EDが格納されて通信信号Vxの受信が完了すれば
(ステップS303)、タイマ処理手段12のバイナリ
カウンタがリセットされて時間カウントがクリアされる
(ステップS304)。制御手段13は受信手段11の
シフトレジスタから通信信号Vxを順次読み出して送信
データに含まれるコマンドを解析し(ステップS30
5)、さらにステップS300,S301,S306の
処理が繰り返されてタイマ処理手段12のバイナリカウ
ンタのカウント値が待機時間TRに相当する値に達する
のを待つ。ここで、親機MAiから送信されたコマンド
が問い合わせコマンドであれば、その問い合わせに対す
る返信データを準備して送信手段14のシフトレジスタ
に格納する。そして、タイマ処理手段12のバイナリカ
ウンタのカウント値が待機時間TRに相当する値に達す
る、すなわち通信信号Vxの受信完了時点から待機時間
TRが経過したら、制御手段13は親機MAiに対する
返信データの有無を判断し(ステップS307)、返信
データがあれば送信手段14に準備した返信データを送
受信変換手段10を通じて信号線1上に送出する送信処
理を行い(ステップS308)、送信処理が正常に終了
すればタイマ処理手段12の時間カウントをクリア(ス
テップS309,S310)して通信信号Vxの受信待
ち状態に戻る(ステップS300)。なお、何らかのト
ラブルで返信データの送信処理が正常に終了しなければ
時間カウントをクリアせずに通信信号Vxの受信待ち状
態に戻る(ステップS309,S300)。
When the communication signal Vx from the master unit MAi is received, it is sequentially stored in the shift register of the receiving means 11 to perform the reception process (steps S300 and S302), the stop code ED is stored, and the communication signal Vx is received. When completed (step S303), the binary counter of the timer processing means 12 is reset and the time count is cleared (step S304). The control unit 13 sequentially reads the communication signal Vx from the shift register of the reception unit 11 and analyzes the command included in the transmission data (step S30).
5) Further, the processing of steps S300, S301 and S306 is repeated until the count value of the binary counter of the timer processing means 12 reaches the value corresponding to the waiting time TR. Here, if the command transmitted from the master unit MAi is an inquiry command, reply data for the inquiry is prepared and stored in the shift register of the transmission means 14. Then, when the count value of the binary counter of the timer processing means 12 reaches a value corresponding to the waiting time TR, that is, when the waiting time TR elapses from the time when the reception of the communication signal Vx is completed, the control means 13 sends the reply data to the master device MAi. It is judged whether or not there is reply data (step S307), and if there is reply data, the prepared reply data is sent to the sending means 14 through the sending / receiving converting means 10 on the signal line 1 to carry out sending processing (step S308), and the sending process ends normally. Then, the time count of the timer processing means 12 is cleared (steps S309 and S310) and the state returns to the waiting state for receiving the communication signal Vx (step S300). If the reply data transmission processing is not normally completed due to some trouble, the time count is not cleared and the communication signal Vx is returned to the waiting state (steps S309 and S300).

【0045】一方、返信データが無い場合、制御手段1
3は親機MAiに対して自発的に送信すべきデータ(自
発送信データ)の有無を判断し(ステップS311)、
自発送信データがあれば送信手段14から送受信変換手
段10を通じて自発送信データを含む通信信号Vkを信
号線1上に送出する送信処理を行い(ステップS31
2)、送信処理が正常に終了すればタイマ処理手段12
の時間カウントをクリア(ステップS309,S31
0)して通信信号Vxの受信待ち状態に戻る(ステップ
S300)。なお、何らかのトラブルで通信信号Vkの
送信処理が正常に終了しなければ時間カウントをクリア
せずに通信信号Vxの受信待ち状態に戻る(ステップS
309,S300)。また、自発送信データが無い場合
も時間カウントをクリアせずに通信信号Vxの受信待ち
状態に戻る(ステップS311,S300)。
On the other hand, when there is no reply data, the control means 1
3 determines whether or not there is data (voluntary transmission data) to be voluntarily transmitted to the master device MAi (step S311),
If there is spontaneous transmission data, a transmission process for transmitting the communication signal Vk including the spontaneous transmission data from the transmission means 14 to the transmission / reception conversion means 10 on the signal line 1 is performed (step S31).
2) If the transmission process ends normally, the timer processing means 12
Clear the time count of (steps S309, S31
0) and returns to the waiting state for receiving the communication signal Vx (step S300). If the transmission processing of the communication signal Vk is not normally completed due to some trouble, the time count is not cleared and the communication signal Vx is returned to the waiting state (step S).
309, S300). Further, even when there is no spontaneous transmission data, the time count is not cleared and the communication signal Vx is returned to the waiting state (steps S311 and S300).

【0046】而して本実施形態では、何れかの親機MA
iから通信信号Vxが送信され且つその通信信号Vxが
問い合わせコマンドを含まない、すなわち宛先の子機S
Ljから返信データが送信されない場合に、待機時間T
Rの経過後の返信待ち時間TW内に子機SLjから通信
信号Vkを送信するから、親機MAiに対する返信信号
と衝突する虞が無く、複数の子機SLjから自発送信デ
ータを含む通信信号Vkが送信された場合にしか衝突が
発生しない。このため、実施形態2に比較して信号線1
上で衝突が生じる確率を低減することができる。
Thus, in this embodiment, one of the master units MA
i transmits the communication signal Vx and the communication signal Vx does not include an inquiry command, that is, the destination slave unit S
When the reply data is not sent from Lj, the waiting time T
Since the communication signal Vk is transmitted from the child device SLj within the reply waiting time TW after the lapse of R, there is no fear of collision with the reply signal to the parent device MAi, and the communication signal Vk including the spontaneous transmission data from the plurality of child devices SLj. Will only occur if is sent. Therefore, as compared with the second embodiment, the signal line 1
The probability that a collision will occur can be reduced.

【0047】(実施形態5)本実施形態の構成は実施形
態4と同一であるから図示並びに説明を省略し、本実施
形態の特徴である子機SLjにおける送受信処理につい
てのみ説明する。
(Fifth Embodiment) Since the configuration of the present embodiment is the same as that of the fourth embodiment, illustration and description thereof will be omitted, and only the transmission / reception processing in the slave device SLj, which is a feature of the present embodiment, will be described.

【0048】本実施形態における送受信処理が実施形態
4と異なる点は、図21のフローチャートに示すよう
に、子機SLjが自発送信データを有する場合に、タイ
マ処理手段12による時間カウントが休止期間TBより
も長い時間に設定された閾値Thを超えるまで待ってか
ら自発送信データ含む通信信号Vkの送信処理を行う点
にある(ステップS313参照)。
The transmission / reception processing of this embodiment is different from that of the fourth embodiment, as shown in the flowchart of FIG. 21, when the slave unit SLj has the spontaneous transmission data, the time count by the timer processing means 12 is the pause period TB. The point is that the transmission process of the communication signal Vk including the spontaneous transmission data is performed after waiting until the threshold Th set for a longer time is exceeded (see step S313).

【0049】而して、信号線1上のトラフィックが多い
場合に子機SLjの自発送信データの送受信が行われる
と親機MAiの通信信号Vxの送受信が遅延してしまう
が、本実施形態によれば子機SLjの自発送信データの
送受信に対して親機MAiの通信信号Vxの送受信を優
先させることができる。
Therefore, when the spontaneous transmission data of the slave device SLj is transmitted and received when the traffic on the signal line 1 is heavy, the transmission and reception of the communication signal Vx of the master device MAi is delayed, but in the present embodiment. According to this, the transmission / reception of the communication signal Vx of the master device MAi can be prioritized over the transmission / reception of the spontaneous transmission data of the slave device SLj.

【0050】(実施形態6)本実施形態の構成は実施形
態4と同一であるから図示並びに説明を省略し、本実施
形態の特徴である子機SLjにおける送受信処理につい
てのみ説明する。
(Sixth Embodiment) Since the configuration of this embodiment is the same as that of the fourth embodiment, illustration and description thereof will be omitted, and only the transmission / reception processing in the slave device SLj, which is a feature of this embodiment, will be described.

【0051】本実施形態における送受信処理が実施形態
4又は5と異なる点は、自発送信データを送信する際に
信号線1上の信号の有無を確認し、信号のない状態が所
定時間以上継続したときにのみ通信信号Vkの送信処理
を行う点にある。
The point that the transmission / reception processing in this embodiment is different from that in Embodiment 4 or 5 is that the presence or absence of a signal on the signal line 1 is confirmed when transmitting the spontaneous transmission data, and the absence of a signal continues for a predetermined time or longer. Only at that time is the transmission processing of the communication signal Vk performed.

【0052】すなわち、本実施形態においては、図20
又は図21のフローチャートにおける自発送信データの
送信処理(ステップS312)の前に図22のフローチ
ャートに示すような処理を行っている。子機SLjの制
御手段13は、受信手段11への信号の格納状況に基づ
いて信号線1上の信号の有無を定期的に監視し(ステッ
プS314)、信号が有れば通信信号Vkの送信を禁止
し(ステップS315)、タイマ処理手段12における
時間カウントをクリアする(ステップS316)。一
方、信号が無ければ、タイマ処理手段12による時間カ
ウントが行われ(ステップS317)、カウント値が休
止期間TBを超えたか否かを判断し(ステップS31
8)、カウント値が休止期間TBを超えた時点で通信信
号Vkの送信を許可する(ステップS319)。
That is, in this embodiment, FIG.
Alternatively, the process shown in the flowchart of FIG. 22 is performed before the process of transmitting the spontaneous transmission data (step S312) in the flowchart of FIG. The control unit 13 of the child device SLj periodically monitors the presence or absence of a signal on the signal line 1 based on the storage state of the signal in the reception unit 11 (step S314), and if there is a signal, transmits the communication signal Vk. Is prohibited (step S315), and the time count in the timer processing means 12 is cleared (step S316). On the other hand, if there is no signal, time counting is performed by the timer processing means 12 (step S317), and it is determined whether the count value exceeds the pause period TB (step S31).
8) When the count value exceeds the pause period TB, the transmission of the communication signal Vk is permitted (step S319).

【0053】このように本実施形態では、自発送信デー
タを送信する際に信号線1上の信号の有無を確認し、信
号のない状態が所定時間以上継続したときにのみ通信信
号Vkの送信処理を行うため、信号線1上で信号が衝突
する確率を低減させることができる。
As described above, in this embodiment, the presence or absence of a signal on the signal line 1 is confirmed when transmitting the spontaneous transmission data, and the transmission processing of the communication signal Vk is performed only when the absence of the signal continues for a predetermined time or longer. Therefore, it is possible to reduce the probability of collision of signals on the signal line 1.

【0054】(実施形態7)本実施形態の構成は実施形
態4と同一であるから図示並びに説明を省略し、本実施
形態の特徴である子機SLjにおける送受信処理につい
てのみ説明する。
(Embodiment 7) Since the configuration of this embodiment is the same as that of Embodiment 4, illustration and description thereof will be omitted, and only the transmission / reception processing in the slave device SLj, which is a feature of this embodiment, will be described.

【0055】図19に示した子機SLjの構成では、受
信手段11と送信手段14が送受信変換手段10並びに
信号線1を介して物理的に接続されているため、送信手
段14より送受信変換手段10を通じて信号線1に送出
した信号を受信手段11にて受信することが可能であ
る。そこで、本実施形態においては、送信手段14より
送受信変換手段10を通じて信号線1に送出した通信信
号Vkと、このとき受信手段11にて同時に受信した信
号Vk’とを制御手段13により比較し、両信号Vk,
Vk’が一致しない場合に通信信号Vkを再送信する点
に特徴がある。
In the configuration of the slave unit SLj shown in FIG. 19, since the receiving means 11 and the transmitting means 14 are physically connected via the transmission / reception converting means 10 and the signal line 1, the transmitting / receiving conversion means is transmitted from the transmitting means 14. The signal sent to the signal line 1 through 10 can be received by the receiving means 11. Therefore, in the present embodiment, the control means 13 compares the communication signal Vk sent from the transmission means 14 to the signal line 1 through the transmission / reception conversion means 10 with the signal Vk ′ simultaneously received by the reception means 11 at this time, Both signals Vk,
The feature is that the communication signal Vk is retransmitted when Vk ′ does not match.

【0056】以下、図23のフローチャートを参照して
本実施形態の特徴である再送信処理について説明する。
The retransmission process, which is a feature of this embodiment, will be described below with reference to the flowchart of FIG.

【0057】制御手段13は、図20又は図21のフロ
ーチャートにおける自発送信データの送信処理(ステッ
プS312)を開始すると、送信手段14から送受信変
換手段10を介して信号線1に通信信号Vkを送信し
(ステップS400)、同時に送受信変換手段10を介
して信号線1上の通信信号Vkを受信して受信手段11
に格納させ(ステップS401)、停止符号EDの送信
及び受信を完了したら(ステップS402)、送信手段
14に格納されている自発送信データ(送信内容)と、
受信手段11に格納されている受信信号Vk’に含まれ
るデータDA(受信内容)とが一致するか否かを判別し
(ステップS403)、両者が一致すれば処理を終了し
て図20又は図21のフローチャートにおけるステップ
S310の処理に戻る。
When the control means 13 starts the transmission processing of the spontaneous transmission data (step S312) in the flowchart of FIG. 20 or 21, it transmits the communication signal Vk from the transmission means 14 to the signal line 1 through the transmission / reception conversion means 10. (Step S400), at the same time, the communication means Vk on the signal line 1 is received via the transmission / reception conversion means 10 and the reception means 11 is received.
When the transmission and reception of the stop code ED are completed (step S402), the spontaneous transmission data (transmission content) stored in the transmission means 14
It is determined whether or not the data DA (reception content) included in the reception signal Vk 'stored in the reception means 11 matches (step S403). Returning to the processing of step S310 in the flowchart of FIG.

【0058】一方、自発送信データと受信信号Vk’に
含まれるデータDAが一致しなければ、制御手段13は
タイマ処理手段12による時間カウントをクリアし(ス
テップS404)、タイマ処理手段12による時間カウ
ントが所定の遅延時間を超えるまで待機する(ステップ
S405、S406)。そして、時間カウントが遅延時
間を超えれば、制御手段13はステップS400に戻っ
て通信信号Vkの送信処理を再度実行し、自発送信デー
タと受信信号Vk’に含まれるデータDAが一致するま
で上記処理を繰り返す。
On the other hand, if the spontaneous transmission data does not match the data DA included in the reception signal Vk ', the control means 13 clears the time count by the timer processing means 12 (step S404), and the time count by the timer processing means 12 is counted. Waits until the delay time exceeds a predetermined delay time (steps S405 and S406). Then, if the time count exceeds the delay time, the control means 13 returns to step S400 to execute the transmission processing of the communication signal Vk again, and the above processing is performed until the spontaneous transmission data and the data DA included in the reception signal Vk ′ match. repeat.

【0059】而して本実施形態によれば、自己の通信信
号Vkを受信して衝突等の不具合が生じずに正常に送信
されたか否かを常時監視し、不具合があった場合に通信
信号Vkを再送信する処理を行うため、通信信号Vkが
送信されなくなる不動作の確率を低減することができ
る。なお、親機MAiにおいても自己の通信信号Vxを
受信して衝突の有無を判断し、衝突があった場合に通信
信号Vxを再送信する処理を行うことが望ましい。
Thus, according to the present embodiment, the communication signal Vk of its own is received, and it is constantly monitored whether or not the communication signal Vk is normally transmitted without causing a problem such as a collision. Since the process of retransmitting Vk is performed, it is possible to reduce the probability of non-operation in which the communication signal Vk is not transmitted. It is desirable that the master unit MAi also receives its own communication signal Vx, determines whether there is a collision, and retransmits the communication signal Vx when there is a collision.

【0060】ところで、信号の衝突が発生した場合に送
信元の複数の子機SLjについて再送信処理の遅延時間
が同一であると、再送信しても再度衝突が生じてしまう
虞がある。このような再衝突を防ぐには、再送信処理を
実行する毎に遅延時間を設定し直すようにすればよい。
例えば、図24のフローチャートに示すように自発送信
データと受信信号Vk’に含まれるデータDAが一致し
ないと判断した場合に、制御手段13にて遅延時間を設
定する(ステップS407)。なお、制御手段13を構
成するマイコンのプログラムカウンタや起動時からのタ
イムカウント値等を用いて発生させたランダムな値を遅
延時間とすればよい。これにより、再送信における衝突
の発生を防ぐことができる。
When a signal collision occurs, if the delay time of the retransmission process is the same for a plurality of transmission source slaves SLj, there is a possibility that the collision may occur again even if the retransmission is performed. In order to prevent such re-collision, the delay time may be reset every time the retransmission process is executed.
For example, when it is determined that the spontaneous transmission data and the data DA included in the reception signal Vk ′ do not match as shown in the flowchart of FIG. 24, the control unit 13 sets the delay time (step S407). It should be noted that the delay time may be a random value generated using the program counter of the microcomputer constituting the control means 13 or the time count value from the time of startup. As a result, it is possible to prevent the occurrence of collision in retransmission.

【0061】[0061]

【発明の効果】請求項1の発明は、同一の信号線上に接
続され、開始符号と停止符号の間にデータが位置する信
号フォーマットを持った通信信号を互いに信号線を介し
て送受信する複数の通信機器からなり、通信機器から通
信信号を送信する場合に先の通信信号の停止符号と後の
通信信号の開始符号との間に信号線に信号を送出しない
休止期間を設けてなる通信装置において、各通信機器
は、通信信号に含めることのできない特別符号を通信信
号送信後の所定期間内に送受信するとともに当該特別符
号の送信後に休止期間を開始するので、既存の通信装置
との間で通信信号を送受信することが可能であり、既存
の通信装置との互換性を保ちながら特別符号を利用して
新たな機能を容易に追加することができるという効果が
ある。
According to the invention of claim 1, a plurality of communication signals connected to the same signal line and having a signal format in which data is located between a start code and a stop code are transmitted and received via the signal line to each other. A communication device comprising a communication device, wherein when transmitting a communication signal from the communication device, a pause period is provided between the stop code of the preceding communication signal and the start code of the subsequent communication signal, in which a signal is not transmitted to the signal line. , Each communication device transmits and receives the special code that cannot be included in the communication signal within the predetermined period after the communication signal is transmitted, and starts the pause period after the transmission of the special code, so that communication with the existing communication device is performed. Signals can be transmitted and received, and there is an effect that a new function can be easily added using a special code while maintaining compatibility with existing communication devices.

【0062】請求項2の発明は、1乃至複数の親機と、
同一の信号線で各親機と接続されるとともに固有のアド
レスが割り当てられた1乃至複数の子機とを備え、開始
符号と停止符号の間に宛先アドレスを含むデータが位置
する信号フォーマットを持った通信信号を親機から送信
するとともに通信信号を送信する場合に先の通信信号の
停止符号と後の通信信号の開始符号との間に信号線に信
号を送出しない休止期間を設け、各子機は、受信した通
信信号の宛先アドレスが自己のアドレスと一致した場合
に当該通信信号を取得し、且つ取得した通信信号のデー
タに応じた処理を行い、当該データが親機からの問い合
わせに関するデータであれば当該問い合わせに対する返
信データを休止期間内に設けた返信待ち時間内に親機に
送信し、親機に対して自発的に通知する必要のあるデー
タが有る場合に当該情報をデータとして含む通信信号を
休止期間の開始から所定期間が経過した後に送信するの
で、通信装置のトラフィックが少ない場合に子機から自
発的にデータを送信することができるため、親機による
常時ポーリングを行わずに子機から親機へ自発的にデー
タ送信が行えるという効果がある。
According to the second aspect of the invention, one to a plurality of parent devices are provided,
It has a signal format in which data including a destination address is located between a start code and a stop code, with one to a plurality of slaves that are connected to each master with the same signal line and are assigned unique addresses. When a communication signal is transmitted from the master unit and a communication signal is transmitted, a pause period in which no signal is transmitted to the signal line is provided between the stop code of the previous communication signal and the start code of the subsequent communication signal. The device acquires the communication signal when the destination address of the received communication signal matches its own address, and performs processing according to the data of the acquired communication signal, and the data is data related to the inquiry from the master device. In that case, if there is data that needs to be sent to the master unit within the reply waiting time set during the suspension period and to notify the master unit voluntarily, Since the communication signal including information as data is transmitted after the lapse of a predetermined period from the start of the pause period, the slave unit can spontaneously transmit the data when the traffic of the communication device is small. An effect is that data can be voluntarily transmitted from the child device to the parent device without polling.

【0063】請求項3の発明は、請求項2の発明におい
て、子機は、何れかの親機から通信信号が送信され且つ
その通信信号が宛先の子機に対して返信を要求する問い
合わせコマンドを含まない場合に当該通信信号送信後の
一定期間であって休止期間よりも長くない期間内に自発
的に通信信号を送信するので、親機に対する返信信号と
衝突する虞が無く、複数の子機から自発的に通信信号が
送信された場合にしか衝突が発生しないから、信号線上
で衝突が生じる確率を低減することができるという効果
がある。
According to a third aspect of the present invention, in the second aspect of the present invention, the slave unit has an inquiry command in which a communication signal is transmitted from any of the master units and the communication signal requests a reply to the destination slave unit. If the communication signal is not included, the communication signal is voluntarily transmitted within a fixed period after the transmission of the communication signal and not longer than the idle period, so there is no risk of collision with the reply signal to the master unit, Since the collision occurs only when the communication signal is voluntarily transmitted from the aircraft, it is possible to reduce the probability of the collision on the signal line.

【0064】請求項4の発明は、請求項2の発明におい
て、子機は、信号線上に通信信号がなくなった時点から
休止期間以上の所定時間が経過した後に自発的に通信信
号を送信するので、子機の自発的な通信信号の送受信に
対して親機の通信信号の送受信を優先させることができ
るという効果がある。
According to a fourth aspect of the invention, in the second aspect of the invention, the slave unit voluntarily transmits the communication signal after a lapse of a predetermined time longer than the pause period from the time when there is no communication signal on the signal line. The advantage is that the transmission / reception of the communication signal of the master unit can be prioritized over the spontaneous transmission / reception of the communication signal of the slave unit.

【0065】請求項5の発明は、請求項2又は3又は4
の発明において、子機は、信号線上に信号が流れていな
いことを確認した場合に自発的に通信信号を送信するの
で、信号線上で信号が衝突する確率を低減させることが
できるという効果がある。
The invention of claim 5 is the invention of claim 2 or 3 or 4.
In the invention, since the slave unit voluntarily transmits the communication signal when it confirms that the signal does not flow on the signal line, there is an effect that it is possible to reduce the probability that the signal collides on the signal line. .

【0066】請求項6の発明は、請求項5の発明におい
て、親機又は子機の少なくとも何れか一方は、自らが送
信した通信信号を受信し当該受信信号に含まれるデータ
と送信したデータを比較し、両データが一致しない場合
に同一のデータを再送信するので、通信信号が送信され
なくなる不動作の確率を低減することができるという効
果がある。
According to a sixth aspect of the present invention, in the fifth aspect, at least one of the master unit and the slave unit receives the communication signal transmitted by itself, and includes the data included in the received signal and the transmitted data. In comparison, since the same data is retransmitted when both data do not match, there is an effect that it is possible to reduce the probability of non-operation in which a communication signal is not transmitted.

【0067】請求項7の発明は、請求項6の発明におい
て、親機又は子機の少なくとも何れか一方は、通信信号
を再送信する場合に先の通信信号の送信終了時点から休
止期間よりも長くない時間であって各親機並びに子機毎
に任意に設定される遅延時間が経過した後に通信信号を
再送信するので、再送信における衝突の発生を防ぐこと
ができるという効果がある。
According to the invention of claim 7, in the invention of claim 6, at least one of the master unit and the slave unit, when retransmitting the communication signal, is longer than the pause period from the end of transmission of the previous communication signal. Since the communication signal is retransmitted after a delay time which is not long and which is arbitrarily set for each master unit and each slave unit, the occurrence of collision in retransmission can be prevented.

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

【図1】実施形態1の概略構成図である。FIG. 1 is a schematic configuration diagram of a first embodiment.

【図2】同上における通信信号の信号フォーマットであ
る。
FIG. 2 is a signal format of a communication signal in the above.

【図3】同上の動作説明用のフローチャートである。FIG. 3 is a flowchart for explaining the same operation as above.

【図4】同上の動作説明図である。FIG. 4 is an operation explanatory diagram of the above.

【図5】同上の動作説明用のフローチャートである。FIG. 5 is a flowchart for explaining the same operation as above.

【図6】同上の動作説明用のフローチャートである。FIG. 6 is a flowchart for explaining the same operation as above.

【図7】同上の動作説明図である。FIG. 7 is an operation explanatory diagram of the above.

【図8】同上の他の概略構成図である。FIG. 8 is another schematic configuration diagram of the above.

【図9】同上の動作説明用のフローチャートである。FIG. 9 is a flowchart for explaining the same operation as above.

【図10】実施形態2の概略構成図である。FIG. 10 is a schematic configuration diagram of a second embodiment.

【図11】(a)は同上における通信信号Vxの信号フ
ォーマット、(b)は通信信号Vkの信号フォーマット
である。
11A is a signal format of a communication signal Vx in the same as above, and FIG. 11B is a signal format of a communication signal Vk.

【図12】同上の動作説明用のフローチャートである。FIG. 12 is a flowchart for explaining the same operation as above.

【図13】同上の動作説明用のフローチャートである。FIG. 13 is a flowchart for explaining the same operation as above.

【図14】同上の動作説明図である。FIG. 14 is an explanatory diagram of an operation of the above.

【図15】同上における通信信号Vx,Vkの信号フォ
ーマットである。
FIG. 15 is a signal format of communication signals Vx and Vk in the above.

【図16】同上の他の概略構成図である。FIG. 16 is another schematic configuration diagram of the above.

【図17】実施形態3の概略構成図である。FIG. 17 is a schematic configuration diagram of a third embodiment.

【図18】同上の動作説明図である。FIG. 18 is an operation explanatory diagram of the above.

【図19】実施形態4における子機のブロック図であ
る。
FIG. 19 is a block diagram of a child device according to the fourth embodiment.

【図20】同上の動作説明用のフローチャートである。FIG. 20 is a flowchart for explaining the same operation as above.

【図21】実施形態5の動作説明用のフローチャートで
ある。
FIG. 21 is a flowchart for explaining the operation of the fifth embodiment.

【図22】実施形態6の動作説明用のフローチャートで
ある。
FIG. 22 is a flowchart for explaining the operation of the sixth embodiment.

【図23】実施形態7の動作説明用のフローチャートで
ある。
FIG. 23 is a flowchart for explaining the operation of the seventh embodiment.

【図24】同上の動作説明用のフローチャートである。FIG. 24 is a flowchart for explaining the same operation as above.

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

A1,A2 通信機器 1 信号線 A1, A2 communication equipment 1 signal line

───────────────────────────────────────────────────── フロントページの続き (72)発明者 村上 善宣 大阪府門真市大字門真1048番地松下電工株 式会社内 (72)発明者 山内 得志 大阪府門真市大字門真1048番地松下電工株 式会社内 (72)発明者 川南 博生 大阪府門真市大字門真1048番地松下電工株 式会社内 Fターム(参考) 5K032 AA04 CA01 CD01 DA01    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Yoshinori Murakami             1048, Kadoma, Kadoma-shi, Osaka Matsushita Electric Works Co., Ltd.             Inside the company (72) Inventor Tokushi Yamauchi             1048, Kadoma, Kadoma-shi, Osaka Matsushita Electric Works Co., Ltd.             Inside the company (72) Inventor Hiroo Kawanami             1048, Kadoma, Kadoma-shi, Osaka Matsushita Electric Works Co., Ltd.             Inside the company F-term (reference) 5K032 AA04 CA01 CD01 DA01

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 同一の信号線上に接続され、開始符号と
停止符号の間にデータが位置する信号フォーマットを持
った通信信号を互いに信号線を介して送受信する複数の
通信機器からなり、通信機器から通信信号を送信する場
合に先の通信信号の停止符号と後の通信信号の開始符号
との間に信号線に信号を送出しない休止期間を設けてな
る通信装置において、各通信機器は、通信信号に含める
ことのできない特別符号を通信信号送信後の所定期間内
に送受信するとともに当該特別符号の送信後に休止期間
を開始することを特徴とする通信装置。
1. A communication device comprising a plurality of communication devices connected to the same signal line and transmitting and receiving communication signals having a signal format in which data is located between a start code and a stop code, through the signal line to each other. When a communication signal is transmitted from the communication device, a communication device is provided with a pause period in which a signal is not transmitted to the signal line between the stop code of the previous communication signal and the start code of the subsequent communication signal. A communication device, wherein a special code that cannot be included in a signal is transmitted and received within a predetermined period after transmission of a communication signal, and a pause period is started after the transmission of the special code.
【請求項2】 1乃至複数の親機と、同一の信号線で各
親機と接続されるとともに固有のアドレスが割り当てら
れた1乃至複数の子機とを備え、開始符号と停止符号の
間に宛先アドレスを含むデータが位置する信号フォーマ
ットを持った通信信号を親機から送信するとともに通信
信号を送信する場合に先の通信信号の停止符号と後の通
信信号の開始符号との間に信号線に信号を送出しない休
止期間を設け、各子機は、受信した通信信号の宛先アド
レスが自己のアドレスと一致した場合に当該通信信号を
取得し、且つ取得した通信信号のデータに応じた処理を
行い、当該データが親機からの問い合わせに関するデー
タであれば当該問い合わせに対する返信データを休止期
間内に設けた返信待ち時間内に親機に送信し、親機に対
して自発的に通知する必要のあるデータが有る場合に当
該情報をデータとして含む通信信号を休止期間の開始か
ら所定期間が経過した後に送信することを特徴とする通
信装置。
2. The apparatus comprises one to a plurality of masters and one to a plurality of slaves connected to the respective masters by the same signal line and to which unique addresses are assigned, and between a start code and a stop code. When a communication signal having a signal format in which the data including the destination address is located is transmitted from the master unit and a communication signal is transmitted, a signal is output between the stop code of the preceding communication signal and the start code of the subsequent communication signal. An idle period in which no signal is sent to the line is provided, and each child device acquires the communication signal when the destination address of the received communication signal matches its own address, and performs processing according to the data of the acquired communication signal. If the data is data related to an inquiry from the base unit, the reply data for the inquiry is sent to the base unit within the reply waiting time set during the suspension period, and the base unit is voluntarily notified. A communication device, which transmits a communication signal including the information as data after a predetermined period has elapsed from the start of a pause period when there is data that needs to be transmitted.
【請求項3】 子機は、何れかの親機から通信信号が送
信され且つその通信信号が宛先の子機に対して返信を要
求する問い合わせコマンドを含まない場合に当該通信信
号送信後の一定期間であって休止期間よりも長くない期
間内に自発的に通信信号を送信することを特徴とする請
求項2記載の通信装置。
3. The slave unit is fixed after the communication signal is transmitted when a communication signal is transmitted from any of the master units and the communication signal does not include an inquiry command requesting a reply to the destination slave unit. The communication device according to claim 2, wherein the communication signal is voluntarily transmitted within a period which is not longer than the idle period.
【請求項4】 子機は、信号線上に通信信号がなくなっ
た時点から休止期間以上の所定時間が経過した後に自発
的に通信信号を送信することを特徴とする請求項2記載
の通信装置。
4. The communication device according to claim 2, wherein the slave unit voluntarily transmits the communication signal after a predetermined time longer than the pause period has elapsed from the time when the communication signal disappeared on the signal line.
【請求項5】 子機は、信号線上に信号が流れていない
ことを確認した場合に自発的に通信信号を送信すること
を特徴とする請求項2又は3又は4記載の通信装置。
5. The communication device according to claim 2, 3 or 4, wherein the slave unit spontaneously transmits a communication signal when it is confirmed that no signal is flowing on the signal line.
【請求項6】 親機又は子機の少なくとも何れか一方
は、自らが送信した通信信号を受信し当該受信信号に含
まれるデータと送信したデータを比較し、両データが一
致しない場合に同一のデータを再送信することを特徴と
する請求項5記載の通信装置。
6. At least one of the master unit and the slave unit receives a communication signal transmitted by itself, compares the data included in the received signal with the transmitted data, and if both data do not match, the same. The communication device according to claim 5, wherein the data is retransmitted.
【請求項7】 親機又は子機の少なくとも何れか一方
は、通信信号を再送信する場合に先の通信信号の送信終
了時点から休止期間よりも長くない時間であって各親機
並びに子機毎に任意に設定される遅延時間が経過した後
に通信信号を再送信することを特徴とする請求項6記載
の通信装置。
7. At least one of the master unit and the slave unit is a time period which is not longer than the pause period from the end of transmission of the previous communication signal when the communication signal is retransmitted, and each master unit and the slave unit. 7. The communication device according to claim 6, wherein the communication signal is retransmitted after a delay time arbitrarily set for each time has elapsed.
JP2002019257A 2002-01-28 2002-01-28 Communication equipment Withdrawn JP2003224570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002019257A JP2003224570A (en) 2002-01-28 2002-01-28 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002019257A JP2003224570A (en) 2002-01-28 2002-01-28 Communication equipment

Publications (1)

Publication Number Publication Date
JP2003224570A true JP2003224570A (en) 2003-08-08

Family

ID=27743198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002019257A Withdrawn JP2003224570A (en) 2002-01-28 2002-01-28 Communication equipment

Country Status (1)

Country Link
JP (1) JP2003224570A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012099998A (en) * 2010-11-01 2012-05-24 Kawamura Electric Inc Asynchronous serial communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012099998A (en) * 2010-11-01 2012-05-24 Kawamura Electric Inc Asynchronous serial communication method

Similar Documents

Publication Publication Date Title
US4988990A (en) Dual master implied token communication system
US5122794A (en) Dual master implied token communication system
US5727149A (en) Network interface apparatus and data transmission control method thereof
US8135893B2 (en) System, apparatus and method for granting access to a shared communications bus
US5166678A (en) Dual master implied token communication system
EP1022878B1 (en) Data transmission system
US5357525A (en) Multiplex transmission system
EP0094180A2 (en) Dual-count, round-robin distributed arbitration technique for serial buses
US5572546A (en) Data communications system with multilink protocol
US8780772B2 (en) Communication protocol for wireless enhanced controller area networks
KR19980702534A (en) How to Initialize a Wireless Packet Hopping Network
JP2006191337A (en) Gateway device for transferring message between buses and network system using the device
JP2003224570A (en) Communication equipment
KR20060017035A (en) Method for transmitting multiple sensors data with a can message
JP3948330B2 (en) Interconnect equipment between different networks
Um A Performance Model of Controller Area Networks for Vehicles under Unsaturated Traffic
JPH0564384B2 (en)
KR0165440B1 (en) Polling communication method
KR100374441B1 (en) Relay unit between communication channels for a station and in particular an Ethernet network
CN111478838B (en) High-efficiency high-bandwidth communication method and system
JP3217397B2 (en) Data transmission method of communication control device
US20230135690A1 (en) Methods for data transmission on ethernet multidrop networks implementing dynamic physical layer collision avoidance
JP2001015272A (en) Lighting system
JP3437688B2 (en) Bus type serial communication control method
JPH09181754A (en) Communication control system and communication control method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405