JP2017046053A - Master node - Google Patents

Master node Download PDF

Info

Publication number
JP2017046053A
JP2017046053A JP2015164934A JP2015164934A JP2017046053A JP 2017046053 A JP2017046053 A JP 2017046053A JP 2015164934 A JP2015164934 A JP 2015164934A JP 2015164934 A JP2015164934 A JP 2015164934A JP 2017046053 A JP2017046053 A JP 2017046053A
Authority
JP
Japan
Prior art keywords
signal
level
microcomputer
mode
switching
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
JP2015164934A
Other languages
Japanese (ja)
Other versions
JP6413979B2 (en
Inventor
仁咲 林
Misaki Hayashi
仁咲 林
岸 弘行
Hiroyuki Kishi
弘行 岸
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 JP2015164934A priority Critical patent/JP6413979B2/en
Publication of JP2017046053A publication Critical patent/JP2017046053A/en
Application granted granted Critical
Publication of JP6413979B2 publication Critical patent/JP6413979B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a master node that prevents a wakeup signal from being undetected.SOLUTION: A master node is connected with a slave node via communication wiring and includes a transceiver and a microcomputer. The transceiver includes a transmitter, a receiver, and a comparison unit that outputs a comparison signal indicating comparison between a transmission signal input into the transmitter and a reception signal input into the receiver to the microcomputer. The microcomputer determines whether or not the slave node has output a wakeup signal to the communication wiring on the basis of the comparison signal from the start of output of a sleep signal.SELECTED DRAWING: Figure 5

Description

本発明は、通信配線を介して複数のスレーブノードと通信可能に接続されたマスタノードに関するものである。   The present invention relates to a master node that is communicably connected to a plurality of slave nodes via communication wiring.

特許文献1に示されるように、複数のスレーブと1つのマスタとがバス通信路を介して接続された通信システムが知られている。スレーブとマスタとは、ウェイクアップモード若しくはスリープモードで動作する。   As shown in Patent Document 1, a communication system in which a plurality of slaves and one master are connected via a bus communication path is known. The slave and the master operate in a wake-up mode or a sleep mode.

マスタはスリープ禁止要因がなくなるとスリープ信号をスレーブに送信する。そしてマスタは、スリープ信号を出力し終わった後から所定時間経過するまでに、ドミナントパルスを受信するか否かを判断する。ドミナントパルスを受信するとマスタは、ウェイクアップモードを継続する。これとは異なり、ドミナントパルスを受信しないとマスタは、スリープモードに移行する。   The master sends a sleep signal to the slave when the sleep prohibition factor disappears. Then, the master determines whether or not to receive a dominant pulse after a predetermined time elapses after the sleep signal is output. When receiving the dominant pulse, the master continues the wake-up mode. On the other hand, if the dominant pulse is not received, the master enters the sleep mode.

特許第5617795号公報Japanese Patent No. 5617795

上記したように特許文献1に記載の通信システムのマスタは、スリープ信号の出力し終わりを確認した後にドミナントパルス(ウェイクアップ信号)の検出を行う。したがってスリープ信号の出力し終わりからウェイクアップ信号の検出を行うまでの間に、確認のためのタイムラグが生じる。そのためこのタイムラグにおいてマスタはウェイクアップ信号を検出することができず、これによってウェイクアップモードを継続することができなくなる虞がある。   As described above, the master of the communication system described in Patent Document 1 detects the dominant pulse (wake-up signal) after confirming the end of the output of the sleep signal. Therefore, a time lag for confirmation occurs between the end of outputting the sleep signal and the detection of the wake-up signal. Therefore, in this time lag, the master cannot detect the wakeup signal, and there is a possibility that the wakeup mode cannot be continued.

そこで本発明は上記問題点に鑑み、ウェイクアップ信号の検出ができなくなることの抑制されたマスタノードを提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a master node in which detection of a wakeup signal cannot be performed.

上記した目的を達成するための開示された発明の1つは、通信配線(30)を介して複数のスレーブノード(10)と通信可能に接続されたマスタノードであって、
通信配線と接続されたトランシーバ(50)と、
トランシーバを介して通信配線と接続されたマイクロコンピュータ(40)と、を有し、
トランシーバは、
マイクロコンピュータから出力された送信信号を通信配線へ出力する送信機(51)と、
通信配線から入力された受信信号をマイクロコンピュータへ出力する受信機(52)と、
送信機に入力される送信信号と受信機に入力される受信信号とを比較した比較信号をマイクロコンピュータへ出力する比較部(53)と、を有し、
複数のスレーブノードとトランシーバそれぞれは、動作モードとして、通信モードと省電力モードを有し、
複数のスレーブノードそれぞれは、複数のスレーブノードそれぞれを省電力モードから通信モードへと移行させるウェイクアップ信号を通信配線に出力する機能を有し、
マイクロコンピュータは、送信信号として、複数のスレーブノードそれぞれを通信モードから省電力モードへと移行させるスリープ信号を有し、
マイクロコンピュータは、スリープ信号を出力し始めてからの比較信号に基づいて、ウェイクアップ信号が通信配線に出力されたか否かを判定する。
One of the disclosed inventions for achieving the above object is a master node communicably connected to a plurality of slave nodes (10) via a communication wiring (30),
A transceiver (50) connected to the communication wiring;
A microcomputer (40) connected to the communication wiring via the transceiver,
Transceiver
A transmitter (51) for outputting a transmission signal output from the microcomputer to the communication wiring;
A receiver (52) for outputting a reception signal input from the communication wiring to the microcomputer;
A comparison unit (53) for outputting a comparison signal obtained by comparing the transmission signal input to the transmitter and the reception signal input to the receiver to the microcomputer;
Each of the plurality of slave nodes and the transceiver has a communication mode and a power saving mode as operation modes.
Each of the plurality of slave nodes has a function of outputting, to the communication wiring, a wakeup signal that causes each of the plurality of slave nodes to shift from the power saving mode to the communication mode.
The microcomputer has a sleep signal that causes each of the plurality of slave nodes to shift from the communication mode to the power saving mode as a transmission signal,
The microcomputer determines whether or not a wake-up signal is output to the communication wiring based on the comparison signal after starting to output the sleep signal.

マイクロコンピュータ(40)からスリープ信号が出力され始めてから出力され終わるまでの間、送信機(51)に入力される送信信号と受信機(52)に入力される受信信号とは実質的に同一となる。また、スリープ信号が出力され終わってから後、スレーブノード(10)がウェイクアップ信号を出力しない場合においても、送信信号と受信信号とは実質的に同一となる。しかしながらスリープ信号が出力され終わってから後、スレーブノード(10)がウェイクアップ信号を出力すると、送信信号と受信信号とは実質的に相違する。このようにウェイクアップ信号の有無に応じて、送信信号と受信信号とが実質的に相違する。そのため、送信信号と受信信号とを比較した比較信号に基づいて、ウェイクアップ信号が通信配線(30)に出力されたか否かを判定することができる。   The transmission signal input to the transmitter (51) and the reception signal input to the receiver (52) are substantially the same from when the sleep signal is output from the microcomputer (40) to when it is output. Become. Further, even when the slave node (10) does not output the wakeup signal after the sleep signal is output, the transmission signal and the reception signal are substantially the same. However, when the slave node (10) outputs the wakeup signal after the sleep signal is output, the transmission signal and the reception signal are substantially different. As described above, the transmission signal and the reception signal are substantially different depending on the presence or absence of the wake-up signal. Therefore, it can be determined whether or not the wake-up signal is output to the communication wiring (30) based on the comparison signal obtained by comparing the transmission signal and the reception signal.

ところで、スリープ信号の出力し終わりを確認した後に、ウェイクアップ信号の検出を行う構成の場合、スリープ信号の出力し終わりからウェイクアップ信号の検出を行うまでの間に、確認のためのタイムラグが生じる。したがってこのタイムラグにおいてウェイクアップ信号を検出することができなくなる。   By the way, in the case of detecting the wake-up signal after confirming the end of outputting the sleep signal, a time lag for confirmation occurs between the end of outputting the sleep signal and detecting the wake-up signal. . Therefore, the wakeup signal cannot be detected at this time lag.

これに対して本発明では、上記したように比較信号に基づくウェイクアップ信号の検出を、スリープ信号の出力し始めから行う。このために上記の比較構成とは異なり、ウェイクアップ信号の検出ができなくなることが抑制される。   On the other hand, in the present invention, as described above, the detection of the wakeup signal based on the comparison signal is performed from the beginning of outputting the sleep signal. For this reason, unlike the above-described comparison configuration, it is possible to prevent the detection of the wake-up signal.

なお、特許請求の範囲に記載の請求項、および、課題を解決するための手段それぞれに記載の要素に括弧付きで符号をつけている。この括弧付きの符号は実施形態に記載の各構成要素との対応関係を簡易的に示すためのものであり、実施形態に記載の要素そのものを必ずしも示しているわけではない。括弧付きの符号の記載は、いたずらに特許請求の範囲を狭めるものではない。   In addition, the code | symbol with the parenthesis is attached | subjected to the element as described in the claim as described in a claim, and each means for solving a subject. The reference numerals in parentheses are for simply indicating the correspondence with each component described in the embodiment, and do not necessarily indicate the element itself described in the embodiment. The description of the reference numerals with parentheses does not unnecessarily narrow the scope of the claims.

第1実施形態に係る通信システムの概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a communication system according to a first embodiment. 第1実施形態に係るマスタのトランシーバの概略構成を示す回路図である。1 is a circuit diagram showing a schematic configuration of a master transceiver according to a first embodiment. FIG. 比較部に入力される信号の遅延と、ウェイクアップ信号を示すタイミングチャートである。It is a timing chart which shows the delay of the signal inputted into a comparison part, and a wake-up signal. マスタのスリープ処理を説明するためのタイミングチャートである。It is a timing chart for demonstrating the sleep process of a master. マスタのスリープ処理を説明するためのタイミングチャートである。It is a timing chart for demonstrating the sleep process of a master. マスタのスリープ処理を説明するためのフローチャートである。It is a flowchart for demonstrating the sleep process of a master. スリープ処理の変形例を説明するためのタイミングチャートである。It is a timing chart for demonstrating the modification of a sleep process. スリープ処理の変形例を説明するためのフローチャートである。It is a flowchart for demonstrating the modification of a sleep process. スリープ処理の変形例を説明するためのフローチャートである。It is a flowchart for demonstrating the modification of a sleep process. 第2実施形態に係る通信システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the communication system which concerns on 2nd Embodiment. 第2実施形態に係るマスタのトランシーバの概略構成を示す回路図である。It is a circuit diagram which shows schematic structure of the transceiver of the master which concerns on 2nd Embodiment. マスタのスリープ処理を説明するためのタイミングチャートである。It is a timing chart for demonstrating the sleep process of a master. マスタのスリープ処理を説明するためのフローチャートである。It is a flowchart for demonstrating the sleep process of a master. モード判定部の判定処理を説明するためのフローチャートである。It is a flowchart for demonstrating the determination process of a mode determination part. トランシーバの変形例の概略構成を示す回路図である。It is a circuit diagram which shows schematic structure of the modification of a transceiver. 判定処理の変形例を説明するためのタイミングチャートである。It is a timing chart for demonstrating the modification of a determination process. 判定処理の変形例を説明するためのフローチャートである。It is a flowchart for demonstrating the modification of a determination process.

以下、本発明を車両の通信システムに適用した場合の実施形態を図に基づいて説明する。
(第1実施形態)
図1〜図6に基づいて本実施形態に係る通信システムを説明する。なお図3〜図5では信号と状態を明りょうとするため、スリープ信号、ウェイクアップ信号の検出状態、および、省電力モードそれぞれにハッチングを入れている。
DESCRIPTION OF EMBODIMENTS Hereinafter, an embodiment when the present invention is applied to a vehicle communication system will be described with reference to the drawings.
(First embodiment)
A communication system according to the present embodiment will be described with reference to FIGS. In FIGS. 3 to 5, the sleep signal, the detection state of the wake-up signal, and the power saving mode are hatched in order to clarify the signals and states.

図1に示すように通信システム100は、複数のスレーブノード10と1つのマスタノード20とが通信配線30を介して電気的に接続され、互いに信号を送受信可能(通信可能)となっている。本実施形態では通信プロトコルとしてLIN通信を採用している。マスタノード20は通信配線30(LINバス)に送信要求(ヘッダー)を送信し、スレーブノード10は送信要求に応じたデータ(レスポンス)を通信配線30に送信する。またマスタノード20は、ヘッダーとレスポンスとから成るフレームも通信配線30に送信する。   As shown in FIG. 1, in the communication system 100, a plurality of slave nodes 10 and one master node 20 are electrically connected via a communication wiring 30 so that signals can be transmitted and received (communicable). In this embodiment, LIN communication is adopted as a communication protocol. The master node 20 transmits a transmission request (header) to the communication wiring 30 (LIN bus), and the slave node 10 transmits data (response) corresponding to the transmission request to the communication wiring 30. The master node 20 also transmits a frame including a header and a response to the communication wiring 30.

マスタノード20がヘッダーとフレームを通信配線30に送信するタイミングは、LINスケジュールによって定められている。これにより通信配線30にて異なる信号が衝突することが避けられている。以下においてはスレーブノード10とマスタノード20それぞれを、単にスレーブ10、マスタ20と示す。   The timing at which the master node 20 transmits the header and the frame to the communication wiring 30 is determined by the LIN schedule. Thereby, it is avoided that different signals collide in the communication wiring 30. Hereinafter, the slave node 10 and the master node 20 are simply referred to as a slave 10 and a master 20, respectively.

図4に示すようにスレーブ10とマスタ20との間で入出力される通信信号は、LoレベルとHiレベルとからなる。Loレベルがドミナント、Hiレベルがレセッシブである。   As shown in FIG. 4, a communication signal input / output between the slave 10 and the master 20 is composed of a Lo level and a Hi level. Lo level is dominant and Hi level is recessive.

スレーブ10とマスタ20それぞれは動作モードとして、LIN通信する通信モード、通信モードよりも消費電力の低い省電力モードを有する。スレーブ10とマスタ20それぞれが省電力モードの場合において、複数のスレーブ10の内の1つに外部の上位ECUなどから起動を指示する信号が入力されると、スレーブ10はウェイクアップ信号を通信配線30に出力する。これにより他のスレーブ10とマスタ20それぞれは起動処理を行い、省電力モードから通信モードに移行する。   Each of the slave 10 and the master 20 has a communication mode for performing LIN communication and a power saving mode with lower power consumption than the communication mode. When each of the slave 10 and the master 20 is in the power saving mode, when a signal instructing activation is input to one of the plurality of slaves 10 from an external host ECU or the like, the slave 10 sends a wake-up signal to the communication wiring. Output to 30. As a result, each of the other slaves 10 and the master 20 performs activation processing, and shifts from the power saving mode to the communication mode.

またスレーブ10とマスタ20それぞれが通信モードの場合において、マスタ20がスリープ信号を通信配線30に出力すると、複数のスレーブ10それぞれはスリープ処理を行い、通信モードから省電力モードに移行する。後述するようにマスタ20はスリープ処理においてウェイクアップ信号の検出を行う。そしてマスタ20はウェイクアップ信号が入力されないと判定すると、通信モードから省電力モードに移行する。これとは異なり、ウェイクアップ信号が入力されたと判定するとマスタ20は、通信モードを継続する。   When each of the slave 10 and the master 20 is in the communication mode, when the master 20 outputs a sleep signal to the communication wiring 30, each of the plurality of slaves 10 performs a sleep process and shifts from the communication mode to the power saving mode. As will be described later, the master 20 detects a wake-up signal in the sleep process. When the master 20 determines that the wakeup signal is not input, the master 20 shifts from the communication mode to the power saving mode. On the other hand, when it is determined that the wake-up signal is input, the master 20 continues the communication mode.

図1に示すようにマスタ20は、マイクロコンピュータ40とトランシーバ50を有する。マイクロコンピュータ40とトランシーバ50とは、Tx端子、EN端子、DiffEN端子、および、Rx端子の4端子を介して接続されている。これによりマイクロコンピュータ40はトランシーバ50を介して通信配線30と接続されている。以下においてはマイクロコンピュータ40を、単にマイコン40と示す。   As shown in FIG. 1, the master 20 includes a microcomputer 40 and a transceiver 50. The microcomputer 40 and the transceiver 50 are connected via four terminals, a Tx terminal, an EN terminal, a DiffEN terminal, and an Rx terminal. Thereby, the microcomputer 40 is connected to the communication wiring 30 via the transceiver 50. Hereinafter, the microcomputer 40 is simply referred to as the microcomputer 40.

マイコン40はヘッダーやフレームを送信信号としてTx端子に出力する。またマイコン40はトランシーバ50の動作モードの切り換えを指示する動作モード切り換え信号をEN端子に出力する。さらにマイコン40は、ウェイクアップ信号の検出状態の切り換えをトランシーバ50に指示する検出状態切り換え信号をDiffEN端子に出力する。そしてこのマイコン40には、通信配線30の信号(受信信号)や後述の比較信号がRx端子を介して入力される。   The microcomputer 40 outputs a header or a frame as a transmission signal to the Tx terminal. The microcomputer 40 outputs an operation mode switching signal for instructing switching of the operation mode of the transceiver 50 to the EN terminal. Further, the microcomputer 40 outputs a detection state switching signal for instructing the transceiver 50 to switch the detection state of the wakeup signal to the DiffEN terminal. A signal (received signal) from the communication wiring 30 and a comparison signal described later are input to the microcomputer 40 via the Rx terminal.

以下においては、Tx端子、EN端子、DiffEN端子、および、Rx端子それぞれの信号を、単にTx、EN、DiffEN、および、Rxと示す。これは、図面においても同様である。   In the following, the signals at the Tx terminal, EN terminal, DiffEN terminal, and Rx terminal are simply denoted as Tx, EN, DiffEN, and Rx, respectively. The same applies to the drawings.

図2に示すようにトランシーバ50は、送信機51と、受信機52と、比較部53と、接続切り換え部54と、を有する。そして比較部53はコンパレータ55とフィルタ56を有し、接続切り換え部54はスイッチ57とANDゲート58を有する。上記の省電力モードにおいてトランシーバ50の送信機51の駆動が停止する。これはスレーブ10においても同様で、省電力モードにおいてスレーブ10の送信機が停止状態となる。   As shown in FIG. 2, the transceiver 50 includes a transmitter 51, a receiver 52, a comparison unit 53, and a connection switching unit 54. The comparison unit 53 includes a comparator 55 and a filter 56, and the connection switching unit 54 includes a switch 57 and an AND gate 58. In the power saving mode, the driving of the transmitter 51 of the transceiver 50 is stopped. The same applies to the slave 10, and the transmitter of the slave 10 is stopped in the power saving mode.

送信機51の出力端子が通信配線30に接続され、その入力端子がTx端子に接続されている。この送信機51にはEN端子も接続されている。受信機52の入力端子は通信配線30に接続され、その出力端子がANDゲート58の第1入力端子に接続されている。コンパレータ55の非反転入力端子は通信配線30に接続され、反転入力端子がTx端子に接続されている。コンパレータ55の出力端子はフィルタ56とスイッチ57を介してANDゲート58の第2入力端子に接続される。そしてスイッチ57は、Hiレベルの基準電位とANDゲート58、および、フィルタ56とANDゲート58との間に設けられ、DiffEN端子と接続されている。ANDゲート58の出力端子はRx端子に接続されている。   An output terminal of the transmitter 51 is connected to the communication wiring 30 and an input terminal thereof is connected to the Tx terminal. The transmitter 51 is also connected to an EN terminal. An input terminal of the receiver 52 is connected to the communication wiring 30, and an output terminal thereof is connected to the first input terminal of the AND gate 58. The non-inverting input terminal of the comparator 55 is connected to the communication wiring 30 and the inverting input terminal is connected to the Tx terminal. The output terminal of the comparator 55 is connected to the second input terminal of the AND gate 58 through the filter 56 and the switch 57. The switch 57 is provided between the high-level reference potential and the AND gate 58, and between the filter 56 and the AND gate 58, and is connected to the DiffEN terminal. The output terminal of the AND gate 58 is connected to the Rx terminal.

送信機51はENの電圧レベル(動作モード切り換え信号)に応じて通信モード若しくは省電力モードに切り換わる。本実施形態の送信機51はENがHiレベルの場合に通信モード、Loレベルの場合に省電力モードになる。送信機51は通信モードになると送信信号を通信配線30に出力し、省電力モードになると送信信号の通信配線30への出力を停止する。   The transmitter 51 switches to the communication mode or the power saving mode according to the EN voltage level (operation mode switching signal). The transmitter 51 of the present embodiment is in the communication mode when EN is at the Hi level, and is in the power saving mode when at the Lo level. The transmitter 51 outputs a transmission signal to the communication wiring 30 when it enters the communication mode, and stops outputting the transmission signal to the communication wiring 30 when it enters the power saving mode.

受信機52は通信配線30から入力される受信信号をANDゲート58に出力する。ANDゲート58は、2つの入力信号が共にHiレベルの場合にHiレベルの信号を出力し、2つの入力信号の内の少なくとも一方がLoレベルの場合にLoレベルの信号を出力する。後述するようにウェイクアップ信号を検出しない場合、ANDゲート58はスイッチ57を介して基準電位と接続される。そのためウェイクアップ信号を検出しない場合、ANDゲート58の出力は受信信号と同一となる。すなわち、Rxは受信信号と同一となる。   The receiver 52 outputs a reception signal input from the communication wiring 30 to the AND gate 58. The AND gate 58 outputs a Hi level signal when both of the two input signals are at the Hi level, and outputs a Lo level signal when at least one of the two input signals is at the Lo level. As will be described later, when the wake-up signal is not detected, the AND gate 58 is connected to the reference potential via the switch 57. Therefore, when the wakeup signal is not detected, the output of the AND gate 58 is the same as the received signal. That is, Rx is the same as the received signal.

比較部53のコンパレータ55の非反転入力端子に受信信号が入力され、反転入力端子に送信信号が出力される。したがって受信信号が送信信号よりも電圧レベルが低い場合にコンパレータ55はLoレベルを出力する。これとは異なり、受信信号が送信信号よりも電圧レベルが高い場合、コンパレータ55はHiレベルを出力する。また受信信号と送信信号とが電圧レベルが等しい場合においても、コンパレータ55はHiレベルを出力する。   The reception signal is input to the non-inverting input terminal of the comparator 55 of the comparator 53, and the transmission signal is output to the inverting input terminal. Therefore, when the voltage level of the received signal is lower than that of the transmitted signal, the comparator 55 outputs the Lo level. In contrast, when the received signal has a higher voltage level than the transmitted signal, the comparator 55 outputs a Hi level. Even when the reception signal and the transmission signal have the same voltage level, the comparator 55 outputs the Hi level.

以上によりマスタ20のマイコン40が、図3に示すスリープ信号を出力した場合、受信信号と送信信号とは実質的に同一となることが期待される。しかしながら信号の遅延のため、スリープ信号の非反転入力端子と反転入力端子それぞれへの入力タイミングが、遅延時間分だけずれる。そのため、送信信号と受信信号とが実質的に同一であるにもかかわらず、コンパレータ55はHiレベルではなく、遅延時間分だけ連続してLoレベルを出力することがある。   As described above, when the microcomputer 40 of the master 20 outputs the sleep signal shown in FIG. 3, it is expected that the reception signal and the transmission signal are substantially the same. However, due to signal delay, the input timing of the sleep signal to the non-inverting input terminal and the inverting input terminal is shifted by the delay time. Therefore, although the transmission signal and the reception signal are substantially the same, the comparator 55 may output the Lo level continuously for the delay time instead of the Hi level.

これに対してスレーブ10が図3に示すウェイクアップ信号を出力した場合、送信信号と受信信号とは実質的に異なる。ウェイクアップ信号は図3に示すように遅延時間よりも長い規定時間の間、Loレベルの信号である。したがってコンパレータ55にウェイクアップ信号が入力されている間、コンパレータ55は規定時間分だけ連続してLoレベルを出力する。なお、スレーブ10がウェイクアップ信号を出力した後は、マスタ20がヘッダーやフレームを出力しない限り、送信信号と受信信号とはHiレベルに保たれる。   On the other hand, when the slave 10 outputs the wake-up signal shown in FIG. 3, the transmission signal and the reception signal are substantially different. As shown in FIG. 3, the wake-up signal is a Lo level signal for a specified time longer than the delay time. Therefore, while the wake-up signal is input to the comparator 55, the comparator 55 outputs the Lo level continuously for a specified time. Note that after the slave 10 outputs the wake-up signal, the transmission signal and the reception signal are kept at the Hi level unless the master 20 outputs a header or a frame.

フィルタ56は入力信号がHiレベルの場合、および、Loレベルの入力信号の連続して入力される時間が規定時間よりも短い場合、Hiレベルを出力する。そしてフィルタ56は、Loレベルの入力信号の連続して入力される時間が規定時間以上の場合、Loレベルを出力し続ける。したがってフィルタ56は、マイコン40がスリープ信号を出力した後において、コンパレータ55にウェイクアップ信号が入力されていない場合、Hiレベルを出力し続ける。これとは異なりコンパレータ55にウェイクアップ信号が入力された場合、フィルタ56はLoレベルを出力し続ける。このフィルタ56の出力が比較信号に相当する。   The filter 56 outputs the Hi level when the input signal is at the Hi level and when the continuous input time of the Lo level input signal is shorter than the specified time. The filter 56 continues to output the Lo level when the continuous input time of the Lo level input signal is longer than the specified time. Therefore, after the microcomputer 40 outputs the sleep signal, the filter 56 continues to output the Hi level when the wakeup signal is not input to the comparator 55. In contrast, when the wakeup signal is input to the comparator 55, the filter 56 continues to output the Lo level. The output of the filter 56 corresponds to a comparison signal.

以上に示したように比較部53は、ウェイクアップ信号を検出しない場合にHiレベルの比較信号を出力し続け、ウェイクアップ信号を検出するとLoレベルの比較信号を出力し続ける。なお、遅延時間よりも長く、規定時間よりも短い時間を設定時間とすると、フィルタ56は以下に示すように動作してもよい。すなわちフィルタ56は、入力信号がHiレベルの場合、および、Loレベルの入力信号の連続して入力される時間が設定時間よりも短い場合、Hiレベルの比較信号を出力する。そしてフィルタ56は、Loレベルの入力信号の連続して入力される時間が設定時間以上の場合、Loレベルの比較信号を出力し続けるようにしてもよい。   As described above, the comparison unit 53 continues to output the Hi level comparison signal when the wakeup signal is not detected, and continues to output the Lo level comparison signal when the wakeup signal is detected. Note that if the set time is a time longer than the delay time and shorter than the specified time, the filter 56 may operate as described below. That is, the filter 56 outputs a high level comparison signal when the input signal is at the high level and when the continuous input time of the low level input signal is shorter than the set time. The filter 56 may continue to output the Lo level comparison signal when the continuous input time of the Lo level input signal is longer than the set time.

接続切り換え部54のスイッチ57は、DiffENの電圧レベル(検出状態切り換え信号)がLoレベルの場合に基準電位とANDゲート58を接続する。これとは反対にDiffENがHiレベルの場合にスイッチ57は、フィルタ56とANDゲート58を接続する。これにより、DiffENがLoレベルの場合にRx端子には受信信号が入力される。そしてDiffENがHiレベルの場合にRx端子には、比較部53のウェイクアップ信号の検出に応じた信号(比較信号)が入力される。   The switch 57 of the connection switching unit 54 connects the reference potential and the AND gate 58 when the voltage level of DiffEN (detection state switching signal) is Lo level. On the contrary, when DiffEN is at the Hi level, the switch 57 connects the filter 56 and the AND gate 58. As a result, when DiffEN is at the Lo level, a reception signal is input to the Rx terminal. When DiffEN is at the Hi level, a signal (comparison signal) corresponding to the detection of the wakeup signal of the comparison unit 53 is input to the Rx terminal.

図4および図5に示すようにマイコン40は、スリープ信号を出力し始めるまでDiffENをLoレベルにする。これによりマイコン40はRx端子から受信信号を受け取る。またマイコン40は、スリープ信号の出力し始める際にDiffENをLoレベルからHiレベルに切り換える。これによりマイコン40はRx端子から比較信号を受け取る。   As shown in FIGS. 4 and 5, the microcomputer 40 sets DiffEN to Lo level until it starts outputting the sleep signal. Thereby, the microcomputer 40 receives the reception signal from the Rx terminal. Further, the microcomputer 40 switches DiffEN from the Lo level to the Hi level when starting to output the sleep signal. Thereby, the microcomputer 40 receives the comparison signal from the Rx terminal.

次に、図4および図5に基づいて、マスタ20のスリープ処理を説明する。図4および図5の始めにおいて、複数のスレーブ10と1つのマスタ20それぞれは通信モードとなっている。この際、ENはHiレベルに固定され、送信機51は通信モードとなっている。そしてDiffENはLoレベルに固定され、Rxが通信配線30(LINバス)と同一となり、マスタ20はウェイクアップ信号の非検出状態になっている。マスタ20はヘッダーやフレームをLINスケジュールにしたがってTx端子に出力し、スレーブ10はマスタ20の出力したヘッダーに応じたレスポンスを自身のTx端子に出力している。   Next, the sleep process of the master 20 will be described based on FIG. 4 and FIG. At the beginning of FIGS. 4 and 5, each of the plurality of slaves 10 and one master 20 is in a communication mode. At this time, EN is fixed at the Hi level, and the transmitter 51 is in the communication mode. DiffEN is fixed at Lo level, Rx is the same as the communication wiring 30 (LIN bus), and the master 20 is in a non-detection state of the wakeup signal. The master 20 outputs a header and a frame to the Tx terminal according to the LIN schedule, and the slave 10 outputs a response corresponding to the header output from the master 20 to its own Tx terminal.

このような通信状態においてマスタ20がスリープ処理を行うべく、スリープ信号を出力すると、各スレーブ10は通信モードから省電力モードに切り換わる。マスタ20はスリープ信号を出力し始める際に、DiffENをLoレベルからHiレベルに切り換える。これによりRxが比較部53の出力(比較信号)と同一となる。この結果、マスタ20はウェイクアップ信号の検出状態に移行する。   When the master 20 outputs a sleep signal to perform the sleep process in such a communication state, each slave 10 switches from the communication mode to the power saving mode. When the master 20 starts outputting the sleep signal, it switches DiffEN from the Lo level to the Hi level. As a result, Rx becomes the same as the output (comparison signal) of the comparator 53. As a result, the master 20 shifts to a wake-up signal detection state.

マイコン40は、DiffENをLoレベルからHiレベルへと立ち上げてから、RxがHiレベルからLoレベルに変化するか否かを判定する。すなわちマイコン40は、ウェイクアップ信号を検出したか否かを判定する。DiffENをLoレベルからHiレベルへと立ち上げてから判定時間経過してもウェイクアップ信号を検出しなかった場合、マイコン40は図4に示すようにENをHiレベルからLoレベルへと切り換える。これにより送信機51を通信モードから省電力モードに切り換える。そして図示しないが、この後にウェイクアップ信号を検出するとマイコン40は、ENをLoレベルからHiレベルへと切り換え、DiffENをHiレベルからLoレベルへと切り換える。これにより送信機51が省電力モードから通信モードに切り換わり、マスタ20はウェイクアップ信号の非検出状態に移行する。   The microcomputer 40 raises DiffEN from the Lo level to the Hi level, and then determines whether or not Rx changes from the Hi level to the Lo level. That is, the microcomputer 40 determines whether or not a wakeup signal is detected. If the wakeup signal is not detected even after the determination time has elapsed since DiffEN was raised from Lo level to Hi level, the microcomputer 40 switches EN from Hi level to Lo level as shown in FIG. Thereby, the transmitter 51 is switched from the communication mode to the power saving mode. Although not shown in the drawing, when a wakeup signal is detected thereafter, the microcomputer 40 switches EN from the Lo level to the Hi level, and switches DiffEN from the Hi level to the Lo level. As a result, the transmitter 51 switches from the power saving mode to the communication mode, and the master 20 shifts to a non-detection state of the wakeup signal.

これとは異なり、図5に示すようにマスタ20がスリープ信号を出力し終わった直後にRxがHiレベルからLoレベルに変化し、マイコン40がウェイクアップ信号を検出すると、マイコン40はDiffENをHiレベルからLoレベルへと切り換える。そしてENをHiレベルに維持する。これにより送信機51は通信モードを維持し、マスタ20はウェイクアップ信号の非検出状態に移行する。なお上記の判定時間は、ウェイクアップ信号の規定時間よりも数倍長い時間である。   Unlike this, as shown in FIG. 5, immediately after the master 20 outputs the sleep signal, Rx changes from the Hi level to the Lo level, and when the microcomputer 40 detects the wake-up signal, the microcomputer 40 sets DiffEN to Hi. Switch from level to Lo level. Then, EN is maintained at the Hi level. As a result, the transmitter 51 maintains the communication mode, and the master 20 shifts to a non-detection state of the wakeup signal. Note that the above determination time is several times longer than the specified time of the wake-up signal.

次に、図6に基づいてマイコン40のスリープ処理を説明する。ただしスリープ処理をする際にマスタ20は通信モードになっており、ENはHiレベルになっている。   Next, the sleep process of the microcomputer 40 will be described with reference to FIG. However, when performing the sleep process, the master 20 is in the communication mode and EN is at the Hi level.

先ずステップS10においてマイコン40は、スレーブ10のスリープが許可となっているか否かを判定する。スリープが許可となっている場合、マイコン40はステップS20へと進む。これとは異なり、スリープが禁止となっている場合、マイコン40はステップS10を繰り返し、スリープが許可となるまで待機する。   First, in step S10, the microcomputer 40 determines whether or not the slave 10 is allowed to sleep. If sleep is permitted, the microcomputer 40 proceeds to step S20. On the other hand, if sleep is prohibited, the microcomputer 40 repeats step S10 and waits until sleep is permitted.

ステップS20へ進むとマイコン40は、DiffENをLoレベルからHiレベルにする。これによりマスタ20はウェイクアップ信号の検出状態となり、マイコン40はRx端子を介して比較信号を検出する。この後にマイコン40はステップS30へと進む。   In step S20, the microcomputer 40 changes DiffEN from the Lo level to the Hi level. As a result, the master 20 enters a detection state of the wakeup signal, and the microcomputer 40 detects the comparison signal via the Rx terminal. After this, the microcomputer 40 proceeds to step S30.

ステップS30へ進むとマイコン40は、スリープ信号を出力する。これによりマイコン40はスレーブ10をスリープモードに移行させる。この後にマイコン40はステップS40へと進む。   In step S30, the microcomputer 40 outputs a sleep signal. Thereby, the microcomputer 40 shifts the slave 10 to the sleep mode. After this, the microcomputer 40 proceeds to step S40.

ステップS40へ進むとマイコン40は、RxがHiレベルからLoレベルへと変化したか否かを判定する。すなわちマイコン40は、ウェイクアップ信号があるか否かを判定する。RxがLoレベルの場合、マイコン40はウェイクアップ信号があると判定し、ステップS50へと進む。これとは異なり、RxがHiレベルの場合、マイコン40はウェイクアップ信号が無いと判定し、ステップS60へと進む。   In step S40, the microcomputer 40 determines whether or not Rx has changed from the Hi level to the Lo level. That is, the microcomputer 40 determines whether there is a wake-up signal. If Rx is at the Lo level, the microcomputer 40 determines that there is a wake-up signal and proceeds to step S50. On the other hand, if Rx is at the Hi level, the microcomputer 40 determines that there is no wake-up signal, and proceeds to step S60.

ステップS50へ進むとマイコン40は、DiffENをHiレベルからLoレベルにする。またマイコン40はENをHiレベルにし、スリープ処理を終了する。   In step S50, the microcomputer 40 changes DiffEN from the Hi level to the Lo level. Further, the microcomputer 40 sets EN to Hi level and ends the sleep process.

ステップS60へ進むとマイコン40は、DiffENをHiレベルに切り換えてから判定時間経過したか否かを判定する。判定時間が経過した場合、マイコン40はステップS70へと進む。これとは異なり、判定時間が経過していない場合、マイコン40はステップS40へと戻る。したがってステップS40においてRxがHiレベルからLoレベルへと変化しない場合、マイコン40は判定時間が経過するまでステップS40、S60を繰り返す。   In step S60, the microcomputer 40 determines whether or not the determination time has elapsed after switching DiffEN to the Hi level. If the determination time has elapsed, the microcomputer 40 proceeds to step S70. In contrast, if the determination time has not elapsed, the microcomputer 40 returns to step S40. Therefore, if Rx does not change from the Hi level to the Lo level in step S40, the microcomputer 40 repeats steps S40 and S60 until the determination time elapses.

ステップS70へ進むとマイコン40は、ENをHiレベルからLoレベルにする。これによりマスタ20は通信モードから省電力モードに移行する。この後にマイコン40はステップS40へと戻る。この場合、判定時間が経過しているので、マイコン40はRxがHiレベルからLoレベルへと変化するまで、ステップS40,S60,S70を繰り返す。   In step S70, the microcomputer 40 changes EN from the Hi level to the Lo level. As a result, the master 20 shifts from the communication mode to the power saving mode. Thereafter, the microcomputer 40 returns to step S40. In this case, since the determination time has elapsed, the microcomputer 40 repeats steps S40, S60, and S70 until Rx changes from the Hi level to the Lo level.

次に、本実施形態に係る通信システム100の作用効果を説明する。上記したようにマスタ20は、スリープ信号を出力する際にウェイクアップ信号の検出を開始する。したがって、スリープ信号の出力し終わりを確認した後に、ウェイクアップ信号の検出を行う構成とは異なり、その確認のためのタイムラグが生じず、ウェイクアップ信号を検出できなくなることが抑制される。   Next, operational effects of the communication system 100 according to the present embodiment will be described. As described above, the master 20 starts detecting the wakeup signal when outputting the sleep signal. Therefore, unlike the configuration in which the wakeup signal is detected after the end of outputting the sleep signal is confirmed, a time lag for the confirmation does not occur, and the wakeup signal cannot be detected.

本実施形態においてマイコン40は、RxがHiレベルの場合において、DiffENをHiレベルに切り換えてから判定時間経過するとENをHiレベルからLoレベルにする例を示した。しかしながらこれとは異なり、図7および図8に示すように、判定時間よりも短い、所定時間経過後にENをHiレベルからLoレベルにしてもよい。この所定時間は、DiffENをHiレベルに切り換えてからスリープ信号を出力し終わるのに必要とする時間である。   In the present embodiment, when Rx is at the Hi level, the microcomputer 40 shows an example in which EN is changed from the Hi level to the Lo level when the determination time has elapsed after the DiffEN is switched to the Hi level. However, unlike this, as shown in FIGS. 7 and 8, EN may be changed from the Hi level to the Lo level after a predetermined time, which is shorter than the determination time. This predetermined time is the time required to finish outputting the sleep signal after switching DiffEN to Hi level.

この変形例の場合、マイコン40はDiffENをHiレベルに切り換えてから所定時間経過すると、ENをLoレベルにする。こうすることでマイコン40は、スリープ信号の出力終わりに送信機51を通信モードから省電力モードに切り換える。そしてRxがLoレベルになったのを検出するとマイコン40は、DiffENをLoレベルにするとともに、ENをHiレベルにする。こうすることでマスタ20はウェイクアップ信号の非検出状態となり、送信機51は通信モードに切り換わる。またRxがHiレベルのままの場合にマイコン40は、DiffENをHiレベル、ENをLoレベルに保つ。   In the case of this modification, the microcomputer 40 sets EN to Lo level when a predetermined time elapses after switching DiffEN to Hi level. By doing so, the microcomputer 40 switches the transmitter 51 from the communication mode to the power saving mode at the end of outputting the sleep signal. When it is detected that Rx has become Lo level, the microcomputer 40 sets DiffEN to Lo level and EN to Hi level. As a result, the master 20 enters a non-detection state of the wake-up signal, and the transmitter 51 switches to the communication mode. When Rx remains at the Hi level, the microcomputer 40 keeps DiffEN at the Hi level and EN at the Lo level.

この変形例の場合、図8に示すようにマイコン40はステップS60の代わりにステップS80を行う。マイコン40はステップS80において所定時間経過したか否かを判定し、経過した場合にステップS70へと進み、経過していない場合、ステップS40へ戻る。   In the case of this modification, the microcomputer 40 performs step S80 instead of step S60 as shown in FIG. The microcomputer 40 determines whether or not a predetermined time has elapsed in step S80, and proceeds to step S70 if it has elapsed, and returns to step S40 if it has not elapsed.

以上に示したようにこの変形例の場合、所定時間経過後(スリープ信号の出力終わり)に送信機51が省電力モードに切り換わる。これにより、マスタ20における消費電力が低減される。   As described above, in the case of this modification, the transmitter 51 switches to the power saving mode after a predetermined time elapses (the end of outputting the sleep signal). Thereby, the power consumption in the master 20 is reduced.

なお上記の変形例とは異なり、マイコン40は所定時間の経過を判定する代わりに、スリープ信号の出力終わりを判定してもよい。このさらなる変形例の場合、図9に示すようにマイコン40はステップS80の代わりにステップS90を行う。マイコン40はステップS90においてスリープ信号の出力終わりを判定し、出力し終わったと判定すると、ステップS70へと進み、出力し終わっていないと判定すると、ステップS40へ戻る。   Unlike the above modification, the microcomputer 40 may determine the end of the output of the sleep signal instead of determining whether the predetermined time has elapsed. In the case of this further modification, as shown in FIG. 9, the microcomputer 40 performs step S90 instead of step S80. If the microcomputer 40 determines the end of the output of the sleep signal in step S90 and determines that the output has been completed, the microcomputer 40 proceeds to step S70, and if determined that the output has not been completed, returns to step S40.

(第2実施形態)
次に、本発明の第2実施形態を図10〜図14に基づいて説明する。第2実施形態に係る通信システムは上記した実施形態によるものと共通点が多い。そのため以下においては共通部分の説明を省略し、異なる部分を重点的に説明する。また以下においては上記した実施形態で示した要素と同一の要素には同一の符号を付与する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to FIGS. The communication system according to the second embodiment has much in common with the above-described embodiment. Therefore, in the following description, description of common parts is omitted, and different parts are mainly described. In the following description, the same reference numerals are given to the same elements as those described in the above embodiment.

第1実施形態では、マイコン40とトランシーバ50とが、Tx端子、EN端子、DiffEN端子、および、Rx端子の4端子を介して接続される例を示した。これに対し本実施形態では、図10に示すようにマイコン40とトランシーバ50とが、Tx端子、DiffEN端子、および、Rx端子の3端子を介して接続される点を特徴とする。   In the first embodiment, the example in which the microcomputer 40 and the transceiver 50 are connected via the four terminals of the Tx terminal, the EN terminal, the DiffEN terminal, and the Rx terminal is shown. On the other hand, the present embodiment is characterized in that the microcomputer 40 and the transceiver 50 are connected via three terminals of a Tx terminal, a DiffEN terminal, and an Rx terminal as shown in FIG.

また図11に示すようにトランシーバ50が、モード切り換え部59を有する点も特徴とする。   Further, as shown in FIG. 11, the transceiver 50 has a mode switching unit 59.

第1実施形態では送信機51にEn端子が接続され、ENの電圧レベル(動作モード切り換え信号)に応じて送信機51の動作モードが決定された。しかしながら図11に示すようにモード切り換え部59を介してDiffENが送信機51に入力される。送信機51の動作モードはモード切り換え部59の出力によって決定される。本実施形態の送信機51はモード切り換え部59の出力がHiレベルの場合に省電力モード、Loレベルの場合に通信モードになる。   In the first embodiment, the En terminal is connected to the transmitter 51, and the operation mode of the transmitter 51 is determined according to the EN voltage level (operation mode switching signal). However, DiffEN is input to the transmitter 51 via the mode switching unit 59 as shown in FIG. The operation mode of the transmitter 51 is determined by the output of the mode switching unit 59. The transmitter 51 of this embodiment is in the power saving mode when the output of the mode switching unit 59 is at the Hi level, and is in the communication mode when it is at the Lo level.

モード切り換え部59は、DiffENの立ち上がりと立ち下がりそれぞれを検出する。DiffENの立ち上がりを検出すると、モード切り換え部59は時間の計測を始める。そして図12に示すように所定時間経過するとモード切り換え部59は、HiレベルのDiffENを送信機51に出力する。これにより送信機51を省電力モードに切り換える。またモード切り換え部59は、DiffENの立ち下がりを検出すると、ただちに送信機51への出力を停止する。これにより送信機51にLoレベルの信号が入力され、送信機51は通信モードに切り換わる。   The mode switching unit 59 detects the rising edge and the falling edge of DiffEN. When the rising edge of DiffEN is detected, the mode switching unit 59 starts measuring time. Then, as shown in FIG. 12, when a predetermined time elapses, the mode switching unit 59 outputs Hi level DiffEN to the transmitter 51. As a result, the transmitter 51 is switched to the power saving mode. Further, when the mode switching unit 59 detects the falling edge of DiffEN, the mode switching unit 59 stops the output to the transmitter 51 immediately. As a result, a Lo level signal is input to the transmitter 51, and the transmitter 51 is switched to the communication mode.

次に、図13に基づいてマイコン40のスリープ処理を説明する。本実施形態の場合、図12に示すようにマイコン40は、スリープ処理において第1実施形態で説明したステップS10〜ステップS30を行う。しかしながらステップS30においてスリープ信号を出力するとマイコン40は、ステップS100へと進む。   Next, the sleep process of the microcomputer 40 will be described with reference to FIG. In the case of the present embodiment, as shown in FIG. 12, the microcomputer 40 performs steps S10 to S30 described in the first embodiment in the sleep process. However, if the sleep signal is output in step S30, the microcomputer 40 proceeds to step S100.

ステップS100へ進むとマイコン40は、RxがHiレベルからLoレベルへと変化したか否かを判定する。RxがLoレベルの場合、ステップS110へと進む。これとは異なり、RxがHiレベルのままの場合、マイコン40はステップS100を繰り返し、ウェイクアップ信号が検出されるまで待機する。   In step S100, the microcomputer 40 determines whether or not Rx has changed from the Hi level to the Lo level. If Rx is at the Lo level, the process proceeds to step S110. On the other hand, when Rx remains at the Hi level, the microcomputer 40 repeats Step S100 and waits until a wakeup signal is detected.

ステップS110へ進むとマイコン40は、DiffENをHiレベルからLoレベルにする。これによりマスタ20はウェイクアップ信号の非検出状態に移行する。この後にマイコン40はスリープ処理を終了する。   In step S110, the microcomputer 40 changes DiffEN from the Hi level to the Lo level. As a result, the master 20 shifts to the non-detection state of the wakeup signal. Thereafter, the microcomputer 40 ends the sleep process.

次に、図14に基づいてモード切り換え部59の動作モードの切り換え判定処理を説明する。先ずステップS210においてモード切り換え部59は、DiffENがLoレベルからHiレベルへと変化したか否かを判定する。すなわちモード切り換え部59はDiffENが立ち上がったか否かを判定する。DiffENが立ち上がった場合、モード切り換え部59はステップS220へと進む。これとは異なり、DiffENが立ち上がっていない場合、モード切り換え部59はステップS210を繰り返し、DiffENが立ち上がるまで待機する。なお、モード切り換え部59がステップS220へと進むのは、図13に示すステップS20をマイコン40が行ったときである。   Next, the operation mode switching determination process of the mode switching unit 59 will be described with reference to FIG. First, in step S210, the mode switching unit 59 determines whether or not DiffEN has changed from the Lo level to the Hi level. That is, the mode switching unit 59 determines whether DiffEN has risen. If DiffEN has risen, the mode switching unit 59 proceeds to step S220. On the other hand, if DiffEN has not risen, the mode switching unit 59 repeats step S210 and waits until DiffEN rises. The mode switching unit 59 proceeds to step S220 when the microcomputer 40 performs step S20 shown in FIG.

ステップS220へ進むとモード切り換え部59は、DiffENが立ち上がってから所定時間経過したか否かを判定する。所定時間経過した場合、モード切り換え部59はステップS230へと進む。これとは異なり、所定時間経過していない場合、モード切り換え部59はステップS220を繰り返し、所定時間経過するまで待機する。すなわちモード切り換え部59は、スリープ信号が出力され終わるまで待機する。   In step S220, the mode switching unit 59 determines whether or not a predetermined time has elapsed since DiffEN started up. If the predetermined time has elapsed, the mode switching unit 59 proceeds to step S230. On the other hand, if the predetermined time has not elapsed, the mode switching unit 59 repeats step S220 and waits until the predetermined time elapses. That is, the mode switching unit 59 waits until the sleep signal is output.

ステップS230へ進むとモード切り換え部59は、HiレベルのDiffENを送信機51に出力する。これにより送信機51は省電力モードに切り換わる。この後にモード切り換え部59はステップS240へと進む。   In step S230, the mode switching unit 59 outputs Hi-level DiffEN to the transmitter 51. As a result, the transmitter 51 is switched to the power saving mode. Thereafter, the mode switching unit 59 proceeds to step S240.

ステップS240へ進むとモード切り換え部59は、DiffENがHiレベルからLoレベルへと変化したか否かを判定する。すなわちモード切り換え部59はDiffENが立ち下がったか否かを判定する。DiffENが立ち下がった場合、モード切り換え部59はステップS250へと進む。これとは異なり、DiffENが立ち下がっていない場合、モード切り換え部59はステップS240を繰り返し、DiffENが立ち下がるまで待機する。なお、モード切り換え部59がステップS250へと進むのは、図13に示すステップS110をマイコン40が行ったときである。   In step S240, the mode switching unit 59 determines whether DiffEN has changed from the Hi level to the Lo level. That is, the mode switching unit 59 determines whether DiffEN has fallen. When DiffEN falls, the mode switching unit 59 proceeds to step S250. In contrast, if DiffEN has not fallen, the mode switching unit 59 repeats step S240 and waits until DiffEN falls. The mode switching unit 59 proceeds to step S250 when the microcomputer 40 performs step S110 shown in FIG.

ステップS250へ進むとモード切り換え部59は、DiffENの送信機51への出力を停止する。これにより送信機51にはモード切り換え部59の出力としてLoレベルが入力され、送信機51は通信モードに切り換わる。   In step S250, the mode switching unit 59 stops the output of DiffEN to the transmitter 51. Accordingly, the Lo level is input to the transmitter 51 as the output of the mode switching unit 59, and the transmitter 51 is switched to the communication mode.

以上に示したように本実施形態に係る通信システム100では、マイコン40とトランシーバ50とが、Tx端子、DiffEN端子、および、Rx端子の3端子を介して接続される。そのためマイコン40とトランシーバ50の接続端子数が低減される。   As described above, in the communication system 100 according to the present embodiment, the microcomputer 40 and the transceiver 50 are connected via the three terminals of the Tx terminal, the DiffEN terminal, and the Rx terminal. Therefore, the number of connection terminals between the microcomputer 40 and the transceiver 50 is reduced.

また、所定時間経過後(スリープ信号の出力終わり)に送信機51が省電力モードに切り換わる。これにより、マスタ20における消費電力が低減される。   In addition, the transmitter 51 switches to the power saving mode after a predetermined time has elapsed (when the output of the sleep signal ends). Thereby, the power consumption in the master 20 is reduced.

本実施形態のモード切り換え部59は、DiffENの立ち上がりと立ち下がりに基づいて、送信機51の動作モードを切り換える例を示した。しかしながらこれとは異なり、図15および図16に示すようにモード切り換え部59は、スリープ信号とDiffENとに基づいて、送信機51の動作モードを切り換えてもよい。   The mode switching unit 59 of the present embodiment has shown an example in which the operation mode of the transmitter 51 is switched based on the rise and fall of DiffEN. However, unlike this, the mode switching unit 59 may switch the operation mode of the transmitter 51 based on the sleep signal and DiffEN as shown in FIGS. 15 and 16.

この変形例の場合、モード切り換え部59はスリープ信号の出力し終わりを検出すると、HiレベルのDiffENを送信機51に出力する。こうすることで送信機51を省電力モードに切り換える。そしてDiffENの立ち下がりを検出するとモード切り換え部59は、送信機51への出力を停止する。これにより送信機51にLoレベルの信号が入力され、送信機51は通信モードに切り換わる。   In the case of this modification, when the mode switching unit 59 detects the end of the output of the sleep signal, it outputs Hi level DiffEN to the transmitter 51. In this way, the transmitter 51 is switched to the power saving mode. When the falling edge of DiffEN is detected, the mode switching unit 59 stops the output to the transmitter 51. As a result, a Lo level signal is input to the transmitter 51, and the transmitter 51 is switched to the communication mode.

そして図17に示すようにこの変形例のモード切り換え部59は、動作モードの切り換え判定処理において、ステップS220の代わりにステップS260を行う。モード切り換え部59はステップS260においてスリープ信号の出力終わりを判定し、出力し終わったと判定すると、ステップS230へと進む。   As shown in FIG. 17, the mode switching unit 59 of this modification example performs step S260 instead of step S220 in the operation mode switching determination processing. In step S260, the mode switching unit 59 determines the end of the output of the sleep signal. If the mode switching unit 59 determines that the output has been completed, the process proceeds to step S230.

なお、上記のモード切り換え部59は送信機51へのDiffENの出力と停止によって送信機51の動作モードを切り換える例を示した。しかしながらこれとは異なり、モード切り換え部59がDiffENの電圧レベルに応じた制御信号を生成し、その制御信号を送信機51へ出力することで、送信機51の動作モードを切り換えてもよい。   The mode switching unit 59 has been described as an example of switching the operation mode of the transmitter 51 by outputting and stopping DiffEN to the transmitter 51. However, unlike this, the mode switching unit 59 may switch the operation mode of the transmitter 51 by generating a control signal corresponding to the voltage level of DiffEN and outputting the control signal to the transmitter 51.

以上、本発明の好ましい実施形態について説明したが、本発明は上記した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.

本実施形態では、本発明のマスタ20を車両の通信システムに適用した例を説明した。しかしながら本発明は、マスタ20の他に、スレーブ10と通信配線30とを有する通信システムには限定されない。ただし、スレーブ10は省電力モードにおいてウェイクアップ信号を出力する。本発明のマスタ20は、この機能を有するスレーブ10との通信に適用されればよい。   In this embodiment, the example which applied the master 20 of this invention to the communication system of a vehicle was demonstrated. However, the present invention is not limited to the communication system having the slave 10 and the communication wiring 30 in addition to the master 20. However, the slave 10 outputs a wakeup signal in the power saving mode. The master 20 of the present invention may be applied to communication with the slave 10 having this function.

本実施形態では通信プロトコルとしてLIN通信を採用する例を示した。しかしながら通信プロトコルとしては上記例に限定されず、例えばCAN(登録商標)通信を採用することもできる。   In this embodiment, an example in which LIN communication is employed as a communication protocol has been described. However, the communication protocol is not limited to the above example, and for example, CAN (registered trademark) communication can be adopted.

10…スレーブ
20…マスタ
30…通信配線
40…マイコン
50…トランシーバ
51…送信機
52…受信機
53…比較部
100…通信システム
DESCRIPTION OF SYMBOLS 10 ... Slave 20 ... Master 30 ... Communication wiring 40 ... Microcomputer 50 ... Transceiver 51 ... Transmitter 52 ... Receiver 53 ... Comparison part 100 ... Communication system

Claims (9)

通信配線(30)を介して複数のスレーブノード(10)と通信可能に接続されたマスタノードであって、
前記通信配線と接続されたトランシーバ(50)と、
前記トランシーバを介して前記通信配線と接続されたマイクロコンピュータ(40)と、を有し、
前記トランシーバは、
前記マイクロコンピュータから出力された送信信号を前記通信配線へ出力する送信機(51)と、
前記通信配線から入力された受信信号を前記マイクロコンピュータへ出力する受信機(52)と、
前記送信機に入力される前記送信信号と前記受信機に入力される前記受信信号とを比較した比較信号を前記マイクロコンピュータへ出力する比較部(53)と、を有し、
複数の前記スレーブノードと前記トランシーバそれぞれは、動作モードとして、通信モードと省電力モードを有し、
複数の前記スレーブノードそれぞれは、複数の前記スレーブノードそれぞれを前記省電力モードから前記通信モードへと移行させるウェイクアップ信号を前記通信配線に出力する機能を有し、
前記マイクロコンピュータは、前記送信信号として、複数の前記スレーブノードそれぞれを前記通信モードから前記省電力モードへと移行させるスリープ信号を有し、
前記マイクロコンピュータは、前記スリープ信号を出力し始めてからの前記比較信号に基づいて、前記ウェイクアップ信号が前記通信配線に出力されたか否かを判定するマスタノード。
A master node communicably connected to a plurality of slave nodes (10) via a communication wiring (30),
A transceiver (50) connected to the communication wiring;
A microcomputer (40) connected to the communication wiring via the transceiver,
The transceiver is
A transmitter (51) for outputting a transmission signal output from the microcomputer to the communication wiring;
A receiver (52) for outputting a reception signal input from the communication wiring to the microcomputer;
A comparison unit (53) that outputs a comparison signal obtained by comparing the transmission signal input to the transmitter and the reception signal input to the receiver to the microcomputer;
Each of the plurality of slave nodes and the transceiver has a communication mode and a power saving mode as operation modes,
Each of the plurality of slave nodes has a function of outputting, to the communication wiring, a wake-up signal that causes each of the plurality of slave nodes to shift from the power saving mode to the communication mode.
The microcomputer has a sleep signal that causes each of the plurality of slave nodes to shift from the communication mode to the power saving mode as the transmission signal,
The microcomputer determines whether or not the wake-up signal is output to the communication line based on the comparison signal after the microcomputer starts outputting the sleep signal.
前記ウェイクアップ信号は、規定時間の間Loレベルの信号であり、
前記比較部は、前記送信機に入力される前記送信信号と前記受信機に入力される前記受信信号との連続して相違する時間が前記規定時間よりも短い場合、前記比較信号としてHiレベルの信号を出力し、前記規定時間以上の場合、前記比較信号として前記Loレベルの信号を出力し続ける請求項1に記載のマスタノード。
The wake-up signal is a Lo level signal for a specified time,
The comparison unit has a Hi level as the comparison signal when the time during which the transmission signal input to the transmitter and the reception signal input to the receiver are continuously different is shorter than the specified time. 2. The master node according to claim 1, wherein a signal is output, and if the signal is equal to or longer than the specified time, the Lo level signal is continuously output as the comparison signal.
前記トランシーバは、前記受信機の前記受信信号と前記比較部の前記比較信号とが入力され、出力端子が前記マイクロコンピュータに接続されるANDゲート(58)と、前記ANDゲートと前記比較部との接続、および、前記ANDゲートと前記Hiレベルの基準電位との接続を切り換えるスイッチ(57)と、を有し、
前記マイクロコンピュータは、前記スイッチに切り換え信号を出力しており、
前記スイッチは、前記切り換え信号が前記Loレベルおよび前記Hiレベルの一方の場合に前記ANDゲートと前記基準電位とを接続し、前記切り換え信号が前記Loレベルおよび前記Hiレベルの他方の場合に前記ANDゲートと前記比較部とを接続し、
前記マイクロコンピュータは、前記スリープ信号を出力し始める際に、前記切り換え信号を前記Loレベルおよび前記Hiレベルの他方にして、前記ANDゲートと前記比較部とを接続する請求項2に記載のマスタノード。
The transceiver includes an AND gate (58) to which the reception signal of the receiver and the comparison signal of the comparison unit are input and an output terminal is connected to the microcomputer, and the AND gate and the comparison unit. And a switch (57) for switching the connection and the connection between the AND gate and the reference potential of the Hi level,
The microcomputer outputs a switching signal to the switch,
The switch connects the AND gate and the reference potential when the switching signal is one of the Lo level and the Hi level, and the AND when the switching signal is the other of the Lo level and the Hi level. Connecting the gate and the comparison section,
3. The master node according to claim 2, wherein when the microcomputer starts outputting the sleep signal, the switching signal is set to the other of the Lo level and the Hi level to connect the AND gate and the comparison unit. .
前記マイクロコンピュータは、前記スリープ信号を出力し始めてから判定時間経過するまでの間、前記比較信号が前記Hiレベルの場合、前記トランシーバを前記通信モードから前記省電力モードに移行させる請求項3に記載のマスタノード。   4. The microcomputer shifts the transceiver from the communication mode to the power saving mode when the comparison signal is at the Hi level from when the microcomputer starts to output the sleep signal until the determination time elapses. Master node. 前記マイクロコンピュータは、前記切り換え信号を前記Loレベルおよび前記Hiレベルの他方にしている際に、前記比較信号が前記Loレベルになると、前記切り換え信号を前記Loレベルおよび前記Hiレベルの一方に切り換える請求項3または請求項4に記載のマスタノード。   The microcomputer switches the switching signal to one of the Lo level and the Hi level when the comparison signal becomes the Lo level when the switching signal is set to the other of the Lo level and the Hi level. The master node according to claim 3 or claim 4. 前記マイクロコンピュータは、
前記スリープ信号を出力し始めてから所定時間経過すると、前記トランシーバを前記通信モードから前記省電力モードに移行し、
前記切り換え信号を前記Loレベルおよび前記Hiレベルの他方にしている際に、前記比較信号が前記Loレベルになると、前記切り換え信号を前記Loレベルおよび前記Hiレベルの一方にするとともに、前記トランシーバを前記省電力モードから前記通信モードに切り換える請求項3に記載のマスタノード。
The microcomputer is
When a predetermined time has elapsed after starting to output the sleep signal, the transceiver shifts from the communication mode to the power saving mode,
When the switching signal is the other of the Lo level and the Hi level, when the comparison signal becomes the Lo level, the switching signal is set to one of the Lo level and the Hi level, and the transceiver is The master node according to claim 3, wherein the master node is switched from the power saving mode to the communication mode.
前記マイクロコンピュータは、前記トランシーバの前記動作モードを決定する動作モード切り換え信号を前記トランシーバに出力する請求項1〜6いずれか1項に記載のマスタノード。   The master node according to claim 1, wherein the microcomputer outputs an operation mode switching signal for determining the operation mode of the transceiver to the transceiver. 前記トランシーバは、前記切り換え信号の電圧レベルの切り換わりに基づいて、前記送信機の前記動作モードを切り換えるモード切り換え部(59)を有し、
前記モード切り換え部は、前記切り換え信号の前記Loレベルおよび前記Hiレベルの一方から他方への切り換わりを検出すると、所定時間経過後に前記送信機を前記通信モードから前記省電力モードへと切り換え、前記切り換え信号の前記Loレベルおよび前記Hiレベルの他方から一方への切り換わりを検出すると、前記送信機を前記省電力モードから前記通信モードに切り換える請求項3に記載のマスタノード。
The transceiver includes a mode switching unit (59) for switching the operation mode of the transmitter based on switching of the voltage level of the switching signal.
The mode switching unit switches the transmitter from the communication mode to the power saving mode after elapse of a predetermined time when detecting the switching of the switching signal from one of the Lo level and the Hi level to the other. 4. The master node according to claim 3, wherein the transmitter is switched from the power saving mode to the communication mode when a switching signal from the other of the Lo level and the Hi level to the other is detected. 5.
前記トランシーバは、前記スリープ信号の出力終わりと、前記切り換え信号の前記Loレベルおよび前記Hiレベルの他方から一方への切り換わりとに基づいて、前記送信機の前記動作モードを切り換えるモード切り換え部(59)を有し、
前記モード切り換え部は、前記スリープ信号の出力終わりを検出すると、前記送信機を前記通信モードから前記省電力モードへと切り換え、前記切り換え信号の前記Loレベルおよび前記Hiレベルの他方から一方への切り換わりを検出すると、前記送信機を前記省電力モードから前記通信モードに切り換える請求項3に記載のマスタノード。
The transceiver includes a mode switching unit (59) that switches the operation mode of the transmitter based on the end of the output of the sleep signal and the switching of the switching signal from the other of the Lo level and the Hi level to the other. )
When detecting the end of output of the sleep signal, the mode switching unit switches the transmitter from the communication mode to the power saving mode, and switches the switching signal from the other of the Lo level and the Hi level to one. The master node according to claim 3, wherein the transmitter is switched from the power saving mode to the communication mode when a change is detected.
JP2015164934A 2015-08-24 2015-08-24 Master node Active JP6413979B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015164934A JP6413979B2 (en) 2015-08-24 2015-08-24 Master node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015164934A JP6413979B2 (en) 2015-08-24 2015-08-24 Master node

Publications (2)

Publication Number Publication Date
JP2017046053A true JP2017046053A (en) 2017-03-02
JP6413979B2 JP6413979B2 (en) 2018-10-31

Family

ID=58211838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015164934A Active JP6413979B2 (en) 2015-08-24 2015-08-24 Master node

Country Status (1)

Country Link
JP (1) JP6413979B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2587381A (en) * 2019-09-26 2021-03-31 Continental Automotive Gmbh Remote powered bus system in a motor vehicle, master electronic control unit, slave electronic control unit
CN113543203A (en) * 2020-04-14 2021-10-22 海能达通信股份有限公司 Method for communication resource allocation and communication node awakening

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120051241A1 (en) * 2010-08-31 2012-03-01 Denso Corporation Communication system with a plurality of nodes communicably connected for communication based on NRZ (non return to zero) code
JP2013062723A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system, and master node and slave node forming such communication system
JP2013062725A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system and transceiver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120051241A1 (en) * 2010-08-31 2012-03-01 Denso Corporation Communication system with a plurality of nodes communicably connected for communication based on NRZ (non return to zero) code
JP2013062723A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system, and master node and slave node forming such communication system
JP2013062725A (en) * 2011-09-14 2013-04-04 Denso Corp Communication system and transceiver

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2587381A (en) * 2019-09-26 2021-03-31 Continental Automotive Gmbh Remote powered bus system in a motor vehicle, master electronic control unit, slave electronic control unit
GB2587381B (en) * 2019-09-26 2021-09-29 Continental Automotive Gmbh Remote powered bus system in a motor vehicle, master electronic control unit, slave electronic control unit and method of operating remote powered bus system
CN113543203A (en) * 2020-04-14 2021-10-22 海能达通信股份有限公司 Method for communication resource allocation and communication node awakening
CN113543203B (en) * 2020-04-14 2023-10-24 海能达通信股份有限公司 Communication resource allocation and communication node awakening method

Also Published As

Publication number Publication date
JP6413979B2 (en) 2018-10-31

Similar Documents

Publication Publication Date Title
JP4788804B2 (en) Electronic control unit
US9001950B2 (en) Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
JP2008312024A (en) Transit connection unit
WO2017208612A1 (en) Ringing suppression circuit
JP5601357B2 (en) Electronic control unit
JP2014232997A (en) Communication system
JP6413979B2 (en) Master node
US20170052797A1 (en) Electronic apparatus controlling connection with accessory device, accessory device, control methods therefor, and storage mediums storing control programs therefor
JP6422332B2 (en) Electronic device, accessory device, control method thereof, and control program
JP6384332B2 (en) Electronic control unit
JP5977152B2 (en) Communication device
JP5347831B2 (en) Communications system
JP2006333007A (en) Vehicle communication system and data communication method
JP2010206268A (en) Communication system and node
JP2019084942A (en) Electronic control apparatus
JP2017041693A (en) Communication device and communication system
JP5018396B2 (en) Communication apparatus and communication system
US9298655B2 (en) Bus detection and control method and bus detection and control device and mobile industry processor interface system thereof
JP6071113B2 (en) Network system
JP4254683B2 (en) Comparator switching circuit
JP2013038653A (en) Communication system, and master node and slave node used for the communication system
JP6477438B2 (en) Communication apparatus and communication system
JP6969215B2 (en) Communication equipment and communication systems
US11436180B2 (en) I3C slave interface, integrated circuit including an I3C slave interface, and method for operating an I3C slave interface
JP6040952B2 (en) Communication system, electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180820

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180917

R151 Written notification of patent or utility model registration

Ref document number: 6413979

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