DE102018210868A1 - Electronic control unit - Google Patents

Electronic control unit Download PDF

Info

Publication number
DE102018210868A1
DE102018210868A1 DE102018210868.4A DE102018210868A DE102018210868A1 DE 102018210868 A1 DE102018210868 A1 DE 102018210868A1 DE 102018210868 A DE102018210868 A DE 102018210868A DE 102018210868 A1 DE102018210868 A1 DE 102018210868A1
Authority
DE
Germany
Prior art keywords
ecu
information item
progress information
rewrite
block
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
DE102018210868.4A
Other languages
German (de)
Inventor
Danki Kakamu
Kazuhiro Uehara
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Publication of DE102018210868A1 publication Critical patent/DE102018210868A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)
  • Memory System (AREA)
  • Stored Programmes (AREA)

Abstract

Eine elektronische Steuereinheit (13) weist ein ROM (34) als einen wiederbeschreibbaren Speicher auf. Das ROM erfährt das Umschreiben derart, dass die Daten blockweise gelöscht und anschließend Zieldaten in jeden Block geschrieben werden, der einen Löschzustand aufweist, nachdem alle der Daten gelöscht wurden. Die elektronische Steuereinheit weist einen Informationselementerfassungsabschnitt (S85) und einen Speicherungsausführungsabschnitt (S95, S105, S110) auf. Jedes Mal, wenn das Fortschrittsinformationselement erfasst wird, speichert der Speicherungsausführungsabschnitt das erfasste Fortschrittsinformationselement in wenigstens einem von mehreren Verwaltungsblöcken, derart, dass das erfasste Fortschrittsinformationselement in einem Verwaltungsblock, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde, unter den mehreren Verwaltungsblöcken gespeichert wird.

Figure DE102018210868A1_0000
An electronic control unit (13) has a ROM (34) as a rewritable memory. The ROM undergoes the rewrite so that the data is erased block by block, and then destination data is written to each block having an erase state after all of the data has been erased. The electronic control unit has an information element detection section (S85) and a storage execution section (S95, S105, S110). Each time the progress information item is detected, the storage execution section stores the acquired progress information item in at least one of a plurality of management blocks such that the acquired progress information item in a management block other than a management block in which the progress information item was stored at a previous time, is stored under the multiple management blocks.
Figure DE102018210868A1_0000

Description

Die vorliegende Erfindung betrifft eine elektronische Steuereinheit, die einen wiederbeschreibbaren Speicher aufweist.The present invention relates to an electronic control unit having a rewritable memory.

Die JP 2005-056144 A beschreibt eine elektronische Steuereinheit, die einen nichtflüchtigen Speicher aufweist, der ein wiederbeschreibbarer Speicher ist.The JP 2005-056144 A describes an electronic control unit having a nonvolatile memory which is a rewritable memory.

Wenn Daten in einem nichtflüchtigen Speicher umgeschrieben werden, werden die in dem nichtflüchtigen Speicher gespeicherten Daten blockweise gelöscht; anschließend werden Zieldaten, alle vorbestimmten mehreren Bytes, in den Block geschrieben, in dem die Daten gelöscht worden sind. Die Zieldaten kennzeichnen Daten als ein Umschreibeziel. D.h., das Umschreiben eines nichtflüchtigen Speichers wird erzielt, indem einer oder mehrere Blöcke der Reihe nach umgeschrieben werden. In der JP 2005-056144 A speichert die elektronische Steuereinheit das Informationselement (nachstehend als das Verlaufsinformationselement bezeichnet), das einen Block anzeigt, in dem ein Umschreiben abgeschlossen ist, in einem vorbestimmten Block in dem nichtflüchtigen Speicher.When data is rewritten in a nonvolatile memory, the data stored in the nonvolatile memory is erased in blocks; subsequently, target data, all predetermined multiple bytes, are written in the block in which the data has been deleted. The target data identifies data as a rewrite target. That is, rewrite of a nonvolatile memory is achieved by rewriting one or more blocks in turn. In the JP 2005-056144 A The electronic control unit stores the information item (hereinafter referred to as the history information item) indicating a block in which rewriting is completed in a predetermined block in the nonvolatile memory.

Ferner werden, in der obigen elektronischen Steuereinheit, die Daten, die in einem Block gespeichert werden, der das Verlaufsinformationselement speichert, gelöscht, und wird anschließend das neue Verlaufsinformationselement in den Block geschrieben; hierdurch wird das Verlaufsinformationselement aktualisiert. Es soll ein Fall angenommen werden, in dem die Daten eines Blocks, der das Verlaufsinformationselement speichert, gelöscht werden und die Energieversorgung des nichtflüchtigen Speichers ausgeschaltet wird. In solch einem Fall kann das Verlaufsinformationselement verloren gehen.Further, in the above electronic control unit, the data stored in a block storing the history information item is deleted, and then the new history information item is written in the block; This updates the history information item. Suppose a case where the data of one block storing the history information is cleared, and the power supply of the nonvolatile memory is turned off. In such a case, the history information element may be lost.

Gemäß einem Aspekt der vorliegenden Erfindung wird eine elektronische Steuereinheit mit einem nichtflüchtigen Speicher mit einer Technologie bereitgestellt, die das Informationselement, das ein Voranschreiten bzw. einen Fortschritt bei einem Umschreiben in dem nichtflüchtigen Speicher beschreibt, auch dann beibehält, wenn die Energieversorgung ausgeschaltet wird.According to one aspect of the present invention, there is provided an electronic control unit having a nonvolatile memory with a technology that maintains the information item describing progress in rewrite in the nonvolatile memory even when the power supply is turned off.

Gemäß einem Aspekt der vorliegenden Erfindung wird eine elektronische Steuereinheit, die einen nichtflüchtigen Speicher aufweist, der ein wiederbeschreibbarer Speicher ist, wie folgt bereitgestellt. Der nichtflüchtige Speicher weist mehrere Blöcke auf, die jeweils einen Speicherbereich mit einem vorbestimmten Datenvolumen bereitstellen. Der nichtflüchtige Speicher ist derart konfiguriert, dass (i) gespeicherte Daten blockweise gelöscht werden, (ii) ein Block, sobald dessen gespeicherte Daten gelöscht sind, einen Löschzustand annimmt, und (iii) anschießend Zieldaten, die Daten als ein Umschreibeziel sind, in den Block geschrieben werden, der den Löschzustand aufweist.According to one aspect of the present invention, an electronic control unit having a nonvolatile memory which is a rewritable memory is provided as follows. The nonvolatile memory has a plurality of blocks each providing a memory area having a predetermined data volume. The nonvolatile memory is configured to (i) erase stored data in blocks, (ii) to accept an erase state as soon as its stored data is erased, and then (iii) to include destination data which is a rewrite destination Block are written, which has the erase state.

Die elektronische Steuereinheit weist einen Informationserfassungsabschnitt und einen Speicherungsausführungsabschnitt auf.The electronic control unit has an information acquisition section and a storage execution section.

Der Informationserfassungsabschnitt ist dazu ausgelegt, wiederholt das Fortschrittsinformationselement zu erfassen, das einen Umschreibefortschrittsgrad anzeigt. Jedes Mal, wenn ein Fortschrittsinformationselement erfasst wird, ist der Speicherungsausführungsabschnitt dazu ausgelegt, das erfasste Fortschrittsinformationselement in wenigstens einem von mehreren vorbestimmten Verwaltungsblöcken zu speichern, die sich von einem Block unterscheiden, in dem die Zieldaten gespeichert werden. Der Speicherungsausführungsabschnitt ist ferner dazu ausgelegt, das erfasste Fortschrittsinformationselement an einem aktuellen Zeitpunkt in einem Verwaltungsblock unter den mehreren Verwaltungsblöcken zu speichern, der sich von einem Verwaltungsblock unterscheidet, in dem ein Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde.The information acquiring section is configured to repeatedly detect the progress information item indicating a rewriting advance degree. Each time a progress information item is detected, the storage execution section is configured to store the acquired progress information item in at least one of a plurality of predetermined management blocks other than a block in which the destination data is stored. The storage execution section is further configured to store the acquired progress information item at a current time in a management block among the plurality of management blocks different from a management block in which a progress information item has been stored at a previous time.

Solch eine Konfiguration ermöglicht es dem nichtflüchtigen Speicher, das Fortschrittsinformationselement, das an dem aktuellen Zeitpunkt neu erfasst wird, in einem Verwaltungsblock unter den mehreren Verwaltungsblöcken zu speichern, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an dem vorherigen Zeitpunkt gespeichert wurde. D.h., auch wenn die Versorgung elektrischer Energie zu dem nichtflüchtigen Speicher während eines Umschreibens des Fortschrittsinformationselements stoppt, ist jeder der mehreren Verwaltungsblöcke in der Lage, das Fortschrittsinformationselement zu speichern. Dies ermöglicht es der elektronischen Steuereinheit mit einem nichtflüchtigen Speicher, das Informationselement, das einen Fortschritt beim Umschreiben im nichtflüchtigen Speicher beschreibt, auch dann zu halten, wenn die Versorgung elektrischer Energie ausgeschaltet wird.Such a configuration enables the nonvolatile memory to store the progress information item newly detected at the current time in a management block among the plurality of management blocks different from a management block in which the progress information item has been stored at the previous time. That is, even if the supply of electric power to the nonvolatile memory stops during rewriting of the progress information item, each of the plurality of management blocks is capable of storing the progress information item. This allows the electronic control unit having a nonvolatile memory to hold the information item describing progress in rewriting in the nonvolatile memory even when the power supply is turned off.

Es wird angemerkt, dass die Bezugszeichen in Klammern in den Ansprüchen, die ein Korrespondenzverhältnis zu bestimmten Elementen aufzeigen, die in der nachstehenden Ausführungsform als ein Beispiel beschrieben sind, den Schutzumfang der vorliegenden Erfindung nicht beschränken.It is noted that the reference numerals in parentheses in the claims indicating a correspondence relationship to certain elements described as an example in the following embodiment do not limit the scope of the present invention.

Die obigen und weitere Aufgaben, Eigenschaften und Vorteile der vorliegenden Erfindung sind aus der nachfolgenden detaillierten Beschreibung unter Bezugnahme auf die beigefügten Zeichnungen näher ersichtlich. In den Zeichnungen zeigt:

  • 1 ein Blockdiagramm zur Veranschaulichung einer Konfiguration eines Fahrzeugsteuersystems;
  • 2 eine Abbildung zur Veranschaulichung eines Speicherbereichs eines ROM;
  • 3 eine Abbildung zur Veranschaulichung von mehreren Umschreibeabläufen für ein Steuerprogramm;
  • 4 eine Abbildung zur Veranschaulichung einer Verarbeitungssequenz, wenn ein Umschreibeprozess aus einem Hauptablauf unter mehreren Umschreibeabläufen gestartet wird;
  • 5 eine Abbildung zur Veranschaulichung von Übergängen des Fortschrittsinformationselements in der 4;
  • 6 eine Abbildung zur Veranschaulichung einer Verarbeitungssequenz, wenn ein Umschreibeprozess aus einem zwischenrangigen Ablauf unter mehreren Umschreibeabläufen neu gestartet wird;
  • 7 eine Abbildung zur Veranschaulichung von Übergängen des Fortschrittsinformationselements in der 6;
  • 8 ein Ablaufdiagramm eines von einer ECU ausgeführten Startprozesses;
  • 9 ein Ablaufdiagramm eines von einer ECU ausgeführten Umschreibeprozesses (1/2);
  • 10 ein Ablaufdiagramm eines von einer ECU ausgeführten Umschreibeprozesses (2/2); und
  • 11 ein Ablaufdiagramm eines von einer externen Vorrichtung ausgeführten externen Prozesses.
The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description made with reference to the accompanying drawings. In the drawings shows:
  • 1 a block diagram illustrating a configuration of a vehicle control system;
  • 2 an illustration for illustrating a storage area of a ROM;
  • 3 an illustration illustrating a plurality of rewrite processes for a control program;
  • 4 an illustration for illustrating a processing sequence when a rewrite process is started from a main flow among a plurality of rewrite processes;
  • 5 an illustration illustrating transitions of the progress information item in the 4 ;
  • 6 FIG. 4 is an illustration illustrating a processing sequence when a rewrite process is restarted from an interim flow among a plurality of rewrite processes; FIG.
  • 7 an illustration illustrating transitions of the progress information item in the 6 ;
  • 8th a flowchart of a starting process executed by an ECU;
  • 9 a flowchart of a rewrite process (1/2) performed by an ECU;
  • 10 a flowchart of a rewrite process (2/2) performed by an ECU; and
  • 11 a flowchart of an executed by an external device external process.

Nachstehend ist eine Ausführungsform der vorliegenden Erfindung unter Bezugnahme auf die Zeichnungen beschrieben.Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[Konfiguration][Configuration]

Ein in der 1 gezeigtes Fahrzeugsteuersystem 1 ist ein System, das einen Umschreibeprozess für ein Steuerprogramm und/oder Daten in einer ECU (elektronische Steuereinheit) 13 ausführt, die in einem In-Vehicle-Steuersystem 10 enthalten ist, das in einem Fahrzeug, wie beispielsweise einem Pkw, befestigt ist. Der Umschreibeprozess beinhaltet (i) ein Umschreiben eines Steuerprogramms und/oder von Daten, die zuvor in der ECU 13 gespeichert wurden, und (ii) ein Schreiben eines Steuerprogramms und/oder von Daten, erstmals, in die ECU 13.An Indian 1 shown vehicle control system 1 is a system that executes a rewrite process for a control program and / or data in an ECU (Electronic Control Unit) 13 used in an in-vehicle control system 10 contained in a vehicle such as a car. The rewrite process involves (i) rewriting a control program and / or data previously stored in the ECU 13 and (ii) writing a control program and / or data, for the first time, to the ECU 13 ,

Das Fahrzeugsteuersystem 1 weist ein In-Vehicle-Steuersystem 10 und eine externe Vorrichtung 20 auf. Die externe Vorrichtung 20, die eine Vorrichtung ist, die sich außerhalb des Fahrzeugs befindet, in dem das In-Vehicle-Steuersystem 10 befestigt ist, kann ein Zentrum 21 und eine Diagnosevorrichtung 22 umfassen.The vehicle control system 1 has an in-vehicle control system 10 and an external device 20 on. The external device 20 , which is a device located outside the vehicle in which the in-vehicle control system 10 fixed, can be a center 21 and a diagnostic device 22 include.

Das Zentrum 21 ist fix an einem vorbestimmten Ort angeordnet. Das Zentrum 21 weist eine Kommunikationsvorrichtung und einen Computer mit einer CPU und einem Speicher, wie beispielsweise ein RAM, ein ROM (alle nicht gezeigt), auf. Der Speicher speichert ein Steuerprogramm. Wenn die Aktualisierung eines in der ECU 13 in dem In-Vehicle-Steuersystem 10 gespeicherten Steuerprogramms erforderlich ist, sendet das Zentrum 21 ein neues Steuerprogramm, das in dem Speicher des Zentrums 21 gespeichert ist, und schreibt das Steuerprogramm in der ECU 13 um.The center 21 is fixedly arranged at a predetermined location. The center 21 has a communication device and a computer having a CPU and a memory such as a RAM, a ROM (all not shown). The memory stores a control program. When updating one in the ECU 13 in the in-vehicle control system 10 stored control program is required, sends the center 21 a new control program stored in the memory of the center 21 is stored and writes the control program in the ECU 13 around.

Die Diagnosevorrichtung 22 empfängt die Daten über die ECU 13, die als ein Diagnoseziel dient, von der ECU 13; und diagnostiziert ein Fahrzeug, in dem das In-Vehicle-Steuersystem 10 befestigt ist, während sie die in der ECU 13 gespeicherten Daten umschreibt, in Abhängigkeit des Diagnoseergebnisses. Die Diagnosevorrichtung 22 weist eine Kommunikationsvorrichtung und einen Computer mit einer CPU und einem Speicher, wie beispielsweise ein RAM, ein ROM (alle nicht gezeigt), auf.The diagnostic device 22 receives the data via the ECU 13 serving as a diagnostic target from the ECU 13 ; and diagnoses a vehicle in which the in-vehicle control system 10 attached while in the ECU 13 stored data, depending on the diagnostic result. The diagnostic device 22 has a communication device and a computer having a CPU and a memory such as a RAM, a ROM (all not shown).

Es sollte beachtet werden, dass die Diagnosevorrichtung 22 dazu ausgelegt sein kann, ein neues Steuerprogramm, das im Speicher der Diagnosevorrichtung 22 gespeichert ist, zu senden und ein Steuerprogramm in der ECU 13 in dem In-Vehicle-Steuersystem 10 umzuschreiben, wenn die Aktualisierung des in der ECU 13 gespeicherten Steuerprogramms erforderlich ist.It should be noted that the diagnostic device 22 may be designed to be a new control program stored in the memory of the diagnostic device 22 is stored, send and a control program in the ECU 13 in the in-vehicle control system 10 rewrite when updating the ECU 13 stored control program is required.

Das In-Vehicle-Steuersystem 10, das die ECU 13 aufweist, kann eine Fahrzeugaußenkommunikationsvorrichtung (nachstehend als DCM-ECU, d.h. Datenkommunikationsmodul-ECU bezeichnet) 11 und ein zentrales Gateway (nachstehend als C-GW bezeichnet) 12 aufweisen. Die DCM-ECU 11, das C-GW 12 und die ECU 13 sind über eine Kommunikationsleitung 15 verbunden, um gemäß einem CAN-Standard miteinander zu kommunizieren. Es sollte beachtet werden, dass CAN eine eingetragene Marke ist.The in-vehicle tax system 10 that the ECU 13 An outside vehicle communication device (hereinafter referred to as DCM-ECU, ie, data communication module ECU) 11 and a central gateway (hereinafter referred to as C-GW) 12 may comprise. The DCM-ECU 11 , the C-GW 12 and the ECU 13 are via a communication line 15 connected to communicate with each other according to a CAN standard. It should be noted that CAN is a registered trademark.

D.h., die ECU 13 ist über die Kommunikationsleitung 15 mit der DCM-ECU 11 und dem C-GW 12 verbunden, um miteinander zu kommunizieren, um so ein Fahrzeugnetzwerk zu bilden. Obgleich nicht in den Zeichnungen gezeigt, kann die ECU 13 über die Kommunikationsleitung 15 mit einer anderen ECU verbunden sein, die in dem Fahrzeug befestigt ist, um so ein Fahrzeugnetzwerk zu bilden. Es sollte beachtet werden, dass die externe Vorrichtung 20 gleichbedeutend mit einer Vorrichtung außerhalb eines Fahrzeugnetzwerks ist.That is, the ECU 13 is over the communication line 15 with the DCM-ECU 11 and the C-GW 12 connected to communicate with each other, thus forming a vehicle network. Although not shown in the drawings, the ECU may 13 over the communication line 15 be connected to another ECU which is mounted in the vehicle so as to form a vehicle network. It should be noted that the external device 20 is equivalent to a device outside a vehicle network.

Die DCM-ECU 11 ist eine Vorrichtung, die eine drahtlose Kommunikation mit dem Zentrum 21 ausführt. Das C-GW 12 ist eine Vorrichtung, die über die Kommunikationsleitung 5 mit der Diagnosevorrichtung 22 verbunden wird und mit der Diagnosevorrichtung 22 gemäß einem CAN-Standard kommuniziert.The DCM-ECU 11 is a device that provides wireless communication with the center 21 performs. The C-GW 12 is a device that communicates over the communication line 5 with the diagnostic device 22 is connected and with the diagnostic device 22 communicates according to a CAN standard.

Die ECU 13 ist eine elektronische Steuereinheit, die ein Steuerziel steuert, das in dem Fahrzeug befestigt ist, wie beispielsweise ein Verbrennungsmotor, eine Bremse. Die ECU 13 weist einen Mikrocomputer mit einer CPU 31 und einen Halbleiterspeicher (nachstehend als Speicher 32 bezeichnet), wie beispielsweise ein RAM 33, ein ROM 34, auf. Die ECU 13 weist eine elektrische Energiequelleneinheit (nachstehend als Energiequelle bezeichnet) auf. Die ECU 13 ist dazu ausgelegt, eine elektrische Energieversorgung zu empfangen, wenn die Energiequelle eingeschaltet ist, und keine elektrische Energieversorgung empfangen zu können, wenn die Energiequelle ausgeschaltet ist.The ECU 13 is an electronic control unit that controls a control target mounted in the vehicle, such as an internal combustion engine, a brake. The ECU 13 has a microcomputer with a CPU 31 and a semiconductor memory (hereinafter referred to as memory 32 referred to), such as a RAM 33 , a ROM 34 , on. The ECU 13 has an electric power source unit (hereinafter referred to as an energy source). The ECU 13 is configured to receive an electric power supply when the power source is turned on and unable to receive an electric power supply when the power source is turned off.

Die CPU 31 ist eine Recheneinheit; das RAM 33 ist ein flüchtiger Speicher zur temporären Speicherung von Daten, wie beispielsweise eines Ergebnisses eines Betriebs durch die CPU 31. Das ROM 34 ist ein nichtflüchtiger Speicher, der einen wiederbeschreibbaren Speicherbereich enthält. Der nichtflüchtige Speicher kann beispielsweise einen Flash-Speicher, ein EEPROM umfassen. Das ROM 34 speichert die verschiedenen Programme, die durch die CPU 31 ausgeführt werden. Das ROM 34 ist nachstehend noch näher beschrieben.The CPU 31 is an arithmetic unit; the RAM 33 is a volatile memory for temporarily storing data, such as a result of operation by the CPU 31 , The ROM 34 is a nonvolatile memory containing a rewritable memory area. The nonvolatile memory may include, for example, a flash memory, an EEPROM. The ROM 34 stores the various programs by the CPU 31 be executed. The ROM 34 is described in more detail below.

Die verschiedenen Funktionen der ECU 13 werden durch die CPU 31 erzielt, die im ROM 34 gespeicherte Programme ausführt. Die ECU 13 erzielt das Umschreiben eines im ROM 34 gespeicherten Steuerprogramms, indem sie einen nachstehend noch beschriebenen Umschreibeprozess ausführt.The different functions of the ECU 13 be through the CPU 31 scored in the ROM 34 stored programs. The ECU 13 achieves the rewrite one in ROM 34 stored control program by executing a rewrite process described below.

Das ROM 34 enthält, wie in 2 gezeigt, einen nicht-wiederbeschreibbaren Bereich 341 und einen wiederbeschreibbaren Bereich 342; der nicht-wiederbeschreibbare Bereich 341 ist ein Bereich, in dem kein Umschreiben möglich ist, während der wiederbeschreibbare Bereich 342 ein Bereich ist, in dem ein Umschreiben möglich ist. Das ROM 34 enthält Blöcke, die jeweils einen Bereich mit einem vorbestimmten Datenvolumen, wie beispielsweise einige zehn Byte bis einige hunderte Byte, aufweisen.The ROM 34 contains, as in 2 shown a non-rewritable area 341 and a rewritable area 342 ; the non-rewritable area 341 is an area where rewriting is not possible during the rewritable area 342 is an area where rewriting is possible. The ROM 34 contains blocks each having a range of a predetermined data volume, such as several tens of bytes to several hundreds of bytes.

Im ROM 34 ist das Löschen von Daten in Stufen von Blöcken, d.h. Block für Block bzw. blockweise, gemäß einem Befehl von der CPU 31 möglich. Demgegenüber ist, im ROM 34, das Schreiben von Daten in Stufen von einem Byte oder mehreren Bytes, d.h. Byte für Byte bzw. byteweise oder mehrere Bytes für mehrere Bytes möglich; die mehreren Bytes können beispielsweise zwei Bytes oder vier Bytes sein. Ein Anfangszustand des ROM 34 ist als ein Zustand definiert, in dem 1 sen (d.h. eins(en)) als die Gesamtheit von logischen Werten in jeden Block von allen der Blöcke geschrieben sind. Genauer gesagt, jeder Block enthält nur 1 sen (d.h. eins(en)) als die Gesamtheit von logischen Werten. Ferner ist ein Löschzustand jedes Blocks des ROM 34 als ein Zustand definiert, in dem alle der Daten in jedem Block von allen der Blöcke vollständig gelöscht sind. Ein Umschreiben eines betreffenden Blocks, der irgendeiner der Blöcke ist, erfolgt derart, dass (i) der betreffende Block zunächst einen Löschzustand annimmt, nachdem die Daten in dem betreffenden Block gelöscht wurden, und (ii) anschließend Zieldaten in den betreffenden Block in dem Löschzustand geschrieben werden. Die Zieldaten entsprechen Daten als ein Ziel zum Umschreiben. Ein Block in einem Löschzustand enthält nur 1 (sen) (d.h. eins(en)) als die Gesamtheit von logischen Werten.In the ROM 34 is the deletion of data in stages of blocks, ie block by block, according to a command from the CPU 31 possible. In contrast, in ROM 34 , the writing of data in stages of one byte or several bytes, ie byte by byte or byte by byte or multiple bytes for several bytes possible; the multiple bytes may be, for example, two bytes or four bytes. An initial state of the ROM 34 is defined as a state where 1 sen (ie, one (s)) are written as the total of logical values in each block of all the blocks. More specifically, each block contains only 1 sen (ie, one (s)) as the set of logical values. Further, an erase state of each block of the ROM 34 is defined as a state in which all of the data in each block of all the blocks are completely deleted. Rewriting of a respective block that is any one of the blocks is such that (i) the block concerned first assumes an erase state after the data in the block in question has been erased, and (ii) subsequently, target data into that block in the erase state to be written. The target data corresponds to data as a rewrite target. A block in an erase state contains only 1 (sen) (ie, one (s)) as the set of logical values.

Der nicht-wiederbeschreibbare Bereich 341 speichert ein Umprogrammierungsprogramm. Das Umprogrammierungsprogramm ist ein Programm, das von der CPU 31 ausgeführt wird, um ein im wiederbeschreibbaren Bereich 342 gespeichertes Steuerprogramm umzuschreiben. Ein Umschreibeprozess beschreibt die Abläufe zum Umschreiben, wenn das Umprogrammierungsprogramm ausgeführt wird.The non-rewritable area 341 saves a reprogramming program. The reprogramming program is a program that comes from the CPU 31 is executed to a rewritable area 342 rewrite saved control program. A rewrite process describes the rewrite operations when the reprogrammer is run.

Der wiederbeschreibbare Bereich 342 speichert ein Steuerprogramm, ein Abschluss-Flag und ein Fortschrittsinformationselement. Das Steuerprogramm ist ein Programm für die CPU 31 zur Ausführung und Steuerung des Steuerziels der ECU 13.The rewritable area 342 stores a control program, a completion flag, and a progress information item. The control program is a program for the CPU 31 to carry out and control the tax objective of the ECU 13 ,

Es wird angemerkt, dass „Information“ hierin zählbar sowie nicht zählbar verwendet sein kann und „einer Information“ oder „einem Informationselement (d.h. einem informationellen Element)“ entsprechen kann. Folglich können „verschiedene Informationen“ verwendet und gleichbedeutend mit „mehreren Informationselementen (mehreren informationellen Elementen)“ sein. Ferner kann „Info“ in den Zeichnungen zur Vereinfachung als „Information“ verwendet sein. Ferner kann „Daten“ „einem Datenelement“ oder „einem Datum“ und ebenso „Daten“ oder „Datenelementen“ entsprechen.It is noted that "information" may be used herein as countable as well as non-countable, and may correspond to "an information" or "an informational element (i.e., an informational element)". Thus, "different information" may be used and may be synonymous with "multiple information elements (multiple informational elements)". Further, "info" in the drawings may be used for convenience as "information". Further, "data" may correspond to "a data item" or "a date" as well as "data" or "data items".

Das Abschluss-Flag ist ein Flag, das anzeigt, ob oder nicht ein Umschreiben eines Steuerprogramms in dem ROM 34 abgeschlossen ist; das Steuerprogramm dient als ein Umschreibeziel durch das Umprogrammierungsprogramm. Das Abschluss-Flag im gelöschten Zustand (AUS) zeigt den Zustand, in dem das Umschreiben für das Steuerprogramm nicht abgeschlossen ist; demgegenüber zeigt das Abschluss-Flag im gesetzten Zustand (EIN) den Zustand, in dem das Umschreiben für das Steuerprogramm abgeschlossen ist. Das Abschluss-Flag ist in einem Anfangszustand, der bei Beginn einer Ausführung des Umprogrammierungsprogramms angenommen wird, gelöscht (AUS).The completion flag is a flag indicating whether or not rewrite of a control program in the ROM 34 is completed; the control program serves as a rewrite target by the reprogramming program. The completion flag in the cleared state (OFF) shows the state in which the rewrite for the control program is not completed; In contrast, this shows Set flag (ON) the state in which the rewrite for the control program is completed. The completion flag is cleared (OFF) in an initial state assumed at the start of execution of the reprogramming program.

Das Fortschrittsinformationselement ist ein Informationselement, das einen Grad eines Fortschritts im ROM 34 beim Umschreiben für ein Steuerprogramm als ein Umschreibeziel durch ein Umprogrammierungsprogramm anzeigt. Das Fortschrittsinformationselement wird in einem von mehreren Verwaltungsblöcken in dem ROM 34 gespeichert. Die Verwaltungsblöcke entsprechen mehreren Blöcken, die innerhalb von mehreren Blöcken in dem ROM 34 vorbestimmt sind, und unterscheiden sich von den Blöcken, in die Zieldaten in das ROM 34 geschrieben werden.The progress information item is an information item that has a degree of progress in the ROM 34 when rewriting for a control program as a rewrite target by a reprogramming program. The progress information item is stored in one of a plurality of management blocks in the ROM 34 saved. The management blocks correspond to a plurality of blocks that are within multiple blocks in the ROM 34 are predetermined, and differ from the blocks in the destination data in the ROM 34 to be written.

Genauer gesagt, zwei verschiedene Blöcke eines ersten Informationsblocks 101 und eines zweiten Informationsblocks 102, die in dem wiederbeschreibbaren Bereich 342 in dem ROM 34 enthalten sind, sind jeweils gleichbedeutend mit Verwaltungsblöcken. Das Fortschrittsinformationselement, das in dem ersten Informationsblock 101 gespeichert wird, ist als ein erstes Informationselement bezeichnet; das Fortschrittsinformationselement, das in dem zweiten Informationsblock 102 gespeichert wird, ist als ein zweites Informationselement bezeichnet.More precisely, two different blocks of a first information block 101 and a second information block 102 in the rewritable area 342 in the ROM 34 are synonymous with management blocks. The progress information item contained in the first information block 101 is stored is referred to as a first information element; the progress information item contained in the second information block 102 is stored is referred to as a second information element.

Wie in 3 gezeigt, ist das ROM 34 dazu ausgelegt, das Umschreiben für ein Steuerprogramm aufgrund der Reihe von Ausführungen von mehreren vorbestimmten Abläufe zum Umschreiben durch die ECU 13 als ein Umschreibeziel zu erfahren. Die ECU 13 führt das Umschreiben für das Steuerprogramm auf der Grundlage der Kommunikation mit der externen Vorrichtung 20 aus, die entweder das Zentrum 21 oder die Diagnosevorrichtung 22 ist. Die mehreren Abläufe zum Umschreiben beinhalten einen Authentifizierungsablauf, einen Löschablauf, einen Schreibablauf, einen Verifizierungsablauf und einen Abschlussablauf.As in 3 shown is the ROM 34 adapted to rewrite a control program based on the series of executions of a plurality of predetermined rewrite procedures by the ECU 13 as a rewrite target. The ECU 13 performs the rewriting for the control program based on the communication with the external device 20 out, which is either the center 21 or the diagnostic device 22 is. The multiple rewrite operations include an authentication process, a deletion process, a write process, a verification process, and a completion process.

Wenn beispielsweise ein Ablauf (d.h. ein abgeschlossener Ablauf), dessen Ausführung durch die ECU 13 abgeschlossen ist, unter den mehreren Abläufen erkannt wird, kann der abgeschlossene Ablauf den Grad des Fortschritts beim Umschreiben für das Steuerprogramm beschreiben.If, for example, an expiration (ie a completed expiration), its execution by the ECU 13 is completed, is recognized among the multiple processes, the completed process can describe the degree of progress in rewriting for the control program.

Der Authentifizierungsablauf bestätigt oder authentifiziert, ob die externe Vorrichtung 20 ein korrekter Kommunikationspartner der ECU 13 ist. Der Authentifizierungsablauf entspricht beispielsweise A6 bis A8 in der 4, die nachstehend noch näher beschrieben ist. Der Löschablauf veranlasst einen Zielblock, in einen Löschzustand überzugehen, in Übereinstimmung mit einer Löschanfrage von der externen Vorrichtung 20; der Zielblock ist ein Block in dem ROM 34, in den ein Steuerprogramm, das als ein Umschreibeziel dient, geschrieben wird. Der Löschablauf entspricht beispielsweise A9 bis A12 in der 4.The authentication process confirms or authenticates whether the external device 20 a correct communication partner of the ECU 13 is. The authentication process corresponds, for example, A6 to A8 in the 4 , which is described in more detail below. The erase procedure causes a target block to transition to an erase state in accordance with an erase request from the external device 20 ; the target block is a block in the ROM 34 in which a control program serving as a rewrite target is written. The erase sequence corresponds for example to A9 to A12 in the 4 ,

Der Schreibablauf schreibt, in das ROM 34 der ECU 13, ein Steuerprogramm, das als ein Umschreibeziel dient und von der externen Vorrichtung 20 empfangen wird. Der Schreibablauf kann für jede von Datenteilen (Datenunterteilungen) erfolgen, wenn die Daten, die das Steuerprogramm als das Umschreibeziel beschreiben, in die Datenteile unterteilt sind. Jeder der Datenteile kann den Daten für einen Block entsprechen. Es sollte beachtet werden, dass, in der vorliegenden Ausführungsform, die ECU 13 betrieben wird, um eine ACK an die externe Vorrichtung 20 zu senden, wenn das Schreiben von jedem Datenteil abgeschlossen ist. Der Schreibablauf entspricht beispielsweise A13 bis A20 in der 4.The writing process writes to the ROM 34 the ECU 13 , a control program that serves as a rewrite target and from the external device 20 Will be received. The writing operation may be performed for each of data parts (data partitions) if the data describing the control program as the rewrite target is divided into the data parts. Each of the data parts may correspond to the data for one block. It should be noted that, in the present embodiment, the ECU 13 is operated to send an ACK to the external device 20 to send when the writing of each data part is completed. The writing sequence corresponds to A13 to A20 in the example 4 ,

Der Verifizierungsablauf verifiziert, ob das Steuerprogramm als das Umschreibeziel normal umgeschrieben ist. Der Verifizierungsablauf entspricht beispielsweise A21 bis A24 in der 4. Der Abschlussablauf bestimmt, ob das Umschreiben des Steuerprogramms als das Umschreibeziel abgeschlossen ist. Der Abschlussablauf entspricht beispielsweise A25 bis A27 in der 4.The verification process verifies that the control program is rewritten as the rewrite target normally. For example, the verification procedure corresponds to A21 through A24 in FIG 4 , The completion process determines whether the rewrite of the control program is completed as the rewrite target. The graduation procedure corresponds for example to A25 to A27 in the 4 ,

Die mehreren Abläufe zum Umschreiben erfolgen individuell in Folge (d.h. in der Reihenfolge) des Authentifizierungsablaufs, des Löschablaufs, des Schreibablaufs, des Verifizierungsablaufs und des Abschlussablaufs. Einem oder mehreren der Abläufe zum Umschreiben sind vorbestimmte Erkennungszeichen zugeordnet. Das Erkennungszeichen, das ein Symbol oder eine Zahl oder eine Kombination aus Symbol und Zahl ist, ermöglicht beispielsweise eine Erkennung eines entsprechenden Ablaufs für das Umschreiben.The multiple rewrite operations are performed individually in sequence (i.e., in order) of the authentication procedure, the deletion procedure, the writing procedure, the verification procedure, and the completion procedure. One or more of the processes for rewriting are assigned predetermined identification marks. For example, the identifier, which is a symbol or a number or a combination of symbol and number, allows recognition of a corresponding rewrite process.

In der vorliegenden Ausführungsform beinhalten die Daten, die ein Steuerprogramm als ein Umschreibeziel beschreiben, einen ersten Datenteil und einen zweiten Datenteil. Ferner werden die Erkennungszeichen den Abläufen wie folgt zugewiesen. Dem Löschablauf wird „1“ zugewiesen. Einem ersten Schreibablauf, der den ersten Datenteil schreibt, wird „2“ zugewiesen. Einem zweiten Schreibablauf, der den zweiten Datenteil schreibt, wird „3“ zugewiesen. Dem Verifizierungsablauf wird „4“ zugewiesen. Dem Abschlussablauf wird „5“ zugewiesen. Von den mehreren Umschreibeabläufen ist ein Ablauf, dem ein Erkennungszeichen zugewiesen wird, als ein zugewiesener Umschreibeablauf bezeichnet.In the present embodiment, the data describing a control program as a rewrite target includes a first data part and a second data part. Further, the flags are assigned to the processes as follows. The deletion procedure is assigned "1". A first write that writes the first data part is assigned "2". A second write that writes the second data part is assigned "3". The verification process is assigned a "4". The completion process is assigned "5". Of the multiple rewrite sequences, a process to which an identifier is assigned is referred to as an assigned rewrite operation.

[Verarbeitung] [Processing]

[Umschreibesequenz aus einem erstrangigen Umschreibeablauf][Rewrite sequence from a first-order rewrite process]

Nachstehend ist eine Verarbeitungssequenz beschrieben, die durch die ECU 13 erfolgt, die ein Umschreiben für ein Steuerprogramm ausführt, während sie mit der externen Vorrichtung 20 kommuniziert, auf der Grundlage eines Umschreibeprozesses. Es sollte beachtet werden, dass das Zentrum 21 beispielsweise als eine externe Vorrichtung 20 dient. Wenn die Diagnosevorrichtung 22 als eine externe Vorrichtung 20 dient, erfolgt die Verarbeitung in einer entsprechenden Sequenz.Next, a processing sequence described by the ECU 13 This will do a rewriting for a control program while it is communicating with the external device 20 communicates on the basis of a rewrite process. It should be noted that the center 21 for example as an external device 20 serves. If the diagnostic device 22 as an external device 20 serves processing in a corresponding sequence.

4 zeigt eine Umschreibeverarbeitungssequenz für ein Steuerprogramm aus einem erstrangigen Ablauf unter den mehreren Umschreibeabläufen in Fällen, in denen die ECU 13 aus einem Energie-AUS-Zustand in einen Energie-EIN-Zustand wechselt. Es sollte beachtet werden, dass der Zustand, in dem die Energiequelle der ECU 13 ausgeschaltet ist, als ein Energie-AUS-Zustand bezeichnet sein kann; der Zustand, in dem die Energiequelle der ECU 13 eingeschaltet ist, als ein Energie-EIN-Zustand bezeichnet sein kann. Die ECU 13 ist beispielsweise dazu ausgelegt, in einen Energie-AUS-Zustand zu wechseln, wenn die Kommunikation mit der externen Vorrichtung 20 gestoppt oder unterbrochen wird. 4 shows a rewrite processing sequence for a control program from a first-level process among the several rewrite processes in cases where the ECU 13 changes from an energy-off state to an energy-on state. It should be noted that the state in which the power source of the ECU 13 is off, may be referred to as an energy-off state; the state in which the power source of the ECU 13 is turned on, may be referred to as an energy ON state. The ECU 13 For example, it is designed to switch to an off-power state when communicating with the external device 20 stopped or interrupted.

Zunächst wechselt die ECU 13, in A1, in einen Energie-EIN-Zustand (EV EIN), in dem die elektrische Energiequelle der ECU 13 eingeschaltet ist. Dieser Energie-EIN-Zustand kann einen Zustand umfassen, in dem die elektrische Energiequelle der ECU 13 eingeschaltet wird, nachdem die elektrische Energiequelle der ECU 13 einmal ausgeschaltet wurde, da die Kommunikation mit der externen Vorrichtung 20 unterbrochen wurde.First, the ECU changes 13 , in A1, in a power-ON state (EV ON) in which the electrical power source of the ECU 13 is turned on. This power ON state may include a state in which the electric power source of the ECU 13 is turned on after the electric power source of the ECU 13 Once switched off, since the communication with the external device 20 was interrupted.

Anschließend bestätigt die ECU 13, in A2, das Abschluss-Flag, das gelöscht (AUS) ist. Hierauf folgend liest die ECU 13, in A3 und A4, da das Abschluss-Flag gelöscht (AUS) ist, ein Fortschrittsinformationselement aus dem ROM 34.Subsequently, the ECU confirms 13 in A2, the completion flag that is cleared (OFF). Following this, the ECU reads 13 , in A3 and A4, since the completion flag is cleared (OFF), a progress information item from the ROM 34 ,

Anschließend erkennt die ECU 13, in A5, einen Neustartablauf in Übereinstimmung mit gelesenen Fortschrittsinformationselement und meldet die ECU 13 den Neustartablauf an die externe Vorrichtung 20. Der Neustartablauf, der einer der mehreren Umschreibeabläufe ist, ist ein Ablauf, der das erste Mal geordert wird, wenn das Umschreiben wiederaufgenommen wird. In diesem Fall erkennt die ECU 13, als einen Neustartablauf, den Authentifizierungsablauf, der ein Hauptablauf unter den mehreren Umschreibeabläufen ist. Anschließend sendet die ECU 13 ein Informationselement, das den Neustartablauf anzeigt, an die externe Vorrichtung 20. Der Hauptablauf ist ein erstrangiger Ablauf, der unter den mehreren Abläufen das erste Mal ausgeführt wird, wenn das Umschreiben gestartet wird. Der Neustartablauf wird auf der Grundlage des Fortschrittsinformationselements in dem Umschreibeprozess erkannt, der nachstehend noch beschrieben ist.Then the ECU recognizes 13 , in A5, reboots in accordance with the read progress information item and notifies the ECU 13 the restart process to the external device 20 , The restart process, which is one of several rewrite operations, is a process that is ordered the first time the rewrite is resumed. In this case, the ECU recognizes 13 , as a restart process, the authentication process, which is a major flow among the multiple rewrite procedures. Subsequently, the ECU sends 13 an information item indicating the restarting process to the external device 20 , The main flow is a first-level flow that is executed for the first time among the multiple flows when the rewrite is started. The restart process is recognized on the basis of the progress information item in the rewrite process, which will be described later.

Anschließend, in A6, empfängt die ECU 13 eine ACK, die von der externen Vorrichtung 20 gesendet wird. Diese ACK ist eine Antwort, die anzeigt, dass der Neustartablauf von der externen Vorrichtung 20 empfangen wird. Anschließend, in A7, empfängt die ECU 13 eine Authentifizierungsanfrage, die von der externen Vorrichtung 20 gesendet wird. Die Authentifizierungsanfrage ist ein Kommunikationsrahmen, mit dem die externe Vorrichtung 20 die ECU 13 anfragt, die externe Vorrichtung 20 zu authentifizieren. Die Authentifizierungsanfrage beinhaltet ein Informationselement (nachstehend als Kenninformationselement bezeichnet) zur Erkennung der externen Vorrichtung 20.Subsequently, in A6, the ECU receives 13 an ACK coming from the external device 20 is sent. This ACK is a response indicating that the restart process is from the external device 20 Will be received. Subsequently, in A7, the ECU receives 13 an authentication request made by the external device 20 is sent. The authentication request is a communication frame with which the external device 20 the ECU 13 requests the external device 20 to authenticate. The authentication request includes an information element (hereinafter referred to as a characteristic information element) for recognizing the external device 20 ,

Anschließend, in A8, bestätigt die ECU 13, ob das Kenninformationselement über die externen Vorrichtung 20, das im Voraus im ROM 34 der ECU 13 gespeichert wurde, mit dem Kenninformationselement übereinstimmt, das in der Authentifizierungsanfrage enthalten ist. Die ECU 13 sendet eine ACK an die externe Vorrichtung 20, wenn beide übereinstimmen. Diese ACK ist eine Antwort, die anzeigt, dass die Authentifizierung der externen Vorrichtung 20 erfolgreich abgeschlossen ist.Subsequently, in A8, the ECU confirms 13 whether the characteristic information item on the external device 20 in advance in the ROM 34 the ECU 13 stored matches the identification information contained in the authentication request. The ECU 13 sends an ACK to the external device 20 if both match. This ACK is a response indicating that the authentication of the external device 20 successfully completed.

Anschließend, in A9, empfängt die ECU 13 eine Löschanfrage, die von der externen Vorrichtung 20 gesendet wird. Die Löschanfrage ist eine Anfrage, um jeden der Zielblöcke in einen Löschzustand zu versetzen. Die Zielblöcke sind Blöcke, die Daten als ein Umschreibeziel speichern, wenn der Ablauf (die Abläufe) unter den mehreren Abläufen nach dem Neustartablauf ausgeführt wird (werden). Im vorliegenden Fall entspricht der Hauptablauf dem Neustartablauf. Die empfangene Löschanfrage weist, als ein Löschziel, (i) alle Blöcke, die ein Steuerprogramm als ein Umschreibeziel speichern; (ii) den ersten Informationsblock 101; und (iii) den zweiten Informationsblock 102 zu.Subsequently, in A9, the ECU receives 13 a deletion request made by the external device 20 is sent. The delete request is a request to put each of the destination blocks in an erase state. The target blocks are blocks that store data as a rewrite target when executing the flow (s) among the multiple processes after the reboot process. In the present case, the main process corresponds to the restart process. The received delete request, as a deletion destination, indicates (i) all blocks storing a control program as a rewriting destination; (ii) the first information block 101 ; and (iii) the second information block 102 to.

Anschließend, in A10, führt die ECU 13 das Löschen für die Blöcke in Übereinstimmung mit der Löschanfrage aus. Das Löschen für die Blöcke bestimmt alle der logischen Werte der Bits in den zugewiesenen Blöcken als 1 (sen) (d.h. eins(en)), so wie es vorstehend beschrieben ist.Subsequently, in A10, the ECU leads 13 deleting for the blocks in accordance with the deletion request. The erase for the blocks determines all of the logical values of the bits in the allocated blocks as 1 (sen) (ie, one (s)) as described above.

Anschließend, in A11, aktualisiert die ECU 13 das Fortschrittsinformationselement. Genauer gesagt, die ECU 13 definiert den abgeschlossenen Ablauf als den Löschablauf und schreibt somit „1“, was ein Erkennungszeichen ist, das den Löschablauf anzeigt, in den ersten Informationsblock 101 als das Fortschrittsinformationselement.Subsequently, in A11, the ECU updates 13 the progress information item. More precisely, the ECU 13 defines the completed process as the deletion process and thus writes "1", which a flag indicating the deletion procedure is in the first block of information 101 as the progress information element.

Anschließend, in A12, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die anzeigt, dass das Löschen in den Blöcken erfolgreich abgeschlossen ist. Anschließend, in A13, empfängt die ECU 13 den ersten Datenteil, der von der externen Vorrichtung 20 gesendet wird.Subsequently, in A12, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating that the deletion in the blocks has been successfully completed. Subsequently, in A13, the ECU receives 13 the first data part from the external device 20 is sent.

Anschließend, in A14, schreibt die ECU 13 den ersten Datenteil in die Adresse entsprechend dem ersten Datenteil in dem ROM 34. Hierauf folgend, in A15, aktualisiert die ECU 13 das Fortschrittsinformationselement. Genauer gesagt, die ECU 13 definiert den abgeschlossenen Ablauf als den ersten Schreibablauf und schreibt somit „2“, was ein Erkennungszeichen ist, das anzeigt, dass der erste Schreibablauf erfolgreich abgeschlossen ist, in den zweiten Informationsblock 102 als das Fortschrittsinformationselement.Subsequently, in A14, the ECU writes 13 the first data part in the address corresponding to the first data part in the ROM 34 , Hereupon, in A15, the ECU updates 13 the progress information item. More precisely, the ECU 13 defines the completed process as the first writing process and thus writes "2", which is a flag indicating that the first writing has been completed successfully, into the second information block 102 as the progress information element.

Anschließend, in A16, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die anzeigt, dass der erste Schreibablauf erfolgreich abgeschlossen ist. Anschließend, in A17, empfängt die ECU 13 den zweiten Datenteil, der von der externen Vorrichtung 20 gesendet wird.Subsequently, in A16, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating that the first write has completed successfully. Subsequently, in A17, the ECU receives 13 the second data part from the external device 20 is sent.

Hierauf folgend, in A18, schreibt die ECU 13 den zweiten Datenteil in die Adresse entsprechend dem zweiten Datenteil in dem ROM 34. Anschließend, in A19, aktualisiert die ECU 13 das Fortschrittsinformationselement. Genauer gesagt, die ECU 13 versetzt den ersten Informationsblock 101 einmal in den Löschzustand; definiert den abgeschlossenen Ablauf als den zweiten Schreibablauf und schreibt somit „3“, was ein Erkennungszeichen ist, das anzeigt, dass der zweite Schreibablauf erfolgreich abgeschlossen ist, in den ersten Informationsblock 101 als das Fortschrittsinformationselement.Hereupon, in A18, the ECU writes 13 the second data part in the address corresponding to the second data part in the ROM 34 , Subsequently, in A19, the ECU updates 13 the progress information item. More precisely, the ECU 13 puts the first information block 101 once in the extinguishing state; defines the completed process as the second writing process and thus writes "3", which is a flag indicating that the second writing has been completed successfully, into the first information block 101 as the progress information element.

Anschließend, in A20, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die anzeigt, dass der zweite Schreibablauf erfolgreich abgeschlossen ist. Anschließend, in A21, empfängt die ECU 13 eine Verifizierungsanfrage, die von der externen Vorrichtung 20 gesendet wird. Die Verifizierungsanfrage soll die ECU 13 anfragen, zu verifizieren, ob das Umschreiben des Steuerprogramms normal abgeschlossen ist.Subsequently, in A20, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating that the second write has completed successfully. Subsequently, in A21, the ECU receives 13 a verification request made by the external device 20 is sent. The verification request should be the ECU 13 request to verify that the rewrite of the control program is completed normally.

Anschließend, in A22, führt die ECU 13 die Verifizierung aus. Die Verifizierung kann anhand verschiedener Verfahren erfolgen, wie beispielsweise eines Paritätsbits oder eines Fehlerkorrekturcodes. Anschließend, in A23, aktualisiert die ECU 13 das Fortschrittsinformationselement, wenn die Verifizierung verifiziert, dass das Steuerprogramm normal umgeschrieben ist. Genauer gesagt, die ECU 13 versetzt den zweiten Informationsblock 102 einmal in den Löschzustand; definiert den abgeschlossenen Ablauf als den Verifizierungsablauf und schreibt somit „4“, was ein Erkennungszeichen ist, das anzeigt, dass der Verifizierungsablauf erfolgreich abgeschlossen ist, in den zweiten Informationsblock 102 als das Fortschrittsinformationselement.Subsequently, in A22, the ECU passes 13 the verification off. The verification may be by various methods, such as a parity bit or an error correction code. Subsequently, in A23, the ECU updates 13 the progress information item when the verification verifies that the control program is rewritten normally. More precisely, the ECU 13 puts the second information block 102 once in the extinguishing state; defines the completed flow as the verification flow and thus writes "4", which is a flag indicating that the verification flow has been completed successfully, to the second block of information 102 as the progress information element.

Anschließend, in A24, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die den Abschluss der Verifizierung anzeigt. Anschließend, in A25, empfängt die ECU 13 eine Abschlussbenachrichtigung, die von der externen Vorrichtung 20 gesendet wird. Diese Abschlussbenachrichtigung ist eine Benachrichtigung, die den Abschluss des Sendens von allen der Daten des Steuerprogramms, die umzuschreiben sind, anzeigt.Subsequently, in A24, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating completion of the verification. Subsequently, in A25, the ECU receives 13 a completion notification sent by the external device 20 is sent. This completion notification is a notification indicating the completion of sending all the data of the control program to be rewritten.

Anschließend, in A26, aktualisiert die ECU 13 das Fortschrittsinformationselement. Genauer gesagt, die ECU 13 versetzt den ersten Informationsblock 101 einmal in den Löschzustand; definiert den abgeschlossenen Ablauf als den Abschlussablauf und schreibt somit „5“, was ein Erkennungszeichen ist, das anzeigt, dass der Abschlussablauf erfolgreich abgeschlossen ist, in den ersten Informationsblock 101 als das Fortschrittsinformationselement.Subsequently, in A26, the ECU updates 13 the progress information item. More precisely, the ECU 13 puts the first information block 101 once in the extinguishing state; defines the completed flow as the completion flow and thus writes "5", which is a flag indicating that the completion flow has been successfully completed, to the first block of information 101 as the progress information element.

Schlussendlich, in A25, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort (nachstehend als finale Antwort bezeichnet), die den Abschluss des gesamten Umschreibens des Steuerprogramms als das Umschreibeziel anzeigt.Finally, in A25, the ECU sends 13 an ACK to the external device 20 , This ACK is a response (hereinafter referred to as a final answer) indicating the completion of the entire rewrite of the control program as the rewrite target.

Die ECU 13 kommuniziert, wie vorstehend beschrieben, mit der externen Vorrichtung 20, um so das Umschreiben des Steuerprogramms als das Umschreibeziel auszuführen. In diesem Fall wechselt das Fortschrittsinformationselement (d.h. sowohl das erste Informationselement als auch das zweite Informationselement) wie in 5 gezeigt. 5 zeigt einen Wechsel bzw. Übergang der Fortschrittsinformationselemente bis zum Abschluss des zweiten Schreibablaufs unter Verwendung der Erkennungszeichen und „FFH“, was „Löschzustand“ anzeigt.The ECU 13 communicates with the external device as described above 20 so as to execute the rewrite of the control program as the rewrite target. In this case, the progress information item (ie, both the first information item and the second information item) changes as in FIG 5 shown. 5 FIG. 12 shows a transition of the progress information items until the completion of the second writing operation using the flags and "FFH" indicating "erase state".

D.h., wann immer ein Umschreibeablauf abgeschlossen ist, wird das entsprechende Fortschrittsinformationselement abwechselnd in den ersten Informationsblock 101 und in den zweiten Informationsblock 102 geschrieben. Genauer gesagt, jedes Mal, wenn ein Umschreibeablauf abgeschlossen ist, wird das Fortschrittsinformationselement, unter mehreren Verwaltungsblöcken, wie beispielsweise der erste Informationsblock 101 und der zweite Informationsblock 102, in einen Verwaltungsblock geschrieben, der sich von einem Verwaltungsblock unterscheidet, in den das Fortschrittsinformationselement an einem vorherigen Zeitpunkt geschrieben wurde.That is, whenever a rewrite operation is completed, the corresponding progress information item alternately enters the first information block 101 and in the second information block 102 written. More specifically, every time a rewrite operation is completed, the progress information item becomes among a plurality of management blocks, such as the first information block 101 and the second information block 102 , written in a management block that is different from a management block, into which the progress information item was written at a previous time.

[Umschreibesequenz aus einem zwischenrangigen Umschreibeablauf][Rewrite sequence from an intermediate rewrite process]

6 zeigt eine Umschreibeverarbeitungssequenz für ein Steuerprogramm aus einem zwischenrangigen Ablauf unter den mehreren Abläufen in Fällen, in denen die ECU 13 in einen Energie-AUS-Zustand und anschließend in einen Energie-EIN-Zustand wechselt. D.h., die Verarbeitungssequenz ist für ein Umschreiben für ein Steuerprogramm aus einem Ablauf verschieden von dem Hauptablauf unter den mehreren Umschreibeabläufen in Fällen, in denen das Umschreiben während der Ausführung des Umschreibens durch die ECU 13 für das Steuerprogramm unterbrochen wird, veranschaulicht. 6 zeigt ein Beispiel, in dem die Energiequelle der ECU 13 während der Ausführung in A18 der 4 ausgeschaltet wird. Die Unterbrechung der Energieversorgung (EV AUS), die nachstehend noch näher beschrieben ist, entspricht dem Ausschalten der Energiequelle. 6 FIG. 12 shows a rewrite processing sequence for a control program from an interim flow among the multiple processes in cases where the ECU 13 into an energy-off state and then into an energy-on state. That is, the processing sequence for rewrite of a control program is different from the main flow among the multiple rewrite processes in cases where the rewriting is carried out during execution of the rewrite by the ECU 13 for the control program is interrupted. 6 shows an example in which the power source of the ECU 13 while running in A18 the 4 is turned off. The interruption of the power supply (EV OFF), which will be described later, corresponds to turning off the power source.

Zunächst wird, in B1, die Energiequelle der ECU 13 eingeschaltet (EV EIN), nachdem das Umschreiben aufgrund der Energieversorgungsunterbrechung (EV AUS) unterbrochen wurde. Anschließend, in B2, bestätigt die ECU 13 das Abschluss-Flag. Das Abschluss-Flag ist gelöscht (AUS).First, in B1, the source of energy is the ECU 13 switched on (EV ON) after the rewriting has been interrupted due to the power supply interruption (EV OFF). Subsequently, in B2, the ECU confirms 13 the completion flag. The completion flag is cleared (OFF).

Anschließend, in B3 und B4, liest die ECU 13, da das Abschluss-Flag gelöscht (AUS) ist, das Fortschrittsinformationselement aus dem ROM 34. Anschließend, in B5, identifiziert die ECU 13 einen Neustartablauf in Übereinstimmung mit dem gelesenen Fortschrittsinformationselement und meldet die ECU 13 den Neustartablauf an die externe Vorrichtung 20. In diesem Fall ist, wie in 7 gezeigt, zur Zeit des Neustarts, das erste Informationselement gleich „FFH“ und das zweite Informationselement gleich „2“; die ECU 13 identifiziert den ersten Schreibablauf entsprechend „2“ als einen abgeschlossenen Ablauf in Übereinstimmung mit dem Umschreibeprozess, der nachstehend noch beschrieben ist, und identifiziert den zweiten Schreibablauf, der auf den abgeschlossenen Ablauf folgt, als den Neustartablauf. Die ECU 13 definiert somit den zweiten Schreibablauf als den Neustartablauf und sendet das Informationselement, das den Neustartablauf anzeigt, an die externe Vorrichtung 20.Subsequently, in B3 and B4, the ECU reads 13 Since the completion flag is cleared (OFF), the progress information item from the ROM 34 , Subsequently, in B5, the ECU identifies 13 a restart process in accordance with the read progress information item and notifies the ECU 13 the restart process to the external device 20 , In this case, as in 7 at the time of restart, the first information item is "FFH" and the second information item is "2"; the ECU 13 identifies the first writing process corresponding to "2" as a completed process in accordance with the rewrite process, which will be described later, and identifies the second writing process following the completed process as the restarting process. The ECU 13 thus defines the second writing process as the restarting process and sends the informational item indicating the restarting process to the external apparatus 20 ,

Anschließend, in B6, empfängt die ECU 13 eine ACK, die von der externen Vorrichtung 20 gesendet wird. Diese ACK ist eine Antwort, die anzeigt, dass der Neustartablauf von der externen Vorrichtung 20 empfangen wird, und gleichzeitig eine Verarbeitungsanfrage durch die externe Vorrichtung 20, um die ECU 13 zu veranlassen, den Neustartablauf auszuführen.Subsequently, in B6, the ECU receives 13 an ACK coming from the external device 20 is sent. This ACK is a response indicating that the restart process is from the external device 20 is received, and simultaneously a processing request by the external device 20 to the ECU 13 to initiate the restart process.

Anschließend, in B7, empfängt die ECU 13 eine Authentifizierungsanfrage, die von der externen Vorrichtung 20 gesendet wird. Hierauf folgend, in B8, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die anzeigt, dass die Authentifizierung der externen Vorrichtung 20 erfolgreich abgeschlossen ist.Subsequently, in B7, the ECU receives 13 an authentication request made by the external device 20 is sent. Following this, in B8, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating that the authentication of the external device 20 successfully completed.

Anschließend, in B9, empfängt die ECU 13 eine Löschanfrage, die von der externen Vorrichtung 20 gesendet wird. Diese Löschanfrage bestimmt, von dem Steuerprogramm als das Umschreibeziel, alle Blöcke, die den zweiten Datenteil speichern, als ein Ziel für das Löschen, da der zweite Schreibablauf als ein Neustartablauf bestimmt ist.Subsequently, in B9, the ECU receives 13 a deletion request made by the external device 20 is sent. This deletion request determines, from the control program as the rewrite target, all the blocks storing the second data part as a destination for deletion because the second write operation is determined as a rebooting process.

Anschließend, in B10, führt die ECU 13 das Löschen für die Blöcke in Übereinstimmung mit der Löschanfrage aus. Hierauf folgend, in B11, sendet die ECU 13 eine ACK an die externe Vorrichtung 20. Diese ACK ist eine Antwort, die anzeigt, dass das Löschen in den Blöcken erfolgreich abgeschlossen ist.Then, in B10, the ECU is leading 13 deleting for the blocks in accordance with the deletion request. Subsequently, in B11, the ECU sends 13 an ACK to the external device 20 , This ACK is a response indicating that the deletion in the blocks has been successfully completed.

Anschließend, nach B12, führt die ECU 13 den gleichen Prozess wie in A17 und den folgenden Schritten in der 4 aus. In der vorliegenden Ausführungsform wird, in B7 bis B8, der Authentifizierungsablauf erneut zwischen der ECU 13 und der externen Vorrichtung 20 ausgeführt, wenn das Umschreiben wiederaufgenommen wird. Dies liegt daran, dass eine sicherere Kommunikation mit höherer Robustheit erzielt wird. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Dieser Authentifizierungsablauf kann übersprungen werden.Then, after B12, the ECU is leading 13 the same process as in A17 and the following steps in the 4 out. In the present embodiment, in B7 to B8, the authentication process is repeated between the ECU 13 and the external device 20 executed when rewriting is resumed. This is because safer communication with higher robustness is achieved. However, the present invention is not limited thereto. This authentication process can be skipped.

Ferner, wenn das Schreiben in Blöcke, in die das Schreiben bis unmittelbar kurz vorher erfolgt ist, wiederaufgenommen wird, müssen diese Blöcke, aus der Charakteristik eines nichtflüchtigen Speichers, einmal in einen Löschzustand wechseln. Die Daten innerhalb der entsprechenden Blöcke werden so, in B9 bis B11, gelöscht.Further, when the writing is resumed in blocks to which the writing has been made until just before, those blocks, from the characteristic of nonvolatile memory, must once go to an erase state. The data within the respective blocks are thus deleted, in B9 to B11.

Wie vorstehend beschrieben, führt die ECU 13 das Umschreiben des Steuerprogramms als das Umschreibeziel in Fällen aus, in denen die Energieversorgungsunterbrechung aufgrund der Kommunikationsunterbrechung auftritt. Das Fortschrittsinformationselement wird an einem aktuellen Zeitpunkt in einen Block des ersten Informationsblocks 101 und des zweiten Informationsblocks 102 geschrieben, die in den Verwaltungsblöcken enthalten sind; der eine Block unterscheidet sich von dem anderen des ersten Informationsblocks 101 und des zweiten Informationsblocks 102, in den das Fortschrittsinformationselement an einem vorherigen Zeitpunkt geschrieben wurde. D.h., wenn die ECU 13 eine Energieversorgungsunterbrechung erfahren hat, wird der ECU 13 ermöglicht, einen Neustartablauf, der ein Umschreibeablauf ist, der neu gestartet werden muss, auf der Grundlage des ersten Informationselements, das in den ersten Informationsblock 101 geschrieben ist, und des zweiten Informationselements, das in den zweiten Informationsblock 102 geschrieben ist, zu erkennen.As described above, the ECU performs 13 rewrite the control program as the rewrite target in cases where the power supply interrupt occurs due to the communication interruption. The progress information item becomes a block of the first information block at a current time 101 and the second information block 102 written in the management blocks; one block is different from the other of the first block of information 101 and the second information block 102 in which the progress information item was written at a previous time. Ie, if the ECU 13 a Energy supply interruption, the ECU becomes 13 allows a restart process, which is a rewrite operation, to be restarted based on the first information item that is in the first information block 101 is written, and the second information element, in the second information block 102 is written to recognize.

Es soll beispielsweise, unter Bezugnahme auf die 7, ein Fall angenommen werden, in dem die ECU 13 eine Energieversorgungsunterbrechung während des Schreibens des Fortschrittsinformationselements über den zweiten Schreibablauf in den ersten Informationsblock 101 erfährt. Auch in solch einem Fall wird der ECU 13 ermöglicht, den zweiten Schreibablauf entsprechend „3“, auf „2“ folgend, als einen Neustartablauf auf der Grundlage von „2“ als das zweite Informationselement, das bereits in den zweiten Informationsblock 102 geschrieben ist, aus dem ersten Informationsblock 101 und dem zweiten Informationsblock 102 zu erkennen. Der zweite Schreibablauf wird somit erneut ausgeführt. Es sollte beachtet werden, dass der Neustartablauf in Übereinstimmung mit dem nachstehend noch beschriebenen Umschreibeprozess erkannt wird.It is intended, for example, with reference to the 7 to adopt a case in which the ECU 13 a power supply interruption during the writing of the progress information item via the second write operation into the first information block 101 experiences. Even in such a case, the ECU 13 allows the second writing operation corresponding to "3" following "2" as a restarting operation on the basis of "2" as the second information item already in the second information block 102 is written from the first information block 101 and the second information block 102 to recognize. The second write process is thus executed again. It should be noted that the restart process is recognized in accordance with the rewrite process described below.

[Von der ECU ausgeführte Prozesse][Processes carried out by the ECU]

Nachstehend sind von der ECU 13 ausgeführte Prozesse unter Bezugnahme auf die in den 8 bis 10 gezeigten Ablaufdiagramme beschrieben.Below are from the ECU 13 executed processes with reference to those in the 8th to 10 shown flowcharts described.

[Startprozess][Start Process]

Der in der 8 gezeigte Startprozess erfolgt, wenn die Energiequelle der ECU 13 eingeschaltet wird, nachdem sie ausgeschaltet wurde. Der Startprozess beschreibt ein Ablaufdiagramm, wenn ein Startprogramm ausgeführt wird. Das Startprogramm wird im Voraus in dem nicht-wiederbeschreibbaren Bereich 341 im ROM 34 gespeichert.The Indian 8th The starting process shown occurs when the power source of the ECU 13 is turned on after it has been turned off. The startup process describes a flowchart when a launcher is run. The launcher will be in the non-rewritable area in advance 341 in the ROM 34 saved.

Zunächst bestimmt die ECU 13 in S5, ob das Abschluss-Flag gesetzt (EIN) ist. D.h., es wird bestimmt, ob das Umschreiben des Steuerprogramms abgeschlossen ist. Die ECU 13 schreitet im Ablauf zu S10 voran, wenn das Abschluss-Flag gesetzt (EIN) ist; die ECU 13 schreitet im Ablauf zu S15 voran, wenn das Abschluss-Flag gelöscht (AUS) ist.First, the ECU determines 13 in S5, if the completion flag is set (ON). That is, it is determined whether the rewrite of the control program is completed. The ECU 13 proceeds to flow to S10 when the completion flag is set (ON); the ECU 13 proceeds to S15 in the process when the completion flag is clear (OFF).

In S10 startet die ECU 13 ein vorbestimmtes Steuerprogramm und beendet die ECU 13 den laufenden Startprozess. In S15 startet die ECU 13 ein Umprogrammierungsprogramm und beendet die ECU 13 den laufenden Startprozess.In S10 starts the ECU 13 a predetermined control program and ends the ECU 13 the ongoing startup process. In S15 starts the ECU 13 a reprogramming program and exit the ECU 13 the ongoing startup process.

[Umschreibeprozess][Umschreibeprozess]

Die in den 9 und 10 gezeigten Umschreibeprozesse beschreiben Verarbeitungsabläufe, wenn die ECU 13 bestimmt, dass das Umschreiben des Steuerprogramms nicht abgeschlossen ist, und das Umprogrammierungsprogramm in S15 des Startprozesses ausführt.The in the 9 and 10 Written transcript processes describe processing operations when the ECU 13 determines that the rewrite of the control program is not completed, and executes the reprogramming program in S15 of the startup process.

In S20 erfasst die ECU 13 das Fortschrittsinformationselement. Genauer gesagt, die ECU 13 erfasst das erste Informationselement und das zweite Informationselement aus dem ersten Informationsblock 101 bzw. aus dem zweiten Informationsblock 102. Solch eine Erfassung entspricht einem Auslesen des ersten Informationselements und des zweiten Informationselements aus dem ersten Informationsblock 101 bzw. aus dem zweiten Informationsblock 102 durch die ECU 13.In S20 records the ECU 13 the progress information item. More precisely, the ECU 13 detects the first information element and the second information element from the first information block 101 or from the second information block 102 , Such a detection corresponds to a readout of the first information element and the second information element from the first information block 101 or from the second information block 102 through the ECU 13 ,

In S25 bestimmt die ECU 13, ob das erste Informationselement gleich FFH ist. D.h., es wird bestimmt, ob der erste Informationsblock 101 einen Löschzustand aufweist. Die ECU 13 schreitet im Ablauf zu S30 voran, wenn das erste Informationselement gleich FFH ist; die ECU 13 schreitet im Ablauf zu S40 voran, wenn das erste Informationselement ungleich FFH ist.In S25 determines the ECU 13 whether the first information element is FFH. That is, it determines if the first information block 101 has an erase state. The ECU 13 proceeds to S30 when the first information item is FFH; the ECU 13 proceeds to S40 when the first information item is not equal to FFH.

In S30 bestimmt die ECU 13, ob das zweite Informationselement gleich FFH ist. D.h., es wird bestimmt, ob der zweite Informationsblock 102 einen Löschzustand aufweist. Die ECU 13 schreitet im Ablauf zu S35 voran, wenn das zweite Informationselement gleich FFH ist; die ECU 13 schreitet im Ablauf zu S55 voran, wenn das zweite Informationselement ungleich FFH ist.In S30 determines the ECU 13 whether the second information element is FFH. That is, it is determined whether the second information block 102 has an erase state. The ECU 13 proceeds in sequence to S35 when the second information item is FFH; the ECU 13 proceeds in sequence to S55 when the second information item is not equal to FFH.

In S35 identifiziert die ECU 13, als einen Neustartablauf, den Authentifizierungsablauf, der der Hauptablauf der vorstehend erwähnten mehreren Umschreibeabläufe ist. Die ECU 13 sendet das Informationselement, das den Neustartablauf anzeigt, an das Zentrum 21. Anschließend schreitet die ECU 13 im Ablauf zu S70 voran.In S35 identifies the ECU 13 , as a restart process, the authentication process which is the main flow of the above-mentioned multiple rewrite processes. The ECU 13 sends the information item indicating the restarting process to the center 21 , Then the ECU moves forward 13 in progress to S70 ahead.

In S40 bestimmt die ECU 13, ob das zweite Informationselement gleich FFH ist. Die ECU 13 schreitet im Ablauf zu S60 voran, wenn das zweite Informationselement gleich FFH ist; die ECU 13 schreitet im Ablauf zu S45 voran, wenn das zweite Informationselement ungleich FFH ist.In S40 determines the ECU 13 whether the second information element is FFH. The ECU 13 proceeds in sequence to S60 when the second information item is FFH; the ECU 13 progresses to S45 in the flow when the second information item is not equal to FFH.

In S45 bestimmt die ECU 13, ob irgendeine Kontinuität zwischen dem abgeschlossenen Ablauf, der durch das erste Informationselement beschrieben wird, und dem abgeschlossenen Ablauf, der durch das zweite Informationselement beschrieben wird, vorliegt. D.h., es wird bestimmt, ob der abgeschlossene Ablauf, der durch das erste Informationselement beschrieben wird, und der abgeschlossene Ablauf, der durch das zweite Informationselement beschrieben wird, aufeinanderfolgende Abläufe in der Reihenfolge der mehreren Umschreibeabläufe sind. In S45 ist weder das erste Informationselement noch das zweite Informationselement gleich FFH. Ein Aktualisierungsinformationselement, das nachstehend noch beschrieben ist, ist ein Fortschrittsinformationselement (d.h. das erste Informationselement oder das zweite Informationselement), das keinen Löschzustand beschreibt.In S45 determines the ECU 13 whether there is any continuity between the completed process described by the first information element and the completed process described by the second information element. That is, it is determined whether the completed process by the first Information element is described, and the completed process, which is described by the second information element, sequential operations in the order of the multiple rewrite sequences. In S45 neither the first information element nor the second information element is FFH. An update information item, which will be described later, is a progress information item (ie, the first information item or the second information item) that does not describe an erase state.

D.h., in S45, wenn mehrere Aktualisierungsinformationselemente in den Fortschrittsinformationselementen enthalten sind, die in S20 erfasst werden, bestimmt die ECU 13, ob mehrere Abläufe, die durch die Aktualisierungsinformationselemente beschrieben werden, aufeinanderfolgende Abläufe in der Reihenfolge der mehreren Umschreibeabläufe sind.That is, in S45, when a plurality of update information items are included in the progress information items detected in S20, the ECU determines 13 Whether or not a plurality of operations described by the update information items are sequential operations in the order of the multiple rewriting operations.

Dem abgeschlossenen Ablauf ist, wie vorstehend beschrieben, das Erkennungszeichen mit einem Zahlenwert, wie beispielsweise „1“, „2“, zugewiesen. Die ECU 13 schreitet im Ablauf zu S50 voran, wenn eine Kontinuität zwischen (i) dem Informationselement, das den abgeschlossenen Ablauf unter Verwendung des ersten Informationselements anzeigt, und (ii) dem Informationselement, das den abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements anzeigt, besteht. Demgegenüber schreitet die ECU 13 im Ablauf zu S35 voran, wenn keine Kontinuität zwischen ihnen besteht.As described above, the completed process is assigned the identifier with a numerical value such as "1", "2". The ECU 13 advances to S50 in the sequence when there is continuity between (i) the information item indicating the completed procedure using the first information item, and (ii) the information item indicating the completed operation using the second information item. In contrast, the ECU is progressing 13 progresses to S35 if there is no continuity between them.

Wenn in S45 bestimmt wird, dass eine Kontinuität zwischen (i) dem Informationselement, das den abgeschlossenen Ablauf unter Verwendung des ersten Informationselements anzeigt, und (ii) dem Informationselement, das den abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements anzeigt, besteht, schreitet der Ablauf, wie vorstehend beschrieben, zu S50 voran. In S50 identifiziert die ECU 13 einen unmittelbar vorherigen Ablauf unter (i) dem abgeschlossenen Ablauf unter Verwendung des ersten Informationselements und (ii) dem abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements; der unmittelbar vorherige Ablauf ist als ein Ablauf definiert, der dem finalen Ablauf der mehreren Umschreibeabläufe am nächsten ist.When it is determined in S45 that there is continuity between (i) the information item indicating the completion of the process using the first information item, and (ii) the information item indicating the completion of the process using the second information item, the process proceeds as described above, to S50. In S50 identifies the ECU 13 an immediately previous flow under (i) the completed flow using the first information element and (ii) the completed flow using the second information element; the immediate previous flow is defined as a flow closest to the final flow of the multiple rewrite flows.

Es soll ein Fall angenommen werden, in dem das Erkennungszeichen als das Informationselement, das den abgeschlossenen Ablauf unter Verwendung des ersten Informationselements anzeigt, größer ist als das Erkennungszeichen als das Informationselement, das den abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements anzeigt. In solch einem Fall identifiziert die ECU 13 den abgeschlossenen Ablauf unter Verwendung des ersten Informationselements als den unmittelbar vorherigen Ablauf und schreitet die ECU 13 im Ablauf zu S60 voran. Demgegenüber soll ein anderer Fall angenommen werden, in dem das Erkennungszeichen als das Informationselement, das den abgeschlossenen Ablauf unter Verwendung des ersten Informationselements anzeigt, kleiner ist als das Erkennungszeichen als das Informationselement, das den abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements anzeigt. In solch einem Fall identifiziert die ECU 13 den abgeschlossenen Ablauf unter Verwendung des zweiten Informationselements als den unmittelbar vorherigen Ablauf und schreitet die ECU 13 im Ablauf zu S55 voran.Suppose a case where the flag as the information item indicating the completed operation using the first information item is larger than the identifier as the information item indicating the completed operation using the second information item. In such a case, the ECU identifies 13 the completed procedure using the first information item as the immediately previous procedure, and the ECU proceeds 13 in the process to S60 ahead. On the other hand, another case is to be adopted in which the flag as the information item indicating the completed operation using the first information item is smaller than the identifier as the information item indicating the completed operation using the second information item. In such a case, the ECU identifies 13 the completed procedure using the second information item as the immediately previous procedure, and the ECU proceeds 13 in the process to S55 ahead.

In S55 erfasst die ECU 13 das zweite Informationselement. D.h., das Abschluss-Informationselement, das unter Verwendung des zweiten Informationselements beschrieben wird, wird erfasst. Anschließend schreitet die ECU 13 im Ablauf zu S65 voran. Demgegenüber erfasst die ECU 13, in S60, das erste Informationselement. D.h., das Abschluss-Informationselement, das unter Verwendung des ersten Informationselements beschrieben wird, wird erfasst. Anschließend schreitet die ECU 13 im Ablauf zu S65 voran.In S55 records the ECU 13 the second information element. That is, the completion information item described using the second information item is detected. Then the ECU moves forward 13 in the process to S65 ahead. In contrast, the ECU detects 13 , in S60, the first element of information. That is, the completion information item described using the first information item is detected. Then the ECU moves forward 13 in the process to S65 ahead.

In S65 identifiziert die ECU 13, als einen Neustartablauf, einen nachfolgenden Ablauf, der ein Ablauf ist, der auf den abgeschlossenen Ablauf folgt, der in S55 oder S60 erfasst wird, unter den mehreren Umschreibeabläufen. Die ECU 13 sendet das Informationselement, das den Neustartablauf anzeigt, an das Zentrum 21. Anschließend schreitet die ECU 13 im Ablauf zu S70 voran.In S65 identifies the ECU 13 , as a restart process, a subsequent process that is a process following the completed process detected in S55 or S60 among the plural rewrite processes. The ECU 13 sends the information item indicating the restarting process to the center 21 , Then the ECU moves forward 13 in progress to S70 ahead.

In S70 bestimmt die ECU 13, ob eine Verarbeitungsanfrage, die die Ausführung des Neustartablaufs anfragt, von dem Zentrum 21 empfangen wird. Die ECU 13 hält sich bereit, bis die Verarbeitungsanfrage empfangen wird, und schreitet im Ablauf zu S75 voran, wenn die Verarbeitungsanfrage empfangen wird.In S70 determines the ECU 13 Whether a processing request requesting execution of the restart process from the center 21 Will be received. The ECU 13 holds until the processing request is received, and advances to S75 in the process when the processing request is received.

In S75 führt die ECU 13 einen Ablauf in Übereinstimmung mit der Verarbeitungsanfrage aus. In S80 bestimmt die ECU 13, ob der Ablauf, der durch die Verarbeitungsanfrage angefragt wird, abgeschlossen ist. Die ECU 13 hält sich bereit, bis der Ablauf, der durch die Verarbeitungsanfrage angefragt wird, abgeschlossen ist, und schreitet im Ablauf zu S85 voran, wenn der Ablauf, der durch die Verarbeitungsanfrage angefragt wird, abgeschlossen ist.In S75 leads the ECU 13 a flow in accordance with the processing request. In S80 determines the ECU 13 whether the process requested by the processing request is completed. The ECU 13 holds until the process requested by the processing request is completed, and advances to S85 in the flow when the process requested by the processing request is completed.

In S85 erfasst die ECU 13 ein neues Fortschrittsinformationselement. In diesem Fall erzeugt die ECU 13 ein neues Fortschrittsinformationselement einschließlich eines Abschluss-Informationselements, das einen abgeschlossenen Ablauf anzeigt, der ein Ablauf ist, der mit der Verarbeitungsanfrage angefragt wird und dessen Ausführung abgeschlossen ist.In S85 records the ECU 13 a new progress information element. In this case, the ECU generates 13 a new progress information item including a completion information item indicating a completion process that is a process consistent with the Processing request is requested and its execution is completed.

In S90 bestimmt die ECU 13, ob irgendein Fortschrittsinformationselement, das in jedem von allen der Verwaltungsblöcke gespeichert ist, gleich FFH ist. Genauer gesagt, die ECU 13 bestimmt, ob der erste Informationsblock 101 und der zweite Informationsblock 102 jeweils einen Löschzustand aufweisen.In S90 determines the ECU 13 whether any progress information item stored in each of all the management blocks is FFH. More precisely, the ECU 13 determines if the first information block 101 and the second information block 102 each have an erase state.

Die ECU 13 schreitet im Ablauf zu S95 voran, wenn alle der Fortschrittsinformationselemente gleich FFH sind. In S95 aktualisiert die ECU 13 einen Verwaltungsblock, der entweder der erste Informationsblock 101 oder der zweite Informationsblock 102 ist, je nachdem, welcher vorbestimmt ist. Solch eine Aktualisierung entspricht einem Schreiben eines neuen Fortschrittsinformationselements, das in S85 erfasst wird, in den einen Verwaltungsblock. In diesem Fall aktualisiert die ECU 13 den ersten Informationsblock 101. D.h., die ECU 13 schreibt das neue Fortschrittsinformationselement, das in S85 erfasst wird, in den ersten Informationsblock 101. Anschließend schreitet die ECU 13 im Ablauf zu S115 voran. Demgegenüber schreitet die ECU 13 im Ablauf zu S100 voran, wenn nicht bestimmt wird, dass alle der Fortschrittsinformationselemente gleich FFH sind.The ECU 13 proceeds to S95 when all of the progress information items are FFH. In S95 updates the ECU 13 a management block that is either the first block of information 101 or the second information block 102 is, whichever is predetermined. Such updating corresponds to writing a new progress information item detected in S85 into the one management block. In this case, the ECU updates 13 the first information block 101 , That is, the ECU 13 writes the new progress information item detected in S85 into the first information block 101 , Then the ECU moves forward 13 in the process to S115. In contrast, the ECU is progressing 13 in the flow to S100, unless it is determined that all of the progress information items are FFH.

In S100 bestimmt die ECU 13, ob FFH in irgendeinem von allen der Fortschrittsinformationselemente enthalten ist. D.h., die ECU 13 bestimmt, ob entweder der erste Informationsblock 101 oder der zweite Informationsblock 102 einen Löschzustand aufweist. Die ECU 13 schreitet im Ablauf zu S105 voran, wenn bestimmt wird, dass entweder der erste Informationsblock 101 oder der zweite Informationsblock 102 einen Löschzustand aufweist. Die ECU 13 aktualisiert den Block in dem Löschzustand unter dem ersten Informationsblock 101 und dem zweiten Informationsblock 102. D.h., das neue Fortschrittsinformationselement, das in S85 erfasst wird, wird in den Block im Löschzustand geschrieben. Anschließend schreitet die ECU 13 im Ablauf zu S115 voran.In S100 determines the ECU 13 whether FFH is included in any of all the progress information items. That is, the ECU 13 determines whether either the first information block 101 or the second information block 102 has an erase state. The ECU 13 proceeds to S105 in the process when it is determined that either the first information block 101 or the second information block 102 has an erase state. The ECU 13 updates the block in the erase state under the first information block 101 and the second information block 102 , That is, the new progress information item detected in S85 is written into the block in the erase state. Then the ECU moves forward 13 in the process to S115.

Demgegenüber schreitet die ECU 13 im Ablauf zu S110 voran, wenn bestimmt wird, dass kein Block von dem ersten Informationsblock 101 und dem zweiten Informationsblock 102 im Löschzustand vorhanden ist. D.h., wenn das Fortschrittsinformationselement, das in jedem der mehreren Verwaltungsblöcke gespeichert ist, ein Aktualisierungsinformationselement ist, schreitet die ECU 13 im Ablauf zu S110 voran. In S110 wird das neue Fortschrittsinformationselement, das in S85 erfasst wird, entweder in den ersten Informationsblock 101 oder in den zweiten Informationsblock 102 geschrieben wird, je nachdem, welcher, als das Fortschrittsinformationselement, das den abgeschlossenen Ablauf beschreibt, das kleinere Erkennungszeichen aufweist.In contrast, the ECU is progressing 13 in the flow to S110, when it is determined that no block from the first block of information 101 and the second information block 102 in the extinguishing state is present. That is, when the progress information item stored in each of the plurality of management blocks is an update information item, the ECU proceeds 13 in the process to S110 ahead. In S110 The new progress information item detected in S85 is either in the first information block 101 or in the second information block 102 depending on which, as the progress information item describing the completed procedure, has the smaller identifier.

In S105 identifiziert die ECU 13 einen nächsten Ablauf, der dem Hauptablauf am nächsten ist, von dem abgeschlossenen Ablauf, der mit dem ersten Informationselement beschrieben wird, und dem abgeschlossenen Ablauf, der mit dem zweiten Informationselement beschrieben wird; anschließend aktualisiert die ECU 13 den Verwaltungsblock, der das Informationselement speichert, das den erkannten nächsten Ablauf anzeigt. Anschließend schreitet die ECU 13 im Ablauf zu S115 voran.In S105 identifies the ECU 13 a next process closest to the main process, the completed process described with the first information element, and the completed process described with the second information element; then updates the ECU 13 the management block which stores the information item indicating the recognized next process. Then the ECU moves forward 13 in the process to S115.

In S115 bestimmt die ECU 13, ob die Abschlussbenachrichtigung von dem Zentrum 21 empfangen wird. Die ECU 13 schreitet im Ablauf zu S120 voran, wenn die Abschlussbenachrichtigung empfangen wird. Demgegenüber schreitet die ECU 13 im Ablauf zu S70 voran, wenn die Abschlussbenachrichtigung nicht empfangen wird, um so die vorstehend beschriebene Verarbeitung in S70 bis S110 zu wiederholen. D.h., die ECU 13 führt wiederholt die Verarbeitung in S70 bis S110 von dem Neustartablauf bis zu dem finalen Ablauf aus.In S115 determines the ECU 13 whether the final notification from the center 21 Will be received. The ECU 13 proceeds to S120 in the process when the completion notification is received. In contrast, the ECU is progressing 13 in the flow to S70, if the completion notification is not received so as to repeat the above-described processing in S70 to S110. That is, the ECU 13 repeatedly executes the processing in S70 to S110 from the restarting process to the final processing.

In S120 sendet die ECU 13 eine ACK als eine finale Antwort bei der Erwiderung der Abschlussbenachrichtigung, die von dem Zentrum 21 empfangen wird, und beendet die ECU 13 den Umschreibeprozess.In S120 sends the ECU 13 an ACK as a final response in replying to the completion notification sent by the center 21 is received and ends the ECU 13 the rewrite process.

[Von der externen Vorrichtung ausgeführter Prozess][Process performed by the external device]

Nachstehend ist ein externer Prozess durch die externe Vorrichtung 20 zum Senden eines neuen Steuerprogramms, das in der externen Vorrichtung 20 gespeichert ist, und zum Umschreiben eines Steuerprogramms in der ECU 13 unter Bezugnahme auf ein in der 11 gezeigtes Ablaufdiagramm beschrieben. Die externe Vorrichtung 20 ist dazu ausgelegt, die Unterbrechung der Kommunikation mit der ECU 13 zu erfassen. Der in der 11 gezeigte Prozess wird beispielsweise im Ansprechen darauf, dass die Kommunikation mit der ECU 13 unterbrochen wird, gestartet.The following is an external process by the external device 20 to send a new control program that is in the external device 20 is stored and for rewriting a control program in the ECU 13 referring to a in the 11 shown flowchart described. The external device 20 is designed to interrupt the communication with the ECU 13 capture. The Indian 11 For example, the process shown is in response to communication with the ECU 13 is interrupted, started.

Zunächst bestimmt die externe Vorrichtung 20 in S210, ob der Neustartablauf von der ECU 13 empfangen wird. Die externe Vorrichtung 20 hält sich bereit, bis bestimmt wird, dass der Neustartablauf empfangen wird, wenn bestimmt wird, dass der Neustartablauf nicht empfangen wird. Die externe Vorrichtung 20 schreitet im Ablauf zu S220 voran, wenn bestimmt wird, dass der Neustartablauf empfangen wird.First, the external device determines 20 in S210, whether the restart process of the ECU 13 Will be received. The external device 20 will hold until it is determined that the restart process will be received if it determines that the restart process is not received. The external device 20 proceeds to S220 in the process when it is determined that the restart process is being received.

In S220 sendet die externe Vorrichtung 20 die Verarbeitungsanfrage an die ECU 13. Diese Verarbeitungsanfrage fragt bei der ECU 13 an, den Neustartablauf auszuführen, der von der ECU 13 empfangen wird. In S230 bestimmt die externe Vorrichtung 20, ob eine ACK von der ECU 13 empfangen wird. Diese ACK ist eine Antwort, die anzeigt, dass der Ablauf in Übereinstimmung mit der Verarbeitungsanfrage, die in S230 gesendet wird, in der ECU 13 ausgeführt wird. Die externe Vorrichtung 20 hält sich bereit, bis bestimmt wird, dass eine ACK empfangen wird, wenn bestimmt wird, dass keine ACK empfangen wird. Die externe Vorrichtung 20 schreitet im Ablauf zu S240 voran, wenn bestimmt wird, dass eine ACK empfangen wird.In S220 sends the external device 20 the processing request to the ECU 13 , This processing request asks the ECU 13 to execute the reboot process executed by the ECU 13 Will be received. In S230 determines the external device 20 whether an ACK from the ECU 13 Will be received. This ACK is a response indicating that the flow is in the ECU in accordance with the processing request sent in S230 13 is performed. The external device 20 holds until it is determined that an ACK is received if it is determined that no ACK is being received. The external device 20 proceeds to S240 in the process when it is determined that an ACK is received.

In S240 bestimmt die externe Vorrichtung 20, ob alle der mehreren Umschreibeabläufe abgeschlossen sind. Die externe Vorrichtung 20 schreitet im Ablauf zu S250 voran, wenn bestimmt wird, dass alle der mehreren Umschreibeabläufe abgeschlossen sind. Demgegenüber schreitet die externe Vorrichtung 20 im Ablauf zu S220 voran, wenn nicht bestimmt wird, dass alle der mehreren Umschreibeabläufe abgeschlossen sind, um so wiederholt die Verarbeitung in S220 bis S240 bezüglich jedes der Abläufe von dem Neustartablauf bis zu dem finalen Ablauf auszuführen.In S240 determines the external device 20 whether all of the multiple rewrite operations have been completed. The external device 20 proceeds to S250 in the process when it is determined that all of the multiple rewrite operations are completed. In contrast, the external device proceeds 20 in the flow to S220, if it is not determined that all of the multiple rewriting operations are completed, so as to repeatedly execute the processing in S220 to S240 with respect to each of the processes from the restarting process to the final processing.

In S250 sendet die externe Vorrichtung 20 die Abschlussbenachrichtigung an die ECU 13. In S260 bestimmt die externe Vorrichtung 20, ob eine ACK, die die finale Antwort beschreibt, von der ECU 13 empfangen wird. Die externe Vorrichtung 20 hält sich bereit, bis bestimmt wird, dass eine ACK, die die finale Antwort beschreibt, empfangen wird, wenn bestimmt wird, dass eine ACK, die die finale Antwort beschreibt, nicht empfangen wird. Wenn bestimmt wird, dass diese ACK empfangen wird, wird der laufende externe Prozess beendet.In S250 sends the external device 20 the final notification to the ECU 13 , In S260 determines the external device 20 whether an ACK, which describes the final answer, from the ECU 13 Will be received. The external device 20 holds until it is determined that an ACK describing the final response is received when it is determined that an ACK describing the final answer is not received. When it is determined that this ACK is received, the current external process is terminated.

[Vorteilhafter Effekt][Advantageous effect]

Die vorstehend beschriebene Ausführungsform erzielt die folgenden vorteilhaften Effekte.The embodiment described above achieves the following advantageous effects.

(3a) Die ECU 13 weist das ROM 34 als einen nichtflüchtigen Speicher auf. In S85 erfasst die ECU 13 wiederholt das neue Fortschrittsinformationselement. In S85, S95 und S100 speichert die ECU 13 das Fortschrittsinformationselement in wenigstens einem von mehreren Verwaltungsblöcken, wie beispielsweise der erste Informationsblock 101 und der zweite Informationsblock 102, und zwar immer wenn das Fortschrittsinformationselement erfasst wird. Insbesondere speichert die ECU 13 das erfasste Fortschrittsinformationselement an einem aktuellen Zeitpunkt in einem Verwaltungsblock, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde, unter den mehreren Verwaltungsblöcken.3a. The ECU 13 has the ROM 34 as a non-volatile memory. In S85 records the ECU 13 repeats the new progress information item. In S85 . S95 and S100 saves the ECU 13 the progress information item in at least one of a plurality of management blocks, such as the first information block 101 and the second information block 102 whenever the progress information item is detected. In particular, the ECU saves 13 the detected progress information item at a current time in a management block other than a management block in which the progress information item has been stored at a previous time is among the plurality of management blocks.

Dies ermöglicht es dem Fortschrittsinformationselement, in irgendeinem von mehreren Verwaltungsblöcken gespeichert zu werden, auch wenn die ECU 13 eine Energieversorgungsunterbrechung erfährt, während das Umschreiben des Fortschrittsinformationselements erfolgt. D.h., die ECU 13, die einen nichtflüchtigen Speicher aufweist, kann das Fortschrittsinformationselement, das einen Umschreibefortschritt in dem nichtflüchtigen Speicher beschreibt, halten, auch wenn die ECU 13 die Energieversorgungsunterbrechung erfährt oder die elektrische Energieversorgung ausgeschaltet wird.This allows the progress information item to be stored in any of a plurality of management blocks even when the ECU 13 undergoes a power supply interrupt while the rewrite of the progress information item occurs. That is, the ECU 13 having a nonvolatile memory can hold the progress information item describing a rewriting step in the nonvolatile memory even if the ECU 13 the power supply interruption learns or the electrical energy supply is turned off.

(3b) Gemäß der Konfiguration in (3a) erfasst die ECU 13, in S85, das Fortschrittsinformationselement jedes Mal, wenn ein Umschreibeablauf erfolgt. Das Fortschrittsinformationselement beinhaltet das Informationselement, das den abgeschlossenen Ablauf anzeigt. In S95, S105 und S110 speichert die ECU 13 das erfasste Fortschrittsinformationselement an einem aktuellen Zeitpunkt in einem Verwaltungsblock, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde, unter den mehreren Verwaltungsblöcken.(3b) According to the configuration in (3a), the ECU detects 13 in S85, the progress information item each time a rewrite operation occurs. The progress information item includes the information item indicating the completed procedure. In S95 . S105 and S110 saves the ECU 13 the detected progress information item at a current time in a management block other than a management block in which the progress information item has been stored at a previous time is among the plurality of management blocks.

In S5 bestimmt die ECU 13, ob alle der mehreren Umschreibeabläufe erfolgt sind und das Umschreiben des ROM 34 abgeschlossen ist, wenn die ECU 13 aus dem Energie-AUS-Zustand in den Energie-EIN-Zustand wechselt. In S20 erfasst die ECU 13 das Fortschrittsinformationselement aus jedem der mehreren Verwaltungsblöcke, wenn bestimmt wird, dass das Umschreiben nicht abgeschlossen ist. In S35 und S65 identifiziert die ECU 13 den Neustartablauf auf der Grundlage des erfassten Fortschrittsinformationselements.In S5 determines the ECU 13 whether all of the multiple rewrite operations have occurred and the rewrite of the ROM 34 is completed when the ECU 13 changes from the power-off state to the power-on state. In S20 records the ECU 13 the progress information item from each of the plurality of management blocks when it is determined that the rewrite is not completed. In S35 and S65 identifies the ECU 13 the restart process based on the acquired progress information item.

Dies führt dazu, dass das Abschluss-Informationselement, das in dem Fortschrittsinformationselement enthalten ist, einen abgeschlossenen Ablauf beschreibt, dessen Ausführung unter den mehreren Umschreibeabläufen, die vorstehend beschrieben sind, abgeschlossen ist; auf der Grundlage des Abschluss-Informationselements kann der Neustartablauf identifiziert werden. Ferner wird das Fortschrittsinformationselement an einem aktuellen Zeitpunkt in dem Block unter den mehreren Verwaltungsblöcken gespeichert, der sich von dem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde. Auch wenn die ECU 13 eine Energieversorgungsunterbrechung aufgrund der Kommunikationsunterbrechung oder dergleichen erfährt, während das Fortschrittsinformationselement in einen der mehreren Verwaltungsblöcke geschrieben wird, ist das andere Fortschrittsinformationselement bereits in dem anderen der mehreren Verwaltungsblöcke gespeichert.As a result, the completion information item included in the progress information item describes a completed operation whose execution is completed among the plurality of rewriting operations described above; based on the completion information item, the restart process can be identified. Further, the progress information item is stored at a current time in the block among the plurality of management blocks, which is different from the management block in which the progress information item has been stored at a previous time. Even if the ECU 13 When the progress information item is written in one of the plural management blocks, the other progress information item is already stored in the other of the plurality of management blocks.

Folglich kann das Fortschrittsinformationselement gehalten werden, auch wenn die ECU 13 die Energieversorgungsunterbrechung erfährt. Ferner kann das Umschreiben aus dem Neustartablauf, der auf der Grundlage des Fortschrittsinformationselements erkannt wird, wiederaufgenommen werden; hierdurch kann die für das Umschreiben erforderliche Zeitspanne verkürzt werden.Consequently, the progress information item can be kept even if the ECU 13 the power supply interruption learns. Further, the rewriting from the restarting process recognized on the basis of the progress information item may be resumed; this can shorten the time required for rewriting.

(3c) Gemäß der Konfiguration, die in (3b) beschrieben ist, bestimmt die ECU 13, in S35, ob alle der Fortschrittsinformationselemente, die in S20 aus den mehreren Verwaltungsblöcken erfasst werden, den Löschzustand beschreiben; anschließend identifiziert die ECU 13 den Hauptablauf der mehreren Abläufe als einen Neustartablauf, wenn alle der Fortschrittsinformationselemente den Löschzustand beschreiben.(3c) According to the configuration described in (3b), the ECU determines 13 in S35, whether all of the progress information items acquired from the plurality of management blocks in S20 describe the deletion state; subsequently the ECU identifies 13 the main flow of the multiple processes as a restart process when all of the progress information elements describe the deletion state.

Dies führt dazu, dass der Hauptablauf als ein Neustartablauf erkannt wird, auch wenn alle der mehreren Verwaltungsblöcke den Löschzustand aufweisen; folglich kann das Umschreiben des Steuerprogramms mit Gewissheit wiederaufgenommen werden. As a result, even if all of the multiple management blocks have the erase state, the main flow is recognized as a restart process; consequently, rewrite of the control program can be resumed with certainty.

(3d) Gemäß der Konfiguration, die in (3b) oder (3c) beschrieben ist, bestimmt die ECU 13, in S65, ob wenigstens eines der Fortschrittsinformationselemente, die in S20 aus den mehreren Verwaltungsblöcken erfasst werden, einem Aktualisierungsinformationselement entspricht, das nicht den Löschzustand beschreibt, und identifiziert die ECU 13 einen Neustartablauf auf der Grundlage des Aktualisierungsinformationselements, wenn wenigstens eines der Fortschrittsinformationselemente das Aktualisierungsinformationselement ist.(3d) According to the configuration described in (3b) or (3c), the ECU determines 13 in S65, if at least one of the progress information items detected from the plurality of management blocks in S20 corresponds to an update information item that does not describe the deletion condition, and identifies the ECU 13 a restart process based on the update information item when at least one of the progress information items is the update information item.

D.h., wenn wenigstens ein Aktualisierungsinformationselement erfasst wird, kann der Neustartablauf auf der Grundlage des Aktualisierungsinformationselements identifiziert werden. Dies führt dazu, dass die für das Umschreiben erforderliche Zeitspanne verkürzt werden kann.That is, when at least one update information item is detected, the restart process can be identified on the basis of the update information item. As a result, the time required for rewriting can be shortened.

(3e) Gemäß der Konfiguration, die in (3d) beschrieben ist, identifiziert die ECU 13, in S65, einen unmittelbar vorherigen Ablauf und anschließend einen Neustartablauf wie folgt. Es soll ein Fall angenommen werden, in dem mehrere Aktualisierungsinformationselemente, die mehrere abgeschlossene Abläufe beschreiben, in den Fortschrittsinformationselementen enthalten sind, die aus den mehreren Verwaltungsblöcken erfasst werden. In solch einem Fall identifiziert die ECU 13, aus den mehreren abgeschlossenen Abläufen, einen unmittelbar vorherigen Ablauf, der ein Ablauf ist, der dem finalen Ablauf bei den mehreren Abläufen am nächsten ist, und identifiziert die ECU 13 anschließend einen Ablauf, der auf den unmittelbar vorherigen Ablauf folgt, als den Neustartablauf.(3e) According to the configuration described in (3d), the ECU identifies 13 , in S65, an immediate previous procedure and then a restart procedure as follows. Suppose a case where a plurality of update information items describing a plurality of completed procedures are included in the progress information items acquired from the plurality of management blocks. In such a case, the ECU identifies 13 of the multiple completed procedures, an immediately previous procedure, which is a routine closest to the final procedure in the multiple procedures, identifies the ECU 13 then a flow following the immediate previous flow as the restart cycle.

D.h., wenn mehrere Aktualisierungsinformationselemente erfasst werden, kann ein Umschreiben aus dem Ablauf wiederaufgenommen werden, der dem finalen Ablauf näher ist. Dies führt dazu, dass die Zeitspanne, die für das Umschreiben erforderlich ist, verkürzt werden kann.That is, if a plurality of update information items are detected, a rewrite may be resumed from the process closer to the final operation. As a result, the time required for rewriting can be shortened.

(3f) Gemäß der Konfiguration, die in (3e) beschrieben ist, bestimmt die ECU 13, in S45, die Kontinuität von Abläufen wie folgt. D.h., wenn mehrere Aktualisierungsinformationselemente in den Fortschrittsinformationselementen enthalten sind, wird bestimmt, ob die mehreren abgeschlossenen Abläufe aufeinander folgende Abläufe in der Reihenfolge der mehreren Umschreibeabläufe sind (d.h. es wird bestimmt, ob die mehreren abgeschlossenen Abläufe fortlaufend ausgeführte Abläufe unter den mehreren Umschreibeabläufen sind).(3f) According to the configuration described in (3e), the ECU determines 13 , in S45, the continuity of operations as follows. That is, when a plurality of update information items are included in the progress information items, it is determined whether the plurality of completed operations are successive operations in the order of the multiple rewrite operations (ie, it is determined whether the plurality of completed operations are consecutive operations among the plurality of rewrite operations).

Es soll ein Fall angenommen werden, in dem die Fortschrittsinformationselemente in einer vorbestimmten Sequenz in den mehreren Verwaltungsblöcken gespeichert werden und somit mehrere abgeschlossene Abläufe als aufeinander folgende Abläufe in der Reihenfolge der mehreren Umschreibeabläufe bestimmt werden. Solch ein Fall ermöglicht die Erkennung der Fortschrittsinformationselemente als normal gespeichert.Suppose a case where the progress information items are stored in a predetermined sequence in the plurality of management blocks, and thus a plurality of completed operations are determined as successive operations in the order of the multiple rewriting operations. Such a case enables recognition of the progress information items as normally stored.

(3g) Gemäß der Konfiguration, die in (3f) beschrieben ist, identifiziert die ECU 13, in S65, einen unmittelbar vorherigen Ablauf und anschließend einen Ablauf, der auf den unmittelbar vorherigen Ablauf folgt, wenn bestimmt wird, dass die mehreren abgeschlossenen Abläufe aufeinander folgende (konsekutive) Abläufe in der Reihenfolge der mehreren Umschreibeabläufe sind.(3g) According to the configuration described in (3f), the ECU identifies 13 , in S65, an immediately previous flow, and then a flow following the immediately preceding flow, when it is determined that the plurality of completed flows are consecutive runs in the order of the multiple rewrite flows.

D.h., wenn die Situation erkannt wird, in der die Fortschrittsinformationselemente normal gespeichert sind, kann das Umschreiben aus dem Ablauf wiederaufgenommen werden, der dem finalen Ablauf näher ist. Dies führt dazu, dass der Ablauf, aus dem das Umschreiben neu gestartet werden muss, genau identifiziert werden kann.That is, if the situation where the progress information items are normally stored is recognized, the rewrite may be resumed from the process closer to the final operation. As a result, the process from which the rewrite must be restarted can be accurately identified.

(3h) Gemäß der Konfiguration, die in (3f) oder (3g) beschrieben ist, identifiziert die ECU 13, in S65, den Hauptablauf unter den mehreren Abläufen als einen Neustartablauf, wenn nicht bestimmt wird, dass die mehreren abgeschlossenen Abläufe aufeinander folgende Abläufe in der Reihenfolge der mehreren Umschreibeabläufe sind.(3h) According to the configuration described in (3f) or (3g), the ECU identifies 13 in S65, the main flow among the multiple flows is considered to be a restart flow unless it is determined that the plurality of completed flows are sequential runs in the order of the several rewrite flows.

D.h., wenn die Situation erkannt wird, in der die Fortschrittsinformationselemente nicht normal gespeichert sind, wird das Umschreiben aus dem Hauptablauf wiederaufgenommen. Dies führt dazu, dass das Umschreiben mit Gewissheit ausgeführt werden kann. That is, when the situation where the progress information items are not normally stored is recognized, rewrite from the main routine is resumed. As a result, the rewriting can be carried out with certainty.

(3i) Gemäß der Konfiguration, die in einem von (3d) bis (3h) beschrieben ist, identifiziert die ECU 13, in S35, einen Neustartablauf wie folgt. Es soll ein Fall angenommen werden, in dem ein einziges Aktualisierungsinformationselement in den Fortschrittsinformationselementen enthalten ist, die aus den mehreren Verwaltungsblöcken erfasst werden. In solch einem Fall identifiziert die ECU 13 einen Ablauf, der auf den abgeschlossenen Ablauf folgt, der durch das Aktualisierungsinformationselement beschrieben wird, als einen Neustartablauf. (3i) According to the configuration described in any one of (3d) to (3h), the ECU identifies 13 , in S35, reboot as follows. Consider a case where a single update information item is included in the progress information items acquired from the plurality of management blocks. In such a case, the ECU identifies 13 a process following the completed process described by the update information item as a restart process.

D.h., wenn ein Aktualisierungsinformationselement erfasst wird, kann der Neustartablauf auf der Grundlage des erfassten Aktualisierungsinformationselements identifiziert werden. Dies führt dazu, dass die Zeitspanne, die für das Umschreiben erforderlich ist, verkürzt werden kann.That is, when an update information item is detected, the restart process can be identified on the basis of the acquired update information item. As a result, the time required for rewriting can be shortened.

(3j) Gemäß der Konfiguration, die in einem von (3b) bis (3i) beschrieben ist, ist die ECU 13 in einem Fahrzeug befestigt und über eine Kommunikationsleitung 15 zur Kommunikation mit anderen fahrzeugeigenen elektronischen Steuereinheiten, wie beispielsweise eine DCM-ECU 11 und eine C-GW 12, verbunden, um so ein Fahrzeugnetzwerk zu bilden. In S35 und S65 sendet die ECU 13 ein Informationselement, das einen Neustartablauf beschreibt, an eine externe Vorrichtung 20, die sich außerhalb des Fahrzeugs oder des Fahrzeugnetzwerks befindet und mit der ECU 13 kommunizieren kann.(3j) According to the configuration described in any one of (3b) to (3i), the ECU is 13 mounted in a vehicle and via a communication line 15 for communication with other in-vehicle electronic control units, such as a DCM-ECU 11 and a C-GW 12 connected to form such a vehicle network. In S35 and S65 sends the ECU 13 an information element describing a restart process to an external device 20 located outside the vehicle or the vehicle network and with the ECU 13 can communicate.

Die externe Vorrichtung 20 ist, wie vorstehend beschrieben, dazu ausgelegt, Zieldaten an die ECU 13 zu senden. Die ECU 13 ist dazu ausgelegt, das Umschreiben auszuführen, indem sie Zieldaten, die von der externen Vorrichtung 20 empfangen werden, in das ROM 34 schreibt. In der vorliegenden Ausführungsform wird der Neustartablauf an die externe Vorrichtung 20 gesendet, um der externen Vorrichtung 20 zu erlauben, Zieldaten, die für den Neustart des Umschreibens benötigt werden, unter den Daten, die in dem Steuerprogramm enthalten sind, zu senden.The external device 20 As described above, it is configured to send target data to the ECU 13 to send. The ECU 13 is designed to perform the rewrite by sending target data from the external device 20 be received in the ROM 34 writes. In the present embodiment, the restarting process to the external device 20 sent to the external device 20 to allow destination data needed for restarting the rewrite to be sent among the data contained in the control program.

(3k) Gemäß der Konfiguration, die in einem von (3b) bis (3j) beschrieben ist, ist die ECU 13, in S95, dazu ausgelegt, zu bestimmen, ob alle der Verwaltungsblöcke den Löschzustand aufweisen, und dazu ausgelegt, das Fortschrittsinformationselement in einem vorbestimmten Block unter den Verwaltungsblöcken zu speichern, wenn alle der Verwaltungsblöcke den Löschzustand aufweisen. Da ein Verwaltungsblock, der das Fortschrittsinformationselement speichert, vorbestimmt ist, kann das Fortschrittsinformationselement mit Gewissheit gespeichert werden, wenn jeder von allen der Verwaltungsblöcke den Löschzustand aufweist.(3k) According to the configuration described in any one of (3b) to (3j), the ECU is 13 , in S95, configured to determine whether all of the management blocks have the erase state and configured to store the progress information item in a predetermined block among the management blocks when all of the management blocks have the erase state. Since a management block storing the progress information item is predetermined, the progress information item may be stored with certainty when each of all the management blocks has the deletion state.

(3l) Gemäß der Konfiguration, die in einem von (3b) bis (3k) beschrieben ist, ist die ECU 13, in S105, dazu ausgelegt, zu bestimmen, ob wenigstens ein Verwaltungsblock unter allen der Verwaltungsblöcke den Löschzustand aufweist, und dazu ausgelegt, das Fortschrittsinformationselement in einem des wenigstens einen Verwaltungsblocks zu speichern, wenn der wenigstens eine Verwaltungsblock unter allen der Verwaltungsblöcke den Löschzustand aufweist. Wenn beispielsweise, wie vorstehend beschrieben, entweder der erste Informationsblock 101 oder der zweite Informationsblock 102 den Löschzustand aufweist, wird das Fortschrittsinformationselement entweder in dem ersten Informationsblock 101 oder in dem zweiten Informationsblock 102 gespeichert, je nachdem, welcher den Löschzustand aufweist.(3l) According to the configuration described in any one of (3b) to (3k), the ECU 13 in S105, configured to determine whether at least one management block among all the management blocks has the erase state, and configured to store the progress information item in one of the at least one management block if the at least one management block among all the management blocks has the erase state. For example, as described above, if either the first information block 101 or the second information block 102 has the erase state, the progress information element either in the first block of information 101 or in the second information block 102 stored, whichever has the erase state.

D.h., ein neues Fortschrittsinformationselement wird in einem Verwaltungsblock im Löschzustand gespeichert, anstelle irgendeines Verwaltungsblocks, der nicht den Löschzustand aufweist; ein vergangenes (vorheriges) Fortschrittsinformationselement und ein neues (aktuelles) Fortschrittsinformationselement können so in wechselseitig verschiedenen Verwaltungsblöcken gespeichert werden. Hierdurch kann ein vorteilhafter Effekt gleich demjenigen in (3a) erzielt werden.That is, a new progress information item is stored in an erase state management block instead of any management block that does not have the erase state; a past (previous) progress information item and a new (current) progress information item can thus be stored in mutually different management blocks. As a result, an advantageous effect similar to that in (3a) can be achieved.

(3m) Gemäß der Konfiguration, die in einem von (3b) bis (3l) beschrieben ist, ist die ECU 13, in S110, dazu ausgelegt, zu bestimmen, ob alle der Verwaltungsblöcke den Nicht-Löschzustand aufweisen (d.h. nicht den Löschzustand aufweisen). Wenn alle der Verwaltungsblöcke den Nicht-Löschzustand aufweisen und somit jeweilige abgeschlossene Abläufe speichern, speichert die ECU 13 das Fortschrittsinformationselement in einem der Verwaltungsblöcke, der einen abgeschlossenen Ablauf speichert, der dem Hauptablauf am nächsten ist.(3m) According to the configuration described in any of (3b) to (3l), the ECU is 13 , in S110, configured to determine whether all of the management blocks have the non-erase state (ie, not the erase state). When all of the management blocks have the non-clear state and thus store respective completed procedures, the ECU stores 13 the progress information item in one of the management blocks that stores a completed process closest to the main process.

Es soll beispielsweise ein Fall angenommen werden, in dem sowohl der erste Informationsblock 101 als auch der zweite Informationsblock 102 den Nicht-Löschzustand aufweisen und somit jeweilige abgeschlossene Abläufe speichern. In solch einem Fall wird das Fortschrittsinformationselement entweder in dem ersten Informationsblock 101 oder in dem zweiten Informationsblock 102 gespeichert, je nachdem, welcher einen abgeschlossenen Ablauf speichert, der dem Hauptablauf näher ist. Hierdurch kann ein neueres Fortschrittsinformationselement gespeichert werden.For example, consider a case in which both the first information block 101 as well as the second information block 102 have the non-erase state and thus store respective completed processes. In such a case, the progress information item becomes either in the first information block 101 or in the second information block 102 stored, whichever stores a completed process that is closer to the main process. As a result, a newer progress information item can be stored.

Gemäß der obigen Ausführungsform ist das Fahrzeugsteuersystem 1 gleichbedeutend mit einem Steuersystem. Die ECU 13 ist gleichbedeutend mit einer elektronischen Steuereinheit. Das ROM 34 ist gleichbedeutend mit einem nichtflüchtigen Speicher. Ferner ist die ECU 13 gleichbedeutend mit jedem von einem Informationserfassungsabschnitt, einem Speicherungsausführungsabschnitt, einem Abschlussbestimmungsabschnitt, einem Neustarterkennungsabschnitt, einem Kontinuitätsbestimmungsabschnitt und einem Neustartsendeabschnitt. Ferner ist der Schritt S85 gleichbedeutend mit einer Verarbeitung als ein Informationserfassungsabschnitt; sind die Schritte S95, S105 und S110 gleichbedeutend mit einer Verarbeitung als ein Speicherungsausführungsabschnitt; ist der Schritt S5 gleichbedeutend mit einer Verarbeitung als ein Abschlussbestimmungsabschnitt; sind die Schritte S35 und S65 gleichbedeutend mit einer Verarbeitung als ein Neustarterkennungsabschnitt und ein Neustartsendeabschnitt; und ist der Schritt S45 gleichbedeutend mit einer Verarbeitung als ein Kontinuitätsbestimmungsabschnitt.According to the above embodiment, the vehicle control system is 1 synonymous with a tax system. The ECU 13 is synonymous with an electronic control unit. The ROM 34 is synonymous with a nonvolatile memory. Furthermore, the ECU 13 is equivalent to each of an information acquisition section, a storage execution section, a termination determination section, a restart detection section, a continuity determination section, and a restart end section. Further, the step S85 equivalent to a processing as an information acquiring section; are the steps S95 . S105 and S110 equivalent to a processing as a storage execution section; is the step S5 equivalent to processing as a completion determination section; are the steps S35 and S65 equivalent to processing as a restart detection section and a restart end section; and is the step S45 synonymous with processing as a continuity determining section.

Die DCM-ECU 11 oder das C-GW 12 sind gleichbedeutend mit einer anderen (d.h. verschiedenen) elektronischen Steuereinheit, die ein Fahrzeugnetzwerk bildet. Sowohl der erste Informationsblock 101 als auch der zweite Informationsblock 102 ist gleichbedeutend mit einem Verwaltungsblock. Sowohl das erste Informationselement als auch das zweite Informationselement ist gleichbedeutend mit einem Fortschrittsinformationselement. Mehrere Abläufe sind gleichbedeutend mit mehreren Umschreibeabläufen. Ferner ist der Hauptablauf gleichbedeutend mit einem erstrangigen Ablauf unter mehreren Umschreibeabläufen; ein finaler Ablauf ist gleichbedeutend mit einem finalen Ablauf unter mehreren Umschreibeabläufen.The DCM-ECU 11 or the C-GW 12 are synonymous with another (ie different) electronic control unit that forms a vehicle network. Both the first information block 101 as well as the second information block 102 is synonymous with a management block. Both the first information element and the second information element are synonymous with a progress information element. Several processes are synonymous with multiple rewrite procedures. Furthermore, the main flow is equivalent to a first order flow among a plurality of rewrite flows; a final process is equivalent to a final process under several rewrite procedures.

[Weitere Ausführungsformen][Other Embodiments]

Obgleich die vorliegende Erfindung vorstehend anhand ihrer Ausführungsform beschrieben ist, ist sie nicht auf diese beschränkt, sondern auf verschiedene Weise modifizierbar.Although the present invention is described above with reference to its embodiment, it is not limited to these, but modifiable in various ways.

(4a) In der obigen Ausführungsform sind die DCM-ECU 11, das C-GW 12 und die ECU 13 dazu ausgelegt, gemäß dem CAN-Standard miteinander zu kommunizieren. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Die DCM-ECU 11, das C-GW 12 und die ECU 13 sind dazu ausgelegt, gemäß dem Ethernet-Standard miteinander zu kommunizieren. Ethernet ist eine eingetragene Marke.(4a) In the above embodiment, the DCM-ECU 11 , the C-GW 12 and the ECU 13 designed to communicate with each other in accordance with the CAN standard. However, the present invention is not limited thereto. The DCM-ECU 11 , the C-GW 12 and the ECU 13 are designed to communicate with each other in accordance with the Ethernet standard. Ethernet is a registered trademark.

(4b) In der obigen Ausführungsform umfasst eine Mehrzahl von Umschreibeabläufen (umfassen die mehreren Umschreibeabläufe) einen Authentifizierungsablauf, einen Löschablauf, einen Schreibablauf einschließlich eines ersten Schreibablaufs und eines zweiten Schreibablaufs, einen Verifizierungsablauf und einen Abschlussablauf. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Die mehreren Umschreibeabläufe können einen oder einige eines Authentifizierungsablaufs, eines Löschablaufs, eines Schreibablaufs einschließlich eines ersten Schreibablaufs und eines zweiten Schreibablaufs, eines Verifizierungsablaufs und eines Abschlussablaufs umfassen. Der Schreibablauf kann erfolgen, ohne das Steuerprogramm als ein Umschreibeziel zu unterteilen.(4b) In the above embodiment, a plurality of rewriting procedures (including the plural rewrite procedures) include an authentication procedure, an erase procedure, a write operation including a first write operation and a second write operation, a verification procedure, and a completion procedure. However, the present invention is not limited thereto. The plurality of rewrite sequences may include one or more of an authentication procedure, an erase procedure, a write operation including a first write operation and a second write operation, a verification procedure, and a completion procedure. The writing can be done without subdividing the control program as a rewrite target.

(4c) In der obigen Ausführungsform wird das Fortschrittsinformationselement abwechselnd in zwei verschiedenen Verwaltungsblöcken, wie beispielsweise der erste Informationsblock 101 und der zweite Informationsblock 102, gespeichert. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Die Fortschrittsinformationselemente können in drei verschiedenen Verwaltungsblöcken, wie beispielsweise ein erster Informationsblock 101, ein zweiter Informationsblock 102 und ein dritter Informationsblock (nicht gezeigt), gespeichert werden. Alternativ können die Fortschrittsinformationselemente in vier oder mehr verschiedenen Verwaltungsblöcken gespeichert werden. In jeder der obigen Konfigurationen kann ein Fortschrittsinformationselement in einem Verwaltungsblock verschiedenen von einem Verwaltungsblock, in dem ein Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde, gespeichert werden, wodurch ein vorteilhafter Effekt gleich demjenigen in der obigen Ausführungsform erzielbar ist.(4c) In the above embodiment, the progress information item is alternately divided into two different management blocks, such as the first information block 101 and the second information block 102 , saved. However, the present invention is not limited thereto. The progress information items may be in three different management blocks, such as a first information block 101 , a second information block 102 and a third block of information (not shown). Alternatively, the progress information items may be stored in four or more different management blocks. In each of the above configurations, a progress information item in a management block other than a management block in which a progress information item has been stored at a previous time can be stored, whereby an advantageous effect similar to that in the above embodiment is achievable.

(4d) In der obigen Ausführungsform ist das Umschreiben eines Steuerprogramms als ein Beispiel beschrieben. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Die ECU 13 kann beispielsweise, in einem wiederbeschreibbaren Bereich 342 in dem ROM 34, die Daten (nachstehend als Diagnosedaten bezeichnet) speichern, die in Übereinstimmung mit einem Diagnoseergebnis eines Fahrzeugs durch die Diagnosevorrichtung 22 umgeschrieben werden. Die ECU 13 kann einen Umschreibeprozess gleich der obigen Ausführungsform ausführen, um so das Umschreiben der Diagnosedaten unter Verwendung der Diagnosedaten als Zieldaten, die in dem ROM 34 gespeichert werden, zu erzielen.(4d) In the above embodiment, the rewriting of a control program is described as an example. However, the present invention is not limited thereto. The ECU 13 for example, in a rewritable area 342 in the ROM 34 which stores data (hereinafter referred to as diagnostic data) in accordance with a diagnostic result of a vehicle by the diagnostic device 22 be rewritten. The ECU 13 may perform a rewriting process similar to the above embodiment so as to rewrite the diagnosis data using the diagnosis data as the target data stored in the ROM 34 saved to achieve.

(4e) In der obigen Ausführungsform speichert die ECU 13 ein Fortschrittsinformationselement in einem von mehreren Verwaltungsblöcken, wann immer das Fortschrittsinformationselement in S85 erfasst wird. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Wann immer ein Fortschrittsinformationselement in S85 erfasst wird, kann die ECU 13 dazu ausgelegt sein, das erfasste Fortschrittsinformationselement in zwei oder mehr Verwaltungsblöcken unter mehreren Verwaltungsblöcken zu speichern.(4e) In the above embodiment, the ECU stores 13 a progress information item in one of a plurality of management blocks whenever the progress information item is detected in S85. However, the present invention is not limited thereto. Whenever a progress information item is detected in S85, the ECU 13 be configured to store the acquired progress information item in two or more management blocks among a plurality of management blocks.

(4f) In der obigen Ausführungsform wird ein Verwaltungsblock, dessen Fortschrittsinformationselement zu aktualisieren ist, bei der Beendigung eines Umschreibeablaufs gelöscht, wie in der Beschreibung des zweiten Schreibablaufs unter Bezugnahme auf die 5 und 7 beschrieben. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Der Verwaltungsblock, dessen Fortschrittsinformationselement zu aktualisieren ist, kann kurz vor dem Start eines Umschreibeablaufs gelöscht werden. In den 5 und 7 kann beispielsweise der erste Informationsblock 101 entsprechend einem Verwaltungsblock, dessen Fortschrittsinformationselement aktualisiert wird, kurz vor dem Start des zweiten Schreibablaufs gelöscht werden.(4f) In the above embodiment, a management block whose progress information item is to be updated is terminated of a rewriting process, as in the description of the second writing process with reference to FIG 5 and 7 described. However, the present invention is not limited thereto. The management block whose progress information item is to be updated may be deleted just before the start of a rewrite process. In the 5 and 7 For example, the first information block 101 corresponding to a management block whose progress information item is updated to be cleared just before the start of the second writing operation.

(4g) In der obigen Ausführungsform ist, wenn ein Neustartablauf von der ECU 13 in B5 der 6 gemeldet wird, die externe Vorrichtung 20 dazu ausgelegt, in B6 eine ACK an die ECU 13 zu senden; die ACK dient als ein Informationselement, das einen Neustartablauf anzeigt, der von der ECU 13 empfangen worden ist. Die vorliegende Erfindung ist jedoch nicht hierauf beschränkt. Die ECU 13 kann dazu ausgelegt sein, in B6 zu bestimmen, ob ein Neustartablauf mit einem Neustartablauf übereinstimmt, der von der externen Vorrichtung 20 als eine ACK empfangen wird. In diesem Fall kann die ECU 13 dazu ausgelegt sein, B7 und dessen nachfolgende Verarbeitung ausführen, wenn bestimmt wird, dass ein Neustartablauf mit einem Neustartablauf übereinstimmt, der von der externen Vorrichtung 20 als eine ACK empfangen wird. Demgegenüber kann, wenn bestimmt wird, dass ein Neustartablauf nicht mit einem Neustartablauf übereinstimmt, der von der externen Vorrichtung 20 als eine ACK empfangen wird, die ECU 13 dazu ausgelegt sein, eine negative ACK an die externe Vorrichtung 20 zu senden und bei der externen Vorrichtung 20 anzufragen, das Umschreiben aus dem Hauptablauf auszuführen.(4g) In the above embodiment, when a restarting process is executed by the ECU 13 in B5 the 6 is reported, the external device 20 designed to have an ACK to the ECU in B6 13 to send; the ACK serves as an informational element indicating a reboot process initiated by the ECU 13 has been received. However, the present invention is not limited thereto. The ECU 13 may be configured to determine in B6 whether a reboot process matches a reboot process initiated by the external device 20 as an ACK is received. In this case, the ECU 13 be configured to perform B7 and its subsequent processing, if it is determined that a restart process coincides with a restart process that the external device 20 as an ACK is received. On the other hand, when it is determined that a restarting operation does not coincide with a restarting process, the external device may determine 20 when an ACK is received, the ECU 13 be designed to apply a negative ACK to the external device 20 to send and to the external device 20 to request that you rewrite from the main process.

(4h) Die obige Ausführungsform kann als ein Fahrzeugsteuersystem 1 realisiert sein. Das Fahrzeugsteuersystem 1, das in einem Fahrzeug befestigt ist, um ein Fahrzeugnetzwerk zu bilden, kann (i) eine ECU 13 mit einem nichtflüchtigen Speicher als ein wiederbeschreibbarer Speicher und (ii) eine externe Vorrichtung 20, die sich außerhalb des Fahrzeugnetzwerks befindet und mit der ECU 13 kommuniziert, aufweisen. Ferner kann das Fahrzeugsteuersystem 1 dazu ausgelegt sein, eine ECU 13 gemäß (3a) aufzuweisen. Ferner kann die ECU 13, die in dem Fahrzeugsteuersystem 1 enthalten ist, gemäß (3b) bis (3m) konfiguriert sein.(4h) The above embodiment may be referred to as a vehicle control system 1 be realized. The vehicle control system 1 Mounted in a vehicle to form a vehicle network may be (i) an ECU 13 a nonvolatile memory as a rewritable memory; and (ii) an external device 20 located outside the vehicle network and with the ECU 13 communicates. Furthermore, the vehicle control system 1 be designed to be an ECU 13 according to (3a). Furthermore, the ECU 13 used in the vehicle control system 1 is configured according to (3b) to (3m).

(4i) Mehrere Funktionen von einem bildenden Element in der obigen Ausführungsform können durch mehrere bildende Elemente erzielt werden; eine Funktion von einem bildenden Element kann durch mehrere bildende Elemente erzielt werden. Ferner können mehrere Funktionen von mehreren bildenden Elementen in der obigen Ausführungsform durch ein bildendes Element erzielt werden; eine Funktion von mehreren bildenden Elementen kann durch ein bildendes Element erzielt werden. Darüber hinaus kann ein Teil der Konfiguration in der obigen Ausführungsform ausgelassen sein. Ferner kann wenigstens ein Teil der Konfiguration in der obigen Ausführungsform durch die Konfiguration von einer anderen Ausführungsform, die vorstehend beschrieben ist, ersetzt werden oder zu dieser hinzugefügt werden. Alle Beispiele, die in einer technischen Idee gemäß den Ansprüchen enthalten sind, sind Ausführungsformen der vorliegenden Erfindung.(4i) Multiple functions of one constituent element in the above embodiment can be achieved by plural constituent elements; a function of one constituent element can be achieved by several constituent elements. Further, several functions of a plurality of constituent elements in the above embodiment can be achieved by a constituent element; a function of a plurality of constituent elements can be achieved by a constituent element. Moreover, part of the configuration in the above embodiment may be omitted. Further, at least part of the configuration in the above embodiment may be replaced or added to the configuration of another embodiment described above. All examples included in a technical idea according to the claims are embodiments of the present invention.

(4j) Die vorliegende Erfindung kann auf verschiedene Weise realisiert werden, wie beispielsweise als eine Vorrichtung, ein Programm, ein Speichermedium und ein Umschreibeverfahren. Die Vorrichtung weist ein Fahrzeugsteuersystem 1, ein In-Vehicle-Steuersystem 10, eine externe Vorrichtung 20, ein Zentrum 21, eine Diagnosevorrichtung 22 oder eine ECU 13 auf. Das Programm betreibt das Fahrzeugsteuersystem 1, das In-Vehicle-Steuersystem 10, die externe Vorrichtung 20, das Zentrum 21, die Diagnosevorrichtung 22 oder ECU 13. Das Speichermedium ist ein nichtflüchtiges körperliches Speichermedium, das das obige Programm speichert, wie beispielsweise ein Halbleiterspeicher.(4j) The present invention can be realized in various ways, such as a device, a program, a storage medium and a rewrite method. The device has a vehicle control system 1 , an in-vehicle tax system 10 , an external device 20 , a center 21 , a diagnostic device 22 or an ECU 13 on. The program operates the vehicle control system 1 , the in-vehicle tax system 10 , the external device 20 , the center 21 , the diagnostic device 22 or ECU 13 , The storage medium is a non-volatile physical storage medium storing the above program, such as a semiconductor memory.

Vorstehend ist eine elektronische Steuereinheit beschrieben.Above, an electronic control unit is described.

Eine elektronische Steuereinheit 13 weist ein ROM 34 als einen wiederbeschreibbaren Speicher auf. Das ROM erfährt das Umschreiben derart, dass die Daten blockweise gelöscht und anschließend Zieldaten in jeden Block geschrieben werden, der einen Löschzustand aufweist, nachdem alle der Daten gelöscht wurden. Die elektronische Steuereinheit weist einen Informationselementerfassungsabschnitt S85 und einen Speicherungsausführungsabschnitt S95, S105, S110 auf. Jedes Mal, wenn das Fortschrittsinformationselement erfasst wird, speichert der Speicherungsausführungsabschnitt das erfasste Fortschrittsinformationselement in wenigstens einem von mehreren Verwaltungsblöcken, derart, dass das erfasste Fortschrittsinformationselement in einem Verwaltungsblock, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde, unter den mehreren Verwaltungsblöcken gespeichert wird.An electronic control unit 13 has a ROM 34 as a rewritable memory. The ROM undergoes the rewrite so that the data is erased block by block, and then destination data is written to each block having an erase state after all of the data has been erased. The electronic control unit has an information element detection section S85 and a storage execution section S95 . S105 . S110 on. Each time the progress information item is detected, the storage execution section stores the acquired progress information item in at least one of a plurality of management blocks such that the acquired progress information item in a management block other than a management block in which the progress information item was stored at a previous time, is stored under the multiple management blocks.

ZITATE ENTHALTEN IN DER BESCHREIBUNG QUOTES INCLUDE IN THE DESCRIPTION

Diese Liste der vom Anmelder aufgeführten Dokumente wurde automatisiert erzeugt und ist ausschließlich zur besseren Information des Lesers aufgenommen. Die Liste ist nicht Bestandteil der deutschen Patent- bzw. Gebrauchsmusteranmeldung. Das DPMA übernimmt keinerlei Haftung für etwaige Fehler oder Auslassungen.This list of the documents listed by the applicant has been generated automatically and is included solely for the better information of the reader. The list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions.

Zitierte PatentliteraturCited patent literature

  • JP 2005056144 A [0002, 0003]JP 2005056144 A [0002, 0003]

Claims (10)

Elektronische Steuereinheit, die einen nichtflüchtigen Speicher als einen wiederbeschreibbaren Speicher aufweist, wobei - der nichtflüchtige Speicher mehrere Blöcke aufweist, die jeweils einen Speicherbereich mit einem vorbestimmten Datenvolumen bereitstellen, - der nichtflüchtige Speicher derart konfiguriert ist, dass (i) gespeicherte Daten blockweise gelöscht werden, (ii) ein Block, in dem die gespeicherten Daten gelöscht sind, einmal einen Löschzustand annimmt, und anschließend (iii) Umschreibezieldaten in den Block geschrieben werden, der den Löschzustand aufweist, wobei die elektronische Steuereinheit aufweist: - einen Informationserfassungsabschnitt (S85), der dazu ausgelegt ist, wiederholt ein Fortschrittsinformationselement zu erfassen, das einen Umschreibefortschrittsgrad anzeigt; und - einen Speicherungsausführungsabschnitt (S95, S105, S110), der dazu ausgelegt ist, jedes Mal, wenn das Fortschrittsinformationselement erfasst wird, das erfasste Fortschrittsinformationselement in wenigstens einem von mehreren vorbestimmten Verwaltungsblöcke zu speichern, die sich von einem Block unterscheiden, in dem die Zieldaten gespeichert werden, wobei - der Speicherungsausführungsabschnitt dazu ausgelegt ist, das Fortschrittsinformationselement in einem Verwaltungsblock unter den mehreren Verwaltungsblöcken zu speichern, der sich von einem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an einem vorherigen Zeitpunkt gespeichert wurde.An electronic control unit having a nonvolatile memory as a rewritable memory, wherein the nonvolatile memory has a plurality of blocks each providing a memory area with a predetermined data volume, the nonvolatile memory is configured to (i) erase stored data block by block, (ii) a block in which the stored data is erased, once cleared, and then (iii) rewrite target data to be written to the block has the erase state, wherein the electronic control unit comprises: an information acquiring section (S85) configured to repeatedly acquire a progress information item indicating a rewriting advance degree; and a storage execution section (S95, S105, S110) adapted to store the acquired progress information item in at least one of a plurality of predetermined management blocks different from a block in which the destination data is stored every time the progress information item is detected be, where the storage execution section is adapted to store the progress information item in a management block among the plurality of management blocks different from a management block in which the progress information item has been stored at a previous time. Elektronische Steuereinheit nach Anspruch 1, dadurch gekennzeichnet, dass - der nichtflüchtige Speicher dazu ausgelegt ist, das Umschreiben dadurch bedingt zu erfahren, dass mehrere vorbestimmte Umschreibeabläufe der Reihe nach ausgeführt werden; - der Informationserfassungsabschnitt dazu ausgelegt ist, jedes Mal ein Fortschrittsinformationselement zu erfassen, wenn ein Ablauf unter den mehreren Umschreibeabläufen ausgeführt wird, wobei das Fortschrittsinformationselement einen abgeschlossenen Ablauf anzeigt, der der eine Ablauf ist, dessen Ausführung abgeschlossen ist; und - der Speicherungsausführungsabschnitt dazu ausgelegt ist, das Fortschrittsinformationselement in einem Verwaltungsblock unter den mehreren Verwaltungsblöcken zu speichern, der sich von dem Verwaltungsblock unterscheidet, in dem das Fortschrittsinformationselement an dem vorherigen Zeitpunkt gespeichert wurde, wobei die elektronische Steuereinheit ferner aufweist: - einen Abschlussbestimmungsabschnitt (S5), der dazu ausgelegt ist, zu bestimmen, ob das Umschreiben abgeschlossen ist, dadurch bedingt, dass alle der mehreren Umschreibeabläufe ausgeführt sind; und - einen Neustarterkennungsabschnitt (S35, S65), der dazu ausgelegt ist, - das Fortschrittsinformationselement aus den mehreren Verwaltungsblöcken im Ansprechen darauf zu erfassen, dass der Abschlussbestimmungsabschnitt bestimmt, dass das Umschreiben nicht abgeschlossen ist, und - einen Neustartablauf auf der Grundlage des erfassten Fortschrittsinformationselements zu identifizieren, wobei der Neustartablauf aus den mehreren Umschreibeabläufen ist und beim Neustarten des Umschreibens zuerst ausgeführt wird.Electronic control unit after Claim 1 Characterized in that - the non-volatile memory is adapted to thereby find out the rewriting requires that a plurality of predetermined Umschreibeabläufe are sequentially carried out for; the information acquiring section is adapted to detect a progress information item each time a process is executed among the plurality of rewrite processes, the progress information item indicating a completed process being the one whose execution is completed; and the storage execution section is adapted to store the progress information item in a management block among the plurality of management blocks different from the management block in which the progress information item has been stored at the previous time, the electronic control unit further comprising: a completion determination section (S5 ) configured to determine whether the rewrite has been completed, due to all of the multiple rewrite operations being executed; and - a restart detection section (S35, S65) configured to: - detect the progress information item from the plurality of management blocks in response to the completion determination section determining that the rewrite is not completed, and - a restart process based on the acquired progress information item where the restart process is one of the multiple rewrite processes and is executed first when the rewrite is restarted. Elektronische Steuereinheit nach Anspruch 2, dadurch gekennzeichnet, dass der Neustarterkennungsabschnitt (S35) dazu ausgelegt ist, - zu bestimmen, ob alle der Fortschrittsinformationselemente, die aus den mehreren Verwaltungsblöcken erfasst werden, jeweils den Löschzustand anzeigen, und - als den Neustartablauf, einen erstrangigen Ablauf zu identifizieren, im Ansprechen darauf, dass bestimmt wird, dass alle der Fortschrittsinformationselemente jeweils den Löschzustand anzeigen, wobei der erstrangige Ablauf einer der mehreren Abläufe ist, der beim Umschreiben zuerst ausgeführt wird.Electronic control unit after Claim 2 characterized in that the restart detecting section (S35) is adapted to: - determine whether all of the progress information items detected from the plurality of management blocks respectively indicate the deletion state, and - as the restarting process, identify a first-order operation in response in that it is determined that all of the progress information items respectively indicate the deletion state, the first order one of the plural operations that is executed first at rewriting. Elektronische Steuereinheit nach Anspruch 2 oder Anspruch 3, dadurch gekennzeichnet, dass der Neustarterkennungsabschnitt (S65) dazu ausgelegt ist, - zu bestimmen, ob wenigstens eines der Fortschrittsinformationselemente, das aus den mehreren Verwaltungsblöcken erfasst wird, ein Aktualisierungsinformationselement ist, das ein Informationselement ist, das nicht den Löschzustand anzeigt, und - den Neustartablauf auf der Grundlage des Aktualisierungsinformationselements im Ansprechen darauf zu identifizieren, dass bestimmt wird, dass wenigstens eines der Fortschrittsinformationselemente das Aktualisierungsinformationselement ist.Electronic control unit after Claim 2 or Claim 3 characterized in that the restart detecting section (S65) is adapted to: determine whether at least one of the progress information items detected from the plurality of management blocks is an update information item that is an information item that does not indicate the deletion condition; Restarting process on the basis of the update information item in response to identifying that at least one of the progress information items is the update information item. Elektronische Steuereinheit nach Anspruch 4, dadurch gekennzeichnet, dass, im Ansprechen darauf, dass die Fortschrittsinformationselemente, die aus den mehreren Verwaltungsblöcken erfasst werden, mehrere Aktualisierungsinformationselemente aufweisen, der Neustarterkennungsabschnitt (S65) dazu ausgelegt ist, - einen unmittelbar vorherigen Ablauf zu identifizieren, der aus mehreren abgeschlossenen Abläufe ist, die durch die mehreren Aktualisierungsinformationselemente beschrieben werden, und der einem finalen Ablauf der mehreren Umschreibeabläufe am nächsten ist, und - anschließend einen nachfolgenden Ablauf, der einer der mehreren Abläufe nach dem unmittelbar vorherigen Ablauf ist, als den Neustartablauf zu identifizieren.Electronic control unit after Claim 4 characterized in that, in response to the progress information items detected from the plurality of management blocks having a plurality of update information items, the restart detecting portion (S65) is adapted to: - identify an immediately prior process consisting of a plurality of completed operations, which are described by the plurality of update information items and which is closest to a final run of the plurality of rewrite operations, and subsequently a subsequent one of one of the several operations after the immediately preceding one previous procedure is to identify as the restart process. Elektronische Steuereinheit nach Anspruch 5, dadurch gekennzeichnet, dass der Neustarterkennungsabschnitt (S65) einen Kontinuitätsbestimmungsabschnitt (S45) aufweist, der dazu ausgelegt ist, zu bestimmen, ob die mehreren abgeschlossenen Abläufe aufeinander folgende Abläufe der mehreren Umschreibeabläufe sind, im Ansprechen darauf, dass die mehreren Aktualisierungsinformationselemente in den Fortschrittsinformationselementen enthalten sind.Electronic control unit after Claim 5 characterized in that the restart detecting section (S65) has a continuity determining section (S45) adapted to determine whether the plurality of completed operations are consecutive operations of the plurality of rewrite operations in response to the plurality of update information items included in the progress information items are. Elektronische Steuereinheit nach Anspruch 6, dadurch gekennzeichnet, dass der Neustarterkennungsabschnitt (S65) dazu ausgelegt ist, - den unmittelbar vorherigen Ablauf im Ansprechen darauf zu identifizieren, dass bestimmt wird, dass die mehreren abgeschlossenen Abläufe aufeinander folgende Abläufe der mehreren Umschreibeabläufe sind, und - anschließend den nachfolgenden Ablauf, der auf den unmittelbar vorherigen Ablauf folgt, als den Neustartablauf zu identifizieren.Electronic control unit after Claim 6 characterized in that the restart detecting section (S65) is arranged to: - identify the immediately previous flow in response to it being determined that the plural completed flows are consecutive flows of the plurality of rewrite flows, and then the subsequent flow which following the immediately preceding expiration, as identifying the restart process. Elektronische Steuereinheit nach Anspruch 6 oder 7, dadurch gekennzeichnet, dass der Neustarterkennungsabschnitt (S35) dazu ausgelegt ist, als den Neustartablauf, einen erstrangigen Ablauf zu identifizieren, der ein Ablauf ist, der unter den mehreren Umschreibeabläufen zuerst ausgeführt wird, im Ansprechen darauf, dass bestimmt wird, dass die mehreren abgeschlossenen Abläufe nicht aufeinander folgende Abläufe der mehreren Umschreibeabläufe sind.Electronic control unit after Claim 6 or 7 characterized in that the restart detecting section (S35) is arranged to identify, as the restarting operation, a first order process which is a process executed first among the plurality of rewriting processes, in response to being determined that the plurality of completed ones Operations are not consecutive operations of the multiple rewrite operations. Elektronische Steuereinheit nach einem der Ansprüche 4 bis 8, dadurch gekennzeichnet, dass, im Ansprechen darauf, dass bestimmt wird, dass die mehreren Fortschrittsinformationselemente, die aus den mehreren Verwaltungsblöcken erfasst werden, ein Aktualisierungsinformationselement aufweisen, der Neustarterkennungsabschnitt (S65) dazu ausgelegt ist, als den Neustartablauf, einen nachfolgenden Ablauf zu identifizieren, der auf einen abgeschlossenen Ablauf folgt, der durch das eine Aktualisierungsinformationselement beschrieben wird.Electronic control unit according to one of Claims 4 to 8th characterized in that, in response to determining that the plurality of progress information items detected from the plurality of management blocks has an update information item, the restart detection portion (S65) is configured to identify, as the restarting operation, a subsequent operation, which follows a completed process described by the one update information item. Elektronische Steuereinheit nach einem der Ansprüche 2 bis 9, dadurch gekennzeichnet, dass die elektronische Steuereinheit in einem Fahrzeug befestigt und über eine Kommunikationsleitung (15) mit einer anderen elektronischen Steuereinheit verbunden ist, die in dem Fahrzeug befestigt ist, um so ein Fahrzeugnetzwerk in dem Fahrzeug zu bilden, wobei die elektronische Steuereinheit ferner aufweist: - einen Neustartsendeabschnitt (S35, S65), der dazu ausgelegt ist, ein Informationselement, das den Neustartablauf beschreibt, an eine externe Vorrichtung (20) zu senden, die sich außerhalb des Fahrzeugnetzwerks befindet und mit der elektronischen Steuereinheit kommuniziert.Electronic control unit according to one of Claims 2 to 9 characterized in that the electronic control unit is mounted in a vehicle and connected via a communication line (15) to another electronic control unit mounted in the vehicle so as to form a vehicle network in the vehicle, the electronic control unit further comprising a restart end section (S35, S65) adapted to send an information item describing the restarting process to an external device (20) located outside the vehicle network and communicating with the electronic control unit.
DE102018210868.4A 2017-07-12 2018-07-02 Electronic control unit Pending DE102018210868A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017-136365 2017-07-12
JP2017136365A JP6935694B2 (en) 2017-07-12 2017-07-12 Electronic control device

Publications (1)

Publication Number Publication Date
DE102018210868A1 true DE102018210868A1 (en) 2019-01-17

Family

ID=64745157

Family Applications (1)

Application Number Title Priority Date Filing Date
DE102018210868.4A Pending DE102018210868A1 (en) 2017-07-12 2018-07-02 Electronic control unit

Country Status (2)

Country Link
JP (1) JP6935694B2 (en)
DE (1) DE102018210868A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230027587A1 (en) * 2020-01-10 2023-01-26 Hitachi Astemo, Ltd. Electronic control unit and electronic control system
JP7490518B2 (en) 2020-09-29 2024-05-27 本田技研工業株式会社 CONTROL SYSTEM, MOBILE BODY, PROGRAM, AND CONTROL METHOD

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005056144A (en) 2003-08-04 2005-03-03 Nec Viewtechnology Ltd Electronic apparatus loaded with flash memory, its memory data managing method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004280752A (en) * 2003-03-19 2004-10-07 Sony Corp Date storage device, management information updating method for data storage device, and computer program
JP4577075B2 (en) * 2005-04-22 2010-11-10 株式会社デンソー Automotive control unit
JP5629927B2 (en) * 2010-11-12 2014-11-26 クラリオン株式会社 Online update method for in-vehicle devices
JP5884663B2 (en) * 2012-07-10 2016-03-15 株式会社デンソー Electronic control device and data rewriting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005056144A (en) 2003-08-04 2005-03-03 Nec Viewtechnology Ltd Electronic apparatus loaded with flash memory, its memory data managing method, and program

Also Published As

Publication number Publication date
JP6935694B2 (en) 2021-09-15
JP2019020837A (en) 2019-02-07

Similar Documents

Publication Publication Date Title
DE10315490B4 (en) Method and system for switching between two or more firmware images on a host device
DE19929796B4 (en) Apparatus and method for rewriting data from a volatile memory to a nonvolatile memory
DE112017003641T5 (en) Data overwrite device and data overwrite program
DE60119412T2 (en) Memory override system for a vehicle control device
DE19839680B4 (en) Method and device for modifying the memory contents of control units
DE102006029690A1 (en) Maintaining identification of an electronic control unit during reprogramming events
DE102020104652A1 (en) Program update system, control system, mobile body, program update procedure and program
DE102018210868A1 (en) Electronic control unit
DE19934191B4 (en) Electronic control unit and control method for storing a rewrite count of a nonvolatile memory
DE10330607A1 (en) Single chip microcomputer and method for its boot region switches
DE102009051675A1 (en) Electronic control unit for use in vehicle, has flash memory for storing boot program, control program and data, where executing function tends to read out information from identification information address by executing boot program
WO2017125181A1 (en) Method for updating control device software, preferably for a motor vehicle
DE112019000179T5 (en) VEHICLE CONTROL DEVICE AND PROGRAM UPDATE SYSTEM
DE19755958B4 (en) Method for updating a motor vehicle control program and updating device for a motor vehicle control
DE102012101405B4 (en) Control device for controlling data reading and writing from and to a flash memory
DE3210616A1 (en) COMPUTER
WO2020099023A2 (en) Control device for a vehicle component, kit comprising a control device and a testing device, vehicle, method for updating a control device, and computer-readable storage medium
EP0664387B1 (en) Process to change the working mode of a control device in vehicles
DE102022110251A1 (en) OTA MASTER, CENTER, SYSTEM, PROCEDURE, NON-TRANSITORY STORAGE MEDIUM AND VEHICLE
EP3797352B1 (en) Method for exchanging a first executable program code and a second executable program code, and control unit
DE102021131057A1 (en) System and method for performing an operating system task for a vehicle
DE112015002881B4 (en) Storage device, flash memory controller and program
DE102016202684A1 (en) DATA MANAGEMENT DEVICE AND DATA MANAGEMENT PROGRAM
DE102018210956A1 (en) ELECTRONIC CONTROL UNIT AND UPDATE SOFTWARE DISTRIBUTION SYSTEM
DE102017202282A1 (en) VEHICLE CONTROL DEVICE AND VEHICLE NETWORK WITH VEHICLE CONTROL DEVICE

Legal Events

Date Code Title Description
R012 Request for examination validly filed
R016 Response to examination communication