JP6115478B2 - Communications system - Google Patents

Communications system Download PDF

Info

Publication number
JP6115478B2
JP6115478B2 JP2014001628A JP2014001628A JP6115478B2 JP 6115478 B2 JP6115478 B2 JP 6115478B2 JP 2014001628 A JP2014001628 A JP 2014001628A JP 2014001628 A JP2014001628 A JP 2014001628A JP 6115478 B2 JP6115478 B2 JP 6115478B2
Authority
JP
Japan
Prior art keywords
slave
master
correction
abnormality
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2014001628A
Other languages
Japanese (ja)
Other versions
JP2015130613A (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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2014001628A priority Critical patent/JP6115478B2/en
Publication of JP2015130613A publication Critical patent/JP2015130613A/en
Application granted granted Critical
Publication of JP6115478B2 publication Critical patent/JP6115478B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

本発明は、マスタに対して複数のスレーブがデイジーチェーン接続されている通信システムに関する。   The present invention relates to a communication system in which a plurality of slaves are daisy chain connected to a master.

マスタに対して複数のスレーブがデイジーチェーン接続されている通信システムが供されている。この種の通信システムの1つとして、マスタが同期タイミングのパルスを所定周期でスレーブ側に送信し、スレーブがマスタ側から送信された同期タイミングのパルスを受信したことに追従してデータをマスタ側に送信する構成がある。この構成では、スレーブに異常(例えばスレーブクロックの異常等)が発生したときには、その異常を速やかに解消することが望まれている。例えば特許文献1には、マスタが同期フレームをスレーブ側に定期的に送信することで、マスタとスレーブとの間でクロックを同期させる手法が開示されている。   There is a communication system in which a plurality of slaves are daisy chain connected to a master. As one of this type of communication system, the master sends the synchronization timing pulse to the slave side in a predetermined cycle, and the slave sends the data to the master side following the reception of the synchronization timing pulse sent from the master side. There is a configuration to send to. In this configuration, when an abnormality (for example, an abnormality of the slave clock) occurs in the slave, it is desired to quickly eliminate the abnormality. For example, Patent Document 1 discloses a technique in which a clock is synchronized between a master and a slave by periodically transmitting a synchronization frame to the slave side.

特開2011−211673号公報JP 2011-2111673 A

しかしながら、特許文献1に開示されている手法では、マスタが同期フレームを定期的にしか送信しないので、スレーブに発生した異常に対して即時対応することができない。又、マスタがパルスしか送信しない構成では、マスタが同期フレームを送信することができず、スレーブに発生した異常に対して対応することすらできない。この場合、マスタが同期タイミングのパルスとは別に補正情報を送信する構成が考えられるが、その場合、マスタからの送信が同期タイミングのパルスであるか補正情報であるかをスレーブが識別する必要がある。   However, in the method disclosed in Patent Document 1, since the master transmits the synchronization frame only periodically, it is not possible to immediately cope with the abnormality occurring in the slave. In the configuration in which the master transmits only pulses, the master cannot transmit a synchronization frame, and cannot even cope with an abnormality occurring in the slave. In this case, a configuration in which the master transmits correction information separately from the synchronization timing pulse is conceivable. In this case, the slave needs to identify whether transmission from the master is a synchronization timing pulse or correction information. is there.

本発明は、上記した事情に鑑みてなされたものであり、その目的は、マスタに対して複数のスレーブがデイジーチェーン接続されている構成において、マスタがパルスしか送信しない構成であっても、マスタからの送信が同期タイミングのパルスであるか補正情報であるかをスレーブが識別する必要をなくしつつ、スレーブに発生した異常に対して即時対応することができる通信システムを提供することにある。   The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a configuration in which a plurality of slaves are daisy chain connected to a master, even if the master transmits only pulses. It is an object of the present invention to provide a communication system capable of immediately responding to an abnormality occurring in a slave while eliminating the need for the slave to identify whether the transmission from the pulse is a synchronization timing pulse or correction information.

請求項1に記載した発明によれば、マスタは、同期タイミングのパルスを所定周期でスレーブ側に送信する。スレーブは、マスタ側から送信された同期タイミングのパルスを受信したことに追従してデータをマスタ側に送信する。ここで、スレーブは、異常を検出すると、補正要求をマスタ側に送信し、自身が終端以外のスレーブである場合には自身よりも後段のスレーブとの通信を切断する。又、スレーブは、自身よりも後段のスレーブ側から送信された補正要求を受信すると、補正要求をマスタ側に送信する。マスタは、スレーブ側から送信された補正要求を受信すると、補正情報をスレーブ側に送信する。異常を検出したスレーブは、マスタ側から補正情報を受信すると、その受信した補正情報にしたがって当該異常を解消するための補正を実行し、自身が終端以外のスレーブである場合には自身よりも後段のスレーブとの通信を再接続する。又、自身よりも後段のスレーブ側から送信された補正要求を受信したスレーブは、補正要求をマスタ側に送信したことで、これ以降のマスタからの送信が同期タイミングのパルスであるか補正情報であるかを識別する。   According to the first aspect of the present invention, the master transmits a synchronization timing pulse to the slave side at a predetermined period. The slave follows the reception of the synchronization timing pulse transmitted from the master side and transmits data to the master side. Here, when the slave detects an abnormality, the slave transmits a correction request to the master side, and when the slave is a slave other than the terminal, the slave disconnects communication with the slave at the subsequent stage. Further, when the slave receives a correction request transmitted from the slave side subsequent to itself, the slave transmits a correction request to the master side. When the master receives the correction request transmitted from the slave side, the master transmits correction information to the slave side. When the slave that has detected the abnormality receives correction information from the master side, it performs correction to eliminate the abnormality according to the received correction information. Reconnect communication with other slaves. In addition, the slave that has received the correction request transmitted from the slave side downstream from itself transmits the correction request to the master side, so that the subsequent transmission from the master is a pulse of the synchronization timing or the correction information. Identify if there is.

即ち、スレーブは、異常を検出すると、補正要求をマスタ側に送信することで、マスタから補正情報を受信することができる。そして、その異常を検出したスレーブは、その受信した補正情報にしたがって当該異常を解消するための補正を実行することで、異常に対して即時対応することができる。この場合、マスタに対して複数のスレーブがデイジーチェーン接続されている構成では、複数のスレーブは、終端のスレーブと、終端以外のスレーブとに区分され、それらの何れでも異常を検出する可能性がある。   That is, when the slave detects an abnormality, it can receive correction information from the master by transmitting a correction request to the master side. And the slave which detected the abnormality can respond immediately to abnormality by performing the correction | amendment for eliminating the abnormality according to the received correction information. In this case, in a configuration in which a plurality of slaves are connected in a daisy chain to the master, the plurality of slaves are classified into a terminal slave and a slave other than the terminal, and any of them may detect an abnormality. is there.

ここで、異常を検出したスレーブが終端のスレーブである場合、終端以外のスレーブは、その異常を検出した終端のスレーブ側から送信された補正要求を受信してマスタ側に送信する。その結果、終端以外のスレーブは、補正要求を受信してマスタ側に送信したことで、これ以降のマスタからの送信が同期タイミングのパルスであるか補正情報であるかを識別することができる。   Here, when the slave that has detected the abnormality is the terminal slave, the slaves other than the terminal receive the correction request transmitted from the slave at the terminal that has detected the abnormality and transmit the correction request to the master side. As a result, the slaves other than the terminal end can receive the correction request and transmit it to the master side, thereby identifying whether the subsequent transmission from the master is a synchronization timing pulse or correction information.

一方、異常を検出したスレーブが終端以外のスレーブである場合、その異常を検出した終端以外のスレーブよりも前段のスレーブは、その異常を検出した終端以外のスレーブ側から送信された補正要求を受信してマスタ側に送信する。その結果、その異常を検出した終端以外のスレーブよりも前段のスレーブは、補正要求を受信してマスタ側に送信したことで、これ以降のマスタからの送信が同期タイミングのパルスであるか補正情報であるかを識別することができる。しかしながら、その異常を検出した終端以外のスレーブよりも後段のスレーブは、その異常を検出した終端のスレーブから補正要求を受信しない。そのため、その異常を検出した終端以外のスレーブよりも後段のスレーブは、これ以降のマスタからの送信が同期タイミングのパルスであるか補正情報であるかを識別することができない。   On the other hand, if the slave that detected the abnormality is a slave other than the terminal, the slave in the previous stage of the slave other than the terminal that detected the abnormality received the correction request transmitted from the slave side other than the terminal that detected the abnormality. To the master side. As a result, the slave at the previous stage than the slave other than the terminal that detected the abnormality received the correction request and transmitted it to the master side, so that the correction information whether the subsequent transmission from the master is a synchronization timing pulse or not Can be identified. However, a slave at a later stage than the slave other than the terminal that detected the abnormality does not receive a correction request from the slave at the terminal that detected the abnormality. For this reason, a slave subsequent to the slave other than the terminal that has detected the abnormality cannot identify whether the subsequent transmission from the master is a synchronization timing pulse or correction information.

この点に鑑み、本発明では、異常を検出した終端以外のスレーブが、自身よりも後段のスレーブとの通信を切断するようにした。これにより、異常を検出した終端以外のスレーブよりも後段のスレーブにおいて、マスタからの送信が同期タイミングのパルスであるか補正情報であるかを識別する必要をなくすことができる。そして、異常を検出した終端以外のスレーブが、異常を解消するための補正を実行した後に、自身よりも後段のスレーブとの通信を再接続することで、異常を検出する前の状態に速やかに復帰することができる。即ち、スレーブが、マスタ側から送信された同期タイミングのパルスを受信したことに追従してデータをマスタ側に送信することができる。   In view of this point, in the present invention, slaves other than the terminal that detected an abnormality disconnect communication with a slave at a later stage than itself. This eliminates the need to identify whether the transmission from the master is a synchronization timing pulse or correction information in a slave subsequent to the slave other than the terminal that detected the abnormality. Then, after the slaves other than the terminal that detected the abnormality have performed corrections to eliminate the abnormality, the communication with the slave at the subsequent stage is reconnected, so that the state before detecting the abnormality can be promptly restored. Can return. That is, the slave can transmit data to the master side following the reception of the synchronization timing pulse transmitted from the master side.

本発明の第1の実施形態を示す全体構成図1 is an overall configuration diagram showing a first embodiment of the present invention. タイミングチャート(その1)Timing chart (1) タイミングチャート(その2)Timing chart (2) 異常を検出したスレーブとスイッチ回路のオンオフと関係を示す図Diagram showing the relationship between the slave that detects an abnormality and the ON / OFF state of the switch circuit タイミングチャート(その3)Timing chart (part 3) タイミングチャート(その4)Timing chart (4)

以下、本発明を車両に搭載される通信システムに適用した一実施形態について、図面を参照して説明する。通信システム1は、マスタ2と複数のスレーブ3〜5とがデイジーチェーン接続されて構成されている。スレーブ3〜5は、終端(マスタ2から最も離れている最後段の)以外のスレーブ3、4と、終端のスレーブ5とに区分される。図1では、終端以外のスレーブ3、4が2つの構成を例示しているが、終端以外のスレーブが1つの構成であっても良いし、3つ以上の構成であっても良い。マスタ2は、例えばエアバッグの作動を制御するECU(Electronic Control Unit)である。スレーブ3〜5は、例えばマスタ2がエアバッグの作動を制御するのに必要なデータ(計測したセンサ値、センサ値が正常であるか異常であるかを示す値等)を送信するセンサ等である。   Hereinafter, an embodiment in which the present invention is applied to a communication system mounted on a vehicle will be described with reference to the drawings. The communication system 1 includes a master 2 and a plurality of slaves 3 to 5 connected in a daisy chain. The slaves 3 to 5 are classified into slaves 3 and 4 other than the terminal (the last stage farthest from the master 2) and the terminal slave 5. In FIG. 1, the slaves 3 and 4 other than the termination illustrate two configurations, but the slave other than the termination may have one configuration, or may have three or more configurations. The master 2 is, for example, an ECU (Electronic Control Unit) that controls the operation of the airbag. The slaves 3 to 5 are sensors that transmit data necessary for the master 2 to control the operation of the airbag (measured sensor values, values indicating whether the sensor values are normal or abnormal, etc.), for example. is there.

通信システム1において、マスタ2は、データの取得タイミングを監視しており、データの取得タイミングになると、同期タイミングのパルス(データ送信要求)をスレーブ3〜5側に送信する。スレーブ3〜5は、マスタ2側から送信された同期タイミングのパルスを受信すると、その同期タイミングのパルスの受信を契機とし、それぞれ同期タイミングのパルスの受信から予め設定されている設定時間が経過した後にデータをマスタ2側に送信する。この場合、スレーブ3〜5がそれぞれデータを送信するタイミングが他と重複しないように設定時間を設定することで、それぞれのデータが衝突することなく、マスタ2がそれぞれのデータを混同することなく受信可能となる。マスタ2側からスレーブ3〜5側へのパルスは電圧で送信される。又、スレーブ3〜5側からマスタ2側へのデータや後述する補正要求は電流で送信される。   In the communication system 1, the master 2 monitors the data acquisition timing, and when the data acquisition timing is reached, transmits a synchronization timing pulse (data transmission request) to the slaves 3 to 5. When the slaves 3 to 5 receive the synchronization timing pulse transmitted from the master 2 side, each of the slaves 3 to 5 receives the synchronization timing pulse, and a preset set time has elapsed since the reception of the synchronization timing pulse. Later, the data is transmitted to the master 2 side. In this case, by setting a set time so that the timings at which the slaves 3 to 5 transmit data do not overlap with each other, the master 2 receives the data without confusion and without the data colliding. It becomes possible. Pulses from the master 2 side to the slaves 3 to 5 side are transmitted as voltages. Further, data from the slaves 3 to 5 side to the master 2 side and correction requests to be described later are transmitted by current.

マスタ2は、発振器2aと、補正用発振器2bと、補正回路2cと、通常動作回路2dと、補正動作回路2eと、送信回路2fと、受信回路2gと、スレーブ異常検出回路2hとを有する。発振器2aは、コンデンサと抵抗とを含むCR回路から構成される発振器であり、マスタクロックを生成して補正回路2cに出力する(発振する)。補正用発振器2bは、例えば水晶振動子やセラミック振動子から構成される発振器であり、マスタクロックを補正するためのマスタ補正用クロックを生成して補正回路2cに出力する(発振する)。補正用発振器2bが生成するマスタ補正用クロックの発振周波数は発振器2aが生成するマスタクロックの発振周波数よりも精度が高い。   The master 2 includes an oscillator 2a, a correction oscillator 2b, a correction circuit 2c, a normal operation circuit 2d, a correction operation circuit 2e, a transmission circuit 2f, a reception circuit 2g, and a slave abnormality detection circuit 2h. The oscillator 2a is an oscillator composed of a CR circuit including a capacitor and a resistor, generates a master clock, and outputs (oscillates) to the correction circuit 2c. The correction oscillator 2b is an oscillator composed of, for example, a crystal resonator or a ceramic resonator, generates a master correction clock for correcting the master clock, and outputs (oscillates) to the correction circuit 2c. The oscillation frequency of the master correction clock generated by the correction oscillator 2b is higher than the oscillation frequency of the master clock generated by the oscillator 2a.

補正回路2cは、発振器2aからマスタクロックを入力すると、その入力したマスタクロックを、補正用発振器2bから入力したマスタ補正用クロックに追従するように補正し、その補正後のマスタクロックを発振器2aに出力する。発振器2aは、補正回路2cから補正後のマスタクロックを入力すると、その入力した補正後のマスタクロックを通常動作回路2d及び補正動作回路2eに出力する。   When the master clock is input from the oscillator 2a, the correction circuit 2c corrects the input master clock so as to follow the master correction clock input from the correction oscillator 2b, and the corrected master clock is supplied to the oscillator 2a. Output. When the corrected master clock is input from the correction circuit 2c, the oscillator 2a outputs the input corrected master clock to the normal operation circuit 2d and the correction operation circuit 2e.

通常動作回路2dは、データの取得タイミング(監視タイミング)を監視しており、データの取得タイミングになると、同期タイミングのパルスを、発振器2aから入力したマスタクロックと共に送信回路2fに出力する。送信回路2fは、通常動作回路2dから同期タイミングのパルスをマスタクロックと共に入力すると、同期タイミングのパルスをマスタクロックにしたがってスレーブ3〜5側に送信する。受信回路2gは、同期タイミングのパルスが送信回路2fからスレーブ3〜5側に送信されたことに応じて当該スレーブ3〜5側から送信されたデータを受信する。マスタ2は、スレーブ3〜5が異常を検出していない場合には、以上のようにして同期タイミングのパルスをスレーブ3〜5側に送信し、スレーブ3〜5側から送信されたデータを受信する。   The normal operation circuit 2d monitors the data acquisition timing (monitoring timing). When the data acquisition timing is reached, the normal operation circuit 2d outputs a synchronization timing pulse to the transmission circuit 2f together with the master clock input from the oscillator 2a. When a synchronization timing pulse is input together with the master clock from the normal operation circuit 2d, the transmission circuit 2f transmits the synchronization timing pulse to the slaves 3 to 5 according to the master clock. The reception circuit 2g receives the data transmitted from the slaves 3 to 5 in response to the synchronization timing pulse being transmitted from the transmission circuit 2f to the slaves 3 to 5. When the slaves 3 to 5 do not detect any abnormality, the master 2 transmits the synchronization timing pulse to the slaves 3 to 5 and receives the data transmitted from the slaves 3 to 5 as described above. To do.

ここで、マスタ2は、スレーブ3〜5が異常を検出した場合には、以下の動作を行う。受信回路2gは、スレーブ3〜5側から送信された補正要求(スレーブが補正要求を送信する手順については後述する)を受信すると、異常検出をスレーブ異常検出回路2hに出力する。この場合、受信回路2gは、後述するようにスレーブクロックの補正要求、動作電圧の補正要求、送信電流の補正要求を識別可能に受信する。スレーブ異常検出回路2hは、受信回路2gから異常検出を入力すると、その入力した異常検出を通常動作回路2d及び補正動作回路2eに出力する。   Here, when the slaves 3 to 5 detect an abnormality, the master 2 performs the following operation. When the reception circuit 2g receives the correction request transmitted from the slaves 3 to 5 (the procedure for transmitting the correction request by the slave will be described later), the reception circuit 2g outputs abnormality detection to the slave abnormality detection circuit 2h. In this case, the receiving circuit 2g receives the slave clock correction request, the operation voltage correction request, and the transmission current correction request in an identifiable manner, as will be described later. When the slave abnormality detection circuit 2h receives abnormality detection from the reception circuit 2g, the slave abnormality detection circuit 2h outputs the inputted abnormality detection to the normal operation circuit 2d and the correction operation circuit 2e.

補正動作回路2eは、スレーブ異常検出回路2hから異常検出を入力すると、補正情報のパルスを、発振器2aから入力したマスタクロックと共に送信回路2fに出力する。又、通常動作回路2dは、スレーブ異常検出回路2hから異常検出を入力すると、データの取得タイミングになっても、同期タイミングのパルスを送信回路2fに出力しない。送信回路2fは、補正動作回路2eから補正情報のパルスをマスタクロックと共に入力すると、補正情報のパルスをマスタクロックにしたがってスレーブ3〜5側に送信する。この場合、送信回路2fは、スレーブクロックの補正情報のパルス、動作電圧の補正情報のパルス、送信電流の補正情報のパルスを識別可能にスレーブ3〜5側に送信する。マスタ2は、スレーブ3〜5が異常を検出した場合には、以上のようにして補正情報のパルスをスレーブ3〜5側に送信する。   When the abnormality detection is input from the slave abnormality detection circuit 2h, the correction operation circuit 2e outputs a correction information pulse to the transmission circuit 2f together with the master clock input from the oscillator 2a. Further, when the abnormality detection is input from the slave abnormality detection circuit 2h, the normal operation circuit 2d does not output a synchronization timing pulse to the transmission circuit 2f even at the data acquisition timing. When the correction information pulse is input together with the master clock from the correction operation circuit 2e, the transmission circuit 2f transmits the correction information pulse to the slaves 3 to 5 according to the master clock. In this case, the transmission circuit 2 f transmits the slave clock correction information pulse, the operating voltage correction information pulse, and the transmission current correction information pulse to the slaves 3 to 5 in an identifiable manner. When the slaves 3 to 5 detect an abnormality, the master 2 transmits a correction information pulse to the slaves 3 to 5 as described above.

スレーブ3は、発振器3aと、電圧補正回路3bと、電流補正回路3cと、監視回路3dと、受信回路3eと、送信回路3fと、スイッチ回路3gと、補正検出回路3hとを有する。発振器3aは、上記したマスタ2の発振器2aと同様にコンデンサと抵抗とを含むCR回路から構成される発振器であり、スレーブクロックを生成して監視回路3dに出力する(発振する)。電圧補正回路3bは、スレーブ3の動作電圧の電圧値を監視回路3dに出力する。電流補正回路3cは、スレーブ3がデータを送信する際の送信電流の電流値を監視回路3dに出力する。受信回路3eは、マスタ2側から同期タイミングのパルスを受信すると、同期タイミングのパルスを受信した旨を送信回路3fに通知する。送信回路3fは、同期タイミングのパルスを受信した旨が受信回路3eから通知されると、データを、発振器3aから監視回路3dを介して入力したスレーブクロックにしたがってマスタ2側に送信する。スレーブ3は、異常を検出していない場合には、以上のようにしてマスタ2側から同期タイミングのパルスを受信すると、データをマスタ2側に送信する。   The slave 3 includes an oscillator 3a, a voltage correction circuit 3b, a current correction circuit 3c, a monitoring circuit 3d, a reception circuit 3e, a transmission circuit 3f, a switch circuit 3g, and a correction detection circuit 3h. The oscillator 3a is an oscillator composed of a CR circuit including a capacitor and a resistor, like the oscillator 2a of the master 2 described above, and generates a slave clock and outputs (oscillates) to the monitoring circuit 3d. The voltage correction circuit 3b outputs the voltage value of the operating voltage of the slave 3 to the monitoring circuit 3d. The current correction circuit 3c outputs the current value of the transmission current when the slave 3 transmits data to the monitoring circuit 3d. When receiving the synchronization timing pulse from the master 2 side, the reception circuit 3e notifies the transmission circuit 3f that the synchronization timing pulse has been received. When notified from the reception circuit 3e that the synchronization timing pulse has been received, the transmission circuit 3f transmits data to the master 2 side according to the slave clock input from the oscillator 3a via the monitoring circuit 3d. When no error is detected, the slave 3 transmits the data to the master 2 side when receiving the synchronization timing pulse from the master 2 side as described above.

ここで、スレーブ3は、異常を検出した場合には、以下の動作を行う。監視回路3dは、発振器3aからスレーブクロックを入力すると、その入力したスレーブクロックの例えばロウレベルの時間幅やハイレベルの時間幅を予め設定されている正常幅と比較し、スレーブクロックが正常であるか否かを判定する。監視回路3dは、例えばロウレベルの時間幅やハイレベルの時間幅が正常幅に達していなかったり正常幅を越えていたりし、スレーブクロックの異常を検出すると、スレーブクロックの異常を示す異常検出を送信回路3fに出力する。又、監視回路3dは、電圧補正回路3bから動作電圧の電圧値を入力すると、その電圧値を予め設定されている正常範囲と比較し、その電圧値が正常であるか否かを判定する。監視回路3dは、その電圧値が正常範囲内でなく、動作電圧の異常を検出すると、動作電圧の異常を示す異常検出を送信回路3fに出力する。又、監視回路3dは、電流補正回路3cから送信電流の電流値を入力すると、その電流値を予め設定されている正常範囲と比較し、その電流値が正常であるか否かを判定する。監視回路3dは、その電流値が正常範囲内でなく、送信電流の異常を検出すると、送信電流の異常を示す異常検出を送信回路3fに出力する。即ち、監視回路3は、スレーブクロックの異常、動作電圧の異常、送信電流の異常の何れであるかを識別可能に異常検出を送信回路3fに出力する。又、監視回路3は、異常を検出すると、切替命令をスイッチ回路3gに出力する。   Here, the slave 3 performs the following operation when an abnormality is detected. When the monitoring circuit 3d inputs the slave clock from the oscillator 3a, the monitoring circuit 3d compares the input slave clock, for example, the time width of the low level or the time width of the high level with a preset normal width to determine whether the slave clock is normal. Determine whether or not. When the monitoring circuit 3d detects a slave clock abnormality, for example, when the time width of the low level or the time width of the high level does not reach the normal width or exceeds the normal width, the abnormality detection indicating the abnormality of the slave clock is transmitted. Output to the circuit 3f. Further, when the voltage value of the operating voltage is input from the voltage correction circuit 3b, the monitoring circuit 3d compares the voltage value with a preset normal range and determines whether or not the voltage value is normal. When the voltage value is not within the normal range and the abnormality of the operating voltage is detected, the monitoring circuit 3d outputs an abnormality detection indicating the abnormality of the operating voltage to the transmission circuit 3f. Further, when the current value of the transmission current is input from the current correction circuit 3c, the monitoring circuit 3d compares the current value with a preset normal range and determines whether or not the current value is normal. When the current value is not within the normal range and the abnormality of the transmission current is detected, the monitoring circuit 3d outputs an abnormality detection indicating the abnormality of the transmission current to the transmission circuit 3f. That is, the monitoring circuit 3 outputs an abnormality detection to the transmission circuit 3f so that it can be identified whether the slave clock is abnormal, the operation voltage is abnormal, or the transmission current is abnormal. Further, when the monitoring circuit 3 detects an abnormality, it outputs a switching command to the switch circuit 3g.

送信回路3fは、監視回路3dから異常検出を入力すると、異常が発生した旨を特定し、補正要求を発振器3aから監視回路3dを介して入力したスレーブクロックにしたがってマスタ2側に送信する。この場合、送信回路3fは、監視回路3dから入力した異常検出がスレーブクロックの異常を示す場合には、スレーブクロックの補正要求を送信する。又、送信回路3fは、監視回路3dから入力した異常検出が動作電圧の異常を示す場合には、動作電圧の補正要求を送信する。又、送信回路3fは、監視回路3dから入力した異常検出が送信電流の異常を示す場合には、送信電流の補正要求を送信する。   When an abnormality detection is input from the monitoring circuit 3d, the transmission circuit 3f specifies that an abnormality has occurred, and transmits a correction request to the master 2 side according to the slave clock input from the oscillator 3a via the monitoring circuit 3d. In this case, when the abnormality detection input from the monitoring circuit 3d indicates an abnormality of the slave clock, the transmission circuit 3f transmits a slave clock correction request. In addition, when the abnormality detection input from the monitoring circuit 3d indicates an abnormality in the operation voltage, the transmission circuit 3f transmits an operation voltage correction request. The transmission circuit 3f transmits a transmission current correction request when the abnormality detection input from the monitoring circuit 3d indicates an abnormality in the transmission current.

スイッチ回路3gは、監視回路3dから切替命令を入力することで、オンオフを切替え、スレーブ3よりも後段のスレーブ4、5との通信の接続又は切断を切替える。即ち、スレーブ3は、スイッチ回路3gがオンの状態(実線にて示す状態)にある場合には、後段のスレーブ4、5との通信を接続し、マスタ2側から受信したパルスの後段のスレーブ4、5側への送信を許可し、後段のスレーブ4、5から受信したデータや補正要求のマスタ2側への送信を許可する。一方、スレーブ3は、スイッチ回路3gがオフの状態(破線にて示す状態)にある場合には、後段のスレーブ4、5との通信を切断し、マスタ2側から受信したパルスの後段のスレーブ4、5側への送信を禁止し、後段のスレーブ4、5から受信したデータや補正要求のマスタ2側への送信を禁止する。   The switch circuit 3g switches on / off by inputting a switching command from the monitoring circuit 3d, and switches connection or disconnection with respect to the slaves 4 and 5 subsequent to the slave 3. That is, when the switch circuit 3g is in an ON state (shown by a solid line), the slave 3 connects the communication with the subsequent slaves 4 and 5 and the subsequent slave of the pulse received from the master 2 side. 4 and 5 are permitted to be transmitted, and data and correction requests received from the slaves 4 and 5 in the subsequent stage are permitted to be transmitted to the master 2 side. On the other hand, when the switch circuit 3g is in an off state (shown by a broken line), the slave 3 disconnects the communication with the slaves 4 and 5 at the subsequent stage and the slave at the subsequent stage of the pulse received from the master 2 side. 4 and 5 are prohibited, and data and correction requests received from the slaves 4 and 5 in the subsequent stage are prohibited from being transmitted to the master 2 side.

受信回路3eは、マスタ2側から補正情報のパルスを受信すると、補正情報を補正検出回路3hに出力する。補正検出回路3hは、受信回路3eから補正情報を入力すると、その補正情報がスレーブクロックの補正を示す補正情報である場合には、補正命令を発振器3aに出力する。又、補正検出回路3hは、その補正情報が動作電圧の補正を示す補正情報である場合には、補正命令を電圧補正回路3bに出力する。又、補正検出回路3hは、その補正情報が送信電流の補正を示す補正情報である場合には、補正命令を電流補正回路3cに出力する。   When receiving the correction information pulse from the master 2 side, the reception circuit 3e outputs the correction information to the correction detection circuit 3h. When the correction information is input from the receiving circuit 3e, the correction detection circuit 3h outputs a correction command to the oscillator 3a when the correction information is correction information indicating correction of the slave clock. If the correction information is correction information indicating correction of the operating voltage, the correction detection circuit 3h outputs a correction command to the voltage correction circuit 3b. If the correction information is correction information indicating transmission current correction, the correction detection circuit 3h outputs a correction command to the current correction circuit 3c.

発振器3aは、補正検出回路3hから補正命令を入力すると、スレーブクロックの補正を実行し、補正後のスレーブクロックを監視回路3dに出力する(発振する)。電圧補正回路3bは、補正検出回路3hから補正命令を入力すると、動作電圧の補正を実行し、補正後の動作電圧の電圧値を監視回路3dに出力する。電流補正回路3cは、補正検出回路3hから補正命令を入力すると、送信電流の補正を実行し、補正後の送信電流の電流値を監視回路3dに出力する。スレーブ3は、異常を検出した場合には、以上のようにして補正要求をマスタ2側に送信し、マスタ2側から補正情報のパルスを受信し、異常を解消するための補正を実行することで、検出した異常を解消する。   When receiving a correction command from the correction detection circuit 3h, the oscillator 3a executes correction of the slave clock, and outputs (oscillates) the slave clock after correction to the monitoring circuit 3d. When the correction command is input from the correction detection circuit 3h, the voltage correction circuit 3b executes the correction of the operating voltage and outputs the corrected voltage value of the operating voltage to the monitoring circuit 3d. When a correction command is input from the correction detection circuit 3h, the current correction circuit 3c executes transmission current correction, and outputs the corrected transmission current value to the monitoring circuit 3d. When the slave 3 detects an abnormality, the slave 3 transmits a correction request to the master 2 side as described above, receives a correction information pulse from the master 2 side, and executes correction for eliminating the abnormality. In order to eliminate the detected abnormality.

スレーブ3と同じ終端以外のスレーブ4は、上記したスレーブ3と同様の構成である。即ち、スレーブ4は、発振器4aと、電圧補正回路4bと、電流補正回路4cと、監視回路4dと、受信回路4eと、送信回路4fと、スイッチ回路4gと、補正検出回路4hとを有する。これらの各機能ブロック4a〜4hは、スレーブ3の各機能ブロック3a〜3hと同等の機能を有する。一方、スレーブ3とは異なる終端のスレーブ5は、スイッチ回路3gが省略されている点を除いてスレーブ3と同様の構成である。即ち、スレーブ5は、発振器5aと、電圧補正回路5bと、電流補正回路5cと、監視回路5dと、受信回路5eと、送信回路5fと、補正検出回路5hとを有する。これらの各機能ブロック5a〜5f、5hは、スレーブ3の各機能ブロック3a〜3f、3hと同等の機能を有する。   The slave 4 other than the same terminal as the slave 3 has the same configuration as the slave 3 described above. That is, the slave 4 includes an oscillator 4a, a voltage correction circuit 4b, a current correction circuit 4c, a monitoring circuit 4d, a reception circuit 4e, a transmission circuit 4f, a switch circuit 4g, and a correction detection circuit 4h. Each of these functional blocks 4 a to 4 h has a function equivalent to that of each functional block 3 a to 3 h of the slave 3. On the other hand, the terminal slave 5 different from the slave 3 has the same configuration as the slave 3 except that the switch circuit 3g is omitted. That is, the slave 5 includes an oscillator 5a, a voltage correction circuit 5b, a current correction circuit 5c, a monitoring circuit 5d, a reception circuit 5e, a transmission circuit 5f, and a correction detection circuit 5h. Each of these functional blocks 5a to 5f and 5h has a function equivalent to that of each functional block 3a to 3f and 3h of the slave 3.

次に、上記した構成の作用について、図2から図6を参照して説明する。ここでは、
(1)終端以外のスレーブ4がスレーブクロックの異常を検出した場合(図2参照)
(2)終端のスレーブ5がスレーブクロックの異常を検出した場合(図3参照)
について順次説明する。尚、本実施形態では、マスタ2側から送信される同期タイミングのパルスに対し、スレーブ3、スレーブ4、スレーブ5の順序でデータを送信する場合を説明するが、どのような順序でデータを送信しても良い。
Next, the operation of the above configuration will be described with reference to FIGS. here,
(1) When the slave 4 other than the terminal detects an abnormality of the slave clock (see FIG. 2)
(2) When the slave 5 at the end detects a slave clock error (see Fig. 3)
Will be described sequentially. In this embodiment, the case where data is transmitted in the order of slave 3, slave 4 and slave 5 in response to the synchronization timing pulse transmitted from the master 2 side will be described. However, the data is transmitted in any order. You may do it.

(1)終端以外のスレーブ4がスレーブクロックの異常を検出した場合
マスタ2は、データの取得タイミングになると、同期タイミングのパルスを送信回路2fからスレーブ3〜5側に送信する(t1参照)。スレーブ3は、マスタ2側から送信された同期タイミングのパルスを受信回路3eにより受信すると、同期タイミングのパルスの受信から予め設定されている設定時間が経過した後に、データをスレーブクロックにしたがって送信回路3fからマスタ2側に送信する(t2参照)。スレーブ3から送信されたデータは、マスタ2に受信される。スレーブ4は、マスタ2側から送信された同期タイミングのパルスをスレーブ3を経由して受信回路4eにより受信すると、同期タイミングのパルスの受信から予め設定されている設定時間が経過した後に、データをスレーブクロックにしたがって送信回路4fからマスタ2側に送信する(t3参照)。スレーブ4から送信されたデータは、スレーブ3を経由してマスタ2に受信される。
(1) When the slave 4 other than the terminal detects an abnormality of the slave clock, the master 2 transmits a synchronization timing pulse from the transmission circuit 2f to the slaves 3 to 5 at the data acquisition timing (see t1). When the slave 3 receives the synchronization timing pulse transmitted from the master 2 side by the reception circuit 3e, the slave 3 transmits the data according to the slave clock after a preset time has elapsed since the reception of the synchronization timing pulse. 3f is transmitted to the master 2 side (see t2). Data transmitted from the slave 3 is received by the master 2. When the slave 4 receives the synchronization timing pulse transmitted from the master 2 side by the receiving circuit 4e via the slave 3, the slave 4 receives the data after a preset time has elapsed since the reception of the synchronization timing pulse. Transmission is performed from the transmission circuit 4f to the master 2 side according to the slave clock (see t3). Data transmitted from the slave 4 is received by the master 2 via the slave 3.

ここで、スレーブ4は、スレーブクロックの異常を監視回路4dにより検出すると、データを送信回路4fからマスタ2側に送信したことに続いて、スレーブクロックの補正要求を送信回路4fからマスタ2側に送信する(t4参照)。スレーブ4から送信されたスレーブクロックの補正要求は、スレーブ3を経由してマスタ2に受信される。   Here, when the slave circuit 4 detects an abnormality of the slave clock by the monitoring circuit 4d, the slave 4 sends a slave clock correction request from the transmission circuit 4f to the master 2 side after transmitting data from the transmission circuit 4f to the master 2 side. Transmit (see t4). The slave clock correction request transmitted from the slave 4 is received by the master 2 via the slave 3.

スレーブ5は、マスタ2側から送信された同期タイミングのパルスをスレーブ3、4を経由して受信回路5eにより受信すると、同期タイミングのパルスの受信から予め設定されている設定時間が経過した後に、データをスレーブクロックにしたがって送信回路5fからマスタ2側に送信する(t5参照)。スレーブ5から送信されたデータは、スレーブ4、3を経由してマスタ2に受信される。そして、スレーブクロックの異常を検出したスレーブ4は、スレーブ5から受信したデータのマスタ2側への送信を完了すると、切替命令をスイッチ回路4gに出力し、スイッチ回路4gをオンからオフに切替え、後段のスレーブ5との通信を切断する(切り離す)(t6参照)。   When the slave 5 receives the synchronization timing pulse transmitted from the master 2 side by the reception circuit 5e via the slaves 3 and 4, the slave 5 receives the synchronization timing pulse after a preset time has elapsed. Data is transmitted from the transmission circuit 5f to the master 2 side according to the slave clock (see t5). Data transmitted from the slave 5 is received by the master 2 via the slaves 4 and 3. When the slave 4 detecting the abnormality of the slave clock completes transmission of the data received from the slave 5 to the master 2 side, it outputs a switching command to the switch circuit 4g, switching the switch circuit 4g from on to off, The communication with the subsequent slave 5 is disconnected (disconnected) (see t6).

マスタ2は、スレーブ3〜5側から送信されたデータを受信回路2gにより受信すると、その受信したデータを処理する。又、マスタ2は、スレーブ4から送信されたスレーブクロックの補正要求を受信回路2gにより受信すると、スレーブクロックの異常を検出し、スレーブクロックの補正情報のパルスを送信回路2fからスレーブ3〜5側に送信する(t7参照)。この場合、マスタ2側から送信されたスレーブクロックの補正情報のパルスは、スレーブ3に受信され、更にスレーブ3を経由してスレーブ4に受信される。一方、スレーブクロックの異常を検出したスレーブ4よりも後段のスレーブ5との通信を切断しているので、そのスレーブクロックの補正情報のパルスがスレーブ3、4を経由してスレーブ5に受信されることはない。   When the master 2 receives the data transmitted from the slaves 3 to 5 by the receiving circuit 2g, the master 2 processes the received data. Further, when the master 2 receives the slave clock correction request transmitted from the slave 4 by the receiving circuit 2g, the master 2 detects an abnormality of the slave clock, and sends a slave clock correction information pulse from the transmission circuit 2f to the slaves 3 to 5 side. (See t7). In this case, the slave clock correction information pulse transmitted from the master 2 side is received by the slave 3 and further received by the slave 4 via the slave 3. On the other hand, since the communication with the slave 5 subsequent to the slave 4 that detected the slave clock abnormality is disconnected, the pulse of the correction information of the slave clock is received by the slave 5 via the slaves 3 and 4. There is nothing.

スレーブ3は、スレーブ4から受信したスレーブクロックの補正要求をマスタ2側に送信したことで、マスタ2側から送信されたパルスが、同期タイミングのパルスではなく、スレーブクロックの補正情報のパルスであると識別する。そして、スレーブ3は、マスタ2側から送信されたスレーブクロックの補正情報のパルスを受信回路3eにより受信すると、スレーブクロックの補正を実行しても良いし実行しなくても良い(t8参照)。スレーブクロックの異常を検出したスレーブ4は、マスタ2側から送信されたスレーブクロックの補正情報のパルスを受信回路4eにより受信すると、スレーブクロックの補正を実行する(t9参照)。そして、スレーブ4は、スレーブクロックの補正を完了すると、切替命令をスイッチ回路4gに出力し、スイッチ回路4gをオフからオンに切替え、切断した後段のスレーブ5との通信を再接続する(t10参照)。   Since the slave 3 has transmitted the slave clock correction request received from the slave 4 to the master 2 side, the pulse transmitted from the master 2 side is not a synchronization timing pulse but a slave clock correction information pulse. Identify. Then, when the slave 3 receives the pulse of the slave clock correction information transmitted from the master 2 side by the receiving circuit 3e, the slave 3 may or may not perform the correction of the slave clock (see t8). When the slave 4 detects the abnormality of the slave clock and receives the pulse of the slave clock correction information transmitted from the master 2 side by the receiving circuit 4e, the slave 4 corrects the slave clock (see t9). When the slave 4 completes the correction of the slave clock, the slave 4 outputs a switching command to the switch circuit 4g, switches the switch circuit 4g from off to on, and reconnects communication with the slave 5 in the subsequent stage (see t10). ).

これ以降、マスタ2は、データの取得タイミングになると、同期タイミングのパルスを送信回路2fからスレーブ3〜5側に送信する(t11参照)。スレーブ3〜5は、それぞれマスタ2側から送信された同期タイミングのパルスを受信回路3e〜5eにより受信すると、同期タイミングのパルスの受信から予め設定されている設定時間が経過した後に、データをスレーブクロックにしたがって送信回路3f〜5fからマスタ2側に送信する(t12〜t14参照)。   Thereafter, the master 2 transmits a synchronization timing pulse from the transmission circuit 2f to the slaves 3 to 5 at the data acquisition timing (see t11). When the slaves 3 to 5 receive the synchronization timing pulse transmitted from the master 2 side by the reception circuits 3e to 5e, the slaves 3 to 5 receive the data after a preset time has elapsed since the reception of the synchronization timing pulse. Transmission is performed from the transmission circuits 3f to 5f to the master 2 according to the clock (see t12 to t14).

以上に説明した一連の動作を行うことで、終端以外のスレーブ4がスレーブクロックの異常を検出すると、そのスレーブクロックの異常を検出したスレーブ4は、補正要求をマスタ2側に送信することで、マスタ2側から送信された補正情報を受信することができる。そして、そのスレーブクロックの異常を検出したスレーブ4は、その受信した補正情報にしたがってスレーブクロックの補正を実行することで、スレーブクロック異常に対して即時対応することができる。又、スレーブ4よりも前段のスレーブ3は、スレーブ4から補正要求を受信してマスタ2側に送信したことで、これ以降のマスタ2からの送信が同期タイミングのパルスであるか補正情報のパルスであるかを識別することができる。又、スレーブ4よりも後段のスレーブ5との通信を一時的に切断することで、スレーブ4よりも後段のスレーブ5がマスタ2側からのパルスを受信することがなくなる。その結果、マスタ2からの送信が同期タイミングのパルスであるか補正情報のパルスであるかをスレーブ5が識別する必要をなくすことができる。   By performing the series of operations described above, when the slave 4 other than the terminal detects an abnormality of the slave clock, the slave 4 detecting the abnormality of the slave clock transmits a correction request to the master 2 side. The correction information transmitted from the master 2 side can be received. Then, the slave 4 detecting the abnormality of the slave clock can immediately cope with the abnormality of the slave clock by executing the correction of the slave clock according to the received correction information. Further, the slave 3 before the slave 4 receives the correction request from the slave 4 and transmits it to the master 2 side, so that the subsequent transmission from the master 2 is a synchronization timing pulse or a pulse of correction information. Can be identified. Further, by temporarily disconnecting communication with the slave 5 subsequent to the slave 4, the slave 5 subsequent to the slave 4 does not receive a pulse from the master 2 side. As a result, it is possible to eliminate the need for the slave 5 to identify whether the transmission from the master 2 is a synchronization timing pulse or a correction information pulse.

尚、スレーブ4と同じ終端以外のスレーブ3がスレーブクロックの異常を検出した場合も同様である、即ち、スレーブ3は、スレーブクロックの異常を検出し、後段のスレーブ4、5から受信したデータのマスタ2側への送信を完了すると、後段のスレーブ4、5との通信を切断する。そして、スレーブ3は、マスタ2側から送信されたスレーブクロックの補正情報のパルスを受信し、スレーブクロックの補正を完了すると、切断した後段のスレーブ4、5との通信を再接続する。   The same applies when the slave 3 other than the same terminal as the slave 4 detects an abnormality in the slave clock, that is, the slave 3 detects an abnormality in the slave clock, and the data received from the slaves 4 and 5 in the subsequent stages is detected. When the transmission to the master 2 side is completed, the communication with the subsequent slaves 4 and 5 is disconnected. Then, when the slave 3 receives the pulse of the slave clock correction information transmitted from the master 2 side and completes the correction of the slave clock, the slave 3 reconnects the communication with the slaves 4 and 5 at the subsequent stage.

(2)終端のスレーブ5がスレーブクロックの異常を検出した場合
スレーブ5は、スレーブクロックの異常を監視回路5dにより検出すると、データを送信回路5fからマスタ2側に送信したことに続いて、スレーブクロックの補正要求を送信回路5fからマスタ2側に送信する(t25参照)。スレーブ5から送信されたスレーブクロックの補正要求は、スレーブ4、3を経由してマスタ2に受信される。この場合、スレーブ5は、終端(自身よりも後段のスレーブが存在しない)であり、スレーブ3、4のスイッチ回路3g、4gに相当する構成を有していないので、これ以降、上記したスレーブ4が行う動作(後段のスレーブ5との通信を切断したり再接続したりする)を行うことはない。
(2) When the slave 5 at the end detects an abnormality in the slave clock When the slave 5 detects the abnormality in the slave clock by the monitoring circuit 5d, the slave 5 transmits the data from the transmission circuit 5f to the master 2 side. A clock correction request is transmitted from the transmission circuit 5f to the master 2 side (see t25). The slave clock correction request transmitted from the slave 5 is received by the master 2 via the slaves 4 and 3. In this case, the slave 5 is the terminal (there is no slave subsequent to itself) and does not have a configuration corresponding to the switch circuits 3g and 4g of the slaves 3 and 4, so that the slave 4 described above is thereafter used. Is not performed (the communication with the subsequent slave 5 is disconnected or reconnected).

この場合、スレーブ3、4は、それぞれスレーブ5から受信したスレーブクロックの補正要求をマスタ2側に送信したことで、マスタ2側から送信されたパルスが、同期タイミングのパルスではなく、スレーブクロックの補正情報のパルスであると識別する。そして、スレーブ3、4は、それぞれマスタ2側から送信されたスレーブクロックの補正情報のパルスを受信回路3e、4eにより受信すると、スレーブクロックの補正を実行しても良いし実行しなくても良い(t27、t28参照)。スレーブクロックの異常を検出したスレーブ5は、マスタ2側から送信されたスレーブクロックの補正情報のパルスを受信回路5eにより受信すると、スレーブクロックの補正を実行する(t29参照)。   In this case, each of the slaves 3 and 4 has transmitted the slave clock correction request received from the slave 5 to the master 2 side, so that the pulse transmitted from the master 2 side is not a synchronization timing pulse but a slave clock pulse. It is identified as a pulse of correction information. Then, when the slaves 3 and 4 receive the slave clock correction information pulse transmitted from the master 2 side by the receiving circuits 3e and 4e, they may or may not perform the slave clock correction. (See t27 and t28). When the slave 5 detects the abnormality of the slave clock and receives the pulse of the slave clock correction information transmitted from the master 2 side by the receiving circuit 5e, the slave 5 corrects the slave clock (see t29).

異常を検出したスレーブ3〜5と、スレーブ3、4のそれぞれのスイッチ回路3g、4gの動作とは、図4に示す関係となる。即ち、異常を検出したスレーブ3、4が、それぞれのスイッチ回路3g、4gのオンオフを切替える。又、以上は、スレーブ3〜5がスレーブクロックの異常を検出した場合を説明したが、スレーブ3〜5が動作電圧の異常を検出した場合には、図5及び図6に示すように、スレーブ3〜5は、動作電圧の補正要求をマスタ2側に送信し、マスタ2は、動作電圧の補正情報のパルスをスレーブ3〜5側に送信し、他は同様の動作を行う(t41〜t54、t61〜t73参照)。又、スレーブ3〜5が送信電流の異常を検出した場合にも、同様の動作を行う。   The slaves 3 to 5 that have detected the abnormality and the operations of the switch circuits 3g and 4g of the slaves 3 and 4 have the relationship shown in FIG. That is, the slaves 3 and 4 that have detected an abnormality switch on and off of the respective switch circuits 3g and 4g. Further, the case where the slaves 3 to 5 detect the abnormality of the slave clock has been described above. However, when the slaves 3 to 5 detect the abnormality of the operating voltage, as shown in FIG. 5 and FIG. 3 to 5 transmit an operation voltage correction request to the master 2 side, the master 2 transmits an operation voltage correction information pulse to the slaves 3 to 5 side, and the other operations are the same (t41 to t54). , T61 to t73). The same operation is performed when the slaves 3 to 5 detect an abnormality in the transmission current.

以上に説明したように本実施形態によれば、スレーブ3〜5は、異常を検出すると、補正要求をマスタ2側に送信するようにした。これにより、マスタ2側から補正情報を受信することができ、その受信した補正情報にしたがって当該異常を解消するための補正を実行することで、異常に対して即時対応することができる。又、終端以外のスレーブ3、4が異常を検出した場合には、自身よりも後段のスレーブとの通信を切断するようにした。これにより、異常を検出した終端以外のスレーブ3、4よりも後段のスレーブにおいて、マスタ2からの送信が同期タイミングのパルスであるか補正情報のパルスであるかを識別する必要をなくすことができる。   As described above, according to the present embodiment, when the slaves 3 to 5 detect an abnormality, they transmit a correction request to the master 2 side. Thereby, the correction information can be received from the master 2 side, and the abnormality can be immediately dealt with by executing the correction for eliminating the abnormality according to the received correction information. In addition, when the slaves 3 and 4 other than the terminal detect an abnormality, the communication with the slave subsequent to itself is cut off. This eliminates the need to identify whether the transmission from the master 2 is a synchronization timing pulse or a correction information pulse in slaves subsequent to the slaves 3 and 4 other than the terminal that detected the abnormality. .

又、終端以外のスレーブ3、4が異常を検出した場合には、異常を検出したスレーブ3、4よりも後段のスレーブから受信したデータをマスタ2側に送信した後に当該自身よりも後段のスレーブとの通信を切断するようにした。これにより、後段のスレーブから送信されたデータがマスタ2に受信されることを保障することができる。又、スレーブクロックの異常、動作電圧の異常、送信電流の異常を検出するようにしたので、スレーブクロックの補正、動作電圧の補正、送信電流の補正を実行することができる。更に、精度が高い発振周波数を発振する発振器をスレーブ3〜5に設ける必要なく、スレーブクロックを補正することができ、その分、コスト高を抑制することができる。   In addition, when the slaves 3 and 4 other than the terminal detect an abnormality, the data received from the slaves subsequent to the slaves 3 and 4 detecting the abnormality is transmitted to the master 2 side, and then the slaves subsequent to the slaves. The communication with was cut off. As a result, it is possible to ensure that data transmitted from the slave at the subsequent stage is received by the master 2. Further, since the slave clock abnormality, the operation voltage abnormality, and the transmission current abnormality are detected, the slave clock correction, the operation voltage correction, and the transmission current correction can be executed. Furthermore, the slave clock can be corrected without the need to provide an oscillator that oscillates with high accuracy in the slaves 3 to 5, and the cost can be reduced accordingly.

本発明は、上記した実施形態にのみ限定されるものではなく、以下のように変形又は拡張することができる。
車両に搭載される通信システムに適用した構成を説明したが、別の用途で使用される通信システムに適用することも可能である。
The present invention is not limited to the above-described embodiment, and can be modified or expanded as follows.
Although the structure applied to the communication system mounted in a vehicle was demonstrated, it is also possible to apply to the communication system used for another use.

図面中、1は通信システム、2はマスタ、3〜5はスレーブである。   In the drawings, 1 is a communication system, 2 is a master, and 3 to 5 are slaves.

Claims (5)

マスタ(2)に対して複数のスレーブ(3〜5)がデイジーチェーン接続され、前記マスタが同期タイミングのパルスを所定周期で前記スレーブ側に送信し、前記スレーブが前記マスタ側から送信された前記同期タイミングのパルスを受信したことに追従してデータを前記マスタ側に送信する通信システム(1)において、
前記スレーブは、異常を検出すると、補正要求を前記マスタ側に送信し、自身が終端以外のスレーブである場合には自身よりも後段のスレーブとの通信を切断し、自身よりも後段のスレーブ側から送信された補正要求を受信すると、前記補正要求を前記マスタ側に送信し、
前記マスタは、前記スレーブ側から送信された前記補正要求を受信すると、補正情報を前記スレーブ側に送信し、
前記異常を検出したスレーブは、前記マスタ側から前記補正情報を受信すると、その受信した前記補正情報にしたがって当該異常を解消するための補正を実行し、自身が終端以外のスレーブである場合には自身よりも後段のスレーブとの通信を再接続し、
前記自身よりも後段のスレーブ側から送信された補正要求を受信したスレーブは、前記補正要求を前記マスタ側に送信したことで、これ以降の前記マスタからの送信が前記同期タイミングのパルスであるか前記補正情報であるかを識別することを特徴とする通信システム。
A plurality of slaves (3-5) are connected to the master (2) in a daisy chain, the master transmits a synchronization timing pulse to the slave side in a predetermined cycle, and the slave is transmitted from the master side. In the communication system (1) for transmitting data to the master side following the reception of the synchronization timing pulse,
When the slave detects an abnormality, the slave transmits a correction request to the master side. When the slave is a slave other than the terminal, the slave disconnects communication with a slave downstream from itself, and the slave side downstream from itself When the correction request transmitted from is received, the correction request is transmitted to the master side,
Upon receiving the correction request transmitted from the slave side, the master transmits correction information to the slave side,
When the slave that has detected the abnormality receives the correction information from the master side, the slave performs correction for eliminating the abnormality according to the received correction information, and when the slave is a slave other than the terminal. Reconnect communication with slaves later than itself,
The slave that has received the correction request transmitted from the slave side subsequent to itself transmits the correction request to the master side, so that the subsequent transmission from the master is a pulse of the synchronization timing. A communication system, wherein the correction information is identified.
請求項1に記載した通信システムにおいて、
前記スレーブは、異常を検出すると、補正要求を前記マスタ側に送信し、自身が終端以外のスレーブである場合には自身よりも後段のスレーブから受信したデータを前記マスタ側に送信した後に当該自身よりも後段のスレーブとの通信を切断することを特徴とする通信システム。
The communication system according to claim 1,
When the slave detects an abnormality, it sends a correction request to the master side, and when it is a slave other than the terminal, it sends data received from a slave subsequent to itself to the master side and then sends the correction request to the master side. A communication system characterized by disconnecting communication with a slave at a later stage.
請求項1又は2に記載した通信システムにおいて、
前記スレーブは、スレーブクロックの異常を検出すると、スレーブクロックの補正要求を前記マスタ側に送信し、自身よりも後段のスレーブ側から送信されたスレーブクロックの補正要求を受信すると、前記スレーブクロックの補正要求を前記マスタ側に送信し、
前記マスタは、前記スレーブ側から送信された前記スレーブクロックの補正要求を受信すると、スレーブクロックの補正情報を前記スレーブ側に送信することを特徴とする通信システム。
In the communication system according to claim 1 or 2,
When the slave detects an abnormality in the slave clock, the slave transmits a correction request for the slave clock to the master side, and receives a correction request for the slave clock transmitted from the slave side subsequent to itself, and corrects the slave clock. Send a request to the master,
When the master receives the slave clock correction request transmitted from the slave side, the master transmits slave clock correction information to the slave side.
請求項1又は2に記載した通信システムにおいて、
前記スレーブは、動作電圧の異常を検出すると、動作電圧の補正要求を前記マスタ側に送信し、自身よりも後段のスレーブ側から送信された動作電圧の補正要求を受信すると、前記動作電圧の補正要求を前記マスタ側に送信し、
前記マスタは、前記スレーブ側から送信された前記動作電圧の補正要求を受信すると、動作電圧の補正情報を前記スレーブ側に送信することを特徴とする通信システム。
In the communication system according to claim 1 or 2,
When the slave detects an abnormality in the operating voltage, the slave transmits an operation voltage correction request to the master side. When the slave receives an operation voltage correction request transmitted from the slave side downstream of itself, the slave corrects the operation voltage. Send a request to the master,
When the master receives the operation voltage correction request transmitted from the slave side, the master transmits operation voltage correction information to the slave side.
請求項1又は2に記載した通信システムにおいて、
前記スレーブは、データを送信する際の送信電流の異常を検出すると、送信電流の補正要求を前記マスタ側に送信し、自身よりも後段のスレーブ側から送信された送信電流の補正要求を受信すると、前記送信電流の補正要求を前記マスタ側に送信し、
前記マスタは、前記スレーブ側から送信された前記送信電流の補正要求を受信すると、送信電流の補正情報を前記スレーブ側に送信することを特徴とする通信システム。
In the communication system according to claim 1 or 2,
When the slave detects a transmission current abnormality when transmitting data, it transmits a transmission current correction request to the master side, and receives a transmission current correction request transmitted from the slave side subsequent to itself. , Transmit the transmission current correction request to the master side,
When the master receives the transmission current correction request transmitted from the slave side, the master transmits transmission current correction information to the slave side.
JP2014001628A 2014-01-08 2014-01-08 Communications system Expired - Fee Related JP6115478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014001628A JP6115478B2 (en) 2014-01-08 2014-01-08 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014001628A JP6115478B2 (en) 2014-01-08 2014-01-08 Communications system

Publications (2)

Publication Number Publication Date
JP2015130613A JP2015130613A (en) 2015-07-16
JP6115478B2 true JP6115478B2 (en) 2017-04-19

Family

ID=53761051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014001628A Expired - Fee Related JP6115478B2 (en) 2014-01-08 2014-01-08 Communications system

Country Status (1)

Country Link
JP (1) JP6115478B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4235898A3 (en) 2015-12-22 2023-11-01 Central Glass Company, Limited Electrolyte for non-aqueous electrolyte cell, and non-aqueous electrolyte cell in which same is used
KR101747026B1 (en) 2016-03-08 2017-06-13 엘에스산전 주식회사 Communication device having relay
JP6614403B1 (en) * 2018-07-23 2019-12-04 三菱電機株式会社 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND SYNCHRONIZATION CONTROL METHOD

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02185136A (en) * 1989-01-12 1990-07-19 Fujitsu Ltd Work station address setting method
JP4656421B2 (en) * 2006-02-28 2011-03-23 株式会社デンソー Bus communication system
JP4650690B2 (en) * 2006-03-03 2011-03-16 株式会社デンソー Bus communication system
JP5097250B2 (en) * 2010-08-25 2012-12-12 三菱電機株式会社 Network system
JP2014222847A (en) * 2013-05-14 2014-11-27 株式会社デンソー Communication system

Also Published As

Publication number Publication date
JP2015130613A (en) 2015-07-16

Similar Documents

Publication Publication Date Title
KR101519719B1 (en) Message process method of gateway
EP3392724B1 (en) Synchronization control method and synchronization control system for a plurality of controlled components
JP2007324679A (en) Baud rate generator for serial communication
JP6115478B2 (en) Communications system
EP3121996A1 (en) Synchronization failure processing method and system for clock and time synchronization network
US9804575B2 (en) Multiplex control device
CN104796306A (en) Port mode negotiation method and device
JP6301752B2 (en) Information service display system and time synchronization method
EP3719593B1 (en) Equipment unit state controlling method and device, and equipment unit
TW201516657A (en) Interpreting signals received from redundant buses
JP2014191724A (en) Input/output control device
US9391815B2 (en) Transmission line address overlap detection system and substation terminal used in the system
JP2011083841A (en) Robot control device, robot control system, and robot control method
JP5018396B2 (en) Communication apparatus and communication system
JP2015004649A (en) Slave device, master/slave system and time synchronization method
JP2017041693A (en) Communication device and communication system
KR102104967B1 (en) Duplicated board setting method and the board thereof
JP2015056766A (en) Cloud control system, and execution method for control program of the same
JP2014222847A (en) Communication system
JP2018106513A (en) Detection device
JP2017162709A (en) Light source control system
JP6379925B2 (en) Communication waveform generator
JP4839490B2 (en) Automatic data skew correction system
JP6722055B2 (en) Process synchronization control system and process synchronization control method
JP6478714B2 (en) Monitoring control system, server, client terminal, and monitoring control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170221

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170306

R151 Written notification of patent or utility model registration

Ref document number: 6115478

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees