patents.google.com

JP5026699B2 - Vehicle data recording device - Google Patents

  • ️Wed Sep 12 2012

図1は、本発明の一実施例である車両用データ記録システムの構成図を示す。車両用データ記録システム100は、自動車の各種制御装置に設けられるコンピュータを主体に構成された電子制御装置(ECU(Electric Control Unit))やセンサ等の複数のノード10と、これら複数のノード10を接続した多重通信線12と、更にこの多重通信線12に接続された記録装置14と、を備える。この車両用データ記録システム100は、車両の故障診断を行う上で各ノード10の有するデータを記録装置14に収集するためのシステムである。   FIG. 1 shows a configuration diagram of a vehicle data recording system according to an embodiment of the present invention. The vehicle data recording system 100 includes a plurality of nodes 10 such as an electronic control unit (ECU (Electric Control Unit)) or a sensor mainly composed of a computer provided in various control devices of an automobile, and the plurality of nodes 10. A multiplex communication line 12 connected, and a recording device 14 connected to the multiplex communication line 12 are further provided. The vehicle data recording system 100 is a system for collecting data held by each node 10 in the recording device 14 when performing vehicle failure diagnosis.

多重通信線12は、CAN(Controller Area Network)等のシングル線またはツイストペア線からなる共有バスであり、各ノード10から送出されるデータを所定の通信プロトコルに従って時分割多重で伝送(多重通信)することを可能とする。各ノード10から送出されたデータは、多重通信線12を介して他のノード10または記録装置14へ送信される。   The multiplex communication line 12 is a shared bus composed of a single line or twisted pair line such as a CAN (Controller Area Network), and transmits (multiplexes) data transmitted from each node 10 by time division multiplexing according to a predetermined communication protocol. Make it possible. Data transmitted from each node 10 is transmitted to another node 10 or the recording device 14 via the multiplex communication line 12.

ノード10は、例えば、ステアリング舵角に応じた信号を出力する舵角センサ、車両の重心軸周りに生ずるヨーレートに応じた信号を出力するヨーレートセンサ、スロットル開度やアクセル開度、エンジン水温等に基づいてエンジン制御を行うエンジンECU、車輪速やヨーレート、ステアリング舵角等に基づいて車両の旋回挙動を安定化させるVSC(Vehicle Stability Control)−ECU、シフト操作位置等に基づいて車両のシフトポジションを制御するトランスミッションECU、ブレーキ踏力やステアリング舵角等に基づいて車両の制動力を制御するブレーキECU、ステアリング舵角に基づいて操舵アシスト力を制御するパワーステアリングECU、エアコン操作スイッチや車室温等に基づいて車内のエアコンディションを制御するオートエアコンECU等である。   The node 10 is, for example, a steering angle sensor that outputs a signal according to the steering angle, a yaw rate sensor that outputs a signal according to the yaw rate generated around the center of gravity of the vehicle, a throttle opening, an accelerator opening, an engine water temperature, and the like. Engine ECU that performs engine control based on the vehicle, VSC (Vehicle Stability Control) that stabilizes the turning behavior of the vehicle based on wheel speed, yaw rate, steering rudder angle, etc., the vehicle shift position based on the shift operation position, etc. Based on the transmission ECU to be controlled, the brake ECU for controlling the braking force of the vehicle based on the brake depression force, the steering rudder angle, etc., the power steering ECU for controlling the steering assist force based on the steering rudder angle, the air conditioner operation switch, the vehicle room temperature, etc. In the car An auto air conditioner ECU that controls the condition.

各ノード10はそれぞれ、コントローラを内蔵するマイクロコンピュータ(マイコン)と、このマイコンに接続する通信モジュールと、を有している。マイコンは、接続する多重通信線12の通信プロトコルに従ってコントローラを制御し、自ノード10から他ノード10へ多重通信線12を介して送信すべきデータを符号化し、また、他ノード10から多重通信線12を介して受信した入力データを復号化する。また、通信モジュールは、コントローラにより制御され、他ノード10に自ノード10のデータを送信すると共に、他ノード10に接続されるセンサやスイッチ、或いは、更に別の他ノード10から送信されるデータを受信する。   Each node 10 has a microcomputer (microcomputer) incorporating a controller and a communication module connected to the microcomputer. The microcomputer controls the controller according to the communication protocol of the multiplex communication line 12 to be connected, encodes data to be transmitted from the own node 10 to the other node 10 via the multiplex communication line 12, and also transmits the multiplex communication line from the other node 10 The input data received via 12 is decrypted. In addition, the communication module is controlled by the controller and transmits the data of the own node 10 to the other node 10 and also transmits the data transmitted from the sensor or switch connected to the other node 10 or another other node 10. Receive.

すべてのノード10のうちの特定のノード10は、他の特定のノード10との間で必要なデータを定期的(例えば50ms毎)に送受信する。例えば、VSC−ECUとブレーキECUとエンジンECUとの間では、ブレーキECUで検出される車輪速の情報が共有されており、VSC−ECUで決定された旋回挙動を安定させるための駆動トルクや制動力の制御指令値が共有されている。また、エンジンECUとオートエアコンECUとの間では、エンジンECUで検出されるエンジン水温の情報が共有されている。これらの制御データは、検出したノード10からそのデータを共有するノード10へ送信されて、その送信先のノード10における制御に利用される。   A specific node 10 among all the nodes 10 periodically transmits and receives necessary data to and from another specific node 10 (for example, every 50 ms). For example, the wheel speed information detected by the brake ECU is shared among the VSC-ECU, the brake ECU, and the engine ECU, and the drive torque and the control for stabilizing the turning behavior determined by the VSC-ECU are shared. Power control command value is shared. Further, between the engine ECU and the automatic air conditioner ECU, information on the engine water temperature detected by the engine ECU is shared. These control data are transmitted from the detected node 10 to the node 10 sharing the data, and are used for control in the destination node 10.

記録装置14もまた、コントローラを内蔵するマイコンと、マイコンに接続する通信モジュールと、を有している。記録装置14は、多重通信線12の通信プロトコルに従ってコントローラを制御して、各ノード10から多重通信線12へ記録装置14宛てに送信されるデータを通信モジュールで受信し、そのデータを記録する。具体的には、記録装置14は、RAM(Random Access Memory)等の揮発性メモリに配置され、送信されてきたデータを一時的に保管する一時保管用テーブル14aと、一時保管用テーブル14aに保管されるデータを定期的にコピーして記録するハードディスク等の定常用記録媒体14bと、を有し、ノード10からのデータを先ず一時保管用テーブル14aに一時保管した後に定常用記録媒体14bに記録する。各ノード10は、故障を診断するのに必要なデータを記録装置14へ多重通信線12を介して送信する。   The recording device 14 also has a microcomputer with a built-in controller and a communication module connected to the microcomputer. The recording device 14 controls the controller in accordance with the communication protocol of the multiplex communication line 12, receives data transmitted from each node 10 to the multiplex communication line 12 to the recording device 14, and records the data. Specifically, the recording device 14 is arranged in a volatile memory such as a RAM (Random Access Memory), and temporarily stores the transmitted data in the temporary storage table 14a. A regular recording medium 14b such as a hard disk for periodically copying and recording the data to be recorded. The data from the node 10 is first temporarily stored in the temporary storage table 14a and then recorded on the steady recording medium 14b. To do. Each node 10 transmits data necessary for diagnosing a failure to the recording device 14 via the multiplex communication line 12.

次に、図2に示すデータの構成図を用いて、各ノード10から送信されるデータについて説明する。   Next, data transmitted from each node 10 will be described using the data configuration diagram shown in FIG.

図2に示すように、各ノード10が多重通信線12へ送信するデータは、予め所定の構成を有するデータフレームにより構成されている。このデータフレームは、例えば、データの始まりを示すスタートオブフレーム(SOF(Start Of Frame))20と、他の送信データと区別するための識別情報(データ送信の優先順位を示すようにしてもよい。)を示すフレームID21と、当該送信データの長さを示すデータ長コード(DLC(Data Length Code))22と、ECUが送信したフレームの送信順を示す巡回コード23と、データ内容(例えば、車輪速の情報や駆動トルクの制御指令値等であり、1の値を含むものであってもよく、複数の値を含むものであってもよい。)を示すデータフィールド24と、伝送エラーをチェックするためのCRCフィールド25と、データの終わりを示すエンドオブフレーム(EOF(End Of Frame))26と、から構成されている。なお、巡回コード23は、データフィールド24に包含される。   As shown in FIG. 2, the data transmitted from each node 10 to the multiplex communication line 12 is composed of data frames having a predetermined configuration in advance. This data frame may indicate, for example, a start of frame (SOF (Start Of Frame)) 20 indicating the start of data and identification information (data transmission priority order) for distinguishing from other transmission data. .), A data length code (DLC (Data Length Code)) 22 indicating the length of the transmission data, a cyclic code 23 indicating the transmission order of frames transmitted by the ECU, and data contents (for example, Data field 24 indicating wheel speed information, drive torque control command value, etc., which may include a value of 1 or a plurality of values, and a transmission error. A CRC field 25 for checking and an end-of-frame (EOF (End Of Frame) indicating the end of data. )) And 26, and a. Note that the cyclic code 23 is included in the data field 24.

次に、ノード10から送信されるデータの記録方法について説明する。ECU−Aを含む複数のノード10のそれぞれは、1または複数のデータ内容を有するフレームを時分割多重で、かつ、周期的に送信する。   Next, a method for recording data transmitted from the node 10 will be described. Each of the plurality of nodes 10 including the ECU-A transmits a frame having one or more data contents in a time-division multiplexed manner and periodically.

図3は、本実施例の車両用データ記録システム100においてノード10から送信されるデータが記録装置14に記録される状態を説明するための図である。   FIG. 3 is a diagram for explaining a state where data transmitted from the node 10 is recorded in the recording device 14 in the vehicle data recording system 100 of the present embodiment.

最初に、ノード10の1つであるECU−Aは、多重通信線12を介し、車輪速等の情報を有するデータ1を記録装置14に向けて送信する。   First, ECU-A, which is one of the nodes 10, transmits data 1 having information such as wheel speed to the recording device 14 via the multiple communication line 12.

次に、記録装置14は、受信したデータ1をECU−Aのために割り当てられた一時保管用テーブル14aの保管領域に保管する。一時保管用テーブル14aは、データ1のSOFを受信することによりデータ1の存在を認識し、SOFに続くデータ1本体の内容により、ECU−Aのために割り当てられた保管領域にあるデータを随時更新する。   Next, the recording device 14 stores the received data 1 in the storage area of the temporary storage table 14a allocated for the ECU-A. The temporary storage table 14a recognizes the presence of the data 1 by receiving the SOF of the data 1, and the data in the storage area allocated for the ECU-A is stored as needed according to the contents of the data 1 main body following the SOF. Update.

次に、記録装置14は、ECU−Aから受信したデータ1を含む一時保管用テーブル14aに保管されたデータのその時点の値全てを定常用記録媒体14bに定期的に記録する。   Next, the recording device 14 periodically records all the values at that time of the data stored in the temporary storage table 14a including the data 1 received from the ECU-A in the steady recording medium 14b.

ECU−Aは、その後も車輪速等の情報を有するデータ2乃至5を連続して記録装置14に送信し、記録装置14は、ECU−Aからのデータ2乃至5を順次受信して一時保管用テーブル14aにあるECU−Aのために割り当てられた領域(例えば、車輪速を保管するための領域である。)を随時更新する。   The ECU-A continuously transmits data 2 to 5 having information such as wheel speed to the recording device 14, and the recording device 14 sequentially receives and temporarily stores the data 2 to 5 from the ECU-A. The area allocated for the ECU-A in the work table 14a (for example, an area for storing the wheel speed) is updated as needed.

記録装置14は、一時保管用テーブル14aにあるECU−Aのために割り当てられた領域に保管されたデータであって、ECU−Aからのデータ内容を受信することにより随時更新されるデータを含む、一時保管用テーブル14aにおけるその時点の全てのデータを、所定の間隔で、定常用記録媒体14bにコピーして記録する。   The recording device 14 includes data stored in an area allocated for the ECU-A in the temporary storage table 14a and updated as needed by receiving data contents from the ECU-A. All the data at that time in the temporary storage table 14a is copied and recorded on the stationary recording medium 14b at a predetermined interval.

データ1乃至5は、それぞれ巡回コード23を有し、データ1には「0x01」、データ2には「0x02」、データ3には「0x03」、データ4には「0x01」、また、データ5には「0x02」が付与される。「巡回コード」とは、データ送信毎に1加算されたり、1減算されたりする識別可能な数字、或いは、所定の順番に従って更新される識別可能なコードであり、有限個の値、例えば3種類の数字を循環させて順次設定される。   Data 1 to 5 each have a cyclic code 23, “0x01” for data 1, “0x02” for data 2, “0x03” for data 3, “0x01” for data 4, and data 5 Is assigned “0x02”. The “cyclic code” is an identifiable number that is incremented or decremented every time data is transmitted, or an identifiable code that is updated according to a predetermined order. It is set sequentially by circulating the numbers.

例えば、巡回コード23は、1、2、3、1、2、3というように、1加算後に上限の数字(例えば、3である。)を超える場合は再度下限の数字(例えば、1である。)が設定され、或いは、3、2、1、3、2、1というように、1減算後に下限の数字(例えば、1である。)を下回る場合は再度上限の数字(例えば、3である。)が設定される。   For example, if the cyclic code 23 exceeds the upper limit number (for example, 3) after 1 addition, such as 1, 2, 3, 1, 2, 3, the lower limit number (for example, 1) again. )), Or when the value falls below the lower limit number (eg, 1) after 1 subtraction, such as 3, 2, 1, 3, 2, 1, Is set).

なお、循環する値の数は、好適には、少なくとも3種類とされる。2種類の値を循環させた場合、後述するデータの記録抜けと二重記録との区別が困難であり、データの解読性が低下するからである。この場合、巡回コード23は、データの送信順に付与される「0x01」、「0x02」および「0x03」の3種類であり、2ビットの情報量で表現することができる。   Note that the number of circulating values is preferably at least three. This is because when two types of values are circulated, it is difficult to distinguish between missing data recording and double recording, which will be described later, and the decipherability of data decreases. In this case, the cyclic code 23 has three types “0x01”, “0x02”, and “0x03” given in the order of data transmission, and can be expressed by a 2-bit information amount.

巡回コード23は、ECU−Aがデータを送信するときに、ECU−Aにおいて付与されるので、記録装置14は、ECU−Aから受信したデータに含まれる巡回コード23を取得することにより、多重通信回線12上でデータ消失が発生したか否かを確認することが可能となる。   Since the cyclic code 23 is assigned by the ECU-A when the ECU-A transmits data, the recording device 14 obtains the cyclic code 23 included in the data received from the ECU-A, thereby multiplexing the cyclic code 23. It is possible to confirm whether or not data loss has occurred on the communication line 12.

なお、巡回コード23は、記録装置14がECU−Aからのデータを受信して一時保管用テーブル14aに保管する際に、記録装置14において付与されるようにしてもよい。後述するように、多重通信線12を流れる情報量を最小限に留めることができるからである。   The cyclic code 23 may be given by the recording device 14 when the recording device 14 receives data from the ECU-A and stores the data in the temporary storage table 14a. This is because the amount of information flowing through the multiplex communication line 12 can be minimized as will be described later.

また、記録装置14は、記録装置14がECU−Aからのデータを受信することにより一時保管用テーブル14aのデータを更新する周期と、記録装置14が一時保管用テーブル14aにあるデータを定常用記録媒体14bにコピーして記録する周期との同期を取ることはしない。即ち、記録装置14は、ECU−Aから随時供給されるデータ内容に基づいて一時保管用テーブル14aのデータ内容を時々刻々と更新し、独自の周期に基づく各記録命令の時点において一時保管用テーブル14aに存在するデータ内容を定常用記録媒体14bにコピーして記録する。   In addition, the recording device 14 uses the period in which the recording device 14 updates the data in the temporary storage table 14a by receiving data from the ECU-A, and the recording device 14 uses the data in the temporary storage table 14a for regular use. There is no synchronization with the period of copying and recording on the recording medium 14b. That is, the recording device 14 updates the data content of the temporary storage table 14a from time to time based on the data content supplied from the ECU-A as needed, and the temporary storage table at the time of each recording command based on a unique cycle. The data content existing in 14a is copied and recorded on the regular recording medium 14b.

一時保管用テーブル14aの更新と定常用記録媒体14bにおけるコピーによる記録との同期を取るための、ECU−Aと記録装置14との間における複雑なデータ授受ルールの確立を必要とせずに、一のECUの車両用データ記録システム100への追加や一のECUの車両用データ記録システム100からの取り外しを、他のECUおよび記録装置14とは無関係に実施できるようにするためである。   Without requiring the establishment of a complicated data transfer rule between the ECU-A and the recording device 14 to synchronize the update of the temporary storage table 14a and the recording by copying in the stationary recording medium 14b. This is because the addition of the ECU to the vehicle data recording system 100 and the removal of one ECU from the vehicle data recording system 100 can be performed independently of the other ECUs and the recording device 14.

これにより、記録装置14は、車両用データ記録システム100の汎用性を向上させ、かつ、車両用データ記録システム100を流れる情報量を最小限に留めることが可能となる。   Thereby, the recording device 14 can improve the versatility of the vehicle data recording system 100 and can keep the amount of information flowing through the vehicle data recording system 100 to a minimum.

次に、一時保管用テーブル14aの更新と定常用記録媒体14bにおける複写による記録とが非同期であることにより発生する問題について説明する。   Next, a problem that occurs when the update of the temporary storage table 14a and the recording by copying on the stationary recording medium 14b are asynchronous will be described.

ECU−Aは、例えば、500ミリ秒間隔でデータの送信を行い、記録装置14は、500ミリ秒間隔で一時保管用テーブル14aのデータを更新し、かつ、一時保管用テーブル14aのデータを500ミリ秒間隔で定常用記録媒体14bに複写して記録しようとする。   For example, the ECU-A transmits data at intervals of 500 milliseconds, and the recording device 14 updates the data in the temporary storage table 14a at intervals of 500 milliseconds, and the data in the temporary storage table 14a is 500. An attempt is made to copy and record on the stationary recording medium 14b at millisecond intervals.

しかし、ECU−Aによるデータの送信または記録装置14による更新と、記録装置14による記録とが非同期のため、送信間隔または更新間隔と記録間隔との間にズレが生ずる場合がある。   However, since data transmission by the ECU-A or update by the recording device 14 and recording by the recording device 14 are asynchronous, there may be a gap between the transmission interval or the update interval and the recording interval.

例えば、更新間隔が495ミリ秒であり、記録間隔が500ミリ秒であるというように記録間隔が更新間隔より長くなってしまう場合や、更新間隔が500ミリ秒であり、記録間隔が495ミリ秒であるというように記録間隔が更新間隔より短くなってしまう場合であり、或いは、一時的に通信環境が悪くなり送信間隔が長くなった場合である。以下、このズレについて詳細に説明する。   For example, when the update interval is 495 milliseconds and the recording interval is 500 milliseconds, the recording interval becomes longer than the update interval, or when the update interval is 500 milliseconds and the recording interval is 495 milliseconds. This is the case where the recording interval becomes shorter than the update interval, or the case where the communication environment temporarily deteriorates and the transmission interval becomes longer. Hereinafter, this shift will be described in detail.

図4および図5は、ECU−Aによるデータの送信内容、一時保管用テーブル14aの内容および定常用記録媒体の内容を時系列で示す図である。   4 and 5 are diagrams showing the transmission contents of data by the ECU-A, the contents of the temporary storage table 14a, and the contents of the stationary recording medium in time series.

図4および図5は、図の左から右に時間経過を示し、ECU−Aによるデータの送信内容を一番上の段30に、一時保管用テーブル14aの内容を二番目の段31に、定常用記録媒体の内容を一番下の段32に示す。   4 and 5 show the passage of time from the left to the right of the figure, the content of data transmitted by the ECU-A in the top row 30 and the content of the temporary storage table 14a in the second row 31. The contents of the stationary recording medium are shown in the bottom row 32.

図4において、ECU−Aは、段30に示すように、巡回コード23を付与しながらデータ1乃至4を送信する。データ1は、巡回コード「0x01」が付与され、データ2は「0x02」、データ3は「0x03」、データ4は「0x01」がそれぞれ付与される。   In FIG. 4, the ECU-A transmits data 1 to 4 while giving the cyclic code 23 as shown in the stage 30. Data 1 is assigned a cyclic code “0x01”, data 2 is assigned “0x02”, data 3 is assigned “0x03”, and data 4 is assigned “0x01”.

記録装置14は、段31に示すように、ECU−Aからデータを受信すると、一時保管用テーブル14aの所定の領域を更新する。また、記録装置14は、段32に示すように、一時保管用テーブル14aの更新間隔よりも長い間隔で、一時保管用テーブル14aの内容を定常用記録媒体14bにコピーして記録する。そのため、記録装置14は、データ3により更新された一時保管用テーブル14aの内容を定常用記録媒体14bにコピーして記録することができず、データの記録抜けを発生させる。   As shown in stage 31, when the recording device 14 receives data from the ECU-A, the recording device 14 updates a predetermined area of the temporary storage table 14a. Further, as shown in step 32, the recording device 14 copies and records the contents of the temporary storage table 14a on the regular recording medium 14b at an interval longer than the update interval of the temporary storage table 14a. For this reason, the recording device 14 cannot copy and record the contents of the temporary storage table 14a updated with the data 3 to the steady recording medium 14b, and causes data omission.

一方、図5において、記録装置14は、段32に示すように、一時保管用テーブル14aの更新間隔よりも短い間隔で、一時保管用テーブル14aの内容を定常用記録媒体14bにコピーして記録する。そのため、記録装置14は、データ3により更新された一時保管用テーブル14aの内容を定常用記録媒体14bに2回コピーして記録し、データの二重記録を発生させる。   On the other hand, in FIG. 5, the recording device 14 copies and records the contents of the temporary storage table 14a to the stationary recording medium 14b at an interval shorter than the update interval of the temporary storage table 14a, as shown in step 32. To do. Therefore, the recording device 14 copies and records the contents of the temporary storage table 14a updated with the data 3 twice on the stationary recording medium 14b, thereby generating double recording of data.

このため、仮にECU−Aにより送信されたデータに巡回コード23が付与されていない従来的な構成では、データの記録抜けまたはデータの二重記録(以下、「データズレ」という。)が発生してもそれらデータズレを認識することができず、定常用記録媒体14bに記録されるデータに基づいて故障の判定等を行う者または装置は、誤って故障が発生したと判定する場合が生じる。かかる誤判定を防止するためにも、データズレの認識は極めて重要となる。   For this reason, in the conventional configuration in which the cyclic code 23 is not added to the data transmitted by the ECU-A, data recording omission or data double recording (hereinafter referred to as “data misalignment”) occurs. However, those data shifts cannot be recognized, and a person or device that makes a failure determination based on the data recorded on the steady recording medium 14b may erroneously determine that a failure has occurred. In order to prevent such erroneous determination, it is extremely important to recognize data misalignment.

この点、本実施例による記録装置14は、ECU−Aにより巡回コード23が付与されたデータを受信することにより、ECU−Aから送信されたデータの順番を把握できるので、データズレの発生を検出することが可能である。なお、使用される巡回コード23は、好適には、3種類以上の値を循環させる。2種類の値を循環させる場合、記録装置14は、データの記録抜けと二重記録との区別をすることができないからである。   In this regard, the recording apparatus 14 according to the present embodiment can grasp the order of the data transmitted from the ECU-A by receiving the data to which the cyclic code 23 is assigned by the ECU-A. It is possible to detect. Note that the cyclic code 23 to be used preferably circulates three or more types of values. This is because when the two types of values are circulated, the recording device 14 cannot distinguish between missing data recording and double recording.

例えば、記録装置14は、2種類の値を有する巡回コード23(「0x01」、「0x02」、「0x01」、「0x02」…のように循環する。)を使用する場合であって、3番目の巡回コード「0x01」を受信できなかったとき、受信した巡回コード23は、「0x01」、「0x02」、「0x02」となり、データの記録抜けまたは二重記録の何れかが発生したことは検知できるが、それらを区別することができない。   For example, the recording device 14 uses a cyclic code 23 having two types of values (circulating like “0x01”, “0x02”, “0x01”, “0x02”. When the cyclic code “0x01” cannot be received, the received cyclic code 23 becomes “0x01”, “0x02”, and “0x02”, and it is detected that either data recording omission or double recording has occurred. I can, but I can't distinguish them.

データの記録抜けと二重記録との区別が重要な理由は、記録装置14は、二重記録が発生した場合に、二重記録の一方を破棄して他方を採用するという措置をとることが可能であるが、データの記録抜けとデータの二重記録とを区別できない場合には、係る措置をとることもできないからである。   The reason why it is important to distinguish between missing data recording and double recording is that the recording device 14 may take a measure of discarding one of the double recording and adopting the other when the double recording occurs. Although it is possible, if it is not possible to distinguish between missing data recording and double data recording, it is not possible to take such measures.

これにより、記録装置14は、好適には、3種類以上の値を有する巡回コード23を使用し、かつ、ECU−Aによるデータの送信間隔または記録装置14による更新間隔より記録装置14による記録間隔を短くし、データの記録抜けを確実に防止しながら、データの二重記録に対しては、一方を破棄して他方を採用するという措置を取るようにする。   Thereby, the recording device 14 preferably uses the cyclic code 23 having three or more types of values, and the recording interval by the recording device 14 is greater than the data transmission interval by the ECU-A or the update interval by the recording device 14. In order to prevent the data omission from occurring, it is necessary to take measures to discard one and adopt the other for double recording of data.

データの二重記録をある程度許容しながらデータの記録抜けを確実に防止するのは、データの記録抜けが発生した場合にECU−Aにデータの再送を促し、再度保管および記録を行うと処理が複雑になるからである。なお、ECU−Aによるデータ送信または記録装置14による一時保管用テーブル14aへのデータ保管と、記録装置14による定常用記録媒体14bへのデータ記録とを非同期にすることは、他の新たなECUを追加する場合の汎用性確保のために必要なため維持される。   The reason why data omission is reliably prevented while allowing double data omission to some extent is that if the data omission occurs, the ECU-A is urged to resend the data, and if the data is stored and recorded again, the process is performed. Because it becomes complicated. Note that the data transmission by the ECU-A or the data storage in the temporary storage table 14a by the recording device 14 and the data recording by the recording device 14 to the steady recording medium 14b are asynchronous. It is maintained because it is necessary for ensuring versatility when adding.

次に、ECU−Aが送信したデータが記録装置14に到達する前に多重通信線12上で消失した場合(以下、「データ消失」という。)について説明する。   Next, a case where data transmitted by the ECU-A is lost on the multiplex communication line 12 before reaching the recording device 14 (hereinafter referred to as “data loss”) will be described.

図6は、図3と同様、本実施例のシステムにおいてノード10から送信されるデータが記録装置14に記録される状態を説明するための図であり、図7および図8は、図4および図5と同様、ECU−Aによるデータの送信内容、一時保管用テーブル14aの内容および定常用記録媒体の内容を時系列で示す図である。   FIG. 6 is a diagram for explaining a state in which data transmitted from the node 10 is recorded in the recording device 14 in the system of the present embodiment, as in FIG. 3, and FIG. 7 and FIG. FIG. 6 is a diagram showing the transmission contents of data by the ECU-A, the contents of the temporary storage table 14a, and the contents of the stationary recording medium in time series as in FIG.

図6は、ECU−Aから送信された、巡回コード「0x03」を有するデータ3が記録装置14に到達する前に多重通信線12上で消失している点で図3の場合と異なる。   FIG. 6 differs from the case of FIG. 3 in that the data 3 having the cyclic code “0x03” transmitted from the ECU-A is lost on the multiplex communication line 12 before reaching the recording device 14.

図7は、記録装置14がデータ3を受信しなかったために、一時保管用テーブル14aの更新を行わず、図4に比べ一時保管用テーブル14aがデータ2を保持する期間が長くなっていることを示す。また、図7において、記録装置14は、図4の場合と同様に一時保管用テーブル14aの更新間隔よりも長い間隔で一時保管用テーブル14aの内容を定常用記録媒体14bにコピーして記録するので、データ消失の場合も図4におけるデータ記録抜けの場合と同じ記録内容を示す。   In FIG. 7, since the recording device 14 did not receive the data 3, the temporary storage table 14a is not updated, and the period in which the temporary storage table 14a holds the data 2 is longer than that in FIG. Indicates. In FIG. 7, the recording device 14 copies and records the contents of the temporary storage table 14a to the stationary recording medium 14b at intervals longer than the update interval of the temporary storage table 14a, as in FIG. Therefore, the same recorded contents as in the case of missing data recording in FIG.

これにより、定常用記録媒体14bに記録されるデータに基づいて故障の判定等を行う者または装置は、定常用記録媒体14bに記録されたデータの巡回コード23に基づいてデータ消失またはデータ記録抜けが発生したことを検出することができる。   As a result, a person or device that makes a failure determination or the like based on the data recorded on the steady recording medium 14b allows data loss or missing data recording based on the cyclic code 23 of the data recorded on the steady recording medium 14b. Can be detected.

図8も同様に、記録装置14がデータ3を受信しなかったために、一時保管用テーブル14aの更新を行わず、図5に比べ一時保管用テーブル14aがデータ2を保持する期間が長くなっていることを示す。しかし、図8では、記録装置14は、図5の場合と同様に一時保管用テーブル14aの更新間隔よりも短い間隔で一時保管用テーブル14aの内容を定常用記録媒体14bにコピーして記録するので、データの記録抜けを発生させることは稀である。   Similarly in FIG. 8, since the recording device 14 did not receive the data 3, the temporary storage table 14 a is not updated, and the period in which the temporary storage table 14 a holds the data 2 is longer than that in FIG. 5. Indicates that However, in FIG. 8, the recording device 14 copies and records the contents of the temporary storage table 14a to the regular recording medium 14b at intervals shorter than the update interval of the temporary storage table 14a, as in FIG. Therefore, it is rare to cause a data omission.

これにより、定常用記録媒体14bに記録されるデータに基づいて故障の判定等を行う者または装置は、定常用記録媒体14bに記録されたデータの巡回コード23に基づいてデータ3が記録されておらずデータ消失が発生したものと判断することができる。データの記録抜けの発生が稀なため、データ消失であると推定できるからである。   As a result, a person or device that performs a failure determination based on the data recorded on the steady recording medium 14b records the data 3 based on the cyclic code 23 of the data recorded on the steady recording medium 14b. Therefore, it can be determined that data loss has occurred. This is because the occurrence of data omission is rare and it can be estimated that data is lost.

このように、車両用データ記録システム100は、従来の記録システムにおいてデータを解読する者により複数のデータで同時にデータズレが発生していること等に基づいて総合的に判断されていたデータズレ発生の有無を、巡回コード23を使用することにより確実に検出することが可能となり、係るデータズレ発生の有無をコンピュータで自動的に判断させることで、より大量のデータをより短時間で処理できるようにする。   As described above, the vehicle data recording system 100 generates the data shift that is comprehensively determined based on the fact that the data shift is simultaneously generated in a plurality of data by a person who decodes the data in the conventional recording system. By using the cyclic code 23, the presence / absence of the data can be reliably detected, and the computer can automatically determine the presence / absence of the data deviation so that a larger amount of data can be processed in a shorter time. To.

また、車両用データ記録システム100は、データズレの発生の有無を検出することにより、データ解読時に故障を誤認識させるのを防止することができる。   In addition, the vehicle data recording system 100 can prevent a failure from being erroneously recognized at the time of data decoding by detecting the presence or absence of data deviation.

また、車両用データ記録システム100は、ECU−Aによるデータ送信の間隔または記録装置14による一時保管用テーブル14aへのデータ保管の間隔より、記録装置14による定常用記録媒体14bへのデータ記録の間隔を短くすることによって、データの記録抜けを確実に防止しながら、データの二重記録を確実に検出してデータを修正させ、データの記録抜けおよび二重記録のないデータに基づいて故障判定を行わせ、故障を誤って認識させるのを防止することができる。また、車両用データ記録システム100は、係る態様により、多重通信線12でデータ消失が発生したことをデータ記録抜けと区別して検出させることができる。   The vehicle data recording system 100 also records data on the stationary recording medium 14b by the recording device 14 based on the data transmission interval by the ECU-A or the data storage interval in the temporary storage table 14a by the recording device 14. By shortening the interval, it is possible to reliably detect data duplication and correct the data while reliably preventing data omissions, and determine failure based on data missing and no data duplication. It is possible to prevent the failure from being recognized by mistake. Further, according to this aspect, the vehicle data recording system 100 can detect that data loss has occurred in the multiplex communication line 12 by distinguishing it from data loss.

また、車両用データ記録システム100は、上述の効果を奏しながらも、ECU−Aによるデータ送信または記録装置14による一時保管用テーブル14aへのデータ保管と記録装置14による定常用記録媒体14bへのデータ記録との非同期を維持するために車両用データ記録システムの汎用性を損なうことはない。   In addition, the vehicle data recording system 100 can transmit data by the ECU-A or store data in the temporary storage table 14a by the recording device 14 and store the data in the steady recording medium 14b by the recording device 14 while achieving the above-described effects. In order to maintain asynchronism with the data recording, the versatility of the vehicle data recording system is not impaired.

10 ノード
12 多重通信線
14 記録装置
14a 一時保管用テーブル
14b 定常用記録媒体
20 SOF
21 フレームID
22 DLC
23 巡回コード
24 データフィールド
25 CRCフィールド
26 EOF
30 「ECUーAによるデータの送信内容」を示す段
31 「一時保管用テーブル14aの内容」を示す段
32 「定常用記録媒体14bの内容」を示す段
100 車両用データ記録システム
10 nodes 12 multiplex communication lines 14 recording device 14a temporary storage table 14b stationary recording medium 20 SOF
21 Frame ID
22 DLC
23 cyclic code 24 data field 25 CRC field 26 EOF
30 A stage indicating “contents of data transmitted by ECU-A” 31 A stage indicating “contents of temporary storage table 14a” 32 A stage indicating “contents of stationary recording medium 14b” 100 Vehicle data recording system