Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4645599B2 - Data relay device - Google Patents
[go: Go Back, main page]

JP4645599B2 - Data relay device - Google Patents

Data relay device Download PDF

Info

Publication number
JP4645599B2
JP4645599B2 JP2007016605A JP2007016605A JP4645599B2 JP 4645599 B2 JP4645599 B2 JP 4645599B2 JP 2007016605 A JP2007016605 A JP 2007016605A JP 2007016605 A JP2007016605 A JP 2007016605A JP 4645599 B2 JP4645599 B2 JP 4645599B2
Authority
JP
Japan
Prior art keywords
data relay
relay device
network
frame
communication
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
JP2007016605A
Other languages
Japanese (ja)
Other versions
JP2008187243A (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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2007016605A priority Critical patent/JP4645599B2/en
Publication of JP2008187243A publication Critical patent/JP2008187243A/en
Application granted granted Critical
Publication of JP4645599B2 publication Critical patent/JP4645599B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、ネットワーク間の中継を行うデータ中継装置に関する。   The present invention relates to a data relay apparatus that relays between networks.

従来より、例えば車両においては、複数の電子装置がネットワークを介して通信する車載通信システムが形成されている。そして、近年では、こうした車載通信システムも複雑化しており、ネットワークが複数設けられると共に、異なるネットワーク間でやり取りされるべき通信フレームをデータ中継装置によって中継するようになっている。   Conventionally, for example, in a vehicle, an in-vehicle communication system in which a plurality of electronic devices communicate via a network is formed. In recent years, such an in-vehicle communication system has become complicated, and a plurality of networks are provided, and a communication frame to be exchanged between different networks is relayed by a data relay device.

ところで、データ中継装置により通信フレームがネットワークに中継された際、その中継された通信フレームを受信すべき電子装置が動作していなければ、その中継された通信フレームは受信されず中継は無駄になってしまう。また、この場合、ネットワークが不要に占有されてしまい、好ましくない。   By the way, when the communication frame is relayed to the network by the data relay device, if the electronic device that should receive the relayed communication frame is not operating, the relayed communication frame is not received and the relay becomes useless. End up. In this case, the network is unnecessarily occupied, which is not preferable.

そこで、電子装置が動作するための動作電圧を供給する電源のオン/オフ状態を検出して、その電源がオフ状態である場合には、その電源から電圧の供給を受けるように構成された電子装置は動作していないと判断して、その電子装置(電子装置が所属するネットワーク)に通信フレームを中継しないようにするデータ中継装置が考えられている(例えば、特許文献1参照)。   Therefore, an electronic device configured to detect an on / off state of a power source that supplies an operating voltage for operating the electronic device and to receive a voltage supply from the power source when the power source is in an off state. A data relay device is considered that determines that the device is not operating and prevents the communication frame from being relayed to the electronic device (network to which the electronic device belongs) (see, for example, Patent Document 1).

より詳しくは、この特許文献1のデータ中継装置は、中継すべき通信フレームを受信すると、その受信した通信フレームを記憶手段に記憶させるとともに、その記憶させた通信フレームが受信されるべき電子装置に動作電圧を供給する電源のオン/オフ状態を検出する。そして、その電源がオン状態であれば、記憶手段に記憶させた通信フレームを、その通信フレームを受信すべき電子装置が接続されたネットワークに中継するようになっている。逆に、電源がオフ状態であれば、記憶手段に記憶させた通信フレームを、その通信フレームを受信すべき電子装置が接続されたネットワークに中継しないようになっている。そして、このような制御は、データ中継装置におけるソフト処理により実現される。
特開2003−204344号公報
More specifically, when the data relay device of Patent Document 1 receives a communication frame to be relayed, the data relay device stores the received communication frame in a storage unit and also stores the stored communication frame in an electronic device to be received. An on / off state of the power supply that supplies the operating voltage is detected. If the power is on, the communication frame stored in the storage means is relayed to the network to which the electronic device that should receive the communication frame is connected. On the contrary, if the power is off, the communication frame stored in the storage means is not relayed to the network to which the electronic device that should receive the communication frame is connected. Such control is realized by software processing in the data relay apparatus.
JP 2003-204344 A

ところで、上記特許文献1のデータ中継装置では、通信フレームをネットワークに中継するか否かが前述のようにソフト処理で実現される一方で、ネットワークとの物理的な接続は維持されたままである。そして、データ中継装置とネットワークとが物理的に接続されている以上、通信フレームを受信すべき電子装置が動作していないネットワークに、その電子装置が受信すべき通信フレームが誤って中継されてしまうおそれがある。例えば、データ中継装置において、通信フレームを中継したくないネットワークに通信フレームを中継するための送信回路に、誤って通信フレームが転送される、というような誤動作が生じることも考えられる。   By the way, in the data relay device of the above-mentioned patent document 1, whether or not to relay a communication frame to the network is realized by software processing as described above, while the physical connection with the network is maintained. As long as the data relay device and the network are physically connected, the communication frame to be received by the electronic device is erroneously relayed to the network in which the electronic device to receive the communication frame is not operating. There is a fear. For example, in the data relay device, it is also conceivable that a malfunction occurs such that the communication frame is erroneously transferred to a transmission circuit for relaying the communication frame to a network that does not want to relay the communication frame.

つまり、上記特許文献1の技術では、通信フレームが中継されるべきでないネットワークにデータ中継装置から通信フレームが中継されないようにする、という課題が必ず解決できるとは言えなかった。   In other words, the technique of Patent Document 1 cannot always solve the problem of preventing the communication frame from being relayed from the data relay apparatus to the network where the communication frame should not be relayed.

本発明は、こうした問題に鑑みなされたもので、通信システムにおいて、通信フレームが中継されるべきでないネットワークに、確実に通信フレームが中継されないようにするデータ中継装置を提供することを目的とする。   The present invention has been made in view of these problems, and an object of the present invention is to provide a data relay device that reliably prevents a communication frame from being relayed to a network in which the communication frame should not be relayed in a communication system.

かかる問題を解決するためになされた請求項1のデータ中継装置は、複数のネットワークのそれぞれと通信可能に接続され、その複数のネットワーク間でやり取りされるべき通信フレームを中継するデータ中継装置において、複数のネットワークのそれぞれについて、そのネットワークに所属する全てのノードへの電圧供給が停止されているか否かを判定する判定手段と、複数のネットワークのうち、判定手段により全てのノードへの電圧供給が停止されていると判定されたネットワーク(以下、休止中ネットワークと言う)と、当該データ中継装置との接続を切り離す通信遮断手段とを備えている。   The data relay device according to claim 1, which is made to solve such a problem, is connected to each of a plurality of networks so as to be able to communicate, and relays a communication frame to be exchanged between the plurality of networks. For each of the plurality of networks, determination means for determining whether or not voltage supply to all nodes belonging to the network is stopped, and among the plurality of networks, voltage supply to all nodes is performed by the determination means. A network determined to be stopped (hereinafter referred to as a dormant network) and a communication blocking means for disconnecting the connection with the data relay apparatus are provided.

このような請求項1のデータ中継装置によれば、複数のネットワークのうち、休止中ネットワーク(つまり、通信フレームが中継されるべきではないネットワーク)とデータ中継装置との接続が、通信遮断手段により物理的に切り離されるため、その休止中ネットワークとデータ中継装置との通信が完全に遮断される。   According to the data relay device of claim 1, the connection between the dormant network (that is, the network where the communication frame should not be relayed) and the data relay device among the plurality of networks is performed by the communication blocking unit. Since it is physically disconnected, communication between the dormant network and the data relay device is completely cut off.

よって、確実に、休止中ネットワークにデータ中継装置から通信フレームが中継されないようにすることができる。
ところで、休止中ネットワークであるか否かは、具体的に、請求項2のようにして判定することができる。
Therefore, it is possible to reliably prevent the communication frame from being relayed from the data relay device to the dormant network.
By the way, whether or not the network is dormant can be specifically determined as in claim 2.

請求項2のデータ中継装置は、請求項1のデータ中継装置において、ノードのそれぞれには、複数の電源の何れかから電圧が供給されるようになっている。そして、判定手段は、複数の電源のそれぞれについて、電圧を供給している状態(以下、オン状態と言う)であるか、或いは電圧の供給を停止した状態(以下、オフ状態と言う)であるかを判定して、複数のネットワークのうち、そのネットワークに所属するノードに電圧を供給する電源の全てについてオフ状態であると判定したネットワークを、休止中ネットワークと判定するようになっている。   A data relay device according to a second aspect is the data relay device according to the first aspect, wherein each node is supplied with a voltage from one of a plurality of power supplies. The determination means is in a state where a voltage is supplied (hereinafter referred to as an “on state”) for each of the plurality of power supplies, or in a state where the supply of voltage is stopped (hereinafter referred to as an “off state”). Of the plurality of networks, a network that is determined to be in an off state for all of the power supplies that supply voltages to nodes belonging to the network is determined as a dormant network.

このような請求項2のデータ中継装置によれば、ノードがどの電源から電圧の供給を受けるのかをノードの全てについて記憶しておけば、電源がオン状態であるかオフ状態であるかを判定することで、ネットワークに所属する全てのノードへの電圧供給が停止されているか否かを容易に判定することができる。つまり、例えばノードに電圧が供給されているか否かを、ノード毎に個別に検出しなくてもよくなる。   According to such a data relay device of claim 2, if the power supply from which the node receives the voltage is stored for all of the nodes, it is determined whether the power supply is on or off. By doing so, it is possible to easily determine whether or not the voltage supply to all nodes belonging to the network is stopped. That is, for example, it is not necessary to individually detect whether or not a voltage is supplied to a node for each node.

ところで、データ中継装置において、通信遮断手段により当該データ中継装置との接続が切り離されているネットワークに中継すべき通信フレームが受信される場合もある。そこで、請求項3のように構成すると良い。   By the way, in the data relay device, a communication frame to be relayed to the network that is disconnected from the data relay device may be received by the communication blocking means. Therefore, a configuration as in claim 3 is preferable.

請求項3のデータ中継装置は、請求項1、2のデータ中継装置において、通信遮断手段によりデータ中継装置との接続が切り離されたネットワークが、判定手段により休止中ネットワークでないと判定されると、データ中継装置との接続が切り離されたそのネットワークとデータ中継装置とを通信可能に接続させる復帰手段を備えている。   The data relay device according to claim 3 is the data relay device according to claim 1 or 2, wherein the network disconnected from the data relay device by the communication blocking means is determined not to be a dormant network by the determining means. There is provided return means for connecting the network, which has been disconnected from the data relay device, and the data relay device so that they can communicate with each other.

また、通信遮断手段によりデータ中継装置との接続が切り離されてから復帰手段によりデータ中継装置と通信可能に接続されるまでの間に、データ中継装置との接続が切り離されたそのネットワークに中継すべき通信フレームを受信すると、その受信した通信フレームを記憶装置に記憶させる記憶制御手段を備えている。   In addition, it is relayed to the network from which the connection with the data relay device is disconnected after the connection with the data relay device is disconnected by the communication blocking means until the communication with the data relay device is communicably connected with the return means. When a communication frame to be received is received, storage control means for storing the received communication frame in a storage device is provided.

そして、データ中継装置は、記憶制御手段により記憶装置に記憶された通信フレームが中継されるべきネットワークと、データ中継装置とが、復帰手段により通信可能に接続された際に、その記憶装置に記憶された通信フレームを、復帰手段によりデータ中継装置と通信可能に接続されたネットワークに中継するようになっている。   The data relay device stores data in the storage device when the network to which the communication frame stored in the storage device by the storage control unit is to be relayed and the data relay device are communicably connected by the return unit. The received communication frame is relayed to a network that is communicably connected to the data relay device by the return means.

つまり、この請求項3のデータ中継装置によれば、データ中継装置との接続が切り離されているネットワークに中継すべき通信フレームを記憶しておいて、その記憶した通信フレームを、その切り離されていたネットワークとデータ中継装置とが通信可能に接続された際に中継することができるようになる。よって、中継すべき通信フレームを確実に中継して、所望の通信を実現させることができるようになる。   That is, according to the data relay device of claim 3, the communication frame to be relayed is stored in the network that is disconnected from the data relay device, and the stored communication frame is disconnected. When the network and the data relay apparatus are communicably connected, the relay can be performed. Therefore, it is possible to reliably relay a communication frame to be relayed to realize desired communication.

また、例えばその切り離されていたネットワークとデータ中継装置とが通信可能に接続された際に、通信フレームの中継元のノードが改めて通信フレームを送出する、ということをしなくてもよくなり有利である。   Further, for example, when the disconnected network and the data relay apparatus are communicably connected, it is not necessary for the node that is the relay source of the communication frame to send a communication frame again, which is advantageous. is there.

ここで、請求項3のデータ中継装置において、記憶装置の資源(メモリ資源)を節約するためには、請求項4のように構成すると良い。
請求項4のデータ中継装置は、請求項3のデータ中継装置において、記憶制御手段は、データ中継装置との接続が切り離されているネットワークに中継すべき通信フレームを受信した際、その受信した通信フレームのうち、予め高重要度に設定された通信フレームを記憶装置に記憶させるようになっている。
Here, in the data relay device according to claim 3, in order to save resources (memory resources) of the storage device, it is preferable to configure as in claim 4.
The data relay device according to claim 4 is the data relay device according to claim 3, wherein the storage control means receives the communication frame to be relayed to the network that is disconnected from the data relay device. Of the frames, a communication frame set in advance with high importance is stored in the storage device.

尚、例えば、ノードが所望の制御を実現するために必ず中継されるべき通信フレーム(例えば、イベントが発生したことを表す通信フレーム)を、高重要度に設定しておくことが考えられる。   For example, it is conceivable that a communication frame (for example, a communication frame indicating that an event has occurred) that should be relayed in order for the node to achieve desired control is set to a high importance level.

このような請求項4のデータ中継装置によれば、例えば上記の例のような高重要度の通信フレームが確実に中継されるようにすることができるため、所望の制御が確実に実現されるようにすることができる。一方で、高重要度に設定されていない通信フレーム(例えば、定期的に中継されることになっている通信フレーム)は記憶されないため、メモリ資源を節約することができる。   According to such a data relay apparatus of claim 4, for example, since a highly important communication frame as in the above example can be reliably relayed, desired control is reliably realized. Can be. On the other hand, since communication frames that are not set to high importance (for example, communication frames that are to be periodically relayed) are not stored, memory resources can be saved.

またさらに、請求項5のように構成すると良い。
請求項5のデータ中継装置は、請求項3、4のデータ中継装置において、記憶制御手段は、記憶装置の記憶内容を参照して、今回受信された通信フレームと同じ通信フレームが記憶装置に記憶されていない場合に、その今回受信された通信フレームをその記憶装置に記憶させるようになっている。
Still further, it may be configured as in claim 5.
The data relay device according to claim 5 is the data relay device according to claims 3 and 4, wherein the storage control means refers to the storage content of the storage device and stores the same communication frame as the communication frame received this time in the storage device. If not, the communication frame received this time is stored in the storage device.

このような請求項5のデータ中継装置によれば、記憶装置に同一の通信フレームが記憶されることを回避することができるため、無用にメモリ資源が消費されてしまうことを防止することができる。また、既に記憶装置に記憶されている通信フレームと同じ通信フレームを記憶制御手段が記憶装置に記憶させるという不要な処理が生じることを防止することができる。   According to such a data relay device of claim 5, since it is possible to avoid storing the same communication frame in the storage device, it is possible to prevent unnecessary use of memory resources. . Further, it is possible to prevent an unnecessary process in which the storage control unit stores the same communication frame as the communication frame already stored in the storage device in the storage device.

ところで、通信フレームを記憶するための記憶装置の空き容量が不足する場合も考えられる。そこで、請求項6のように構成すると良い。
請求項6のデータ中継装置は、請求項3〜5のデータ中継装置において、記憶制御手段は、今回受信された通信フレームを記憶装置に記憶させる際、その記憶装置にその通信フレームを記憶させるための空き容量が無い場合は、その記憶装置に記憶されている通信フレームのうち、最も先に記憶された通信フレームを消去して、今回受信された通信フレームをその記憶装置に記憶させるようになっている。
By the way, there may be a case where the free capacity of the storage device for storing the communication frame is insufficient. Therefore, a configuration as in claim 6 is preferable.
The data relay device according to claim 6 is the data relay device according to claims 3 to 5, wherein the storage control means stores the communication frame in the storage device when storing the communication frame received this time in the storage device. When there is no free space, the communication frame stored first in the storage device is deleted, and the communication frame received this time is stored in the storage device. ing.

このような請求項6のデータ中継装置によれば、最新の通信フレームを記憶しておくことができるため有利である。
次に、請求項1〜6のデータ中継装置としては、車両用のものが考えられる。そして、請求項7のデータ中継装置では、複数のネットワークは車両に搭載されるものであり、この場合、電源は、車両のイグニション電源、アクセサリ電源、及びバッテリ電源の何れかを少なくとも含むようにすることができる。
According to the data relay device of the sixth aspect, it is advantageous because the latest communication frame can be stored.
Next, as the data relay device according to claims 1 to 6, a device for a vehicle can be considered. In the data relay device according to the seventh aspect, the plurality of networks are mounted on the vehicle. In this case, the power source includes at least one of the ignition power source, the accessory power source, and the battery power source of the vehicle. be able to.

以下に、本発明の実施形態を図面に基づき説明する。
[第1実施形態]
図1は、本発明が適用された車載用データ中継装置を用いた車載通信ネットワークの構成図である。
Embodiments of the present invention will be described below with reference to the drawings.
[First Embodiment]
FIG. 1 is a configuration diagram of an in-vehicle communication network using an in-vehicle data relay device to which the present invention is applied.

図1において、車載用データ中継装置50(以下、単にデータ中継装置50と記載する)は、ネットワーク10、ネットワーク20、及びネットワーク30とそれぞれ接続され、そのネットワーク10〜30間で通信フレームの中継を行う。   In FIG. 1, an in-vehicle data relay device 50 (hereinafter simply referred to as a data relay device 50) is connected to the network 10, the network 20, and the network 30, and relays communication frames between the networks 10 to 30. Do.

ネットワーク10は、バス1と、そのバス1に接続するノード11,12,13とからなる。そして、そのノード11〜13は、車両の図示しないバッテリからのバッテリ電源により、常時電圧の供給を受けて動作する。   The network 10 includes a bus 1 and nodes 11, 12, and 13 connected to the bus 1. The nodes 11 to 13 are always operated by receiving a voltage from a battery power source (not shown) of the vehicle.

ネットワーク20は、バス2と、そのバス2に接続するノード21,22,23とからなる。そして、そのノード21〜23は、車両のイグニション電源から電圧の供給を受けて動作する。   The network 20 includes a bus 2 and nodes 21, 22 and 23 connected to the bus 2. The nodes 21 to 23 operate by receiving a voltage supply from the ignition power supply of the vehicle.

ネットワーク30は、バス3と、そのバス3に接続するノード31,32,33とからなる。そして、そのノード31〜33は、車両のアクセサリ電源或いはイグニション電源から電圧の供給を受けて動作する。具体的に、ノード31はアクセサリ電源から電圧の供給を受けて動作し、ノード32,33はイグニション電源から電圧の供給を受けて動作する。尚、ノードとしては、車両を制御する電子制御装置(ECU)がある。   The network 30 includes a bus 3 and nodes 31, 32, and 33 connected to the bus 3. The nodes 31 to 33 operate by receiving a voltage from the accessory power supply or ignition power supply of the vehicle. Specifically, the node 31 operates by receiving a voltage from the accessory power supply, and the nodes 32 and 33 operate by receiving a voltage from the ignition power supply. The node includes an electronic control unit (ECU) that controls the vehicle.

またここで、バッテリ電源とは、詳しくは、バッテリに常時接続された電源ラインのことである。イグニション電源とは、詳しくは、図示しないイグニションスイッチによりバッテリに接続される電源ラインのことである。アクセサリ電源とは、詳しくは、図示しないアクセサリスイッチによりバッテリに接続される電源ラインのことである。   Here, the battery power supply is specifically a power supply line that is always connected to the battery. Specifically, the ignition power supply is a power supply line connected to the battery by an ignition switch (not shown). Specifically, the accessory power supply is a power supply line connected to the battery by an accessory switch (not shown).

次に、図2は、データ中継装置50の構成図である。
図2に示すように、データ中継装置50は、バス1〜3を介して通信フレームを受信するフレーム受信部52と、通信フレームの中継先や種別等に関する情報(図3を用いて後述する)が予め記憶される情報記憶部54と、情報記憶部54に記憶された情報に基づき、フレーム受信部52が受信した通信フレームの中継先を決定するフレーム分配部56と、フレーム受信部52が受信した通信フレームを、フレーム分配部56により決定された中継先に送信するためのフレーム送信部58と、通信フレームのうち、後述する重要フレームを記憶する重要フレーム記憶部60と、フレーム送信部58とバス1との間に接続される出力遮断部62aと、フレーム送信部58とバス2との間に接続される出力遮断部62bと、フレーム送信部58とバス3との間に接続される出力遮断部62cと、電源状態検知部64とを有している。
Next, FIG. 2 is a configuration diagram of the data relay device 50.
As shown in FIG. 2, the data relay device 50 includes a frame receiving unit 52 that receives communication frames via the buses 1 to 3, and information about the relay destination and type of the communication frame (which will be described later with reference to FIG. 3). Is stored in advance, based on information stored in the information storage unit 54, a frame distribution unit 56 that determines a relay destination of the communication frame received by the frame reception unit 52, and received by the frame reception unit 52 A frame transmission unit 58 for transmitting the communication frame to the relay destination determined by the frame distribution unit 56, an important frame storage unit 60 for storing an important frame described later among the communication frames, a frame transmission unit 58, An output blocking unit 62a connected between the bus 1, an output blocking unit 62b connected between the frame transmission unit 58 and the bus 2, and a frame transmission unit 58; An output blocking portion 62c which is connected between the scan 3, and a power source state detection portion 64.

フレーム送信部58には、ネットワーク10用の送信バッファ58aと、ネットワーク20用の送信バッファ58bと、ネットワーク30用の送信バッファ58cとが設けられている。   The frame transmission unit 58 is provided with a transmission buffer 58a for the network 10, a transmission buffer 58b for the network 20, and a transmission buffer 58c for the network 30.

電源状態検知部64には、車両のイグニション電源、アクセサリ電源、及びバッテリ電源それぞれのオン/オフ状態を表す信号が入力されるようになっており、電源状態検知部64は、そのイグニション電源、アクセサリ電源、及びバッテリ電源それぞれのオン/オフ状態を検出する。尚、オン状態とは、電圧を供給している状態であり、オフ状態とは、電圧の供給を停止した状態である。また、データ中継装置50には、ノードの全てについて、そのノードの情報が、電圧の供給元の電源と対応づけられて記憶されており、電源状態検知部64は、その情報を参照できるようになっている。   Signals representing the on / off states of the ignition power source, accessory power source, and battery power source of the vehicle are input to the power source state detecting unit 64. The power source state detecting unit 64 includes the ignition power source and accessory power source. The on / off state of each of the power source and the battery power source is detected. The on state is a state in which voltage is supplied, and the off state is a state in which the supply of voltage is stopped. In addition, the data relay device 50 stores information on all nodes in association with the power source of the voltage supply source, so that the power state detector 64 can refer to the information. It has become.

そして、電源状態検知部64は、イグニション電源がオフ状態であると判定すると、ネットワークに所属するノードが、イグニション電源から電圧の供給を受けて動作するノードのみ(具体的に、ノード21〜23)であるネットワーク20のバス2に接続する出力遮断部62bに遮断信号を出力する。   When the power supply state detection unit 64 determines that the ignition power supply is in the off state, only the nodes that operate by receiving the voltage supplied from the ignition power supply to the nodes belonging to the network (specifically, nodes 21 to 23). A cutoff signal is output to the output cutoff unit 62b connected to the bus 2 of the network 20.

また、電源状態検知部64は、上記の場合(イグニション電源がオフ状態)に加え、アクセサリ電源がオフ状態であると判定すると、ネットワークに所属するノードが、アクセサリ電源から電圧の供給を受けて動作するノード(具体的に、ノード31)と、イグニション電源から電圧の供給を受けて動作するノード(具体的に、ノード32,33)とであるネットワーク30のバス3に接続する出力遮断部62cに遮断信号を出力する。   If the power supply state detection unit 64 determines that the accessory power supply is in the off state in addition to the above case (ignition power supply is in the off state), the node belonging to the network operates with the supply of voltage from the accessory power supply. The output blocking unit 62c connected to the bus 3 of the network 30 is a node (specifically, the node 31) to be operated and a node (specifically, the nodes 32 and 33) that are operated by receiving a voltage supply from the ignition power supply. Outputs a cut-off signal.

尚、電源状態検知部64は、バッテリ電源の状態も検出するが、本実施形態では、バッテリ電源は常時オン状態であるものとする。
一方、電源状態検知部64は、イグニション電源がオン状態になったと判定すると、接続信号を出力遮断部62bに出力する。
The power supply state detection unit 64 also detects the state of the battery power supply, but in this embodiment, the battery power supply is always on.
On the other hand, when the power supply state detection unit 64 determines that the ignition power supply is turned on, it outputs a connection signal to the output blocking unit 62b.

また、イグニション電源がオン状態になると、アクセサリ電源もオン状態になるようになっており、上記の場合(イグニション電源がオン状態)、電源状態検知部64は、出力遮断部62cにも、接続信号を出力するこことなる。   Further, when the ignition power source is turned on, the accessory power source is also turned on. In the above case (ignition power source is in the on state), the power state detection unit 64 also sends a connection signal to the output cutoff unit 62c. Will be output.

ここで、出力遮断部62a〜62cは、それぞれ、電源状態検知部64から遮断信号が入力されると、データ中継装置50とバス1〜3との接続を切り離す。具体的には、出力遮断部62a〜62cは、それぞれ、データ中継装置50のフレーム送信部58とバス1〜3との接続/非接続を切り換えるためのスイッチを備えており、遮断信号が入力されると、そのスイッチをオフ(非接続)する。   Here, when the cutoff signal is input from the power supply state detection unit 64, the output cutoff units 62a to 62c disconnect the connection between the data relay device 50 and the buses 1 to 3, respectively. Specifically, each of the output blocking units 62a to 62c includes a switch for switching connection / disconnection between the frame transmission unit 58 of the data relay device 50 and the buses 1 to 3, and receives a blocking signal. Then, the switch is turned off (not connected).

つまり、例えば出力遮断部62bは、遮断信号が入力されると、スイッチをオフすることで、フレーム送信部58とバス2との接続を物理的に切り離す。これにより、データ中継装置50とネットワーク20との通信が完全に遮断される。同様に、出力遮断部62cは、遮断信号が入力されると、スイッチをオフすることで、フレーム送信部58とバス3との接続を物理的に切り離す。   That is, for example, when the cutoff signal is input, the output cutoff unit 62b physically disconnects the connection between the frame transmission unit 58 and the bus 2 by turning off the switch. As a result, communication between the data relay device 50 and the network 20 is completely blocked. Similarly, when the cutoff signal is input, the output cutoff unit 62c physically disconnects the connection between the frame transmission unit 58 and the bus 3 by turning off the switch.

また、出力遮断部62a〜62cは、接続信号が入力されると、スイッチをオンすることで、データ中継装置50のフレーム送信部58とバス1〜3とを接続させる。
つまり、例えば出力遮断部62bは、接続信号が入力されると、スイッチをオンすることで、フレーム送信部58とバス2とを接続させる。これにより、データ中継装置50とネットワーク20とが通信可能になる。同様に、出力遮断部62cは、接続信号が入力されると、スイッチをオンすることで、フレーム送信部58とバス3とを接続させる。
Further, when a connection signal is input, the output blocking units 62a to 62c turn on the switch to connect the frame transmission unit 58 of the data relay device 50 and the buses 1 to 3.
That is, for example, when the connection signal is input, the output blocking unit 62b turns on the switch to connect the frame transmission unit 58 and the bus 2. As a result, the data relay device 50 and the network 20 can communicate with each other. Similarly, when the connection signal is input, the output cutoff unit 62c turns on the switch to connect the frame transmission unit 58 and the bus 3.

次に、図3は、情報記憶部54に記憶される情報を表す図面である。
図3では、データ中継装置50が中継すべき通信フレームの全てについて、中継元バス名と、中継先バス名と、フレーム種別とが対応付けられている。具体的に、フレーム_1の中継元はバス1であり、中継先はバス2,3である。これはつまり、フレーム_1は、バス1からバス2,3に中継されることを表す。また、フレーム_1の種別は1であり、これは、フレーム_1が重要フレームであることを表す。尚、重要フレームとしては、例えばイベントが発生した(例えば所定のスイッチが操作された)ことを表す通信フレームがある。
Next, FIG. 3 is a diagram showing information stored in the information storage unit 54.
In FIG. 3, the relay source bus name, the relay destination bus name, and the frame type are associated with each other for all communication frames to be relayed by the data relay device 50. Specifically, the relay source of frame_1 is bus 1, and the relay destinations are buses 2 and 3. This means that the frame_1 is relayed from the bus 1 to the buses 2 and 3. The type of the frame_1 is 1, which indicates that the frame_1 is an important frame. As an important frame, for example, there is a communication frame indicating that an event has occurred (for example, a predetermined switch has been operated).

また、フレーム_2は、バス1からバス3に中継される通信フレームであり、種別は0である。種別の0は、フレーム_2が通常の通信フレーム(例えば定期的にやり取りされることになっている通信フレーム)であることを表す。   The frame_2 is a communication frame relayed from the bus 1 to the bus 3, and the type is 0. The type 0 indicates that the frame_2 is a normal communication frame (for example, a communication frame that is to be regularly exchanged).

次に、図4は、データ中継装置50の図示しないCPUが実行する通信フレームの中継処理を表すフローチャートである。この中継処理は、データ中継装置50が起動すると開始され、その後データ中継装置50への電圧の供給が停止されてデータ中継装置50が休止するまで繰り返し実行される。尚、データ中継装置50が起動した際、そのデータ中継装置50において初期化処理が実行される。また、初期状態では、出力遮断部62a〜62cのスイッチはオンされているものとする。   Next, FIG. 4 is a flowchart showing communication frame relay processing executed by a CPU (not shown) of the data relay device 50. This relay process is started when the data relay device 50 is activated, and then repeatedly executed until the voltage supply to the data relay device 50 is stopped and the data relay device 50 is stopped. When the data relay device 50 is activated, initialization processing is executed in the data relay device 50. In the initial state, it is assumed that the switches of the output shut-off units 62a to 62c are turned on.

図4の中継処理では、まず、S110で、イグニション電源及びアクセサリ電源がオン状態であるか否かを、イグニション電源及びアクセサリ電源からのオン/オフ状態を表す信号に基づき判定する。   In the relay process of FIG. 4, first, in S110, whether or not the ignition power source and the accessory power source are in the on state is determined based on a signal representing the on / off state from the ignition power source and the accessory power source.

そして、イグニション電源及びアクセサリ電源が共にオン状態でない、つまりオフ状態であると判定すると、S120へ移行し、出力遮断部62b,62cのスイッチをオフさせ、データ中継装置50とバス2,3との接続を切り離す。そしてその後、S180へ移行する。また、S110でイグニション電源のみがオン状態でない、つまりオフ状態であると判定すると、S130へ移行し、出力遮断部62bのスイッチをオフさせ、バス2との接続を切り離す。そしてその後、S140へ移行する。   If it is determined that both the ignition power source and the accessory power source are not in the on state, that is, in the off state, the process proceeds to S120, where the switches of the output cutoff units 62b and 62c are turned off, and the data relay device 50 and the buses 2 and 3 Disconnect the connection. Then, the process proceeds to S180. If it is determined in S110 that only the ignition power supply is not in the on state, that is, it is in the off state, the process proceeds to S130, the switch of the output cutoff unit 62b is turned off, and the connection with the bus 2 is disconnected. Then, the process proceeds to S140.

一方、S110でイグニション電源及びアクセサリ電源が共にオン状態であると判定すると、S140へ移行する。
S110から移行したS140では、当該データ中継装置50とネットワーク20,30との通信が遮断中であるか否かを、出力遮断部62b,62cのスイッチの状態に基づき判定する。具体的に、例えばネットワーク20について、出力遮断部62bのスイッチがオンされていれば通信中と判定し、出力遮断部62bのスイッチがオフされていれば通信遮断中と判定する。ネットワーク30についても同様であり、ここでは説明を省略する。そして、ネットワーク20,30との通信が共に遮断中でないと判定すると、S180へ移行する。
On the other hand, if it is determined in S110 that both the ignition power supply and the accessory power supply are on, the process proceeds to S140.
In S140 shifted from S110, it is determined whether or not communication between the data relay device 50 and the networks 20 and 30 is being blocked based on the switch states of the output blocking units 62b and 62c. Specifically, for example, for the network 20, it is determined that communication is being performed if the switch of the output blocking unit 62b is turned on, and it is determined that communication is being blocked if the switch of the output blocking unit 62b is turned off. The same applies to the network 30, and a description thereof is omitted here. If it is determined that communication with the networks 20 and 30 is not interrupted, the process proceeds to S180.

また、S130から移行したS140では、ネットワーク30との通信が遮断中であるか否かを、出力遮断部62cのスイッチの状態に基づき判定する。そして、ネットワーク30との通信が遮断中でないと判定すると、S180へ移行する。   In S140 that has shifted from S130, whether or not communication with the network 30 is being blocked is determined based on the switch state of the output blocking unit 62c. And if it determines with communication with the network 30 not being interrupted | blocked, it will transfer to S180.

一方、S110から移行したS140で、当該データ中継装置50と、ネットワーク20,30の少なくとも何れかとの通信が遮断中であると判定すると、S150へ移行し、通信の遮断を解除する。具体的に、当該データ中継装置50とネットワーク20との通信が遮断中であれば(S140:YES)、出力遮断部62bのスイッチをオンさせることにより、当該データ中継装置50とネットワーク20との通信が可能になるようにする。ネットワーク30についても同様であり、ここでは説明を省略する。   On the other hand, if it is determined in S140 that has shifted from S110 that communication between the data relay device 50 and at least one of the networks 20 and 30 is being blocked, the flow shifts to S150 to cancel the blocking of communication. Specifically, if the communication between the data relay device 50 and the network 20 is being blocked (S140: YES), the communication between the data relay device 50 and the network 20 is performed by turning on the switch of the output blocking unit 62b. To be possible. The same applies to the network 30, and a description thereof is omitted here.

また、S130から移行したS140で、当該データ中継装置50とネットワーク30との通信が遮断中であると判定すると、S150へ移行し、ネットワーク30との間における通信の遮断を解除する。   If it is determined in S140 that has shifted from S130 that the communication between the data relay device 50 and the network 30 is being blocked, the flow shifts to S150 to cancel the blocking of communication with the network 30.

つまり、S110→S140→S150の場合は、データ中継装置50は、ネットワーク20,30との通信が可能であり、S110→S130→S140→S150の場合は、データ中継装置50は、ネットワーク30との通信が可能である。   That is, in the case of S110 → S140 → S150, the data relay device 50 can communicate with the networks 20 and 30, and in the case of S110 → S130 → S140 → S150, the data relay device 50 communicates with the network 30. Communication is possible.

S150の後、S160へ進み、重要フレームが保持されているか否か(図3の重要フレーム記憶部60に重要フレームが記憶されているか否か)、及び重要フレームが保持されている場合にその重要フレームを中継可能か否か(中継先と通信可能か否か)を判定する。そして、中継可能な重要フレームが保持されていると判定すると、S170へ移行し、その中継可能な重要フレームを重要フレーム記憶部60から読み出して、中継すべき中継先に中継する。そしてその後、S180へ移行する。   After S150, the process proceeds to S160, whether or not the important frame is held (whether or not the important frame is stored in the important frame storage unit 60 in FIG. 3), and if the important frame is held, the important frame It is determined whether the frame can be relayed (whether communication with the relay destination is possible). If it is determined that an important frame that can be relayed is held, the process proceeds to S170, the important frame that can be relayed is read from the important frame storage unit 60, and relayed to the relay destination to be relayed. Then, the process proceeds to S180.

一方、S160で、重要フレームが保持されていない、或いは、保持されている重要フレームが中継可能でないと判定すると、S180へ移行する。
S180では、通信フレームを受信したか否かを判定する。尚、通信フレームを受信していないと判定すると、再びS180の処理を繰り返す(受信待機)。
On the other hand, if it is determined in S160 that the important frame is not held or the held important frame is not relayable, the process proceeds to S180.
In S180, it is determined whether a communication frame has been received. If it is determined that a communication frame has not been received, the process of S180 is repeated again (waiting for reception).

S180で通信フレームを受信したと判定すると、S190へ移行し、その通信フレームが、受信元のネットワークから他のネットワークへ中継すべき通信フレーム(以下、中継フレームとも記載する)であるか否かを、情報記憶部54(図2参照)に記憶された情報(図3参照)に基づき判定する。中継フレームでないと判定すると、S260へ移行する。   If it is determined in S180 that a communication frame has been received, the process proceeds to S190, and whether or not the communication frame is a communication frame to be relayed from the receiving network to another network (hereinafter also referred to as a relay frame). The determination is made based on the information (see FIG. 3) stored in the information storage unit 54 (see FIG. 2). If it is determined that the frame is not a relay frame, the process proceeds to S260.

一方、S190で受信した通信フレームが中継フレームであると判定すると、情報記憶部54に記憶された情報に基づき、中継すべきネットワーク(バス)に、中継フレームを振り分ける。具体的に、フレーム送信部58(図2参照)の送信バッファ58a〜58cのうち、中継先に対応する送信バッファに中継フレームが格納される。   On the other hand, if it is determined that the communication frame received in S190 is a relay frame, the relay frame is distributed to the network (bus) to be relayed based on the information stored in the information storage unit 54. Specifically, the relay frame is stored in the transmission buffer corresponding to the relay destination among the transmission buffers 58a to 58c of the frame transmission unit 58 (see FIG. 2).

次にS210へ進み、当該データ中継装置50と中継先のバスとの接続が切り離されているか否かを判定する。切り離されていないと判定すると、S220へ移行し、フレーム送信部58から中継フレームを送出させて、中継を行う。そしてその後、S260へ移行する。   In step S210, it is determined whether or not the connection between the data relay device 50 and the relay destination bus is disconnected. If it is determined that it has not been separated, the process proceeds to S220, where a relay frame is transmitted from the frame transmission unit 58 to perform relaying. Then, the process proceeds to S260.

一方、S210で当該データ中継装置50と中継先のバスとの接続が切り離されていると判定すると、S230へ移行し、中継フレームが重要フレームであるか否か(中継フレームの種別が1であるか否か)を、情報記憶部54に記憶された情報に基づき判定する。   On the other hand, if it is determined in S210 that the connection between the data relay apparatus 50 and the relay destination bus is disconnected, the process proceeds to S230, and whether or not the relay frame is an important frame (the type of the relay frame is 1). Is determined based on the information stored in the information storage unit 54.

S230で重要フレームであると判定すると、S240へ移行し、その重要フレームを重要フレーム記憶部60に記憶させる。そしてその後、S260へ移行する。
一方、S230で重要フレームでないと判定すると、S250へ移行し、その中継フレームを破棄する。そしてその後、S260へ移行する。
If it is determined in S230 that the frame is an important frame, the process moves to S240, and the important frame storage unit 60 stores the important frame. Then, the process proceeds to S260.
On the other hand, if it is determined in S230 that the frame is not an important frame, the process proceeds to S250, and the relay frame is discarded. Then, the process proceeds to S260.

S260では、当該データ中継装置50への電圧の供給が停止されたか否かを判定し、停止されたと判定すると、当該処理を終了する。一方、電圧の供給が停止されていないと判定すると、S110へ戻る。   In S260, it is determined whether or not the supply of voltage to the data relay device 50 has been stopped. If it is determined that the supply has been stopped, the processing ends. On the other hand, if it determines with the supply of voltage not being stopped, it will return to S110.

このような本実施形態のデータ中継装置50によれば、ネットワークに所属する全てのノードへの電圧供給が停止されているネットワーク(以下、休止中ネットワークと記載する)とデータ中継装置50との接続が物理的に切り離されるため、その休止中ネットワークに誤って通信フレームが中継されるということを確実に防止することができる。   According to the data relay device 50 of the present embodiment as described above, the connection between the data relay device 50 and a network in which voltage supply to all nodes belonging to the network is stopped (hereinafter referred to as a dormant network) is performed. Since the communication frame is physically disconnected, it is possible to reliably prevent the communication frame from being erroneously relayed to the idle network.

また、休止中ネットワークのバスが不要な通信フレームで占有されてしまう、という不都合が生じることを防止することができる。また、例えば、休止中ネットワークにおいて、電圧供給の停止によりノードが停止状態に移行する最中に通信フレームが中継されてしまい、その停止状態に移行中のノードが誤作動してしまう、というような問題が生じることを防止することができる。   In addition, it is possible to prevent the inconvenience that the bus of the dormant network is occupied by unnecessary communication frames. In addition, for example, in a dormant network, a communication frame is relayed while the node shifts to the stop state due to the stop of the voltage supply, and the node that is shifting to the stop state malfunctions. Problems can be prevented from occurring.

また、本実施形態のデータ中継装置50は、ノードに電圧を供給する電源のオン/オフ状態を判定することにより、複数のネットワークのそれぞれについて、ネットワークが休止中ネットワークであるか否かを判定する。このため、ノードのそれぞれについて、個々に、電圧供給が停止されているか否かを検出しなくてもよくなり有利である。具体的には、例えば配線が複雑なものとなってしまうことを防止することができる。   In addition, the data relay device 50 according to the present embodiment determines whether or not the network is a dormant network for each of the plurality of networks by determining an on / off state of a power supply that supplies a voltage to the node. . For this reason, it is not necessary to individually detect whether or not the voltage supply is stopped for each of the nodes, which is advantageous. Specifically, for example, it is possible to prevent the wiring from becoming complicated.

また、データ中継装置50は、データ中継装置50との接続が切り離されているネットワークに中継すべき通信フレームを受信した際、その受信した通信フレームのうち、種別が1である通信フレーム(重要フレーム)を記憶しておき、その記憶した通信フレームを、その後通信可能となった際に中継するようになっている。このため、通信フレームを記憶するためのメモリ資源を節約しつつ、所望の通信(制御)が実現されるようにすることができる。   When the data relay device 50 receives a communication frame to be relayed to a network that is disconnected from the data relay device 50, the data relay device 50 has a type 1 communication frame (important frame) out of the received communication frames. ) Is stored, and the stored communication frame is relayed when communication becomes possible thereafter. Therefore, desired communication (control) can be realized while saving memory resources for storing communication frames.

尚、本実施形態において、電源状態検知部64及びS110の処理が判定手段に相当し、出力遮断部62a〜62c、S120及びS130の処理が通信遮断手段に相当し、出力遮断部62a〜62c及びS150の処理が復帰手段に相当し、重要フレーム記憶部60、S230及びS240の処理が請求項4の記憶制御手段に相当している。
[第2実施形態]
次に、第2実施形態の車載通信ネットワークについて説明する。
In the present embodiment, the processing of the power supply state detection unit 64 and S110 corresponds to the determination unit, the processing of the output blocking units 62a to 62c, S120 and S130 corresponds to the communication blocking unit, and the output blocking units 62a to 62c and The process of S150 corresponds to the return means, and the processes of the important frame storage unit 60, S230, and S240 correspond to the storage control means of claim 4.
[Second Embodiment]
Next, the in-vehicle communication network of the second embodiment will be described.

本第2実施形態では、データ中継装置50は、図5に示す構成を備えている。そして、図5のデータ中継装置50は、図1のデータ中継装置50と比較すると、フレーム比較部66を備えている点が異なっている。   In the second embodiment, the data relay device 50 has the configuration shown in FIG. 5 is different from the data relay device 50 in FIG. 1 in that a frame comparison unit 66 is provided.

また、本第2実施形態では、データ中継装置50のCPUは、図4の中継処理に代えて図6の中継処理を実行する。そして、図6の中継処理では、図4の中継処理と比較すると、S230の処理の後に、S310及びS320の処理が追加されている。尚、図6において、図4と同じステップについては同じ符号を付している。   In the second embodiment, the CPU of the data relay device 50 executes the relay process of FIG. 6 instead of the relay process of FIG. In the relay process of FIG. 6, the processes of S310 and S320 are added after the process of S230 as compared with the relay process of FIG. In FIG. 6, the same steps as those in FIG. 4 are denoted by the same reference numerals.

具体的には、図5におけるフレーム比較部66は、フレーム分配部56により各バスに分配される通信フレームのうち、種別が1である通信フレーム(重要フレーム)と、重要フレーム記憶部60に記憶されている通信フレームとを比較して、両者が同一か否かを判定する。つまり、今回受信した重要フレームと同じ通信フレームが、重要フレーム記憶部60に既に記憶されているか否かを判定する。   Specifically, the frame comparison unit 66 in FIG. 5 stores the communication frame (important frame) of type 1 among the communication frames distributed to each bus by the frame distribution unit 56 and the important frame storage unit 60. It is determined whether or not they are the same by comparing with the communication frame being used. That is, it is determined whether the same communication frame as the important frame received this time is already stored in the important frame storage unit 60.

そして、図6の中継処理では、S230の処理で、S180で受信した(S180:YES)通信フレームが重要フレームであると判定すると、S310へ移行し、その重要フレームと同じ通信フレームが、重要フレーム記憶部60に記憶されているか否かを判定する。   In the relay process of FIG. 6, if it is determined in S230 that the communication frame received in S180 (S180: YES) is an important frame, the process proceeds to S310, and the same communication frame as the important frame is the important frame. It is determined whether it is stored in the storage unit 60.

そして、S310で、その今回受信した重要フレームと同じ通信フレームが記憶されていると判定すると、S320へ移行し、今回受信した重要フレームを破棄する。一方、S310で、今回受信した重要フレームと同じ通信フレームが記憶されていないと判定すると、S240へ移行し、その今回受信した重要フレームを重要フレーム記憶部60に記憶させる。   If it is determined in S310 that the same communication frame as the important frame received this time is stored, the process proceeds to S320, where the important frame received this time is discarded. On the other hand, if it is determined in S310 that the same communication frame as the important frame received this time is not stored, the process proceeds to S240, and the important frame received this time is stored in the important frame storage unit 60.

このような本第2実施形態のデータ中継装置50によれば、重要フレーム記憶部60に、その重要フレーム記憶部60に既に記憶されている通信フレームと同じ通信フレームを記憶させるという不要な処理が生じることを防止することができる。   According to the data relay device 50 of the second embodiment as described above, an unnecessary process of storing the same communication frame as the communication frame already stored in the important frame storage unit 60 in the important frame storage unit 60 is performed. It can be prevented from occurring.

また、重要フレーム記憶部60のメモリが同一の通信フレームで占有されるという無駄が生じることを防止することができる。つまり、メモリ資源を節約できる。
尚、本第2実施形態において、S310、S320、S240の処理が、請求項5の記憶制御手段に相当している。
Further, it is possible to prevent the waste of the memory of the important frame storage unit 60 being occupied by the same communication frame. That is, memory resources can be saved.
In the second embodiment, the processing of S310, S320, and S240 corresponds to the storage control means of claim 5.

ところで、本第2実施形態では、以下に述べる「変形例」のように変形しても良い。
〈変形例〉
まず、本変形例では、データ中継装置50のCPUは、図6の中継処理に代えて、図7の中継処理を実行する。
By the way, in this 2nd Embodiment, you may deform | transform like the "modification example" described below.
<Modification>
First, in the present modification, the CPU of the data relay device 50 executes the relay process of FIG. 7 instead of the relay process of FIG.

そして、図7の中継処理では、図6の中継処理と比較すると、S330及びS340の処理が追加されている。
具体的には、S310の処理で、今回受信した重要フレームと同じ通信フレームが重要フレーム記憶部60に記憶されていないと判定すると、S330へ移行し、重要フレーム記憶部60のメモリに、今回受信した重要フレームを記憶させるための空き容量があるか否かを判定する。空き容量があると判定すると、S240へ移行し、今回受信した重要フレームを重要フレーム記憶部60に記憶させる。
In the relay process of FIG. 7, the processes of S330 and S340 are added as compared with the relay process of FIG.
Specifically, in the process of S310, if it is determined that the same communication frame as the currently received important frame is not stored in the important frame storage unit 60, the process proceeds to S330, and the current frame is received in the memory of the important frame storage unit 60. It is determined whether or not there is a free capacity for storing the important frame. If it is determined that there is free space, the process proceeds to S240, and the important frame received this time is stored in the important frame storage unit 60.

一方、S330で空き容量がないと判定すると、S340へ移行し、重要フレーム記憶部60に記憶されている重要フレームのうち、最も先に記憶された(最も古い)重要フレームを破棄(消去)する。つまり、これにより空き容量を確保する。そして、S240へ移行し、今回受信した重要フレームを重要フレーム記憶部60に記憶させる。   On the other hand, if it is determined in S330 that there is no free space, the process proceeds to S340, and among the important frames stored in the important frame storage unit 60, the oldest (oldest) important frame stored is discarded (erased). . In other words, this secures free space. Then, the process proceeds to S240, and the important frame received this time is stored in the important frame storage unit 60.

これによれば、最新の重要フレームを確実に記憶させておくことができるようになる。
尚、本変形例において、S310〜S340、S240の処理が、請求項6の記憶制御手段に相当している。
According to this, the latest important frame can be surely stored.
In this modification, the processing of S310 to S340 and S240 corresponds to the storage control means of claim 6.

以上、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、本発明の技術範囲内において種々の形態をとることができる。
例えば、上記実施形態では、車載通信システムのネットワーク間で中継を行う車載用データ中継装置について説明したが、どのようなネットワークにおいても本発明を適用することができる。つまり、本発明を適用したデータ中継装置は、どのようなネットワークでも使用することができる。
As mentioned above, although one Embodiment of this invention was described, this invention is not limited to the said embodiment, A various form can be taken within the technical scope of this invention.
For example, in the above embodiment, the in-vehicle data relay apparatus that relays between networks of the in-vehicle communication system has been described. However, the present invention can be applied to any network. That is, the data relay device to which the present invention is applied can be used in any network.

また、上記実施形態では、通信が遮断されたネットワークに中継すべき通信フレームを受信した際、その通信フレームのうち、重要フレームのみを記憶するようにしているが、受信した通信フレーム全てを記憶するように構成しても良い。   In the above embodiment, when a communication frame to be relayed to a network where communication is interrupted is received, only the important frame is stored among the communication frames, but all received communication frames are stored. You may comprise as follows.

さらに、上記実施形態において、中継先のネットワーク事情によっては、通信の遮断中に受信した通信フレーム全てを破棄するように構成しても良い。例えば、通信の遮断が解除された際に、過去の古い通信フレームが中継されて欲しくないネットワークに対応する送信バッファ(図2,5の送信バッファ58a〜58c)に格納されている通信フレームを破棄するように構成することができる。このようにすれば、古い通信フレームが中継されることにより生じ得る不都合(例えば、中継先において、古い通信フレームを新しい通信フレームと誤認識したり、他の通信フレームの受信タイミングが遅れてしまったりするような不都合)を回避することができる。   Furthermore, in the above-described embodiment, depending on the network situation of the relay destination, it may be configured to discard all communication frames received during communication interruption. For example, when the communication block is released, the communication frames stored in the transmission buffers (transmission buffers 58a to 58c in FIGS. 2 and 5) corresponding to the network in which the old communication frame is not desired to be relayed are discarded. Can be configured to. In this way, inconveniences that may occur when the old communication frame is relayed (for example, the relay destination misrecognizes the old communication frame as a new communication frame or delays the reception timing of other communication frames). Such inconvenience) can be avoided.

本実施形態の車載通信ネットワークの構成図である。It is a block diagram of the vehicle-mounted communication network of this embodiment. 本実施形態のデータ中継装置50の構成を表すブロック図である。It is a block diagram showing the structure of the data relay apparatus 50 of this embodiment. 情報記憶部54に記憶される情報を表す図面である。6 is a diagram illustrating information stored in an information storage unit 54. データ中継装置50のCPUが実行する中継処理を表すフローチャートである。4 is a flowchart showing relay processing executed by a CPU of the data relay device 50. 第2実施形態のデータ中継装置50の構成を表すブロック図である。It is a block diagram showing the structure of the data relay apparatus 50 of 2nd Embodiment. 第2実施形態のデータ中継装置50のCPUが実行する中継処理を表すフローチャートである。It is a flowchart showing the relay process which CPU of the data relay apparatus 50 of 2nd Embodiment performs. 第2実施形態の変形例の中継処理を表すフローチャートである。It is a flowchart showing the relay process of the modification of 2nd Embodiment.

符号の説明Explanation of symbols

1,2,3…バス、10,20,30…ネットワーク、11,12,13,21,22,23,31,32,33…ノード、50…データ中継装置、52…フレーム受信部、54…情報記憶部、56…フレーム分配部、58…フレーム送信部、58a,58b,58c…送信バッファ、60…重要フレーム記憶部、62a,62b,62c…出力遮断部、64…電源状態検知部、66…フレーム比較部。 1, 2, 3,... Bus, 10, 20, 30 ... network, 11, 12, 13, 21, 22, 23, 31, 32, 33 ... node, 50 ... data relay device, 52 ... frame receiver, 54 ... Information storage unit 56 ... Frame distribution unit 58 ... Frame transmission unit 58a, 58b, 58c ... Transmission buffer 60 ... Important frame storage unit 62a, 62b, 62c ... Output blocking unit 64 ... Power supply state detection unit 66 ... Frame comparison part.

Claims (7)

複数のネットワークのそれぞれと通信可能に接続され、その複数のネットワーク間でやり取りされるべき通信フレームを中継するデータ中継装置において、
前記複数のネットワークのそれぞれについて、そのネットワークに所属する全てのノードへの電圧供給が停止されているか否かを判定する判定手段と、
前記複数のネットワークのうち、前記判定手段により全てのノードへの電圧供給が停止されていると判定されたネットワーク(以下、休止中ネットワークと言う)と、当該データ中継装置との接続を切り離す通信遮断手段とを備えていることを特徴とするデータ中継装置。
In a data relay device that is communicably connected to each of a plurality of networks and relays a communication frame to be exchanged between the plurality of networks.
For each of the plurality of networks, determination means for determining whether or not voltage supply to all nodes belonging to the network is stopped,
Communication interruption that disconnects the data relay device from the network determined by the determination means that the voltage supply to all nodes is stopped among the plurality of networks (hereinafter referred to as a dormant network). And a data relay device.
請求項1に記載のデータ中継装置において、
前記ノードのそれぞれには、複数の電源の何れかから電圧が供給されるようになっており、
前記判定手段は、前記複数の電源のそれぞれについて、電圧を供給している状態(以下、オン状態と言う)であるか、或いは電圧の供給を停止した状態(以下、オフ状態と言う)であるかを判定して、前記複数のネットワークのうち、そのネットワークに所属するノードに電圧を供給する電源の全てについてオフ状態であると判定したネットワークを、休止中ネットワークと判定するようになっていることを特徴とするデータ中継装置。
The data relay device according to claim 1,
Each of the nodes is supplied with a voltage from any of a plurality of power sources,
The determination means is in a state in which a voltage is supplied to each of the plurality of power supplies (hereinafter referred to as an “on state”) or a state in which the supply of voltage is stopped (hereinafter referred to as an “off state”). Among the plurality of networks, a network that is determined to be in an off state for all of the power supplies that supply voltage to nodes belonging to the network is determined to be a dormant network. A data relay device.
請求項1又は請求項2に記載のデータ中継装置において、
前記通信遮断手段により当該データ中継装置との接続が切り離されたネットワークが、前記判定手段により休止中ネットワークでないと判定されると、当該データ中継装置との接続が切り離されたそのネットワークと当該データ中継装置とを通信可能に接続させる復帰手段と、
前記通信遮断手段により当該データ中継装置との接続が切り離されてから前記復帰手段により当該データ中継装置と通信可能に接続されるまでの間に、当該データ中継装置との接続が切り離されたそのネットワークに中継すべき通信フレームを受信すると、その受信した通信フレームを記憶装置に記憶させる記憶制御手段とを備え、
前記記憶制御手段により前記記憶装置に記憶された通信フレームが中継されるべきネットワークと、当該データ中継装置とが、前記復帰手段により通信可能に接続された際に、その記憶装置に記憶された通信フレームを、前記復帰手段により当該データ中継装置と通信可能に接続されたネットワークに中継するようになっていることを特徴とするデータ中継装置。
In the data relay device according to claim 1 or 2,
If the network disconnected from the data relay device by the communication blocking unit is determined not to be a dormant network by the determining unit, the network disconnected from the data relay device and the data relay Return means for communicably connecting the device;
The network in which the connection with the data relay device is disconnected between the time when the connection with the data relay device is disconnected by the communication blocking unit and the time when the connection with the data relay device is communicably connected with the return unit. Storage control means for storing the received communication frame in a storage device when receiving the communication frame to be relayed to
The communication stored in the storage device when the network to which the communication frame stored in the storage device by the storage control unit is to be relayed and the data relay device are communicably connected by the return unit A data relay device, wherein the frame is relayed to a network connected to be communicable with the data relay device by the return means.
請求項3に記載のデータ中継装置において、
前記記憶制御手段は、当該データ中継装置との接続が切り離されているネットワークに中継すべき通信フレームを受信した際、その受信した通信フレームのうち、予め高重要度に設定された通信フレームを前記記憶装置に記憶させるようになっていることを特徴とするデータ中継装置。
The data relay device according to claim 3,
The storage control means, when receiving a communication frame to be relayed to a network that is disconnected from the data relay device, out of the received communication frame, the communication frame that has been set to high importance in advance A data relay device characterized by being stored in a storage device.
請求項3又は請求項4に記載のデータ中継装置において、
前記記憶制御手段は、前記記憶装置の記憶内容を参照して、今回受信された通信フレームと同じ通信フレームが前記記憶装置に記憶されていない場合に、その今回受信された通信フレームをその記憶装置に記憶させるようになっていることを特徴とするデータ中継装置。
In the data relay device according to claim 3 or 4,
The storage control means refers to the storage content of the storage device, and when the same communication frame as the communication frame received this time is not stored in the storage device, the storage frame is stored in the storage device. A data relay device characterized in that it is stored in
請求項3ないし請求項5の何れか1項に記載のデータ中継装置において、
前記記憶制御手段は、今回受信された通信フレームを前記記憶装置に記憶させる際、その記憶装置にその通信フレームを記憶させるための空き容量が無い場合は、その記憶装置に記憶されている通信フレームのうち、最も先に記憶された通信フレームを消去して、今回受信された通信フレームをその記憶装置に記憶させるようになっていることを特徴とするデータ中継装置。
The data relay device according to any one of claims 3 to 5,
When the storage control means stores the communication frame received this time in the storage device, if there is no free space for storing the communication frame in the storage device, the communication frame stored in the storage device The data relay device is characterized in that the communication frame stored first is deleted and the communication frame received this time is stored in the storage device.
請求項1ないし請求項6の何れか1項に記載のデータ中継装置において、
前記複数のネットワークは車両に搭載されるものであり、前記電源は、車両のイグニション電源、アクセサリ電源、及びバッテリ電源の何れかを少なくとも含むことを特徴とするデータ中継装置。
The data relay device according to any one of claims 1 to 6,
The plurality of networks are mounted on a vehicle, and the power source includes at least one of an ignition power source, an accessory power source, and a battery power source of the vehicle.
JP2007016605A 2007-01-26 2007-01-26 Data relay device Active JP4645599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007016605A JP4645599B2 (en) 2007-01-26 2007-01-26 Data relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007016605A JP4645599B2 (en) 2007-01-26 2007-01-26 Data relay device

Publications (2)

Publication Number Publication Date
JP2008187243A JP2008187243A (en) 2008-08-14
JP4645599B2 true JP4645599B2 (en) 2011-03-09

Family

ID=39730019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007016605A Active JP4645599B2 (en) 2007-01-26 2007-01-26 Data relay device

Country Status (1)

Country Link
JP (1) JP4645599B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5487691B2 (en) * 2009-04-08 2014-05-07 株式会社デンソー Vehicle control apparatus and vehicle control program
JP5821732B2 (en) * 2012-03-21 2015-11-24 株式会社デンソー Gateway device
KR101747026B1 (en) 2016-03-08 2017-06-13 엘에스산전 주식회사 Communication device having relay
JP2019140481A (en) * 2018-02-08 2019-08-22 トヨタ自動車株式会社 Electronic control unit

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1141261A (en) * 1997-07-23 1999-02-12 Denso Corp Multiple communication equipment
JP2002078040A (en) * 2000-08-29 2002-03-15 Matsushita Electric Ind Co Ltd Device selection device and device selection method
JP2002175224A (en) * 2000-12-06 2002-06-21 Nec Corp System and device for connecting network
JP3902010B2 (en) * 2002-01-07 2007-04-04 三菱電機株式会社 Vehicle information multiplex transmission system and vehicle information multiplex transmission method

Also Published As

Publication number Publication date
JP2008187243A (en) 2008-08-14

Similar Documents

Publication Publication Date Title
US8126611B2 (en) On-vehicle communication system
JP4682878B2 (en) Electronic control unit
CN112208467B (en) Vehicle network system
US12069152B2 (en) In-vehicle relay device and relay method
JP2002026957A (en) Multiplex communication system
JP4645599B2 (en) Data relay device
US8356241B2 (en) Relay connection unit mounted in vehicle
WO2022264762A1 (en) Onboard device, information processing method, and program
JP2008306425A (en) Mobile gateway device
KR20040020802A (en) Communication error detection method in bus mode communication network
JP5062027B2 (en) In-vehicle communication network system and communication control method thereof
JP2009027270A (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION METHOD
CN103917938B (en) Electronic-controlled installation and the control method of microcomputer
JP7205439B2 (en) electronic controller
JP2007251722A (en) Communication device, on-vehicle system, data storing method and program
CN120075967A (en) Electronic control device and communication system
CN119948812A (en) Vehicle-mounted relay device, sleep control method and sleep control program
US11115238B2 (en) Gateway device
JP2008278246A (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
JP7336074B2 (en) repeater
JP2008126738A (en) Relay connection unit and in-vehicle multiple communication system
JP4821867B2 (en) Communication device and communication program
US20250254085A1 (en) Relay device and in-vehicle network system
US20260106822A1 (en) Communication system
US20260095344A1 (en) Electronic control unit, in-vehicle network system, communication method, and non-transitory storage medium storing communication program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101029

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101122

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4645599

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250