JP2009296280A - Communication network system, and communication control method thereof - Google Patents
Communication network system, and communication control method thereof Download PDFInfo
- Publication number
- JP2009296280A JP2009296280A JP2008147453A JP2008147453A JP2009296280A JP 2009296280 A JP2009296280 A JP 2009296280A JP 2008147453 A JP2008147453 A JP 2008147453A JP 2008147453 A JP2008147453 A JP 2008147453A JP 2009296280 A JP2009296280 A JP 2009296280A
- Authority
- JP
- Japan
- Prior art keywords
- sleep
- network
- gateway device
- frame
- terminal
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、通信ネットワークシステム及びその通信制御方法に係り、特に、複数のネットワーク間で授受されるデータの中継を行うゲートウェイ装置を備え、各ネットワークのスリープの開始タイミングを同期させるうえで好適な通信ネットワークシステム及びその通信制御方法に関する。 The present invention relates to a communication network system and a communication control method therefor, and more particularly, a communication apparatus that includes a gateway device that relays data exchanged between a plurality of networks, and is suitable for synchronizing the sleep start timing of each network. The present invention relates to a network system and a communication control method thereof.
従来、複数のネットワークに接続され、そのネットワーク間で授受されるデータの中継を行うゲートウェイ装置を備える通信ネットワークシステムが知られている(例えば、特許文献1参照)。この通信ネットワークシステムにおいては、低電力消費モードへの移行条件が成立すると、ネットワークの各端末機器やゲートウェイ装置が、電力消費の低減のためにスリープ状態となる。このため、かかるシステムによれば、ネットワークに電力を供給するバッテリにおける電力消費をできるだけ抑えることが可能となっている。
ところで、車載機器を制御するうえでの規格として、OSEK/VDX(Offene Systeme und deren schnittstellen fur die Elektronik im Kraftfahrzeug/Vehicle Distributed eX ecutive)仕様がある。この仕様技術において、一のネットワークに設けられる各車載電子制御ユニット(ECU)は、自ECUのスリープ可否を判別して、そのスリープ可否を示すNM(Network Management)フレームをネットワークバスへ送信する。また、複数のネットワーク間のデータ中継を行うゲートウェイ装置は、ネットワークシステム全体の協調を図るため、接続されるネットワークごとに、他のネットワークにおけるスリープ可否を含めて自己のスリープ可否を判別し、そのスリープ可否を示すNMフレームをネットワークバスへ送信する。ネットワークごとの各ECU及びゲートウェイ装置のNMフレームの送信は、ネットワークごとにそれぞれ予め規定された所定順序に従って行われる。 By the way, as a standard for controlling in-vehicle devices, there is an OSEK / VDX (Offene System and und deren schnittstellen fur die Elektronik im Kraftfahrzeug / Vehicle Distributed eX ecutive) specification. In this specification technique, each on-vehicle electronic control unit (ECU) provided in one network determines whether or not the ECU can sleep, and transmits an NM (Network Management) frame indicating whether or not the sleep is possible to the network bus. In addition, the gateway device that relays data between a plurality of networks determines whether or not it can sleep, including whether or not to sleep in other networks, for each connected network in order to coordinate the entire network system. An NM frame indicating availability is transmitted to the network bus. The transmission of the NM frame of each ECU and gateway device for each network is performed according to a predetermined order defined in advance for each network.
また、ネットワーク内のECU及びゲートウェイ装置のすべてがスリープ可状態になった場合、そのネットワークにおいて予め定められた順序に従って次にNMフレームを送信すべきECU又はゲートウェイ装置は、その送信タイミングでそのネットワーク内のECU及びゲートウェイ装置がスリープするようにスリープ要求を行う。そして、そのネットワーク内のECU及びゲートウェイ装置は、他からのスリープ要求を受信して、スリープ状態に遷移する。 In addition, when all of the ECUs and gateway devices in the network are in the sleep enabled state, the ECU or gateway device to which the NM frame is to be transmitted next in accordance with a predetermined order in the network is transmitted within the network at the transmission timing. The sleep request is made so that the ECU and the gateway device of the ECU sleep. Then, the ECU and the gateway device in the network receive a sleep request from another and transition to the sleep state.
上記の如く、ゲートウェイ装置の各ネットワークへのNMフレームの送信は、ネットワークごとにそれぞれ予め規定された所定順序に従って行われるため、そのゲートウェイ装置による各ネットワークへの送信タイミングは異なることが一般的である。このため、一方のネットワーク内のECUのすべてがスリープ可状態になると、ゲートウェイ装置が他方のネットワークで所定順序に従ってスリープ可を示すNMフレームを送信することとなるが、そのNMフレームの送信に伴ってその他方のネットワーク内のECU及びゲートウェイ装置のすべてがスリープ可状態になってその他方のネットワークでスリープ要求がなされた時点でも、未だゲートウェイ装置が一方のネットワークでスリープ可を示すNMフレームを送信するタイミングに至らないことがある。 As described above, transmission of the NM frame to each network of the gateway device is performed according to a predetermined order prescribed for each network, and therefore, the transmission timing to each network by the gateway device is generally different. . For this reason, when all of the ECUs in one network are in a sleep-enabled state, the gateway device transmits an NM frame indicating that sleep is possible in a predetermined order in the other network, but with the transmission of the NM frame, The timing at which the gateway device still transmits an NM frame indicating that sleep is possible in one network even when all the ECUs and gateway devices in the other network are in a sleep enabled state and a sleep request is made in the other network. May not reach.
このようなネットワーク間の状態遷移ずれが発生すると、スリープしていないネットワーク側からスリープしているネットワーク側へデータ送信が行われた場合に、ゲートウェイ装置がそのスリープしているネットワークを復帰させることが必要となるので、中継フレームの遅延時間が増大する不都合が生じ、また、経由するネットワークの数が増えるほどその遅延時間が大きくなる不都合が生ずる。 When such a state transition error between networks occurs, when data is transmitted from a non-sleeping network side to a sleeping network side, the gateway device may restore the sleeping network. Therefore, there is a disadvantage that the delay time of the relay frame is increased, and the delay time is increased as the number of networks through which the relay frame is increased.
本発明は、上述の点に鑑みてなされたものであり、ゲートウェイ装置を介した複数のネットワーク間での状態遷移ずれを無くすことが可能な通信ネットワークシステム及びその通信制御方法を提供することを目的とする。 The present invention has been made in view of the above points, and an object of the present invention is to provide a communication network system and a communication control method thereof capable of eliminating a state transition deviation between a plurality of networks via a gateway device. And
上記の目的は、少なくとも一つの端末機器をそれぞれ有する複数のネットワークに接続され、該複数のネットワーク間で授受されるデータの中継を行うゲートウェイ装置と、前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置からスリープ可否を示すNMフレームを送信させると共に、該ネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合に該ネットワーク内の少なくとも端末機器をスリープさせるスリープ制御手段と、を備える通信ネットワークシステムであって、前記スリープ制御手段は、前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置から所定順序で前記NMフレームを送信させる定期フレーム送信手段と、一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内において前記ゲートウェイ装置が前記NMフレームを送信する前記所定順序に従ったタイミングがくる前に、該他のネットワーク内で該ゲートウェイ装置から前記NMフレームを送信させるGW特別フレーム送信手段と、を有する通信ネットワークシステムにより達成される。 The object is to connect to a plurality of networks each having at least one terminal device and relay data exchanged between the plurality of networks, a terminal device in the network for each network, and A sleep control means for transmitting an NM frame indicating whether sleep is possible from the gateway device, and for causing at least the terminal device in the network to sleep when all of the terminal devices in the network and the gateway device are in a sleep-enabled state; The sleep control means includes, for each network, a periodic frame transmission means for transmitting the NM frame in a predetermined order from a terminal device in the network and the gateway device, and one network. When all of the terminal devices and the gateway device of the gateway device are in the sleep enabled state, the gateway device transmits the NM frame in the other network before the timing according to the predetermined order arrives. And GW special frame transmission means for transmitting the NM frame from the gateway device.
また、上記の目的は、少なくとも一つの端末機器をそれぞれ有する複数のネットワークに接続され、該複数のネットワーク間で授受されるデータの中継を行うゲートウェイ装置と、前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置からスリープ可否を示すNMフレームを送信させると共に、該ネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合に該ネットワーク内の少なくとも端末機器をスリープさせるスリープ制御手段と、を備える通信ネットワークシステムの通信制御方法であって、前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置から所定順序で前記NMフレームを送信させる定期フレーム送信ステップと、一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内において前記ゲートウェイ装置が前記NMフレームを送信する前記所定順序に従ったタイミングがくる前に、該他のネットワーク内で該ゲートウェイ装置から前記NMフレームを送信させるGW特別フレーム送信ステップと、を備える通信ネットワークシステムの通信制御方法により達成される。 In addition, the object is to connect a gateway device connected to a plurality of networks each having at least one terminal device and relay data exchanged between the plurality of networks, and a terminal in the network for each network. Sleep control for transmitting an NM frame indicating whether sleep is possible from the device and the gateway device, and causing at least the terminal device in the network to sleep when all of the terminal device and the gateway device in the network are in a sleep-enabled state A periodic frame transmission step of transmitting the NM frame in a predetermined order from a terminal device and the gateway device in the network for each network, and a network When all of the terminal devices and the gateway device of the gateway device are in the sleep enabled state, the gateway device transmits the NM frame in the other network before the timing according to the predetermined order arrives. And a GW special frame transmission step of transmitting the NM frame from the gateway device.
これらの態様の発明において、ネットワークごとに、各ネットワーク内の端末機器及びゲートウェイ装置は、所定順序でスリープ可否を示すNMフレームを送信する。また、一のネットワーク内の端末機器及びゲートウェイ装置のすべてがスリープ可状態になった場合、その一のネットワークとは異なる他のネットワーク内において、ゲートウェイ装置がNMフレームを送信する通常どおりの所定順序に従ったタイミングがくる前に、そのNMフレームを送信する。かかる構成によれば、一のネットワーク内の端末機器及びゲートウェイ装置のすべてがスリープ可状態になったことを、他のネットワーク側でのゲートウェイ装置の予め定められた送信順序にかかわらず直ちに他のネットワーク側に伝えることができる。従って、本発明によれば、ゲートウェイ装置を介したネットワーク間でのスリープ状態への遷移ずれを無くすことができる。 In the inventions of these aspects, for each network, the terminal device and the gateway device in each network transmit NM frames indicating whether sleep is possible or not in a predetermined order. Further, when all of the terminal devices and the gateway device in one network are in the sleep enabled state, the gateway device transmits the NM frame in a predetermined order as usual in another network different from the one network. Before the time comes, the NM frame is transmitted. According to such a configuration, the fact that all of the terminal devices and the gateway device in one network are in the sleep enabled state immediately follows the other network regardless of the predetermined transmission order of the gateway device on the other network side. I can tell the side. Therefore, according to the present invention, it is possible to eliminate a shift in transition to the sleep state between networks via the gateway device.
尚、上記した通信ネットワークシステムにおいて、前記定期フレーム送信手段は、前記ネットワーク内の端末機器及び前記ゲートウェイ装置からの前記NMフレームの送信を、前記所定順序でかつ所定周期で行うと共に、前記GW特別フレーム送信手段は、一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内での該ゲートウェイ装置からの前記NMフレームの送信を、該他のネットワーク内で一の端末機器又は前記ゲートウェイ装置が前記NMフレームを送信してから前記所定順序に従った次の端末機器又は前記ゲートウェイ装置が前記NMフレームを送信するまでの間に行うこととしてもよい。 In the communication network system described above, the periodic frame transmission means transmits the NM frame from the terminal device and the gateway device in the network in the predetermined order and at a predetermined cycle, and the GW special frame. The transmission means transmits the NM frame from the gateway device in another network in the other network when all of the terminal devices and the gateway device in one network are in the sleep enabled state. It may be performed after one terminal device or the gateway device transmits the NM frame until the next terminal device or the gateway device according to the predetermined order transmits the NM frame.
また、上記した通信ネットワークシステムにおいて、前記スリープ制御手段は、また、前記ネットワークごとに、端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、すべての端末機器及び前記ゲートウェイ装置のうちの一のノードから他の端末機器又は前記ゲートウェイ装置へ向けてスリープ要求を行うスリープ要求手段を有することとしてもよい。 Further, in the communication network system described above, the sleep control unit may be configured so that, for each network, when all of the terminal device and the gateway device are in a sleep enabled state, It is good also as having a sleep request | requirement means which makes a sleep request | requirement toward the other terminal device or the said gateway apparatus from one node.
尚、上記した通信ネットワークシステムにおいて、前記ゲートウェイ装置は、接続される前記ネットワークごとに、該ネットワーク内の端末機器のすべてがスリープ可状態になったか否かを判別する第1のスリープ可判別手段と、接続される前記ネットワークごとに、他のネットワークにおける前記第1のスリープ可判別手段による判別結果を示す情報を前記NMフレームとして該ネットワークの前記所定順序に従って送信する通常NMフレーム送信手段と、接続される前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったか否かを判別する第2のスリープ可判別手段と、一のネットワークにおいて前記第2のスリープ可判別手段により該一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、他のネットワークにおいて、該他のネットワーク内で一の端末機器又はゲートウェイ装置が前記NMフレームを送信してから前記所定順序に従った次の端末機器又はゲートウェイ装置が前記NMフレームを送信するまでの間に、前記一のネットワークにおける前記第2のスリープ可判別手段による判別結果を示す情報を前記NMフレームとして送信する特別NMフレーム送信手段と、を有することとしてもよい。 In the above-described communication network system, the gateway device includes first sleep enable / disable determining means for determining whether or not all terminal devices in the network are in a sleep enable state for each network to be connected. For each connected network, connected to normal NM frame transmitting means for transmitting information indicating the determination result by the first sleep enable / disable determining means in another network as the NM frame according to the predetermined order of the network. A second sleep enable / disable determining unit that determines whether or not all of the terminal devices and the gateway device in the network are in a sleep enabled state for each network; and the second sleep enable / disable determined in one network. The terminal device in the one network and the front When it is determined that all of the gateway devices are in a sleep-enabled state, in the other network, one terminal device or gateway device in the other network transmits the NM frame and then follows the predetermined order. Special NM frame transmitting means for transmitting, as the NM frame, information indicating a determination result by the second sleep enable / disable determining means in the one network until the next terminal device or gateway device transmits the NM frame. It is good also as having.
この場合、端末機器は、自己の属するネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったか否かを判別する全スリープ可判別手段と、前記全スリープ可判別手段により自己の属するネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、自己の属するネットワーク内で次に自己が前記NMフレームを送信すべきタイミングで他の端末機器及び前記ゲートウェイ装置へ向けてスリープ要求を行う端末用スリープ要求送信手段と、自己の属するネットワーク内の他の端末機器又は前記ゲートウェイ装置からのスリープ要求を受信したか否かを判別する端末用スリープ要求受信有無判別手段と、前記端末用スリープ要求送信手段によりスリープ要求が行われた後、並びに、前記端末用スリープ要求受信有無判別手段により自己の属するネットワーク内の他の端末機器又は前記ゲートウェイ装置からのスリープ要求が受信されたと判別された後に、自己をスリープさせるスリープ実行手段と、を有することとしてもよい。 In this case, the terminal device belongs to the all sleep enable / disable determining unit for determining whether or not all the terminal devices in the network to which the terminal device belongs and the gateway device are in a sleep enabled state, and the all sleep enable / disable determining unit belongs to the terminal device. When it is determined that all of the terminal devices and the gateway device in the network are in a sleep enabled state, the other terminal devices and the gateway at the timing when the terminal device should transmit the NM frame next in the network to which the device belongs. A terminal sleep request transmission means for making a sleep request to the apparatus, and a terminal sleep request reception presence / absence determination for determining whether a sleep request has been received from another terminal device in the network to which the terminal belongs or the gateway apparatus And a sleep request is transmitted by the terminal sleep request transmitting means. And a sleep execution unit that sleeps itself after it is determined by the terminal sleep request reception presence / absence determination unit that a sleep request is received from another terminal device in the network to which the terminal belongs or the gateway device. It is good also as having.
更に、この場合、前記ゲートウェイ装置は、一のネットワークにおいて前記第2のスリープ可判別手段により該一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、該一のネットワーク内で次に自己が前記NMフレームを送信すべきタイミングで端末機器へ向けてスリープ要求を行うGW用スリープ要求送信手段と、接続されるネットワークごとに、該ネットワーク内の端末機器からのスリープ要求を受信したか否かを判別するGW用スリープ要求受信有無判別手段と、接続される前記ネットワークのすべてで、前記GW用スリープ要求送信手段によりスリープ要求が行われ、又は、前記GW用スリープ要求受信有無判別手段により該ネットワーク内の端末機器からのスリープ要求が受信されたと判別された後に、自己をスリープさせるスリープ実行手段と、を有することとしてもよい。 Furthermore, in this case, when the gateway device determines that all of the terminal devices in the one network and the gateway device are in the sleep enabled state by the second sleep enable / disable determining unit in one network, GW sleep request transmission means for making a sleep request to the terminal device at a timing when the NM frame should next transmit the NM frame in the one network, and for each connected network, from the terminal device in the network GW sleep request reception presence / absence determining means for determining whether or not a sleep request has been received, and the GW sleep request transmitting means is configured to make a sleep request in all of the connected networks, or for the GW The sleep request from the terminal device in the network is received by the sleep request reception presence / absence judging means. There after being judged to have been received, and a sleep execution unit for sleeping self, it is also possible to have a.
本発明によれば、ゲートウェイ装置を介した複数のネットワーク間でのスリープ状態への遷移ずれを無くすことができる。 ADVANTAGE OF THE INVENTION According to this invention, the shift | offset | difference to the sleep state between the some networks via a gateway apparatus can be eliminated.
以下、図面を用いて、本発明の具体的な実施の形態について説明する。 Hereinafter, specific embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の一実施例である通信ネットワークシステムの構成図を示す。この通信ネットワークシステムは、互いに異なる複数の通信バスをゲートウェイ装置を介して接続させて、そのゲートウェイ装置に、一方の通信バスに接続するノードから他方の通信バスに接続するノードへ送信するデータを中継させるネットワークシステムであり、例えば車両に搭載される。 FIG. 1 shows a configuration diagram of a communication network system according to an embodiment of the present invention. This communication network system connects a plurality of different communication buses via a gateway device and relays data to be transmitted from the node connected to one communication bus to the node connected to the other communication bus. For example, it is mounted on a vehicle.
図1に示す如く、本実施例の通信ネットワークシステムは、2つの通信バス10,12と、それら両通信バス10,12を接続させるゲートウェイ装置14と、を備えている。各通信バス10,12はそれぞれ、例えばCANなどの一対の通信線でデータを伝送する双方向通信に用いられる時分割多重通信線である。各通信バス10,12には、予め定められた通信プロトコルに応じたデータフレームが流れる。尚、各通信バス10,12での通信プロトコルは、同じであってもよいし異なっていてもよい。以下、通信バス10を第1の通信バス10と、通信バス12を第2の通信バス12と、それぞれ称す。 As shown in FIG. 1, the communication network system according to the present embodiment includes two communication buses 10 and 12 and a gateway device 14 that connects the two communication buses 10 and 12. Each of the communication buses 10 and 12 is a time division multiplexing communication line used for bidirectional communication in which data is transmitted through a pair of communication lines such as CAN, for example. A data frame corresponding to a predetermined communication protocol flows through each communication bus 10 and 12. In addition, the communication protocol in each communication bus | bath 10 and 12 may be the same, and may differ. Hereinafter, the communication bus 10 is referred to as a first communication bus 10, and the communication bus 12 is referred to as a second communication bus 12.
第1及び第2の通信バス10,12にはそれぞれ、マイクロコンピュータを主体に構成された、例えば車両の有するボデー系の電子制御ユニット(以下、単にECUと称す)20が複数接続されている。各ECU20はそれぞれ、演算処理部であるコントローラ部と、各種のプログラムを格納する内部メモリと、各種車載センサやスイッチなどに接続するI/Oインタフェースと、第1の通信バス10又は第2の通信バス12に接続する通信インタフェースと、を有している。
Each of the first and second communication buses 10 and 12 is connected to a plurality of body-type electronic control units (hereinafter simply referred to as ECUs) 20 of a vehicle, which are mainly composed of a microcomputer. Each
以下、第1の通信バス10側のネットワークに接続されるECU20はm(例えば“2”)個設けられるものとし、ECU20A−1,20A−2,・・・20A−mとする。また、第2の通信バス12側のネットワークに接続されるECU20はn(例えば“9”)個設けられるものとし、ECU20B−1,20B−2,・・・20B−nとする。
Hereinafter, m (for example, “2”)
ECU20は、車両のイグニションオフ時及びイグニションオン時の双方で動作可能となる+B系ノードであり、ドアの開閉やロックを制御するドアECUやボデーECU,車両使用者の携帯する携帯機との無線通信においてコード照合を行う照合ECUなどである。ECU20は、車両のイグニションオフ時においてイグニションオンやドア開,電波信号受信,他のECUからのバスエッジ受信などのイベントの発生が長期間検知されないときは、消費電力の低減のための処理を行うスリープモードになると共に、そのイグニションオフ時のスリープモードにおいてイベント発生が検知されたときは、そのスリープモードを解除して、電源供給されて初期化を行い、その初期化が完了した起動後に通信バス10,12を介した通信が可能となるウェイクアップモードになる。
The
尚、ECU20には、車両のイグニションオフ時には動作不可能である一方でイグニションオン時に動作可能となるIG系ノード、例えば、エンジン制御を行うエンジンECUやブレーキ制御を行うブレーキECU,ステアリング舵角を検知するステアリングセンサなどが含まれてもよい。
The
ゲートウェイ装置14は、ECU20から一方の通信バス10,12へ送出されたデータフレームを受信し、その受信したデータフレームを他方の通信バス12,10へ送信する、すなわち、異なる通信バス10,12の間においてデータフレームの中継を行う中継器である。ゲートウェイ装置14は、マイクロコンピュータを主体に構成された演算処理部であるコントローラと、通信バス10,12からの受信データフレームを保持可能なバッファと、各種のプログラムを格納する内部メモリと、通信バス10,12に接続する通信インタフェースと、を有している。
The gateway device 14 receives a data frame sent from the
ゲートウェイ装置14のコントローラは、車両のイグニションオフ時においてイグニションオンや通信バス10,12からのフレーム受信などのイベント発生が長期間検知されないときは、消費電力の低減のための処理を行うスリープモードになる。また、そのイグニションオフ時のスリープモードにおいてイベント発生が検知されたときは、そのスリープモードを解除して、電源供給されて初期化を行い、その初期化が完了した起動後に通信バス10,12からのデータフレームの受信を許可すると共に、その受信許可後の所定タイミングで受信データフレームの通信バス10,12への送信を許可する。 The controller of the gateway device 14 enters a sleep mode in which processing for reducing power consumption is performed when an event such as ignition on or frame reception from the communication buses 10 and 12 is not detected for a long period of time when the vehicle is turned off. Become. When the occurrence of an event is detected in the sleep mode when the ignition is off, the sleep mode is canceled, power is supplied, initialization is performed, and the communication buses 10 and 12 are activated after the initialization is completed. Is permitted, and transmission of the received data frame to the communication buses 10 and 12 is permitted at a predetermined timing after the reception is permitted.
ゲートウェイ装置14において、コントローラは、第1の通信バス10からの受信が許可された状態で実際にECU20から第1の通信バス10へ送出されたデータフレームを受信すると、そのデータフレームをバッファに保持する。そして、第2の通信バス12への送信が許可された状態において、そのバッファに保持したデータフレームを、第2の通信バス12の送信先のECU20へ向けて提供すべくその第2の通信バス12へ送出する。また同様に、第2の通信バス12からの受信が許可された状態で実際にECU20から第2の通信バス12へ送出されたデータフレームを受信すると、そのデータフレームをバッファに保持する。そして、第1の通信バス10への送信が許可された状態において、そのバッファに保持したデータフレームを、第1の通信バス10の送信先のECU20へ向けて提供すべくその第1の通信バス10へ送出する。
In the gateway device 14, when the controller receives a data frame actually sent from the
次に、図2乃至図7を参照して、本実施例の通信ネットワークシステムのスリープ動作について説明する。 Next, the sleep operation of the communication network system according to the present embodiment will be described with reference to FIGS.
図2は、本実施例の通信ネットワークシステムと対比されるシステム(以下、対比ネットワークシステムと称す)においてスリープ動作時に実現される各通信バス10,12のフレーム送信の一例のタイムチャートを示す。図3は、本実施例の通信ネットワークシステムにおいてスリープ動作時に実現される各通信バス10,12のフレーム送信の一例のタイムチャートを示す。図4は、本実施例の通信ネットワークシステムにおいて各ECU20が実行する受信割り込み処理の一例のフローチャートを示す。図5は、本実施例の通信ネットワークシステムにおいて各ECU20が実行する送信処理の一例のフローチャートを示す。図6は、本実施例の通信ネットワークシステムにおいてゲートウェイ装置14が実行する受信割り込み処理の一例のフローチャートを示す。また、図7は、本実施例の通信ネットワークシステムにおいてゲートウェイ装置14が実行する送信処理の一例のフローチャートを示す。
FIG. 2 shows a time chart of an example of frame transmission of each of the communication buses 10 and 12 realized during a sleep operation in a system (hereinafter referred to as a comparison network system) compared with the communication network system of the present embodiment. FIG. 3 shows a time chart of an example of frame transmission of each of the communication buses 10 and 12 realized during the sleep operation in the communication network system of the present embodiment. FIG. 4 shows a flowchart of an example of a reception interrupt process executed by each
尚、図2及び図3には、車両の電源状態がイグニションオンからイグニションオフ(車載バッテリのオン)へ遷移することで、各ECU20がスリープし、最終的にECU20A−2がスリープしていない状態からスリープするまでの、各ECU20からのNMフレームの送信シーケンス動作を示している。また、図2及び図3において、NMフレームを示す枠内の上段はノード名を示し、その下段はそのノードの状態を示す。この際、「NG」はECU20がスリープできない状態(スリープ不可状態)であることを示し、「OK」はECU20がスリープできる状態(スリープ可状態)であることを示し、「→OK」はECU20が前回処理から今回処理にかけて上記のスリープ不可状態からスリープ可状態へ変化したことを示し、また、「→SL」はECU20が通信バス10,12に対してスリープ要求を行うことを示す。
2 and 3, the
本実施例において、各ECU20及びゲートウェイ装置14はそれぞれ、車両の電源状態がイグニションオンにあるときは、車載バッテリ又はオルタネータからの電力で動作可能になる一方、車両の電源状態がイグニションオンからイグニションオフへ遷移することで車載バッテリの蓄えている電力で動作可能になると、その後自ECU20又はゲートウェイ装置14に対するイベント発生が長時間検知されなくなった時点で、消費電力の低減のための処理を行うスリープモードになる。
In the present embodiment, each
各ECU20及びゲートウェイ装置14はそれぞれ、OSEK/VDX等の仕様に準拠した動作を行う。具体的には、自ECU20又はゲートウェイ装置14のスリープ可否を示すNM(Network Management)フレームを、そのスリープ可否を同一通信バス10又は12に接続する他のECU20やゲートウェイ装置14に知らせるべく、接続する通信バス10又は12へ送信する。自ECU20又はゲートウェイ装置14がスリープ不可状態にあるときは、スリープ不可を示すNMフレームを送信し、自ECU20又はゲートウェイ装置14がスリープ可状態にあるときは、スリープ可を示すNMフレームを送信する。
Each
この各ECU20やゲートウェイ装置14から通信バス10,12へのNMフレームの送信は、同一通信バス10,12内で予め定められたノード順序(例えば、第1の通信バス10ではECU20A−1→ECU20A−2→ゲートウェイ装置14の順であり、第2の通信バス12ではECU20B−1→ECU20B−2→・・・→ECU20B−9→ゲートウェイ装置14の順である。)で行われると共に、その送信間隔は予め定められた所定時間間隔(例えば、100ms)で行われる。従って、各ECU20及びゲートウェイ装置14はそれぞれ、自ECU20又はゲートウェイ装置14がNMフレームを送信すべきタイミングで、NMフレームを接続する通信バス10又は12へ送信する。尚、ゲートウェイ装置14は、接続する通信バス10,12ごとにそれぞれ、NMフレームを送信する。
The transmission of the NM frame from each
各ECU20はそれぞれ、自ECU20の属する(すなわち、自ECU20が接続する)通信バス10,12内の他のECU20及びゲートウェイ装置14から送信されるNMフレームがその通信バス10,12を通じて自ECU20に受信されるか否かを判別する(ステップ100)。各ECU20はそれぞれ、自ECU20の属する通信バス10,12内の他のすべてのECU20及びゲートウェイ装置14ごとにそれぞれそのスリープ可否を示すフラグ(スリープ可否フラグ)が格納される記憶装置を有している。
Each
各ECU20はそれぞれ、上記したステップ100の処理の結果、他のECU20又はゲートウェイ装置14からのNMフレームが受信されないと判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、他のECU20又はゲートウェイ装置14からのNMフレームが受信されたと判別した場合は、そのNMフレームを送信したECU20又はゲートウェイ装置14に対応するスリープ可否フラグを、その受信NMフレームの示すスリープ不可状態又はスリープ可状態にセットする(ステップ102)。受信NMフレームがスリープ不可状態を示すものであれば、そのNMフレームを送信したECU20又はゲートウェイ装置14に対応するスリープ可否フラグをスリープ不可状態にセットし、一方、受信NMフレームがスリープ可状態を示すものであれば、そのNMフレームを送信したECU20又はゲートウェイ装置14に対応するスリープ可否フラグをスリープ可状態にセットする。
When each
また、ゲートウェイ装置14は、接続する通信バス10,12ごとに、その通信バス10,12内のECU20から送信されるNMフレームがその通信バス10,12を通じて自ゲートウェイ装置14に受信されるか否かを判別する。ゲートウェイ装置14は、接続する通信バス10,12内のすべてのECU20ごとにそれぞれそのスリープ可否を示すスリープ可否フラグが格納される記憶装置を有している。ゲートウェイ装置14は、ECU20からのNMフレームが受信されないと判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、ECU20からのNMフレームが受信されたと判別した場合は、そのNMフレームを送信したECU20に対応するスリープ可否フラグをその受信NMフレームの示すスリープ不可状態又はスリープ可状態にセットする(ステップ200)。
Further, for each communication bus 10, 12 connected to the gateway device 14, whether or not the NM frame transmitted from the
ゲートウェイ装置14は、また、上記したステップ200の処理を実行すると、次に、その受信したNMフレームを送信したECU20の接続する通信バス10,12側のすべてのECU20がスリープ可状態にセットされているか否かを、記憶装置のスリープ可否フラグの状態に基づいて判別する(ステップ202)。ゲートウェイ装置14の記憶装置には、また、接続する通信バス10,12ごとにその通信バス10,12のスリープ可否をそれぞれ示すスリープ可否フラグが格納されている。
When the gateway device 14 executes the process of
ゲートウェイ装置14は、上記したステップ202の処理の結果、受信したNMフレームを送信したECU20の接続する通信バス10,12内のすべてのECU20がスリープ可状態にセットされていると判別しなかった場合すなわちそのECU20の何れかがスリープ不可状態にセットされていると判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、その通信バス10,12内のすべてのECU20がスリープ可状態にセットされていると判別した場合は、その通信バス10,12に対応するスリープ可否フラグをスリープ可状態にセットする(ステップ204)。
When the gateway device 14 does not determine that all the
各ECU20はそれぞれ、自ECU20の属する通信バス10,12内で予め定められたノード順序及び送信間隔に従って、現時点が自ECU20がNMフレームを送信すべきタイミングに至ったか否かを判別する(ステップ150)。その結果、NMフレームの送信タイミングにないと判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、NMフレームの送信タイミングにあると判別した場合は、次に、自ECU20の属する通信バス10,12上の他のすべてのECU20及びゲートウェイ装置14がスリープ可状態にセットされているか否かを、記憶装置のスリープ可否フラグの状態に基づいて判別する(ステップ152)。
Each
各ECU20はそれぞれ、上記したステップ152の処理の結果、自ECU20の属する通信バス10,12上の他のすべてのECU20及びゲートウェイ装置14がスリープ可状態にセットされていると判別しなかった場合すなわちそのECU20及びゲートウェイ装置14の何れか一つ以上のノードがスリープ不可状態にセットされていると判別した場合は、自ECU20のスリープ可否を示すNMフレームを、接続する通信バス10又は12へ送信する(ステップ154)。
Each
一方、上記したステップ152の処理の結果、自ECU20の属する通信バス10,12上の他のすべてのECU20及びゲートウェイ装置14がスリープ可状態にセットされていると判別した場合は、その通信バス10,12に対してその通信バス10,12上の他のすべてのECU20及びゲートウェイ装置14をスリープさせるスリープ要求を送信する(ステップ156)。
On the other hand, if it is determined as a result of the processing in
また、ゲートウェイ装置14は、接続する通信バス10,12ごとに、自ゲートウェイ装置14に対して通信バス10,12内で予め定められたノード順序及び送信間隔に従って、現時点が自ゲートウェイ装置14がNMフレームを送信すべきタイミング(通常タイミング)に至ったか否かを判別する(ステップ250)。その結果、NMフレームの通常送信タイミングにあると判別した場合は、次に、そのNMフレームを送信すべき通常送信タイミングとなった通信バス10,12とは異なる他方の通信バス12,10上のすべてのECU20がスリープ可状態にセットされているか否かすなわちその通信バス12,10のスリープ可否フラグがスリープ可状態にセットされているか否かを、記憶装置のスリープ可否フラグの状態に基づいて判別する(ステップ252)。
In addition, the gateway device 14 determines that the current gateway device 14 is NM according to the node order and transmission interval predetermined in the communication buses 10 and 12 with respect to the own gateway device 14 for each communication bus 10 and 12 to be connected. It is determined whether or not it is time to transmit a frame (normal timing) (step 250). As a result, if it is determined that the normal transmission timing of the NM frame is reached, next, the communication bus 10 or 12 on the other communication bus 12 or 10 that has become the normal transmission timing to transmit the NM frame is used. Based on the state of the sleep enable / disable flag of the storage device, it is determined whether or not all the
上記ステップ252の処理の結果、そのNMフレームを送信すべき通常送信タイミングとなった通信バス10,12とは異なる他方の通信バス12,10上のECU20の何れかがスリープ不可状態にセットされており、その他方の通信バス12,10のスリープ可否フラグがスリープ不可状態にセットされていると判別した場合は、NMフレームを送信すべき通信バス10,12へ自ゲートウェイ装置14のスリープ不可を示すNMフレームを送信する(ステップ254)。例えば、第2の通信バス12へNMフレームを送信すべき通常送信タイミングで第1の通信バス10上のECU20A−2がスリープ不可状態にセットされているときは、その第2の通信バス12へ自ゲートウェイ装置14のスリープ不可を示すNMフレームを送信する。
As a result of the processing in
一方、そのNMフレームを送信すべき通常送信タイミングとなった通信バス10,12とは異なる他方の通信バス12,10上のすべてのECU20がスリープ可状態にセットされており、その他方の通信バス12,10のスリープ可否フラグがスリープ可状態にセットされていると判別した場合は、次に、そのNMフレームを送信すべき通常送信タイミングとなった通信バス10,12上のすべてのECU20がスリープ可状態にセットされているか否かを、記憶装置のスリープ可否フラグの状態に基づいて判別する(ステップ256)。
On the other hand, all the
上記ステップ256の処理の結果、その通信バス10,12上のすべてのECU20がスリープ可状態にセットされていると判別しなかった場合すなわちそのECU20の何れか一つ以上のノードがスリープ不可状態にセットされていると判別した場合は、その通信バス10,12へ自ゲートウェイ装置14のスリープ可を示すNMフレームを送信する(ステップ258)。例えば、第2の通信バス12へNMフレームを送信すべき通常送信タイミングで第1の通信バス10上のすべてのECU20がスリープ可状態にセットされているときは、その第2の通信バス12へ自ゲートウェイ装置14のスリープ可を示すNMフレームを送信する。
As a result of the process of
一方、その通信バス10,12上のすべてのECU20がスリープ可状態にセットされていると判別した場合は、その通信バス10,12に対してその通信バス10,12上のすべてのECU20をスリープさせるスリープ要求を送信する(ステップ260)。
On the other hand, when it is determined that all the
各通信バス10,12の各ECU20はそれぞれ、同一通信バス10,12上の他のECU20又はゲートウェイ装置14から送信されるNMフレームを受信すると、そのNMフレームを送信したノードに対応するスリープ可否フラグをスリープ不可状態又はスリープ可状態にセットする。また、ゲートウェイ装置14は、通信バス10,12ごとに、ECU20から送信されるNMフレームを受信すると、そのNMフレームを送信したノードに対応するスリープ可否フラグをスリープ不可状態又はスリープ可状態にセットする。更に、各通信バス10,12の各ECU20はそれぞれ、同一通信バス10,12上の他のECU20又はゲートウェイ装置14から送信されるスリープ要求を受信すると、その受信後、所定時間X(例えば200ms)が経過した時点で、スリープ状態へ遷移する。
When each
このように本実施例の通信ネットワークシステムにおいて、車両の電源状態がイグニションオンからイグニションオフへ遷移すると、通常、通信バス10,12ごとに、ECU20及びゲートウェイ装置14は、予め定められたノード順序でかつ予め定められた送信間隔で一つずつ、自己のスリープ可否を示すNMフレームを送信する。そして、ECU20及びゲートウェイ装置14は、他ノードからのNMフレームを受信すると、記憶装置に格納された他の各ノードごとのスリープ可否フラグをその受信NMフレームの内容にセットし、通信バス10,12ごとにすべてのノードがスリープ可状態になった場合、その通信バス10,12へ次に自己がNMフレームを送信すべき通常送信タイミングで各ノードをスリープさせるスリープ要求を送信する。そして、ECU20は、他のECU20又はゲートウェイ装置14からのスリープ要求に従ってスリープする。この際、同一通信バス10,12の各ECU20は、特定のノードからのスリープ要求に従ってほぼ同時にスリープすることとなる。
As described above, in the communication network system according to the present embodiment, when the power state of the vehicle transits from ignition on to ignition off, the
従って、本実施例においては、イグニションオフ時、通信バス10,12ごとに、すべてのECU20を同時にスリープさせることが可能となっている。このため、イグニションオフ時において、ECU20のスリープにより車載バッテリの電力消費を抑えることが可能となっている。
Therefore, in the present embodiment, when the ignition is off, it is possible to sleep all the
尚、本実施例の通信ネットワークシステムにおいて、各ECU20は、イグニションオフ時において自己に関連するイベントの発生が長期間検知されないことに起因して自ECU20がスリープしてもよい状態にあるか否かを示すスリープ可否を、自己のNMフレームとして送信する。また、ゲートウェイ装置14は、イグニションオフ時において、接続する通信バス10,12ごとに、他方の通信バス12,10上のすべてのECU20がスリープ可状態にセットされているか否かすなわちその通信バス12,10のスリープ可否フラグがスリープ可状態にセットされているか否かを、自己のNMフレームとして送信する。
In the communication network system according to the present embodiment, each
すなわち、ゲートウェイ装置14の送信するNMフレームは、他方の通信バス12,10のスリープ可否を一方の通信バス10,12のスリープ可否条件として扱われる。例えば、第1の通信バス10上のECU20A−2のみがスリープ不可状態にあり、他のECU20がすべてスリープ可状態にある場合、ゲートウェイ装置14は、第2の通信バス12上のすべてのECU20がスリープ可状態にあるので、第1の通信バス10へのNMフレームの通常送信タイミングではその第1の通信バス10へスリープ可(OK)を示すNMフレームを送信するが、一方、第1の通信バス10上のECU20A−2がスリープ不可状態にあるので、第2の通信バス12へのNMフレームの通常送信タイミングではその第2の通信バス12へスリープ不可(NG)を示すNMフレームを送信する。
That is, in the NM frame transmitted by the gateway device 14, whether the other communication buses 12, 10 can sleep is treated as the sleep permission condition of one communication bus 10, 12. For example, when only the ECU 20A-2 on the first communication bus 10 is in a sleep-disabled state and all the
ゲートウェイ装置14は、接続する通信バス10,12ごとに別々にNMフレームを送信する。このゲートウェイ装置14による通信バス10,12ごとのNMフレームの送信は、通常は、その通信バス10,12ごとに予め定められたノード順序に従って行われ、その通信バス10,12に接続するノード数(全ECU20の数とゲートウェイ装置14の一つとを足した数)に一回の割合で行われるので、ゲートウェイ装置14による両通信バス10,12への通常送信タイミングは互いに異なることが一般的である。
The gateway device 14 transmits NM frames separately for each of the communication buses 10 and 12 to be connected. The transmission of the NM frame for each of the communication buses 10 and 12 by the gateway device 14 is normally performed in accordance with a predetermined node order for each of the communication buses 10 and 12, and the number of nodes connected to the communication buses 10 and 12. Since it is performed at a rate of once (the number of all the
このため、かかる通常送信タイミングだけでは、ゲートウェイ装置14は、他方の通信バス12,10上のECU20のすべてがスリープ可状態になると、一方の通信バス10,12へスリープ可を示すNMフレームを送信するが、そのNMフレームの送信に伴ってその一方の通信バス10,12上のECU20及びゲートウェイ装置14のすべてがスリープ可状態になってその一方の通信バス10,12でスリープ要求がなされた時点でも、未だゲートウェイ装置14が他方の通信バス12,10へスリープ可を示すNMフレームを送信するタイミングに至らないことがある。この場合、一方の通信バス10,12が全体としてスリープしても他方の通信バス12,10がスリープしない状態遷移ずれが発生してしまう(図2参照)。
For this reason, at the normal transmission timing alone, when all of the
このような通信バス10,12間の状態遷移ずれが発生すると、スリープしていない通信バス12,10側からスリープしている通信バス10,12側へデータ送信が行われた場合に、ゲートウェイ装置14がそのスリープしている通信バス10,12をウェイクアップさせて通常状態へ復帰させることが必要となるので、中継フレームの遅延時間が増大する不都合が生じ、また、その経由するネットワークバスの数が増えるほどその遅延時間が大きくなる不都合が生ずる。 When such a transition in state transition between the communication buses 10 and 12 occurs, when data is transmitted from the non-sleeping communication buses 12 and 10 to the sleeping communication buses 10 and 12, the gateway device 14 has to wake up the sleeping communication buses 10 and 12 to return to the normal state, which causes a disadvantage that the delay time of the relay frame increases, and the number of network buses through the relay bus. As the number increases, the inconvenience of increasing the delay time arises.
そこで、本実施例の通信ネットワークシステムにおいては、かかる不都合を回避すべく、ゲートウェイ装置14が各通信バス10,12へNMフレームを送信するタイミングとして、ECU20やゲートウェイ装置14が通常NMフレームを送信すべきタイミングとして規定されている通信バス10,12ごとのノード順序に従った通常送信タイミングだけでなく、そのタイミングとは別のタイミング(特別送信タイミング)を用いることとしている。
Therefore, in the communication network system of the present embodiment, in order to avoid such inconvenience, the
すなわち、本実施例において、ゲートウェイ装置14は、上記したステップ250の処理においてNMフレームの通常送信タイミングにないと判別した場合は、次に、現時点が、そのNMフレームの通常送信タイミングにないと判別した通信バス10,12上で自ゲートウェイ装置14がNMフレームを送信すべき特別送信タイミングに至ったか否かを判別する(ステップ262)。この特別送信タイミングは、各ECU20やゲートウェイ装置14が通常、NMフレームを送信する通常送信タイミングに対してずれたものとし、例えば、通常の送信間隔の1/2(半周期;例えば50ms)だけずれたものとする。この場合、通信バス10,12ごとにかかる特別送信タイミングでは、ECU20はNMフレームを送信せず、ゲートウェイ装置14のみがNMフレームを送信できるものとなる。
That is, in the present embodiment, when it is determined that the gateway device 14 is not at the normal transmission timing of the NM frame in the processing of
上記ステップ262の処理の結果、NMフレームの特別送信タイミングにないと判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、NMフレームの特別送信タイミングにあると判別した場合は、次に、上記ステップ252の処理と同様に、そのNMフレームを送信すべき特別送信タイミングとなった通信バス10,12とは異なる他方の通信バス12,10上のすべてのECU20がスリープ可状態にセットされているか否かすなわちその通信バス12,10のスリープ可否フラグがスリープ可状態にセットされているか否かを、記憶装置のスリープ可否フラグの状態に基づいて判別する(ステップ264)。
If it is determined as a result of the processing in
そして、その他方の通信バス12,10のスリープ可否フラグがスリープ不可状態にセットされていると判別した場合は、以後、何ら処理を進めることなく今回のルーチンを終了するが、その他方の通信バス12,10のスリープ可否フラグがスリープ可状態にセットされていると判別した場合は、次に、そのNMフレームを送信すべき特別送信タイミングとなった通信バス10,12へ自ゲートウェイ装置14のスリープ可を示すNMフレームを送信する(ステップ258)。例えば、第2の通信バス12へNMフレームを送信すべき特別送信タイミングで第1の通信バス10上のすべてのECU20がスリープ可状態にセットされているときは、その第2の通信バス12へ自ゲートウェイ装置14のスリープ可を示すNMフレームを送信する。
If it is determined that the sleep enable / disable flag of the other communication buses 12 and 10 is set to the sleep disable state, the current routine is terminated without any further processing. If it is determined that the sleep enable / disable flag of 12 or 10 is set to the sleep enable state, the sleep of the gateway device 14 is then transferred to the communication buses 10 and 12 at the special transmission timing at which the NM frame should be transmitted. An NM frame indicating permission is transmitted (step 258). For example, when all the
このように本実施例の通信ネットワークシステムにおいて、イグニションオフ時、ゲートウェイ装置14は、接続する通信バス10,12ごとに、通常送信タイミングとは異なる専用の特別送信タイミングで、自己のスリープ可を示すNMフレームを送信することができる。 As described above, in the communication network system of the present embodiment, when the ignition is off, the gateway device 14 indicates that it can sleep at a dedicated special transmission timing different from the normal transmission timing for each of the communication buses 10 and 12 to be connected. NM frames can be transmitted.
かかる構成においては、他方の通信バス12,10がスリープ可状態になった場合、ゲートウェイ装置14による一方の通信バス10,12へのNMフレームの送信を、そのゲートウェイ装置14が一方の通信バス10,12上でのノード順序に従って通常送信する通常送信タイミングとは別に、その一方の通信バス10,12上での各ECU20やゲートウェイ装置14による通常NMフレームの2つの送信の間の特別送信タイミングで行うことができる。
In such a configuration, when the other communication bus 12, 10 enters a sleep enabled state, the gateway device 14 transmits the NM frame to the one communication bus 10, 12, and the gateway device 14 transmits the one communication bus 10. , 12 separately from the normal transmission timing for normal transmission according to the node order on the communication bus 10, 12 at the special transmission timing between the two transmissions of the normal NM frame by each
この点、ゲートウェイ装置14によるスリープ可を示すNMフレームの送信は、ノード順序に従った通常送信タイミングがくる前に実現されるので、一方の通信バス10,12上のすべてのECU20がスリープ可状態になったことは、他方の通信バス12,10上でのゲートウェイ装置14の予め定められたノード順序にかかわらず直ちにその他方の通信バス12,10側へ伝わる。
In this respect, the transmission of the NM frame indicating that sleep is possible by the gateway device 14 is realized before the normal transmission timing according to the node order arrives, so that all the
従って、本実施例の通信ネットワークシステムによれば、ゲートウェイ装置14を介した通信バス10,12間でのスリープ状態への遷移ずれをできるだけ抑制して無くすことが可能となっている。このため、本実施例によれば、一方の通信バス10と他方の通信バス12との間での状態遷移ずれに起因したゲートウェイ装置14による中継フレームの遅延時間の増大を防ぐことができ、また、ゲートウェイ装置14での中継フレームのバッファ数の増大を防ぐことができる。 Therefore, according to the communication network system of the present embodiment, it is possible to suppress and eliminate as much as possible the shift in the sleep state between the communication buses 10 and 12 via the gateway device 14. For this reason, according to the present embodiment, it is possible to prevent the delay time of the relay frame from being increased by the gateway device 14 due to the state transition deviation between the one communication bus 10 and the other communication bus 12, and The increase in the number of relay frame buffers in the gateway device 14 can be prevented.
尚、本実施例の通信ネットワークシステムは、第1又は第2の通信バス10,12に接続するECU20の数が多いほど、上記した作用を効果的なものとすることが可能である。
Note that the communication network system according to the present embodiment can make the above-described operation more effective as the number of
ところで、上記の実施例においては、ECU20が特許請求の範囲に記載した「端末機器」に、通信バス10,12が特許請求の範囲に記載した「ネットワーク」に、それぞれ相当していると共に、ECU20及びゲートウェイ装置14が、ステップ154、又は、ステップ250の肯定判定後にステップ254,258の処理を実行することにより特許請求の範囲に記載した「スリープ制御手段」、「定期フレーム送信手段」、及び「定期フレーム送信ステップ」が、ゲートウェイ装置14が、ステップ262の肯定判定後にステップ258の処理を実行することにより特許請求の範囲に記載した「スリープ制御手段」、「GW特別フレーム送信手段」、及び「GW特別フレーム送信ステップ」が、ECU20及びゲートウェイ装置14が、ステップ156又は260の処理を実行することにより特許請求の範囲に記載した「スリープ制御手段」及び「スリープ要求手段」が、それぞれ実現されている。
By the way, in the above embodiment, the
また、上記の実施例においては、ゲートウェイ装置14が、接続される通信バス10,12ごとに、ステップ252の処理を実行することにより特許請求の範囲に記載した「第1のスリープ可判別手段」が、ステップ254,258の処理を実行することにより特許請求の範囲に記載した「通常NMフレーム送信手段」が、ステップ264の処理を実行することにより特許請求の範囲に記載した「第2のスリープ可判別手段」が、ステップ258の処理を実行することにより特許請求の範囲に記載した「特別NMフレーム送信手段」が、ステップ260の処理を実行することにより特許請求の範囲に記載した「GW用スリープ要求送信手段」が、接続される通信バス10,12ごとに、該通信バス10,12上のECU20からのスリープ要求を受信したか否かを判別することにより特許請求の範囲に記載した「GW用スリープ要求受信有無判別手段」が、接続される通信バス10,12のすべてで、スリープ要求が行われ又は該通信バス10,12上のECU20からのスリープ要求が受信されたと判別された後に、自己をスリープさせることにより特許請求の範囲に記載した「スリープ実行手段」が、それぞれ実現されている。
Further, in the above embodiment, the gateway device 14 executes the processing of
また、上記の実施例においては、ECU20が、ステップ152の処理を実行することにより特許請求の範囲に記載した「全スリープ可判別手段」が、ステップ156の処理を実行することにより特許請求の範囲に記載した「端末用スリープ要求送信手段」が、自己の属する通信バス10,12上の他のECU20又はゲートウェイ装置14からのスリープ要求を受信したか否かを判別することにより特許請求の範囲に記載した「端末用スリープ要求受信有無判別手段」が、スリープ要求が行われた後、並びに、自己の属する通信バス10,12上の他のECU20又はゲートウェイ装置14からのスリープ要求が受信されたと判別された後に、自己をスリープさせることにより特許請求の範囲に記載した「スリープ実行手段」が、それぞれ実現されている。
Further, in the above embodiment, the
尚、上記の実施例においては、通信ネットワークシステムを車両に搭載するものとしたが、他のものに適用するものとしてもよい。 In the above embodiment, the communication network system is mounted on the vehicle, but may be applied to other devices.
10 第1の通信バス
12 第2の通信バス
14 ゲートウェイ装置
20 ECU(電子制御ユニット)
DESCRIPTION OF SYMBOLS 10 1st communication bus 12 2nd communication bus 14
Claims (7)
前記スリープ制御手段は、
前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置から所定順序で前記NMフレームを送信させる定期フレーム送信手段と、
一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内において前記ゲートウェイ装置が前記NMフレームを送信する前記所定順序に従ったタイミングがくる前に、該他のネットワーク内で該ゲートウェイ装置から前記NMフレームを送信させるGW特別フレーム送信手段と、
を有することを特徴とする通信ネットワークシステム。 A gateway device connected to a plurality of networks each having at least one terminal device and relaying data exchanged between the plurality of networks, and a sleep device from the terminal device in the network and the gateway device for each network A communication network comprising: an NM frame that indicates whether or not the terminal device and the gateway device in the network are in a sleep-enabled state; A system,
The sleep control means includes
Periodic frame transmission means for transmitting the NM frame in a predetermined order from the terminal device and the gateway device in the network for each network;
When all of the terminal devices and the gateway device in one network are in a sleep enabled state, the gateway device transmits the NM frame in another network before the timing according to the predetermined order comes. GW special frame transmission means for transmitting the NM frame from the gateway device in another network;
A communication network system comprising:
前記GW特別フレーム送信手段は、一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内での該ゲートウェイ装置からの前記NMフレームの送信を、該他のネットワーク内で一の端末機器又は前記ゲートウェイ装置が前記NMフレームを送信してから前記所定順序に従った次の端末機器又は前記ゲートウェイ装置が前記NMフレームを送信するまでの間に行うことを特徴とする請求項1記載の通信ネットワークシステム。 The periodic frame transmission means performs transmission of the NM frame from the terminal device and the gateway device in the network in the predetermined order and in a predetermined cycle,
The GW special frame transmission means transmits the NM frame from the gateway device in another network when the terminal device and the gateway device in one network all enter a sleep enabled state. This is performed between the time when one terminal device or the gateway device transmits the NM frame in the network, and the time when the next terminal device or the gateway device according to the predetermined order transmits the NM frame. The communication network system according to claim 1.
接続される前記ネットワークごとに、該ネットワーク内の端末機器のすべてがスリープ可状態になったか否かを判別する第1のスリープ可判別手段と、
接続される前記ネットワークごとに、他のネットワークにおける前記第1のスリープ可判別手段による判別結果を示す情報を前記NMフレームとして該ネットワークの前記所定順序に従って送信する通常NMフレーム送信手段と、
接続される前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったか否かを判別する第2のスリープ可判別手段と、
一のネットワークにおいて前記第2のスリープ可判別手段により該一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、他のネットワークにおいて、該他のネットワーク内で一の端末機器又はゲートウェイ装置が前記NMフレームを送信してから前記所定順序に従った次の端末機器又はゲートウェイ装置が前記NMフレームを送信するまでの間に、前記一のネットワークにおける前記第2のスリープ可判別手段による判別結果を示す情報を前記NMフレームとして送信する特別NMフレーム送信手段と、
を有することを特徴とする請求項1乃至3の何れか一項記載の通信ネットワークシステム。 The gateway device is
First sleep enable determination means for determining whether or not all of the terminal devices in the network are in a sleep enable state for each of the connected networks;
A normal NM frame transmitting means for transmitting information indicating a determination result by the first sleep enable / disable determining means in another network as the NM frame according to the predetermined order of the network for each network to be connected;
Second sleep enablement determining means for determining whether or not all of the terminal devices and the gateway device in the network are in a sleep enabled state for each of the connected networks;
When it is determined by the second sleep enable / disable determining unit in one network that all of the terminal devices and the gateway device in the one network are in the sleep enabled state, in the other network, in the other network The second terminal in the one network between the time when one terminal device or gateway device transmits the NM frame and the time when the next terminal device or gateway device according to the predetermined order transmits the NM frame. Special NM frame transmitting means for transmitting information indicating the determination result by the sleep enable / disable determining means as the NM frame;
The communication network system according to any one of claims 1 to 3, further comprising:
自己の属するネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったか否かを判別する全スリープ可判別手段と、
前記全スリープ可判別手段により自己の属するネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、自己の属するネットワーク内で次に自己が前記NMフレームを送信すべきタイミングで他の端末機器及び前記ゲートウェイ装置へ向けてスリープ要求を行う端末用スリープ要求送信手段と、
自己の属するネットワーク内の他の端末機器又は前記ゲートウェイ装置からのスリープ要求を受信したか否かを判別する端末用スリープ要求受信有無判別手段と、
前記端末用スリープ要求送信手段によりスリープ要求が行われた後、並びに、前記端末用スリープ要求受信有無判別手段により自己の属するネットワーク内の他の端末機器又は前記ゲートウェイ装置からのスリープ要求が受信されたと判別された後に、自己をスリープさせるスリープ実行手段と、
を有することを特徴とする請求項4記載の通信ネットワークシステム。 Terminal equipment
All sleep enablement determining means for determining whether all of the terminal devices in the network to which the device belongs and the gateway device are in a sleep enabled state;
When it is determined by the all sleep enable / disable determining means that all of the terminal devices in the network to which the device belongs and the gateway device are in a sleep enabled state, the next device transmits the NM frame in the network to which the device belongs. A sleep request transmission means for a terminal that makes a sleep request to another terminal device and the gateway device at a timing,
A terminal sleep request reception presence / absence determining means for determining whether or not a sleep request has been received from another terminal device in the network to which the device belongs or the gateway device;
After a sleep request is made by the terminal sleep request transmission means, and a sleep request is received from another terminal device in the network to which the terminal belongs or the gateway device by the terminal sleep request reception presence / absence judging means. A sleep execution means for sleeping itself after being determined;
5. The communication network system according to claim 4, further comprising:
一のネットワークにおいて前記第2のスリープ可判別手段により該一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になったと判別された場合に、該一のネットワーク内で次に自己が前記NMフレームを送信すべきタイミングで端末機器へ向けてスリープ要求を行うGW用スリープ要求送信手段と、
接続されるネットワークごとに、該ネットワーク内の端末機器からのスリープ要求を受信したか否かを判別するGW用スリープ要求受信有無判別手段と、
接続される前記ネットワークのすべてで、前記GW用スリープ要求送信手段によりスリープ要求が行われ、又は、前記GW用スリープ要求受信有無判別手段により該ネットワーク内の端末機器からのスリープ要求が受信されたと判別された後に、自己をスリープさせるスリープ実行手段と、
を有することを特徴とする請求項5記載の通信ネットワークシステム。 The gateway device is
When it is determined in the one network that all of the terminal devices in the one network and the gateway device are in the sleep enabled state by the second sleep enable / disable determining means, GW sleep request transmitting means for making a sleep request to the terminal device at a timing at which the NM frame should be transmitted;
GW sleep request reception presence / absence determining means for determining whether or not a sleep request from a terminal device in the network is received for each connected network;
In all of the connected networks, it is determined that a sleep request is made by the GW sleep request transmission unit, or a sleep request is received from a terminal device in the network by the GW sleep request reception presence determination unit And a sleep execution means for sleeping itself after being
The communication network system according to claim 5, further comprising:
前記ネットワークごとに、該ネットワーク内の端末機器及び前記ゲートウェイ装置から所定順序で前記NMフレームを送信させる定期フレーム送信ステップと、
一のネットワーク内の端末機器及び前記ゲートウェイ装置のすべてがスリープ可状態になった場合、他のネットワーク内において前記ゲートウェイ装置が前記NMフレームを送信する前記所定順序に従ったタイミングがくる前に、該他のネットワーク内で該ゲートウェイ装置から前記NMフレームを送信させるGW特別フレーム送信ステップと、
を備えることを特徴とする通信ネットワークシステムの通信制御方法。 A gateway device connected to a plurality of networks each having at least one terminal device and relaying data exchanged between the plurality of networks, and a sleep device from the terminal device in the network and the gateway device for each network A communication network comprising: an NM frame that indicates whether or not the terminal device and the gateway device in the network are in a sleep-enabled state; A communication control method for a system,
A periodic frame transmission step for transmitting the NM frame in a predetermined order from the terminal device and the gateway device in the network for each network;
When all of the terminal devices and the gateway device in one network are in a sleep enabled state, the gateway device transmits the NM frame in another network before the timing according to the predetermined order comes. A GW special frame transmission step for transmitting the NM frame from the gateway device in another network;
A communication control method for a communication network system, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008147453A JP2009296280A (en) | 2008-06-04 | 2008-06-04 | Communication network system, and communication control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008147453A JP2009296280A (en) | 2008-06-04 | 2008-06-04 | Communication network system, and communication control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009296280A true JP2009296280A (en) | 2009-12-17 |
Family
ID=41544055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008147453A Pending JP2009296280A (en) | 2008-06-04 | 2008-06-04 | Communication network system, and communication control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009296280A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102013210265A1 (en) | 2012-06-05 | 2013-12-05 | Denso Corporation | communication system |
JP2015171091A (en) * | 2014-03-10 | 2015-09-28 | トヨタ自動車株式会社 | Communication device and communication method |
WO2016147794A1 (en) * | 2015-03-17 | 2016-09-22 | 日立オートモティブシステムズ株式会社 | Vehicular control device, method for controlling same, and vehicular control system |
WO2016147793A1 (en) * | 2015-03-17 | 2016-09-22 | 日立オートモティブシステムズ株式会社 | Vehicular control device and method for controlling same |
JP2017076838A (en) * | 2015-10-13 | 2017-04-20 | 株式会社デンソー | Electronic controller |
JP2017092565A (en) * | 2015-11-04 | 2017-05-25 | トヨタ自動車株式会社 | Sleep control method |
WO2019065983A1 (en) * | 2017-09-29 | 2019-04-04 | 株式会社アドヴィックス | Vehicle control system |
DE102018121616A1 (en) | 2017-10-25 | 2019-04-25 | Toyota Jidosha Kabushiki Kaisha | On-board relay device, information processing method, storage medium in which a program is stored, relay device and information processing system |
WO2022209947A1 (en) * | 2021-03-31 | 2022-10-06 | 株式会社オートネットワーク技術研究所 | In-vehicle management device and management method |
-
2008
- 2008-06-04 JP JP2008147453A patent/JP2009296280A/en active Pending
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102013210265A1 (en) | 2012-06-05 | 2013-12-05 | Denso Corporation | communication system |
US9081565B2 (en) | 2012-06-05 | 2015-07-14 | Denso Corporation | Communication network system for detect and wake up a network node that does not properly recognize a wake up frame |
JP2015171091A (en) * | 2014-03-10 | 2015-09-28 | トヨタ自動車株式会社 | Communication device and communication method |
CN107428297A (en) * | 2015-03-17 | 2017-12-01 | 日立汽车系统株式会社 | Vehicle console device and its control method |
US10501081B2 (en) | 2015-03-17 | 2019-12-10 | Hitachi Automotive Systems, Ltd. | Vehicular control device, method of controlling vehicular control device, and vehicular control system |
JP2016172503A (en) * | 2015-03-17 | 2016-09-29 | 日立オートモティブシステムズ株式会社 | Vehicular control device and vehicular control system |
JP2016172502A (en) * | 2015-03-17 | 2016-09-29 | 日立オートモティブシステムズ株式会社 | Vehicular control device |
WO2016147793A1 (en) * | 2015-03-17 | 2016-09-22 | 日立オートモティブシステムズ株式会社 | Vehicular control device and method for controlling same |
CN107406047A (en) * | 2015-03-17 | 2017-11-28 | 日立汽车系统株式会社 | Vehicle console device and its control method and vehicle control system |
WO2016147794A1 (en) * | 2015-03-17 | 2016-09-22 | 日立オートモティブシステムズ株式会社 | Vehicular control device, method for controlling same, and vehicular control system |
DE112016001253B4 (en) | 2015-03-17 | 2023-10-26 | Hitachi Astemo, Ltd. | VEHICLE CONTROL DEVICE, METHOD FOR CONTROLLING A VEHICLE CONTROL DEVICE AND VEHICLE CONTROL SYSTEM |
CN107428297B (en) * | 2015-03-17 | 2020-03-17 | 日立汽车系统株式会社 | Vehicle control device and control method thereof |
CN107406047B (en) * | 2015-03-17 | 2020-03-06 | 日立汽车系统株式会社 | Vehicle control device, control method thereof, and vehicle control system |
US10497189B2 (en) | 2015-03-17 | 2019-12-03 | Hitachi Automotive Systems, Ltd. | Vehicular control device and method of controlling vehicular control device |
JP2017076838A (en) * | 2015-10-13 | 2017-04-20 | 株式会社デンソー | Electronic controller |
JP2017092565A (en) * | 2015-11-04 | 2017-05-25 | トヨタ自動車株式会社 | Sleep control method |
JP2019064449A (en) * | 2017-09-29 | 2019-04-25 | 株式会社アドヴィックス | Vehicle control system |
CN111163975A (en) * | 2017-09-29 | 2020-05-15 | 株式会社爱德克斯 | Vehicle control system |
WO2019065983A1 (en) * | 2017-09-29 | 2019-04-04 | 株式会社アドヴィックス | Vehicle control system |
DE102018121616A1 (en) | 2017-10-25 | 2019-04-25 | Toyota Jidosha Kabushiki Kaisha | On-board relay device, information processing method, storage medium in which a program is stored, relay device and information processing system |
US10850685B2 (en) | 2017-10-25 | 2020-12-01 | Toyota Jidosha Kabushiki Kaisha | Onboard relay device, information processing method, storage medium storing program, relay device, and information processing system |
WO2022209947A1 (en) * | 2021-03-31 | 2022-10-06 | 株式会社オートネットワーク技術研究所 | In-vehicle management device and management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009296280A (en) | Communication network system, and communication control method thereof | |
EP3119038B1 (en) | Communication device, communication method and communication system | |
JP3578058B2 (en) | Multiplex communication system | |
JP5363379B2 (en) | Communications system | |
JP6010207B2 (en) | Communications system | |
US8909963B2 (en) | Vehicle network with a control device entering sleep mode when the vehicle velocity is above predetermined threshold and a coprocessor performing selected functions during the sleep mode | |
JP2015199444A (en) | Electronic control device | |
JP2007251722A (en) | Communication device, on-vehicle system, data storing method and program | |
JP2014054911A (en) | Electronic controller | |
JP5712783B2 (en) | Electronic control unit, in-vehicle network, data transmission method | |
US20220417346A1 (en) | In-Vehicle Relay Device and Relay Method | |
US9430026B2 (en) | Electronic control device and microcomputer control method | |
JP2008283492A (en) | Gateway device, and on-vehicle communication system | |
JP2013098916A (en) | Relay system, and relay device constituting the same | |
JP5062027B2 (en) | In-vehicle communication network system and communication control method thereof | |
JP2012231410A (en) | Data relay apparatus and in-vehicle network | |
JP5867350B2 (en) | Electronic control device for vehicle | |
JP2009124480A (en) | Onboard gateway and vehicle communication system | |
JP2008222051A (en) | Microcomputer, program, electronic control device, and communication system | |
JP2007142694A (en) | Lin communication apparatus and lin communication control method | |
JP4747998B2 (en) | Communication apparatus and communication system | |
JPH0638276A (en) | Multiplex transmitter | |
WO2022209947A1 (en) | In-vehicle management device and management method | |
JP2008277975A (en) | Relay connection unit | |
JP6402452B2 (en) | Gateway device |