JP2950085B2 - Multiplexing equipment for mobile - Google Patents

Multiplexing equipment for mobile

Info

Publication number
JP2950085B2
JP2950085B2 JP5055700A JP5570093A JP2950085B2 JP 2950085 B2 JP2950085 B2 JP 2950085B2 JP 5055700 A JP5055700 A JP 5055700A JP 5570093 A JP5570093 A JP 5570093A JP 2950085 B2 JP2950085 B2 JP 2950085B2
Authority
JP
Japan
Prior art keywords
circuit
signal
sleep
output
carrier
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 - Lifetime
Application number
JP5055700A
Other languages
Japanese (ja)
Other versions
JPH06268581A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP5055700A priority Critical patent/JP2950085B2/en
Publication of JPH06268581A publication Critical patent/JPH06268581A/en
Application granted granted Critical
Publication of JP2950085B2 publication Critical patent/JP2950085B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

PURPOSE:To divide the processing into a processing in the abnormal state of a transmission node or in the abnormal state of an oscillation circuit and a processing in the sleep state of a master station by using a carrier-off detection circuit to clearly distinguish a sleep state through stopped communication from a fail safe state on the occurrence of a fault. CONSTITUTION:When sleep preparation start command is not outputted from a master station 2, carrier sense is executed based on an operation monitor signal obtained by sampling reception data obtained from communication data on a multiplexer communication path 4 by 1st slave stations 3a-3n and when the sleep preparation start command is outputted from the master station 2, carrier sense is directly executed based on a carrier of reception data obtained by fetching communication data on the multiplexer communication bus 4.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は自動車などの移動体に搭
載される低消費電力機能付きの移動体用多重通信装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplex communication apparatus for a mobile unit having a low power consumption function and mounted on a mobile unit such as an automobile.

【0002】[0002]

【従来の技術】自動車などの移動体に搭載される低消費
電力機能付きの多重通信装置としては、従来より図6に
示すような装置が知られている。
2. Description of the Related Art As a multiplex communication device with a low power consumption function mounted on a mobile body such as an automobile, a device as shown in FIG. 6 has been conventionally known.

【0003】この図に示す低消費電力機能付きの多重通
信装置101は、マスター局となる1つの親局102
と、スレーブ局となる第1子局103a〜第N子局10
3nと、これらを接続する多重通信バス104とを備え
ており、親局102と第1子局103a〜第N子局10
3nとの間でデータ通信を行なって第1子局103a〜
第N子局103nに接続されている各入力回路105b
〜105nのデータを収集し、これをCPU107に供
給する一方、このCPU107から出力される制御デー
タを第1子局103a〜第N子局103nに接続されて
いる各負荷回路106a〜106nに供給する。そし
て、一連の通信処理を終了した後、第1子局103a〜
第N子局103nから各入力回路105a〜105nの
データが変化したことを示すウェイクアップ信号が出力
されるまでの間、親局102がスリープ状態になるとと
もに、第1子局103a〜第N子局103nがスリープ
状態になってシステム全体の省電力化を行なう。
A multiplex communication apparatus 101 having a low power consumption function shown in FIG. 1 has one master station 102 serving as a master station.
And the first slave station 103a to the Nth slave station 10 serving as slave stations.
3n and a multiplex communication bus 104 for connecting them, the master station 102, the first slave station 103a to the Nth slave station 10
3n to perform data communication with the first slave stations 103a to 103a to 103n.
Each input circuit 105b connected to the Nth slave station 103n
105105n are collected and supplied to the CPU 107, while the control data output from the CPU 107 is supplied to the load circuits 106a106106n connected to the first slave station 103a〜Nth slave station 103n. . Then, after a series of communication processing ends, the first slave stations 103a to 103a
Until the wake-up signal indicating that the data of each of the input circuits 105a to 105n has changed is output from the N-th slave station 103n, the master station 102 is in the sleep state, and the first slave station 103a to the N-th slave station. The station 103n enters a sleep state to save power of the entire system.

【0004】親局102は、パラレルバス108によっ
て移動体の各部の動作を制御するCPU107に接続さ
れるとともに、多重通信バス104によって第1子局1
03a〜第N子局103nに接続されており、CPU1
07からの指示に基づいて第1子局103a〜第N子局
103nのいずれかを選択してデータの収集や制御デー
タの供給を行い、CPU107からの指令に基づいてス
リープ状態になる。
The master station 102 is connected by a parallel bus 108 to a CPU 107 for controlling the operation of each part of the mobile unit, and is connected by a multiplex communication bus 104 to the first slave station 1.
03a to the Nth slave station 103n.
Based on the instruction from 07, any one of the first to 103rd slave stations 103a to 103n is selected to collect data and supply control data, and enter a sleep state based on a command from the CPU 107.

【0005】第1子局103a〜第N子局103nは、
各々ドアスイッチ等のスイッチによって構成される入力
回路105a〜105nやドアロックアクチュエータ等
によって構成される負荷回路106a〜106nに接続
されるとともに、多重通信バス104によって親局10
2に接続されており、多重通信バス104を介して親局
102と通信を行なって、入力回路105a〜105n
からのデータを親局102に伝送し、この親局102か
ら出力される制御データを取り込んで負荷回路106a
〜106nに供給する。また親局102がスリープ状態
になったとき、これを検出してスリープ状態になり、各
入力回路105a〜105nのデータ変化を検出して親
局102のスリープを解除する。
[0005] The first to Nth slave stations 103a to 103n
Each of the master station 10 is connected to an input circuit 105a to 105n constituted by a switch such as a door switch and a load circuit 106a to 106n constituted by a door lock actuator and the like.
2 and communicates with the master station 102 via the multiplex communication bus 104 to input circuits 105a to 105n.
Is transmitted to the master station 102, and the control data output from the master station 102 is taken into the load circuit 106a.
~ 106n. When the master station 102 enters the sleep state, the sleep state is detected and the sleep state is detected. The data change of each of the input circuits 105a to 105n is detected, and the sleep state of the master station 102 is released.

【0006】例えば、第1子局103aが運転席のドア
内に配置され、この第1子局103aに設けられている
複数の入力ポート回路の1つが運転席のドアロックスイ
ッチに接続され、さらに第2子局103bが助手席のド
ア内に配置され、この第2子局103bに設けられてい
る複数の出力ポート回路の1つが助手席のドアロックア
クチュエータに接続されていると仮定すると、先ず、C
PU107の制御下にある親局102は、第1子局10
3aに対するデータ送信命令を生成して、これを多重通
信バス104を介して第1子局103aに伝送する。
For example, a first slave station 103a is arranged in a door of a driver's seat, and one of a plurality of input port circuits provided in the first slave station 103a is connected to a door lock switch of a driver's seat. Assuming that the second slave station 103b is arranged in the door of the passenger seat, and one of the plurality of output port circuits provided in the second slave station 103b is connected to the door lock actuator of the passenger seat. , C
The master station 102 under the control of the PU 107 is the first slave station 10
A data transmission command for 3a is generated and transmitted to the first slave station 103a via the multiplex communication bus 104.

【0007】これによって、第1子局103aは自局か
らのデータ送信が指定されたことを検知してドアロック
スイッチの状態を含む入力ポートデータを収集して通信
データを生成し、これを多重通信バス104を介して親
局102に伝送する。
As a result, the first slave station 103a detects that data transmission from itself has been designated, collects input port data including the state of the door lock switch, generates communication data, and multiplexes the communication data. The data is transmitted to the master station 102 via the communication bus 104.

【0008】そして、親局102は多重通信バス104
を介して前記通信データを受信して受信データを生成
し、これをCPU107に供給する。
The master station 102 is connected to the multiplex communication bus 104
The communication data is received via the CPU 107 to generate received data, which is supplied to the CPU 107.

【0009】次いで、このCPU107によって前記受
信データが処理され、前記ドアスイッチの状態が判定さ
れる。この判定結果に基づいてドアロックアクチュエー
タを制御する制御データが生成される。この制御データ
を取り込んだ親局102は、第2子局103bに対する
データ受信指令を生成し、これを多重通信バス104を
介して第2子局103bに供給する。その後、親局10
2は前記制御データに基づいて通信データを生成し、こ
れを多重通信バス104を介して第2子局103bに供
給する。
Next, the received data is processed by the CPU 107, and the state of the door switch is determined. Control data for controlling the door lock actuator is generated based on the determination result. The master station 102 that has taken in the control data generates a data reception command for the second slave station 103b, and supplies it to the second slave station 103b via the multiplex communication bus 104. Then, the master station 10
2 generates communication data based on the control data and supplies it to the second slave station 103b via the multiplex communication bus 104.

【0010】これによって、第2子局103bは、自局
が通信データの受信局として指定されたことを検知し
て、多重通信バス104上から前記通信データを取り込
んで受信データを生成し、これをラッチするとともに、
ドアロックアクチュエータに供給してこれを制御する。
Accordingly, the second slave station 103b detects that the own station has been designated as the communication data receiving station, and takes in the communication data from the multiplex communication bus 104 to generate the reception data. While latching
It is supplied to a door lock actuator to control it.

【0011】以下、親局102は、図7に示す手順で第
1子局103a〜第N子局103nに対して上述した一
連を処理を順次繰り返してシステム全体の制御を行な
う。
Hereinafter, the master station 102 controls the entire system by sequentially repeating the above-described series of processes for the first slave station 103a to the Nth slave station 103n in the procedure shown in FIG.

【0012】各入力ポートデータの収集や各制御データ
の送信などの一連の動作が終了し、キー・オフ状態で動
作の必要がないときには、CPU107からの指示に基
づいて親局102がスリープ状態(原動機が停止してい
る状態)になるとともに、多重通信バス104の状態に
基づいて第1子局103a〜第N子局103nが親局1
02がスリープ状態になっていることを検出してスリー
プ状態になる。これによりシステム全体の消費電力を低
減させてバッテリー上がりを防止する。
When a series of operations such as collection of each input port data and transmission of each control data is completed and no operation is required in the key-off state, the master station 102 is set to the sleep state (based on an instruction from the CPU 107). (The prime mover is stopped), and based on the state of the multiplex communication bus 104, the first slave station 103a to the Nth slave station 103n
02 is in the sleep state upon detecting that it is in the sleep state. This reduces the power consumption of the entire system and prevents the battery from running down.

【0013】但し、自動車などの移動体においては、ド
アロックシステムなどのように、キー・オフ状態でも、
動作させなければならない負荷回路がある。このため、
キー・オフ状態となったときから一定時間後に、親局1
02が低消費電力状態となって送信を中止するととも
に、多重通信バス104の状態が予め設定されている一
定時間変化しないことを第1子局103a〜第N子局1
03nが検知してスリープ状態になっても、ドアロック
スイッチの状態が変化したときには、このドアロックス
イッチに接続されている第1子局103aがこれを検知
してウェイクアップ信号を生成し、これを多重通信バス
104を介して親局102に伝送する。これにより親局
102をスリープ状態から復帰させて、ドアロックアク
チュエータの制御動作を行なわせるようにしている。
However, in a mobile body such as an automobile, even in a key-off state, such as in a door lock system,
There are load circuits that must be operated. For this reason,
After a certain period of time after the key-off state, the master station 1
02 is in the low power consumption state, transmission is stopped, and the first slave station 103a to the Nth slave station 1 confirm that the state of the multiplex communication bus 104 does not change for a predetermined period of time.
Even if the state of the door lock switch changes even if the sleep state has been detected by the detection of the switch 03n, the first slave station 103a connected to the door lock switch detects this and generates a wake-up signal. Is transmitted to the master station 102 via the multiplex communication bus 104. As a result, the master station 102 is returned from the sleep state, and the control operation of the door lock actuator is performed.

【0014】次に、図8に示すブロック図を参照しなが
ら、上述した第1子局103aの回路構成について説明
する。
Next, the circuit configuration of the first slave station 103a will be described with reference to the block diagram shown in FIG.

【0015】この図に示す第1子局103aは、通信部
110と、スリープ/フェールセーフ部111と、受信
部112と、送信部113と、ウェイクアップ部114
とを備えており、多重通信バス104を介して親局10
2と通信を行ない、自局が送信局と指定されたとき、対
応する入力回路105aから出力される入力ポートデー
タを取り込むとともに、これを多重通信バス104を介
して親局12に伝送し、また自局が受信局と指定された
とき、多重通信バス104から通信データを取り込むと
ともに、これをラッチしながら負荷回路106aに供給
し、この後多重通信バス104の状態が変化しなくなっ
たとき、スリープ状態になり、以後親局102が再起動
するまで、この状態を維持する。そして、この間、対応
する入力回路105aからの入力ポートデータが変化す
れば、ウェイクアップ信号を生成するとともに、これを
多重通信バス104を介して親局102に伝送してこの
親局102のスリープ状態を解除させる。さらに、何ら
かの原因によって自局のクロック信号が無くなったり、
多重通信バス104上の信号が異常になったとき、これ
を検出して負荷回路106aに対する制御データを無効
にしたり、制御データの更新を禁止したりして信号の異
常に起因する誤制御を防止する。
The first slave station 103a shown in FIG. 1 includes a communication unit 110, a sleep / failsafe unit 111, a reception unit 112, a transmission unit 113, and a wake-up unit 114.
And the master station 10 via the multiplex communication bus 104.
2 and communicates with the base station 12 when its own station is designated as the transmitting station, while taking in input port data output from the corresponding input circuit 105a and transmitting it to the master station 12 via the multiplex communication bus 104. When the own station is designated as the receiving station, the communication data is fetched from the multiplex communication bus 104 and supplied to the load circuit 106a while latching the communication data. State, and this state is maintained until the parent station 102 is restarted. If the input port data from the corresponding input circuit 105a changes during this time, a wake-up signal is generated and transmitted to the master station 102 via the multiplex communication bus 104, and the sleep state of the master station 102 is set. Release. Furthermore, the clock signal of own station is lost for some reason,
When a signal on the multiplex communication bus 104 becomes abnormal, this is detected to invalidate control data for the load circuit 106a or to prohibit updating of control data, thereby preventing erroneous control due to signal abnormality. I do.

【0016】通信部110は、送信部113から出力さ
れた送信データを取り込んで多重通信バス104上に送
出して親局102に伝送する一方、この親局102から
出力された通信データを多重通信バス104を介して取
り込み受信データを生成する多重通信バスI/F回路1
15と、この多重通信バスI/F回路115から出力さ
れる受信データをデコードして自局への命令であるかど
うか判断し、自局に対するデータ受信命令ならば、受信
開始指令を生成して受信部112に出力し、前記受信デ
ータが自局に対するデータ送信命令ならば、送信開始指
令を生成して送信部113に出力するとともにウェイク
アップメモリキャンセル信号を生成してウェイクアップ
部114に供給する命令デコーダ回路116とを備えて
いる。
The communication section 110 takes in the transmission data output from the transmission section 113, sends out the data on the multiplex communication bus 104, and transmits the multiplexed communication data to the master station 102, while multiplexing the communication data output from the master station 102 into multiplex communication. Multiplexed communication bus I / F circuit 1 for generating received data via bus 104
15 and decodes the received data output from the multiplex communication bus I / F circuit 115 to determine whether the received data is a command for the own station. If the received data is a command for the own station, a reception start command is generated. Output to the receiving unit 112, if the received data is a data transmission command to the own station, generate a transmission start command and output it to the transmitting unit 113, and also generate a wake-up memory cancel signal and supply it to the wake-up unit 114 And an instruction decoder circuit 116.

【0017】スリープ/フェールセーフ部111は、通
信部110から出力される受信データを取り込むととも
に、この受信データが予め設定されている一定時間変化
していないとき、これを検出して親局102がスリープ
状態になっていると判定して第1キャリアオフ信号を生
成する第1キャリアオフ検出回路117と、この第1キ
ャリアオフ検出回路117から第1キャリアオフ信号が
出力されているとき、クロック信号の発生を停止して第
1子局103a全体を低消費電力状態にする発振回路1
18とを備えている。
The sleep / fail safe unit 111 takes in the received data output from the communication unit 110 and, when the received data has not changed for a predetermined period of time, detects this and the master station 102 detects it. A first carrier-off detection circuit that determines that the apparatus is in a sleep state and generates a first carrier-off signal; and a clock signal when the first carrier-off signal is output from the first carrier-off detection circuit. Circuit 1 that stops the occurrence of power and places the entire first slave station 103a in a low power consumption state
18 is provided.

【0018】また、このスリープ/フェールセーフ部1
11は、発振回路118から出力されるクロック信号が
立ち上がる毎(または、立ち下がる毎)に、通信部11
0から出力される受信データをサンプリングし、これを
動作監視信号として出力するD型フリップフロップ11
9と、このD型フリップフロップ119から出力される
動作監視信号が予め設定されている一定時間変化しない
とき、これを検出して親局102の送信ノードや発振回
路118などが異常になっていると判定して第2キャリ
アオフ信号を生成する第2キャリアオフ検出回路120
と、この第2キャリアオフ検出回路120から第2キャ
リアオフ信号が出力されているとき、フェールセーフ信
号を生成するフェールセーフ回路121とを備えてい
る。
The sleep / fail safe unit 1
Each time the clock signal output from the oscillation circuit 118 rises (or falls), the communication unit 11
D-type flip-flop 11 which samples received data output from 0 and outputs it as an operation monitoring signal
9, when the operation monitoring signal output from the D-type flip-flop 119 does not change for a predetermined period of time, this is detected, and the transmission node of the master station 102, the oscillation circuit 118, and the like are abnormal. And a second carrier off detection circuit 120 that generates a second carrier off signal
And a fail-safe circuit 121 that generates a fail-safe signal when the second carrier-off signal is output from the second carrier-off detection circuit 120.

【0019】第2キャリアオフ検出回路120は、図9
に示す如く1つのR−Sフリップフロップ回路123、
1つのナンドゲート回路124および1つの遅延回路1
25によって構成され動作監視信号が変化する毎に再ト
リガーされるワンショットモノマルチ回路126と、こ
のワンショットモノマルチ回路126が再トリガーされ
なくなってから一定時間が経過したとき、“0”信号を
生成し、この後パワーオンリセット信号が供給されたと
き、“0”信号の生成を停止するアンドゲート回路12
7と、このアンドゲート回路127の出力を反転するイ
ンバータ回路128とを備えている。
The second carrier-off detection circuit 120 is provided in the circuit shown in FIG.
One RS flip-flop circuit 123 as shown in FIG.
One NAND gate circuit 124 and one delay circuit 1
25, and a one-shot mono-multi circuit 126 that is retriggered every time the operation monitoring signal changes, and a "0" signal is output when a predetermined time has passed since the one-shot mono-multi circuit 126 is no longer retriggered. And an AND gate circuit 12 for stopping the generation of the "0" signal when the power-on reset signal is supplied thereafter.
7 and an inverter circuit 128 for inverting the output of the AND gate circuit 127.

【0020】また、この第2キャリアオフ検出回路12
0は、インバータ回路128から“1”が出力されてい
るとき、導通してチップ129に外付けされている抵抗
130およびコンデンサ131によって構成される時定
数回路132を放電させるFET133と、時定数回路
132のコンデンサ131が予め設定されているレベル
以下になるまで放電したとき、“1”信号を生成するヒ
ステリシスインバータ回路134と、アンドゲート回路
127から“0”信号が出力されるとともに、ヒステリ
シスインバータ回路134から“1”信号が出力されて
いるとき、“0”信号を生成するR−Sフリップフロッ
プ回路135と、このR−Sフリップフロップ回路13
5から“0”信号が出力されているとき、“1”信号を
生成してこれを第2キャリアオフ検出信号として出力す
るインバータ回路136とを備えている。
The second carrier off detection circuit 12
0 denotes an FET 133 that conducts when "1" is output from the inverter circuit 128 and discharges a time constant circuit 132 constituted by a resistor 130 and a capacitor 131 externally attached to the chip 129; When the capacitor 131 discharges to a level below a preset level, a hysteresis inverter circuit 134 for generating a “1” signal, a “0” signal from the AND gate circuit 127 are output, and a hysteresis inverter circuit is output. When an “1” signal is output from the RS 134, an RS flip-flop circuit 135 that generates a “0” signal and the RS flip-flop circuit 13
5 is provided with an inverter circuit 136 that generates a “1” signal when the “0” signal is output and outputs the signal as a second carrier-off detection signal.

【0021】受信部112は、通信部110から受信開
始指令が出力されたとき、通信部110から出力される
受信データを取り込む受信回路140と、この受信回路
140から出力される受信データを取り込んでラッチ
し、スリープ/フェールセーフ部111からフェールセ
ーフ信号が出力されたとき、ラッチしている受信データ
をリセットして消去し、また受信データの更新を停止す
る出力ポート回路141とを備えている。
Receiving section 112 receives a reception start command from communication section 110, receives a reception data output from communication section 110, and receives a reception data output from reception circuit 140. An output port circuit 141 for latching and resetting and erasing the latched received data and stopping updating of the received data when the fail / safe signal is output from the sleep / fail safe unit 111 is provided.

【0022】送信部113は、対応する入力回路105
aから出力される入力ポートデータを取り込んでウェイ
クアップ部114に出力する入力ポート回路142と、
通信部110から送信開始指令が出力されたとき、入力
ポート回路142から出力される入力ポートデータを取
り込んでこれを送信データとして多重通信バスI/F回
路115に出力する送信回路143とを備えている。
The transmitting unit 113 is provided with a corresponding input circuit 105
a input port circuit 142 which takes in the input port data output from a and outputs it to the wake-up unit 114;
A transmission circuit 143 for receiving input port data output from the input port circuit 142 when the transmission start command is output from the communication unit 110, and outputting the input port data as transmission data to the multiplex communication bus I / F circuit 115; I have.

【0023】ウェイクアップ部114は、送信部113
の入力ポート回路142から出力される入力ポートデー
タを取り込んでこれが変化したかどうかをチェックし、
この入力ポートデータが変化したとき、ポート変化信号
を生成するポート状態検知回路144と、このポート状
態検知回路144からポート変化信号が出力されたと
き、これを取り込んで記憶しながら出力し、通信部11
0からウェイクアップメモリキャンセル信号が出力され
たとき、記憶しているポート変化信号を消去するウェイ
クアップメモリ回路145と、このウェイクアップメモ
リ回路145からポート変化信号が出力されるととも
に、スリープ/フェールセーフ部111の第1キャリア
オフ検出回路117から第1キャリアオフ信号が出力さ
れているとき、ウェイクアップ信号を生成するウェイク
アップ回路146とを備えている。
The wake-up unit 114 includes a transmitting unit 113
Input port data output from the input port circuit 142, and checks whether or not this has changed.
When the input port data changes, a port state detection circuit 144 for generating a port change signal, and when a port change signal is output from the port state detection circuit 144, the port change signal is taken in, stored and output, and the communication unit 11
When a wake-up memory cancel signal is output from 0, a wake-up memory circuit 145 for erasing the stored port change signal, a port change signal is output from the wake-up memory circuit 145, and sleep / fail safe A wake-up circuit 146 that generates a wake-up signal when the first carrier-off signal is output from the first carrier-off detection circuit 117 of the unit 111.

【0024】そして、このウェイクアップ部114は、
送信部113の入力ポート回路142から出力される入
力ポートデータが変化するとともに、スリープ/フェー
ルセーフ部111の第1キャリアオフ検出回路117か
ら第1キャリアオフ信号が出力されているとき、ウェイ
クアップ信号を生成してこれを通信部110に供給して
親局102に伝送させ、この親局102のスリープ状態
を解除させる。この後、この親局102が通信動作を開
始して通信部110からウェイクアップメモリキャンセ
ル信号が出力されたとき、親局102のスリープ状態が
解除されたと判定してウェイクアップ信号の生成を停止
する。
Then, the wake-up unit 114
When the input port data output from the input port circuit 142 of the transmission unit 113 changes and the first carrier off signal is output from the first carrier off detection circuit 117 of the sleep / fail safe unit 111, the wake-up signal Is generated, supplied to the communication unit 110 and transmitted to the master station 102, and the sleep state of the master station 102 is released. Thereafter, when the master station 102 starts a communication operation and a wake-up memory cancel signal is output from the communication unit 110, it is determined that the sleep state of the master station 102 has been released and the generation of the wake-up signal is stopped. .

【0025】このように、この第1子局103aにおい
ては、発信回路118からクロック信号が正常に出力さ
れているとき、送信ノードから出力される通信データの
キャリアをD型フリップフロップ119を介して第2キ
ャリアオフ検出回路120に導き、これによって何らか
の原因で、送信ノードが暴走し、または停止して通信デ
ータのキャリアが途絶えたとき、図9に示す第2キャリ
アオフ検出回路120のワンショットモノマルチ回路1
26の出力が“0”レベルになって、時定数回路132
を構成しているコンデンサ131が放電を開始し、この
ときから予め設定されている時間が経過したとき、故障
発生を示す第2キャリアオフ信号を生成して、フェール
セーフ回路121からフェールセーフ信号を出力させ、
これによって受信部112の出力ポート回路141をリ
セットし、また受信データの更新を停止して、この出力
ポート回路141から出力される制御データにより制御
されるアクチュエータが誤動作しないようにしている。
As described above, in the first slave station 103a, when the clock signal is normally output from the transmission circuit 118, the carrier of the communication data output from the transmission node is transmitted via the D-type flip-flop 119. When the transmission node goes out of control or stops for some reason and the carrier of communication data is cut off for some reason, the one-shot mono of the second carrier off detection circuit 120 shown in FIG. Multi circuit 1
26 becomes “0” level, and the time constant circuit 132
When the preset time elapses from this time, a second carrier-off signal indicating the occurrence of a failure is generated, and the fail-safe signal is output from the fail-safe circuit 121. Output
As a result, the output port circuit 141 of the receiving unit 112 is reset, and the update of the received data is stopped, so that the actuator controlled by the control data output from the output port circuit 141 does not malfunction.

【0026】また、D型フリップフロップ119を持た
ない従来のスリープ/フェールセーフ部では、送信ノー
ドが正常であっても、発振回路118等の故障で、クロ
ック信号の出力が停止した場合、出力ポート回路141
のラッチ状態が更新不能となり、故障のタイミングによ
っては、出力ラッチがオンされたまま、負荷回路106
aのアクチュエータが暴走する可能性もある。しかし、
図8に示す第1子局103aにおいては、D型フリップ
フロップ119に対しても、クロック信号の供給が停止
し、通信データのキャリアが第2キャリアオフ検出回路
120に供給されなくなるので、送信ノードが停止した
場合と同じ状態になり、これによってフェールセーフ回
路121の故障と判定して、フェールセーフ信号を出力
し、出力ポート回路141のラッチをリセットさせてア
クチュエータを停止させる。
In the conventional sleep / fail-safe unit having no D-type flip-flop 119, even if the transmission node is normal, if the output of the clock signal is stopped due to the failure of the oscillation circuit 118 or the like, the output port Circuit 141
Cannot be updated, and depending on the timing of the failure, the output circuit remains on and the load circuit 106 remains on.
The actuator a may run away. But,
In the first slave station 103a shown in FIG. 8, the supply of the clock signal also stops to the D-type flip-flop 119, and the carrier of the communication data is not supplied to the second carrier off detection circuit 120. Is in the same state as in the case where the actuator has stopped, thereby determining that the fail-safe circuit 121 has failed, outputting a fail-safe signal, resetting the latch of the output port circuit 141, and stopping the actuator.

【0027】他の第2子局103b〜第N子局103n
も、上述した第1子局103aと同様に構成されてい
る。
Other second slave stations 103b to 103n
Is also configured in the same manner as the first slave station 103a described above.

【0028】[0028]

【発明が解決しようとする課題】しかしながら、上述し
た従来の移動体用多重通信装置101においては、フェ
ールセーフ監視専用の第2キャリアオフ検出回路120
で発振回路118の監視と親局102の監視とを行な
い、スリープ制御専用の第1キャリア検出回路117で
ウェイクアップ信号の出力制御と低消費電力制御とを行
なう構成となり、共にキャリアオフ検出のみを条件にし
ている回路の構成上、親局102のスリープを検出して
通信を停止した結果、スリープ状態にあるのか、異常の
ためにフェールセーフ状態にあるのかを判別できない。
However, in the above-mentioned conventional mobile multiplex communication apparatus 101, the second carrier off detection circuit 120 dedicated to fail-safe monitoring is provided.
To monitor the oscillation circuit 118 and the master station 102, and perform the output control of the wake-up signal and the low power consumption control by the first carrier detection circuit 117 dedicated to sleep control. Due to the configuration of the circuit under the condition, as a result of detecting the sleep of the master station 102 and stopping the communication, it cannot be determined whether the apparatus is in the sleep state or in the fail-safe state due to an abnormality.

【0029】このため、ランプ照明などのように、フェ
ールセーフ時にオフしたいような負荷があっても、フェ
ールセーフが検出される前にスリープ状態になってしま
うと、ランプ照明などの負荷をオフさせることができな
いのみならず、スリープとフェールセーフとで動作を変
更することができないという問題があった。
For this reason, even if there is a load, such as lamp lighting, which is desired to be turned off at the time of fail-safe, if a sleep state occurs before fail-safe is detected, the load of lamp lighting, etc. is turned off. In addition to this, there is a problem that the operation cannot be changed between sleep and fail-safe.

【0030】また、図8に示す第1子局103aでは、
第1キャリアオフ信号を第2キャリアオフ信号に置き換
えると、第2キャリアオフ検出回路120によってキャ
リアオフが検出されたとき、発振回路118が動作を停
止してクロック信号の生成を停止し、D型フリップフロ
ップ119の動作を停止させてしまうため、親局102
が送信を再開しても、発振回路118を再起動させるこ
とができない。
In the first slave station 103a shown in FIG.
When the first carrier-off signal is replaced with the second carrier-off signal, when the second carrier-off detection circuit 120 detects carrier-off, the oscillation circuit 118 stops operating to stop generating a clock signal, and Since the operation of the flip-flop 119 is stopped, the master station 102
Even if the transmission restarts, the oscillation circuit 118 cannot be restarted.

【0031】つまり、クロック信号の停止の監視機能
と、クロックの停止機能という2つの背反する機能を1
つのキャリアオフ検出回路で実現することは困難である
ことから、LSIチップの中にコストの高いキャリアオ
フ検出回路を必ず2つ設けなければならないという問題
があった。
That is, two contradictory functions of a clock signal stop monitoring function and a clock stop function are defined as 1
Since it is difficult to realize this with one carrier-off detection circuit, there has been a problem that two expensive carrier-off detection circuits must be provided in an LSI chip.

【0032】本発明は上記の事情に鑑み、1つのキャリ
アオフ検出回路によって通信が停止してスリープ状態に
あるのか、異常発生によってフェールセーフ状態にある
のかを明確に区分することができ、これによって送信ノ
ードの異常時や発振回路の異常時の対処処理と、親局の
スリープ時の処理とを分けてランプ照明などの負荷をオ
ン状態にしたままスリープ状態に入っても、フェールセ
ーフとなったとき、前記負荷をオフさせ、またクリアさ
せることができる移動体の低消費電力機能付き多重通信
装置を提供することを目的としている。
In the present invention, in consideration of the above situation, it is possible to clearly distinguish whether communication is stopped by one carrier-off detection circuit and the communication apparatus is in a sleep state or is in a fail-safe state due to occurrence of an abnormality. Separate the processing when the transmission node is abnormal or the oscillator circuit is abnormal and the processing when the master station is sleeping.Fail-safe even when entering the sleep state with the load such as lamp lighting on. It is an object of the present invention to provide a multiplex communication apparatus with a low power consumption function of a mobile body that can turn off and clear the load.

【0033】[0033]

【課題を解決するための手段】上記の目的を達成するた
めに本発明は、マスター局となる親局とスレーブ局とな
る複数の子局とを多重通信バスによって接続し、親局に
より各子局を指定してデータの送受信を行なう一方、親
局がスリープ状態になったときには、各子局がこれを検
出してスリープ状態に移行する低消費電力機能を備えた
移動体用多重通信装置において、前記親局は、この親局
がスリープ状態になる前に、スリープ準備開始指令を生
成して、これを各子局に伝送するスリープ準備指令部を
備え、各子局は、前記親局からスリープ準備開始指令が
出力されたとき、これを検出してスリープ準備信号を生
成するスリープ準備回路と、このスリープ準備回路から
スリープ準備信号が出力されていないときには、親局か
らの通信データに基づいて得られる受信データを選択し
てキャリア検出用信号を生成する一方、前記スリープ準
備回路からスリープ準備信号が出力されているときに
は、前記受信データをサンプリングした信号を選択して
キャリア検出用信号を生成するセレクタ回路と、このセ
レクタ回路から出力されるキャリア検出用信号に基づい
てキャリアオフ検出を行なうキャリアオフ検出回路と、
このキャリアオフ検出回路の検出結果に基づいてクロッ
ク信号の生成を制御して子局側を低消費電力状態にする
発振回路と、予め設定されている異常検出/スリープ検
出条件に基づいてスリープ準備回路の出力および前記キ
ャリアオフ検出回路の出力を判定し、この判定結果に基
づいて子局側の予め設定されている部分をフェールセー
フ状態にするフェールセーフ回路とを備えたことを特徴
とする。
In order to achieve the above object, the present invention provides a master station and a plurality of slave stations, which are slave stations, connected by a multiplex communication bus, and each child station is connected by the master station. While transmitting and receiving data by designating a station, when a master station is in a sleep state, each slave station detects this and shifts to a sleep state in a mobile multiplex communication device having a low power consumption function. The master station includes a sleep preparation command unit that generates a sleep preparation start command and transmits the sleep preparation start command to each slave station before the master station enters a sleep state. When a sleep preparation start command is output, the sleep preparation circuit detects the sleep preparation start command and generates a sleep preparation signal, and when the sleep preparation signal is not output from the sleep preparation circuit, the communication data from the master station is output. While selecting a received data obtained from the sleep preparation circuit to generate a carrier detection signal, and when a sleep preparation signal is output from the sleep preparation circuit, selecting a signal obtained by sampling the reception data and generating a carrier detection signal. A selector circuit for generating, a carrier off detection circuit for performing carrier off detection based on a carrier detection signal output from the selector circuit,
An oscillation circuit that controls generation of a clock signal based on the detection result of the carrier-off detection circuit to set the slave station in a low power consumption state, and a sleep preparation circuit based on a preset abnormality detection / sleep detection condition And a fail-safe circuit for judging the output of the carrier-off detection circuit and setting a preset portion on the slave station in a fail-safe state based on the judgment result.

【0034】[0034]

【作用】上記の構成において、親局のスリープ準備指令
部からスリープ準備開始指令が出力されていないときに
は、各子局によって多重通信バス上の通信データを取り
込んで得られる受信データをサンプリングして得られた
信号に基づいてキャリアセンスを行ない、また前記親局
からスリープ準備開始指令が出力されたときには、この
ときから前記親局からスリープ準備終了指令が出力され
までの間、前記多重通信バス上の通信データを取り込ん
で得られる受信データのキャリアに基づいて直接、キャ
リアセンスを行ない、これによって1つのキャリアオフ
検出回路によってスリープの検出と、異常状態の検出と
を行なう。
In the above configuration, when the sleep preparation start command is not output from the sleep preparation command section of the master station, the reception data obtained by taking in the communication data on the multiplex communication bus by each slave station is sampled. Carrier sense is performed based on the received signal, and when a sleep preparation start command is output from the master station, a sleep preparation end command is output from the master station to the sleep preparation start command from this time. Carrier sense is performed directly based on the carrier of the received data obtained by taking in the communication data, whereby one carrier-off detection circuit detects sleep and an abnormal state.

【0035】[0035]

【実施例】《装置全体の説明》図1は本発明に係る移動
体用多重通信装置の第1実施例を示すブロック図であ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS << Overall Apparatus >> FIG. 1 is a block diagram showing a first embodiment of a mobile multiplex communication apparatus according to the present invention.

【0036】この図に示す移動体用多重通信装置1は、
マスター局となる1つの親局2と、スレーブ局となる第
1子局3a〜第N子局3nと、これらを接続する多重通
信バス4とを備えており、親局2と第1子局3a〜第N
子局3nとの間でデータ通信を行なって第1子局3a〜
第N子局3nに接続されている各入力回路5a〜5nの
データを収集し、これをCPU7に供給するとともに、
このCPU7から出力される制御データを第1子局3a
〜第N子局3nに接続されている各負荷回路6a〜6n
に供給する。そして、一連の通信処理を終了した後、第
1子局3a〜第N子局3nから各入力回路5a〜5nか
らのデータが変化したことを示すウェイクアップ信号が
出力されるまでの間、親局2がスリープ準備開始指令を
出力した後、スリープ状態になるとともに、第1子局3
a〜第N子局3nがスリープ状態になってシステム全体
の省電力化を行なう。
The mobile multiplex communication apparatus 1 shown in FIG.
One master station 2 serving as a master station, first slave stations 3a to 3nth slave stations serving as slave stations, and a multiplex communication bus 4 for connecting these are provided. 3a to Nth
Data communication is performed with the slave station 3n to perform communication with the first slave station 3a to 3n.
The data of each of the input circuits 5a to 5n connected to the Nth slave station 3n is collected and supplied to the CPU 7,
The control data output from the CPU 7 is transmitted to the first slave station 3a.
To the load circuits 6a to 6n connected to the Nth slave station 3n
To supply. Then, after a series of communication processes is completed, the parent station 3a to the Nth station 3n output a wake-up signal indicating that the data from each of the input circuits 5a to 5n has changed, and the parent station 3a to the Nth station 3n output the parent station. After the station 2 outputs the sleep preparation start command, the station 2 enters the sleep state and the first slave station 3
a to the N-th slave station 3n enter the sleep state to save the power of the entire system.

【0037】親局2は、パラレルバス8によって移動体
の各部の動作を制御するCPU7に接続されるととも
に、多重通信バス4によって第1子局3a〜第N子局3
nに接続されており、CPU7からの指示に基づいて第
1子局3a〜第N子局3nのいずれかを選択してデータ
の収集や制御データの供給を行ない、CPU7からの指
令に基づいてスリープ準備開始指令を生成し、これを第
1子局3a〜第N子局3nに伝送した後、スリープ状態
になり、スリープ準備終了指令を生成し、これを第1子
局3a〜第N子局3nに伝送した後、スリープ状態から
抜け出し、第1子局3a〜第N子局3nからのウェイク
アップ信号によってスリープ状態から抜け出する。
The master station 2 is connected by a parallel bus 8 to a CPU 7 for controlling the operation of each part of the mobile unit, and is connected by a multiplex communication bus 4 to the first slave station 3a to the Nth slave station 3.
n, and selects any of the first to third slave stations 3a to 3n based on an instruction from the CPU 7 to collect data and supply control data. Based on an instruction from the CPU 7, After a sleep preparation start command is generated and transmitted to the first slave station 3a to the Nth slave station 3n, the apparatus enters a sleep state, and a sleep preparation end command is generated. After transmitting to the station 3n, the station exits from the sleep state and exits from the sleep state in response to a wake-up signal from the first to Nth slave stations 3a to 3n.

【0038】第1子局3a〜第N子局3nは、ドアスイ
ッチ等のスイッチによって構成される入力回路5a〜5
nやドアロックアクチュエータ等によって構成される負
荷回路6a〜6nに接続されるとともに、多重通信バス
4によって親局2に接続されており、多重通信バス4を
介して親局2と通信を行なって、各入力回路5a〜5n
からの入力ポートデータを親局2に伝送する一方、この
親局2から出力される通信データを取り込んで、これを
制御データとして各負荷回路6a〜6nに供給する。ま
た、親局2からのスリープ準備開始指令やスリープ準備
終了指令を取り込んで、スリープの準備を行ない、親局
2がスリープ状態になったとき、これを検出してスリー
プ状態になり、あるいは各入力回路5a〜5nからのデ
ータ変化を検出して親局2のスリープ状態を解除する。
The first to Nth slave stations 3a to 3n include input circuits 5a to 5 constituted by switches such as door switches.
n, a door lock actuator, etc., and connected to the master station 2 via the multiplex communication bus 4 and communicates with the master station 2 via the multiplex communication bus 4. , Each of the input circuits 5a to 5n
Is transmitted to the master station 2, while the communication data output from the master station 2 is fetched and supplied to the load circuits 6a to 6n as control data. Also, a sleep preparation start command and a sleep preparation end command are received from the master station 2 to prepare for sleep. When the master station 2 enters the sleep state, the sleep state is detected and the sleep state is detected. The sleep state of the master station 2 is released by detecting a data change from the circuits 5a to 5n.

【0039】《第1子局3a〜第N子局3nの詳細な説
明》次に、図2を参照しながら、上述した第1子局3a
の回路構成について説明する。
<< Detailed Description of First to Nth Substations 3a to 3n >> Next, the first substation 3a described above with reference to FIG.
Will be described.

【0040】この図に示す第1子局3aは、通信部10
と、スリープ/フェールセーフ部11と、受信部12
と、送信部13と、ウェイクアップ部14とを備えてお
り、多重通信バス4を介して親局2と通信を行ない、親
局2からスリープ準備開始指令が出力された時点からス
リープ準備終了指令が出力されまでの間、スリープ準備
状態となる。また、この動作と並行して、親局2により
自局が送信局と指定された場合には、対応する入力回路
5aから出力される入力データを取り込むとともに、こ
れを多重通信バス4を介して親局2に伝送し、また自局
が受信局と指定された場合には、多重通信バス4から通
信データを取り込むとともに、これをラッチしながら負
荷回路6aに供給し、この後多重通信バス4の状態が変
化しなくなったとき、スリープ準備信号の有無に応じた
条件でスリープ状態となる。また、対応する入力回路5
aからの入力ポートデータが変化した場合には、ウェイ
クアップ信号を生成するとともに、これを多重通信バス
4を介して親局2に伝送してこの親局2のスリープ状態
を解除させる。さらに、何らかの原因によって自局のク
ロック信号が無くなったり、多重通信バス4上の信号が
異常になった場合にはこれを検出し、スリープ準備信号
の有無に応じて負荷回路6aに対する制御データを無効
にし、または制御データの更新を停止して信号の異常に
起因する誤制御を防止する。
The first slave station 3a shown in FIG.
, Sleep / fail safe unit 11 and receiving unit 12
, A transmission unit 13 and a wake-up unit 14, communicate with the master station 2 via the multiplex communication bus 4, and issue a sleep preparation end command from a point in time when a sleep preparation start command is output from the master station 2. Until is output, a sleep preparation state is set. In parallel with this operation, when the own station is designated as the transmitting station by the master station 2, the input data output from the corresponding input circuit 5a is taken in, and the input data is transmitted via the multiplex communication bus 4. The data is transmitted to the master station 2 and when the own station is designated as the receiving station, the communication data is taken in from the multiplex communication bus 4 and supplied to the load circuit 6a while latching the data. When the state does not change, the apparatus enters the sleep state under conditions according to the presence or absence of the sleep preparation signal. Also, the corresponding input circuit 5
When the input port data from a changes, a wake-up signal is generated and transmitted to the master station 2 via the multiplex communication bus 4 to release the sleep state of the master station 2. Further, when the clock signal of the own station is lost or the signal on the multiplex communication bus 4 becomes abnormal for some reason, this is detected, and the control data for the load circuit 6a is invalidated according to the presence or absence of the sleep preparation signal. Or update of control data is stopped to prevent erroneous control due to signal abnormality.

【0041】通信部10は、送信部13から送信データ
が出力されたとき、これを取り込んで多重通信バス4上
に送出し、またこの多重通信バス4を介して通信データ
が供給されたとき、これを取り込んで受信データを生成
する多重通信バスI/F回路15と、この多重通信バス
I/F回路15から出力される受信データをデコードし
て、自局への命令であるか判断し、自局に対するデータ
受信命令であれば、受信開始指令を生成して受信部12
に供給し、また前記受信データが自局に対するデータ送
信命令であれば、送信開始指令を生成して送信部13に
供給するとともにウェイクアップメモリキャンセル信号
を生成してウェイクアップ部14に供給し、さらに前記
受信データがスリープ準備開始指令であれば、スリープ
準備開始信号を生成し、また前記受信データがスリーブ
準備終了信号であれば、スリープ準備終了信号を生成し
てスリープ/フェールセーフ部11に供給する命令デコ
ーダ回路16とを備えている。
When the transmission data is output from the transmission section 13, the communication section 10 takes in the transmission data and sends it out to the multiplex communication bus 4. When the communication data is supplied via the multiplex communication bus 4, A multiplex communication bus I / F circuit 15 for receiving the data and generating reception data, and decoding the reception data output from the multiplex communication bus I / F circuit 15 to determine whether the received command is a command to the own station. If the command is a data reception command for the own station, a reception start command is generated to
If the received data is a data transmission command to the own station, a transmission start command is generated and supplied to the transmission unit 13, and a wakeup memory cancel signal is generated and supplied to the wakeup unit 14, Further, if the received data is a sleep preparation start command, a sleep preparation start signal is generated, and if the received data is a sleeve preparation end signal, a sleep preparation end signal is generated and supplied to the sleep / fail safe unit 11. And an instruction decoder circuit 16.

【0042】スリープ/フェールセーフ部11は、通信
部10からスリープ準備開始信号が出力されてからスリ
ープ準備終了信号が出力されるまでの間、スリープ準備
信号を生成するスリープ準備回路17と、クロック信号
が入力される毎に、通信部10から出力される受信デー
タをサンプリングしてこれを動作監視信号として出力す
るD型フリップフロップ18と、スリープ準備回路17
からスリープ準備信号が出力されていないときには、D
型フリップフロップ18から出力される動作監視信号を
取り込んでこれをキャリア検出用信号として出力し、ま
たスリープ準備回路17からスリープ準備信号が出力さ
れているときには、通信部10から出力される受信デー
タを取り込んでこれをキャリア検出用信号として出力す
るセレクタ回路19と、このセレクタ回路19から出力
されるキャリア検出用信号を取り込むとともに、このキ
ャリア検出用信号が予め設定されている一定時間、変化
していないとき、これを検出して親局2がスリープ状態
であると、または送信ノードなどに異常が発生している
と判定してキャリアオフ信号を生成するキャリアオフ検
出回路20とを備えている。
The sleep / fail safe unit 11 includes a sleep preparation circuit 17 for generating a sleep preparation signal from when the sleep preparation start signal is output from the communication unit 10 to when the sleep preparation end signal is output, and a clock signal. Every time is input, a D-type flip-flop 18 that samples received data output from the communication unit 10 and outputs this as an operation monitoring signal;
When the sleep preparation signal is not output from the
An operation monitoring signal output from the flip-flop 18 is fetched and output as a carrier detection signal. When the sleep preparation signal is output from the sleep preparation circuit 17, the reception data output from the communication unit 10 is output. A selector circuit 19 for taking in and outputting this as a carrier detection signal, a carrier detection signal outputted from this selector circuit 19 being taken in, and the carrier detection signal has not been changed for a preset fixed time. At this time, a carrier-off detection circuit 20 is provided that detects this and determines that the master station 2 is in the sleep state or determines that an abnormality has occurred in the transmission node or the like and generates a carrier-off signal.

【0043】さらに、スリープ/フェールセーフ部11
は、キャリアオフ検出回路20からキャリアオフ信号が
出力されているとき、クロック信号の発生を停止してD
型フリップフロップ18のサンプリング動作を停止させ
るとともに、第1子局3a全体を低消費電力状態にする
発振回路21と、キャリアオフ検出回路20からキャリ
アオフ信号が出力されているとき、フェールセーフ信号
を生成する単独モードおよびスリープ準備回路17から
スリープ準備信号が出力されていない状態で、キャリア
オフ検出回路20からキャリアオフ信号が出力されてい
るとき、フェールセーフ信号を生成する排他的論理和モ
ードとを持ち、設定内容に基づいて前記単独モードまた
は排他的論理和モードのいずれか一方が選択されるフェ
ールセーフ回路22とを備えている。
Further, the sleep / fail safe section 11
Stops the generation of the clock signal when the carrier-off signal is output from the carrier-off detection circuit 20, and
An oscillation circuit 21 that stops the sampling operation of the flip-flop 18 and brings the entire first slave station 3a into a low power consumption state, and outputs a fail-safe signal when a carrier-off signal is output from the carrier-off detection circuit 20. An exclusive OR mode for generating a fail-safe signal when the carrier-off signal is output from the carrier-off detection circuit 20 in a state in which the sleep preparation signal is not output from the sleep preparation circuit 17 when the single mode is generated. And a fail-safe circuit 22 for selecting one of the single mode and the exclusive OR mode based on the setting contents.

【0044】このスリープ/フェールセーフ部11は、
以下のように動作する。すなわち、フェールセーフ回路
22が単独モードに設定されている場合、通信部10か
らスリープ準備開始信号が出力されるまでは、通信部1
0から出力される受信データを取り込むとともに、発振
回路21により得られたクロック信号に基づいてD型フ
リップフロップ18を動作させて前記受信データをサン
プリングしてキャリア検出用信号を生成しながら、この
キャリア検出用信号が変化しているかどうかをチェック
する。このキャリア検出用信号が一定時間変化しない場
合には、キャリアオフ検出回路20によりこれを検出し
てキャリアオフ信号を生成してウェイクアップ部14に
供給するとともに、発振回路21の動作を停止して第1
子局3a全体を低消費電力状態にし、さらにフェールセ
ーフ回路22によりフェールセーフ信号を生成して受信
部12に供給する。
The sleep / fail safe unit 11
It works as follows. That is, when the fail-safe circuit 22 is set to the single mode, the communication unit 1 does not output a sleep preparation start signal from the communication unit 10.
0, and the D-type flip-flop 18 is operated based on the clock signal obtained by the oscillation circuit 21 to sample the received data and generate a carrier detection signal. Check whether the detection signal has changed. If the carrier detection signal does not change for a certain period of time, the carrier off detection circuit 20 detects this signal, generates a carrier off signal, supplies the signal to the wake-up unit 14, and stops the operation of the oscillation circuit 21. First
The entire slave station 3 a is set to a low power consumption state, and a fail-safe signal is generated by the fail-safe circuit 22 and supplied to the receiving unit 12.

【0045】また、スリープ/フェールセーフ部11
は、フェールセーフ回路22が単独モードに設定されて
いる場合で、かつ通信部10からスリープ準備開始信号
が出力された場合には、通信部10からスリープ準備終
了信号が出力されるまでの間、通信部10から出力され
る受信データをキャリア検出用信号として取り込み、こ
のキャリア検出用信号が変化しているかどうかをチェッ
クする。このキャリア検出用信号が一定時間変化しない
とき、キャリアオフ検出回路20によりこれを検出して
キャリアオフ信号を生成してウェイクアップ部14に供
給するとともに、発振回路21の動作を停止して第1子
局3a全体を低消費電力状態にし、さらにフェールセー
フ回路22によりフェールセーフ信号を生成して受信部
12に供給する。
The sleep / fail safe unit 11
When the fail-safe circuit 22 is set to the single mode and the communication unit 10 outputs a sleep preparation start signal, the communication unit 10 outputs a sleep preparation end signal until the sleep preparation end signal is output. The received data output from the communication unit 10 is captured as a carrier detection signal, and it is checked whether the carrier detection signal has changed. When the carrier detection signal does not change for a certain period of time, the carrier off detection circuit 20 detects this signal, generates a carrier off signal and supplies it to the wake-up unit 14, and stops the operation of the oscillator circuit 21 to stop the first operation. The entire slave station 3 a is set to a low power consumption state, and a fail-safe signal is generated by the fail-safe circuit 22 and supplied to the receiving unit 12.

【0046】さらに、フェールセーフ回路22が排他的
論理和モードに設定されている場合、通信部10からス
リープ準備開始信号が出力されるまでは、通信部10か
ら出力される受信データを取り込むとともに、発振回路
21によって得られたクロック信号に基づいてD型フリ
ップフロップ18を動作させて前記受信データをサンプ
リングしてキャリア検出用信号を生成しながら、このキ
ャリア検出用信号が変化しているかどうかをチェックす
る。このキャリア検出用信号が一定時間変化しないと
き、キャリアオフ検出回路20によりこれを検出してキ
ャリアオフ信号を生成し、これをウェイクアップ部14
に供給するとともに、発振回路21の動作を停止して第
1子局3a全体を低消費電力状態にし、さらにフェール
セーフ回路22によりフェールセーフ信号を生成して受
信部12に供給する。
Further, when the fail-safe circuit 22 is set to the exclusive OR mode, the reception data output from the communication unit 10 is fetched until the sleep preparation start signal is output from the communication unit 10, and While the D-type flip-flop 18 is operated based on the clock signal obtained by the oscillation circuit 21 to sample the received data and generate a carrier detection signal, it is checked whether the carrier detection signal has changed. I do. When the carrier detection signal does not change for a certain period of time, it is detected by the carrier-off detection circuit 20 to generate a carrier-off signal, and the wake-up unit 14
And the operation of the oscillation circuit 21 is stopped to bring the entire first slave station 3a into a low power consumption state. Further, a fail-safe signal is generated by the fail-safe circuit 22 and supplied to the receiving unit 12.

【0047】さらに、フェールセーフ回路22が排他的
論和モードに設定されている場合で、かつ通信部10か
らスリープ準備開始信号が出力されているときには、通
信部10からスリープ準備終了信号が出力されるまでの
間、通信部10から出力される受信データをキャリア検
出用信号として取り込み、このキャリア検出用信号が変
化しているかどうかをチェックする。このキャリア検出
用信号が一定時間変化しないとき、キャリアオフ検出回
路20によりこれを検出してキャリアオフ信号を生成
し、これをウェイクアップ部14に供給するとともに、
発振回路21の動作を停止して第1子局3a全体を低消
費電力状態にする。なお、この場合、フェールセーフ回
路22によってフェールセーフ信号は生成されない。
Further, when the fail-safe circuit 22 is set to the exclusive OR mode and the communication unit 10 outputs a sleep preparation start signal, the communication unit 10 outputs a sleep preparation end signal. Until the received data is received from the communication unit 10 as a carrier detection signal, it is checked whether the carrier detection signal has changed. When the carrier detection signal does not change for a certain period of time, the carrier detection signal is detected by the carrier off detection circuit 20 to generate a carrier off signal, which is supplied to the wake-up unit 14,
The operation of the oscillation circuit 21 is stopped, and the entire first slave station 3a is set in the low power consumption state. In this case, no fail-safe signal is generated by the fail-safe circuit 22.

【0048】受信部12は、通信部10から受信開始指
令が出力されたとき、通信部10から出力される受信デ
ータを取り込む受信回路23と、単独モードと論理積モ
ードとの2つのモードを持ち、単独モードが設定されて
いるときには、受信回路23から出力される受信データ
を取り込んでラッチし、スリープ/フェールセーフ部1
1からフェールセーフ信号が出力されたとき、ラッチし
ているデータをリセットしてフェールセーフ状態にし、
論理積モードが設定されているときには、受信回路23
から出力される受信データを取り込んでラッチし、スリ
ープ/フェールセーフ部11からスリープ準備信号とフ
ェールセーフ信号とが共に出力されたとき、ラッチして
いるデータをリセットしてフェールセーフ状態にする出
力ポート回路24とを備えている。
The receiving section 12 has a receiving circuit 23 for receiving the received data output from the communication section 10 when a reception start command is output from the communication section 10, and two modes of a single mode and an AND mode. When the single mode is set, the received data output from the receiving circuit 23 is fetched and latched, and the sleep / fail safe unit 1 is set.
When a fail-safe signal is output from 1, the latched data is reset to a fail-safe state,
When the logical product mode is set, the receiving circuit 23
An output port that fetches and latches the received data output from the device and, when the sleep / fail safe unit 11 outputs both the sleep preparation signal and the fail safe signal, resets the latched data to enter the fail safe state. And a circuit 24.

【0049】そして、この受信部12は出力ポート回路
24が単独モードに設定されている場合、通信部10か
ら受信開始指令が出力されたとき、通信部10から出力
される受信データを取り込み、これをラッチするととも
に、ラッチしている受信データを制御データとして対応
する負荷回路6aに供給し、スリープ/フェールセーフ
部11からフェールセーフ信号が出力されたとき、ラッ
チしている受信データをリセットし、フェールセーフに
して自局のクロック信号が停止や、送信ノードの異常な
どに起因する誤制御を防止する。
When the output port circuit 24 is set to the single mode, when the reception start command is output from the communication unit 10, the reception unit 12 receives the reception data output from the communication unit 10. And supplies the latched received data as control data to the corresponding load circuit 6a, and resets the latched received data when a fail-safe signal is output from the sleep / fail-safe unit 11, It is made fail-safe to prevent erroneous control due to a stop of the clock signal of its own station or an abnormality in the transmission node.

【0050】また、受信部12は出力ポート回路24が
論理積モードに設定されている場合、通信部10から受
信開始指令が出力されたとき、通信部10から出力され
る受信データを取り込み、これをラッチするとともに、
ラッチしている受信データを制御データとして対応する
負荷回路6aに供給し、スリープ/フェールセーフ部1
1からスリープ準備信号が出力されている状態で、スリ
ープ/フェールセーフ部11からフェールセーフ信号が
出力されたとき、ラッチしている受信データをリセット
し、あるいはフェールセーフにして自局のクロック信号
が停止や、送信ノードの異常などに起因する誤制御を防
止する。
When the output port circuit 24 is set to the logical product mode, the receiving unit 12 receives the received data output from the communication unit 10 when a reception start command is output from the communication unit 10, and receives the received data. While latching
The latched reception data is supplied as control data to the corresponding load circuit 6a, and the sleep / fail safe unit 1
When the sleep / fail-safe unit 11 outputs a fail-safe signal while the sleep preparation signal is being output from 1, the latched received data is reset or made fail-safe so that the clock signal of the own station is output. This prevents erroneous control due to a stop or an error in the transmission node.

【0051】送信部13は、対応する入力回路5aから
出力される入力ポートデータを取り込んでウェイクアッ
プ部14に供給する入力ポート回路25と、通信部10
から送信開始指令が出力されたとき、入力ポート回路2
5から出力される入力ポートデータを取り込んでこれを
送信データとして多重通信バスI/F回路15に出力す
る送信回路26とを備えている。
The transmission unit 13 receives an input port data output from the corresponding input circuit 5a and supplies the input port data to the wake-up unit 14;
When the transmission start command is output from the input port circuit 2
And a transmission circuit 26 for receiving the input port data output from the interface 5 and outputting the input port data to the multiplex communication bus I / F circuit 15 as transmission data.

【0052】また、ウェイクアップ部14は、送信部1
3の入力ポート回路25から出力される入力ポートデー
タが変化したかどうかをチェックし、前記入力ポートデ
ータが変化したとき、ポート変化信号を生成するポート
状態検知回路27と、このポート状態検知回路27から
出力されるポート変化信号を取り込んで記憶するととも
にウェイクアップ回路29に出力し、通信部10からウ
ェイクアップメモリキャンセル信号が出力されたとき、
記憶しているポート変化信号を消去するウェイクアップ
メモリ回路28と、このウェイクアップメモリ回路28
からポート変化信号が出力されるとともに、スリープ/
フェールセーフ部11のキャリアオフ検出回路20から
キャリアオフ信号が出力されているとき、ウェイクアッ
プ信号を生成するウェイクアップ回路29とを備えてい
る。
The wake-up unit 14 is configured to transmit
3 to check whether the input port data output from the input port circuit 25 has changed, and when the input port data changes, a port state detection circuit 27 for generating a port change signal; When a wake-up memory cancel signal is output from the communication unit 10 when the port change signal output from the
A wake-up memory circuit for erasing the stored port change signal;
Output a port change signal from the
A wake-up circuit 29 that generates a wake-up signal when a carrier-off signal is output from the carrier-off detection circuit 20 of the fail-safe unit 11 is provided.

【0053】以上、第1子局3aについて説明したが、
他の第2子局3b〜第N子局3nも、この第1子局3a
と同様に構成されている。
The first slave station 3a has been described above.
Other second child stations 3b to Nth child station 3n are also connected to the first child station 3a.
It is configured similarly to.

【0054】《装置全体の動作》次に、図1および図2
に示すブロック図、図3に示すタイミング図を参照しな
がら、この実施例の動作を説明する。
<< Operation of the Entire Apparatus >> Next, FIGS. 1 and 2
The operation of this embodiment will be described with reference to the block diagram shown in FIG.

【0055】まず、CPU7の制御下にある親局2は第
1子局3aに対するデータ送信命令を生成して、これを
多重通信バス4を介して第1子局3aに供給する。
First, the master station 2 under the control of the CPU 7 generates a data transmission command for the first slave station 3a and supplies it to the first slave station 3a via the multiplex communication bus 4.

【0056】これにより、第1子局3aは自局からのデ
ータ送信が指定されたことを検知して入力ポート回路2
5が接続されている入力回路5aの状態を含む入力ポー
トデータを収集して通信データを生成し、これを多重通
信バス4を介して親局2に伝送する。
As a result, the first slave station 3a detects that data transmission from itself has been designated, and
Input port data including the state of the input circuit 5 a to which the input terminal 5 is connected is collected to generate communication data, and this is transmitted to the master station 2 via the multiplex communication bus 4.

【0057】そして、親局2は多重通信バス4を介して
前記通信データを受信して受信データを生成し、これを
CPU7に供給する。
The master station 2 receives the communication data via the multiplex communication bus 4 to generate received data, and supplies the generated data to the CPU 7.

【0058】次いで、このCPU7により前記受信デー
タが処理されて、第1子局3aの入力ポート回路25が
接続されている入力回路5aの状態が判定され、この判
定結果に基づいて制御データが生成され、これが出力さ
れれば、親局2はこの制御データを取り込むとともに、
前記制御データの出力対象となっている子局、例えば第
2子局3bに対するデータ受信指令を生成し、これを多
重通信バス4を介して第2子局3bに供給した後、前記
制御データに基づいて通信データを生成し、これを多重
通信バス4を介して第2子局3bに供給する。
Next, the CPU 7 processes the received data to determine the state of the input circuit 5a to which the input port circuit 25 of the first slave station 3a is connected, and generates control data based on the determination result. When this is output, the master station 2 takes in the control data and
After generating a data reception command for the slave station to which the control data is to be output, for example, the second slave station 3b, and supplying this to the second slave station 3b via the multiplex communication bus 4, the control data Based on the communication data, the communication data is generated and supplied to the second slave station 3b via the multiplex communication bus 4.

【0059】これにより、第2子局3bは自局が通信デ
ータの受信局として指定されたことを検知して、多重通
信バス4上から前記通信データを取り込んで受信データ
を生成し、これをラッチするとともに、出力ポート回路
24が接続されている負荷回路6aに供給してこれを制
御する。
Accordingly, the second slave station 3b detects that the own station has been designated as the communication data receiving station, takes in the communication data from the multiplex communication bus 4, generates reception data, and generates the reception data. At the same time as latching, it is supplied to the load circuit 6a to which the output port circuit 24 is connected to control this.

【0060】以下、上述したように、親局2は図3に示
す手順で第1子局3a〜第N子局3nに対して多重通信
バス4を通して、これら第1子局3a〜第N子局3nの
入力ポートデータを受信するとともに、これらの各入力
ポートデータをCPU7に供給して制御データを生成さ
せた後、この制御データを取り込んで第1子局3a〜第
N子局3nに送信することを順次、繰り返してシステム
全体の制御を行なう。
As described above, the master station 2 transmits the first slave station 3a to the Nth slave station to the first slave station 3a to the Nth slave station 3n through the multiplex communication bus 4 in the procedure shown in FIG. After receiving the input port data of the station 3n and supplying these input port data to the CPU 7 to generate control data, the control data is taken in and transmitted to the first slave station 3a to the Nth slave station 3n. Are sequentially repeated to control the entire system.

【0061】この状態で、親局2からスリープ準備開始
指令が出力される前に、第1子局3a〜第N子局3nの
いれずかにおいて、発振回路21が故障したり、親局2
の通信停止が発生すると、第1子局3a〜第N子局3n
毎に、発振回路21により得られたクロック信号に基づ
いて通信データをサンプリングしてキャリアセンスして
いるので、子局のスリープ/フェールセーフ部11によ
りこれが検出されて受信部12の出力ポート回路24が
クリアされてフェールセーフ動作され、以後電源が再投
入されない限り、発振回路21のクロック信号生成動作
が禁止される。
In this state, before the sleep preparation start command is output from the master station 2, in any one of the first slave station 3 a to the N-th slave station 3 n, the oscillation circuit 21 breaks down,
When the communication stoppage occurs, the first slave station 3a to the Nth slave station 3n
Each time, the communication data is sampled and carrier sensed based on the clock signal obtained by the oscillation circuit 21, so that this is detected by the sleep / failsafe unit 11 of the slave station, and the output port circuit 24 of the reception unit 12 is detected. Is cleared to perform a fail-safe operation, and the clock signal generation operation of the oscillation circuit 21 is prohibited unless the power is turned on again thereafter.

【0062】また、各入力ポートデータの収集や各出力
ポートデータの送信などの一連の動作が終了し、キー・
オフの状態で動作の必要がないなどのスリープ条件が成
立したとき、CPU7からの指示に基づいて親局2がス
リープ準備開始指令を生成してこれを第1子局3a〜第
N子局3nに送信した後、スリープ状態(原動機が停止
している状態)になって通信動作を停止する。
Further, a series of operations such as collection of each input port data and transmission of each output port data are completed, and
When a sleep condition such as no operation is required in the off state is satisfied, the master station 2 generates a sleep preparation start command based on an instruction from the CPU 7 and transmits the sleep preparation start command to the first slave station 3a to the Nth slave station 3n. After that, a sleep state (a state in which the prime mover is stopped) is entered to stop the communication operation.

【0063】これにより、第1子局3a〜第N子局3n
は多重通信バス4を介して前記スリープ準備開始指令を
受信してスリープ準備信号を生成し、多重通信バス4を
介して供給される通信データに基づいて得られる受信デ
ータを直接、キャリアセンスする。
Thus, the first slave station 3a to the Nth slave station 3n
Receives the sleep preparation start command via the multiplex communication bus 4 to generate a sleep preparation signal, and directly carries out carrier sense on received data obtained based on communication data supplied via the multiplex communication bus 4.

【0064】そして、親局2がスリープ状態になると、
第1子局3a〜第N子局3nは多重通信バス4の状態に
基づいて親局2がスリープ状態になっていることを検出
してスリープ状態になり、これによりシステム全体の消
費電力を低減させてバッテリー上がりを防止する。
Then, when the master station 2 enters the sleep state,
The first slave station 3a to the N-th slave station 3n detect that the master station 2 is in the sleep state based on the state of the multiplex communication bus 4, and enter the sleep state, thereby reducing the power consumption of the entire system. To prevent the battery from draining.

【0065】このとき、第1子局3a〜第N子局3nの
いずれかに設けられているウェイクアップ回路29から
ウェイクアップ信号が出力され、これに対応して親局2
がスリープ状態から復帰する。また、第1子局3a〜第
N子局3nのウェイクアップメモリ回路29からウェイ
クアップ信号が出力されていないときには、これら第1
子局3a〜第N子局3nが前記通信データに基づいて得
られる受信データを直接、キャリアセンスしながらスリ
ープ状態を維持し、親局2が送信再開したとき、これを
検出して発振回路21の発振動作を再開させる。
At this time, a wake-up signal is output from the wake-up circuit 29 provided in any of the first slave station 3a to the N-th slave station 3n.
Recovers from the sleep state. When the wake-up signal is not output from the wake-up memory circuit 29 of the first slave station 3a to the N-th slave station 3n, the first
The slave stations 3a to 3n maintain the sleep state while directly performing carrier sense on the received data obtained based on the communication data. When the master station 2 resumes transmission, it detects this and oscillates. Restarts the oscillation operation.

【0066】《スリープ/フェールセーフ部11の詳細
な動作》次に、スリープ/フェールセーフ部11のスリ
ープ検出動作と、フェールセーフ検出動作とについてさ
らに詳細に説明する。
<< Detailed Operation of Sleep / Fail Safe Unit 11 >> Next, the sleep detecting operation and the fail safe detecting operation of the sleep / fail safe unit 11 will be described in further detail.

【0067】<第1動作>この場合、第1子局3a〜第
N子局3nのフェールセーフ回路22を単独モードにす
るとともに、出力ポート回路24を単独モードにてフェ
ールセーフ信号によってリセットまで行なうように設定
している場合には、キャリアオフ信号によってフェール
セーフ回路22がフェールセーフ信号を出力した瞬間、
回路全体がスリープ状態になって低消費電力状態になる
とともに、出力ポート回路24がリセットされるので、
低消費電力状態と、異常状態とが同じ条件になるもも
の、1つのキャリア検出回路20により回路を構成する
ことができる。
<First Operation> In this case, the fail-safe circuits 22 of the first slave station 3a to the N-th slave station 3n are set to the single mode, and the output port circuit 24 is reset in the single mode by a fail-safe signal. In such a case, when the fail-safe circuit 22 outputs the fail-safe signal by the carrier-off signal,
Since the whole circuit goes into a sleep state to be in a low power consumption state and the output port circuit 24 is reset,
Although the low power consumption state and the abnormal state have the same condition, the circuit can be constituted by one carrier detection circuit 20.

【0068】<第2動作>また、第1子局3a〜第N子
局3nのフェールセーフ回路22を排他的論理和モード
にするとともに、出力ポート回路24を単独モードにし
てフェールセーフ信号によってリセットまで行なうよう
に設定している場合には、正常なスリープ手順でスリー
プしたとき、出力ポート回路24の内容を保持させ、異
常な手順でキャリアオフとなったとき、出力ポート回路
24をクリアしてフェールセーフ動作させることがで
き、これにより低消費電力状態と、異常状態とを別々に
制御することができる。
<Second Operation> In addition, the fail-safe circuits 22 of the first to third slave stations 3a to 3n are set to the exclusive OR mode, the output port circuit 24 is set to the single mode, and reset by a fail-safe signal. If the setting is made so that the operation is performed until the sleep, the contents of the output port circuit 24 are retained when sleeping in a normal sleep procedure, and the output port circuit 24 is cleared when the carrier is turned off in an abnormal procedure. The fail-safe operation can be performed, whereby the low power consumption state and the abnormal state can be controlled separately.

【0069】<第3動作>また、第1子局3a〜第N子
局3nのフェールセーフ回路22を排他的論理和モード
にするとともに、出力ポート回路24を論理積モードに
してフェールセーフ信号によってリセットまで行なうよ
うに設定している場合には、正常な手順でスリープした
ときでも、出力ポート回路24の内容をクリアさせ、さ
らに異常な状態になった瞬間、出力ポート回路24をク
リアしてフェールセーフ動作させることができる。
<Third Operation> Further, the fail-safe circuit 22 of each of the first to third slave stations 3a to 3n is set to the exclusive OR mode, the output port circuit 24 is set to the logical product mode, and a fail-safe signal is output. If the setting is made to perform until the reset, the contents of the output port circuit 24 are cleared even when sleeping in the normal procedure, and the output port circuit 24 is cleared and failed at the moment of an abnormal state. Safe operation can be performed.

【0070】そして、1つの多重通信装置1で、第1子
局3a〜第N子局3nの各出力ポート回路24毎に、第
2動作、第3動作を使い分けることにより、各部分を最
適に制御することができる。
Then, in one multiplex communication apparatus 1, the second operation and the third operation are selectively used for each of the output port circuits 24 of the first slave station 3a to the Nth slave station 3n, so that each part can be optimized. Can be controlled.

【0071】例えば、第2動作はスリープ時に出力ポー
ト回路24の内容を保持し、異常時にのみ出力ポート回
路24の内容をクリアする機能を持った出力ポート回路
24にすることができることから、ランプなどのように
スリープ時でも、オン状態にさせておきたい負荷を駆動
するときに使用される。
For example, in the second operation, the output port circuit 24 having the function of holding the contents of the output port circuit 24 during sleep and having the function of clearing the contents of the output port circuit 24 only at the time of abnormality can be used. It is used to drive a load that is desired to be turned on even during sleep.

【0072】また、第3動作は親局2におけるソフトウ
ェアのバグなどにより、ある子局の出力ポート回路24
をオンさせたまま、正常な手順でスリープ状態にして
も、子局側でフェールセーフ状態ではないが、クリアす
る機能を持った出力ポート回路24にすることができる
ことから、パワーウィンドウモータやパワーシフトモー
タなどのフェールセーフが重視される負荷を駆動すると
きに使用される。
The third operation is the output port circuit 24 of a certain slave station due to a software bug in the master station 2 or the like.
Even if the sleep state is maintained in a normal procedure with the power on, the slave station is not in the fail-safe state, but the output port circuit 24 having the function of clearing can be used. It is used when driving a load such as a motor where fail-safe is important.

【0073】このようにこの実施例においては、親局2
からスリープ準備開始指令が出力されていないときに
は、第1子局3a〜第N子局3nによって多重通信バス
4上の通信データを取り込んで得られる受信データをサ
ンプリングして得られた動作監視信号に基づいてキャリ
アセンスを行ない、また親局2からスリープ準備開始指
令が出力されたときには、このときから親局2からスリ
ープ準備終了指令が出力されまでの間、多重通信バス4
上の通信データを取り込んで得られる受信データのキャ
リアに基づいて直接、キャリアセンスを行なうようにし
たので、次に述べる効果を得ることができる。
As described above, in this embodiment, the master station 2
When the sleep preparation start command is not output from the first slave station 3a to the Nth slave station 3n, the operation monitoring signal obtained by sampling the reception data obtained by capturing the communication data on the multiplex communication bus 4 by the first slave station 3a to the Nth slave station 3n is output. When the sleep preparation start command is output from the master station 2 and the sleep preparation end command is output from the master station 2 from this time, the multiplex communication bus 4 is used.
Since the carrier sense is performed directly based on the carrier of the received data obtained by capturing the above communication data, the following effects can be obtained.

【0074】まず、1つのキャリア検出回路20によっ
て発振回路21の停止監視と、クロック信号の停止や再
起動とを行ない、これにより低消費電力状態を制御する
ことができるとともに、ランプ照明などの出力をオン状
態にしたままスリープ状態にし、フェールセーフ時にオ
フするように負荷を制御し、あるいはスリープ時にクリ
アするように負荷を制御することができる。
First, the stop monitoring of the oscillation circuit 21 and the stop and restart of the clock signal are performed by one carrier detection circuit 20, whereby the low power consumption state can be controlled and the output of the lamp lighting and the like can be controlled. The load can be controlled so as to be turned off in a fail-safe state while the device is in the on-state, and to be cleared in the sleep state.

【0075】また、スリープ状態による通信停止か、異
常検出による通信停止かを明確に切り分けることがで
き、これによりスリープと、フェールセーフとで異なる
動作を行なわせることができる。
Further, it is possible to clearly determine whether the communication is stopped due to the sleep state or the communication is stopped due to the detection of an abnormality, whereby different operations can be performed between the sleep mode and the fail-safe mode.

【0076】さらに、従来の多重通信装置では、一度、
フェールセーフした子局でも、異常状態の内容によって
は、フェールセーフが解除されてしまうことがあるが、
この実施例では、一度、フェールセーフ状態になれば、
電源が再投入されるまで、フェールセーフが解除されな
いようにすることができる。
Further, in the conventional multiplex communication device, once,
Even in the fail-safe slave station, fail-safe may be canceled depending on the content of the abnormal state.
In this embodiment, once the fail safe state is established,
Until the power is turned on again, the fail safe can be prevented from being released.

【0077】図4は本発明に係る移動体用多重通信装置
の第2実施例で使用される第1子局の一例を示すブロッ
ク図である。
FIG. 4 is a block diagram showing an example of the first slave station used in the second embodiment of the mobile multiplex communication apparatus according to the present invention.

【0078】この図に示す第1子局3abが図2に示す
子局と異なる点は、キャリアオフ検出回路20からキャ
リアオフ信号が出力されたとき、発振を停止する発振回
路21に代えて、スリープ準備回路17からスリープ準
備信号が出力されている状態で、キャリアオフ検出回路
20からキャリアオフ信号が出力されたとき、発振を停
止する発振回路35を設け、これにより一度、フェール
セーフになっても、発振回路35が発振を停止しないよ
うにし、異常状態が解除されたとき、フェールセーフ状
態から復帰させるようにしたことである。
The difference between the first slave station 3ab shown in this figure and the slave station shown in FIG. 2 is that, when a carrier-off signal is output from the carrier-off detection circuit 20, the oscillation circuit 21 for stopping oscillation is replaced with an oscillation circuit 21. In the state where the sleep preparation signal is being output from the sleep preparation circuit 17, when the carrier off signal is output from the carrier off detection circuit 20, an oscillation circuit 35 for stopping the oscillation is provided. In addition, the oscillation circuit 35 does not stop the oscillation, and when the abnormal state is released, the oscillation circuit 35 returns from the fail-safe state.

【0079】このように構成することにより、何らかの
異常により一度、フェールセーフ状態になっても、発振
回路35が発振状態を維持するので、異常状態が解除さ
れたとき、第1子局3abをフェールセーフ状態から復
帰させることができる。
With this configuration, the oscillation circuit 35 maintains the oscillating state even if the fail-safe state is once entered due to some abnormality, so that when the abnormal state is released, the first slave station 3ab fails. It is possible to return from the safe state.

【0080】図5は本発明に係る移動体用多重通信装置
の第3実施例で使用される第1子局の一例を示すブロッ
ク図である。
FIG. 5 is a block diagram showing an example of a first slave station used in the third embodiment of the mobile multiplex communication apparatus according to the present invention.

【0081】この図に示す第1子局3acが図2に示す
子局と異なる点は、スリープ準備回路17からスリープ
準備信号が出力されていないときには、D型フリップフ
ロップ18から出力される動作監視信号を取り込んでキ
ャリア検出用信号として出力し、またスリープ準備回路
17からスリープ準備信号が出力されているときには、
通信部10から出力される受信データを取り込んでキャ
リア検出用信号として出力するセレクタ回路19に代え
て、スリープ準備回路17からスリープ準備信号が出力
されているときやフェールセーフ回路22からフェール
セーフ信号が出力されているとき、通信部10から出力
される受信データを取り込んでこれをキャリア検出用信
号として出力し、前記スリープ準備信号と、前記フェー
ルセーフ信号とが共に出力されていないとき、D型フリ
ップフロップ18から出力される動作監視信号を取り込
んで、これをキャリア検出用信号として出力するセレク
タ回路36を設け、フェールセーフ時にも、発振回路2
1の動作を停止させて、さらに消費電力を押さえるよう
にしたことである。
The difference between the first slave station 3ac shown in this figure and the slave station shown in FIG. 2 is that when the sleep preparation signal is not output from the sleep preparation circuit 17, the operation monitoring output from the D-type flip-flop 18 is performed. When a sleep preparation signal is output from the sleep preparation circuit 17, the signal is output as a carrier detection signal.
Instead of the selector circuit 19 which takes in the received data output from the communication unit 10 and outputs it as a carrier detection signal, when the sleep preparation signal is output from the sleep preparation circuit 17 or when the fail safe signal is output from the fail safe circuit 22 When it is output, it takes in the received data output from the communication unit 10 and outputs it as a carrier detection signal. When neither the sleep preparation signal nor the fail-safe signal is output, A selector circuit 36 for taking in the operation monitoring signal output from the amplifier 18 and outputting it as a carrier detection signal is provided.
1 is stopped to further reduce the power consumption.

【0082】このように構成することにより、何らかの
異常により一度、フェールセーフ状態になっても、発振
回路21が発振状態を維持するので、異常状態が解除さ
れたとき、第1子局3acをフェールセーフ状態から復
帰させることができるとともに、フェールセーフ時に
も、発振回路21の動作を停止させて、さらに消費電力
を押さえることができる。
With this configuration, the oscillation circuit 21 maintains the oscillating state even if the fail-safe state is once entered due to some abnormality, so that when the abnormal state is released, the first slave station 3ac fails. It is possible to return from the safe state, and at the time of fail-safe, the operation of the oscillation circuit 21 is stopped to further reduce power consumption.

【0083】また、上述した実施例においては、第1〜
第3実施例においては、発振回路21、35を動作させ
てD型フリップフロップ18にサンプリング動作を行な
わせて受信データから動作監視信号を生成するようにし
ているが、このような動作監視信号の他に、発振回路2
1からのクロック信号が無くなったとき、変化しなくな
る信号であれば、この信号をセレクタ回路19、36に
供給するようにしても良い。
Also, in the above-described embodiment, the first through
In the third embodiment, the oscillation circuits 21 and 35 are operated to cause the D-type flip-flop 18 to perform a sampling operation to generate an operation monitoring signal from received data. Oscillation circuit 2
This signal may be supplied to the selector circuits 19 and 36 as long as the signal does not change when the clock signal from 1 disappears.

【0084】つまり、通信部10からの受信データを一
度でも、クロック信号により動作する順序回路などを通
過した信号、例えば通信部10の命令デコーダ回路16
から出力されるウェイクアップメモリキャンセル信号な
どを動作監視信号の代わりに使用するようにしても良
い。
That is, even if the data received from the communication unit 10 has passed through a sequential circuit or the like operated by a clock signal even once, for example, the instruction decoder circuit 16 of the communication unit 10
May be used in place of the operation monitoring signal.

【0085】[0085]

【発明の効果】以上説明したように本発明によれば、1
つのキャリアオフ検出回路により通信が停止してスリー
プ状態にあるのか、異常発生によってフェールセーフ状
態にあるのかを明確に区分することができ、これによっ
て送信ノードの異常時や発振回路の異常時の対処処理
と、親局のスリープ時の処理とを分けてランプ照明など
の負荷をオン状態にしたままスリープ状態に入っても、
フェールセーフとなったとき、前記負荷をオフし、クリ
アすることができる。
As described above, according to the present invention, 1
The two carrier-off detection circuits can clearly distinguish whether communication is stopped and the device is in a sleep state or an error occurs and the device is in a fail-safe state. Even if the process enters the sleep state while the load such as lamp lighting is on, the process is separated from the master station's sleep process.
When fail safe occurs, the load can be turned off and cleared.

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

【図1】本発明に係る移動体用多重通信装置の第1実施
例を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a multiplex communication apparatus for a mobile body according to the present invention.

【図2】図1に示す第1子局の詳細な回路構成例を示す
ブロック図である。
FIG. 2 is a block diagram showing a detailed circuit configuration example of a first slave station shown in FIG.

【図3】図1に示す多重通信装置の通信タイミング例を
示すタイミング図である。
FIG. 3 is a timing chart showing a communication timing example of the multiplex communication apparatus shown in FIG.

【図4】本発明に係る移動体用多重通信装置の第2実施
例で使用される第1子局の一例を示すブロック図であ
る。
FIG. 4 is a block diagram showing an example of a first slave station used in a second embodiment of the mobile multiplex communication apparatus according to the present invention.

【図5】本発明に係る移動体用多重通信装置の第3実施
例で使用される第1子局の一例を示すブロック図であ
る。
FIG. 5 is a block diagram showing an example of a first slave station used in a third embodiment of the mobile multiplex communication apparatus according to the present invention.

【図6】従来から知られている移動体用多重通信装置の
一例を示すブロック図である。
FIG. 6 is a block diagram showing an example of a conventionally known mobile multiplex communication device.

【図7】図6に示す多重通信装置の通信タイミング例を
示すタイミング図である。
FIG. 7 is a timing chart showing an example of communication timing of the multiplex communication apparatus shown in FIG.

【図8】図6に示す第1子局の詳細な回路構成例を示す
ブロック図である。
FIG. 8 is a block diagram illustrating a detailed circuit configuration example of a first slave station illustrated in FIG. 6;

【図9】図8に示す第2キャリアオフ検出回路の詳細な
構成例を示す回路図である。
9 is a circuit diagram showing a detailed configuration example of a second carrier off detection circuit shown in FIG.

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

1 移動体用多重通信装置 2 親局 3a〜3n 第1子局〜第N子局 4 多重通信バス 5a〜5n 入力回路 6a〜6n 負荷回路 7 CPU 10 通信部 11 スリープ/フェールセーフ部 12 受信部 13 送信部 14 ウェイクアップ部 17 スリープ準備回路 18 D型フリップフロップ 19 セレクタ回路 20 キャリアオフ検出回路 21 発振回路 22 フェールセーフ回路 23 受信回路 24 出力ポート回路 DESCRIPTION OF SYMBOLS 1 Multiplexing apparatus for mobile objects 2 Master station 3a-3n 1st station-Nth station 4 Multiplexing communication bus 5a-5n Input circuit 6a-6n Load circuit 7 CPU 10 Communication section 11 Sleep / fail safe section 12 Receiving section Reference Signs List 13 transmission unit 14 wake-up unit 17 sleep preparation circuit 18 D-type flip-flop 19 selector circuit 20 carrier off detection circuit 21 oscillation circuit 22 fail-safe circuit 23 reception circuit 24 output port circuit

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04L 12/40 H04L 29/00 Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04L 12/40 H04L 29/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マスター局となる親局とスレーブ局とな
る複数の子局とを多重通信バスによって接続し、親局に
より各子局を指定してデータの送受信を行なう一方、親
局がスリープ状態になったときには、各子局がこれを検
出してスリープ状態に移行する低消費電力機能を備えた
移動体用多重通信装置において、 前記親局は、この親局がスリープ状態になる前に、スリ
ープ準備開始指令を生成して、これを各子局に伝送する
スリープ準備指令部を備え、 各子局は、前記親局からスリープ準備開始指令が出力さ
れたとき、これを検出してスリープ準備信号を生成する
スリープ準備回路と、 このスリープ準備回路からスリープ準備信号が出力され
ていないときには、親局からの通信データに基づいて得
られる受信データを選択してキャリア検出用信号を生成
する一方、前記スリープ準備回路からスリープ準備信号
が出力されているときには、前記受信データをサンプリ
ングした信号を選択してキャリア検出用信号を生成する
セレクタ回路と、 このセレクタ回路から出力されるキャリア検出用信号に
基づいてキャリアオフ検出を行なうキャリアオフ検出回
路と、 このキャリアオフ検出回路の検出結果に基づいてクロッ
ク信号の生成を制御して子局側を低消費電力状態にする
発振回路と、 予め設定されている異常検出/スリープ検出条件に基づ
いてスリープ準備回路の出力および前記キャリアオフ検
出回路の出力を判定し、この判定結果に基づいて子局側
に予め設定されている部分をフェールセーフ状態にする
フェールセーフ回路と、 を備えたことを特徴とする移動体用多重通信装置。
A master station serving as a master station and a plurality of slave stations serving as slave stations are connected by a multiplex communication bus, and the master station designates each slave station to transmit and receive data, while the master station sleeps. In the mobile multiplex communication device having a low power consumption function in which each slave station detects this and shifts to a sleep state when the master station is in the state, the master station is set to a state before the master station enters the sleep state. A sleep preparation command unit that generates a sleep preparation start command and transmits the sleep preparation start command to each slave station. Each slave station detects a sleep preparation start command from the master station and outputs a sleep preparation start command. A sleep preparation circuit for generating a preparation signal; and when the sleep preparation signal is not output from the sleep preparation circuit, selecting a reception data obtained based on communication data from the master station for carrier detection. While a signal is generated, when a sleep preparation signal is being output from the sleep preparation circuit, a selector circuit for selecting a signal obtained by sampling the received data and generating a carrier detection signal is output from the selector circuit. A carrier-off detection circuit that performs carrier-off detection based on a carrier detection signal; an oscillation circuit that controls generation of a clock signal based on a detection result of the carrier-off detection circuit to set the slave station in a low power consumption state; The output of the sleep preparation circuit and the output of the carrier-off detection circuit are determined on the basis of a preset abnormality detection / sleep detection condition, and based on the determination result, a part preset on the slave station side is failed. A multiplex communication apparatus for a mobile object, comprising: a fail-safe circuit for setting a safe state.
【請求項2】 前記発振回路は、前記スリープ準備回路
からスリープ準備信号が出力されている状態で、前記キ
ャリアオフ検出回路からキャリアオフ信号が出力された
ときに発振を停止することを特徴とする請求項1記載の
移動体用多重通信装置。
2. The oscillation circuit stops oscillation when a carrier-off signal is output from the carrier-off detection circuit while a sleep-preparation signal is being output from the sleep-preparation circuit. The multiplex communication device for a mobile object according to claim 1.
【請求項3】 前記セレクタ回路は、前記スリープ準備
回路からスリープ準備信号が出力されているとき、また
は前記フェールセーフ回路からフェールセーフ信号が出
力されているときには、前記受信データを取り込んでこ
れをキャリア検出用信号として出力し、前記スリープ準
備信号と前記フェールセーフ信号とが共に出力されてい
ないときには、前記受信データをサンプリングした信号
を取り込んで、これをキャリア検出用信号として出力す
ることを特徴とする請求項1記載の移動体用多重通信装
置。
3. The selector circuit, when a sleep preparation signal is output from the sleep preparation circuit, or when a fail-safe signal is output from the fail-safe circuit, fetches the received data and carries the received data. The signal is output as a detection signal, and when both the sleep preparation signal and the fail-safe signal are not output, a signal obtained by sampling the received data is captured and output as a carrier detection signal. The multiplex communication device for a mobile object according to claim 1.
JP5055700A 1993-03-16 1993-03-16 Multiplexing equipment for mobile Expired - Lifetime JP2950085B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5055700A JP2950085B2 (en) 1993-03-16 1993-03-16 Multiplexing equipment for mobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5055700A JP2950085B2 (en) 1993-03-16 1993-03-16 Multiplexing equipment for mobile

Publications (2)

Publication Number Publication Date
JPH06268581A JPH06268581A (en) 1994-09-22
JP2950085B2 true JP2950085B2 (en) 1999-09-20

Family

ID=13006177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5055700A Expired - Lifetime JP2950085B2 (en) 1993-03-16 1993-03-16 Multiplexing equipment for mobile

Country Status (1)

Country Link
JP (1) JP2950085B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4870717A (en) * 1988-04-26 1989-10-03 Kabushiki Kaisha Hirano Seisakusho Meat tenderizing device
JP2002290320A (en) * 2001-03-28 2002-10-04 Denso Corp Bluetooth SYSTEM AND Bluetooth MOUNTED DEVICE
JP4515867B2 (en) * 2004-09-21 2010-08-04 株式会社東芝 Store management system and store management wireless device

Also Published As

Publication number Publication date
JPH06268581A (en) 1994-09-22

Similar Documents

Publication Publication Date Title
JP3463433B2 (en) Multiplex communication system
US7957862B2 (en) Electronic control apparatus for vehicle
KR101393539B1 (en) Integrated network system for vehicle
US4979143A (en) Recovery from power-down mode
JPH11250029A (en) Monitoring method and device for computer device consisting of at least two processors
JP2950085B2 (en) Multiplexing equipment for mobile
JP2851003B2 (en) In-vehicle network control device
JP3526949B2 (en) Communication circuit of local area network
JP2988185B2 (en) Multiplex communication device
JP3264680B2 (en) Watchdog timer device for microcomputer system
JP2953244B2 (en) In-vehicle electronic control unit
JPH07283830A (en) Multiplex transmitter
JP3397496B2 (en) Multiplex transmission system
JP3830837B2 (en) In-vehicle electronic control circuit with sensor self-diagnosis signal proper processing function
JPH0558233A (en) Multiple transmission device
JP3003181B2 (en) Communication device
JP2002304649A (en) Collision information storage device
JP3456052B2 (en) Multiplex transmission system
JP3107104B2 (en) Standby redundancy method
JP2023173504A (en) Electronic control unit and failure diagnostic method
JP3215217B2 (en) Power supply control circuit
JPH0344730A (en) Trouble diagnostic controller for printer
JPH0516746A (en) Communication device for mobile body
JP2008132817A (en) Method for controlling communication system, communication device, and communication system
JPH0887938A (en) Latch relay supervisory device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080709

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090709

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100709

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110709

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 14