JP6028717B2 - COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD - Google Patents

COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD Download PDF

Info

Publication number
JP6028717B2
JP6028717B2 JP2013230668A JP2013230668A JP6028717B2 JP 6028717 B2 JP6028717 B2 JP 6028717B2 JP 2013230668 A JP2013230668 A JP 2013230668A JP 2013230668 A JP2013230668 A JP 2013230668A JP 6028717 B2 JP6028717 B2 JP 6028717B2
Authority
JP
Japan
Prior art keywords
communication
communication node
signal
request frame
communication bus
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.)
Active
Application number
JP2013230668A
Other languages
Japanese (ja)
Other versions
JP2015091062A (en
Inventor
博哉 安藤
博哉 安藤
詠史 瀧
詠史 瀧
勇太 落合
勇太 落合
加藤 光敏
光敏 加藤
小林 直人
直人 小林
正成 今田
正成 今田
正寛 牧野
正寛 牧野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2013230668A priority Critical patent/JP6028717B2/en
Publication of JP2015091062A publication Critical patent/JP2015091062A/en
Application granted granted Critical
Publication of JP6028717B2 publication Critical patent/JP6028717B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、通信システムに関する。   The present invention relates to a communication system.

車両には、車両内の様々な制御を行うために車載ネットワークが構成される。車載ネットワークは、LANに、多くの電子制御ユニット(ECU: Electronic Control Unit)、センサ、アクチュエータなどが接続されることにより構成される。以下、車載ネットワークに接続される、電子制御ユニット、センサ、アクチュエータなどを通信ノードと呼ぶ。通信ノードは、車両内の様々な位置に設置され、通信線や電線により接続される。   The vehicle is configured with an in-vehicle network for performing various controls in the vehicle. The in-vehicle network is configured by connecting many electronic control units (ECUs), sensors, actuators, and the like to a LAN. Hereinafter, electronic control units, sensors, actuators, and the like connected to the in-vehicle network are referred to as communication nodes. Communication nodes are installed at various positions in the vehicle and are connected by communication lines or electric wires.

例えば、通信線に、複数の通信ノードが接続されることにより、車載ネットワークが構成される。車載ネットワークには、CAN(Controller Area Network)、LIN(Local Interconnect Network)がある。また、車載ネットワークには、 FlexRay(登録商標)に従って通信を行うものがある。   For example, an in-vehicle network is configured by connecting a plurality of communication nodes to a communication line. In-vehicle networks include CAN (Controller Area Network) and LIN (Local Interconnect Network). Some in-vehicle networks perform communication in accordance with FlexRay (registered trademark).

ところで、車載ネットワークに接続される複数の通信ノードのうち、スリープ状態の通信ノードを個別に動作状態に移行させる機能を導入することが検討されている。スリープ状態の通信ノードを動作状態へ移行させる専用のウエイクアップ要求フレームが用意され、このウエイクアップ要求フレームを送信することにより、スリープ状態の通信ノードを個別に動作状態へ移行させる。この機能は、セレクティブウエイクアップ(Selective Wake-up)と呼ばれることもある。スリープ状態の通信ノードのうち、スリープ状態から動作状態へ移行させる通信ノード以外の通信ノードは、スリープ状態を継続する。さらに、動作状態へ移行した通信ノードは、所定の期間、他の通信ノードからフレームを受信しない場合や、他の通信ノードへフレームを送信しない場合には、スリープ状態へ移行する。   By the way, introduction of a function of individually shifting a sleep state communication node to an operation state among a plurality of communication nodes connected to the in-vehicle network has been studied. A dedicated wakeup request frame for shifting the communication node in the sleep state to the operation state is prepared, and the communication node in the sleep state is individually shifted to the operation state by transmitting the wakeup request frame. This feature is sometimes referred to as Selective Wake-up. Among the communication nodes in the sleep state, communication nodes other than the communication node that shifts from the sleep state to the operation state continue the sleep state. Furthermore, the communication node that has shifted to the operating state shifts to the sleep state when it does not receive a frame from another communication node for a predetermined period or when it does not transmit a frame to another communication node.

ここで、少なくとも1つのゲートウェイによって相互に分離された複数のネットワークセグメントから形成されるネットワークが知られている。ネットワークの加入装置は、ネットワーク管理機能を備え、動作モードの切換を行う。各加入装置は、ネットワーク上のメッセージによって再度ウエイクアップされる。ネットワークマネージャは、加入装置を通信のない状態に切り換えるために、ネットワーク全体にスイッチオフ信号を送信する(例えば、特許文献1参照)。   Here, a network formed from a plurality of network segments separated from each other by at least one gateway is known. The network joining device has a network management function and switches the operation mode. Each joining device is woken up again by a message on the network. The network manager transmits a switch-off signal to the entire network in order to switch the joining device to a state without communication (see, for example, Patent Document 1).

また、電子制御ユニットを接続したバス間に介設され、異なるバスに属する電子制御ユニット間で送受信するメッセージを中継する中継接続ユニットが知られている。この中継接続ユニットは、各バスにそれぞれ接続された複数のインターフェースと、複数の各インターフェースの受信部に接続し、受信するメッセージの識別子(ID)と受信時間を計数するカウンタと、カウンタを通して受信したメッセージの送信先バスを特定する中継テーブルを記憶した記憶部と、各インターフェース部の送信部に接続し、中継テーブルで送信先バスとして特定されたメッセージを一時記憶する送信用バッファ部と、複数のカウンタと接続する異常判定処理部とを備える。異常判定処理部は、各カウンタで計数された同一IDのメッセージの設定時間内における受信回数が設定回数以上であると異常と判断し、異常と判定されたメッセージを送信用バッファ部から消去する(例えば、特許文献2参照)。   There is also known a relay connection unit that is interposed between buses connected to an electronic control unit and relays messages transmitted and received between electronic control units belonging to different buses. This relay connection unit is connected to a plurality of interfaces connected to each bus, a reception unit of each of the plurality of interfaces, a counter for counting an identifier (ID) of a message to be received and a reception time, and a reception through the counter A storage unit that stores a relay table for specifying a message destination bus; a transmission buffer unit that is connected to the transmission unit of each interface unit and temporarily stores a message specified as a destination bus in the relay table; And an abnormality determination processing unit connected to the counter. The abnormality determination processing unit determines that the number of receptions of the message having the same ID counted by each counter within the set time is abnormal, and deletes the message determined to be abnormal from the transmission buffer unit ( For example, see Patent Document 2).

特開2003−333070号公報JP 2003-333070 A 特開2009−253557号公報JP 2009-253557 A

電子制御ユニットと、電子制御ユニットを接続した複数の通信バス間に介設され、且つ異なる通信バスに属する電子制御ユニット間で送受信するメッセージを中継する中継装置とを備えるネットワークを考える。   Consider a network comprising an electronic control unit and a relay device that relays messages transmitted and received between electronic control units belonging to different communication buses that are interposed between a plurality of communication buses connected to the electronic control unit.

中継装置は、複数の通信バスに接続された電子制御ユニットとの間で同期をとり、電子制御ユニットをスリープ状態に遷移させたり、ウエイクアップさせたりする制御を実行する。   The relay device synchronizes with the electronic control units connected to the plurality of communication buses, and executes control to shift the electronic control unit to a sleep state or wake up.

通信バスに接続された電子制御ユニットが故障したり、異常が発生したりすることなどにより、電子制御ユニットから他の電子制御ユニットをウエイクアップさせるウエイクアップ要求フレームが不正に送信されることがある。   A wakeup request frame that wakes up another electronic control unit from the electronic control unit may be illegally transmitted due to a failure or abnormality of the electronic control unit connected to the communication bus. .

この不正に送信されるウエイクアップ要求フレームにより、複数の通信バスに接続される電子制御ユニットが不正にウエイクアップする。   Due to the illegally transmitted wakeup request frame, the electronic control unit connected to the plurality of communication buses wakes up illegally.

電子制御ユニットが不正にウエイクアップすることにより、不要な消費電力(暗電流)が増大する。   When the electronic control unit wakes up illegally, unnecessary power consumption (dark current) increases.

本発明の目的は、通信システムの消費電力を低減することである。   An object of the present invention is to reduce power consumption of a communication system.

開示の一実施例の通信システムは、
通信ノードと、複数の通信バスとの間に接続され、且つ異なる通信バスに接続される通信ノード間の通信を中継するゲートウェイ装置とを有する通信システムであって、
一方の通信バスに接続される通信ノードは、
他方の通信バスに接続される通信ノードに信号を送信し、
前記ゲートウェイ装置は、
前記一方の通信バスからの信号を受信する受信部と、
前記受信部により受信した前記一方の通信バスからの信号が不正な信号である場合に、該不正な信号を前記他方の通信バスに送信する制御を停止する制御部と
を有し、
前記制御部は、
前記ゲートウェイ装置が搭載される車両のイグニッションがオフにされてから所定の時間が経過した後に、前記一方の通信バスからの信号が不正な信号であるか否かを判断する。
A communication system according to an embodiment of the disclosure includes:
A communication system including a communication node and a gateway device connected between a plurality of communication buses and relaying communication between communication nodes connected to different communication buses,
The communication node connected to one communication bus is
Send a signal to the communication node connected to the other communication bus,
The gateway device is
A receiver for receiving a signal from the one communication bus;
A control unit for stopping control of transmitting the unauthorized signal to the other communication bus when a signal from the one communication bus received by the receiving unit is an unauthorized signal; and
The controller is
After a predetermined time has elapsed since the ignition of the vehicle on which the gateway device is mounted is turned off, it is determined whether or not the signal from the one communication bus is an illegal signal.

開示の実施例によれば、通信システムの消費電力を低減することができる。   According to the disclosed embodiment, the power consumption of the communication system can be reduced.

通信システムの一実施例を示す図である。It is a figure which shows one Example of a communication system. 第1の通信ノードの一実施例を示す図である。It is a figure which shows one Example of a 1st communication node. 第1の通信ノードの一実施例を示す機能ブロック図である。It is a functional block diagram which shows one Example of a 1st communication node. CANフレームの一実施例を示す図である。It is a figure which shows one Example of a CAN frame. 第7の通信ノードの一実施例を示す図である。It is a figure which shows one Example of a 7th communication node. 第7の通信ノードの一実施例を示す機能ブロック図である。It is a functional block diagram which shows one Example of a 7th communication node. 通信システムの動作の一実施例を示すフローチャートである。It is a flowchart which shows one Example of operation | movement of a communication system. 第7の通信ノードの一実施例を示す機能ブロック図である。It is a functional block diagram which shows one Example of a 7th communication node. 通信システムの動作の一実施例を示すフローチャートである。It is a flowchart which shows one Example of operation | movement of a communication system.

次に、本発明を実施するための形態を、以下の実施例に基づき図面を参照しつつ説明する。以下で説明する実施例は一例に過ぎず、本発明が適用される実施の形態は、以下の実施例に限られない。
なお、実施例を説明するための全図において、同一機能を有するものは同一符号を用い、繰り返しの説明は省略する。
Next, the form for implementing this invention is demonstrated, referring drawings based on the following Examples. Examples described below are merely examples, and embodiments to which the present invention is applied are not limited to the following examples.
In all the drawings for explaining the embodiments, the same reference numerals are used for those having the same function, and repeated explanation is omitted.

<第1の実施例>
<通信システム>
図1に、通信システムの一実施例を示す。
<First embodiment>
<Communication system>
FIG. 1 shows an embodiment of a communication system.

通信システムは、第1の通信ノード100と、第2の通信ノード200と、第3の通信ノード300と、第4の通信ノード400と、第5の通信ノード500と、第6の通信ノード600と、第7の通信ノード700とを備える。   The communication system includes a first communication node 100, a second communication node 200, a third communication node 300, a fourth communication node 400, a fifth communication node 500, and a sixth communication node 600. And a seventh communication node 700.

第1の通信ノード100−第3の通信ノード300は、第1の通信バス10により有線接続される。第4の通信ノード400−第6の通信ノード600は、第2の通信バス20により有線接続される。第7の通信ノード700は、第1の通信バス10と第2の通信バス20との間に介設される。第7の通信ノード700は、第1の通信バス10に接続された通信ノードと第2の通信バス20に接続された通信ノードとの間の通信を中継するゲートウェイ装置として機能する。   The first communication node 100 to the third communication node 300 are connected by wire through the first communication bus 10. The fourth communication node 400 to the sixth communication node 600 are connected by wire through the second communication bus 20. The seventh communication node 700 is interposed between the first communication bus 10 and the second communication bus 20. The seventh communication node 700 functions as a gateway device that relays communication between the communication node connected to the first communication bus 10 and the communication node connected to the second communication bus 20.

図1には、7個の通信ノードにより通信システムを構成する場合について示すが、3−6個の通信ノードにより構成してもよいし、8個以上の通信ノードにより構成してもよい。第1の通信バス10に接続される通信ノードと、第2の通信バス20に接続される通信ノードと、第1の通信バス10と第2の通信バス20との間に介設される通信ノードにより通信システムを構成できる。   Although FIG. 1 shows a case where a communication system is configured by seven communication nodes, it may be configured by 3-6 communication nodes, or may be configured by eight or more communication nodes. A communication node connected to the first communication bus 10, a communication node connected to the second communication bus 20, and communication interposed between the first communication bus 10 and the second communication bus 20. A communication system can be configured by nodes.

第1の通信ノード100−第7の通信ノード700は、例えば車両等の移動体に搭載される。通信システムの一実施例は、車両に搭載される。通信システムの一実施例には、CAN(Controller Area Network)、LIN(Local Interconnect Network)などのLANが適用される。通信システムの一実施例が、情報系LAN、パワートレイン系LAN、ボディ系LANなどに適用されてもよい。通信システムの一実施例は、FlexRay(登録商標)に従って通信を行うようにしてもよい。   The first communication node 100 to the seventh communication node 700 are mounted on a moving body such as a vehicle, for example. One embodiment of a communication system is mounted on a vehicle. In one embodiment of the communication system, a LAN such as a CAN (Controller Area Network) or a LIN (Local Interconnect Network) is applied. An embodiment of the communication system may be applied to an information LAN, a powertrain LAN, a body LAN, and the like. An embodiment of the communication system may perform communication according to FlexRay (registered trademark).

各通信ノードは、電子制御ユニットなどにより実現される。また、各通信ノードに、センサ、アクチュエータなどが実装されてもよい。   Each communication node is realized by an electronic control unit or the like. Moreover, a sensor, an actuator, etc. may be mounted in each communication node.

第1の通信ノード100−第7の通信ノード700のうち、所定の通信ノードによりグループが構成される。例えば、第1の通信バス10に接続される第1の通信ノード100−第3の通信ノード300により第1の群50が構成され、第2の通信バス20に接続される第4の通信ノード400−第6の通信ノード600により第2の群60が構成される。通信システムの一実施例は、複数の通信ノードのうち、スリープ状態の通信ノードを個別に動作状態に移行させることができるし、通信ノードの群(グループ)毎に動作状態に移行させることができる。   Of the first communication node 100 to the seventh communication node 700, a predetermined communication node forms a group. For example, the first communication node 100 to the third communication node 300 connected to the first communication bus 10 constitute the first group 50 and the fourth communication node connected to the second communication bus 20. The second group 60 is configured by 400 to sixth communication nodes 600. In one embodiment of the communication system, among a plurality of communication nodes, a communication node in a sleep state can be individually shifted to an operation state, and can be shifted to an operation state for each group (group) of communication nodes. .

一例として、第5の通信ノード500からウエイクアップ要求フレームが送信される場合について説明する。ウエイクアップ要求フレームに限らず、第1の通信バス10に接続される通信ノードと第2の通信バス20に接続される通信ノードとの間で送受信されるフレームなどの信号に適用できる。   As an example, a case where a wakeup request frame is transmitted from the fifth communication node 500 will be described. Not only the wake-up request frame but also a signal such as a frame transmitted / received between the communication node connected to the first communication bus 10 and the communication node connected to the second communication bus 20 can be applied.

第5の通信ノード500から送信されたウエイクアップ要求フレームは、第4の通信ノード400および第6の通信ノード600により受信される。第4の通信ノード400および第6の通信ノード600は、第5の通信ノード500からのウエイクアップ要求フレームによりウエイクアップする。   The wakeup request frame transmitted from the fifth communication node 500 is received by the fourth communication node 400 and the sixth communication node 600. The fourth communication node 400 and the sixth communication node 600 wake up by a wakeup request frame from the fifth communication node 500.

さらに、第5の通信ノード500から送信されたウエイクアップ要求フレームは、第7の通信ノード700により受信される。第7の通信ノード700は、第5の通信ノード500からのウエイクアップ要求フレームによるウエイクアップ要求が正規な(正しい)要求であるか不正な要求であるかを判断する。例えば、第7の通信ノード700は、第5の通信ノード500からのウエイクアップ要求フレームの送信が誤送信であるか否かを判断する。   Further, the wakeup request frame transmitted from the fifth communication node 500 is received by the seventh communication node 700. The seventh communication node 700 determines whether the wakeup request by the wakeup request frame from the fifth communication node 500 is a regular (correct) request or an illegal request. For example, the seventh communication node 700 determines whether or not the transmission of the wakeup request frame from the fifth communication node 500 is an erroneous transmission.

第7の通信ノード700は、車両のイグニッションがオフにされ、第7の通信ノード700がスリープ状態に遷移してから第1の閾値により表される時間の経過後に、ウエイクアップ要求フレームにより要求されるウエイクアップが正規の要求であるか不正の要求であるかを判断する。つまり、車両のイグニッションがオフにされた後に、第7の通信ノード700がスリープ状態に遷移してから第1の閾値により表される時間が経過するまでは、ウエイクアップ要求フレームによるウエイクアップ要求は正規の要求として処理される。   The seventh communication node 700 is requested by a wake-up request frame after the time indicated by the first threshold has elapsed since the vehicle ignition was turned off and the seventh communication node 700 transitioned to the sleep state. Determine whether the wakeup is a legitimate request or an illegal request. In other words, after the ignition of the vehicle is turned off, the wake-up request by the wake-up request frame is not received until the time represented by the first threshold value elapses after the seventh communication node 700 transitions to the sleep state. Processed as a legitimate request.

第7の通信ノード700は、第5の通信ノード500からのウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であると判断した場合には、そのウエイクアップ要求フレームを第1の通信バス10に送信(転送)する。ウエイクアップ要求フレームが第1の通信バス10へ送信される結果、第1の通信バス10に接続される第1の通信ノード100−第3の通信ノード300は、第7の通信ノード700からのウエイクアップ要求フレームを受信し、ウエイクアップする。   If the seventh communication node 700 determines that the wake-up request by the wake-up request frame from the fifth communication node 500 is a normal request, the seventh communication node 700 sends the wake-up request frame to the first communication bus 10. Send (transfer). As a result of the wake-up request frame being transmitted to the first communication bus 10, the first communication node 100 to the third communication node 300 connected to the first communication bus 10 receive from the seventh communication node 700. Receive wakeup request frame and wake up.

第7の通信ノード700は、第5の通信ノード500からのウエイクアップ要求フレームによるウエイクアップ要求が不正な要求であると判断した場合には、そのウエイクアップ要求フレームを第1の通信バス10に送信しない。この場合、第7の通信ノード700は、ウエイクアップ要求フレームを破棄するようにしてもよい。   If the seventh communication node 700 determines that the wakeup request frame by the wakeup request frame from the fifth communication node 500 is an illegal request, the seventh communication node 700 sends the wakeup request frame to the first communication bus 10. Do not send. In this case, the seventh communication node 700 may discard the wakeup request frame.

<第1の通信ノード100>
図2は、第1の通信ノード100の一実施例を示す。図2は、主に第1の通信ノード100のハードウェア構成を示す。第2の通信ノード200−第6の通信ノード600のハードウェア構成も、図2に示す第1の通信ノード100を適用できる。
<First communication node 100>
FIG. 2 shows an embodiment of the first communication node 100. FIG. 2 mainly shows the hardware configuration of the first communication node 100. The first communication node 100 shown in FIG. 2 can also be applied to the hardware configuration of the second communication node 200 to the sixth communication node 600.

第1の通信ノード100は、マイクロコントローラ102と、トランシーバ110とを備える。   The first communication node 100 includes a microcontroller 102 and a transceiver 110.

マイクロコントローラ102は、CPU104と、ROM106と、RAM108とを備える。   The microcontroller 102 includes a CPU 104, a ROM 106, and a RAM 108.

第1の通信ノード100が2個以上のトランシーバを有するようにしてもよい。また、第1の通信ノード100が2個以上のマイクロコントローラを有するようにしてもよい。   The first communication node 100 may have two or more transceivers. Further, the first communication node 100 may include two or more microcontrollers.

CPU104は、第1の通信ノード100を制御する。具体的には、CPU104は、通信相手となる通信ノードをウエイクアップさせるために、ウエイクアップ要求フレームを作成し、送信する制御を実行する。また、CPU104は、他の通信ノードから送信されたウエイクアップ要求フレームを受信した場合にウエイクアップする制御を実行する。   The CPU 104 controls the first communication node 100. Specifically, the CPU 104 executes control for creating and transmitting a wakeup request frame in order to wake up a communication node as a communication partner. Further, the CPU 104 executes control to wake up when receiving a wake up request frame transmitted from another communication node.

ROM106は、第1の通信ノード100の制御を、CPU104が実行するためのプログラムを格納するためのメモリである。   The ROM 106 is a memory for storing a program for the CPU 104 to execute control of the first communication node 100.

RAM108は、CPU104が第1の通信ノード100の制御を実行する際に、データを一時的に格納するためのメモリである。   The RAM 108 is a memory for temporarily storing data when the CPU 104 executes control of the first communication node 100.

トランシーバ110は、マイクロコントローラ102、第1の通信バス10と接続される。トランシーバ110は、CPU104からのウエイクアップ要求フレームを送信する。また、トランシーバ110は、他の通信ノードから送信されたウエイクアップ要求フレームをマイクロコントローラ102に入力する。   The transceiver 110 is connected to the microcontroller 102 and the first communication bus 10. The transceiver 110 transmits a wakeup request frame from the CPU 104. Further, the transceiver 110 inputs a wakeup request frame transmitted from another communication node to the microcontroller 102.

<第1の通信ノード100の機能>
第1の通信ノード100の機能の一実施例について説明する。
<Function of First Communication Node 100>
An example of the function of the first communication node 100 will be described.

図3は、第1の通信ノード100の機能の一実施例を示す機能ブロック図である。この機能ブロック図により表される機能は、主に、マイクロコントローラ102により実行される。第2の通信ノード200−第6の通信ノード600の機能も、図3に示す第1の通信ノード100の機能ブロック図を適用できる。   FIG. 3 is a functional block diagram illustrating an example of functions of the first communication node 100. The functions represented by this functional block diagram are mainly executed by the microcontroller 102. As the functions of the second communication node 200 to the sixth communication node 600, the functional block diagram of the first communication node 100 shown in FIG. 3 can be applied.

マイクロコントローラ102は、ウエイクアップ要求フレーム作成部1042と、状態制御部1044として機能する。   The microcontroller 102 functions as a wakeup request frame creation unit 1042 and a state control unit 1044.

ウエイクアップ要求フレーム作成部1042は、トランシーバ110と接続される。ウエイクアップ要求フレーム作成部1042は、スリープ状態の通信ノードのウエイクアップを要求するウエイクアップ要求フレームを作成する。ウエイクアップ要求フレーム作成部1042は、トランシーバ110へ、ウエイクアップ要求フレームを入力する。   Wake-up request frame creation section 1042 is connected to transceiver 110. The wakeup request frame creation unit 1042 creates a wakeup request frame for requesting wakeup of a communication node in a sleep state. Wakeup request frame creation section 1042 inputs a wakeup request frame to transceiver 110.

図4は、CANフレームの一例を示す。ウエイクアップ要求フレームは、CANフレームを適用できる。   FIG. 4 shows an example of a CAN frame. A CAN frame can be applied to the wakeup request frame.

CANフレームは、スタートオブフレーム(SOF: Start Of Frame)ビットと、IDと、リモートトランスミッションリクエスト(RTR: Remote Transmission Request)ビットと、データ長コード(DLC: Data Length Code)と、Dataフィールドと、CRCスロットと、ACK(アクノレッジ)スロットと、エンドオブフレーム(EOF: End of Frame)とにより構成される。   The CAN frame consists of a start of frame (SOF) bit, an ID, a remote transmission request (RTR) bit, a data length code (DLC), a data field, and a CRC. The slot includes an ACK (acknowledge) slot and an end of frame (EOF).

スタートオブフレームビットは、メッセージの始めを示し、ドミナント(論理0)ビットで示される。   The start of frame bit indicates the beginning of the message and is indicated by a dominant (logic 0) bit.

IDは、メッセージを識別し、メッセージの優先順位を示す。IDは、11ビットで表されてもよいし(標準フレーム)、29ビットで表されてもよい(拡張フレーム)。IDは、データIDとも呼ばれる。   The ID identifies the message and indicates the priority of the message. The ID may be represented by 11 bits (standard frame) or 29 bits (extended frame). The ID is also called a data ID.

リモートトランスミッションリクエストビットは、リモートフレームとデータフレームを区別するのに使用される。ドミナント(論理0)のリモートトランスミッションリクエストビットはデータフレームを示す。リセッシブ(論理1)のリモートトランスミッションリクエストビットはリモートフレームを示す。   The remote transmission request bit is used to distinguish between a remote frame and a data frame. The dominant (logic 0) remote transmission request bit indicates a data frame. The recessive (logic 1) remote transmission request bit indicates a remote frame.

データ長コードは、データフィールドに含まれるバイト数を示す。   The data length code indicates the number of bytes included in the data field.

Dataフィールドには、0〜8バイトのデータが含まれる。   The Data field contains 0 to 8 bytes of data.

CRCは、巡回冗長検査を示す。CRCには、15ビットの巡回冗長検査コードとリセッシブデリミタビットが含まれる。CRCフィールドは、エラー検出に使用される。   CRC indicates a cyclic redundancy check. The CRC includes a 15-bit cyclic redundancy check code and a recessive delimiter bit. The CRC field is used for error detection.

ACK(アクノレッジ)スロットは、メッセージを正しく受信した場合に、メッセージの最後に送信する。送信側のノードは通信バス上でACKビットの有無をチェックし、ACKが検出されなかった場合は再度送信を試みるのが好ましい。   The ACK (acknowledge) slot is transmitted at the end of the message when the message is correctly received. The transmitting node preferably checks the presence or absence of an ACK bit on the communication bus, and if no ACK is detected, attempts to transmit again.

エンドオブフレームは、データフレームやリモートフレームの終了位置を示す。エンドオブフレームは、7ビットで構成され、ビットレベルは全て"リセッシブ"である。   The end of frame indicates the end position of the data frame or the remote frame. The end-of-frame is composed of 7 bits, and all bit levels are “recessive”.

ウエイクアップ要求フレーム作成部1042は、ウエイクアップ要求フレームであること、またウエイクアップさせる通信ノードをIDにより指定してもよいし、データにより指定してもよい。例えば、ウエイクアップさせる通信ノードをIDにより指定する場合には、IDを「00000000001」とすることにより全通信ノードをウエイクアップさせることを依頼することが指定され、IDを「00000000010」とすることにより第1の群50の通信ノードをウエイクアップさせることを依頼することが指定され、IDを「00000000100」とすることにより第2の群60の通信ノードをウエイクアップさせることが指定される。ウエイクアップさせるスレーブ通信ノードをデータにより指定する場合にも適用できる。   The wake-up request frame creation unit 1042 may be a wake-up request frame, and may designate a communication node to wake up with an ID or data. For example, when a communication node to be woken up is specified by an ID, it is specified to request that all communication nodes be woken up by setting the ID to “00000000001”, and by setting the ID to “00000000010” A request to wake up the communication nodes of the first group 50 is specified, and an ID “00000000100” is specified to wake up the communication nodes of the second group 60. This can also be applied to the case where the slave communication node to be woken up is designated by data.

状態制御部1044は、トランシーバ110と接続される。状態制御部1044は、第1の通信ノード100の状態に関する制御を実行する。第1の通信ノード100の状態には、ウエイクアップ状態と、スリープ状態と、フェールセーフ状態がある。ウエイクアップ状態は、動作状態であり、データの送受信が可能である。スリープ状態は、電力消費を抑えるために、一定時間データの送受信がないときに動作を一時的に停止している状態である。スリープ状態では、ウエイクアップ要求フレームを受信することによりウエイクアップ状態に遷移できる。フェールセーフ状態は、他のノードから送信されるデータを受信できない場合や、制御ができない状態となった場合に、動作を停止している状態である。フェールセーフ状態では、ウエイクアップ要求フレームを受信することによりウエイクアップ状態に遷移できる。   The state control unit 1044 is connected to the transceiver 110. The state control unit 1044 executes control related to the state of the first communication node 100. The state of the first communication node 100 includes a wake-up state, a sleep state, and a fail-safe state. The wake-up state is an operating state, and data can be transmitted and received. The sleep state is a state in which the operation is temporarily stopped when there is no data transmission / reception for a certain period of time in order to suppress power consumption. In the sleep state, transition to the wakeup state can be made by receiving a wakeup request frame. The fail-safe state is a state where the operation is stopped when data transmitted from another node cannot be received or when control is impossible. In the fail-safe state, it is possible to transition to the wake-up state by receiving the wake-up request frame.

状態制御部1044には、トランシーバ110からウエイクアップ要求フレームが入力される。状態制御部1044は、ウエイクアップ要求フレームが入力されると、ウエイクアップし、ウエイクアップ状態に遷移する。   The state control unit 1044 receives a wakeup request frame from the transceiver 110. When the wakeup request frame is input, the state control unit 1044 wakes up and transitions to the wakeup state.

<第7の通信ノード700>
図5は、第7の通信ノード700の一実施例を示す。図5は、主に第7の通信ノード700のハードウェア構成を示す。
<Seventh communication node 700>
FIG. 5 shows an example of the seventh communication node 700. FIG. 5 mainly shows the hardware configuration of the seventh communication node 700.

第7の通信ノード700は、マイクロコントローラ702と、第1のトランシーバ710と、第2のトランシーバ712とを備える。   The seventh communication node 700 includes a microcontroller 702, a first transceiver 710, and a second transceiver 712.

マイクロコントローラ702は、CPU704と、ROM706と、RAM708とを備える。   The microcontroller 702 includes a CPU 704, a ROM 706, and a RAM 708.

第7の通信ノード700が3個以上のトランシーバを有するようにしてもよい。また、第7の通信ノード700が2個以上のマイクロコントローラを有するようにしてもよい。   The seventh communication node 700 may have three or more transceivers. Further, the seventh communication node 700 may include two or more microcontrollers.

CPU704は、第7の通信ノード700を制御する。具体的には、CPU704は、第1の通信ノード100−第6の通信ノード600のいずれかから送信されたウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。具体的には、CPU704は、車両の電源状態が、イグニッションがオンからオフにされたことを確認する。CPU704は、イグニッションがオフにされたことを確認後、イグニッションがオンにされるまでの間で、且つある時間から第2の閾値により表される時間の間にウエイクアップ要求フレームを受信した回数に基づいて、ウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。   The CPU 704 controls the seventh communication node 700. Specifically, the CPU 704 determines whether the wakeup request by the wakeup request frame transmitted from any of the first communication node 100 to the sixth communication node 600 is a regular request or an illegal request. to decide. Specifically, the CPU 704 confirms that the power state of the vehicle has been turned off from the ignition. After confirming that the ignition is turned off, the CPU 704 counts the number of times the wake-up request frame is received from when the ignition is turned on until the time indicated by the second threshold value. Based on this, it is determined whether the wakeup request by the wakeup request frame is a regular request or an illegal request.

CPU704は、ウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であると判断した場合、ウエイクアップ要求フレームを送信した通信ノードが接続される通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信するように制御する。   If the CPU 704 determines that the wakeup request frame is a normal request, the CPU 704 sends the wakeup request frame to another communication bus different from the communication bus to which the communication node that transmitted the wakeup request frame is connected. Control to send.

CPU704は、ウエイクアップ要求フレームによるウエイクアップ要求が不正な要求であると判断した場合、ウエイクアップ要求フレームを送信しない。   If the CPU 704 determines that the wakeup request by the wakeup request frame is an illegal request, the CPU 704 does not transmit the wakeup request frame.

ROM706は、第7の通信ノード700の制御を、CPU704が実行するためのプログラムを格納する。   The ROM 706 stores a program for the CPU 704 to execute control of the seventh communication node 700.

RAM708は、CPU704が第7の通信ノード700の制御を実行する際に、データを一時的に格納する。   The RAM 708 temporarily stores data when the CPU 704 executes control of the seventh communication node 700.

第1のトランシーバ710は、マイクロコントローラ702、第1の通信バス10と接続される。第1のトランシーバ710は、第1の通信バス10にCPU704からのウエイクアップ要求フレームを送信する。また、第1のトランシーバ710は、他の通信ノードからのウエイクアップ要求フレームをマイクロコントローラ702に入力する。   The first transceiver 710 is connected to the microcontroller 702 and the first communication bus 10. The first transceiver 710 transmits the wakeup request frame from the CPU 704 to the first communication bus 10. Further, the first transceiver 710 inputs a wakeup request frame from another communication node to the microcontroller 702.

第2のトランシーバ712は、マイクロコントローラ702、第2の通信バス20と接続される。第2のトランシーバ712は、第2の通信バス20にCPU704からのウエイクアップ要求フレームを送信する。また、第1のトランシーバ710は、他の通信ノードからのウエイクアップ要求フレームをマイクロコントローラ702に入力する。   The second transceiver 712 is connected to the microcontroller 702 and the second communication bus 20. The second transceiver 712 transmits a wakeup request frame from the CPU 704 to the second communication bus 20. Further, the first transceiver 710 inputs a wakeup request frame from another communication node to the microcontroller 702.

<第7の通信ノード700の機能>
図6は、第7の通信ノード700の機能の一実施例を示す機能ブロック図である。この機能ブロック図により表される機能は、主に、マイクロコントローラ702により実行される。
<Function of Seventh Communication Node 700>
FIG. 6 is a functional block diagram illustrating an example of functions of the seventh communication node 700. The functions represented by this functional block diagram are mainly executed by the microcontroller 702.

マイクロコントローラ702は、通信制御部7042と、ウエイクアップ要求フレーム判断部7044として機能する。通信制御部7042は、第1のタイマ7046と、第2のタイマ7048と、第3のタイマ7052とを有する。ウエイクアップ要求フレーム判断部7044は、受信回数カウンタ7050を有する。   The microcontroller 702 functions as a communication control unit 7042 and a wakeup request frame determination unit 7044. The communication control unit 7042 includes a first timer 7046, a second timer 7048, and a third timer 7052. The wakeup request frame determination unit 7044 includes a reception number counter 7050.

通信制御部7042は、第1のトランシーバ710と、第2のトランシーバ712と接続される。通信制御部7042は、第7の通信ノード700の通信に関する制御を実行する。通信制御部7042には、車両のイグニッションがオンにされた場合にはイグニッションがオンにされたことを示すイグニッションオン信号が入力され、車両のイグニッションがオフにされた場合にはイグニッションがオフにされたことを示すイグニッションオフ信号が入力される。   The communication control unit 7042 is connected to the first transceiver 710 and the second transceiver 712. The communication control unit 7042 executes control related to communication of the seventh communication node 700. When the vehicle ignition is turned on, the communication control unit 7042 receives an ignition on signal indicating that the ignition is turned on, and when the vehicle ignition is turned off, the ignition is turned off. An ignition-off signal indicating this is input.

通信制御部7042は、第7の通信ノード700がスリープ状態に遷移する際に、第1のタイマ7046を起動する。第1のタイマ7046は、車両のイグニッションがオフにされ、且つ第7の通信ノード700がスリープ状態に遷移してから、第2のタイマ7048をオンにするまでの経過時間を計測するためのタイマである。例えば、第7の通信ノード700は、所定の時間の間に送信するデータがなく、且つ受信するデータがないときにスリープ状態に遷移する。   The communication control unit 7042 starts the first timer 7046 when the seventh communication node 700 transitions to the sleep state. The first timer 7046 is a timer for measuring an elapsed time from when the vehicle ignition is turned off and when the seventh communication node 700 transitions to the sleep state until the second timer 7048 is turned on. It is. For example, the seventh communication node 700 transitions to a sleep state when there is no data to be transmitted during a predetermined time and there is no data to be received.

通信制御部7042は、第1のタイマ7046による経過時間が第1の閾値となった場合に、第1のタイマ7046による経過時間の計測を終了するとともに、第2のタイマ7048を起動する。第2のタイマ7048は、第1のタイマ7046による経過時間の計測が終了してから、受信回数カウンタ7050により受信回数をカウントする受信回数カウント期間を計測するためのタイマである。第2のタイマ7048は受信回数カウント期間が所定の期間となった場合に満了し、再起動される。通信制御部7042は、ウエイクアップ要求フレーム判断部7044に、第2のタイマ7048が(再)起動されたことを通知する。   When the elapsed time by the first timer 7046 becomes the first threshold, the communication control unit 7042 ends the measurement of the elapsed time by the first timer 7046 and starts the second timer 7048. The second timer 7048 is a timer for measuring a reception frequency count period in which the reception frequency counter 7050 counts the reception frequency after the elapsed time measurement by the first timer 7046 is completed. The second timer 7048 expires and is restarted when the reception count period reaches a predetermined period. The communication control unit 7042 notifies the wakeup request frame determination unit 7044 that the second timer 7048 has been (re) started.

通信制御部7042は、イグニッションオフ信号が入力された後に、第1のトランシーバ710または第2のトランシーバ712からウエイクアップ要求フレームが入力された場合に、第1のタイマ7046による計測時間が第1の閾値未満であるか否かを判断する。   When the wakeup request frame is input from the first transceiver 710 or the second transceiver 712 after the ignition off signal is input, the communication control unit 7042 receives the first measurement time by the first timer 7046. It is determined whether it is less than the threshold value.

通信制御部7042は、第1のタイマ7046による計測時間が第1の閾値未満であると判断した場合、ウエイクアップ要求フレームが入力されたトランシーバとは異なるトランシーバに、ウエイクアップ要求フレームを入力する。   When the communication control unit 7042 determines that the time measured by the first timer 7046 is less than the first threshold, the communication control unit 7042 inputs the wakeup request frame to a transceiver different from the transceiver to which the wakeup request frame is input.

通信制御部7042は、第1のタイマ7046による計測時間が第1の閾値以上であると判断した場合、第2のタイマ7048が起動しているか否かを判断する。   If the communication control unit 7042 determines that the time measured by the first timer 7046 is equal to or greater than the first threshold, the communication control unit 7042 determines whether the second timer 7048 is activated.

通信制御部7042は、第2のタイマ7048が起動していないと判断した場合、ウエイクアップ要求フレームが入力されたトランシーバとは異なるトランシーバに、ウエイクアップ要求フレームを入力する。通信制御部7042は、第2のタイマ7048が起動していると判断した場合、ウエイクアップ要求フレーム判断部7044にウエイクアップ要求フレームを入力する。   If the communication control unit 7042 determines that the second timer 7048 is not started, the communication control unit 7042 inputs the wakeup request frame to a transceiver different from the transceiver to which the wakeup request frame is input. When the communication control unit 7042 determines that the second timer 7048 is activated, the communication control unit 7042 inputs a wakeup request frame to the wakeup request frame determination unit 7044.

通信制御部7042は、ウエイクアップ要求フレーム判断部7044から、ウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であることが通知された場合、ウエイクアップ要求フレームが入力されたトランシーバとは異なるトランシーバに、ウエイクアップ要求フレームを入力する。   If the wakeup request frame determination unit 7044 notifies that the wakeup request frame is a normal request from the wakeup request frame determination unit 7044, the communication control unit 7042 uses a transceiver different from the transceiver to which the wakeup request frame is input. The wake-up request frame is input.

通信制御部7042は、ウエイクアップ要求フレーム判断部7044から、ウエイクアップ要求フレームによるウエイクアップ要求が不正な要求であることが通知された場合、トランシーバにウエイクアップ要求フレームを入力しない。この場合、通信制御部7042は、ウエイクアップ要求フレームを破棄するようにしてもよい。   The communication control unit 7042 does not input the wakeup request frame to the transceiver when the wakeup request frame determination unit 7044 is notified that the wakeup request by the wakeup request frame is an illegal request. In this case, the communication control unit 7042 may discard the wakeup request frame.

通信制御部7042は、ウエイクアップ要求フレーム判断部7044から、ウエイクアップ要求フレームによるウエイクアップ要求が不正な要求であることが通知された場合、第3のタイマ7052を起動する。第3のタイマ7052は、ウエイクアップ要求フレームによるウエイクアップ要求が不正な要求であると判断されてからの経過時間を計測するタイマである。通信制御部7042は、第3のタイマ7052が起動してから第3の閾値により表される時間が経過するまで待機する。つまり、通信制御部7042は、第3のタイマ7052が起動してから第3の閾値により表される時間が経過するまでは、第1のトランシーバ710または第2のトランシーバ712からウエイクアップ要求フレームが入力されても、ウエイクアップ要求フレームが入力されたトランシーバとは異なるトランシーバに、ウエイクアップ要求フレームを入力しない。この場合、通信制御部7042は、ウエイクアップ要求フレームを破棄するようにしてもよい。   The communication control unit 7042 activates the third timer 7052 when notified from the wakeup request frame determination unit 7044 that the wakeup request by the wakeup request frame is an illegal request. The third timer 7052 is a timer that measures an elapsed time after it is determined that the wakeup request by the wakeup request frame is an invalid request. The communication control unit 7042 waits until the time represented by the third threshold elapses after the third timer 7052 is activated. That is, the communication control unit 7042 receives a wake-up request frame from the first transceiver 710 or the second transceiver 712 until the time represented by the third threshold elapses after the third timer 7052 is activated. Even if it is input, the wakeup request frame is not input to a transceiver different from the transceiver to which the wakeup request frame is input. In this case, the communication control unit 7042 may discard the wakeup request frame.

通信制御部7042は、第3のタイマ7052を起動してから第3の閾値により表される時間が経過した後、第3のタイマ7052による経過時間の計測を終了することによりリセットする。通信制御部7042は、第3のタイマ7052による経過時間の計測を終了した後に、第2のタイマ7048を再起動する。   The communication control unit 7042 resets by ending the measurement of the elapsed time by the third timer 7052 after the time represented by the third threshold has elapsed since the third timer 7052 was started. The communication control unit 7042 restarts the second timer 7048 after the measurement of the elapsed time by the third timer 7052 is completed.

ウエイクアップ要求フレーム判断部7044は、通信制御部7042と接続される。ウエイクアップ要求フレーム判断部7044は、通信制御部7042から入力されるウエイクアップ要求フレームに基づいて、該ウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。   Wake-up request frame determination unit 7044 is connected to communication control unit 7042. The wakeup request frame determination unit 7044 determines whether the wakeup request frame based on the wakeup request frame is a legitimate request or an illegal request based on the wakeup request frame input from the communication control unit 7042. .

ウエイクアップ要求フレーム判断部7044には、車両のイグニッションがオンにされた場合にはイグニッションがオンにされたことを示すイグニッションオン信号が入力され、車両のイグニッションがオフにされた場合にはイグニッションがオフにされたことを示すイグニッションオフ信号が入力される。   The wake-up request frame determination unit 7044 receives an ignition on signal indicating that the ignition is turned on when the ignition of the vehicle is turned on, and the ignition when the ignition of the vehicle is turned off. An ignition-off signal indicating that it has been turned off is input.

ウエイクアップ要求フレーム判断部7044は、車両のイグニッションがオンである状態でイグニッションオフ信号が入力された後に、通信制御部7042から入力されるウエイクアップ要求フレームの数をカウントする。ウエイクアップ要求フレーム判断部7044には、ウエイクアップ要求フレームの数をカウントするための受信回数カウンタ7050が用意される。   The wakeup request frame determination unit 7044 counts the number of wakeup request frames input from the communication control unit 7042 after the ignition off signal is input in a state where the ignition of the vehicle is on. The wakeup request frame determination unit 7044 is provided with a reception number counter 7050 for counting the number of wakeup request frames.

ウエイクアップ要求フレーム判断部7044は、通信制御部7042から第2のタイマ7048が(再)起動されたことが通知される。ウエイクアップ要求フレーム判断部7044は、第2のタイマ7048が(再)起動されたことを表す信号に基づいて、ウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。具体的には、ウエイクアップ要求フレーム判断部7044は、第2のタイマ7048が(再)起動されてから所定の期間の間に入力されるウエイクアップ要求フレームの数に基づいて、該ウエイクアップ要求フレームによるウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。   The wakeup request frame determination unit 7044 is notified from the communication control unit 7042 that the second timer 7048 has been (re) started. The wakeup request frame determination unit 7044 determines whether the wakeup request is a regular request or an illegal request based on a signal indicating that the second timer 7048 has been (re) started. Specifically, the wakeup request frame determination unit 7044 determines the wakeup request frame based on the number of wakeup request frames input during a predetermined period after the second timer 7048 is (re) started. It is determined whether the wakeup request by the frame is a regular request or an invalid request.

ウエイクアップ要求フレーム判断部7044は、受信回数カウンタ7050のカウント値が受信回数閾値以下である場合には、正規のウエイクアップ要求であると判断する。この場合、ウエイクアップ要求フレーム判断部7044は、通信制御部7042にウエイクアップ要求が正規な要求であることを通知する。   The wakeup request frame determination unit 7044 determines that the request is a regular wakeup request when the count value of the reception number counter 7050 is equal to or smaller than the reception number threshold. In this case, the wakeup request frame determination unit 7044 notifies the communication control unit 7042 that the wakeup request is a regular request.

ウエイクアップ要求フレーム判断部7044は、受信回数カウンタ7050のカウント値が受信回数閾値より大きい場合には、不正のウエイクアップ要求であると判断する。この場合、ウエイクアップ要求フレーム判断部7044は、通信制御部7042にウエイクアップ要求が不正な要求であることを通知する。   If the count value of reception count counter 7050 is greater than the reception count threshold, wakeup request frame determination unit 7044 determines that the request is an unauthorized wakeup request. In this case, the wakeup request frame determination unit 7044 notifies the communication control unit 7042 that the wakeup request is an illegal request.

受信回数カウンタ7050は、イグニッションがオフからオンにされた際、ACC電源がオフからオンにされた際、車両のドアが閉から開にされた際、ドアロックがアンロックされた際、一定時間の経過後にリセットされるのが好ましい。   The reception number counter 7050 is set for a certain period of time when the ignition is turned on from off, when the ACC power source is turned on from off, when the vehicle door is opened from the closed state, when the door lock is unlocked. It is preferable to reset after elapse of time.

<通信システムの動作>
図7は、通信システムの動作の一実施例を示す。
<Operation of communication system>
FIG. 7 shows an embodiment of the operation of the communication system.

ステップS702では、車両のイグニッションがオンからオフにされる。   In step S702, the ignition of the vehicle is turned off from on.

ステップS704では、第7の通信ノード700は、スリープ状態に遷移する。第7の通信ノード700がスリープ状態に遷移する際に、第1の通信ノード100−第6の通信ノード600の全てがスリープ状態に遷移していてもよいし、いずれか1つがスリープ状態に遷移していてもよい。   In step S704, the seventh communication node 700 transitions to the sleep state. When the seventh communication node 700 transitions to the sleep state, all of the first communication node 100 to the sixth communication node 600 may transition to the sleep state, or any one of them transitions to the sleep state. You may do it.

ステップS706では、第7の通信ノード700は、第1のタイマ7046を起動する。   In step S706, the seventh communication node 700 starts the first timer 7046.

ステップS708では、第7の通信ノード700は、ウエイクアップ要求フレームを受信する。例えば、第1の通信ノード100−第6の通信ノード600のいずれかの通信ノードがウエイクアップし、ウエイクアップ要求フレームを作成し、送信する。第7の通信ノード700は、そのウエイクアップ要求フレームを受信する。   In step S708, the seventh communication node 700 receives the wakeup request frame. For example, any one of the first communication node 100 to the sixth communication node 600 wakes up and creates and transmits a wakeup request frame. The seventh communication node 700 receives the wakeup request frame.

ステップS710では、第7の通信ノード700は、第1のタイマ7046による計測時間が第1の閾値により表される時間未満、つまり第1の閾値により表される時間よりも短い時間であるか否かを判断する。   In step S710, the seventh communication node 700 determines whether or not the time measured by the first timer 7046 is less than the time represented by the first threshold, that is, is shorter than the time represented by the first threshold. Determine whether.

ステップS712では、第7の通信ノード700は、第1のタイマ7046による計測時間が第1の閾値未満であると判断した場合、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信する。第7の通信ノード700は、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信した後、ステップS708からの処理を引き続き行う。   In step S712, when the seventh communication node 700 determines that the time measured by the first timer 7046 is less than the first threshold, the seventh communication node 700 uses another communication bus different from the communication bus that received the wakeup request frame. A wakeup request frame is transmitted. The seventh communication node 700 continues the processing from step S708 after transmitting the wakeup request frame to another communication bus different from the communication bus that has received the wakeup request frame.

ステップS714では、第7の通信ノード700は、第1のタイマ7046による計測時間が第1の閾値未満でないと判断した場合、第2のタイマ7048が起動しているか否かを判断する。第2のタイマ7048が起動していないと判断した場合、ステップS712へ遷移する。   In step S714, when the seventh communication node 700 determines that the time measured by the first timer 7046 is not less than the first threshold, the seventh communication node 700 determines whether the second timer 7048 is activated. When it is determined that the second timer 7048 has not been started, the process proceeds to step S712.

ステップS716では、第2のタイマ7048が起動していると判断した場合、第7の通信ノード700は、第2のタイマ7048により所定の期間の計測中にカウントされた受信回数カウンタ7050のカウント値が受信回数閾値以下であるか否かを判断する。   In step S716, when it is determined that the second timer 7048 is activated, the seventh communication node 700 counts the reception number counter 7050 counted during the measurement of the predetermined period by the second timer 7048. Is less than or equal to the reception frequency threshold.

ステップS718では、第7の通信ノード700は、受信回数カウンタ7050のカウント値が受信回数閾値以下であると判断した場合、他の通信バスにウエイクアップ要求フレームを送信する。   In step S718, if the seventh communication node 700 determines that the count value of the reception number counter 7050 is equal to or less than the reception number threshold value, the seventh communication node 700 transmits a wakeup request frame to another communication bus.

ステップS720では、第7の通信ノード700は、第2のタイマ7048によるカウントを終了し、ステップS708からの処理を引き続き行う。   In step S720, the seventh communication node 700 ends the counting by the second timer 7048 and continues the processing from step S708.

ステップS722では、第7の通信ノード700は、受信回数カウンタ7050のカウント値が受信回数閾値より多いと判断した場合、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信しない。   In step S722, when the seventh communication node 700 determines that the count value of the reception count counter 7050 is greater than the reception count threshold, the wakeup request is sent to another communication bus different from the communication bus that has received the wakeup request frame. Do not send frames.

ステップS724では、第7の通信ノード700は、第3のタイマ7052を起動する。   In step S724, the seventh communication node 700 starts the third timer 7052.

ステップS726では、第7の通信ノード700は、第3のタイマ7052による計測時間が所定の期間となった場合に終了する。   In step S726, the seventh communication node 700 ends when the time measured by the third timer 7052 reaches a predetermined period.

図7に示される処理の順序は一例であり、異なる順序で実行されてもよい。例えば、ステップS718の処理より先にステップS720の処理を実行してもよいし、ステップS722の処理より先にステップS724の処理を実行してもよい。   The order of the processing shown in FIG. 7 is an example, and may be executed in a different order. For example, the process of step S720 may be executed before the process of step S718, or the process of step S724 may be executed before the process of step S722.

通信システムの一実施例では、車両のイグニッションがオフにされた後に、第7の通信ノード700がスリープ状態に遷移してから第1の閾値により表される時間が経過するまでは、第7の通信ノード700は、ウエイクアップ要求フレームが入力された通信バスとは異なる他の通信バスに受信したウエイクアップ要求フレームを送信する。   In one embodiment of the communication system, after the vehicle ignition is turned off, the seventh communication node 700 transitions to the sleep state until the time represented by the first threshold elapses. The communication node 700 transmits the received wakeup request frame to another communication bus different from the communication bus to which the wakeup request frame is input.

第7の通信ノード700がスリープ状態に遷移してから第1の閾値により表される時間が経過した後には、第7の通信ノード700は、ウエイクアップ要求フレームを受信した回数に基づいて、ウエイクアップ要求フレームによるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断する。具体的には、車両のイグニッションがオフにされてからオンにされるまでの時間区間において、受信回数をカウントする受信回数カウント期間が所定の期間となるまでにおけるウエイクアップ要求フレームの受信回数に基づいて、ウエイクアップ要求フレームによるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断する。   After the time represented by the first threshold has elapsed since the seventh communication node 700 transitioned to the sleep state, the seventh communication node 700 wakes up based on the number of times the wakeup request frame has been received. It is determined whether the wakeup request by the up request frame is a regular request or an illegal request. Specifically, based on the number of receptions of the wake-up request frame until the reception frequency count period for counting the number of receptions reaches a predetermined period in the time period from when the vehicle ignition is turned off to when it is turned on. Thus, it is determined whether the wakeup request by the wakeup request frame is a regular request or an illegal request.

ウエイクアップ要求が不正の要求であると判断した場合には、一方の通信バスに接続された通信ノードからのウエイクアップ要求フレームを他方の通信バスに接続された通信ノードに送信する制御を実行しないことにより、他方の通信バスに接続された通信バスはウエイクアップすることがないため、消費電力を低減できる。   If it is determined that the wakeup request is an illegal request, control is not performed to transmit a wakeup request frame from a communication node connected to one communication bus to a communication node connected to the other communication bus. As a result, the communication bus connected to the other communication bus does not wake up, so that power consumption can be reduced.

イグニッションがオンの状態からオフにされた直後は、ユーザが車両の操作を行うことにより、ウエイクアップ要求フレームが多く作成され、送信されることが想定される。したがって、車両のイグニッションがオフにされ、第7の通信ノード700がスリープ状態に遷移してから第1の閾値により表される時間が経過するまでは、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規の要求であるとして処理を行う。   Immediately after the ignition is turned off from the on state, it is assumed that many wakeup request frames are created and transmitted by the user operating the vehicle. Therefore, the wake-up request requested by the wake-up request frame until the time represented by the first threshold value elapses after the vehicle ignition is turned off and the seventh communication node 700 transitions to the sleep state. It is assumed that is a legitimate request.

このようにすることにより、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規の要求である場合に、不正の要求であるとして処理される確率を低減できる。   In this way, when the wakeup request requested by the wakeup request frame is a regular request, the probability of being processed as an unauthorized request can be reduced.

<第2の実施例>
通信システムの一実施例は、車両のイグニッションがオフにされ、且つ第7の通信ノード700がスリープ状態に遷移してからウエイクアップ要求フレームを受信するまでの時間に基づいて、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断するようにしたものである。
<Second embodiment>
One embodiment of the communication system is based on the wakeup request frame based on the time from when the vehicle ignition is turned off and the seventh communication node 700 receives the wakeup request frame after entering the sleep state. It is determined whether the requested wakeup request is a legitimate request or an illegal request.

<通信システム>
通信システムの一実施例は、図1を参照して説明した通信システムを適用できる。
<Communication system>
The communication system described with reference to FIG. 1 can be applied to an embodiment of the communication system.

<第1の通信ノード100>
第1の通信ノード100の一実施例は、図2を参照して説明した第1の通信ノードを適用できる。
<First communication node 100>
One embodiment of the first communication node 100 can apply the first communication node described with reference to FIG.

<第1の通信ノード100の機能>
第1の通信ノード100の機能の一実施例は、図3を参照して説明した第1の通信ノード100の機能ブロック図を適用できる。
<Function of First Communication Node 100>
As an example of the function of the first communication node 100, the functional block diagram of the first communication node 100 described with reference to FIG. 3 can be applied.

<第7の通信ノード700>
第7の通信ノード700の一実施例は、図5を参照して説明した第7の通信ノード700を適用できる。
<Seventh communication node 700>
The seventh communication node 700 described with reference to FIG. 5 can be applied to an example of the seventh communication node 700.

<第7の通信ノード700の機能>
図8は、第7の通信ノード700の機能の一実施例を示す機能ブロック図である。この機能ブロック図により表される機能は、主に、マイクロコントローラ702により実行される。
<Function of Seventh Communication Node 700>
FIG. 8 is a functional block diagram illustrating an example of functions of the seventh communication node 700. The functions represented by this functional block diagram are mainly executed by the microcontroller 702.

マイクロコントローラ702は、通信制御部7064と、ウエイクアップ要求フレーム判断部7066として機能する。通信制御部7064は、ウエイクアップ計測タイマ7068と、タイミングT1格納部7070とを有する。ウエイクアップ要求フレーム判断部7066は、タイミング一致カウンタ7072を有する。   The microcontroller 702 functions as a communication control unit 7064 and a wakeup request frame determination unit 7066. The communication control unit 7064 has a wakeup measurement timer 7068 and a timing T1 storage unit 7070. The wakeup request frame determination unit 7066 includes a timing match counter 7072.

通信制御部7064は、第1のトランシーバ710と、第2のトランシーバ712と接続される。通信制御部7064は、第7の通信ノード700の通信に関する制御を実行する。通信制御部7064には、車両のイグニッションがオンにされた場合にはイグニッションがオンにされたことを示すイグニッションオン信号が入力され、車両のイグニッションがオフにされた場合にはイグニッションがオフにされたことを示すイグニッションオフ信号が入力される。   The communication control unit 7064 is connected to the first transceiver 710 and the second transceiver 712. The communication control unit 7064 executes control related to communication of the seventh communication node 700. When the vehicle ignition is turned on, the communication control unit 7064 receives an ignition on signal indicating that the ignition is turned on, and when the vehicle ignition is turned off, the ignition is turned off. An ignition-off signal indicating this is input.

通信制御部7064は、第7の通信ノード700がスリープ状態に遷移する際に、ウエイクアップ計測タイマ7068を起動する。ウエイクアップ計測タイマ7068は、第7の通信ノード700がスリープ状態に遷移してからウエイクアップするまでの時間を計測するタイマである。例えば、第7の通信ノード700は、所定の時間の間に送信するデータがなく、且つ受信するデータがないときにスリープ状態に遷移する。   The communication control unit 7064 starts the wakeup measurement timer 7068 when the seventh communication node 700 transitions to the sleep state. The wakeup measurement timer 7068 is a timer that measures the time from when the seventh communication node 700 transitions to the sleep state until it wakes up. For example, the seventh communication node 700 transitions to a sleep state when there is no data to be transmitted during a predetermined time and there is no data to be received.

通信制御部7064は、イグニッションオフ信号が入力された後に、第1のトランシーバ710または第2のトランシーバ712からウエイクアップ要求フレームが入力された場合に、ウエイクアップ計測タイマ7068を停止するとともに、ウエイクアップ計測タイマ7068による計測値を取得する。   The communication control unit 7064 stops the wakeup measurement timer 7068 and wakes up when a wakeup request frame is input from the first transceiver 710 or the second transceiver 712 after the ignition off signal is input. The measurement value by the measurement timer 7068 is acquired.

通信制御部7064は、イグニッションオフ信号が入力されてからスリープ状態に遷移するのが初回である場合、ウエイクアップ計測タイマ7068による計測値をタイミングT1として、タイミングT1格納部7070に格納する。タイミングT1は、第7の通信ノード700がスリープ状態に遷移してからウエイクアップするまでの時間の計測値である。通信制御部7064は、ウエイクアップ要求フレームを、入力されたトランシーバとは異なるトランシーバに入力する。   When the transition to the sleep state is the first time after the ignition-off signal is input, the communication control unit 7064 stores the measured value by the wakeup measurement timer 7068 as the timing T1 in the timing T1 storage unit 7070. Timing T1 is a measured value of the time from when the seventh communication node 700 transitions to the sleep state until it wakes up. The communication control unit 7064 inputs the wakeup request frame to a transceiver different from the input transceiver.

通信制御部7064は、イグニッションオフ信号が入力されてからスリープ状態に遷移するのが2回目以降である場合、ウエイクアップ計測タイマ7068による計測値をタイミングT2として取得する。タイミングT2は、第7の通信ノード700がスリープ状態に遷移してからウエイクアップするまでの時間の計測値である。通信制御部7064は、タイミングT2とともに、タイミングT1格納部7070に格納されたタイミングT1をウエイクアップ要求フレーム判断部7066に入力する。   The communication control unit 7064 acquires the measurement value by the wake-up measurement timer 7068 as the timing T2 when the transition to the sleep state is performed for the second time or later after the ignition-off signal is input. Timing T2 is a measured value of the time from when the seventh communication node 700 transitions to the sleep state until it wakes up. The communication control unit 7064 inputs the timing T1 stored in the timing T1 storage unit 7070 together with the timing T2 to the wakeup request frame determination unit 7066.

通信制御部7064は、ウエイクアップ要求フレーム判断部7066からウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規な要求であることが通知された場合、ウエイクアップ要求フレームが入力されたトランシーバとは異なるトランシーバに、ウエイクアップ要求フレームを入力する。通信制御部7064は、タイミングT1格納部7070に格納されているタイミングT1をタイミングT2に更新する。つまり、通信制御部7064は、タイミングT1格納部7070に格納されているタイミングT1をタイミングT2の値に置き換える。通信制御部7064は、タイミングT2をリセットする。   When the wakeup request frame determining unit 7066 is notified that the wakeup request requested by the wakeup request frame is a normal request, the communication control unit 7064 is different from the transceiver to which the wakeup request frame is input. A wakeup request frame is input to the transceiver. The communication control unit 7064 updates the timing T1 stored in the timing T1 storage unit 7070 to the timing T2. That is, the communication control unit 7064 replaces the timing T1 stored in the timing T1 storage unit 7070 with the value of the timing T2. The communication control unit 7064 resets the timing T2.

通信制御部7064は、ウエイクアップ要求フレーム判断部7066からウエイクアップ要求フレームにより要求されるウエイクアップ要求が不正な要求であることが通知された場合、トランシーバにウエイクアップ要求フレームを入力しない。通信制御部7064は、タイミングT1格納部7070に格納されているタイミングT1をタイミングT2に更新する。つまり、通信制御部7064は、タイミングT1格納部7070に格納されているタイミングT1をタイミングT2の値に置き換える。通信制御部7064は、タイミングT2をリセットする。この場合、通信制御部7064は、ウエイクアップ要求フレームを破棄するようにしてもよい。   If the wakeup request frame determination unit 7066 is notified that the wakeup request requested by the wakeup request frame is an illegal request, the communication control unit 7064 does not input the wakeup request frame to the transceiver. The communication control unit 7064 updates the timing T1 stored in the timing T1 storage unit 7070 to the timing T2. That is, the communication control unit 7064 replaces the timing T1 stored in the timing T1 storage unit 7070 with the value of the timing T2. The communication control unit 7064 resets the timing T2. In this case, the communication control unit 7064 may discard the wakeup request frame.

ウエイクアップ要求フレーム判断部7066は、通信制御部7064と接続される。ウエイクアップ要求フレーム判断部7066は、通信制御部7064から入力されるタイミングT1とタイミングT2に基づいて、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規な要求であるか不正な要求であるかを判断する。   Wake-up request frame determination unit 7066 is connected to communication control unit 7064. Wakeup request frame determination unit 7066 determines whether the wakeup request requested by the wakeup request frame is a legitimate request or an illegal request based on timing T1 and timing T2 input from communication control unit 7064. Judging.

ウエイクアップ要求フレーム判断部7066は、タイミングT1とタイミングT2との差分の絶対値、すなわち|T1−T2|がタイミング差閾値以下であるか否かを判断する。   The wakeup request frame determination unit 7066 determines whether or not the absolute value of the difference between the timing T1 and the timing T2, that is, | T1-T2 | is equal to or less than the timing difference threshold value.

ウエイクアップ要求フレーム判断部7066は、タイミングT1とタイミングT2との差分の絶対値がタイミング差閾値以下である場合、タイミング一致カウンタ7072をカウントアップする。タイミング一致カウンタ7072は、タイミングT1とタイミングT2とが一致した回数を係数するためのカウンタである。タイミングT1とタイミングT2との差分の絶対値がタイミング差閾値以下である場合に、タイミングT1とタイミングT2とが一致したと判断される。ウエイクアップ要求フレーム判断部7066は、タイミング一致カウンタ7072のカウント値がタイミング一致カウント閾値以上であるか否かを判断する。   When the absolute value of the difference between the timing T1 and the timing T2 is equal to or smaller than the timing difference threshold, the wakeup request frame determination unit 7066 counts up the timing match counter 7072. The timing coincidence counter 7072 is a counter for calculating the number of times that the timing T1 coincides with the timing T2. When the absolute value of the difference between the timing T1 and the timing T2 is equal to or smaller than the timing difference threshold value, it is determined that the timing T1 and the timing T2 match. The wakeup request frame determination unit 7066 determines whether or not the count value of the timing match counter 7072 is equal to or greater than the timing match count threshold value.

ウエイクアップ要求フレーム判断部7066は、タイミング一致カウンタ7072のカウント値がタイミング一致カウント閾値以上である場合、不正のウエイクアップ要求であると判断する。この場合、ウエイクアップ要求フレーム判断部7066は、通信制御部7064にウエイクアップ要求が不正な要求であることを通知する。   If the count value of the timing match counter 7072 is equal to or greater than the timing match count threshold, the wakeup request frame determination unit 7066 determines that the request is an unauthorized wakeup request. In this case, the wakeup request frame determination unit 7066 notifies the communication control unit 7064 that the wakeup request is an illegal request.

ウエイクアップ要求フレーム判断部7066は、タイミングT1とタイミングT2との差分の絶対値がタイミング差閾値以下でない場合またはタイミング一致カウンタ7072のカウント値がタイミング一致カウント閾値以上でない場合、正規のウエイクアップ要求であると判断する。この場合、ウエイクアップ要求フレーム判断部7066は、通信制御部7064にウエイクアップ要求が正規な要求であることを通知し、タイミング一致カウンタ7072をリセットする。   When the absolute value of the difference between timing T1 and timing T2 is not less than or equal to the timing difference threshold, or when the count value of the timing match counter 7072 is not greater than or equal to the timing match count threshold, the wakeup request frame determination unit 7066 makes a normal wakeup request. Judge that there is. In this case, the wakeup request frame determination unit 7066 notifies the communication control unit 7064 that the wakeup request is a normal request, and resets the timing match counter 7072.

<通信システムの動作>
図9は、通信システムの動作の一実施例を示す。
<Operation of communication system>
FIG. 9 shows an embodiment of the operation of the communication system.

ステップS902では、車両のイグニッションがオンからオフにされる。   In step S902, the ignition of the vehicle is turned off from on.

ステップS904では、第7の通信ノード700は、スリープ状態に遷移する。   In step S904, the seventh communication node 700 transitions to the sleep state.

ステップS906では、第7の通信ノード700は、スリープ状態への遷移が、イグニッションがオフにされてから初回であるか否かを判断する。   In step S906, the seventh communication node 700 determines whether or not the transition to the sleep state is the first time after the ignition is turned off.

ステップS908では、第7の通信ノード700は、スリープ状態への遷移が、イグニッションがオフにされてから初回であると判断した場合、ウエイクアップ計測タイマ7068を起動する。   In step S908, when the seventh communication node 700 determines that the transition to the sleep state is the first time after the ignition is turned off, the seventh communication node 700 starts the wakeup measurement timer 7068.

ステップS910では、第7の通信ノード700は、ウエイクアップ要求フレームを受信する。例えば、第1の通信ノード100−第6の通信ノード600のいずれかの通信ノードがウエイクアップし、ウエイクアップ要求フレームを作成し、送信する。第7の通信ノード700は、そのウエイクアップ要求フレームを受信する。   In step S910, the seventh communication node 700 receives the wakeup request frame. For example, any one of the first communication node 100 to the sixth communication node 600 wakes up and creates and transmits a wakeup request frame. The seventh communication node 700 receives the wakeup request frame.

ステップS912では、第7の通信ノード700は、ウエイクアップ計測タイマ7068を停止し、計測時間をタイミングT1としてタイミングT1格納部7070に格納する。   In step S912, the seventh communication node 700 stops the wakeup measurement timer 7068 and stores the measurement time in the timing T1 storage unit 7070 as the timing T1.

ステップS914では、第7の通信ノード700は、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信する。   In step S914, the seventh communication node 700 transmits the wakeup request frame to another communication bus different from the communication bus that has received the wakeup request frame.

他の通信バスにウエイクアップ要求フレームを送信後、ステップS904からの処理を行う。   After transmitting the wakeup request frame to another communication bus, the processing from step S904 is performed.

ステップS916では、第7の通信ノード700は、スリープ状態への遷移が、イグニッションがオフにされてから初回でないと判断した場合、ウエイクアップ計測タイマ7068を起動する。   In step S916, if the seventh communication node 700 determines that the transition to the sleep state is not the first time after the ignition is turned off, the seventh communication node 700 starts the wakeup measurement timer 7068.

ステップS918では、第7の通信ノード700は、ウエイクアップ要求フレームを受信する。例えば、第1の通信ノード100−第6の通信ノード600のいずれかの通信ノードがウエイクアップし、ウエイクアップ要求フレームを作成し、送信する。第7の通信ノード700は、そのウエイクアップ要求フレームを受信する。   In step S918, the seventh communication node 700 receives the wakeup request frame. For example, any one of the first communication node 100 to the sixth communication node 600 wakes up and creates and transmits a wakeup request frame. The seventh communication node 700 receives the wakeup request frame.

ステップS920では、第7の通信ノード700は、ウエイクアップ計測タイマ7068を停止し、計測時間をタイミングT2として取得する。   In step S920, the seventh communication node 700 stops the wakeup measurement timer 7068 and acquires the measurement time as the timing T2.

ステップS922では、第7の通信ノード700は、タイミングT1とタイミングT2との差の絶対値がタイミング差閾値以下であるか否かを判断する。   In step S922, the seventh communication node 700 determines whether or not the absolute value of the difference between the timing T1 and the timing T2 is equal to or less than the timing difference threshold value.

ステップS924では、第7の通信ノード700は、タイミングT1とタイミングT2との差の絶対値がタイミング差閾値以下であると判断した場合、タイミング一致カウンタ7072をカウントアップする。   In step S924, when the seventh communication node 700 determines that the absolute value of the difference between the timing T1 and the timing T2 is equal to or less than the timing difference threshold, the seventh communication node 700 counts up the timing match counter 7072.

ステップS926では、第7の通信ノード700は、タイミング一致カウンタ7072のカウント値は、タイミング一致カウント閾値以上であるか否かを判断する。   In step S926, the seventh communication node 700 determines whether or not the count value of the timing match counter 7072 is greater than or equal to the timing match count threshold.

ステップS928では、第7の通信ノード700は、タイミング一致カウンタ7072のカウント値がタイミング一致カウント閾値以上であると判断した場合、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信しない。   In step S928, if the seventh communication node 700 determines that the count value of the timing match counter 7072 is greater than or equal to the timing match count threshold, the seventh communication node 700 wakes up to another communication bus different from the communication bus that received the wakeup request frame. Do not send up request frames.

ステップS930では、第7の通信ノード700は、タイミングT2をタイミングT1とし、タイミングT2をリセットする。   In step S930, the seventh communication node 700 sets the timing T2 to the timing T1, and resets the timing T2.

タイミングT2をタイミングT1とし、タイミングT2をリセット後、ステップS904からの処理を行う。   The timing T2 is set as the timing T1, and the processing from step S904 is performed after the timing T2 is reset.

ステップS932では、第7の通信ノード700は、ステップS922においてタイミングT1とタイミングT2との差の絶対値がタイミング差閾値以下でないと判断した場合またはステップS926においてタイミング一致カウンタ7072のカウント値がタイミング一致カウント閾値以上でないと判断した場合、ウエイクアップ要求フレームを受信した通信バスとは異なる他の通信バスにウエイクアップ要求フレームを送信する。   In step S932, if the seventh communication node 700 determines in step S922 that the absolute value of the difference between the timing T1 and the timing T2 is not less than or equal to the timing difference threshold value, or the count value of the timing match counter 7072 matches the timing in step S926. If it is determined that it is not equal to or greater than the count threshold, the wakeup request frame is transmitted to another communication bus different from the communication bus that received the wakeup request frame.

ステップS934では、第7の通信ノード700は、タイミングT2をタイミングT1とし、タイミングT2をリセットするとともに、タイミング一致カウンタ7072をリセットする。   In step S934, the seventh communication node 700 sets the timing T2 to the timing T1, resets the timing T2, and resets the timing match counter 7072.

タイミングT2をタイミングT1とし、タイミングT2をリセットするとともに、タイミング一致カウンタ7072をリセット後、ステップS904からの処理を行う。   The timing T2 is set as the timing T1, the timing T2 is reset, and after resetting the timing coincidence counter 7072, the processing from step S904 is performed.

図9に示される処理の順序は一例であり、異なる順序で実行されてもよい。   The order of the processing shown in FIG. 9 is an example, and may be executed in a different order.

第7の通信ノード700がスリープ状態に遷移してからウエイクアップ要求フレームを受信するまでの時間間隔に基づいて、ウエイクアップ要求フレームによるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断する際に、3以上の時間間隔に基づいて判断するようにしてもよい。   Whether the wakeup request by the wakeup request frame is a regular request or an illegal request based on the time interval from when the seventh communication node 700 transitions to the sleep state until the wakeup request frame is received. May be determined on the basis of three or more time intervals.

タイミング一致カウンタ7072のリセットは上記に限られない。例えば、タイミング一致カウンタ7072は、イグニッションがオフからオンにされた際、ACC電源がオフからオンにされた際、車両のドアが閉から開にされた際、ドアロックがアンロックされた際、一定時間の経過後にリセットされてもよい。   The resetting of the timing coincidence counter 7072 is not limited to the above. For example, the timing coincidence counter 7072 can be used when the ignition is turned on from off, when the ACC power source is turned on from off, when the vehicle door is opened from closed, when the door lock is unlocked, It may be reset after elapse of a certain time.

通信システムの一実施例によれば、第7の通信ノード700がスリープ状態に遷移してからウエイクアップ要求フレームを受信したタイミングに基づいて、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断できる。   According to one embodiment of the communication system, the wakeup request requested by the wakeup request frame is valid based on the timing at which the seventh communication node 700 receives the wakeup request frame after transitioning to the sleep state. It is possible to determine whether the request is a request or an illegal request.

電子制御ユニットの故障や異常のより不正なウエイクアップ要求フレームが送信される場合、電子制御ユニットは不正なルーチン処理を行っていることが想定される。不正なルーチン処理を行っている場合、一定間隔で、不正なウエイクアップ要求フレームを送信することが想定される。このため、第7の通信ノード700がスリープ状態に遷移してからウエイクアップ要求フレームを受信したタイミングに基づいて、ウエイクアップ要求フレームにより要求されるウエイクアップ要求が正規の要求であるか不正の要求であるかを判断できる。具体的には、前回のタイミングと今回のタイミングとの差がタイミング差閾値以下であり、且つその回数がタイミング一致カウント閾値以上である場合には、不正なウエイクアップ要求であると判断する。前回のタイミングと今回のタイミングとの差がタイミング差閾値以下でない場合には、正規のウエイクアップ要求であると判断する。   When an illegal wake-up request frame is transmitted due to a failure or abnormality of the electronic control unit, it is assumed that the electronic control unit is performing an illegal routine process. When an illegal routine process is performed, it is assumed that an illegal wakeup request frame is transmitted at regular intervals. Therefore, based on the timing at which the seventh communication node 700 has received the wakeup request frame after transitioning to the sleep state, whether the wakeup request requested by the wakeup request frame is a regular request or an illegal request Can be determined. Specifically, if the difference between the previous timing and the current timing is equal to or smaller than the timing difference threshold and the number of times is equal to or greater than the timing coincidence count threshold, it is determined that the request is an unauthorized wakeup request. If the difference between the previous timing and the current timing is not less than the timing difference threshold, it is determined that the request is a regular wakeup request.

以上、本発明は特定の実施例及び変形例を参照しながら説明されてきたが、各実施例及び変形例は単なる例示に過ぎず、当業者は様々な変形例、修正例、代替例、置換例等を理解するであろう。説明の便宜上、本発明の実施例に従った装置は機能的なブロック図を用いて説明されたが、そのような装置はハードウエアで、ソフトウエアで又はそれらの組み合わせで実現されてもよい。本発明は上記実施例に限定されず、本発明の精神から逸脱することなく、様々な変形例、修正例、代替例、置換例等が包含される。   Although the present invention has been described above with reference to specific embodiments and modifications, each embodiment and modification is merely illustrative, and those skilled in the art will recognize various modifications, modifications, alternatives, and substitutions. You will understand examples. For convenience of explanation, an apparatus according to an embodiment of the present invention has been described using a functional block diagram, but such an apparatus may be implemented in hardware, software, or a combination thereof. The present invention is not limited to the above-described embodiments, and various variations, modifications, alternatives, substitutions, and the like are included without departing from the spirit of the present invention.

10 第1の通信バス
20 第2の通信バス
50 第1の群
60 第2の群
100 第1の通信ノード
102 マイクロコントローラ
104 CPU
106 ROM
108 RAM
110 トランシーバ
200 第2の通信ノード
300 第3の通信ノード
400 第4の通信ノード
500 第5の通信ノード
600 第6の通信ノード
700 第7の通信ノード
702 マイクロコントローラ
704 CPU
706 ROM
708 RAM
710 第1のトランシーバ
712 第2のトランシーバ
1042 ウエイクアップ要求フレーム作成部
1044 状態制御部
7042、7064 通信制御部
7044、7066 ウエイクアップ要求フレーム判断部
7046 第1のタイマ
7048 第2のタイマ
7050 受信回数カウンタ
7052 第3のタイマ
7068 ウエイクアップ計測タイマ
7070 タイミングT1格納部
7072 タイミング一致カウンタ
DESCRIPTION OF SYMBOLS 10 1st communication bus 20 2nd communication bus 50 1st group 60 2nd group 100 1st communication node 102 Microcontroller 104 CPU
106 ROM
108 RAM
110 transceiver 200 second communication node 300 third communication node 400 fourth communication node 500 fifth communication node 600 sixth communication node 700 seventh communication node 702 microcontroller 704 CPU
706 ROM
708 RAM
710 First transceiver 712 Second transceiver 1042 Wake-up request frame creation unit 1044 Status control unit 7042, 7064 Communication control unit 7044, 7066 Wake-up request frame determination unit 7046 First timer 7048 Second timer 7050 Reception frequency counter 7052 Third timer 7068 Wake-up measurement timer 7070 Timing T1 storage unit 7072 Timing match counter

Claims (7)

通信ノードと、複数の通信バスとの間に接続され、且つ異なる通信バスに接続される通信ノード間の通信を中継するゲートウェイ装置とを有する通信システムであって、
一方の通信バスに接続される通信ノードは、
他方の通信バスに接続される通信ノードに信号を送信し、
前記ゲートウェイ装置は、
前記一方の通信バスからの信号を受信する受信部と、
前記受信部により受信した前記一方の通信バスからの信号が不正な信号である場合に、該不正な信号を前記他方の通信バスに送信する制御を停止する制御部と
を有し、
前記制御部は、
前記ゲートウェイ装置が搭載される車両のイグニッションがオフにされてから所定の時間が経過した後に、前記一方の通信バスからの信号が不正な信号であるか否かを判断する通信システム。
A communication system including a communication node and a gateway device connected between a plurality of communication buses and relaying communication between communication nodes connected to different communication buses,
The communication node connected to one communication bus is
Send a signal to the communication node connected to the other communication bus,
The gateway device is
A receiver for receiving a signal from the one communication bus;
A control unit for stopping control of transmitting the unauthorized signal to the other communication bus when a signal from the one communication bus received by the receiving unit is an unauthorized signal; and
The controller is
A communication system that determines whether or not a signal from the one communication bus is an illegal signal after a predetermined time has elapsed since the ignition of a vehicle on which the gateway device is mounted is turned off.
複数の通信バスとの間に接続され、異なる通信バスに接続される通信ノード間の通信を中継するゲートウェイ装置であって、
一方の通信バスからの信号を受信する受信部と、
前記受信部により受信した一方の通信バスからの信号が不正な信号である場合に、該不正な信号を他方の通信バスに送信する制御を停止する制御部と
を有し、
前記制御部は、
前記ゲートウェイ装置が搭載される車両のイグニッションがオフにされてから第1の時間が経過した後に、前記一方の通信バスからの信号が不正な信号であるか否かを判断するゲートウェイ装置。
A gateway device connected between a plurality of communication buses and relaying communication between communication nodes connected to different communication buses,
A receiver for receiving a signal from one communication bus;
A control unit for stopping control of transmitting the unauthorized signal to the other communication bus when a signal from the one communication bus received by the receiving unit is an unauthorized signal;
The controller is
A gateway device that determines whether or not a signal from the one communication bus is an illegal signal after a first time has elapsed since the ignition of a vehicle on which the gateway device is mounted is turned off.
前記制御部は、第2の期間に受信された信号の受信回数に基づいて、前記一方の通信バスからの信号が不正な信号であるか否かを判断する、請求項2に記載のゲートウェイ装置。   The gateway device according to claim 2, wherein the control unit determines whether or not the signal from the one communication bus is an illegal signal based on the number of receptions of the signal received in the second period. . 前記制御部は、前記一方の通信バスからの信号が不正な信号であると判断した場合、第3の時間の間、前記不正な信号を他方の通信バスに送信する制御を停止する請求項2または3に記載のゲートウェイ装置。   The control unit stops control of transmitting the illegal signal to the other communication bus during a third time when it is determined that the signal from the one communication bus is an illegal signal. Or the gateway apparatus of 3. 前記一方の通信バスからの信号は、通信ノードをウエイクアップさせる際に送信されるウエイクアップ要求フレームである、請求項2ないし4のいずれか1項に記載のゲートウェイ装置。   5. The gateway device according to claim 2, wherein the signal from the one communication bus is a wake-up request frame transmitted when the communication node is woken up. 6. 通信ノードと、複数の通信バスとの間に接続され、且つ異なる通信バスに接続される通信ノード間の通信を中継するゲートウェイ装置とを有する通信システムにおける通信方法であって、
一方の通信バスに接続される通信ノードは、
他方の通信バスに接続される通信ノードに信号を送信し、
前記ゲートウェイ装置は、
前記一方の通信バスからの信号を受信し、
前記ゲートウェイ装置が搭載される車両のイグニッションがオフにされてから所定の時間が経過した後に、前記一方の通信バスからの信号が不正な信号であるか否かを判断し、
前記一方の通信バスからの信号が不正な信号である場合に、該不正な信号を前記他方の通信バスに送信する制御を停止する、通信方法。
A communication method in a communication system having a communication device and a gateway device connected between a plurality of communication buses and relaying communication between communication nodes connected to different communication buses,
The communication node connected to one communication bus is
Send a signal to the communication node connected to the other communication bus,
The gateway device is
Receiving a signal from the one communication bus;
After a predetermined time has elapsed since the ignition of the vehicle on which the gateway device is mounted is turned off, determine whether the signal from the one communication bus is an illegal signal,
A communication method for stopping control of transmitting an illegal signal to the other communication bus when a signal from the one communication bus is an illegal signal.
複数の通信バスとの間に接続され、異なる通信バスに接続される通信ノード間の通信を中継するゲートウェイ装置における通信方法であって、
一方の通信バスからの信号を受信し、
前記ゲートウェイ装置が搭載される車両のイグニッションがオフにされてから所定の時間が経過した後に、前記一方の通信バスからの信号が不正な信号であるか否かを判断し、
前記一方の通信バスからの信号が不正な信号である場合に、該不正な信号を他方の通信バスに送信する制御を停止する、通信方法。
A communication method in a gateway device connected between a plurality of communication buses and relaying communication between communication nodes connected to different communication buses,
Receive signals from one communication bus,
After a predetermined time has elapsed since the ignition of the vehicle on which the gateway device is mounted is turned off, determine whether the signal from the one communication bus is an illegal signal,
A communication method in which, when a signal from the one communication bus is an illegal signal, control for transmitting the illegal signal to the other communication bus is stopped.
JP2013230668A 2013-11-06 2013-11-06 COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD Active JP6028717B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013230668A JP6028717B2 (en) 2013-11-06 2013-11-06 COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013230668A JP6028717B2 (en) 2013-11-06 2013-11-06 COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD

Publications (2)

Publication Number Publication Date
JP2015091062A JP2015091062A (en) 2015-05-11
JP6028717B2 true JP6028717B2 (en) 2016-11-16

Family

ID=53194402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013230668A Active JP6028717B2 (en) 2013-11-06 2013-11-06 COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD

Country Status (1)

Country Link
JP (1) JP6028717B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6561950B2 (en) * 2016-09-09 2019-08-21 株式会社デンソー Relay device
JP6782444B2 (en) * 2017-01-18 2020-11-11 パナソニックIpマネジメント株式会社 Monitoring equipment, monitoring methods and computer programs
JP7218066B2 (en) * 2019-10-09 2023-02-06 ジヤトコ株式会社 Automatic transmission ignition diagnostic device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4560000B2 (en) * 2006-03-31 2010-10-13 株式会社オートネットワーク技術研究所 Operation monitoring unit
DE102006040442B4 (en) * 2006-08-29 2009-04-16 Dr. Ing. H.C. F. Porsche Aktiengesellschaft Bus communication management in a motor vehicle with a plurality of control devices connected via a bus
JP2008160379A (en) * 2006-12-22 2008-07-10 Denso Corp Data repeater
JP2009124480A (en) * 2007-11-15 2009-06-04 Toyota Motor Corp Onboard gateway and vehicle communication system
JP5222002B2 (en) * 2008-04-03 2013-06-26 株式会社オートネットワーク技術研究所 In-vehicle relay connection unit
JP2010137725A (en) * 2008-12-11 2010-06-24 Fujitsu Ten Ltd Control device, control system, and control method
JP2010258635A (en) * 2009-04-23 2010-11-11 Fujitsu Ten Ltd Control apparatus
JP5522160B2 (en) * 2011-12-21 2014-06-18 トヨタ自動車株式会社 Vehicle network monitoring device
JP5696669B2 (en) * 2012-01-12 2015-04-08 株式会社デンソー Gateway device and vehicle communication system
JP5900007B2 (en) * 2012-02-20 2016-04-06 株式会社デンソー VEHICLE DATA COMMUNICATION AUTHENTICATION SYSTEM AND VEHICLE GATEWAY DEVICE

Also Published As

Publication number Publication date
JP2015091062A (en) 2015-05-11

Similar Documents

Publication Publication Date Title
US10693905B2 (en) Invalidity detection electronic control unit, in-vehicle network system, and communication method
US11296965B2 (en) Abnormality detection in an on-board network system
US9032124B2 (en) Definition of wakeup bus messages for partial networking
US20180316584A1 (en) Abnormality detection method, abnormality detection apparatus, and abnormality detection system
JP4407752B2 (en) FAILURE LOCATION DETECTION DEVICE, COMMUNICATION DEVICE, AND FAILURE LOCATION DETECTION METHOD
US10713106B2 (en) Communication device, communication method and non-transitory storage medium
US8825935B2 (en) Pattern detection for partial networking
WO2012020761A1 (en) Communication system and communication apparatus
KR20140050643A (en) Method and apparatus for improving the data transfer security in a serial data transfer with flexible message size
JP2010147590A (en) Can node
KR101519719B1 (en) Message process method of gateway
EP2573982A1 (en) System and method for testing a communications network having a central bus guardian (cbg) to detect a faulty condition associated with the cbg
JP6028717B2 (en) COMMUNICATION SYSTEM, GATEWAY DEVICE, AND COMMUNICATION METHOD
CN112583786B (en) Method for alarming, transmitter device and receiver device
JP2015154189A (en) Communication system, gateway device, communication node and communication control method
JP2016127523A (en) Communication system and sub-master node
JP2013236184A (en) In-vehicle communication system, communication abnormality monitoring method of in-vehicle communication system, and communication abnormality monitoring program of in-vehicle communication system
JP2009267853A (en) Communication system and communication method
Sharma In-vehicular communication networking protocol
JP5212339B2 (en) Data relay apparatus and data relay method
JP2014187544A (en) Communication system, communication node, and communication method
JP6402452B2 (en) Gateway device
JP2014187545A (en) Communication system, monitoring communication node, and monitoring method
JP6149716B2 (en) In-vehicle network system
JP2018026725A (en) Communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160902

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161003

R151 Written notification of patent or utility model registration

Ref document number: 6028717

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151