JP2007249616A - Onboard database system and onboard database distribution node - Google Patents

Onboard database system and onboard database distribution node Download PDF

Info

Publication number
JP2007249616A
JP2007249616A JP2006072153A JP2006072153A JP2007249616A JP 2007249616 A JP2007249616 A JP 2007249616A JP 2006072153 A JP2006072153 A JP 2006072153A JP 2006072153 A JP2006072153 A JP 2006072153A JP 2007249616 A JP2007249616 A JP 2007249616A
Authority
JP
Japan
Prior art keywords
data
database
update
ecu
distribution node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006072153A
Other languages
Japanese (ja)
Inventor
Toshiya Hisada
俊哉 久田
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2006072153A priority Critical patent/JP2007249616A/en
Publication of JP2007249616A publication Critical patent/JP2007249616A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an onboard database system which does not transmit useless data to an onboard LAN, and an onboard database distribution node. <P>SOLUTION: The onboard database system comprises an ECU, a plurality of database distribution nodes for transmitting and receiving data to/from the ECU, and a transmission line for connecting the database distribution nodes. Each database distribution node comprises a processing part with a database for recording required update data and aging data indicating time after the update data are updated of the data received from the ECU or the other database distribution nodes, an ECU side transmission/reception means for transmitting and receiving the update data to/from the ECU connected with the processing part, and a distribution node side transmission/reception means for transmitting and receiving the update data between the processing part and the processing part of the other database distribution nodes. The processing part performs management such that the update data are kept in the latest state by using the aging data and the update data are transmitted at a timing at which the ECU needs them. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、車載データベースシステムおよび車載データベース分配ノードに関し、特に、データベースに記録するデータの更新日をチェックして、常に最新データを記録できるようにし、かつ、この最新のデータベースを車載LANで接続する他のデータベース分配ノードと共有化するものである。   The present invention relates to an in-vehicle database system and an in-vehicle database distribution node, and in particular, checks the update date of data recorded in the database so that the latest data can always be recorded, and the latest database is connected via the in-vehicle LAN. It is shared with other database distribution nodes.

近年、自動車の機能増加に伴い、自動車に搭載される電子制御ユニット(ECU)の数が増加する傾向にある。各ECUは車両制御ネットワーク(以下、単に車載LANという)に接続されているので、ECUが増加すると車載LANの通信データ量が増大し、データの送信時点の衝突が発生する場合があり、これが遅延や速度低下の原因となっていた。   In recent years, with the increase in functions of automobiles, the number of electronic control units (ECUs) installed in automobiles tends to increase. Since each ECU is connected to a vehicle control network (hereinafter simply referred to as an in-vehicle LAN), if the number of ECUs increases, the amount of communication data in the in-vehicle LAN may increase, and a collision at the time of data transmission may occur. It was a cause of speed reduction.

そこで、特開2005−159568号公報(特許文献1)には、送信エラーなどによって送信タイミングが遅れたときに、優先度の高いIDを有するデータから確実に送信することにより、優先順位の高いデータに関しては通信負荷率が上がった状態でも大きく遅れることがないようにする構成が記載されている。   Therefore, Japanese Patent Laid-Open No. 2005-159568 (Patent Document 1) discloses that data having a high priority is obtained by reliably transmitting data having a high priority ID when transmission timing is delayed due to a transmission error or the like. With regard to, a configuration is described in which a large delay is not caused even when the communication load factor is increased.

ところが、優先度の低いデータは優先度の高いデータが優先的に送信されればされるほど、送信時に生じた衝突によってデータ送信に遅れが生じることがあった。このため、特に優先度が低く比較的頻繁に更新される送信待ちのデータの場合に、送信待ちとなっている古いデータが送信できていない状況が生じる。この場合、送信可能な状況となった時に、古くなってあまり役立たないデータを送信することとなり、送信時間の無駄とデータの無駄が生じる。   However, as data with lower priority is transmitted with higher priority, data transmission may be delayed due to a collision that occurs during transmission. For this reason, particularly in the case of data waiting for transmission that has a low priority and is updated relatively frequently, a situation occurs in which old data that is waiting for transmission cannot be transmitted. In this case, when it becomes possible to transmit data, data that is old and not very useful is transmitted, and transmission time and data are wasted.

そこで、ECUを複数の車載LANの群(セグメント)に分けて接続し、各車載LANのセグメント間において、必要なデータだけをデータ中継装置によって中継することにより、各セグメント内の通信負荷率の増加を抑制して衝突の発生を抑えることが行われている。
さらに、今後FlexRay(登録商標)、MOST(Media Oriented Systems Transport)、D2B(Domestic Digital Bus)など、より高速に通信できる車載LANを幹線として用いることにより、通信量の増大に対応することが考えられる。
Therefore, the ECU is divided into a plurality of in-vehicle LAN groups (segments) and connected, and only necessary data is relayed between the in-vehicle LAN segments by the data relay device, thereby increasing the communication load factor in each segment. To suppress the occurrence of collision.
Furthermore, it is conceivable that in-vehicle LAN such as FlexRay (registered trademark), MOST (Media Oriented Systems Transport), D2B (Domestic Digital Bus), etc. will be used as a trunk line to cope with the increase in traffic. .

しかしながら、たとえ高速に通信できる車載LANを採用したり、データ中継装置によって必要なデータだけを中継するようにしたとしても、各ECUが送信するデータをデータ中継装置が受け取ったときに、中継装置から受信側のECUに中継するだけでは、何らかの原因で一時的に通信負荷率が上がった状況が生じた時、送信しきれなかった優先度の低い無駄なデータを送信するために、通信負荷率の引き上げられた状態が長引くという問題があった。
また、より高速に通信できる幹線を介して受信する大量のデータを、低速な支線を構成する車載LANに中継することにより、支線側の車載LANの通信負荷率が引き上げられるという問題もある。
However, even if an in-vehicle LAN capable of high-speed communication is adopted or only necessary data is relayed by the data relay device, when the data relay device receives the data transmitted by each ECU, the relay device In order to transmit useless data with low priority that could not be transmitted when there was a situation where the communication load factor temporarily increased for some reason just by relaying to the ECU on the receiving side, the communication load factor There was a problem that the raised state was prolonged.
There is also a problem that the communication load factor of the in-vehicle LAN on the branch line side can be increased by relaying a large amount of data received via the trunk line capable of communicating at a higher speed to the in-vehicle LAN constituting the low-speed branch line.

特開2005−159568号公報JP 2005-159568 A

本発明は、前記問題に鑑みてなされたもので、接続されたECUから受信したデータが常が最新データとなるように管理して、無駄なデータの送信による通信負荷率の上昇を抑制することを課題としている。   The present invention has been made in view of the above problems, and manages data received from a connected ECU so that it is always the latest data, thereby suppressing an increase in communication load factor due to transmission of useless data. Is an issue.

前記課題を解決するため、本発明は、
複数の群毎に1個設けられるデータベース分配ノードと、
前記各群に設けられる1以上のECUと、
前記データベース分配ノードを順次接続する伝送路と、
を有する車載LANを備え、
前記各データベース分配ノードは、
前記群内のECUとデータを送受信するECU側送受信手段と、
前記データベース分配ノード間でデータを送受信する分配ノード側送受信手段と、
前記ECU側送受信手段と分配ノード側送受信手段からの受信データを記録するデータベースを有する処理部と、
を備え、
前記処理部は、前記受信データにより更新される更新データと、該更新データの更新後からの時間を示す加齢データ、当該更新データの有効期限を示す寿命データを前記データベースに記録し、該寿命データと前記加齢データとを比較して、データ更新後から所定時間経過後に、更新データの送信要求を前記ECUに送信し、あるいは/および前記データベースの更新データを抹消する構成としていることを特徴とする車載データベースシステムを提供している。
In order to solve the above problems, the present invention provides:
A database distribution node provided for each of a plurality of groups;
One or more ECUs provided in each group;
A transmission path for sequentially connecting the database distribution nodes;
In-vehicle LAN having
Each of the database distribution nodes is
ECU side transmission / reception means for transmitting / receiving data to / from the ECU in the group;
Distribution node side transmission / reception means for transmitting / receiving data between the database distribution nodes;
A processing unit having a database for recording received data from the ECU side transmitting / receiving means and the distribution node side transmitting / receiving means;
With
The processing unit records in the database update data updated by the received data, aging data indicating a time after update of the update data, and lifetime data indicating an expiration date of the update data, and the lifetime The data is compared with the aging data, and after a predetermined time elapses after the data update, the update data transmission request is transmitted to the ECU, and / or the update data in the database is deleted. An in-vehicle database system is provided.

前記のように、本発明では、多数のECUを複数に群分けし、これら群毎にデータベースを備えたデータベース分配ノードを設けている。各群内のECUが送信するデータをデータベースに記録し、該データベースに記録した更新データを他のデータベース分配ノードに送信して、他のデータベース分配ノードにおいても必要な更新データをそのデータベースに記録させて、更新データを共有化させている。   As described above, in the present invention, a large number of ECUs are divided into a plurality of groups, and a database distribution node including a database is provided for each group. The data transmitted by the ECUs in each group is recorded in a database, the update data recorded in the database is transmitted to other database distribution nodes, and the necessary update data is also recorded in the database at other database distribution nodes. Update data is shared.

前記データベースには、更新データ、その更新データの加齢データ、該更新データの寿命データとを記録しているため、加齢データと寿命データとを比較して、寿命データに近付くと、ECUに新しいデータを要求しあるいは/および寿命のつきて有効性が失われた更新データを抹消することで、各更新データが最新の状態を保つように管理することができる。
よって、古い更新データを他のデータベース分配ノードに送信するために無駄な通信を行うことを防止できる。
Since the update data, the aging data of the update data, and the lifetime data of the update data are recorded in the database, the aging data and the lifetime data are compared, and when approaching the lifetime data, the ECU By requesting new data and / or erasing update data whose validity has been lost over the lifetime, each update data can be managed so as to be kept up-to-date.
Therefore, it is possible to prevent useless communication for transmitting old update data to another database distribution node.

前記加齢データは前回のデータ更新時からの時間(年齢)を表しており、例えば、各車載データベース分配ノード間で更新データの更新を行う毎に、全ての更新データに関係づけられた加齢データに1をカウントすることにより求められる。このようにして求められた加齢データを用いれば、各更新データの更新時点からの経過時間を容易に求めることができる。なお、加齢データはその更新時点を示す時刻情報であってもよい。この場合、更新データの更新時に加齢データを書き換えなくても、現在の時刻情報から加齢データを減算することにより、当該更新データの更新からの経過時間を求めることができる。   The aging data represents the time (age) since the last data update. For example, every time the update data is updated between the in-vehicle database distribution nodes, the aging data is related to all the update data. It is obtained by counting 1 in the data. By using the aging data obtained in this way, the elapsed time from the update point of each update data can be easily obtained. The aging data may be time information indicating the update time. In this case, even if the aging data is not rewritten when updating the update data, the elapsed time from the update of the update data can be obtained by subtracting the aging data from the current time information.

前記のように、処理部はデータベースの各更新データが前記寿命データと加齢データの比較によって有効期限が近づいたことを検出して、更新データの送信要求データをECUに送信している。ECUが送信要求データの受信に伴って最新のデータを送信する機能を有する場合には、車載データベース分配ノードは、ECUから受信するデータを用いることでデータベース内の更新データを最新の更新データとすることができる。
また、有効期限が近づいた更新データを抹消してもよい。抹消することで、有効でない更新データを他のデータベース分配ノードあるいは接続した他のECUに送信することで、ECUが誤動作を起こすことを防止すると共に、無駄な通信を防止できる。
前記有効期限が近付いた更新データの抹消を行うと共に、該データを送信するECUへの送信要求との両方を行うことが最も好ましい。
As described above, the processing unit detects that each update data in the database is approaching the expiration date by comparing the life data and the aging data, and transmits update data transmission request data to the ECU. When the ECU has a function of transmitting the latest data with the reception of the transmission request data, the in-vehicle database distribution node uses the data received from the ECU as the update data in the database. be able to.
In addition, update data whose expiration date is approaching may be deleted. By deleting the invalid update data to other database distribution nodes or other connected ECUs, it is possible to prevent the ECU from malfunctioning and to prevent unnecessary communication.
It is most preferable to delete the update data that has approached the expiration date and perform both a transmission request to the ECU that transmits the data.

前記処理部は、前記データベースの各更新データにその送信状態を示す送信完了データを加えて記録し、前記ECUから更新データを受信した時に前記データベース内の更新データを更新すると共に前記加齢データおよび前記送信完了フラグをリセットし、後に前記データベース内の前記送信完了フラグがリセット状態である更新データを他のデータベース分配ノードに送信して当該更新データの前記送信完了フラグをセットするように構成してあることが好ましい。
前記構成とすると、他のデータベース分配ノードに送信が完了すれば、送信完了フラグをセットするので、同じ更新データが重複して送信されることを防止できる。
The processing unit adds and records transmission completion data indicating a transmission state to each update data of the database, and updates the update data in the database when the update data is received from the ECU and the aging data and The transmission completion flag is reset, and update data in which the transmission completion flag in the database is reset is transmitted to another database distribution node and the transmission completion flag of the update data is set. Preferably there is.
With the above configuration, the transmission completion flag is set when transmission to another database distribution node is completed, so that the same update data can be prevented from being transmitted repeatedly.

さらに、前記処理部は、前記ECUから受信したデータを前記データベースに記録する前に一時的に記録するバッファを有し、
前記バッファから前記データを前記データベースに送信して更新データとして書き換えて記録すると同時に、記録した更新データを前記分配ノード側送受信手段から他のデータベース分配ノードに送信する構成としていることが好ましい。
前記構成とすると、全てのデータベース分配ノード内のデータベースに対して更新データを更新する時点を同期させることができるので、各データベース分配ノードは更新データを等しく共有することができる。
Further, the processing unit has a buffer for temporarily recording the data received from the ECU before recording the data in the database,
It is preferable that the data is transmitted from the buffer to the database and rewritten and recorded as update data, and at the same time, the recorded update data is transmitted from the distribution node side transmission / reception means to another database distribution node.
With the above configuration, the update data can be synchronized with respect to the databases in all the database distribution nodes, so that each database distribution node can share the update data equally.

また、本発明は、
ECUと接続されてデータの送受信を行うECU側送受信手段と、
前記ECU送受信手段から受信するデータで更新された更新データと、更新後からの時間を示す加齢データと、当該更新データの有効期限を示す寿命データを前記データベースに記録し、前記寿命データと前記加齢データとを比較して、データ更新後から所定時間経過後に、更新データの送信要求を前記ECUに送信し、あるいは/および前記データベースの更新データを抹消処理する処理部と、
を備えていることを特徴とする車載用のデータベース分配ノードを提供している。
The present invention also provides:
ECU side transmitting / receiving means connected to the ECU for transmitting and receiving data;
Update data updated with data received from the ECU transmission / reception means, aging data indicating the time after the update, and lifetime data indicating the expiration date of the update data are recorded in the database, the lifetime data and the A processing unit that compares the aging data, transmits a request for transmission of update data to the ECU, or / and deletes the update data of the database after a predetermined time has elapsed since the data update,
An in-vehicle database distribution node is provided.

前記データベース分配ノードによれば、複数のECUと接続して、1つのECUから受信するデータを他のECUへ送信して、該ECUにより動作制御を行わせる場合において、該ECUへ送信するデータを最新データに管理しておくことで、ECUの誤動作の発生を防止することができる。   According to the database distribution node, when the ECU is connected to a plurality of ECUs, data received from one ECU is transmitted to another ECU, and operation control is performed by the ECU, the data transmitted to the ECU is transmitted. By managing the latest data, it is possible to prevent the malfunction of the ECU.

さらに、前記データベース分配ノードに、他のデータベース分配ノードとの間に前記データベースで記録したデータを送受信する分配ノード側送受信手段を設けると、ECUと接続したデータベース分配ノードを備えた群を複数設けた場合に、各群のデータベース分配ノードのデータベースに記録される更新データを最新データとなるように管理することができる。   Further, when the distribution node side transmission / reception means for transmitting / receiving data recorded in the database to / from another database distribution node is provided in the database distribution node, a plurality of groups having database distribution nodes connected to the ECU are provided. In this case, the update data recorded in the database of each group of database distribution nodes can be managed to be the latest data.

前述したように、第一の発明によれば、データベースに登録されたデータのうち、寿命をきた古いデータは新たなデータに更新され、あるいは/および抹消する構成としているので、データベースに古いデータが記録されることはなく、新たなデータのみが記録される。この最新の更新データを他の群のデータベース分配ノードに送信しているため、役立たないデータを送信することによる送信の無駄、送信負荷率の増加を防止できる。かつ、複数群のデータベース分配ノードのデータベースに登録されるデータを常に最新のデータとして共有化させることができる。   As described above, according to the first invention, among the data registered in the database, old data that has reached the end of its life is updated to new data and / or deleted, so that old data is stored in the database. Only new data is recorded without being recorded. Since the latest update data is transmitted to another group of database distribution nodes, it is possible to prevent transmission waste and increase in transmission load factor due to transmission of useless data. In addition, the data registered in the database of the plurality of groups of database distribution nodes can always be shared as the latest data.

図1は本発明の第一実施例に係る車載データベースシステム1の構成を示す図である。
図1中において、2a〜2hは車両の各部に配置されたECU(以下、各ECU2a,2b…を区別する必要がないときはECU2と称す)で、2a〜2cが第1群A、2d〜2fが第2群B、2gと2hが第3群Cとして、群分けしている。
前記各群A、B、Cにはそれぞれ1つのデータベース分配ノード4a、4b、4c(以下、各データベース分配ノード4a〜4cを区別する必要がない場合にデータベース分配ノード4と称す)を設けている。
FIG. 1 is a diagram showing the configuration of an in-vehicle database system 1 according to the first embodiment of the present invention.
In FIG. 1, 2a to 2h are ECUs (hereinafter referred to as ECUs 2 when there is no need to distinguish between the ECUs 2a, 2b...) Arranged in each part of the vehicle, and 2a to 2c are first groups A, 2d to 2a. 2f is a second group B, 2g and 2h are grouped as a third group C.
Each group A, B, C is provided with one database distribution node 4a, 4b, 4c (hereinafter referred to as database distribution node 4 when it is not necessary to distinguish each database distribution node 4a-4c). .

前記データベース分配ノード4aはECU2a〜2cと夫々、CANに準拠するLANのバス(以下、CANバスと称す)8によって接続している。同様にデータベース分配ノード4bはECU2d〜2fと夫々CANバス8を介して接続し、データベース分配ノード4cはECU2g、2hと夫々CANバス8を介して接続している。
前記データベース分配ノード4a、4b、4cはLANからなる伝送路5a、5b、5c(以下、まとめて伝送路5と称す)を介して順次接続され、LAN9を構成している。
The database distribution node 4a is connected to the ECUs 2a to 2c by a LAN bus (hereinafter referred to as a CAN bus) 8 that conforms to CAN. Similarly, the database distribution node 4b is connected to the ECUs 2d to 2f via the CAN bus 8, and the database distribution node 4c is connected to the ECUs 2g and 2h via the CAN bus 8, respectively.
The database distribution nodes 4a, 4b, and 4c are sequentially connected via LAN transmission lines 5a, 5b, and 5c (hereinafter collectively referred to as transmission lines 5) to constitute a LAN 9.

前記各ECU2a〜2hには、車両状態や各種物理量の測定値などの更新データDa,Db…を検出してECUへ出力するセンサ6a〜6gを接続している。(以下、区別する必要がない場合には、単にセンサ6、更新データDと称す。)   Sensors 6a to 6g that detect update data Da, Db... Such as vehicle state and measured values of various physical quantities and output the ECU to the ECUs 2a to 2h are connected. (Hereinafter, when there is no need to distinguish, they are simply referred to as sensor 6 and update data D.)

前記各データベース分配ノード4は複数のECUに接続すると共に、前記伝送路5を介して他のデータベース分配ノード4に接続し、データベース分配ノード間およびECUとの間で各種更新データを高速に送受信するハブの役割を果たすものとしている。   Each database distribution node 4 is connected to a plurality of ECUs, and is connected to another database distribution node 4 via the transmission path 5 to transmit and receive various update data between the database distribution nodes and between the ECUs at high speed. It is supposed to act as a hub.

各データベース分配ノード4は、図1に示すように、処理部13と、処理部13と前記ECU2との間で更新データを送受信するECU側送受信手段を構成するCAN通信手段11と、処理部13と他のデータベース分配ノード4の処理部との間で前記伝送路5を介して更新データを送受信する分配ノード側送受信手段を構成するイーサネット通信手段12を備え、処理部13は、データベース7を備える記録手段21と、出力タイミング設定手段22と、データ出力手段23と、データベース更新手段24を備えている。
記録手段21とCAN通信手段11とは、データ出力手段23と出力タイミング設定手段22を介して接続している。また、記録手段21とイーサネット通信手段12とはデータベース更新手段24を介して接続している。
なお、図1中では、データベース分配ノード4aのみに、前記記録手段21等を記載しているが、他のデータベース分配ノード4b、4cにも備えられている。
As shown in FIG. 1, each database distribution node 4 includes a processing unit 13, a CAN communication unit 11 that constitutes an ECU-side transmission / reception unit that transmits and receives update data between the processing unit 13 and the ECU 2, and a processing unit 13. Ethernet communication means 12 constituting distribution node side transmission / reception means for transmitting / receiving update data via the transmission line 5 between the communication section and the processing section of another database distribution node 4, and the processing section 13 includes the database 7. A recording unit 21, an output timing setting unit 22, a data output unit 23, and a database update unit 24 are provided.
The recording means 21 and the CAN communication means 11 are connected via the data output means 23 and the output timing setting means 22. The recording means 21 and the Ethernet communication means 12 are connected via a database update means 24.
In FIG. 1, the recording means 21 and the like are described only in the database distribution node 4a, but other database distribution nodes 4b and 4c are also provided.

前記イーサネット通信手段12のポート12a、12bに接続する伝送路5a、5b、5cからなるLAN9として、本実施形態では、高速通信が可能な規格に準拠するイーサネット(登録商標)を用いている。
LAN9はイーサネットに準拠する単一セグメントの車載LANを構成するものであるため、ゲートウェイなどを介在させる必要がなく、その分、遅延時間を短くすることができる。
なお、LAN9は、光通信を利用したMOST,D2B、IDb1394やIEEE1394(登録商標)などに準拠して通信を行うもの、さらには、工業用LAN、FlexRayを用いて形成してもよい。
In this embodiment, Ethernet (registered trademark) conforming to a standard capable of high-speed communication is used as the LAN 9 including the transmission paths 5a, 5b, and 5c connected to the ports 12a and 12b of the Ethernet communication unit 12.
Since the LAN 9 constitutes a single-segment vehicle-mounted LAN conforming to Ethernet, there is no need to intervene a gateway or the like, and the delay time can be shortened accordingly.
Note that the LAN 9 may be formed using an optical LAN for communication based on MOST, D2B, IDb1394, IEEE1394 (registered trademark), or the like, or an industrial LAN or FlexRay.

前記3つのデータベース分配ノード4においては、4aと4bを伝送路5aを介して接続し、4bと4cを伝送路5bを介して接続し、4cと4aとを伝送路5cを介して接続し、3つのデータベース分配ノード4a〜4cリング状に接続している。
具体的には、データベース分配ノード4a内にあるイーサネット通信手段12のポート12aを伝送路5aによりデータベース分配ノード4b内にあるイーサネット通信手段12のポート12bに接続している。データベース分配ノード4bのポート12aを伝送路5bによりデータベース分配ノード4cのポート12bに接続している。さらに、データベース分配ノード4cのポート12aを伝送路5cでデータベース分配ノード4aのポート12bに接続して、リング状接続としている。
In the three database distribution nodes 4, 4a and 4b are connected via a transmission line 5a, 4b and 4c are connected via a transmission line 5b, 4c and 4a are connected via a transmission line 5c, Three database distribution nodes 4a to 4c are connected in a ring shape.
Specifically, the port 12a of the Ethernet communication means 12 in the database distribution node 4a is connected to the port 12b of the Ethernet communication means 12 in the database distribution node 4b by the transmission path 5a. The port 12a of the database distribution node 4b is connected to the port 12b of the database distribution node 4c by the transmission line 5b. Further, the port 12a of the database distribution node 4c is connected to the port 12b of the database distribution node 4a through the transmission line 5c to form a ring connection.

前記各伝送路5a、5b、5cはそれぞれ2本ずつ設けて、データベース分配ノード4間に接続している。
本実施形態では、伝送路5cは伝送路5a、5bに障害が発生した場合の予備線としており、よって、リング状接続としているが、実際には、伝送路5a、5bとを用いたデイジーチェーン状の接続として用いている。即ち、伝送路5aの1本5a−1と伝送路5bの1本5b−1は往路用とし、伝送路5bの他の1本5b−2と伝送路5aの他の1本5a−2を復路用として用いている。
Two transmission lines 5 a, 5 b, 5 c are provided and connected between the database distribution nodes 4.
In this embodiment, the transmission line 5c is a spare line when a failure occurs in the transmission lines 5a and 5b, and thus is a ring connection, but actually, a daisy chain using the transmission lines 5a and 5b. It is used as a connection. That is, one line 5a-1 of the transmission line 5a and one line 5b-1 of the transmission line 5b are for the forward path, and another line 5b-2 of the transmission line 5b and another line 5a-2 of the transmission line 5a are connected. Used for return trips.

前記各データベース分配ノード4に設けるイーサネット通信手段12は、LAN9に直接的に接続されて電気信号のやりとりを行うインターフェース(図示省略)と、このインターフェースを用いてイーサネットに準拠した通信を制御する通信コントローラ(図示省略)とを含む。
イーサネット通信手段12は、インターフェースのコネクタ部分であるポート12a、ポート12bによりLAN9と接続され、各種更新データDの送受信を行う。ポート12a、ポート12bはそれぞれ送信部と受信部があり、全二重の通信を可能とするものである。なお、LAN9が光通信を行うものである場合に、車載LAN通信手段として光送受信ユニットを設けるなど、適宜に変形される。
The Ethernet communication means 12 provided in each of the database distribution nodes 4 includes an interface (not shown) that is directly connected to the LAN 9 and exchanges electrical signals, and a communication controller that controls communication based on Ethernet using this interface. (Not shown).
The Ethernet communication means 12 is connected to the LAN 9 through the port 12a and the port 12b which are interface connector parts, and transmits and receives various update data D. Each of the port 12a and the port 12b has a transmission unit and a reception unit, and enables full-duplex communication. In addition, when LAN9 is what performs optical communication, it changes suitably, such as providing an optical transmission / reception unit as a vehicle-mounted LAN communication means.

データベース分配ノード4に設けるECU側接続手段となる前記CAN通信手段11は、前記CANバス8を介してECU2と接続して各種更新データの入出力を行っている。
CANトランシーバやCANコントローラを有するものであるが、ECU2とデータベース分配ノード4との接続部にLINなどの車載LANを用いる場合には、入出力手段11としてLINに準拠する通信手段と通信コントローラが必要である。また、ECU2とデータベース分配ノード4との接続部に車載LANを用いない場合には、入出力手段としてのインターフェイスを形成することができる。この場合、ECU2はセンサ6側に設けられた更新データDの出力手段を構成する制御部である。
The CAN communication means 11 serving as an ECU side connection means provided in the database distribution node 4 is connected to the ECU 2 via the CAN bus 8 to input / output various update data.
Although it has a CAN transceiver and a CAN controller, when an in-vehicle LAN such as LIN is used as a connection part between the ECU 2 and the database distribution node 4, a communication means and a communication controller compliant with LIN are required as the input / output means 11. It is. Further, when the in-vehicle LAN is not used for the connection part between the ECU 2 and the database distribution node 4, an interface as an input / output unit can be formed. In this case, ECU2 is a control part which comprises the output means of the update data D provided in the sensor 6 side.

また、データベース分配ノード4の記録手段12のデータベース7では、該データベース分配ノード4に接続したECUを介してセンサ6から得られる更新データDをデータ加工する事なく、そのまま記録している。   Further, in the database 7 of the recording means 12 of the database distribution node 4, the update data D obtained from the sensor 6 via the ECU connected to the database distribution node 4 is recorded as it is without being processed.

図2に示すように、データベース7には、少なくとも前記更新データDの識別情報ID(IDa,IDb…)と、これに対応する属性値データVDa,VDb…とが記録される。 かつ、前記LAN9を介して受信する他のデータベース分配ノード4の記録手段21に記録される更新データDのうち、当該データベース分配ノード4において、必要な更新データも記録されるようにしている。
なお、図2では、識別情報IDとして「車輪速」などを示しているが、実際には決まったビット数の値からなる識別情報IDであってもよい。同様に、属性値データVDa…として単位付きの数値を属性値データVDa…を例示しているが、データベース7に記録される属性値データVDa…に単位の情報が必ず含ませなければならないことを意味しているのではない。
As shown in FIG. 2, at least identification information ID (IDa, IDb...) Of the update data D and attribute value data VDa, VDb. Of the update data D recorded in the recording means 21 of the other database distribution node 4 received via the LAN 9, the database distribution node 4 also records necessary update data.
In FIG. 2, “wheel speed” or the like is shown as the identification information ID, but an identification information ID consisting of a predetermined number of bits may be used. Similarly, the attribute value data VDa... Is an example of the attribute value data VDa... But the attribute value data VDa... Recorded in the database 7 must include unit information. It doesn't mean.

前記記録手段21として、データ出力手段23によって読み書き可能に構成されたRAMを用い、バックアップ電源などを用いて電源供給が途絶えた状態でも記録内容を保持できるものとしている。なお、フラッシュメモリのように不揮発性を備えた書き換え可能な記録手段を用いてもよい。また、記録手段21内には、出力タイミング設定手段22によって設定され、データ出力手段23によって用いられる出力タイミング設定テーブルTa〜Tc(以下、区別が不要であるときは出力タイミング設定テーブルTという)がそれぞれ記録されている。   As the recording means 21, a RAM configured to be readable and writable by the data output means 23 is used, and the recorded contents can be held even when the power supply is interrupted using a backup power source or the like. Note that rewritable recording means having non-volatility such as a flash memory may be used. Also, in the recording means 21, there are output timing setting tables Ta to Tc (hereinafter referred to as an output timing setting table T when distinction is unnecessary) set by the output timing setting means 22 and used by the data output means 23. Each is recorded.

なお、本実施例では出力タイミング設定テーブルTが出力タイミング設定手段22によって動的に設定されるものであるから、この出力タイミング設定テーブルTを記録する記録手段21も書き換え可能である必要がある。しかしながら、この出力タイミング設定テーブルTは固定的に設定してあってもよい。この場合、テーブルTが記録されるメモリ12をROMにしてもよい。   In this embodiment, since the output timing setting table T is dynamically set by the output timing setting means 22, the recording means 21 for recording the output timing setting table T needs to be rewritable. However, this output timing setting table T may be fixedly set. In this case, the memory 12 in which the table T is recorded may be a ROM.

前記記録手段21に記録された更新データDをECU2側へ出力するデータ出力手段23は、記録手段12のデータベース7内の更新データDを読み書きし、更新データDを必要とするECU2に出力するものである。また、前記出力タイミング設定手段22はこの更新データDの出力タイミングを設定するものである。
データベース更新手段24はデータ出力手段23を介して更新データDの入力があった時に、対応する更新データを記録手段12のデータベース7に登録すると共に、更新データDを含むデータフレームをLAN9を介して隣接するデータベース分配ノード側に送信する一方、隣接するデータベース分配ノードから受信したデータフレームに含まれる他ノードの更新データDをデータベース7に登録する機能を有する。
The data output means 23 for outputting the update data D recorded in the recording means 21 to the ECU 2 side reads and writes the update data D in the database 7 of the recording means 12 and outputs it to the ECU 2 that requires the update data D. It is. The output timing setting means 22 sets the output timing of the update data D.
When the update data D is input via the data output means 23, the database update means 24 registers the corresponding update data in the database 7 of the recording means 12, and transmits a data frame including the update data D via the LAN 9. While transmitting to the adjacent database distribution node side, it has a function of registering in the database 7 update data D of other nodes included in the data frame received from the adjacent database distribution node.

以下に、前記構成からなる本発明の車載データベースシステム1における動作について概要を説明する。
まず、各ECU2には接続したセンサ6からの検出値が入力される。ECU2は受信した更新データDを自らが接続されたデータベース分配ノード4に送信する。各データベース分配ノード4は更新データDをデータベース7に記録する。
Below, an outline | summary is demonstrated about operation | movement in the vehicle-mounted database system 1 of this invention which consists of the said structure.
First, each ECU 2 receives a detection value from the connected sensor 6. The ECU 2 transmits the received update data D to the database distribution node 4 to which the ECU 2 is connected. Each database distribution node 4 records the update data D in the database 7.

各データベース分配ノード4はデータベース7に記録した更新データDをデータフレームに書き込みデータベース更新手段24で設定したタイミングで伝送路5に送信する。このデータフレームを最初に送信するデータベース分配ノード4をマスターノードとする。該マスターノードから送信するデータフレームを伝送路5を介して順次隣接するデータベース分配ノード4に巡回させ、各データベース分配ノード4において、そのデータベース7に新たに記録された更新データDをデータフレームに書き込む。この動作を最後のデータベース分配ノードとなるループバックノードまで行う。
このループバックノードにおいて更新データDをデータフレームに書き込むことにより、マスターノードからループバックノードへの伝送路5の往路で、データフレームは全てのデータベース分配ノード4のデータベース7に記録された更新データDが書き込まれた状態となる。
Each database distribution node 4 writes the update data D recorded in the database 7 to the data frame and transmits it to the transmission line 5 at the timing set by the database update means 24. The database distribution node 4 that transmits this data frame first is assumed to be a master node. The data frames transmitted from the master node are sequentially circulated to the adjacent database distribution nodes 4 via the transmission path 5, and the update data D newly recorded in the database 7 is written in the data frames in each database distribution node 4. . This operation is performed up to the loopback node as the last database distribution node.
By writing the update data D into the data frame in the loopback node, the data frame is recorded in the database 7 of all the database distribution nodes 4 on the forward path of the transmission path 5 from the master node to the loopback node. Is written.

ついで、ループバックノードからマスターノードへの復路において、全更新データが書き込まれたデータフレームは順次データベース分配ノードを巡回し、各データベース分配ノード4は、データフレームは全更新データDのうちから必要な更新データDを読み取っていく。
上記のデータフレーム巡回は所定の周期ごとに行われ、該周期を通信周期と呼ぶ。通信周期は、データフレーム巡回時間であるデータ通信スロットと待ち時間からなる。また、データ送信に失敗した場合に再送を行うこともある。
このようにして新たに取得した更新データDは、夫々データベース分配ノード4のデータベース7に記録され、該データベース分配ノード4に接続したECU2に予め設定したタイミングで更新データDを送信し、当該ECU2は更新データDに基づいて必要な制御を行う。
Next, in the return path from the loopback node to the master node, the data frames in which all the update data are written sequentially circulate through the database distribution nodes, and each database distribution node 4 requires the data frames from all the update data D. Read the update data D.
The above data frame circulation is performed every predetermined period, and this period is called a communication period. The communication cycle includes a data communication slot that is a data frame cycle time and a waiting time. In addition, retransmission may be performed when data transmission fails.
The update data D newly acquired in this way is recorded in the database 7 of the database distribution node 4, and the update data D is transmitted to the ECU 2 connected to the database distribution node 4 at a preset timing. Necessary control is performed based on the update data D.

以下、上記動作について詳述する。
まず、各ECU2には接続したセンサ6からの検出値が入力される。該検出値は更新データDとして、各ECU2により定まるタイミングでデータベース分配ノード4に送信される。データベース分配ノード4では、これらの更新データDを記録手段21のデータベース7に記録する。
Hereinafter, the operation will be described in detail.
First, each ECU 2 receives a detection value from the connected sensor 6. The detected value is transmitted as update data D to the database distribution node 4 at a timing determined by each ECU 2. In the database distribution node 4, these update data D are recorded in the database 7 of the recording means 21.

各データベース分配ノード4がECUから受信した更新データはデータベースに記録される。データベースのデータフォーマットを図3に示す。各更新データは、データID,送信元ノードID,寿命データを構成するライフタイム、加齢データを構成するエイジ、送信完了フラグ、データ長、データ本体からなる。   The update data received from the ECU by each database distribution node 4 is recorded in the database. The data format of the database is shown in FIG. Each update data includes a data ID, a transmission source node ID, a lifetime constituting life data, an age constituting aging data, a transmission completion flag, a data length, and a data body.

データIDは各ECUから発信される更新データごとに付される。例えば、ECUから受信する更新データが「回転数」である場合、この回転数の更新データのデータIDを「1」と数値で表してもよいし、「回転数」と文字で表してもよい。フィールド長は2バイトである。
送信元ノードIDは、更新データの送信元となるデータベース分配ノード4のノードIDである。フィールド長は2バイトである。
ライフタイムは更新データの属性値データ(例えば図2に示すように更新データが回転数であれば、属性値データは100rpmである。)がデータベースに登録されてからの寿命を表す。通信周期単位で数え、フィールド長は2バイトである。
The data ID is assigned for each update data transmitted from each ECU. For example, when the update data received from the ECU is “rotation speed”, the data ID of the update data of the rotation speed may be expressed as a numerical value “1” or may be expressed as “rotation speed”. . The field length is 2 bytes.
The transmission source node ID is the node ID of the database distribution node 4 that is the transmission source of the update data. The field length is 2 bytes.
The lifetime represents the lifetime after the attribute value data of the update data is registered in the database (for example, as shown in FIG. 2, if the update data is the rotational speed, the attribute value data is 100 rpm). Counted in communication cycle units, the field length is 2 bytes.

エイジはデータ更新後の経過期間であり、更新データの属性値データ(例えば図2に示すように更新データが回転数であれば、属性値データは100rpmである。)がデータベースに登録されてから現在までの時間を表す。通信周期単位で数えられ、新たな属性値データがデータベースに登録されるとエイジを0とし、通信周期が経過するたびに1増加させる。エイジがライフタイムに達したら、ECUから新たな属性値データの更新が必要であることを示す。エイジがライフタイムを超えた場合は、該属性値データは原則として使用しない。フィールド長は2バイトである。   Age is an elapsed period after data update, and after attribute value data of the update data (for example, if the update data is the rotational speed as shown in FIG. 2, the attribute value data is 100 rpm) is registered in the database. Represents time to date. Counted in communication cycle units, the age is set to 0 when new attribute value data is registered in the database, and is incremented by 1 every time the communication cycle elapses. When the age reaches the lifetime, it indicates that the ECU needs to update new attribute value data. If the age exceeds the lifetime, the attribute value data is not used in principle. The field length is 2 bytes.

送信完了フラグは自ノードにおいて更新した更新データを、他のデータベース分配ノード4に送信完了したことを示すフラグである。自ノードの更新データを更新したときに偽(0)にし、他ノードへの送信を完了したときに真(1)にする。自ノードの更新データにのみ有効であり、他のノードから送信されてデータベースに登録された更新データに対しては有効ではない。フィールド長は1ビットである。
データ本体長は属性値データ本体の長さである。フィールド長は2バイトである。
The transmission completion flag is a flag indicating that the update data updated in the own node has been transmitted to the other database distribution nodes 4. Set to false (0) when the update data of its own node is updated, and set to true (1) when transmission to another node is completed. It is valid only for update data of its own node, and is not valid for update data transmitted from other nodes and registered in the database. The field length is 1 bit.
The data body length is the length of the attribute value data body. The field length is 2 bytes.

ECUから受け取った更新データは、データフレームの通信周期の最初に、データベース分配ノード4によってデータベースに記録される。
更新データには、データベース分配ノード4が能動的に取得できるデータと、受動的にしか取得できないデータがある。能動的に取得できるデータは、データベース分配ノード4が自らに接続されたECUにリクエストして取得できる更新データであり、受動的にしか取得できない更新データとは、例えばデータベース分配ノード4がハブで支線のECUからデータ受信するような場合のデータである。
The update data received from the ECU is recorded in the database by the database distribution node 4 at the beginning of the data frame communication cycle.
The update data includes data that can be acquired actively by the database distribution node 4 and data that can only be acquired passively. The data that can be actively acquired is update data that the database distribution node 4 can request and acquire from the ECU connected to the database distribution node 4, and the update data that can only be acquired passively is, for example, a branch line in the database distribution node 4 at the hub. This is data when data is received from the ECU.

能動的に取得できる更新データについては、データベース分配ノード4はライフタイムとエイジの比較によって有効期限が近づいている場合に、各ECUに送信要求データを送信し、送信元ノードIDが自らを示す自ノードIDであって、エイジがライフタイム以上のデータについて、更新データ取得時に即座にデータベースのデータ本体を更新する。
受動的にしか取得できない更新データについては、データ取得時に即座にデータ本体を更新する場合と、取得時に一時的にバッファに記録しておき、バッファ内のデータを能動的に取得できるデータと同時に処理する場合がある。バッファ内のデータはデータベースに記録されると消去される。
データを更新後は、エイジを0とし、送信完了フラグを偽とする。
さらに、ライフタイムとエイジを比較し、有効期限を越えた更新データを抹消する。
なお、データベースのデータ本体の更新と、有効期限を越えた更新データの抹消は、何れか一方だけを行ってもよいが、両方行うことが最も好ましい。
For update data that can be actively acquired, the database distribution node 4 transmits transmission request data to each ECU when the expiration date is approaching by comparing the lifetime and the age, and the transmission source node ID indicates itself. The data body of the database is updated immediately when the update data is acquired for the data whose node ID is the age or more.
For update data that can only be acquired passively, the data body is updated immediately at the time of data acquisition, and temporarily recorded in a buffer at the time of acquisition, and the data in the buffer is processed simultaneously with the data that can be acquired actively There is a case. The data in the buffer is deleted when it is recorded in the database.
After updating the data, the age is set to 0 and the transmission completion flag is set to false.
Further, the lifetime and age are compared, and the update data that has expired is deleted.
It should be noted that although either one of the update of the data body of the database and the deletion of the update data exceeding the expiration date may be performed, it is most preferable to perform both.

次に、更新データの送受信について説明する。
上述したように、データベース分配ノード4aは自ノードに接続されたECU2aからの更新データDaをCAN通信手段11を介して受け取りメモリ12内のデータベース7に登録している。
データフレームの巡回について図4に説明する。
まず、データベース分配ノード4aはデータフレームD1を作成する。データベース更新手段24はデータフレームD1に送信元ノードIDが自ノードIDであり、エイジがライフタイム未満、送信完了フラグが偽の更新データDaについて、更新データのうちデータID、エイジ、データ本体をデータフレームD1に書き込む(以下、更新データの書込み、読み込みとは、データID,エイジ、データ本体を読み込み、書き込むことを言う)。
Next, transmission / reception of update data will be described.
As described above, the database distribution node 4 a receives the update data Da from the ECU 2 a connected to its own node via the CAN communication means 11 and registers it in the database 7 in the memory 12.
A data frame cycle will be described with reference to FIG.
First, the database distribution node 4a creates a data frame D1. The database update unit 24 uses the data ID, age, and data body of the update data for the update data Da whose source node ID is its own node ID in the data frame D1, the age is less than the lifetime, and the transmission completion flag is false. Writing to the frame D1 (hereinafter, writing and reading update data means reading and writing the data ID, age, and data body).

データフレームD1をイーサネット通信手段12のポート1からデータベース分配ノード4bに送信する。ここで、データベース分配ノード4aはマスターノードであり、データフレームをLAN9に投入、回収する。通常、マスターノードはLAN9で接続されるリング上にひとつだけ存在する。他のノードはスレーブノードと呼ぶ。   The data frame D1 is transmitted from the port 1 of the Ethernet communication means 12 to the database distribution node 4b. Here, the database distribution node 4a is a master node, and inputs and collects data frames to / from the LAN 9. Normally, only one master node exists on the ring connected by the LAN 9. The other nodes are called slave nodes.

データベース分配ノード4bは自ノードのイーサネット通信手段12のポート2を介してデータフレームD1を受け取り、自己のデータベース7に登録された更新データDdをデータフレームD1に追加し、データフレームD2とする。データベース分配ノード4bはデータフレームD2をデータベース分配ノード4cに送信する。   The database distribution node 4b receives the data frame D1 via the port 2 of the Ethernet communication means 12 of its own node, adds the update data Dd registered in its own database 7 to the data frame D1, and sets it as the data frame D2. The database distribution node 4b transmits the data frame D2 to the database distribution node 4c.

データベース分配ノード4cはデータフレームD2を受け取り、自己のデータベース7に登録された更新データDgをデータフレームD2に追加し、データフレームD3とする。その後、データベース分配ノード4cは他ノードの更新データDaとDdのうち、ECU6g、6hが必要としている更新データを読み込み、データベース7に登録する。データベース分配ノード4cはデータフレームD3をデータベース分配ノード4bに送信する。   The database distribution node 4c receives the data frame D2, adds the update data Dg registered in its own database 7 to the data frame D2, and forms a data frame D3. Thereafter, the database distribution node 4c reads the update data required by the ECUs 6g and 6h among the update data Da and Dd of the other nodes and registers them in the database 7. The database distribution node 4c transmits the data frame D3 to the database distribution node 4b.

ここで、データベース分配ノード4cはデータフレームを折り返して送信するループバックノードであり、正常時にはリング上にひとつだけ存在する。ループバックノードはマスターノードから他の全てのデータベース分配ノードを通って最も下流にあるデータベース分配ノードである。   Here, the database distribution node 4c is a loopback node that loops back and transmits the data frame, and there is only one on the ring when it is normal. The loopback node is the most downstream database distribution node from the master node through all other database distribution nodes.

データベース分配ノード4bはデータフレームD3を受け取り、他ノードの更新データDaとDgのうち必要な更新データを読み取りデータベース7に登録する。その後、データフレームD3をデータベース分配ノード4aに送信する。
データベース分配ノード4aはデータフレームD3を受け取り、他ノードの更新データDdとDgのうち必要な読み取りデータベース7に登録する。
The database distribution node 4b receives the data frame D3, reads necessary update data among the update data Da and Dg of other nodes, and registers them in the database 7. Thereafter, the data frame D3 is transmitted to the database distribution node 4a.
The database distribution node 4a receives the data frame D3 and registers it in the necessary reading database 7 among the update data Dd and Dg of other nodes.

上記のように、マスターノードであるデータベース分配ノード4aがデータフレームをLAN9に投入すると、各データベース分配ノード4は、往路では4a→4b→4cの順(順方向とする)にデータフレームを送信し更新データを書き込んでいく。ループバックノードであるデータベース分配ノード4cで折り返し、復路(逆方向)では、各ノードは自らが書き込んだ更新データ以外の更新データを読み込む。なお、本実施例では各ノードが書き込む更新データは各ノードごとに更新データDa,Dd,Dgと一つずつであったが、書き込む更新データは複数であっても良い。
このように更新データが各データベース分配ノード4間を巡回することで、各データベース分配ノード4のデータベース7が更新され、更新データが共有される。
As described above, when the database distribution node 4a as the master node inputs a data frame to the LAN 9, each database distribution node 4 transmits the data frame in the order of 4a → 4b → 4c (the forward direction) on the forward path. Write update data. Returning at the database distribution node 4c, which is a loopback node, in the return path (reverse direction), each node reads update data other than the update data written by itself. In this embodiment, the update data written by each node is one update data Da, Dd, and Dg for each node. However, a plurality of update data may be written.
As the update data circulates between the database distribution nodes 4 in this way, the database 7 of each database distribution node 4 is updated and the update data is shared.

このようなデータフレームの巡回は通信周期ごとに行われる。データフレームが巡回している間は各ノードのデータベースの更新は完了していないので更新データは共有されていないが、巡回後、次のデータフレーム巡回までの間は各ノードのデータベースは同じ更新データを有しており、更新データを共有している。
なお、データフレームの送信に失敗すると再送されるが、予め設定した最大再送回数まで再送しなかったデータ、即ち送信が成功したデータについては、送信完了フラグを真とする。また、エイジは通信周期で数えられるので、更新データ通信終了時に、データベースに記録されている全データについてエイジに1を加える。エイジがライフタイムを超えるデータは、他のデータベース分配ノードに送信すべき新たなデータではないため、原則として使用しない。
Such a data frame cycle is performed every communication cycle. While the update of the database of each node is not completed while the data frame is circulating, the update data is not shared, but the database of each node is the same update data until the next data frame circulation after the cycle. And share update data.
Note that if data frame transmission fails, it is retransmitted. However, for data that has not been retransmitted up to a preset maximum number of retransmissions, that is, data that has been successfully transmitted, the transmission completion flag is set to true. Further, since the age is counted in the communication cycle, 1 is added to the age for all data recorded in the database at the end of the update data communication. Data whose age exceeds the lifetime is not used in principle because it is not new data to be transmitted to other database distribution nodes.

なお、本実施例ではデータベース分配ノード4cがループバックノードであったが、4bがループバックノードでもよい。この場合はデータベース分配ノード4a→4c→4bの順にデータフレームが巡回する。   In this embodiment, the database distribution node 4c is a loopback node, but 4b may be a loopback node. In this case, the data frame circulates in the order of the database distribution nodes 4a → 4c → 4b.

次に、各データベース分配ノード4がデータフレームに自ノードの更新データを追加する方法について説明する。
図5は例としてデータベース分配ノード4aが更新データを追加する場合の詳細な説明図である。
データベース分配ノード4aのデータベース7には、各ノードのECUから供給された更新データが登録されている。そのうち自ノード4aのECUから得た更新データDa、Db,Dcのうち、更新データDa,Dbが新たに更新されたものであるとすると、データベース分配ノード4aはデータフレームD1に更新データDaとDbを書き込む。
Next, a method in which each database distribution node 4 adds its own update data to the data frame will be described.
FIG. 5 is a detailed explanatory diagram when the database distribution node 4a adds update data as an example.
Update data supplied from the ECU of each node is registered in the database 7 of the database distribution node 4a. Of the update data Da, Db, Dc obtained from the ECU of the own node 4a, if the update data Da, Db is newly updated, the database distribution node 4a adds the update data Da, Db to the data frame D1. Write.

ここで、データフレームのフォーマットについて説明すると、データフレームはヘッダ部と属性値データ部からなる。ヘッダ部はデータ非依存部、データ数、データID,データ長、予約フラグからなり、属性値データ部は属性値データからなる。   Here, the format of the data frame will be described. The data frame includes a header part and an attribute value data part. The header part is composed of a data independent part, the number of data, the data ID, the data length, and the reservation flag, and the attribute value data part is composed of attribute value data.

したがって、データフレームD1のヘッダ部には、データ非依存部とデータ数と更新データDa,DbそれぞれのデータID,データ長、予約フラグを書き込む。ヘッダ部の後の属性値データ部には更新データDa,Dbそれぞれの属性値データを書き込む。このデータフレームD1がイーサネット通信手段12のポート1からデータベース分配ノード4bに送信される。 Therefore, the data independent part, the number of data, the data ID of each of the update data Da and Db, the data length, and the reservation flag are written in the header part of the data frame D1. The attribute value data of the update data Da and Db is written in the attribute value data part after the header part. This data frame D1 is transmitted from the port 1 of the Ethernet communication means 12 to the database distribution node 4b.

データベース分配ノード4bに接続されたECUから得た更新データDd、De、Dfのうち、更新データDd,Deが新たに更新されたものであるとすると、データベース分配ノード4bはデータフレームD1を受け取った後更新データDd,DeをデータフレームD1に書き込む。データフレームD1のヘッダ部に、更新データDd,DeそれぞれのデータID,データ長、予約フラグを書き込み、属性値データ部には更新データDd,Deの属性値データを書き込む。このようにして更新データDd,Deが書き込まれた新たなデータフレームをデータフレームD2とする。   Of the update data Dd, De, and Df obtained from the ECU connected to the database distribution node 4b, if the update data Dd and De are newly updated, the database distribution node 4b receives the data frame D1. The post-update data Dd and De are written in the data frame D1. The data ID, data length, and reservation flag of the update data Dd and De are written in the header portion of the data frame D1, and the attribute value data of the update data Dd and De are written in the attribute value data portion. A new data frame in which the update data Dd and De are written in this way is defined as a data frame D2.

データベース分配ノード4cにおいても同様に、データフレームD2に新たに更新されたDgの更新データを書き込み、データフレームD3とする。データフレームD3には更新データDa、Db、Dd,De、Dgが書き込まれる。
ループバックノードであるデータベース分配ノード4cにおいて、データフレームD3は折り返し逆方向に送信され、各ノードは宛先が自ノードとなっている他ノードの更新データをデータフレームD3から読み込む。
Similarly, in the database distribution node 4c, the updated data of Dg that is newly updated is written in the data frame D2 to be a data frame D3. Update data Da, Db, Dd, De, and Dg are written in the data frame D3.
In the database distribution node 4c which is a loopback node, the data frame D3 is transmitted in the reverse direction, and each node reads update data of the other node whose destination is the own node from the data frame D3.

図6はデータフレームが各データベース分配ノード4を巡回する時間について説明している。LAN9の伝送路5a、5b、5cは二本の伝送路からなり、全二重方式での送信を行なう。
データベース分配ノード4aのイーサネット通信手段12のポート1からデータフレームD1が送信されると、データベース分配ノード4bのポート2において受信する。これら送信と受信はほぼ同時に行なわれる。
FIG. 6 explains the time for the data frame to circulate through each database distribution node 4. The transmission lines 5a, 5b, and 5c of the LAN 9 are composed of two transmission lines and perform transmission in a full duplex system.
When the data frame D1 is transmitted from the port 1 of the Ethernet communication means 12 of the database distribution node 4a, it is received at the port 2 of the database distribution node 4b. These transmission and reception are performed almost simultaneously.

データベース分配ノード4bではバッファにデータフレームD1を保存するが、バッファリングするデータ長(バッファリング長)を超えたとき、新たにポート1から自ノードの更新データDd,Deを書き込んだデータフレームD2の送信を開始する。本実施例においてはヘッダ部のデータ非依存部のデータ長がバッファリング長であり、データ非依存部を受信するとデータフレームD2の送信を開始する。図5に示すようにデータフレームD2の送信を開始する時刻t1は、データフレームD1が送信された時刻を基準時刻t=0とすると、バイトタイムT1(LANを介し1バイト受信するのに必要な時間)にデータフレームのバッファリング長B1を乗じた時刻となる。   In the database distribution node 4b, the data frame D1 is stored in the buffer. When the data length to be buffered (buffering length) is exceeded, the update data Dd and De of the own node are newly written from the port 1 of the data frame D2 Start sending. In this embodiment, the data length of the data-independent portion of the header portion is the buffering length, and when the data-independent portion is received, transmission of the data frame D2 is started. As shown in FIG. 5, the time t1 at which the transmission of the data frame D2 is started is the byte time T1 (necessary for receiving 1 byte via the LAN, assuming that the time at which the data frame D1 is transmitted is the reference time t = 0. Time) is multiplied by the data frame buffering length B1.

データベース分配ノード4cはデータフレームD2をバッファリングし、データベース分配ノード4bと同様にデータフレームD2のうちヘッダ部のデータ非依存部を受け取ったとき、自ノードの更新データDgを書き込んだデータフレームD3をデータベース分配ノード4cのポート2からデータベース分配ノード4bに向かって送信する。各データベース分配ノードで往路のバッファリング長が一定だとすると、送信開始時刻t2は、バイトタイムT1にデータフレームの往路のバッファリング長B1を乗じた時間の2倍が経過した時刻となる。   The database distribution node 4c buffers the data frame D2, and when the data independent part of the header portion of the data frame D2 is received in the same manner as the database distribution node 4b, the data frame D3 in which the update data Dg of its own node is written is received. The data is transmitted from the port 2 of the database distribution node 4c toward the database distribution node 4b. Assuming that the forward buffering length is constant in each database distribution node, the transmission start time t2 is the time when twice the time obtained by multiplying the byte time T1 by the forward buffering length B1 of the data frame has elapsed.

なお、データベース分配ノード4cではデータベース分配ノード4bからのデータフレームD2の受信とデータベース分配ノード4bへのデータフレームD3への送信を同時に行なっている。データフレームはデータベース分配ノード4cで折り返すことになるが、ポートにはそれぞれ二本の送信線があるので、データベース分配ノード4cはデータフレームの受信と送信を同時に行なうことができる。   The database distribution node 4c simultaneously receives the data frame D2 from the database distribution node 4b and transmits the data frame D3 to the database distribution node 4b. The data frame is turned back at the database distribution node 4c, but each port has two transmission lines, so the database distribution node 4c can simultaneously receive and transmit the data frame.

データベース分配ノード4bはデータフレームD3を送信とほぼ同時に受け取る。順方向である往路の送信時と同様に、逆方向である復路でのデータフレーム送信時にもデータフレームをバッファに保存する。バッファリングするデータ長は往路と復路で別々に設定されており、復路のバッファリングするデータ長B2を超えたとき、ポート2からデータベース分配ノード4aにデータフレームD3を送信する。データベース分配ノード4aでは送信とほぼ同時にデータフレームD3を受け取る。データベース分配ノード4bがデータベース分配ノード4cに送信を始める時刻t3は、(データフレームの往路のバッファリング長B1×2+データフレームの復路のバッファリング長B2)×バイトタイムT1となる。   The database distribution node 4b receives the data frame D3 almost simultaneously with transmission. Similar to the forward transmission in the forward direction, the data frame is stored in the buffer when the data frame is transmitted in the backward return. The data length to be buffered is set separately for the forward path and the return path, and when the data length B2 for buffering on the return path is exceeded, the data frame D3 is transmitted from the port 2 to the database distribution node 4a. The database distribution node 4a receives the data frame D3 almost simultaneously with transmission. The time t3 at which the database distribution node 4b starts transmission to the database distribution node 4c is (data frame forward path buffering length B1 × 2 + data frame return path buffering length B2) × byte time T1.

さらに、マスターノードであるデータベース分配ノード4aがデータフレームをLANに送信してからデータベース分配ノード4aが再びデータフレームを受信するまでの時刻t4は、t3+データフレーム最大長B3×バイトタイムT1となる。   Furthermore, the time t4 from when the database distribution node 4a as the master node transmits a data frame to the LAN until the database distribution node 4a receives the data frame again is t3 + data frame maximum length B3 × byte time T1.

したがって、データフレーム最大巡回時間T(データフレームが1回の巡回に要する時間)は、((ノード数―1)×往路のバッファリング長B1+(ノード数―2)×復路のバッファリング長B2+データフレーム最大長B3)×バイトタイムT1となる。   Therefore, the maximum data frame cyclic time T (time required for one data frame cycle) is ((number of nodes−1) × outbound buffering length B1 + (number of nodes−2) × returned buffering length B2 + data). Maximum frame length B3) × byte time T1.

第一実施例では伝送路5a〜5cがそれぞれ2本ずつ、例えば伝送路5aとして5a―1、5a−2が接続されており、二本の伝送路一方を順方向、他方を逆方向にデータフレームを巡回させている。
一方、伝送路5a〜5cが一本ずつの場合は、各ポートが送受信部を有し一本の伝送路5a、5bを送受信に用いる半二重方式でデータフレームを巡回させることができる。半二重方式の時間の経過を図7に示す。半二重方式は全二重方式と異なり伝送路が一本である。このため、ノード4cにおいて、更新データの受信と送信を同時に行なうことはできず、ノード4bからのデータフレームD2をすべて受信してからノード4bへのデータフレームD3への送信を行なう。このため、時刻t1は全二重方式と同じであるが、ノード4cからノード4bへの送信時刻t2は、(データフレームの往路のバッファリング長B1+データフレーム最大長B3)×バイトタイムT1となる。
In the first embodiment, there are two transmission lines 5a to 5c, for example, 5a-1 and 5a-2 are connected as the transmission line 5a, and data is transmitted in the forward direction on one of the two transmission lines and in the reverse direction on the other. The frame is circulated.
On the other hand, when the transmission lines 5a to 5c are one by one, the data frame can be circulated by a half-duplex method in which each port has a transmission / reception unit and one transmission line 5a, 5b is used for transmission / reception. The time course of the half-duplex method is shown in FIG. Unlike the full-duplex method, the half-duplex method has one transmission line. For this reason, the node 4c cannot receive and transmit the update data at the same time, and receives all the data frames D2 from the node 4b and then transmits the data frames D3 to the node 4b. For this reason, the time t1 is the same as the full-duplex method, but the transmission time t2 from the node 4c to the node 4b is (data frame forward buffering length B1 + data frame maximum length B3) × byte time T1. .

さらに、ノード4bからノード4cへのデータフレームの送信開始時刻t3は、(往路のバッファリング長B1+復路のバッファリング長B2+データフレーム最大長B3)×バイトタイムT1となる。マスターノードであるデータベース分配ノード4aがデータフレームをLANに送信してからデータベース分配ノード4aが再びデータフレームを受信するまでの時刻t4は、t3+データフレーム最大長B3×バイトタイムT1となる。   Further, the transmission start time t3 of the data frame from the node 4b to the node 4c is (outbound buffering length B1 + returning buffering length B2 + data frame maximum length B3) × byte time T1. The time t4 from when the database distribution node 4a as the master node transmits the data frame to the LAN until the database distribution node 4a receives the data frame again is t3 + data frame maximum length B3 × byte time T1.

したがって、データフレーム最大巡回時間T(データフレームが1回の巡回に要する時間)は、((ノード数―2)×往路のバッファリング長B1+(ノード数―2)×復路のバッファリング長B2+データフレーム最大長B3×2)×バイトタイムT1となる。
全二重方式に比べ、一本の伝送路の伝送方向を交互に切り替えるため、送信に時間がかかる欠点はあるが、伝送路が一本のため構成が簡単である。
Therefore, the maximum data frame cyclic time T (time required for one data frame cycle) is ((number of nodes−2) × outbound buffering length B1 + (number of nodes−2) × returned buffering length B2 + data. The maximum frame length B3 × 2) × byte time T1.
Compared to the full-duplex method, the transmission direction of one transmission path is alternately switched, so there is a drawback that it takes time to transmit, but the configuration is simple because there is only one transmission path.

各データベース分配ノード4では、データフレームのエラー検出・訂正を行っている。データフレームのエラー検出・訂正は、データフレームを(1)ヘッダのデータ非依存部、(2)ヘッダのデータ数、(3)ヘッダのデータ毎のデータID,データ長の組、(4)属性値データ(データID,データ長を除く部分)毎、の各ブロックに分け、ブロック毎に行なう。データID,データ長はヘッダ部に置かれ、属性値データ部からは分離されている。   Each database distribution node 4 performs error detection / correction of the data frame. Data frame error detection / correction consists of (1) data independent part of header, (2) number of header data, (3) set of data ID and data length for each header data, (4) attribute Dividing into each block of value data (part excluding data ID and data length), it is performed for each block. The data ID and data length are placed in the header part and separated from the attribute value data part.

データフレームのうちヘッダ部については、データフレームの巡回のうち、往路の場合は自ノードの更新データ作成時とデータフレーム受信直後、復路の場合はデータフレーム受信直後に全ノードでブロック毎にエラー検出・訂正を行なう。
ひとつでも訂正不可能なエラーが発生していれば、データフレーム全体をエラーとする。データフレーム全体をエラーとする場合、訂正不可能なエラーが発生したブロックまでのデータフレームは次のノードへ送信し、最終的にマスターノードに送信される。マスターノードにエラーが発生するまでのブロックが送信されることで、マスターノードはデータフレームにエラーが発生したことを知ることができる。訂正不可能なエラーが発生したブロックより後の部分については、エラーと判定すれば次ノードへの送信を止める。
For the header part of the data frame, error detection is performed for each block at all nodes in the data frame cycle, when updating the local node and immediately after receiving the data frame in the forward path, and immediately after receiving the data frame in the return path -Make corrections.
If even one uncorrectable error has occurred, the entire data frame is regarded as an error. When the entire data frame is regarded as an error, the data frame up to the block where the uncorrectable error has occurred is transmitted to the next node, and finally transmitted to the master node. By transmitting a block until an error occurs in the master node, the master node can know that an error has occurred in the data frame. For the portion after the block in which an uncorrectable error has occurred, transmission to the next node is stopped if it is determined as an error.

属性値データ部については、復路に他ノードの更新データDを読み取る際に、データフレーム全体ではなく属性値データ毎にエラー検出・訂正を行なう。訂正不可能なエラーが発生していれば、その属性値データをエラーとする。ひとつの属性値データにエラーが発生しても、データフレーム全体をエラーとはしない。属性値データをエラーとする場合でも、データフレーム全体を次ノードに送信し、最終的にマスターノードに送信される。   For the attribute value data portion, error detection / correction is performed for each attribute value data, not the entire data frame, when the update data D of another node is read in the return path. If an uncorrectable error has occurred, the attribute value data is regarded as an error. Even if an error occurs in one attribute value data, the entire data frame is not considered as an error. Even when attribute value data is an error, the entire data frame is transmitted to the next node, and finally transmitted to the master node.

マスターノードは還ってきたデータフレームを点検し、属性値データに訂正不可能なエラーが発生している場合は、再送信を行なうことが決定次第、該属性値データのみを指定したデータフレームを再送信する。再送信のため、新たにデータベースから読み込んだ属性値データではなく、前回に送信した属性値データと同じものを送信する。データID,データ長は属性値データとは分離してヘッダ部に置かれているので、各ノードは属性値データの格納位置を知ることができる。   The master node inspects the returned data frame, and if an uncorrectable error has occurred in the attribute value data, the master node re-sends the data frame specifying only the attribute value data as soon as it is decided to retransmit. Send. For retransmission, the same attribute value data transmitted last time is transmitted instead of the attribute value data newly read from the database. Since the data ID and data length are placed in the header part separately from the attribute value data, each node can know the storage position of the attribute value data.

再送信する際、ひとつの更新データを複数回書き込むように指定したり、データ長を大きくすることで、冗長度を上げることができる。更新データDを複数回書き込むときは、バーストエラー対策のため、格納位置を離す。
各ノードは、往路に自ノードの更新データDが指定されていれば書き込み、ループバックノードで折り返し、復路に他ノードの更新データDを読み取っていく。ただし、ヘッダ部に訂正不可能なエラーが発生している場合には、マスターノードは更新データDを指定しない。
When retransmitting, it is possible to increase the redundancy by designating that one update data is written a plurality of times or by increasing the data length. When the update data D is written a plurality of times, the storage position is released as a measure against a burst error.
Each node writes if the update data D of its own node is designated on the forward path, returns at the loopback node, and reads the update data D of other nodes on the return path. However, if an uncorrectable error has occurred in the header part, the master node does not specify the update data D.

上述したように、各データベース分配ノード4は更新用データフレームから他ノードのECU2の更新用データを読み込み、データベース7に記録する。
次に、他ノードの更新用データを自ノードに接続されたECU2に送信するタイミングについて説明する。
As described above, each database distribution node 4 reads the update data of the ECU 2 of the other node from the update data frame and records it in the database 7.
Next, the timing at which the update data of the other node is transmitted to the ECU 2 connected to the own node will be described.

ECU2は、出力タイミングテーブルTに設定されたタイミングに基づいて、データ出力手段23を介して更新データDをデータベース7から受け取る。
データ出力手段23は前記メモリ12内の出力タイミング設定テーブルTに従って、ECU2…が必要とするタイミングにおいて更新データD…を出力することができる。また、各ECU2…からの即時出力要求Raを入力したときは、即時出力の要求に応じてデータベース7内の指定された識別情報IDの更新データDをCANバス8側に出力する。なお、即時出力要求Raには即時出力を要求する更新データDを識別するための識別情報IDが含まれている。
The ECU 2 receives the update data D from the database 7 via the data output means 23 based on the timing set in the output timing table T.
The data output means 23 can output the update data D at a timing required by the ECU 2 according to the output timing setting table T in the memory 12. When the immediate output request Ra from each ECU 2... Is input, the update data D of the specified identification information ID in the database 7 is output to the CAN bus 8 side in response to the immediate output request. The immediate output request Ra includes the identification information ID for identifying the update data D that requests immediate output.

また、本実施例では出力タイミング設定手段22において、各ECU2からの出力要求Rbを入力し、この出力要求Rbに従って各データベース分配ノード4における出力タイミング設定テーブルTをそれぞれ動的に更新することができるように構成されている。なお、この出力要求Rbにも出力タイミングを設定する更新データDを識別するための識別情報IDと、その出力タイミングの設定値とが含まれ、出力タイミングを定めるためのパラメータも含まれることが好ましい。   Further, in the present embodiment, the output timing setting means 22 inputs the output request Rb from each ECU 2, and the output timing setting table T in each database distribution node 4 can be dynamically updated according to this output request Rb. It is configured as follows. The output request Rb also includes an identification information ID for identifying the update data D for setting the output timing, a set value of the output timing, and preferably includes a parameter for determining the output timing. .

図7は図1に示す車載データベースシステム1における前記出力タイミング設定テーブルT(とりわけ、データベース分配ノード4c内のメモリ12に記録された出力タイミング設定テーブルTc)の例を示しており、この出力タイミング設定テーブルTは、更新データDの識別情報ID(個々の識別情報IDを符号IDa,IDb…を用いて表す)と、これらに対応する更新データDの出力タイミングTi(それぞれ、個々のタイミング設定値を符号Tia,Tib…を用いて表す)と、各更新データDの送信タイミングのパラメータPar(各パラメータをそれぞれ符号Para,Parb…を用いて表す)とを記録したものである。   FIG. 7 shows an example of the output timing setting table T (particularly, the output timing setting table Tc recorded in the memory 12 in the database distribution node 4c) in the in-vehicle database system 1 shown in FIG. The table T includes identification information IDs of the update data D (representing individual identification information IDs using codes IDa, IDb...) And output timings Ti of the update data D corresponding to these IDs (respective individual timing setting values And the parameter Par of the transmission timing of each update data D (each parameter is expressed using the symbols Para, Parb,...), Respectively.

図8に示す例では、識別情報IDaが「車輪速」である属性値データVDaについて、出力タイミングTiaが「変化時出力」に設定されて、パラメータParaは「間引きなし」に設定されている。従って、前記処理手段13が前記データ出力手段23により前記出力タイミング設定テーブルTcに従ったタイミングで更新データD…を出力することにより、更新データDをECU2iが必要とするタイミングでCANバス8に出力することができる。すなわち、データベース7内の更新データDにアップデートがあった時点で、ECU2h,2i…(図1,2参照)側のCANバス8に出力することができる。   In the example illustrated in FIG. 8, for the attribute value data VDa whose identification information IDa is “wheel speed”, the output timing Tia is set to “output at change”, and the parameter Para is set to “no thinning”. Therefore, the processing means 13 outputs the update data D... At the timing according to the output timing setting table Tc by the data output means 23, so that the update data D is output to the CAN bus 8 at the timing required by the ECU 2i. can do. That is, when the update data D in the database 7 is updated, it can be output to the CAN bus 8 on the ECU 2h, 2i (see FIGS. 1 and 2) side.

本例のように、出力タイミング設定テーブルTにおいて、間引きなしで変化時出力の設定を行う設定を行う場合には、ECU2iはECU2aからの更新データDを、データベース8の更新にかかる僅かな遅延を除いて、リアルタイムに受け取ることができる。しかも、車輪速の測定値に変化がないときには、その更新データDをCANバス8に出力しないことによって、意味のない更新データDの出力を抑えることができる。   As in this example, in the output timing setting table T, when setting for setting the output at the time of change without thinning out, the ECU 2i sends the update data D from the ECU 2a with a slight delay for updating the database 8. Except it can be received in real time. In addition, when there is no change in the measured value of the wheel speed, the output of the meaningless update data D can be suppressed by not outputting the update data D to the CAN bus 8.

なお、前記出力タイミングTiとして「リアルタイム出力」を設定し、更新データDの値に変化がなくてもECU2から入力された更新データがある毎に、更新データDをCANバス8に出力するようにしてもよい。これによって、更新データDの供給側と受取側のECU2はデータベース7を間に介していることを意識することなく、直結的な感覚で更新データDの受け渡しを行うことができる。   Note that “real time output” is set as the output timing Ti, and the update data D is output to the CAN bus 8 every time there is update data input from the ECU 2 even if the value of the update data D does not change. May be. Accordingly, the update data D supply side and the reception side ECU 2 can deliver the update data D in a directly connected manner without being aware of the presence of the database 7 therebetween.

逆に、前記タイミングTiとして「所定間隔出力」を設定し、各供給側ECU2からアップデートされる更新データDを幾らか間引いて、受取側ECU2に出力するようにしてもよい。この場合、前記パラメータParとして受取側ECU2が必要とする更新データDの受取時間間隔を設定することにより、受取側ECU2にとって必要な間隔(例えばパラメータParcに示すように1秒ごとなど)で更新データDを受けとることができる。これによって、CANバス8を用いた無駄な通信を激減させることができる。   Conversely, “predetermined output” may be set as the timing Ti, and the update data D updated from each supply side ECU 2 may be thinned out and output to the reception side ECU 2. In this case, by setting the reception time interval of the update data D required by the receiving ECU 2 as the parameter Par, the update data is updated at an interval necessary for the receiving ECU 2 (for example, every second as shown in the parameter Parc). D can be received. As a result, useless communication using the CAN bus 8 can be drastically reduced.

また、図7の例に示すように、出力タイミングTibとして「閾超過時出力」が設定されていてもよい。本例の場合、識別情報IDbが「操舵角」である更新データDについて、閾超過時出力が設定されており、閾値はパラメータParbにおいて「±5deg 毎」に設定されている。すなわち、前記データ出力手段23が前記出力タイミング設定テーブルTcを参照することにより、更新データDを例えば操舵角が5°間隔でCANバス8に出力することができる。これがECU2iにより必要とされているタイミングである。   Further, as shown in the example of FIG. 7, “output when threshold is exceeded” may be set as the output timing Tib. In the case of this example, for the update data D whose identification information IDb is “steering angle”, an output when the threshold value is exceeded is set, and the threshold value is set “every ± 5 deg” in the parameter Parb. That is, when the data output means 23 refers to the output timing setting table Tc, the update data D can be output to the CAN bus 8 at a steering angle interval of 5 °, for example. This is the timing required by the ECU 2i.

なお、図7に示す出力タイミング設定テーブルTcには出力タイミングTiとして、「変化時出力」「閾値超過時出力」「所定間隔出力」を開示し、上記説明において「リアルタイム出力」の設定が可能であることを説明しているが、これらの文言は本発明を分かりやすく示すものであり、本発明はこれらの設定値に限定されるものではなく、実際には出力タイミングの設定値は数値や記号であることが好ましい。同様にパラメータParも上述した記述が重要な要素ではないことはいうまでもない。
また、自ノードに接続されたECU2に送信する更新データは、他ノードに接続されたECU2の更新データだけでなく、自ノードに接続されたECU2の更新データでもよい。
The output timing setting table Tc shown in FIG. 7 discloses “output when changing”, “output when exceeding the threshold”, and “predetermined interval output” as the output timing Ti, and “real time output” can be set in the above description. However, these terms are intended to make the present invention easier to understand, and the present invention is not limited to these set values. Actually, the output timing set values are numerical values and symbols. It is preferable that Similarly, it goes without saying that the above description is not an important factor for the parameter Par as well.
The update data transmitted to the ECU 2 connected to the own node may be not only the update data of the ECU 2 connected to the other node but also the update data of the ECU 2 connected to the own node.

本発明の第一実施例に係る車載データベースシステムの構成を示す図である。It is a figure which shows the structure of the vehicle-mounted database system which concerns on 1st Example of this invention. データベースの具体的な例を示す図である。It is a figure which shows the specific example of a database. データベースのデータフォーマットを示す図である。It is a figure which shows the data format of a database. データベース分配ノードのデータベースの更新を行なう場合の説明図である。It is explanatory drawing in the case of updating the database of a database distribution node. データベース分配ノード内でデータフレームにデータを書き込む場合の説明図である。It is explanatory drawing in the case of writing data in a data frame within a database distribution node. 全二重方式で送信を行なう場合のタイムチャートである。It is a time chart in the case of transmitting by a full duplex system. 半二重方式で送信を行なう場合のタイムチャートである。It is a time chart in the case of transmitting by a half duplex system. 出力タイミング設定テーブルの具体的な例を示す図である。It is a figure which shows the specific example of an output timing setting table.

符号の説明Explanation of symbols

1 車載データベースシステム
2 ECU
4 データベース分配ノード
5a、5b、5c 伝送路
6 センサ
7 データベース
9 LAN
11 CAN通信手段11
12 イーサネット通信手段
21 記録手段
22 出力タイミング設定手段
23 データ出力手段
24 データベース更新手段
D1、D2、D3 データフレーム
1 In-vehicle database system 2 ECU
4 Database distribution nodes 5a, 5b, 5c Transmission path 6 Sensor 7 Database 9 LAN
11 CAN communication means 11
12 Ethernet communication means 21 Recording means 22 Output timing setting means 23 Data output means 24 Database update means D1, D2, D3 Data frame

Claims (4)

複数の群毎に1個設けられるデータベース分配ノードと、
前記各群に設けられる1以上のECUと、
前記データベース分配ノードを順次接続する伝送路と、
を有する車載LANを備え、
前記各データベース分配ノードは、
前記群内のECUとデータを送受信するECU側送受信手段と、
前記データベース分配ノード間でデータを送受信する分配ノード側送受信手段と、
前記ECU側送受信手段と分配ノード側送受信手段からの受信データを記録するデータベースを有する処理部と、
を備え、
前記処理部は、前記受信データにより更新される更新データと、該更新データの更新後からの時間を示す加齢データ、当該更新データの有効期限を示す寿命データを前記データベースに記録し、該寿命データと前記加齢データとを比較して、データ更新後から所定時間経過後に、更新データの送信要求を前記ECUに送信し、あるいは/および前記データベースの更新データを抹消する構成としていることを特徴とする車載データベースシステム。
A database distribution node provided for each of a plurality of groups;
One or more ECUs provided in each group;
A transmission path for sequentially connecting the database distribution nodes;
In-vehicle LAN having
Each of the database distribution nodes is
ECU side transmission / reception means for transmitting / receiving data to / from the ECU in the group;
Distribution node side transmission / reception means for transmitting / receiving data between the database distribution nodes;
A processing unit having a database for recording received data from the ECU side transmitting / receiving means and the distribution node side transmitting / receiving means;
With
The processing unit records in the database update data updated by the received data, aging data indicating a time after update of the update data, and lifetime data indicating an expiration date of the update data, and the lifetime The data is compared with the aging data, and after a predetermined time elapses after the data update, the update data transmission request is transmitted to the ECU, and / or the update data in the database is deleted. In-vehicle database system.
前記処理部は、前記ECUから受信したデータを前記データベースに記録する前に一時的に記録するバッファを有し、
前記バッファから前記データを前記データベースに送信して更新データとして書き換えて記録すると同時に、記録した更新データを前記分配ノード側送受信手段から他のデータベース分配ノードに送信する構成としている請求項1に記載の車載データベースシステム。
The processing unit has a buffer for temporarily recording data received from the ECU before recording the data in the database;
2. The configuration according to claim 1, wherein the data is transmitted from the buffer to the database and rewritten and recorded as update data, and at the same time, the recorded update data is transmitted from the distribution node side transmission / reception means to another database distribution node. In-vehicle database system.
ECUと接続されてデータの送受信を行うECU側送受信手段と、
前記ECU送受信手段から受信するデータで更新された更新データと、更新後からの時間を示す加齢データと、当該更新データの有効期限を示す寿命データを前記データベースに記録し、前記寿命データと前記加齢データとを比較して、データ更新後から所定時間経過後に、更新データの送信要求を前記ECUに送信し、あるいは/および前記データベースの更新データを抹消処理する処理部と、
を備えていることを特徴とする車載用のデータベース分配ノード。
ECU side transmitting / receiving means connected to the ECU for transmitting and receiving data;
Update data updated with data received from the ECU transmission / reception means, aging data indicating the time after the update, and lifetime data indicating the expiration date of the update data are recorded in the database, the lifetime data and the A processing unit that compares the aging data, transmits a request for transmission of update data to the ECU, or / and deletes the update data of the database after a predetermined time has elapsed since the data update,
An in-vehicle database distribution node characterized by comprising:
さらに、他のデータベース分配ノードとの間に前記データベースで記録したデータを送受信する分配ノード側送受信手段を備えている請求項3に記載の車載用のデータベース分配ノード。   The in-vehicle database distribution node according to claim 3, further comprising distribution node side transmission / reception means for transmitting / receiving data recorded in the database to / from another database distribution node.
JP2006072153A 2006-03-16 2006-03-16 Onboard database system and onboard database distribution node Pending JP2007249616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006072153A JP2007249616A (en) 2006-03-16 2006-03-16 Onboard database system and onboard database distribution node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006072153A JP2007249616A (en) 2006-03-16 2006-03-16 Onboard database system and onboard database distribution node

Publications (1)

Publication Number Publication Date
JP2007249616A true JP2007249616A (en) 2007-09-27

Family

ID=38593837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006072153A Pending JP2007249616A (en) 2006-03-16 2006-03-16 Onboard database system and onboard database distribution node

Country Status (1)

Country Link
JP (1) JP2007249616A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887270A (en) * 2010-06-29 2010-11-17 无锡隆盛科技有限公司 Circuit of aging test stand for engine electronic control units
CN101170551B (en) * 2007-11-30 2011-11-30 中兴通讯股份有限公司 A data aging processing method
CN104423378A (en) * 2013-08-29 2015-03-18 通用汽车环球科技运作有限责任公司 Vehicle electronic control unit calibration
WO2023053357A1 (en) * 2021-09-30 2023-04-06 株式会社アイ・エル・シー Data processing system and data processing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07262201A (en) * 1994-03-18 1995-10-13 Fujitsu Ltd Distributed data base control system
JP2000284808A (en) * 1999-03-31 2000-10-13 Mitsubishi Electric Corp Vehicle control communication system
JP2002204249A (en) * 2000-12-28 2002-07-19 Denso Corp Device and method for communication data management
JP2003141015A (en) * 2001-11-05 2003-05-16 Tsubasa System Co Ltd Download method of update date
JP2003288255A (en) * 2002-03-27 2003-10-10 Canon Inc Data distribution system, data distribution device, data receiving device, data distribution method, data receiving method, and program for functioning it in computer
JP2005104453A (en) * 2003-09-12 2005-04-21 Nippon Soken Inc Information broadcasting equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07262201A (en) * 1994-03-18 1995-10-13 Fujitsu Ltd Distributed data base control system
JP2000284808A (en) * 1999-03-31 2000-10-13 Mitsubishi Electric Corp Vehicle control communication system
JP2002204249A (en) * 2000-12-28 2002-07-19 Denso Corp Device and method for communication data management
JP2003141015A (en) * 2001-11-05 2003-05-16 Tsubasa System Co Ltd Download method of update date
JP2003288255A (en) * 2002-03-27 2003-10-10 Canon Inc Data distribution system, data distribution device, data receiving device, data distribution method, data receiving method, and program for functioning it in computer
JP2005104453A (en) * 2003-09-12 2005-04-21 Nippon Soken Inc Information broadcasting equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170551B (en) * 2007-11-30 2011-11-30 中兴通讯股份有限公司 A data aging processing method
CN101887270A (en) * 2010-06-29 2010-11-17 无锡隆盛科技有限公司 Circuit of aging test stand for engine electronic control units
CN104423378A (en) * 2013-08-29 2015-03-18 通用汽车环球科技运作有限责任公司 Vehicle electronic control unit calibration
CN104423378B (en) * 2013-08-29 2017-10-31 通用汽车环球科技运作有限责任公司 The method and system of Vehicle Electronic Control Unit calibration
WO2023053357A1 (en) * 2021-09-30 2023-04-06 株式会社アイ・エル・シー Data processing system and data processing method

Similar Documents

Publication Publication Date Title
JP4839109B2 (en) In-vehicle database system
JP5057304B2 (en) In-vehicle communication system and in-vehicle communication method
US8509257B2 (en) CAN node, and communication method of communication system including CAN node
CN107528684B (en) First communication node in Ethernet-based vehicular network and operation method thereof
CN105388858B (en) Method of operating a communication node in a network
US10153825B2 (en) Vehicle-mounted control device
KR102286050B1 (en) Method for preventing diagnostic errors in vehicle network and apparatus for the same
KR20190134337A (en) Method and apparatus for selective wakeup of communication node in automotive network
JP2008227798A (en) On-vehicle gateway device and data transfer method
JP2007038904A (en) Car-mounted gateway device and message forwarding method used in gateway device
JP2007300331A (en) Onboard database system
US10673986B2 (en) Operation method of communication node for selective wake-up in vehicle network
CN107018089B (en) Method of operating a communication node in a network
US20230048058A1 (en) Anomaly determination method, anomaly determination device, and recording medium
US11119969B2 (en) Communication system and communication control method
CN110650175B (en) Method and apparatus for synchronizing communication nodes using multiple domains in a vehicle network
JP2007251722A (en) Communication device, on-vehicle system, data storing method and program
JP2007249616A (en) Onboard database system and onboard database distribution node
JP4709037B2 (en) In-vehicle database system
JP2007251826A (en) In-vehicle database system
JP6332060B2 (en) In-vehicle network
KR102431489B1 (en) Method and apparatus for synchronization of communication node using multiple domains in automotive network
JP2014086812A (en) Can system and node
US11700153B2 (en) Communication circuit, communication control method, circuit board, and air conditioning system
US20180145848A1 (en) Method and apparatus for reproducing contents based on presentation time in automotive network

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110715

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111213