JP2022175365A - Electronic control device and failure information erasing method - Google Patents

Electronic control device and failure information erasing method Download PDF

Info

Publication number
JP2022175365A
JP2022175365A JP2021081703A JP2021081703A JP2022175365A JP 2022175365 A JP2022175365 A JP 2022175365A JP 2021081703 A JP2021081703 A JP 2021081703A JP 2021081703 A JP2021081703 A JP 2021081703A JP 2022175365 A JP2022175365 A JP 2022175365A
Authority
JP
Japan
Prior art keywords
request
failure information
erasure
electronic control
function
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.)
Granted
Application number
JP2021081703A
Other languages
Japanese (ja)
Other versions
JP7486460B2 (en
Inventor
圭巳 山崎
Yoshimi Yamazaki
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo 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 Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2021081703A priority Critical patent/JP7486460B2/en
Publication of JP2022175365A publication Critical patent/JP2022175365A/en
Application granted granted Critical
Publication of JP7486460B2 publication Critical patent/JP7486460B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

To suppress the occurrence of processing overflow due to the erasure of failure information in an electronic control device in which the failure information is stored in a non-volatile memory.SOLUTION: An electronic control device, in which failure information of a function to be diagnosed is stored in a non-volatile memory, sets a flag indicating whether or not there is a request for erasure upon receiving a request to erase the failure information from a diagnostic tool. Further, when the timing for diagnosing the function to be diagnosed according to a predetermined schedule comes, the electronic control device exclusively executes processing of erasing the failure information and clearing the flag (S31, S32) according to the set state of the flag (S30), and processing of diagnosing the function to be diagnosed (S33).SELECTED DRAWING: Figure 6

Description

本発明は、不揮発性メモリに故障情報が保存された電子制御装置、及び故障情報の消去方法に関する。 The present invention relates to an electronic control device in which failure information is stored in a non-volatile memory, and a method of erasing the failure information.

車両に搭載された電子制御装置は、診断機能により故障を検知して不揮発性メモリに書き込んで保存する。不揮発性メモリに保存された故障情報は、特開2010-139458号公報(特許文献1)に記載されるように、電子制御装置に着脱可能に接続された診断ツールによって参照及び消去される。 An electronic control unit mounted on a vehicle detects a failure by a diagnostic function and writes and saves it in a non-volatile memory. The failure information stored in the non-volatile memory is referenced and deleted by a diagnostic tool detachably connected to the electronic control unit, as described in Japanese Patent Application Laid-Open No. 2010-139458 (Patent Document 1).

特開2010-139458号公報JP 2010-139458 A

車両に搭載された電子制御装置は、所定時間間隔の制御サイクルごとに、診断処理及び制御対象の通常処理を実行する必要がある。電子制御装置に診断ツールを接続して故障情報の消去を行うと、電子制御装置は、診断処理及び通常処理に加えて消去処理を実行しなければならず、制御サイクル内にすべての処理が終了しない「処理あふれ」が発生してしまう。そして、処理あふれが発生すると、処理あふれに関連した処理が実行できず、例えば、通常処理の場合には制御対象の制御に影響がでてしまう。 An electronic control unit mounted on a vehicle needs to execute diagnostic processing and normal processing of a controlled object in each control cycle at predetermined time intervals. When a diagnostic tool is connected to the electronic control unit and fault information is erased, the electronic control unit must perform erasure processing in addition to diagnostic processing and normal processing, and all processing is completed within the control cycle. If not, "processing overflow" will occur. Then, when a process overflow occurs, the process related to the process overflow cannot be executed, and, for example, in the case of normal processing, the control of the controlled object is affected.

そこで、本発明は、故障情報の消去による処理あふれの発生を抑制した、電子制御装置及び故障情報の消去方法を提供することを目的とする。 SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an electronic control unit and a method for erasing failure information that suppresses the occurrence of processing overflow due to erasure of failure information.

診断対象の機能の故障情報が不揮発性メモリに保存された電子制御装置は、外部装置から故障情報の消去要求があったとき、消去要求の有無を表すフラグをセットする。また、電子制御装置は、所定のスケジュールに従って診断対象の機能を診断するタイミングになったとき、フラグのセット状態に応じて、故障情報を消去してフラグをクリアする処理と、診断対象の機能を診断する処理と、を排他的に実行する。 The electronic control unit, in which the failure information of the function to be diagnosed is stored in the non-volatile memory, sets a flag indicating whether or not there is a request for erasure of the failure information when an external device requests erasure of the failure information. Further, when the timing for diagnosing the function to be diagnosed according to a predetermined schedule comes, the electronic control unit erases the failure information and clears the flag according to the set state of the flag, and executes the function to be diagnosed. A process to diagnose and a are executed exclusively.

本発明によれば、電子制御装置において、故障情報の消去による処理あふれの発生を抑制することができる。 According to the present invention, it is possible to suppress the occurrence of processing overflow due to deletion of failure information in an electronic control unit.

車両に搭載された電子制御システムの一例を示す概要図である。1 is a schematic diagram showing an example of an electronic control system mounted on a vehicle; FIG. 電子制御装置の内部構造の一例を示す概要図である。It is a schematic diagram showing an example of an internal structure of an electronic control unit. アプリケーションプログラムにより実装されるモジュールの一例を示すブロック図である。4 is a block diagram showing an example of modules implemented by an application program; FIG. イベントマネージャにより実行される要求解析処理の一例を示すフローチャートである。6 is a flow chart showing an example of request analysis processing executed by an event manager; 消去要求受付部により実行される消去フラグセット処理の一例を示すフローチャートである。6 is a flow chart showing an example of an erasure flag setting process executed by an erasure request receiving unit; 診断部により実行される診断処理の一例を示すフローチャートである。4 is a flowchart showing an example of diagnostic processing executed by a diagnostic unit; 故障情報消去部により実行される故障情報消去処理の一例を示すフローチャートである。4 is a flow chart showing an example of failure information erasing processing executed by a failure information erasing unit; 従来技術における作用及び効果の説明図である。It is explanatory drawing of the operation|movement and effect in a prior art. 本提案技術における作用及び効果の説明図である。FIG. 4 is an explanatory diagram of actions and effects in the proposed technology;

以下、添付された図面を参照し、本発明を実施するための実施形態について詳述する。
車両100には、例えば、エンジン、自動変速機、アダプティブクルーズコントロールシステムなどを電子制御する、複数の電子制御装置200が搭載されている。複数の電子制御装置200は、例えば、CAN(Controller Area Network)などの車載ネットワーク300を介して、任意のデータを送受信可能に接続されている。ここで、車両100としては、乗用車、トラック、バス、建設機械などとすることができる。なお、図1に示す例では、車両100に4つの電子制御装置200が搭載されているが、電子制御装置200の数は任意である。
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the attached drawings.
The vehicle 100 is equipped with a plurality of electronic control units 200 that electronically control, for example, an engine, an automatic transmission, an adaptive cruise control system, and the like. A plurality of electronic control units 200 are connected so as to be able to transmit and receive arbitrary data via an in-vehicle network 300 such as a CAN (Controller Area Network), for example. Here, the vehicle 100 can be a passenger car, truck, bus, construction machine, or the like. In the example shown in FIG. 1, four electronic control units 200 are mounted on vehicle 100, but the number of electronic control units 200 is arbitrary.

電子制御装置200は、図2に示すように、CPU(Central Processing Unit)などのプロセッサ210と、不揮発性メモリ220と、揮発性メモリ230と、入出力回路240と、通信回路250と、これらを相互通信可能に接続する内部バス260と、を内蔵している。 As shown in FIG. 2, the electronic control unit 200 includes a processor 210 such as a CPU (Central Processing Unit), a nonvolatile memory 220, a volatile memory 230, an input/output circuit 240, a communication circuit 250, and these. and an internal bus 260 that are interconnectably connected.

プロセッサ210は、アプリケーションプログラムに記述された命令セット(データの転送、演算、加工、制御、管理など)を実行するハードウエアであって、演算装置、命令やデータを格納するレジスタ、周辺回路などから構成されている。不揮発性メモリ220は、電源供給を遮断してもデータを保持可能なフラッシュROM(Read Only Memory)やEEPROM(Electrically Erasable Programmable Read Only Memory)などからなり、本実施形態を実装するためのアプリケーションプログラム及び故障情報を保持する。揮発性メモリ230は、電源供給を遮断するとデータが消失するダイナミックRAM(Random Access Memory)などからなり、プロセッサ210の演算過程においてパラメータを一時的に格納する記憶領域を提供する。 The processor 210 is hardware that executes an instruction set (data transfer, operation, processing, control, management, etc.) described in an application program, and includes an arithmetic unit, registers that store instructions and data, peripheral circuits, and the like. It is configured. The non-volatile memory 220 is made up of a flash ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), etc. that can retain data even when the power supply is interrupted. Holds failure information. The volatile memory 230 includes a dynamic random access memory (RAM) that loses data when the power supply is cut off, and provides a storage area for temporarily storing parameters during the operation process of the processor 210 .

入出力回路240は、A/Dコンバータ、D/Aコンバータ、D/Dコンバータなどからなり、センサ、スイッチ、アクチュエータなどに対するアナログ信号及びデジタル信号の入出力機能を提供する。通信回路250は、例えば、CANトランシーバなどからなり、車載ネットワーク300に接続する機能、及びケーブル400を介して診断ツール500に着脱可能に接続する機能を提供する。内部バス260は、各デバイス間でデータを交換するための経路であって、アドレスを転送するためのアドレスバス、データを転送するためのデータバス、及びアドレスバスやデータバスで実際に入出力を行うタイミングや制御情報を遣り取りするコントロールバスを含んでいる。なお、診断ツール500が、外部装置の一例として挙げられる。 The input/output circuit 240 includes an A/D converter, a D/A converter, a D/D converter, etc., and provides an input/output function of analog signals and digital signals to sensors, switches, actuators, and the like. The communication circuit 250 is composed of, for example, a CAN transceiver or the like, and provides a function of connecting to the in-vehicle network 300 and a function of detachably connecting to the diagnostic tool 500 via the cable 400 . The internal bus 260 is a path for exchanging data between devices, and includes an address bus for transferring addresses, a data bus for transferring data, and actual input/output through the address bus and data bus. It includes a control bus that communicates timing and control information. Note that the diagnostic tool 500 is an example of an external device.

ここで、診断ツール500は、ケーブル400を介して電子制御装置200に接続された後、作業者の操作に応答して、電子制御装置200に対して故障情報の消去要求を含む要求を送信する。このとき、診断ツール500は、電子制御装置200の不揮発性メモリ220に複数の診断対象の機能に関する故障情報が保存されていることに鑑み、どの故障情報を消去するかを特定可能な情報を併せて送信する。要するに、診断ツール500は、診断対象の機能ごとに消去要求を送信する。一方、診断ツール500からの要求を受信した電子制御装置200は、故障情報と併せて送信された情報により消去対象の故障情報を特定し、この故障情報について消去を行う。 Here, after being connected to the electronic control unit 200 via the cable 400, the diagnostic tool 500 transmits a request including a failure information deletion request to the electronic control unit 200 in response to the operator's operation. . At this time, in view of the fact that failure information relating to a plurality of diagnostic target functions is stored in the non-volatile memory 220 of the electronic control unit 200, the diagnostic tool 500 combines information that can specify which failure information is to be erased. to send. In short, diagnostic tool 500 sends an erase request for each function to be diagnosed. On the other hand, the electronic control unit 200, which has received the request from the diagnostic tool 500, specifies the failure information to be erased from the information transmitted together with the failure information, and erases this failure information.

そして、電子制御装置200のプロセッサ210は、不揮発性メモリ220に格納されたアプリケーションプログラムに従って、制御対象を制御する通常処理、故障を検知して保存する診断処理、及び診断ツール500からの消去要求に応答して故障情報を消去する消去処理を実行する。ここで、通常処理及び診断処理は、当業者にとって周知であり、本実施形態の要部ではないため、その説明は省略するものとする。 Then, the processor 210 of the electronic control unit 200 responds to normal processing for controlling the controlled object, diagnostic processing for detecting and storing failures, and deletion requests from the diagnostic tool 500 according to the application program stored in the nonvolatile memory 220. In response, erase processing is executed to erase the failure information. Here, the normal processing and the diagnostic processing are well known to those skilled in the art and are not essential parts of the present embodiment, so description thereof will be omitted.

電子制御装置200のプロセッサ210は、通常処理、診断処理及び消去処理を行うモジュールとして、図3に示すように、アプリケーションプログラムの実行によってイベントマネージャ210A、消去要求受付部210B、診断部210C及び故障情報消去部210Dを実装する。 As shown in FIG. 3, the processor 210 of the electronic control unit 200 is a module that performs normal processing, diagnostic processing, and erasing processing. As shown in FIG. The erasing unit 210D is implemented.

イベントマネージャ210Aは、電子制御装置200に接続された診断ツール500から要求を受信したことを契機として、これを解析して消去要求であるか否かを判定し、消去要求であれば消去要求受付部210Bに対して処理要求を送信する。消去要求受付部210Bは、イベントマネージャ210Aから消去要求を受信したことを契機として、揮発性メモリ230に確保されている消去フラグFLGをセット、例えば、消去フラグFLGをTRUEにする。ここで、消去フラグFLGが、消去要求の有無を表すフラグの一例として挙げられる。 When event manager 210A receives a request from diagnostic tool 500 connected to electronic control unit 200, event manager 210A analyzes the request to determine whether or not it is an erasure request. A processing request is transmitted to the section 210B. When the erasure request receiving unit 210B receives the erasure request from the event manager 210A, the erasure request receiving unit 210B sets the erasure flag FLG secured in the volatile memory 230, for example, to TRUE. Here, the erasure flag FLG is an example of a flag indicating whether or not there is an erasure request.

診断部210Cは、所定のスケジュールに従って診断対象の機能を診断するタイミングになったことを契機として、揮発性メモリ230の消去フラグFLGを参照し、消去フラグFLGがセットされていれば、故障情報消去部210Dに消去要求を送信して消去フラグFLGをクリア、例えば、消去フラグFLGをFALSEにする。また、診断部210Cは、揮発性メモリ230の消去フラグFLGがセットされていない、即ち、消去フラグFLGがクリアされていれば、周知の診断処理を実行する。さらに、診断部210Cは、診断処理を実行した結果、診断対象たる機能の故障を検知すると、これを特定可能な故障情報INFを不揮発性メモリ220に書き込んで保存する。故障情報消去部210Dは、診断部210Cから消去要求を受信したことを契機として、消去対象の故障情報INFを不揮発性メモリ220から消去する。 Diagnosis unit 210C refers to erasure flag FLG in volatile memory 230 when the timing for diagnosing a function to be diagnosed according to a predetermined schedule has come, and if erasure flag FLG is set, failure information is erased. An erasure request is sent to the unit 210D to clear the erasure flag FLG, for example, to set the erasure flag FLG to FALSE. Further, if the erasure flag FLG of the volatile memory 230 is not set, that is, if the erasure flag FLG is cleared, the diagnosis unit 210C executes well-known diagnosis processing. Further, when the diagnosis unit 210</b>C detects a failure in the function to be diagnosed as a result of executing the diagnosis process, the diagnosis unit 210</b>C writes and stores failure information INF that can identify the failure in the nonvolatile memory 220 . The fault information erasing unit 210D erases the fault information INF to be erased from the non-volatile memory 220 when the erasure request is received from the diagnosis unit 210C.

図4は、イベントマネージャ210Aが診断ツール500から要求を受信したことを契機として実行する、要求解析処理の一例を示している。 FIG. 4 shows an example of request analysis processing that is executed when the event manager 210A receives a request from the diagnostic tool 500 as a trigger.

ステップ10(図4では、「S10」と略記する。以下同様。)では、イベントマネージャ210Aが、診断ツール500から受信した要求の内容を解析する。具体的には、診断ツール500がCANプロトコルによって電子制御装置200に接続されている場合、イベントマネージャ210Aは、診断ツール500から受信したCANパケットのヘッダを参照し、予め定められた識別子によって要求内容を識別する。 In step 10 (abbreviated as “S10” in FIG. 4, hereinafter the same), the event manager 210A analyzes the content of the request received from the diagnostic tool 500. FIG. Specifically, when diagnostic tool 500 is connected to electronic control unit 200 via the CAN protocol, event manager 210A refers to the header of the CAN packet received from diagnostic tool 500 and uses a predetermined identifier to determine the request content. identify.

ステップ11では、イベントマネージャ210Aが、ステップ10における解析結果に応じて、要求が消去要求であるか否かを判定する。そして、イベントマネージャ210Aは、要求が消去要求であると判定すれば(Yes)、処理をステップ12へと進める。一方、イベントマネージャ210Aは、要求が処理要求でないと判定すれば(No)、処理をステップ13へと進める。 At step 11, the event manager 210A determines whether the request is an erasure request according to the analysis result at step 10. FIG. If the event manager 210A determines that the request is an erasure request (Yes), the process proceeds to step 12 . On the other hand, if the event manager 210A determines that the request is not a processing request (No), the process proceeds to step 13 .

ステップ12では、イベントマネージャ210Aが、消去要求受付部210Bに対して消去要求を送信する。その後、イベントマネージャ210Aは、要求解析処理を終了させる。 At step 12, the event manager 210A transmits an erasure request to the erasure request receiving section 210B. After that, the event manager 210A terminates the request analysis process.

ステップ13では、イベントマネージャ210Aが、診断ツール500からの要求を処理するモジュール(図示せず)に対して要求を送信する。その後、イベントマネージャ210Aは、要求解析処理を終了させる。なお、診断ツール500からの要求を受信したモジュールは、その要求に応じた処理を実行する。 At step 13, event manager 210A sends a request to a module (not shown) that handles requests from diagnostic tool 500. FIG. After that, the event manager 210A terminates the request analysis process. A module that receives a request from the diagnostic tool 500 executes processing according to the request.

かかる要求解析処理によれば、診断ツール500から電子制御装置200に要求があると、その要求が解析されて消去要求であるか否かが判定される。そして、要求が消去要求であれば、これが消去要求受付部210Bに送信される。一方、要求が消去要求でなければ、その要求を処理するモジュールに対して要求が送信される。要するに、イベントマネージャ210Aは、診断ツール500からの要求を解析し、その解析結果に応じて要求を処理するモジュールに振り分ける。 According to the request analysis process, when the diagnostic tool 500 issues a request to the electronic control unit 200, the request is analyzed to determine whether or not it is an erasure request. Then, if the request is an erasure request, this is transmitted to erasure request receiving section 210B. On the other hand, if the request is not an erase request, the request is sent to the module that handles the request. In short, the event manager 210A analyzes requests from the diagnostic tool 500 and distributes the requests to the modules that process them according to the results of the analysis.

図5は、イベントマネージャ210Aから消去要求を受信したことを契機として、消去要求受付部210Bが実行する、消去フラグセット処理の一例を示している。 FIG. 5 shows an example of erasure flag setting processing that is executed by the erasure request reception unit 210B upon receipt of an erasure request from the event manager 210A.

ステップ20では、消去要求受付部210Bが、揮発性メモリ230の消去フラグFLGをセットする。その後、消去要求受付部210Bは、消去フラグセット処理を終了させる。 At step 20 , the erasure request reception unit 210</b>B sets the erasure flag FLG of the volatile memory 230 . After that, the erasure request receiving unit 210B terminates the erasure flag setting process.

かかる消去フラグセット処理によれば、イベントマネージャ210Aから消去要求受付部210Bに消去要求があると、不揮発性メモリ220に保存されている故障情報INFを消去せずに、揮発性メモリ230の消去フラグFLGがセットされる。従って、揮発性メモリ230の消去フラグFLGがセットされた後には、これを参照することで、診断ツール500から消去要求があったことを任意時点で把握することができる。 According to the erasing flag setting process, when the event manager 210A issues an erasing request to the erasing request receiving unit 210B, the erasing flag of the volatile memory 230 is set without erasing the failure information INF stored in the nonvolatile memory 220. FLG is set. Therefore, after the erasure flag FLG of the volatile memory 230 is set, by referring to it, it is possible to know at any time that there is an erasure request from the diagnostic tool 500 .

図6は、所定のスケジュールに従って診断対象の機能を診断するタイミングになったとき、診断部210Cが実行する診断処理の一例を示している。なお、診断部210Cは、所定のスケジュールに従って、少なくとも1つの診断対象の機能について診断を行う。 FIG. 6 shows an example of diagnostic processing executed by the diagnostic section 210C when the timing for diagnosing a diagnostic target function according to a predetermined schedule comes. The diagnosis unit 210C diagnoses at least one function to be diagnosed according to a predetermined schedule.

ステップ30では、診断部210Cが、揮発性メモリ230の消去フラグFLGを参照してこれがセットされているか否かを判定することにより、診断対象の機能について消去要求があったか否かを判定する。そして、診断部210Cは、消去要求があったと判定すれば(Yes)、処理をステップ31へと進める。一方、診断部210Cは、消去要求がなかったと判定すれば(No)、処理をステップ33へと進める。 At step 30, the diagnostic unit 210C refers to the erasure flag FLG of the volatile memory 230 and determines whether or not it is set, thereby determining whether or not there is an erasure request for the function to be diagnosed. Then, if the diagnosis unit 210C determines that there is an erasure request (Yes), the process proceeds to step 31 . On the other hand, if the diagnosis unit 210C determines that there is no erasure request (No), the process proceeds to step 33 .

ステップ31では、診断部210Cが、故障情報消去部210Dに対して消去要求を送信する。 At step 31, the diagnosis section 210C transmits an erasure request to the failure information erasure section 210D.

ステップ32では、診断部210Cが、揮発性メモリ230の消去フラグFLGをクリアする。その後、診断部210Cは、診断処理を終了させる。 At step 32 , diagnostic unit 210</b>C clears erasure flag FLG of volatile memory 230 . After that, the diagnosis unit 210C terminates the diagnosis process.

ステップ33では、診断部210Cが、消去要求がなかったため、周知技術を利用して、診断対象の機能が正常であるか異常であるかを診断する。そして、診断部210Cは、診断対象の機能が異常であると診断すれば、これを特定可能な故障情報INFを不揮発性メモリ220に書き込んで保存する。その後、診断部210Cは、診断処理を終了させる。 At step 33, the diagnosis unit 210C diagnoses whether the function to be diagnosed is normal or abnormal using a well-known technique because there is no erasure request. If the diagnostic unit 210C diagnoses that the function to be diagnosed is abnormal, the diagnostic unit 210C writes and stores in the nonvolatile memory 220 failure information INF that can identify this. After that, the diagnosis unit 210C terminates the diagnosis process.

かかる診断処理によれば、所定のスケジュールに従って診断対象の機能を診断するタイミングになったとき、診断部210Cは、消去要求があったならば、故障情報消去部210Dに消去要求を送信するとともに、揮発性メモリ230の消去フラグFLGをクリアする。一方、診断部210Cは、消去要求がなかったならば、診断対象の機能について診断する。 According to this diagnosis process, when the timing for diagnosing the function to be diagnosed according to the predetermined schedule comes, the diagnosis unit 210C, if there is a deletion request, transmits the deletion request to the fault information deletion unit 210D, The erase flag FLG of the volatile memory 230 is cleared. On the other hand, the diagnosis unit 210C diagnoses the function to be diagnosed if there is no erasure request.

図7は、診断部210Cから故障情報消去部210Dに消去要求があったことを契機として、故障情報消去部210Dが実行する故障情報消去処理の一例を示している。 FIG. 7 shows an example of failure information erasing processing executed by the failure information erasing section 210D when the diagnosis section 210C issues an erasing request to the failure information erasing section 210D.

ステップ40では、故障情報消去部210Dが、消去要求に関連付けられた機能の故障情報INFを不揮発性メモリ220から消去する。その後、故障情報消去部210Dは、故障情報消去処理を終了させる。 At step 40, the failure information erasing section 210D erases from the non-volatile memory 220 the failure information INF of the function associated with the erasure request. After that, the failure information erasing section 210D terminates the failure information erasing process.

かかる故障情報消去処理によれば、診断部210Cから故障情報消去部210Dに消去要求があると、その消去要求に関連付けられた機能の故障情報INFが不揮発性メモリ220から消去される。 According to this failure information erasing process, when an erasure request is issued from the diagnosis part 210C to the failure information erasure part 210D, the failure information INF of the function associated with the erasure request is erased from the nonvolatile memory 220. FIG.

従って、イベントマネージャ210A、消去要求受付部210B、診断部210C及び故障情報消去部210Dは共同して、診断ツール500からの消去要求に応答して消去フラグFLGをセットし、診断対象の機能を診断するタイミングにおいて、消去フラグFLGがセットされていれば、診断処理を実行せずに故障情報INFを消去して消去フラグFLGをクリアする。一方、診断対象の機能を診断するタイミングにおいて、消去フラグFLGがセットされていなければ、故障情報INFを消去せずに診断を実行する。要するに、診断ツール500から消去要求があったときに、これに応答して故障情報INFを即時削除するのではなく、その後の診断タイミングになったときに、消去フラグFLGのセット状態に応じて、故障情報INFを消去して消去フラグFLGをクリアする処理と、診断対象の機能を診断する処理と、を排他的に実行する。 Therefore, the event manager 210A, the erasure request reception unit 210B, the diagnosis unit 210C, and the failure information erasure unit 210D jointly set the erasure flag FLG in response to the erasure request from the diagnostic tool 500, and diagnose the function to be diagnosed. If the erasing flag FLG is set at the timing, the fault information INF is erased and the erasing flag FLG is cleared without executing diagnostic processing. On the other hand, if the erase flag FLG is not set at the timing of diagnosing the function to be diagnosed, the diagnosis is executed without erasing the failure information INF. In other words, instead of immediately deleting the failure information INF in response to an erasure request from the diagnostic tool 500, when the subsequent diagnostic timing comes, according to the set state of the erasure flag FLG, A process of erasing the failure information INF and clearing the erasure flag FLG and a process of diagnosing the function to be diagnosed are exclusively executed.

ここで、本実施形態による電子制御装置200の作用及び効果について説明する。なお、以下の説明においては、所定時間間隔である制御サイクルにおいて、機能A,B及びCについて、診断処理A,B及びC、消去処理A,B及びC、並びに制御対象を制御する通常処理を夫々実行することを前提とする。また、通常処理は、少なくとも1つの処理を含んでいるが、これをまとめて表すこととする。 Here, the operation and effects of the electronic control unit 200 according to this embodiment will be described. In the following description, diagnostic processes A, B and C, erasing processes A, B and C, and normal processes for controlling controlled objects are performed for functions A, B and C in a control cycle that is a predetermined time interval. It is assumed that each is executed. In addition, normal processing includes at least one processing, but these are collectively represented.

従来技術では、図8に示すように、機能A~Cに関する故障情報INFの消去要求がないパターンAでは、診断処理A~C、及び通常処理を順次実行しても、制御サイクル内にすべての処理が終了する。また、機能Aに関する故障情報INFの消去要求があるパターンBでは、消去処理A、診断処理A~C、及び通常処理を順次実行しても、依然として制御サイクル内にすべての処理が終了する。しかしながら、機能A~Cに関する故障情報INFの消去要求があるパターンCでは、消去処理A~C、診断処理A~C、並びに通常処理を順次実行すると、制御サイクル内にすべての処理が終了せず、例えば、通常処理について処理あふれが発生してしまう。 In the prior art, as shown in FIG. 8, in the pattern A in which there is no request to erase the failure information INF related to the functions A to C, even if the diagnostic processes A to C and the normal process are sequentially executed, all of the data are processed within the control cycle. Processing ends. Also, in pattern B where there is a request to erase failure information INF related to function A, even if erasing process A, diagnostic processes A to C, and normal process are executed in sequence, all the processes are still completed within the control cycle. However, in pattern C, which requests deletion of fault information INF related to functions A to C, if deletion processing A to C, diagnostic processing A to C, and normal processing are sequentially executed, all processing will not be completed within the control cycle. For example, processing overflow occurs in normal processing.

本提案技術では、図9に示すように、機能A~Cに関する故障情報INFの消去要求がないパターンAでは、診断処理A~C、及び通常処理を順次実行しても、従来技術と同様に、制御サイクル内にすべての処理が終了する。機能Aに関する故障情報INFの消去要求があるパターンBでは、機能Aに関して診断処理Aを実行せずに消去処理Bのみを実行し、機能B及びCに関する診断処理B及びCが実行される。このため、パターンBでは、消去処理A、診断処理B及びC、並びに通常処理が順次実行され、制御サイクル内にすべての処理が終了するとともに、図8に示す従来技術よりも時間的な余裕があることを理解できるであろう。また、機能A~Cに関する故障情報INFの消去要求があるパターンCでは、機能A~Cに関して診断処理A~Cを実行せずに消去処理A~Cのみが実行される。このため、パターンCでは、消去処理A~C、及び通常処理が実行され、制御サイクル内にすべての処理が終了するとともに、図8に示す従来技術よりも大幅に時間的な余裕ができたことを理解できるであろう。 In the proposed technique, as shown in FIG. 9, in the pattern A where there is no request to erase the failure information INF related to the functions A to C, even if the diagnostic processes A to C and the normal process are sequentially executed, the , all processing is completed within the control cycle. In pattern B, in which there is a request to erase failure information INF related to function A, diagnostic process A is not executed for function A, only erasing process B is executed, and diagnostic processes B and C related to functions B and C are executed. For this reason, in pattern B, erasing process A, diagnostic processes B and C, and normal process are sequentially executed, and all the processes are completed within the control cycle. You can understand something. In addition, in pattern C where there is a request to erase failure information INF related to functions A to C, diagnostic processes A to C are not executed for functions A to C, and only erasing processes A to C are executed. For this reason, in pattern C, erasing processes A to C and normal processing are executed, and all the processes are completed within the control cycle. will be able to understand

本実施形態による電子制御装置200では、診断ツール500からの消去要求があったとき、その後の診断タイミングにおいて、消去要求に関連付けられた診断対象の機能についての診断が行われないが、その診断は次の制御サイクルにおいて実行されるため、故障情報の蓄積に関しての影響はほとんどない。 In the electronic control unit 200 according to the present embodiment, when there is an erasure request from the diagnostic tool 500, the diagnostic target function associated with the erasure request is not diagnosed at the subsequent diagnosis timing. Since it is executed in the next control cycle, there is almost no effect on accumulation of failure information.

なお、当業者であれば、様々な上記実施形態の技術的思想について、その一部を省略したり、その一部を適宜組み合わせたり、その一部を周知技術に置換したりすることで、新たな実施形態を生み出せることを容易に理解できるであろう。 It should be noted that those skilled in the art can omit some of the technical ideas of the above-described embodiments, appropriately combine some of them, or replace some of them with well-known techniques to create new It will be readily understood that various embodiments can be produced.

その一例を挙げると、イベントマネージャ210Aは、消去要求受付部210Bに対して消去要求を送信する代わりに、自分自身で揮発性メモリ230の消去フラグFLGをセットするようにしてもよい。この場合には、電子制御装置200のプロセッサ210は、消去要求受付部210Bを実装する必要がない。 For example, the event manager 210A may set the erasure flag FLG of the volatile memory 230 by itself instead of transmitting the erasure request to the erasure request reception unit 210B. In this case, the processor 210 of the electronic control unit 200 does not need to implement the erasure request receiving section 210B.

診断部210Cは、故障情報消去部210Dに対して消去要求を送信する代わりに、自分自身で不揮発性メモリ220から故障情報INFを消去するようにしてもよい。この場合、電子制御装置200のプロセッサ210は、故障情報消去部210Dを実装する必要はない。 Diagnosis section 210C may erase failure information INF from non-volatile memory 220 by itself instead of sending an erasure request to failure information erasure section 210D. In this case, the processor 210 of the electronic control unit 200 does not need to implement the failure information erasing section 210D.

200 電子制御装置
220 不揮発性メモリ
500 診断ツール(外部装置)
FLG 消去フラグ(フラグ)
INF 故障情報
200 electronic controller 220 non-volatile memory 500 diagnostic tool (external device)
FLG Erase flag (flag)
INF Failure information

Claims (5)

診断対象の機能の故障情報が不揮発性メモリに保存された電子制御装置であって、
外部装置から前記故障情報の消去要求があったとき、消去要求の有無を表すフラグをセットし、
所定のスケジュールに従って前記診断対象の機能を診断するタイミングになったとき、前記フラグのセット状態に応じて、前記故障情報を消去して前記フラグをクリアする処理と、前記診断対象の機能を診断する処理と、を排他的に実行する、
電子制御装置。
An electronic control unit in which failure information of a function to be diagnosed is stored in a non-volatile memory,
when an external device requests erasure of the fault information, setting a flag indicating whether or not there is an erasure request;
When the timing for diagnosing the function to be diagnosed according to a predetermined schedule is reached, a process of erasing the fault information and clearing the flag according to the set state of the flag, and diagnosing the function to be diagnosed. to exclusively execute the process and
electronic controller.
前記診断対象の機能を診断するタイミングになったとき、前記フラグがセットされていれば前記故障情報を消去して前記フラグをクリアする処理を実行し、前記フラグがセットされていなければ前記診断対象の機能を診断する処理を実行する、
請求項1に記載の電子制御装置。
When it is time to diagnose the function to be diagnosed, if the flag is set, the fault information is erased and the flag is cleared; if the flag is not set, the diagnosis target perform a process that diagnoses the functionality of the
The electronic control unit according to claim 1.
前記消去要求は、前記診断対象の機能ごとに行われる、
請求項1又は請求項2に記載の電子制御装置。
The erasure request is made for each function to be diagnosed.
The electronic control device according to claim 1 or 2.
前記外部装置は、着脱可能に接続される診断ツールである、
請求項1~請求項3のいずれか1つに記載の電子制御装置。
The external device is a detachably connected diagnostic tool,
The electronic control device according to any one of claims 1 to 3.
診断対象の機能の故障情報が不揮発性メモリに保存された電子制御装置が、
外部装置から前記故障情報の消去要求があったとき、消去要求の有無を表すフラグをセットし、
所定のスケジュールに従って前記診断対象の機能を診断するタイミングになったとき、前記フラグのセット状態に応じて、前記故障情報を消去して前記フラグをクリアする処理と、前記診断対象の機能を診断する処理と、を排他的に実行する、
故障情報の消去方法。
An electronic control unit in which failure information of a function to be diagnosed is stored in a non-volatile memory,
when an external device requests erasure of the fault information, setting a flag indicating whether or not there is an erasure request;
When the timing for diagnosing the function to be diagnosed according to a predetermined schedule is reached, a process of erasing the fault information and clearing the flag according to the set state of the flag, and diagnosing the function to be diagnosed. to exclusively execute the process and
How to clear fault information.
JP2021081703A 2021-05-13 2021-05-13 Electronic control device and method for erasing malfunction information Active JP7486460B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021081703A JP7486460B2 (en) 2021-05-13 2021-05-13 Electronic control device and method for erasing malfunction information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021081703A JP7486460B2 (en) 2021-05-13 2021-05-13 Electronic control device and method for erasing malfunction information

Publications (2)

Publication Number Publication Date
JP2022175365A true JP2022175365A (en) 2022-11-25
JP7486460B2 JP7486460B2 (en) 2024-05-17

Family

ID=84145470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021081703A Active JP7486460B2 (en) 2021-05-13 2021-05-13 Electronic control device and method for erasing malfunction information

Country Status (1)

Country Link
JP (1) JP7486460B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4557042B2 (en) 2008-04-23 2010-10-06 株式会社デンソー Electronic control device and vehicle control system
JP5278498B2 (en) 2011-06-03 2013-09-04 株式会社デンソー Data storage device
JP6180462B2 (en) 2015-05-22 2017-08-16 三菱電機株式会社 Automotive electronic control device
JP7205245B2 (en) 2019-01-18 2023-01-17 株式会社デンソー electronic controller

Also Published As

Publication number Publication date
JP7486460B2 (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US20070021847A1 (en) Distributed control system
US8065464B2 (en) Method for transmitting data from and to a control device
US6243627B1 (en) Electronic control system and method for erasing abnormality data generated during controller reloading
JP2007002760A (en) Electronic control device
JP5190368B2 (en) Electronic control system and electronic control device
US20110118933A1 (en) Vehicle diagnosing apparatus
JP2010174891A (en) Method for adjusting control device and unit for adjusting the same
US20080052560A1 (en) Field bus communication diagnosing device and field bus communication diagnosing method
JP2007034910A (en) Multi-cpu system and scheduler
JP3969130B2 (en) Vehicle data recorder
CN113227924B (en) Data distribution control device, data distribution control method, and computer-readable recording medium
JP2022175365A (en) Electronic control device and failure information erasing method
JP5305239B2 (en) Vehicle communication control device
JP2003172199A (en) Program rewriting system for vehicular electronic control unit
US20220197747A1 (en) Electronic control device and usage of non-volatile memory
JP2007002758A (en) Electronic control device
WO2006128148A1 (en) System and method for bypassing execution of an algorithm
JP6717184B2 (en) In-vehicle control device
JP3979202B2 (en) In-vehicle communication system
JP5182583B2 (en) Vehicle communication control device
JP7140011B2 (en) Gateway device
JP2006202296A (en) Method and apparatus for network-based triggering in instrument system
JP2009236026A (en) Vehicle information storage device, device information data storage system, and device information data storage method
WO2023123278A1 (en) Vehicle diagnosis method, diagnosis connector and diagnosis device
CN112311615B (en) Control method and device of network diagnosis function and related product

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240327

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240507