USPatent applicationPatented

Electronic control device

Granted 28 Aug 2007 · 3 office actions

Life of the application

13 dated events
⤢ drag to zoom20042006200820102012201420162018202020222024ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

An ECU includes a microcomputer that has an integrated flash memory. An initial writing flag is set in the microcomputer before an initial writing to the flash memory. The microcomputer enters into a writing mode when the flag determines permission of data writing. When the data-writing to the flash memory is completed, the flag is cleared.

Description

7 parts
›CROSS REFERENCE TO RELATED APPLICATION

This application is based on and incorporates herein by reference Japanese Patent Application No. 2002-146772 filed on May 21, 2002.

›FIELD OF THE INVENTION

The present invention relates to an electronic control device.

›BACKGROUND OF THE INVENTION

A known electronic control device (onboard ECU) for controlling an engine includes a microcomputer and a flash memory. In this ECU, the microcomputer is set to a writing mode to write control programs or control data to the memory. The mode is set by an external program-writing device. The program-writing device is a fixture having multiple probe pins. It sets the microcomputer to the writing mode by an electrical trigger. More specifically, the microcomputer is electrically connected to the program-writing device via the probe pins and set to the writing mode.

Referring to FIG. 5 , the ECU is manually connected to the program-writing device (P 11 ) and set to the writing mode by the program-writing device (P 12 ). Necessary data is transmitted from the program-writing device to the ECU (P 13 ) and the data is sequentially written to the flash memory (P 14 ). When completed, the ECU is disconnected from the program-writing device and connected to an inspection device (P 15 ). The inspection device inspects the data in the flash memory (P 16 ). If an error is detected, it is reported to the operator for prompting to take action, such as parts replacement, to fix the error (P 17 ).

Since the data in the flash memory is important information, especially the control programs contains information necessary for controlling the ECU, it should be protected. Therefore, a mode of writing data to the memory is set to prevent unintentional mode switching.

When data is written to the ECU in this device, an external program-writing device is required. Therefore, the facility cost and the amount of work including device setups become issues. Especially, when the mode is set via the probe pins, a designated device for setting probe pin positions is required for each ECU.

›SUMMARY OF THE INVENTION

The present invention therefore has an objective to provide an electronic control device in which data is properly written to a nonvolatile memory without complicated machinery and work procedures. In an electronic control device of the present invention, data is written to a nonvolatile memory by an external device under the condition that a predetermined writing mode is set. A flag for permitting or inhibiting the data writing to the memory is set in the microcomputer. When the flag is set to a state of permitting the data writing, the mode is determined as a writing mode. When the data writing is completed, the flag is cleared.

Since the writing mode is determined only by referring to the flag, an external program-writing device is not required for setting up the mode. This simplifies facilities and reduces an amount of work required for machine setups. Moreover, the flag is cleared when the data writing is completed, and the data writing is inhibited afterwards. This prevents unintentional switching to the writing mode, which may cause overwriting the memory 12 . Therefore, the data writing to the memory 12 is properly performed. The facilities and work procedures can be also simplified through the usage of the flag.

›BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objectives, 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:

FIG. 1 is a block diagram of an electronic control device according to the first and the other embodiments of the present invention;

FIG. 2 is a flowchart of a process of writing data to a flash memory;

FIG. 3 is a flowchart of a data-writing process performed by a microcomputer after a power is turned on according to the first embodiment;

FIG. 4 is a flowchart of a data-writing process performed by the microcomputer after a power is turned on according to the second embodiment; and

FIG. 5 is a flowchart of a process of writing data to a flash memory.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 1 of 2

The preferred embodiments of the present invention will be explained with reference to the accompanying drawings.

First Embodiment

Referring to FIG. 1 , an electronic control unit (ECU) 10 used for engine control or transmission control has a microcomputer 11 . The microcomputer 11 has an integrated flash memory 12 in which various data, including control programs and control data, is stored. The flash memory 12 is a nonvolatile memory, which is electrically rewritable. The data is written to the memory 12 by an external device via a data signal line 13 .

Data writing to the memory 12 is permitted only when a writing mode is determined. More specifically, a gate circuit 14 is provided in the signal line 13 , and the data is written to the memory 12 when the gate circuit 14 is active. An initial writing flag is set to indicate that no data is written in the memory 12 when the microcomputer 11 is installed in the ECU 10 . The gate circuit 14 is switched between an active state and a negative state based on the flag.

The gate circuit 14 becomes active under the condition that the flag is set, and the data-writing to the memory 12 is permitted. An inspection device 20 , which is an external device, is connected to the ECU 10 . A controller area network (CAN) communication is used for data input/output between the ECU 10 and the inspection device 20 via a data signal line 30 . The CAN communication enables data transfer at a rate faster than the serial communication interface (SCI) communication. The inspection device 20 inspects the data written in the memory 12 by a checksum. The data is also read from the ECU 10 to the memory 12 upon a request issued by the ECU 10 .

If a speed at which the ECU 10 receives the data from the inspection device 20 is faster than a speed at which the data is written to the memory 12 , the data may not be properly written. Communication weight logic is used to reduce such problems. In the communication weight logic, an appropriate data transfer speed can be set for the inspection device 20 .

Referring to FIG. 2 , the inspection device 20 is manually connected to the ECU 10 (P 1 ). A power source to the ECU 10 is turned on (P 2 ), and a status of the initial writing flag is determined (P 3 ). If it is the initial writing to the memory 12 , the initial writing flag is supposed to be set. Therefore, the writing mode is set in the next step when the status of the flag is determined set. If the status of the flag is determined cleared, the initial writing is supposed to be completed, that is, the microcomputer 11 is supposed to be programmed. In this case, a program for setting a different mode is executed. The microcomputer 11 is reprogrammed upon a request.

FIG. 3 is a flowchart of the program executed by the microcomputer 11 to determine the status of the flag. After the power source is turned on, it is determined whether the initial writing flag is set (step 101 ). If it is determined that the flag is set, the writing mode is set (step 102 ). If it is determined that the flag is cleared, a different mode is set (step 103 ).

When the writing mode is set, the microcomputer 11 issues a request for data transmission (P 4 ). The inspection device 20 sends requested data to the ECU 10 according to the issued request (P 5 ). In the microcomputer 11 , the received data is sequentially written to the memory 12 (P 6 ). When all requested data is written in the memory 12 , the initial writing flag is cleared (P 7 ).

In the inspection device 20 , the data written in the memory 12 is inspected (P 8 ). If an error is detected, error information is reported to an operator for prompting to take action, such as parts replacement (P 9 ). This inspection can be performed by the microcomputer 11 instead of the inspection device 20 .

With this configuration, whether the mode is set to the writing mode is determined only by detecting the initial writing flag. Therefore, external devices, such as a program-writing device, are not required for setting the mode. This simplifies facilities and reduces an amount of work for machine setups.

Furthermore, the data writing is inhibited after the initial writing is completed and the initial writing flag is cleared. This prevents unintentional switching to the writing mode, which may cause overwriting the memory 12 . Therefore, the data writing to the memory 12 is properly performed, especially at the initial writing during the installation of the microcomputer 11 into the ECU 10 . The mode is selected based on the status of the initial writing flag. Thus, the microcomputer 11 is set to the proper mode at each time.

Second Embodiment

FIG. 4 is a flowchart of the program executed by the microcomputer 11 to determine the status of the flag. In the first step, it is determined whether an electrical signal is inputted from an external device (step 201 ). If the electrical signal is detected, the initial writing flag is set (step 202 ). If the electrical signal is not detected, it is determined whether the initial writing flag is set (step 203 ). If the flag is set, the writing mode is set in the next step (step 204 ). If the flag is cleared, a different mode is set (step 205 ). In this embodiment, the initial writing flag is used to indicate not only for the initial writing but also for all writing permission or inhibition.

This embodiment is useful in a case that programs stored in the memory 12 need to be modified or reprogrammed. In such a case, the initial writing flag needs to be reset for setting the mode back to the writing mode. To reset the flag, the electrical signal is inputted from the external device. The external device may be the inspection device 20 or other mode-setting device. With this configuration, the modification or reprogramming, that is, rewriting data to the memory 12 can be made properly. Furthermore, the flag is reset only when the electrical signal is inputted. Therefore, the improper writing due to unintentional setting of the flag is less likely to happen.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 2 of 2

The present invention should not be limited to the embodiment previously discussed and shown in the figures, but may be implemented in various ways without departing from the spirit of the invention. For example, an EEPROM can be used instead of the memory 12 . The flag may be reset for rewriting when an error is detected during the inspection of the data in the memory 12 .

Claims as granted

11 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

16 codes
IPC · International Patent Classification
Section B — Performing operations; transporting
  • B60W50/00
Section F — Mechanical engineering; lighting; heating; weapons
  • F02D45/00
  • F02D41/26
  • F02D41/24
Section G — Physics
  • G06F21/62
  • G06F21/60
  • G06F21/79
  • G06F12/14
  • G05B19/042
  • G06F11/00
  • G06F12/00
USPC · US Patent Classification
711/103711/154711/145365/185.3711/163

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJul 2003Jan 2004Jul 2004Jan 2005Jul 2005Jan 2006Jul 2006Jan 2007Jul 2007USPTOApplicantNon-final rejectionResponse after non-finalNotice of appeal filedNon-final rejectionResponse after non-final
USPTOApplicanthover for detail · click to open
Pendency
4.3 y
1,561 days filing → grant
Office actions
3
non-final + final
Responses
2
1 RCE
Examiner
Kimberly McLean-Mayo
art unit 2187 · TC 2100
Citations: 7 back · 2 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20042006200820102012201420162018202020222024Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock