JP2011244264A - Communication apparatus and method of canceling sleep state of communication apparatus - Google Patents

Communication apparatus and method of canceling sleep state of communication apparatus Download PDF

Info

Publication number
JP2011244264A
JP2011244264A JP2010115386A JP2010115386A JP2011244264A JP 2011244264 A JP2011244264 A JP 2011244264A JP 2010115386 A JP2010115386 A JP 2010115386A JP 2010115386 A JP2010115386 A JP 2010115386A JP 2011244264 A JP2011244264 A JP 2011244264A
Authority
JP
Japan
Prior art keywords
sleep state
signal
canceled
communication
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010115386A
Other languages
Japanese (ja)
Other versions
JP5471816B2 (en
Inventor
Seiji Akita
誠治 秋田
Tomohisa Kishigami
友久 岸上
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 JP2010115386A priority Critical patent/JP5471816B2/en
Publication of JP2011244264A publication Critical patent/JP2011244264A/en
Application granted granted Critical
Publication of JP5471816B2 publication Critical patent/JP5471816B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To cancel a sleep state of a node of which the sleep state is not canceled by a wake-up signal, without providing a node with means for detecting the node of which the sleep state is not canceled or means for transmitting a special signal pattern via a communication bus.SOLUTION: In a communication system, each of a plurality of ECUs 100 is configured to transmit/receive a frame via a communication bus 10, and in accordance with a wake-up signal transmitted from the ECU 100 of which the sleep state is canceled by an internal event, the sleep state of the other ECU 100 is canceled. The ECU 100 includes a frame detection circuit 130 which outputs a high-level signal in the case where a signal level of the communication bus 10 changes continuously specific times or more at intervals not exceeding a specific time. In the case where the high-level signal is outputted from the frame detection circuit 130 to an external interrupt terminal of a microcomputer 110, the microcomputer 110 cancels the sleep state of the relevant ECU 100.

Description

本発明は、複数のノードが通信バスを介してフレームを送受信可能に構成された通信システムにおいてノードとして機能する通信装置及びこうした通信装置のスリープ状態解除方法に関するものである。   The present invention relates to a communication device that functions as a node in a communication system configured such that a plurality of nodes can transmit and receive frames via a communication bus, and a sleep state canceling method for such a communication device.

従来、この種の通信システムとして、通信が不要な状況ではノードがスリープ状態(クロックや部分的な電力供給を停止した低消費電力状態)で待機しており、通信が必要な状況になるとノードのスリープ状態が解除されるように構成されたものが知られている。   Conventionally, as a communication system of this type, a node is in a sleep state (a low power consumption state in which a clock or partial power supply is stopped) in a situation where communication is not necessary. One configured to cancel the sleep state is known.

例えば、通信プロトコルとしてFlexRay(登録商標)が用いられた通信システムのノードは、スイッチ操作などに応じた内部イベントによりスリープ状態が解除されて通常動作状態へ遷移し(ウェイクアップし)、他のノードへウェイクアップ信号を送信する。そして、他のノードは、このウェイクアップ信号を受信することでスリープ状態が解除されて通常動作状態へ遷移する(ウェイクアップする)。このようにしてノードのスリープ状態が解除されて通常動作状態へ遷移することにより、通信バスを介したフレームの送受信が開始される。   For example, a node of a communication system using FlexRay (registered trademark) as a communication protocol is released from a sleep state by an internal event in response to a switch operation or the like and transitions to a normal operation state (wakes up), and other nodes Send a wake-up signal. Then, the other nodes receive the wake-up signal to cancel the sleep state and shift to the normal operation state (wake up). In this way, when the node is released from the sleep state and transits to the normal operation state, frame transmission / reception via the communication bus is started.

しかしながら、このような通信システムでは、ノイズの混入や電圧変動などの一時的な要因により他のノードからのウェイクアップ信号を正常に受信できなかったノードは、スリープ状態が解除されないままとなってしまう。   However, in such a communication system, a node that cannot normally receive a wake-up signal from another node due to a temporary factor such as noise mixing or voltage fluctuation will remain in a sleep state. .

そこで、他のノードからのウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除させる機能をノードに持たせた通信システムが提案されている(特許文献1参照)。具体的には、通信システムのノードが他のノードに関する情報を内部メモリに記憶しており、他のノードから通信バスを介して送信されてくるフレームに基づいてスリープ状態が解除されなかったノード(未ウェイクアップノード)の存在を検出する。そして、未ウェイクアップノードの存在を検出した場合には、コミュニケーション・サイクルの中のフレーム転送が行われないアイドル期間であるネットワーク・アイドルタイムにおいて、ウェイクアップ信号と同じパターンの擬似ウェイクアップ信号を通信バスを介して送信する。これにより、ウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除させることが可能となる。   Thus, a communication system has been proposed in which a node has a function of canceling a sleep state of a node whose sleep state has not been canceled by a wake-up signal from another node (see Patent Document 1). Specifically, the node of the communication system stores information related to the other node in the internal memory, and the node that has not been released from the sleep state based on the frame transmitted from the other node via the communication bus ( The presence of an unwakened node is detected. When the presence of an unwakened node is detected, a pseudo wakeup signal having the same pattern as the wakeup signal is communicated during the network idle time during which no frame transfer is performed in the communication cycle. Send over the bus. Thereby, it becomes possible to cancel the sleep state of the node whose sleep state has not been canceled by the wakeup signal.

特開2008−42888号公報JP 2008-42888 A

しかしながら、前述した特許文献1に記載の構成では、スリープ状態が解除されなかったノードの存在を検出する手段や、通信プロトコルの規定とは異なるタイミングで特殊な信号パターン(擬似ウェイクアップ信号)を通信バスを介して送信する手段をノードに設ける必要があるため、ノードの構成が複雑になってしまう。   However, in the configuration described in Patent Document 1 described above, a special signal pattern (pseudo wakeup signal) is communicated at a timing different from the communication protocol stipulations or means for detecting the presence of a node whose sleep state has not been released. Since it is necessary to provide the node with means for transmitting via the bus, the configuration of the node becomes complicated.

本発明は、こうした問題にかんがみてなされたものであり、スリープ状態が解除されなかったノードの存在を検出する手段や、特殊な信号パターンを通信バスを介して送信する手段をノードに設けることなく、ウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除することのできる通信装置及び通信装置のスリープ状態解除方法を提供することを目的としている。   The present invention has been made in view of these problems, and without providing a node with a means for detecting the presence of a node whose sleep state has not been released or a means for transmitting a special signal pattern via a communication bus. An object of the present invention is to provide a communication device and a communication device sleep state canceling method that can cancel a sleep state of a node whose sleep state has not been canceled by a wakeup signal.

上記目的を達成するためになされた本発明の請求項1に記載の通信装置は、複数のノードが通信バスを介してフレームを送受信可能に構成され、内部イベントによりスリープ状態が解除されたノードから送信されるウェイクアップ信号によって他のノードのスリープ状態が解除される通信システムにおいて、ノードとして機能するものである。   The communication device according to claim 1 of the present invention made to achieve the above object is configured such that a plurality of nodes are configured to be able to transmit and receive frames via a communication bus, and from a node whose sleep state is canceled by an internal event. It functions as a node in a communication system in which a sleep state of another node is canceled by a transmitted wakeup signal.

そして、この通信装置は、通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合に特定の信号を出力する検出回路を備えており、検出回路により特定の信号が出力された場合に解除手段が当該通信装置のスリープ状態を解除する。   The communication device includes a detection circuit that outputs a specific signal when the signal level of the communication bus continuously changes a specified number of times at intervals not exceeding the specified time, and the detection circuit outputs a specific signal. In the case of being canceled, the canceling unit cancels the sleep state of the communication device.

つまり、この通信装置は、通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合にスリープ状態が解除されるようになっている。このため、ウェイクアップ信号によりスリープ状態が解除されなかった場合にも、通信バスを介した通常のデータ通信信号(フレーム)の送信が開始されることによりスリープ状態が解除されるようにすることが可能となる。   That is, this communication apparatus is configured to be released from the sleep state when the signal level of the communication bus changes continuously a predetermined number of times at intervals not exceeding the predetermined time. For this reason, even when the sleep state is not canceled by the wake-up signal, the sleep state can be canceled by starting transmission of a normal data communication signal (frame) via the communication bus. It becomes possible.

したがって、このような通信装置がノードとして機能する通信システムによれば、ウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除することができる。しかも、検出回路を追加するだけでよいため、スリープ状態が解除されなかったノードの存在を検出する手段や、特殊な信号パターンを通信バスを介して送信する手段をノードに設ける必要がない。   Therefore, according to the communication system in which such a communication device functions as a node, the sleep state of the node whose sleep state has not been canceled by the wakeup signal can be canceled. In addition, since it is only necessary to add a detection circuit, it is not necessary to provide the node with a means for detecting the presence of a node whose sleep state has not been canceled or a means for transmitting a special signal pattern via the communication bus.

一方、通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化しなければスリープ状態が解除されないため、通信が開始されていない状況で過渡的に発生し得るノイズパルスによる通信バスの信号レベルの変化によってスリープ状態が解除されてしまうことを防ぐことができる。   On the other hand, if the signal level of the communication bus does not change continuously for a specified number of times at an interval that does not exceed the specified time, the sleep state is not canceled, so a communication bus with noise pulses that can occur transiently when communication is not started It is possible to prevent the sleep state from being canceled due to a change in the signal level.

ところで、規定時間は、例えば請求項2に記載のように、フレームで許容されている信号レベルの変化しない最長時間よりも長い時間に設定されているとよい。このようにすれば、フレームにおいて信号レベルの変化しない時間が長い場合に連続した変化として検出されなくなってしまうことを防ぐことができる。   By the way, the prescribed time may be set to a time longer than the longest time in which the signal level allowed in the frame does not change, as described in claim 2, for example. In this way, it can be prevented that the change is not detected as a continuous change when the signal level does not change in the frame for a long time.

また、規定回数は、例えば請求項3に記載のように、フレームに含まれる信号レベルの最小変化数以下に設定されているとよい。このようにすれば、1つのフレームが通信バスを介して送信されることでスリープ状態が解除されるようにすることが可能となる。特に、請求項2に記載のように規定時間がフレームで許容されている信号レベルの変化しない最長時間よりも長い時間に設定されていれば、1つのフレームが通信バスを介して送信されることで必ずスリープ状態が解除されるようにすることができる。   Further, the specified number of times may be set to be equal to or less than the minimum change number of the signal level included in the frame, for example, as described in claim 3. In this way, it is possible to cancel the sleep state by transmitting one frame via the communication bus. In particular, if the specified time is set to a time longer than the longest time that the signal level allowed for the frame does not change as described in claim 2, one frame is transmitted via the communication bus. The sleep state can be canceled without fail.

次に、請求項4に記載の通信装置のスリープ状態解除方法は、複数のノードが通信バスを介してフレームを送受信可能に構成され、内部イベントによりスリープ状態が解除されたノードから送信されるウェイクアップ信号によって他のノードのスリープ状態が解除される通信システムにおいて、他のノードからのウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除する方法である。そして、このスリープ状態解除方法では、通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合にスリープ状態を解除する。   Next, according to a fourth aspect of the present invention, there is provided a method for canceling a sleep state of a communication apparatus, wherein a plurality of nodes are configured to be able to transmit and receive frames via a communication bus, and are transmitted from a node whose sleep state is canceled by an internal event In a communication system in which a sleep state of another node is canceled by an up signal, the sleep state of a node whose sleep state has not been canceled by a wakeup signal from another node is canceled. In this sleep state cancellation method, the sleep state is canceled when the signal level of the communication bus continuously changes a predetermined number of times at intervals not exceeding the predetermined time.

このようなスリープ状態解除方法によれば、請求項1に記載の通信装置がノードとして機能する通信システムと同様の効果を得ることができる。   According to such a sleep state canceling method, it is possible to obtain the same effect as that of the communication system in which the communication device according to claim 1 functions as a node.

実施形態の通信システムの概略構成を表すブロック図である。It is a block diagram showing the schematic structure of the communication system of embodiment. ECUの回路動作を表すタイミングチャートである。It is a timing chart showing circuit operation of ECU. FlexRay(登録商標)のフレームフォーマットを表す説明図である。It is explanatory drawing showing the frame format of FlexRay (trademark).

以下、通信プロトコルとしてFlexRay(登録商標)が用いられた車載用の通信システムに本発明を適用した実施形態について、図面を用いて説明する。
図1は、実施形態の通信システムの概略構成を表すブロック図である。
Hereinafter, an embodiment in which the present invention is applied to an in-vehicle communication system using FlexRay (registered trademark) as a communication protocol will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a schematic configuration of a communication system according to an embodiment.

この通信システムは、車両に搭載された複数の電子制御ユニット(以下「ECU」という。)100,100,…が通信バス10を介してフレームを送受信可能に構成されたものであり、各ECU100がノード(通信装置)として機能する。この通信システムに用いられる通信バス10は二本の通信線からなる二線式のものであり、二線間の電位差によって「0」又は「1」の信号レベルを表現した差動信号(データ通信信号)がECU100間で送受信される。なお、図1では、複数のECU100,100,…のうちの1つについてのみ回路構成を示しているが、この回路構成はすべてのECU100に共通するものである。   In this communication system, a plurality of electronic control units (hereinafter referred to as “ECUs”) 100, 100,... Mounted on a vehicle are configured to be able to transmit and receive frames via a communication bus 10. It functions as a node (communication device). The communication bus 10 used in this communication system is a two-wire type comprising two communication lines, and a differential signal (data communication) expressing a signal level of “0” or “1” by a potential difference between the two lines. Signal) is transmitted and received between the ECUs 100. 1, the circuit configuration is shown for only one of the plurality of ECUs 100, 100,..., But this circuit configuration is common to all the ECUs 100.

図1に示すように、ECU100は、マイコン110、トランシーバ120及びフレーム検出回路130を備えている。
マイコン110は、通信制御のための処理を実行するものである。そして、マイコン110には通信回路111が内蔵されており、この通信回路111のTxD出力ポート及びRxD入力ポートは、トランシーバ120のTxD入力ポート及びRxD出力ポートにそれぞれ接続されている。また、マイコン110の外部割込端子は、フレーム検出回路130に接続されている。
As shown in FIG. 1, the ECU 100 includes a microcomputer 110, a transceiver 120, and a frame detection circuit 130.
The microcomputer 110 executes processing for communication control. The communication circuit 111 is built in the microcomputer 110, and the TxD output port and the RxD input port of the communication circuit 111 are connected to the TxD input port and the RxD output port of the transceiver 120, respectively. The external interrupt terminal of the microcomputer 110 is connected to the frame detection circuit 130.

トランシーバ120は、通信バス10とマイコン110との間のインタフェースとして機能するものである。具体的には、トランシーバ120は、TxD入力ポートから入力した送信信号(TxD信号)を差動信号に変換して通信バス10へ出力するとともに、通信バス10から入力した差動信号を受信信号(RxD信号)に変換してRxD出力ポートから出力する機能を有する。   The transceiver 120 functions as an interface between the communication bus 10 and the microcomputer 110. Specifically, the transceiver 120 converts a transmission signal (TxD signal) input from the TxD input port into a differential signal and outputs the differential signal to the communication bus 10, and receives the differential signal input from the communication bus 10 as a reception signal ( RxD signal) and output from the RxD output port.

フレーム検出回路130は、トランシーバ120のRxD出力ポートから出力される受信信号を入力し、この受信信号に基づく特定のタイミングでマイコン110の外部割込端子にハイレベルの信号を出力するものである。具体的には、このフレーム検出回路130は、バッファ131、XOR回路132、ダイオード133、コンデンサ134、抵抗135、反転回路136及びカウンタ137を備えている。   The frame detection circuit 130 receives a reception signal output from the RxD output port of the transceiver 120, and outputs a high-level signal to an external interrupt terminal of the microcomputer 110 at a specific timing based on this reception signal. Specifically, the frame detection circuit 130 includes a buffer 131, an XOR circuit 132, a diode 133, a capacitor 134, a resistor 135, an inverting circuit 136, and a counter 137.

XOR回路132には、トランシーバ120のRxD出力ポートから出力された受信信号と、この受信信号をバッファ131で遅延させた遅延信号とが入力される。また、このXOR回路132の出力側にはダイオード133のアノードが接続され、このダイオード133のカソードとグランドとの間にコンデンサ134及び抵抗135が並列に接続されており、これらダイオード133、コンデンサ134及び抵抗135によって包絡線検波回路が構成されている。   The XOR circuit 132 receives a reception signal output from the RxD output port of the transceiver 120 and a delay signal obtained by delaying the reception signal by the buffer 131. The anode of the diode 133 is connected to the output side of the XOR circuit 132, and a capacitor 134 and a resistor 135 are connected in parallel between the cathode of the diode 133 and the ground. An envelope detection circuit is configured by the resistor 135.

また、ダイオード133のカソードには反転回路136が接続されており、包絡線検波回路の出力信号(以下「検波信号」という。)は反転回路136で反転された後にカウンタ137に入力される。反転回路136は、検波信号のレベルがしきい値電位Vth以上の場合にローレベルの信号を出力し、しきい値電位Vth未満の場合にハイレベルの信号を出力する。   In addition, an inverting circuit 136 is connected to the cathode of the diode 133, and an output signal of the envelope detection circuit (hereinafter referred to as “detection signal”) is inverted by the inverting circuit 136 and then input to the counter 137. The inverting circuit 136 outputs a low level signal when the level of the detection signal is equal to or higher than the threshold potential Vth, and outputs a high level signal when it is lower than the threshold potential Vth.

一方、カウンタ137は、XOR回路132からの出力信号をクロックとして入力し、そのパルス数をカウントする。そして、そのカウント値の5ビット目(図1に示すQ4)の信号がマイコン110の外部割込端子に入力されるようになっている。つまり、カウント値が「16」に達すると、カウンタ137からマイコン110の外部割込端子へハイレベルの信号が出力される。また、カウンタ137は、反転回路136の出力信号をクリア信号として入力し、反転回路136からハイレベルの信号が入力されるとカウント値を0にクリアする。   On the other hand, the counter 137 receives the output signal from the XOR circuit 132 as a clock and counts the number of pulses. A signal of the fifth bit (Q4 shown in FIG. 1) of the count value is input to the external interrupt terminal of the microcomputer 110. That is, when the count value reaches “16”, a high level signal is output from the counter 137 to the external interrupt terminal of the microcomputer 110. The counter 137 receives the output signal of the inverting circuit 136 as a clear signal, and clears the count value to 0 when a high level signal is input from the inverting circuit 136.

次に、本実施形態の通信システムにおいてECU100がスリープ状態から通常動作状態へ遷移する(ウェイクアップする)際の流れについて説明する。
スリープ状態のECU100は、車両の乗員が行うスイッチ操作などに応じた内部イベントによりスリープ状態が解除されて通常動作状態へ遷移する。そして、内部イベントによりスリープ状態が解除されたECU100は、通信バス10を介して他のECU100へウェイクアップ信号を送信する。
Next, a flow when the ECU 100 transitions from the sleep state to the normal operation state (wakes up) in the communication system of the present embodiment will be described.
The ECU 100 in the sleep state is released from the sleep state by an internal event corresponding to a switch operation performed by a vehicle occupant, and transitions to the normal operation state. Then, ECU 100 whose sleep state has been canceled by an internal event transmits a wake-up signal to another ECU 100 via communication bus 10.

一方、スリープ状態のECU100は、他のECU100からのウェイクアップ信号を通信バス10を介して受信した場合にも、スリープ状態が解除されて通常動作状態へ遷移する。具体的には、スリープ状態のECU100において、マイコン110は、RxD入力ポートから入力した受信信号についてはウェイクアップ信号のみを受け付けるようになっており、他のECU100からのウェイクアップ信号がトランシーバ120を介して入力されることによりスリープ状態を解除する処理を行う。   On the other hand, when the ECU 100 in the sleep state receives a wake-up signal from another ECU 100 via the communication bus 10, the sleep state is canceled and the ECU 100 transitions to the normal operation state. Specifically, in the ECU 100 in the sleep state, the microcomputer 110 accepts only the wake-up signal for the reception signal input from the RxD input port, and the wake-up signal from the other ECU 100 passes through the transceiver 120. To cancel the sleep state.

つまり、通信システムにおけるいずれか1つのECU100が内部イベントによりスリープ状態から通常動作状態へ遷移すると、このECU100が送信するウェイクアップ信号によって他のECU100もスリープ状態から通常動作状態へ遷移する。   That is, when any one ECU 100 in the communication system transitions from the sleep state to the normal operation state due to an internal event, the other ECU 100 also transitions from the sleep state to the normal operation state by the wakeup signal transmitted by the ECU 100.

しかしながら、スリープ状態のECU100がノイズの混入や電圧変動などの一時的な要因によりウェイクアップ信号を正常に受信できなかった場合、スリープ状態が解除されないままとなり通信を開始しないといった問題が生じ得る。   However, if the ECU 100 in the sleep state cannot normally receive the wakeup signal due to temporary factors such as noise or voltage fluctuation, the sleep state may not be released and communication may not start.

そこで、本実施形態の通信システムにおいて、ECU100は、一時的な要因によりウェイクアップ信号を正常に受信できずにスリープ状態が解除されなかった場合にも、他のECU100により通常のデータ通信信号(フレーム)の送信が開始されるとスリープ状態が解除されるように構成されている。以下、ウェイクアップ信号を正常に受信できずにスリープ状態が解除されなかったECU100の回路動作について、図2のタイミングチャートを用いて説明する。   Therefore, in the communication system of the present embodiment, the ECU 100 does not normally receive the wake-up signal due to a temporary factor, and even when the sleep state is not released, the other ECU 100 performs normal data communication signals (frames). ) Is started, the sleep state is canceled. Hereinafter, the circuit operation of the ECU 100 in which the sleep state has not been canceled because the wakeup signal cannot be normally received will be described with reference to the timing chart of FIG.

トランシーバ120は、スリープ状態においても通信バス10から入力した差動信号を受信信号に変換してRxD出力ポートから出力する。なお、図2では、通信バス10の二線間の電位差の有無によりローレベル又はハイレベルの受信信号(「0」又は「1」の論理信号)が出力される例を示しているが、これに限定されるものではない。   Even in the sleep state, the transceiver 120 converts the differential signal input from the communication bus 10 into a received signal and outputs the received signal from the RxD output port. FIG. 2 shows an example in which a low level or high level reception signal (a logic signal of “0” or “1”) is output depending on the presence or absence of a potential difference between two wires of the communication bus 10. It is not limited to.

トランシーバ120から出力された受信信号は、マイコン110及びフレーム検出回路130に入力されるが、前述したように、スリープ状態におけるマイコン110は、RxD入力ポートから入力した受信信号についてはウェイクアップ信号以外の信号を受け付けない。   The reception signal output from the transceiver 120 is input to the microcomputer 110 and the frame detection circuit 130. However, as described above, the microcomputer 110 in the sleep state has received signals other than the wake-up signal from the RxD input port. Does not accept signals.

一方、フレーム検出回路130では、トランシーバ120からの受信信号とこの受信信号をバッファ131で遅延させた遅延信号とがXOR回路132に入力され、これらの排他的論理和であるエッジ信号が出力される。つまり、通信バス10の信号レベルが変化したタイミングでハイレベルとなるエッジ信号がXOR回路132から出力される。   On the other hand, in the frame detection circuit 130, a reception signal from the transceiver 120 and a delay signal obtained by delaying the reception signal by the buffer 131 are input to the XOR circuit 132, and an edge signal that is an exclusive OR of these signals is output. . That is, an edge signal that becomes high level at the timing when the signal level of the communication bus 10 changes is output from the XOR circuit 132.

そして、XOR回路132からのエッジ信号は、ダイオード133、コンデンサ134及び抵抗135によって構成された包絡線検波回路に入力される。この包絡線検波回路では、エッジ信号がハイレベルとなっている期間はコンデンサ134が充電され、エッジ信号がローレベルとなっている期間はコンデンサ134に充電された電荷が抵抗135を介して徐々に放電される。このため、包絡線検波回路から出力される検波信号は、通信バス10の信号レベルが変化することにより上昇し、通信バス10の信号レベルが変化しないと徐々に下降していく。   The edge signal from the XOR circuit 132 is input to an envelope detection circuit constituted by a diode 133, a capacitor 134 and a resistor 135. In this envelope detection circuit, the capacitor 134 is charged while the edge signal is at a high level, and the charge charged in the capacitor 134 is gradually passed through the resistor 135 while the edge signal is at a low level. Discharged. For this reason, the detection signal output from the envelope detection circuit increases when the signal level of the communication bus 10 changes, and gradually decreases when the signal level of the communication bus 10 does not change.

そして、検波信号は反転回路136で反転された後、カウンタ137に入力される。反転回路136の出力信号(反転信号)は、前述したように、検波信号のレベルがしきい値電位Vth以上の場合にローレベルとなり、検波信号のレベルがしきい値電位Vth未満の場合にハイレベルとなる。   The detection signal is inverted by the inverting circuit 136 and then input to the counter 137. As described above, the output signal (inverted signal) of the inverting circuit 136 is low when the level of the detection signal is equal to or higher than the threshold potential Vth, and is high when the level of the detection signal is lower than the threshold potential Vth. Become a level.

一方、XOR回路132からのエッジ信号はカウンタ137にも入力され、カウンタ137ではエッジ信号のパルス数がカウントされる。そして、カウント値が「16」に達した場合にマイコン110の外部割込端子へハイレベルの信号が出力される。また、カウンタ137では、反転回路136からの出力信号(反転信号)がハイレベルになると、カウント値が0にクリアされる。   On the other hand, the edge signal from the XOR circuit 132 is also input to the counter 137, and the counter 137 counts the number of pulses of the edge signal. When the count value reaches “16”, a high level signal is output to the external interrupt terminal of the microcomputer 110. In the counter 137, the count value is cleared to 0 when the output signal (inverted signal) from the inverting circuit 136 becomes high level.

つまり、通信バス10の信号レベルの変化が、検波信号のレベルがしきい値電位Vthを下回らない間隔で16回以上連続した場合に、フレーム検出回路130からマイコン110の外部割込端子にハイレベルの信号が出力される。これにより、マイコン110は、ECU100のスリープ状態を解除して通常動作状態へ遷移させる。   That is, when the change in the signal level of the communication bus 10 continues 16 times or more at an interval where the level of the detection signal does not fall below the threshold potential Vth, the high level is output from the frame detection circuit 130 to the external interrupt terminal of the microcomputer 110. Is output. Thereby, the microcomputer 110 cancels the sleep state of the ECU 100 and makes a transition to the normal operation state.

そして、このフレーム検出回路130では、検波信号がハイレベルに上昇してからしきい値電位Vthを下回るまでの時間が、フレームで許容されている信号レベルの変化しない最長時間よりも長い時間に設定されている。しかも、外部割込端子への出力をハイレベルにするカウント値(本実施形態では16)が、1つのフレームにおいて想定される信号レベルの変化数の最小値以下の値に設定されている。このため、他のECU100から正常なフレームが通信バス10を介して送信されると、必ずフレーム検出回路130からマイコン110の外部割込端子へハイレベルの信号が出力されることになる。   In this frame detection circuit 130, the time from when the detection signal rises to a high level until it falls below the threshold potential Vth is set to a time longer than the longest time that the signal level allowed for the frame does not change. Has been. In addition, the count value (16 in this embodiment) that sets the output to the external interrupt terminal to a high level is set to a value that is less than or equal to the minimum value of the number of signal level changes assumed in one frame. For this reason, when a normal frame is transmitted from the other ECU 100 via the communication bus 10, a high level signal is always output from the frame detection circuit 130 to the external interrupt terminal of the microcomputer 110.

ここで、本実施形態の通信システムでECU100から送信されるフレームに含まれる信号レベルの変化数の最小値について、ペイロード・セグメントが0バイトの場合を例に挙げて説明する。   Here, the minimum value of the number of changes in the signal level included in the frame transmitted from the ECU 100 in the communication system according to the present embodiment will be described by taking a case where the payload segment is 0 bytes as an example.

図3に示すように、FlexRay(登録商標)のフレームフォーマットでは、5バイトのヘッダ・セグメントと、0〜254バイトのペイロード・セグメントと、3バイトのトレーラ・セグメントとによってフレームが構成される。このため、ペイロード・セグメントが0バイトの場合におけるフレーム長は8バイトとなる。   As shown in FIG. 3, in the FlexRay (registered trademark) frame format, a frame is composed of a 5-byte header segment, a 0-254 byte payload segment, and a 3-byte trailer segment. Therefore, the frame length when the payload segment is 0 byte is 8 bytes.

このフレームをマイコン110の通信回路111を通して送信すると、図3に示すように、通信回路111でのエンコーディングにより、TSS(送信スタート・シーケンス)、FSS(フレーム・スタート・シーケンス)、FES(フレーム・エンド・シーケンス)及び1バイトごとにBSS(バイト・スタート・シーケンス)が付加された信号となる。このため、フレーム中のデータがすべて「0」又はすべて「1」であったとしても、このフレームにおける信号レベルの変化数は「18」となる。つまり、1つのフレームにおいて少なくとも18回は信号レベルが変化することになる。   When this frame is transmitted through the communication circuit 111 of the microcomputer 110, TSS (transmission start sequence), FSS (frame start sequence), FES (frame end) are encoded by the communication circuit 111 as shown in FIG. Sequence) and a signal with BSS (byte start sequence) added for each byte. For this reason, even if all the data in the frame is “0” or all “1”, the number of changes in the signal level in this frame is “18”. That is, the signal level changes at least 18 times in one frame.

また、本実施形態の通信システムにおいて、フレームで許容されている信号レベルの変化しない最長時間は9ビット時間である。
このため、本実施形態のフレーム検出回路130では、検波信号がハイレベルに上昇してからしきい値電位Vthを下回るまでの時間が9ビット時間よりも長く(例えば10ビット時間に)設定されているとともに、外部割込端子への出力をハイレベルにするカウント値が18以下の値(本実施形態では16)に設定されている。なお、本実施形態において外部割込端子への出力をハイレベルにするカウント値を16としているのは、ノイズ等の一時的な要因によりスリープ状態が解除されにくくするためであり、2の累乗のできるだけ大きい値に設定されている。すなわち、過渡的なノイズパルスが通信バス10の信号レベルの変化として検出されたとしても、多数の変化が連続して検出されるようなことは生じにくく、信号レベルの変化しない状態が規定間隔を超えればカウンタ137のカウント値は0にクリアされるため、ノイズ等の一時的な要因によりスリープ状態が解除されてしまうことが防止される。
In the communication system of the present embodiment, the longest time that the signal level allowed in the frame does not change is 9 bit time.
For this reason, in the frame detection circuit 130 of this embodiment, the time from when the detection signal rises to a high level until it falls below the threshold potential Vth is set longer than 9 bit time (for example, 10 bit time). In addition, the count value for setting the output to the external interrupt terminal to the high level is set to a value of 18 or less (16 in this embodiment). In this embodiment, the count value for setting the output to the external interrupt terminal to high level is 16 in order to make it difficult to cancel the sleep state due to temporary factors such as noise. The value is set as large as possible. That is, even if a transient noise pulse is detected as a change in the signal level of the communication bus 10, it is unlikely that a large number of changes will be detected continuously, and the state in which the signal level does not change has a predetermined interval. If exceeded, the count value of the counter 137 is cleared to 0, so that the sleep state is prevented from being canceled due to temporary factors such as noise.

以上説明したように、本実施形態の通信システムにおいてノードとして機能するECU100は、通信バス10の信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合にハイレベルの信号を出力するフレーム検出回路130を備えている。そして、フレーム検出回路130からマイコン110の外部割込端子にハイレベルの信号が出力された場合にマイコン110が当該ECU100のスリープ状態を解除する。   As described above, the ECU 100 functioning as a node in the communication system according to the present embodiment outputs a high-level signal when the signal level of the communication bus 10 continuously changes a specified number of times at intervals not exceeding the specified time. A frame detection circuit 130 is provided. When a high level signal is output from the frame detection circuit 130 to the external interrupt terminal of the microcomputer 110, the microcomputer 110 cancels the sleep state of the ECU 100.

特に、本実施形態では、規定時間がフレームで許容されている信号レベルの変化しない最長時間よりも長い時間(本実施形態では10ビット時間)に設定されており、規定回数がフレームに含まれる信号レベルの最小変化数以下(本実施形態では16回)に設定されている。   In particular, in the present embodiment, the specified time is set to a time longer than the longest time that the signal level allowed for the frame does not change (in this embodiment, 10 bit time), and the signal that includes the specified number of times in the frame. It is set to be equal to or less than the minimum level change number (in this embodiment, 16 times).

このため、ECU100は、ウェイクアップ信号によりスリープ状態が解除されなかった場合にも、通信バス10を介した通常のデータ通信信号(フレーム)の送信が開始されることによりスリープ状態が解除される。   Therefore, even when the sleep state is not canceled by the wake-up signal, the ECU 100 is released from the sleep state by starting transmission of a normal data communication signal (frame) via the communication bus 10.

したがって、このようなECU100がノードとして機能する本実施形態の通信システムによれば、ウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除することができる。しかも、規定どおりの通信プロトコルを実現する通信装置の構成に対してフレーム検出回路130を追加するだけでよいため、スリープ状態が解除されなかったECU100の存在を検出する手段や、特殊な信号パターンを通信バス10を介して送信する手段をECU100に設ける必要がない。   Therefore, according to the communication system of the present embodiment in which the ECU 100 functions as a node, the sleep state of the node whose sleep state has not been canceled by the wakeup signal can be canceled. In addition, since it is only necessary to add the frame detection circuit 130 to the configuration of the communication device that realizes the prescribed communication protocol, means for detecting the presence of the ECU 100 whose sleep state has not been released, and a special signal pattern are provided. There is no need to provide the ECU 100 with means for transmitting via the communication bus 10.

一方、通信バス10の信号レベルが規定時間を超えない間隔で規定回数連続して変化しなければスリープ状態が解除されないため、通信が開始されていない状況で過渡的に発生し得るノイズパルスによる通信バス10の信号レベルの変化によってスリープ状態が解除されてしまうことを防ぐことができる。   On the other hand, if the signal level of the communication bus 10 does not change continuously for a specified number of times at intervals that do not exceed the specified time, the sleep state is not released, so communication using noise pulses that can occur transiently when communication is not started It is possible to prevent the sleep state from being canceled due to a change in the signal level of the bus 10.

なお、本実施形態の通信システムでは、ECU100が本発明の通信装置(ノード)に相当し、フレーム検出回路130が本発明の検出回路に相当し、マイコン110が本発明の解除手段に相当する。   In the communication system of this embodiment, the ECU 100 corresponds to the communication device (node) of the present invention, the frame detection circuit 130 corresponds to the detection circuit of the present invention, and the microcomputer 110 corresponds to the release means of the present invention.

以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
例えば、上記実施形態では、フレーム検出回路130をマイコン110やトランシーバ120とは別に設けたが、これに限定されるものではなく、フレーム検出回路130をマイコン110やトランシーバ120に内蔵することも可能である。
As mentioned above, although embodiment of this invention was described, it cannot be overemphasized that this invention can take a various form, without being limited to the said embodiment.
For example, in the above embodiment, the frame detection circuit 130 is provided separately from the microcomputer 110 and the transceiver 120. However, the present invention is not limited to this, and the frame detection circuit 130 can be built in the microcomputer 110 and the transceiver 120. is there.

また、本発明は、FlexRay(登録商標)以外の様々な通信プロトコルに適用することが可能である。例えばCANの場合、フレームで許容されている信号レベルの変化しない最長時間は5ビット時間であるため、検波信号がハイレベルに上昇してからしきい値電位Vthを下回るまでの時間を5ビット時間よりも長く(例えば6ビット時間に)設定すればよい。   In addition, the present invention can be applied to various communication protocols other than FlexRay (registered trademark). For example, in the case of CAN, the maximum time during which the signal level allowed for a frame does not change is 5 bit times, and therefore the time from when the detection signal rises to a high level until it falls below the threshold potential Vth is 5 bit times. It may be set longer (for example, 6 bit time).

10…通信バス、100…ECU、110…マイコン、111…通信回路、120…トランシーバ、130…フレーム検出回路、131…バッファ、132…XOR回路、133…ダイオード、134…コンデンサ、135…抵抗、136…反転回路、137…カウンタ   DESCRIPTION OF SYMBOLS 10 ... Communication bus, 100 ... ECU, 110 ... Microcomputer, 111 ... Communication circuit, 120 ... Transceiver, 130 ... Frame detection circuit, 131 ... Buffer, 132 ... XOR circuit, 133 ... Diode, 134 ... Capacitor, 135 ... Resistance, 136 ... Inversion circuit, 137 ... Counter

Claims (4)

複数のノードが通信バスを介してフレームを送受信可能に構成され、内部イベントによりスリープ状態が解除されたノードから送信されるウェイクアップ信号によって他のノードのスリープ状態が解除される通信システムにおいて、ノードとして機能する通信装置であって、
前記通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合に特定の信号を出力する検出回路と、
前記検出回路により前記特定の信号が出力された場合に当該通信装置のスリープ状態を解除する解除手段と、
を備えることを特徴とする通信装置。
In a communication system in which a plurality of nodes are configured to be able to transmit and receive frames via a communication bus, and a sleep state of another node is canceled by a wakeup signal transmitted from a node whose sleep state is canceled by an internal event. A communication device that functions as:
A detection circuit that outputs a specific signal when the signal level of the communication bus continuously changes a specified number of times at intervals not exceeding a specified time;
Cancellation means for canceling the sleep state of the communication device when the specific signal is output by the detection circuit;
A communication apparatus comprising:
前記規定時間は、前記フレームで許容されている信号レベルの変化しない最長時間よりも長い時間に設定されていること
を特徴とする請求項1に記載の通信装置。
The communication apparatus according to claim 1, wherein the specified time is set to a time longer than a longest time during which the signal level allowed in the frame does not change.
前記規定回数は、前記フレームに含まれる信号レベルの最小変化数以下に設定されていること
を特徴とする請求項1又は請求項2に記載の通信装置。
The communication apparatus according to claim 1, wherein the specified number of times is set to be equal to or less than a minimum number of signal level changes included in the frame.
複数のノードが通信バスを介してフレームを送受信可能に構成され、内部イベントによりスリープ状態が解除されたノードから送信されるウェイクアップ信号によって他のノードのスリープ状態が解除される通信システムにおいて、他のノードからのウェイクアップ信号によりスリープ状態が解除されなかったノードのスリープ状態を解除する方法であって、
前記通信バスの信号レベルが規定時間を超えない間隔で規定回数連続して変化した場合にスリープ状態を解除すること
を特徴とする通信装置のスリープ状態解除方法。
In a communication system in which a plurality of nodes are configured to be able to transmit and receive frames via a communication bus, and a sleep state of another node is canceled by a wakeup signal transmitted from a node whose sleep state is canceled by an internal event. A method for canceling a sleep state of a node whose sleep state has not been canceled by a wake-up signal from the node,
A method for canceling a sleep state of a communication device, wherein the sleep state is canceled when the signal level of the communication bus changes continuously a predetermined number of times at intervals not exceeding a predetermined time.
JP2010115386A 2010-05-19 2010-05-19 Communication device and method for canceling sleep state of communication device Expired - Fee Related JP5471816B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010115386A JP5471816B2 (en) 2010-05-19 2010-05-19 Communication device and method for canceling sleep state of communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010115386A JP5471816B2 (en) 2010-05-19 2010-05-19 Communication device and method for canceling sleep state of communication device

Publications (2)

Publication Number Publication Date
JP2011244264A true JP2011244264A (en) 2011-12-01
JP5471816B2 JP5471816B2 (en) 2014-04-16

Family

ID=45410448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010115386A Expired - Fee Related JP5471816B2 (en) 2010-05-19 2010-05-19 Communication device and method for canceling sleep state of communication device

Country Status (1)

Country Link
JP (1) JP5471816B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0491534A (en) * 1990-08-06 1992-03-25 Furukawa Electric Co Ltd:The Current consumption controlling device
JPH06261100A (en) * 1993-03-02 1994-09-16 Nissan Motor Co Ltd Communications system
JP2008263346A (en) * 2007-04-11 2008-10-30 Denso Corp On-vehicle communication device
JP2009060242A (en) * 2007-08-30 2009-03-19 Fujitsu Microelectronics Ltd Data transmission circuit and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0491534A (en) * 1990-08-06 1992-03-25 Furukawa Electric Co Ltd:The Current consumption controlling device
JPH06261100A (en) * 1993-03-02 1994-09-16 Nissan Motor Co Ltd Communications system
JP2008263346A (en) * 2007-04-11 2008-10-30 Denso Corp On-vehicle communication device
JP2009060242A (en) * 2007-08-30 2009-03-19 Fujitsu Microelectronics Ltd Data transmission circuit and control method thereof

Also Published As

Publication number Publication date
JP5471816B2 (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US6959014B2 (en) Method and apparatus for operating a communication bus
US7783908B2 (en) Method and device to wake-up nodes in a serial data bus
CN112422297B (en) Systems, methods, and devices for wake-up detection at a controller of a physical layer
US11775045B2 (en) Managing power at a station via a physical layer device and related systems, methods and devices
JP2012049885A (en) Transceiver and communication device
JP6460049B2 (en) Ringing suppression circuit
US20120297105A1 (en) Pattern detection for partial networking
JP5387170B2 (en) Disconnection abnormality detection device
JP5778099B2 (en) Receiver circuit
JP5418208B2 (en) Communication signal processing device and communication device
US8948209B2 (en) Transmission over an 12C bus
JP5601357B2 (en) Electronic control unit
US20070250741A1 (en) Selective bit error detection at a bus device
EP3050261B1 (en) Can fd end-of-frame detector, can bit stream processing device, method for detecting the end of a can fd frame, and method of operating a can bit stream processor
JP2015154189A (en) Communication system, gateway device, communication node and communication control method
JP5471816B2 (en) Communication device and method for canceling sleep state of communication device
JP5440418B2 (en) Bus system having a plurality of protocol buses and bus switching device used therefor
JP5617795B2 (en) Communication system and master node and slave node used in the communication system
JP5113229B2 (en) Communication system, transceiver, node
JP7092612B2 (en) Electronic control device
US11533684B2 (en) Relay device
JP2006165992A (en) Squelch circuit and communication equipment using it
JP2013154653A (en) Vehicle mounted communication apparatus
CN220820664U (en) I2C slave device detection circuit
JP5561034B2 (en) Communication apparatus and wakeup command recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130806

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131003

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: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140120

R151 Written notification of patent or utility model registration

Ref document number: 5471816

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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