JP2013060141A - Information processing apparatus, and method for recording data - Google Patents

Information processing apparatus, and method for recording data Download PDF

Info

Publication number
JP2013060141A
JP2013060141A JP2011200781A JP2011200781A JP2013060141A JP 2013060141 A JP2013060141 A JP 2013060141A JP 2011200781 A JP2011200781 A JP 2011200781A JP 2011200781 A JP2011200781 A JP 2011200781A JP 2013060141 A JP2013060141 A JP 2013060141A
Authority
JP
Japan
Prior art keywords
data
storage device
stop operation
information processing
engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011200781A
Other languages
Japanese (ja)
Other versions
JP5803466B2 (en
Inventor
Ichiro Kitaori
一郎 北折
Wachio Kobayashi
和千男 小林
Ryohei Haga
良平 芳賀
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2011200781A priority Critical patent/JP5803466B2/en
Publication of JP2013060141A publication Critical patent/JP2013060141A/en
Application granted granted Critical
Publication of JP5803466B2 publication Critical patent/JP5803466B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an information processing apparatus that can prevent an inconsistency of data even if IG-ON and IG-OFF are repeated in a short time during data saving.SOLUTION: The information processing apparatus 100 for writing data of a first storage device to a second storage device at a timing of receiving an engine stop operation, includes: operation receiving means 51, 52 for receiving the engine stop operation or an engine start operation; a stop/start operation recording means 42 for recording a specific operation of receiving the engine start operation within a predetermined time after the operation receiving means receive the engine stop operation, and also deleting the record in the lapse of a predetermined time after the operation receiving means receive the engine stop operation; and a data writing means 43 for writing the data of the first storage device to the second storage device. The data writing means cancels writing of data to the second storage device from the first storage device when a record of the specific operation is present.

Description

エンジン停止操作、又は、少なくとも電動機を含む走行システムの停止操作を受け付けたタイミングで第一の記憶装置のデータを第二の記憶装置に書き出す情報処理装置に関する。   The present invention relates to an information processing apparatus that writes data in a first storage device to a second storage device at a timing when an engine stop operation or at least a stop operation of a traveling system including an electric motor is received.

車両の走行中に得られたデータを永続化するため、RAMなどの揮発メモリに記憶しておいたデータをあるタイミングで不揮発メモリに退避することが行われる。不揮発メモリにはHDD(Hard Disk Drive)、EEPROM、フラッシュメモリなどがあるが、書き込み速度、容量、安定性などの総合的な優位性からフラッシュメモリが使用されることが多い。   In order to perpetuate data obtained while the vehicle is running, data stored in a volatile memory such as a RAM is saved to the nonvolatile memory at a certain timing. Nonvolatile memory includes HDD (Hard Disk Drive), EEPROM, flash memory, and the like, but flash memory is often used because of its comprehensive advantages such as writing speed, capacity, and stability.

しかしながら、フラッシュメモリはデータの書込み回数に制限があるため、書き込み回数をなるべく抑制しておくことが要請される。車両の運用年数は数年以上なので、フラッシュメモリへの書き込み回数も車両の運用期間は超えないようにしたい。一方、書き込み回数を抑制しすぎるとデータの有効性が薄れてしまう。このような考えから、車両においては、エンジンキースイッチのオフ(IG‐OFF)を契機に、マイコンがRAMのデータをフラッシュメモリに退避する処理を開始する設計が多く採用される。   However, since the flash memory has a limited number of data writes, it is required to suppress the number of data writes as much as possible. Since the vehicle has been in operation for more than a few years, the number of writes to the flash memory should not exceed the vehicle operation period. On the other hand, if the number of times of writing is suppressed too much, the effectiveness of the data is diminished. From such an idea, in the vehicle, many designs are employed in which the microcomputer starts the process of saving the RAM data to the flash memory when the engine key switch is turned off (IG-OFF).

しかし、業務用の車両や運転者によっては頻繁にIG‐OFFされることもあり、書き込み回数が多くなるおそれがある。この点について、書き込み回数や書き込みのデータ量を制御する技術が提案されている(例えば、特許文献1参照。)。特許文献1には、不揮発性半導体メモリの書込みタイミング時に、エンジンキーのオンから不揮発性半導体メモリの書込みタイミングに至る間の車両状態をクラス分けしておき、該当するクラスに対し予め定められたデータ項目の収集データのみを不揮発性半導体メモリに書き込む車両用電子制御ユニットが開示されている。   However, some vehicles and drivers for business use may be frequently IG-OFF, which may increase the number of writings. In this regard, a technique for controlling the number of times of writing and the amount of data to be written has been proposed (see, for example, Patent Document 1). Patent Document 1 classifies vehicle states from the time when the engine key is turned on to the time of writing to the nonvolatile semiconductor memory at the time of writing to the nonvolatile semiconductor memory, and data predetermined for the corresponding class. A vehicle electronic control unit is disclosed that writes only item collection data into a non-volatile semiconductor memory.

特開2009‐214596号公報JP 2009-214596 A

しかしながら、従来の電子制御ユニットでは、データの不整合を防止できないという問題がある。   However, the conventional electronic control unit has a problem that data inconsistency cannot be prevented.

図1は、データの不整合を説明する図の一例である。マイコンは、IG‐OFFを検出すると、SRAM(Static Random Access Memory)内に収集したデータをフラッシュメモリに退避し始める。全てのデータを退避するこの処理には、ある程度の時間(システムによるが数秒から十秒弱)が必要である。   FIG. 1 is an example of a diagram for explaining data inconsistency. When the microcomputer detects IG-OFF, it starts saving the data collected in the SRAM (Static Random Access Memory) to the flash memory. This process of saving all data requires a certain amount of time (a few seconds to a little less than 10 seconds depending on the system).

データの退避の最中に、運転者がIG‐ONして簡単な作業を行い(例えばドアウィンドウを開閉した)、再度、IG‐OFFするような、短時間のIG‐ON、IG‐OFFの繰り返しが生じることがある。例えば、マイコンが1〜5までのデータを退避した段階で、運転者がIG‐ONを行い短時間にIG‐OFFを行った場合、マイコンは最初からデータの退避を始めようとする。   During data evacuation, the driver performs IG-ON and performs simple work (for example, opening and closing the door window), and then IG-OFF is turned on again for a short period of IG-ON and IG-OFF. Repeats may occur. For example, when the driver saves data 1 to 5 and the driver performs IG-ON and performs IG-OFF in a short time, the microcomputer tries to start saving data from the beginning.

この場合、途中まで書き込まれたデータの退避はそこで終了してしまうので、本来退避されるべき、データ(図では6〜10)が退避されないことになってしまう。また、次にIG‐ONされた後に、SRAMのデータが書き換えられるおそれがある。このため、マイコンが、再度、データを退避しようとしても、SRAMの元のデータを全て退避できるとは限らない。以下、このようにSRAMのデータとデータフラッシュに記憶されるデータの違いをデータの不整合という。   In this case, evacuation of data written halfway ends there, and data (6 to 10 in the figure) that should be evacuated is not saved. Further, there is a risk that the SRAM data will be rewritten after the next IG-ON. For this reason, even if the microcomputer tries to save the data again, it cannot always save all the original data in the SRAM. Hereinafter, the difference between the SRAM data and the data stored in the data flash is referred to as data mismatch.

また、近年、半導体集積回路の微細化が進み、1つの電子制御ユニットに複数のCPU又はマイコンが搭載されることも少なくなくなった。また、車載されるECUの数を低減する試みも継続的に行われている。このため、ECU内のあるマイコンが別のマイコンのデータフラッシュにデータを退避するという状況が生じるようになった。この場合、データを退避する制御を行うマイコンと、データフラッシュを持つマイコンが別体なので、上述した問題がさらに生じやすくなる。   In recent years, semiconductor integrated circuits have been miniaturized and a plurality of CPUs or microcomputers are often mounted on one electronic control unit. In addition, attempts to reduce the number of ECUs mounted on the vehicle are continuously made. For this reason, a situation has arisen in which one microcomputer in the ECU saves data in a data flash of another microcomputer. In this case, since the microcomputer that performs control for saving data and the microcomputer having the data flash are separate, the above-described problem is more likely to occur.

本発明は、上記課題に鑑み、短時間にIG‐ON、IG‐OFFが繰り返されても、データの不整合を防止することができる情報処理装置を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an information processing apparatus capable of preventing data inconsistency even when IG-ON and IG-OFF are repeated in a short time.

本発明は、エンジン停止操作、又は、少なくとも電動機を含む走行システムの停止操作を受け付けたタイミングで第一の記憶装置のデータを第二の記憶装置に書き出す情報処理装置であって、エンジン停止操作若しくはエンジン始動操作、又は、少なくとも電動機を含む走行システムの停止操作若しくは始動操作を受け付ける操作受け付け手段と、前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから、所定時間内にエンジン始動操作又は走行システムの始動操作を受け付けた特定操作を記録すると共に、前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから所定時間経過後に前記特定操作の記録を消去する停止始動操作記録手段と、前記第一の記憶装置のデータを前記第二の記憶装置に書き出すデータ書き出し手段と、を有し、前記データ書き出し手段は、前記特定操作の記録がある場合には第一の記憶装置から第二の記憶装置へのデータの書き出しを取り消す、ことを特徴とする。   The present invention is an information processing apparatus that writes data in a first storage device to a second storage device at a timing when an engine stop operation or a stop operation of a traveling system including at least an electric motor is received. An operation accepting means for accepting an engine start operation, or at least a stop operation or a start operation of a travel system including an electric motor, and an engine start within a predetermined time after the operation accepting means accepts an engine stop operation or a travel system stop operation. A stop start operation for recording a specific operation that has received an operation or a start operation for a traveling system, and for erasing a record of the specific operation after a predetermined time has elapsed since the operation receiving means received an engine stop operation or a stop operation for the traveling system Recording means and data of the first storage device Data writing means for writing to a second storage device, and the data writing means cancels writing of data from the first storage device to the second storage device when there is a record of the specific operation. It is characterized by that.

データ退避中に短時間にIG‐ON、IG‐OFFが繰り返されても、データの不整合を防止することができる情報処理装置を提供することができる。   It is possible to provide an information processing apparatus capable of preventing data inconsistency even if IG-ON and IG-OFF are repeated in a short time during data saving.

データの不整合を説明する図の一例である。It is an example of the figure explaining data inconsistency. 本実施形態のデータ記憶方法の概略的な特徴を説明する図の一例である。It is an example of the figure explaining the schematic characteristic of the data storage method of this embodiment. 車載ネットワークの概略構成図の一例である。It is an example of the schematic block diagram of a vehicle-mounted network. データ記録ECUのハードウェア構成図の一例である。It is an example of the hardware block diagram of data recording ECU. メインマイコン及びサブマイコンの機能ブロック図の一例である。It is an example of a functional block diagram of a main microcomputer and a sub microcomputer. データ記録ECUがデータをSRAMに記録する手順を示すフローチャート図の一例である。It is an example of the flowchart figure which shows the procedure in which data recording ECU records data on SRAM. フラグ設定部がIG‐ONとIG‐OFFの頻繁な繰り返しの有無を判定する手順を示すフローチャート図の一例である。It is an example of the flowchart figure which shows the procedure in which a flag setting part determines the presence or absence of frequent repetition of IG-ON and IG-OFF. 所定時間を説明する図の一例である。It is an example of the figure explaining predetermined time. データ記録ECUがフラグA、Bを参照して、SRAMのデータをデータフラッシュに格納する手順を示すフローチャート図の一例である。It is an example of the flowchart figure which shows the procedure in which data recording ECU refers the flags A and B and stores the data of SRAM in a data flash. IG‐ON、IG‐OFFとデータ記録の関係を説明する図の一例である。It is an example of the figure explaining the relationship between IG-ON and IG-OFF and data recording. データ記録ECUの構成例を説明する図の一例である。It is an example of the figure explaining the structural example of data recording ECU.

以下、本発明を実施するための形態について図面を参照しながら説明する。
図2は、本実施形態のデータ記憶方法の概略的な特徴を説明する図の一例である。
S1:マイコンはIG‐OFFになったか否かを監視している。
S2:IG‐OFFになった場合(S1のYes)、マイコンはそのIG‐OFFが頻繁なIG‐ONとIG‐OFFの繰り返しか否かを判定する。頻繁なIG‐ONとIG‐OFFの繰り返しとは、最後のIG‐OFFから所定時間内にIG‐ONかつIG‐OFFされるこという。
S3:頻繁なIG‐ONとIG‐OFFの繰り返しが検出された場合(S2のYes)、マイコンはSRAMに記憶されたデータを保持する。すなわち、データフラッシュへの退避を開始することなく、SRAMへの電源供給を維持(リフレッシュして揮発を防ぐ)するなどしてSRAMにデータを保全する。
S4:頻繁なIG‐ONとIG‐OFFの繰り返しが検出されない場合(S2のNo)、マイコンはSRAMに記憶されたデータのデータフラッシュへの記録を開始する。
Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
FIG. 2 is an example of a diagram illustrating schematic features of the data storage method of the present embodiment.
S1: The microcomputer monitors whether or not the IG-OFF is set.
S2: When IG-OFF is set (Yes in S1), the microcomputer determines whether or not the IG-OFF is a repetition of frequent IG-ON and IG-OFF. Frequent IG-ON and IG-OFF repetition means that IG-ON and IG-OFF are performed within a predetermined time from the last IG-OFF.
S3: When frequent repetition of IG-ON and IG-OFF is detected (Yes in S2), the microcomputer holds the data stored in the SRAM. That is, the data is maintained in the SRAM by maintaining the power supply to the SRAM (refreshing to prevent volatilization) without starting the saving to the data flash.
S4: If frequent IG-ON and IG-OFF repetitions are not detected (No in S2), the microcomputer starts recording the data stored in the SRAM to the data flash.

最後のIG‐OFFから十分に時間が経過すれば、S2の判定はNoになるので、マイコンは最後のIG‐OFFから十分に時間が経過した状態のIG‐ON→IG‐OFFであれば、IG‐OFFの直後にデータの記録を開始する。これに対し、最後のIG‐OFFから所定時間内のIG‐ON→IG‐OFFでは、データの記録を行わないので、すでに行われているデータの記録が終わるまでに次のデータの記録を開始することを抑制できる。したがって、SRAMのデータとデータフラッシュのデータの不整合の発生を抑制できる。   If enough time has passed since the last IG-OFF, the determination of S2 will be No, so if the microcomputer is IG-ON → IG-OFF in a state where enough time has passed since the last IG-OFF, Data recording starts immediately after IG-OFF. On the other hand, since IG-ON → IG-OFF within the predetermined time from the last IG-OFF does not record data, it starts recording the next data by the end of already recorded data. Can be suppressed. Therefore, it is possible to suppress the occurrence of inconsistency between the SRAM data and the data flash data.

〔構成例〕
図3は、車載ネットワーク200の概略構成図の一例を示す。車載ネットワーク200は、複数のECU(Electronic Control Unit)を電気的に接続し、所定のプロトコルに基づき、互いのECUが通信データを送受信することを可能にしている。本実施形態では、データ記録ECU100が、他のECU(ECU1、ECU2)110から取得したデータ、及び、データ記録ECU100が演算したデータをデータ記録ECU100のデータフラッシュに記憶するものとする。車載ネットワーク200に接続されるECUは、いくつでもよく、また、ゲートウェイ経由のECUが接続されていてもよい。
[Configuration example]
FIG. 3 shows an example of a schematic configuration diagram of the in-vehicle network 200. The in-vehicle network 200 electrically connects a plurality of ECUs (Electronic Control Units), and allows each ECU to transmit and receive communication data based on a predetermined protocol. In the present embodiment, it is assumed that the data recording ECU 100 stores data acquired from other ECUs (ECU1, ECU2) 110 and data calculated by the data recording ECU 100 in a data flash of the data recording ECU 100. Any number of ECUs may be connected to the in-vehicle network 200, and an ECU via a gateway may be connected.

記憶されるデータは例えば、データ記憶日時、走行距離、走行時間、最高車速、平均車速、最高エンジン回転数、平均燃費、水温、排ガス濃度、位置情報、エアバッグの展開などのイベント等である。この他、車両の状態を特定するために有効なデータは記憶対象となりうる。   The stored data includes, for example, events such as data storage date and time, travel distance, travel time, maximum vehicle speed, average vehicle speed, maximum engine speed, average fuel consumption, water temperature, exhaust gas concentration, position information, and airbag deployment. In addition, data effective for specifying the vehicle state can be stored.

車載ネットワーク200のプロトコルには、CAN(Controller Area Network)、LIN(Local Interconnect Network)、FrexRay等があるが、本実施形態では、各ECUはCANプロトコルにより通信するものとする。各ECUには、ドアECU、パワーシートECU、ライトECU、エアコンECU、メータECUなどのボディ系、エンジンECU、HVーECU、ブレーキECU、パワステECU、トランスミッションECU、エアバッグECU等の制御系、ナビECU、外部との通信を行う通信ECU、オーディオ機器を制御するAV用ECU等の情報・AV系、などがある。   The protocol of the in-vehicle network 200 includes CAN (Controller Area Network), LIN (Local Interconnect Network), FlexRay, and the like. In this embodiment, each ECU communicates with the CAN protocol. Each ECU includes a body system such as a door ECU, a power seat ECU, a light ECU, an air conditioner ECU, and a meter ECU, a control system such as an engine ECU, an HV-ECU, a brake ECU, a power steering ECU, a transmission ECU, an airbag ECU, and a navigation system. There are information and AV systems such as an ECU, a communication ECU that communicates with the outside, and an AV ECU that controls audio equipment.

図4は、本実施形態のデータ記録ECU100のハードウェア構成図の一例を示す。データ記録ECU100は、複数のマイコン(区別するためメインマイコン10とサブマイコン20と称す)、CANドライバ31、及び、電源IC32を有している。本実施形態では、メインマイコン10がデータ記録制御を行い、サブマイコン20がデータを記録するためのデータフラッシュ30を有している。したがって、メインマイコン10はデータ記録を行うタイミングか否かを判定し、データ記録を行うタイミングであると判定すると、データをサブマイコン20に送信する。   FIG. 4 shows an example of a hardware configuration diagram of the data recording ECU 100 of the present embodiment. The data recording ECU 100 has a plurality of microcomputers (referred to as main microcomputer 10 and sub-microcomputer 20 for distinction), a CAN driver 31 and a power supply IC 32. In the present embodiment, the main microcomputer 10 performs data recording control, and the sub-microcomputer 20 has a data flash 30 for recording data. Therefore, the main microcomputer 10 determines whether or not it is time to perform data recording. If it is determined that it is time to perform data recording, the main microcomputer 10 transmits data to the sub-microcomputer 20.

サブマイコン20がデータ記録を行うタイミングであるか否かを判断することも可能であるし、メインマイコン10がデータフラッシュ30を有している場合はメインマイコン単体でデータ記録のタイミングの決定及びデータの記録を行うことも可能である。図示するように実装されるのは、メインマイコン10にはデータ記録の他にも多くの処理が要求されるため、データ記録のタイミングの判断とデータの保管とを別々のマイコンが受け持つ方が設計上好ましいためであるに過ぎない。   It is possible to determine whether or not the sub-microcomputer 20 is at the timing of data recording. When the main microcomputer 10 has the data flash 30, the main microcomputer alone determines the timing of data recording and data. It is also possible to record. As shown in the figure, since the main microcomputer 10 requires a lot of processing in addition to data recording, it is designed that a separate microcomputer takes charge of data recording timing determination and data storage. This is only because it is preferable.

メインマイコン10は、コア13、ADC(Analog Digital Converter)11、WDT(Watch Dog Timer)14、SRAM12、ROM15、RAM16、I/O27、CANC(CAN Controller)18及びDMAC(DMA Controller)19を有する。コア13は例えばROM15に記憶されたプログラムを、RAM16を作業メモリにして実行するCPUである。ROM15に記憶されているプログラムにはデータ記録を行う機能が含まれている。また、プログラムにはメインマイコン10に特有の処理を行う機能が含まれている。なお、サブマイコン20の構成は、データフラッシュ30を有する以外はメインマイコン10とほぼ同様である。   The main microcomputer 10 includes a core 13, an ADC (Analog Digital Converter) 11, a WDT (Watch Dog Timer) 14, an SRAM 12, a ROM 15, a RAM 16, an I / O 27, a CANC (CAN Controller) 18, and a DMAC (DMA Controller) 19. The core 13 is a CPU that executes, for example, a program stored in the ROM 15 using the RAM 16 as a working memory. The program stored in the ROM 15 includes a function for recording data. Further, the program includes a function for performing processing unique to the main microcomputer 10. The configuration of the sub-microcomputer 20 is substantially the same as that of the main microcomputer 10 except that the data microcomputer 30 is included.

ADC11,21はA/Dコンバータであり、不図示のセンサが検出したアナログデータをデジタルデータに変換する。WDT14,24はコア13,23によるプログラムの実行状態を監視するタイマであり、予め決められた時間内にコア13,23がリセットしないことから、コア13,23の異常を検出し、リセットするなどの処理を行う。   ADCs 11 and 21 are A / D converters, and convert analog data detected by a sensor (not shown) into digital data. WDTs 14 and 24 are timers for monitoring the execution state of the programs by the cores 13 and 23. Since the cores 13 and 23 are not reset within a predetermined time, an abnormality of the cores 13 and 23 is detected and reset. Perform the process.

CANC18,28は、CANプロトコルに従って他のECU110等と通信する通信装置である。CANC18,28はCANドライバ31と接続されている。CANドライバ31は、データの送信時、通信データを差動電圧に変換してCANバスに出力する。また、データの受信時、差動電圧が所定の電圧範囲に含まれるように整形して受信信号を生成し、CANC18,28に出力する。   The CANCs 18 and 28 are communication devices that communicate with other ECUs 110 and the like according to the CAN protocol. CANCs 18 and 28 are connected to a CAN driver 31. When transmitting data, the CAN driver 31 converts communication data into a differential voltage and outputs the differential voltage to the CAN bus. Further, when receiving data, the received signal is generated by shaping so that the differential voltage is included in a predetermined voltage range, and is output to CANCs 18 and 28.

SRAM12はRAMの一種であり、本実施形態ではデータを一時的に保持するために使用される。SRAM22は、サブマイコン20がデータを一時的に保持するために使用可能であるが、サブマイコン20にはなくてもよい。I/O17にはメインマイコン10が演算に用いる信号を検出する各種のセンサ、メインマイコン10が制御するアクチュエータやアクチュエータのドライバ回路等が接続されている。I/O27についても同様である。なお、ADC11やCANC18はI/O17に接続されていてもよい。   The SRAM 12 is a kind of RAM, and is used for temporarily holding data in this embodiment. The SRAM 22 can be used by the sub-microcomputer 20 to temporarily hold data, but the sub-microcomputer 20 may not be used. The I / O 17 is connected to various sensors for detecting signals used by the main microcomputer 10 for calculation, an actuator controlled by the main microcomputer 10, a driver circuit for the actuator, and the like. The same applies to the I / O 27. Note that the ADC 11 and the CANC 18 may be connected to the I / O 17.

DMAC19は、I/O17から入力されたデータを、コア13を介さずにRAM16やSRAM12に記録し、コア13からの要求を受け付けてRAM16やSRAM12の指定アドレスからセンサやアクチュエータにデータを転送する。本実施形態では、メインマイコン10とサブマイコン20の間の通信もDMAC19を介して行われる。この場合、コア13はDMAC19に、データの転送元としてSRAM12を指定するアドレスとデータサイズを、データの転送先としてサブマイコン20のデータフラッシュ30のアドレスをそれぞれ設定する。したがって、メインマイコン10のDMAC19はサブマイコン20のデータフラッシュ30をメインマイコン10の一部のようにアクセスできる。   The DMAC 19 records the data input from the I / O 17 in the RAM 16 or SRAM 12 without going through the core 13, receives a request from the core 13, and transfers the data from the designated address of the RAM 16 or SRAM 12 to the sensor or actuator. In the present embodiment, communication between the main microcomputer 10 and the sub-microcomputer 20 is also performed via the DMAC 19. In this case, the core 13 sets, in the DMAC 19, an address and data size specifying the SRAM 12 as a data transfer source, and an address of the data flash 30 of the sub-microcomputer 20 as a data transfer destination. Accordingly, the DMAC 19 of the main microcomputer 10 can access the data flash 30 of the sub-microcomputer 20 like a part of the main microcomputer 10.

また、メインマイコン10のDMAC19が直接、サブマイコン20のデータフラッシュ30にアクセスするのでなく、メインマイコン10のDMAC19がサブマイコン20のDMAC29に、データフラッシュ30へのデータ転送を依頼してもよい。また、必ずしもDMAC19、29を使用するのでなく、UART(Universal Asynchronous Receiver Transmitter)やI2C(Inter‐Integrated Circuit)を利用して通信してもよい。   Further, the DMAC 19 of the main microcomputer 10 may directly access the data flash 30 of the sub-microcomputer 20, but the DMAC 19 of the main microcomputer 10 may request the DMAC 29 of the sub-microcomputer 20 to transfer data to the data flash 30. Further, the communication may be performed using UART (Universal Asynchronous Receiver Transmitter) or I2C (Inter-Integrated Circuit) instead of necessarily using the DMACs 19 and 29.

電源IC32は、不図示のバッテリから電力供給を受けてマイコン駆動用の電圧・電流を生成する。IG‐ON時は、ECU内の全ての回路を通常モードで動作させるために必要な大容量の電圧・電流を生成し、IG‐OFF時は、メインマイコン10・サブマイコン20の回路の一部を省電力モードに保持するために必要な最小限の電圧・電流を生成する。また、電源IC32は、メインマイコン10又はサブマイコン20からの制御を取得して、バッテリから、メインマイコン10及びサブマイコン20への電力供給を遮断及び維持することができる。   The power supply IC 32 receives power supplied from a battery (not shown) and generates a voltage / current for driving the microcomputer. When IG-ON, a large amount of voltage and current required to operate all the circuits in the ECU in the normal mode is generated. When IG-OFF is selected, part of the circuits of the main microcomputer 10 and sub-microcomputer 20 is generated. The minimum voltage and current necessary to maintain the power saving mode is generated. In addition, the power supply IC 32 can acquire control from the main microcomputer 10 or the sub-microcomputer 20, and can cut off and maintain power supply from the battery to the main microcomputer 10 and the sub-microcomputer 20.

サブマイコン20が有するデータフラッシュ30は、データの消去及び書き込みを行うことができる不揮発メモリである。NAND型、NOR型のいずれでもよい。また、フラッシュメモリでなく、EEPROM、MRAM(Magnetoresistive Random Access Memory)、FeRAMOUM(相変化メモリ)など書き換え可能な不揮発メモリであればよい。   The data flash 30 included in the sub-microcomputer 20 is a nonvolatile memory capable of erasing and writing data. Either a NAND type or a NOR type may be used. In addition, a rewritable nonvolatile memory such as EEPROM, MRAM (Magnetoresistive Random Access Memory), or FeRAMOUM (phase change memory) may be used instead of the flash memory.

図5は、メインマイコン10及びサブマイコン20の機能ブロック図の一例を示す。図5において、図4と同一構成物には同一の符号を付しその説明は省略する。メインマイコン10は、コア13がROM15に記憶されたプログラムを実行することでソフト的に実現される、IG状態検出部41、フラグ設定部42、データ記録部43、リレー操作部44、及び、データ収集部45を有する。   FIG. 5 shows an example of a functional block diagram of the main microcomputer 10 and the sub-microcomputer 20. 5, the same components as those in FIG. 4 are denoted by the same reference numerals, and the description thereof is omitted. The main microcomputer 10 is realized by software when the core 13 executes a program stored in the ROM 15. The IG state detection unit 41, the flag setting unit 42, the data recording unit 43, the relay operation unit 44, and the data A collection unit 45 is included.

<データ収集>
まず、データ収集部45によるデータ収集について説明する。
図6は、データ記録ECU100がデータをSRAM12に記録する手順を示すフローチャート図の一例である。
<Data collection>
First, data collection by the data collection unit 45 will be described.
FIG. 6 is an example of a flowchart illustrating a procedure in which the data recording ECU 100 records data in the SRAM 12.

IG‐ONの間、ECU1,ECU2はそれぞれCANバスにデータを送信する(S10)。ECU1,ECU2が送信するデータは予めECU1,2に設定されている。   During IG-ON, ECU1 and ECU2 each transmit data to the CAN bus (S10). Data transmitted by the ECU 1 and ECU 2 is set in the ECU 1 and 2 in advance.

データ記録ECU100のCANC18は予め定められたCAN IDのデータを選択的に受信して、コア13に受信割込みする。コア13は受信割込みに対しデータ収集部45などを起動させるので、データ収集部45はCAN
IDに基づき記録すべきデータとして選択したデータをSRAM12に記憶する(S20)。
The CANC 18 of the data recording ECU 100 selectively receives data of a predetermined CAN ID and interrupts the reception of the core 13. Since the core 13 activates the data collection unit 45 and the like in response to the reception interrupt, the data collection unit 45
Data selected as data to be recorded based on the ID is stored in the SRAM 12 (S20).

データにはIG‐ONの直後に一度だけ取得すればよいもの(例えば、カレンダ情報、IGオン時刻)、周期的に送信されるが最新のデータで置き換えるもの(例えば、走行距離、走行時間)、過去の履歴を含め記憶しておくもの(例えば、位置情報)、IG‐OFF時に取得すべきもの(例えば、IG‐OFF時刻、データ記憶日時、平均車速、平均燃費)、特別のイベントが発生した場合に記憶されるもの(例えば、故障情報、エアバッグの展開)などがある。データ収集部45は、これらを判別してSRAM12に記憶していく。   Data that needs to be acquired only once immediately after IG-ON (for example, calendar information, IG on time), periodically transmitted but replaced with the latest data (for example, travel distance, travel time), What to remember including past history (for example, location information), what to acquire when IG-OFF (for example, IG-OFF time, data storage date, average vehicle speed, average fuel efficiency), or when a special event occurs (For example, failure information, airbag deployment) and the like. The data collection unit 45 determines these and stores them in the SRAM 12.

データ収集部45が収集するデータにはこのような性格があるので、SRAM12に記憶されるデータ量が一定であるとは限らない。このためデータ記録時間も一定とは限らない。   Since the data collected by the data collection unit 45 has such characteristics, the amount of data stored in the SRAM 12 is not always constant. For this reason, the data recording time is not always constant.

そして、データ記録ECU100のIG状態検出部41がIG‐OFFを検出すると、メインマイコン10はSRAM12からデータフラッシュ30へのデータを記録するタイミングか否かを判定する。記録するタイミングであると判定されれば、データ記録部43がデータの記録を開始する。   When the IG state detection unit 41 of the data recording ECU 100 detects IG-OFF, the main microcomputer 10 determines whether it is time to record data from the SRAM 12 to the data flash 30. If it is determined that the recording timing is reached, the data recording unit 43 starts recording data.

<IGーON、IGーOFFについて>
図5に戻り、IG状態検出部41は、IG‐ON及びIG‐OFFを検出する。本実施形態ではIGーONを走行可能な状態(又は走行可能な状態にするための操作)と定義する。このため、エンジンのみを動力源とする車両と、電気モータを一部の動力源とするハイブリッド車、又は、電気モータを全ての動力源とする電気自動車とでは、IG‐ONの検出方法が異なっている。
<About IG-ON and IG-OFF>
Returning to FIG. 5, the IG state detection unit 41 detects IG-ON and IG-OFF. In the present embodiment, IG-ON is defined as a state where the vehicle can travel (or an operation for making the vehicle ready for traveling). For this reason, the IG-ON detection method differs between a vehicle that uses only the engine as a power source and a hybrid vehicle that uses an electric motor as a part of the power source, or an electric vehicle that uses an electric motor as all the power sources. ing.

・エンジン車両のIG‐ON
運転者がメカニカルキーでIG‐ON/IG‐OFFを操作する車両の場合、IG‐ON状態とはメカニカルキーがキーシリンダ51のIG位置にあり、かつ、エンジンが作動していることをいう。運転者は、エンジン始動の際、ブレーキペダルを踏みながら、メカニカルキーをIG‐ONを超えてST位置まで回転させIG位置まで戻す。エンジンは完爆すると完爆信号を出力するので、IG状態検出部41この信号からIG‐ONを検出する。
-Engine vehicle IG-ON
In the case of a vehicle in which the driver operates the IG-ON / IG-OFF with a mechanical key, the IG-ON state means that the mechanical key is at the IG position of the key cylinder 51 and the engine is operating. When starting the engine, the driver turns the mechanical key over the IG-ON to the ST position and returns to the IG position while stepping on the brake pedal. Since the engine outputs a complete explosion signal upon complete explosion, the IG state detection unit 41 detects IG-ON from this signal.

運転者がプッシュボタン52でIG‐ON/IG‐OFFを操作する車両の場合も、操作が異なるだけで、IG‐ONの定義は同じである。運転者は、エンジン始動の際、ブレーキペダルを踏みながら、プッシュボタン52を押下する。これにより、所定のECUがSTリレーをオンにしてエンジン始動を開始する。エンジンは完爆すると完爆信号を出力するので、IG状態検出部41この信号からIG‐ONを検出する。   In the case of a vehicle in which the driver operates the IG-ON / IG-OFF with the push button 52, the definition of IG-ON is the same except that the operation is different. The driver presses the push button 52 while depressing the brake pedal when starting the engine. As a result, the predetermined ECU turns on the ST relay and starts the engine. Since the engine outputs a complete explosion signal upon complete explosion, the IG state detection unit 41 detects IG-ON from this signal.

・ハイブリッド車又は電気自動車のIG‐ON
ハイブリッド車は、運転者がIG‐ON操作をしてもエンジンが作動するとは限らず、電気自動車の場合はそもそもエンジンが搭載されていない。このため、ハイブリッド車又は電気自動車のIGーONとは、IG‐ONモード(Ready‐ON状態)であると定義する。IG‐ONモード(Ready‐ON状態)について簡単に説明する。ハイブリッド車又は電気自動車は、エンジン車両のIG‐ONに対応する2つの状態を有する。それぞれをIG‐ONモード(Ready‐ON状態)、IG‐ONモード(Ready‐OFF状態)という。IG‐ONモード(Ready‐ON状態)は、走行を司るHVーECUが正常に起動し、エンジン走行やモータ走行により車両を走行させることが可能な状態である。IG‐ONモード(Ready‐OFF状態)は、HV‐ECUが正常に動作していない状態である。したがって、IG‐ONモード(Ready‐ON状態)であれば、走行可能であるといえる。
・ IG-ON for hybrid or electric vehicles
In hybrid vehicles, the engine does not always operate even when the driver performs an IG-ON operation. In the case of an electric vehicle, the engine is not installed in the first place. For this reason, IG-ON of a hybrid vehicle or an electric vehicle is defined as being in the IG-ON mode (Ready-ON state). The IG-ON mode (Ready-ON state) will be briefly described. The hybrid vehicle or the electric vehicle has two states corresponding to the IG-ON of the engine vehicle. These are called IG-ON mode (Ready-ON state) and IG-ON mode (Ready-OFF state). The IG-ON mode (Ready-ON state) is a state in which the HV-ECU that controls traveling normally starts and the vehicle can travel by engine traveling or motor traveling. The IG-ON mode (Ready-OFF state) is a state in which the HV-ECU is not operating normally. Therefore, it can be said that the vehicle can run in the IG-ON mode (Ready-ON state).

運転者の操作は上記と同様である。すなわち、運転者がブレーキペダルを踏み込んだ状態でプッシュボタン52を押下した場合、所定のECUがメインリレーをオンにして、HVーECUに起動信号を出力する。HV‐ECUは、プログラムを読み出して初期処理や自己診断を実行し、正常に起動完了するとReady‐ON信号を他のECU110に出力する。IG状態検出部41はこのReady‐ON信号を受信することでIG‐ONを検出する。   The driver's operation is the same as described above. That is, when the driver depresses the push button 52 with the brake pedal depressed, the predetermined ECU turns on the main relay and outputs an activation signal to the HV-ECU. The HV-ECU reads the program, executes initial processing and self-diagnosis, and outputs a Ready-ON signal to the other ECUs 110 when the startup is completed normally. The IG state detector 41 detects the IG-ON by receiving this Ready-ON signal.

・エンジン車両、ハイブリッド車又は電気自動車のIG‐OFF
本実施形態では、IG‐OFFを運転者がIG‐OFF操作をしたこと、と定義する。したがって、IGーOFFの定義は、エンジン車両、ハイブリッド車又は電気自動車に共通である。
・ IG-OFF for engine vehicles, hybrid vehicles or electric vehicles
In the present embodiment, IG-OFF is defined as a driver performing an IG-OFF operation. Therefore, the definition of IG-OFF is common to engine vehicles, hybrid vehicles, or electric vehicles.

運転者がメカニカルキーでIG‐ON/IG‐OFFを操作する車両の場合、運転者は、シフトポジションをP(パーキング)に設定し、メカニカルキーをキーシリンダ51のLock位置まで回転させる。運転者がプッシュボタン52でIG‐ON/IG‐OFFを操作する車両の場合、シフトポジションをP(パーキング)に設定し、プッシュボタン52を押下する。   In the case of a vehicle in which the driver operates IG-ON / IG-OFF with a mechanical key, the driver sets the shift position to P (parking) and rotates the mechanical key to the lock position of the key cylinder 51. When the driver operates the IG-ON / IG-OFF with the push button 52, the shift position is set to P (parking) and the push button 52 is pressed.

エンジン車両の場合、いずれの場合も所定のECUがメインリレーをオフにするのでエンジンは作動状態を維持できなくなりエンジンが停止する。ハイブリッド車又は電気自動車の場合、HV‐ECUがReady‐ON信号の出力を停止するので、車両は走行できない状態になる。したがって、IG‐OFFについては、IG状態検出部41は運転者がIG‐OFF操作をしたことからIG‐OFFを検出する。   In the case of an engine vehicle, in any case, the predetermined ECU turns off the main relay, so that the engine cannot maintain the operating state and the engine stops. In the case of a hybrid vehicle or an electric vehicle, the HV-ECU stops outputting the Ready-ON signal, so that the vehicle cannot travel. Therefore, for IG-OFF, the IG state detection unit 41 detects IG-OFF because the driver has performed the IG-OFF operation.

なお、厳密にはIG‐OFFにもIG‐ONにも含まれない状態が存在しうるが(例えば、メカニカルキーがACCの位置)、この場合は直前の状態であると判定するものとする(つまり、その前の状態がIG‐ONであったならIG‐ON、その前の状態がIG‐OFFであったならIG‐OFFであると判定する)。   Strictly speaking, there may be a state that is not included in either IG-OFF or IG-ON (for example, the position of the mechanical key is ACC). In this case, it is determined that the state is the immediately preceding state ( That is, if the previous state is IG-ON, it is determined to be IG-ON, and if the previous state is IG-OFF, it is determined to be IG-OFF).

<フラグの設定>
IG状態検出部41は、IG‐ON又はIG‐OFFを検出すると、フラグ設定部42に通知する。フラグ設定部42は、IG‐ON又はIG‐OFFの検出結果に応じてフラグAのON/OFFを切り換える。また、IG‐ON又はIG‐OFFの検出結果、及び、フラグAのON/OFFに応じてフラグBをON/OFFを切り換える。
<Setting the flag>
When the IG state detection unit 41 detects IG-ON or IG-OFF, it notifies the flag setting unit 42. The flag setting unit 42 switches ON / OFF of the flag A according to the detection result of IG-ON or IG-OFF. Further, the flag B is switched ON / OFF according to the detection result of IG-ON or IG-OFF and the ON / OFF of the flag A.

なお、フラグAはIG‐ONとIG‐OFFの検出結果により遷移し、以下の意味を持つ。
フラグA ON :最後のIG‐OFFから所定時間内にIG‐ONが検出された
フラグA OFF:最後のIG‐OFFから所定時間が経過
最後のIG‐OFFから所定時間内であるがIG‐ONされていない
フラグBはデータ退避が可能か否かの判定結果により遷移し、以下の意味を持つ。
フラグB ON :SRAM12のデータをデータフラッシュ30に記録可能
フラグB OFF:SRAM12のデータをデータフラッシュ30に記録不可
フラグAがONのまま、フラグBがONとなることはない。フラグBがOFFであれば、フラグAの状態に関係なくSRAM12からデータフラッシュ30にデータが記録されることはない。なお、フラグA、Bの初期状態はOFFである。
The flag A changes according to the detection results of IG-ON and IG-OFF, and has the following meaning.
Flag A ON: IG-ON is detected within a predetermined time from the last IG-OFF Flag A OFF: A predetermined time has elapsed since the last IG-OFF
The flag B, which is within a predetermined time after the last IG-OFF but has not been IG-ON, transitions according to the determination result as to whether data can be saved, and has the following meanings.
Flag B ON: The data of SRAM 12 can be recorded in the data flash 30 Flag B OFF: The data of the SRAM 12 cannot be recorded in the data flash 30 The flag A remains ON and the flag B does not turn ON. If the flag B is OFF, no data is recorded from the SRAM 12 to the data flash 30 regardless of the state of the flag A. Note that the initial states of the flags A and B are OFF.

フラグ設定部42は、IG状態検出部41が検出したIG‐OFFの時刻(以下、IG‐OFF時刻という)を記録している。IG‐OFF時刻は時計上の時刻である必要はなく、IG‐OFFとなった時に例えばゼロであることを示す情報でよい。フラグ設定部42は、IG‐OFF時刻を基準に数秒から数十秒の予め決められた所定時間を計測する。また、IG‐OFF時刻は、この予め決められた時間でもよく、フラグ設定部42は予め決められた時間からカウントダウンを開始しゼロになったことを検出する。   The flag setting unit 42 records the IG-OFF time detected by the IG state detection unit 41 (hereinafter referred to as IG-OFF time). The IG-OFF time does not need to be the time on the clock, and may be information indicating that it is zero, for example, when the IG-OFF is reached. The flag setting unit 42 measures a predetermined time of several seconds to several tens of seconds based on the IG-OFF time. Further, the IG-OFF time may be this predetermined time, and the flag setting unit 42 starts counting down from the predetermined time and detects that it has become zero.

<データ記録>
データ記録部43はフラグBがONであると、SRAM12に記憶されたデータをサブマイコン20のデータフラッシュ30に記録する。データ記録はIG‐OFF後に行われるので、電源IC32がメインマイコン10やサブマイコン20への電源をカットするおそれが生じる。IG‐OFF後でも、常に一部の回路(例えば、割込みを受け付けるためのコア)にはバッテリから電源が供給されるECUだとしても、常にSRAM12に電源が供給されるとは限らない。そこで、データ記録の前に、データ記録部43はリレー操作部44にIGCTリレー53のオンを保持する保持指示を出力する。リレー操作部44は電源IC32にIGCTリレー53のONを保持させる。
<Data recording>
When the flag B is ON, the data recording unit 43 records the data stored in the SRAM 12 in the data flash 30 of the sub-microcomputer 20. Since data recording is performed after IG-OFF, there is a possibility that the power supply IC 32 cuts off the power supply to the main microcomputer 10 and the sub-microcomputer 20. Even after IG-OFF, even if the ECU is always supplied with power from a battery to some circuits (for example, a core for accepting an interrupt), the SRAM 12 is not always supplied with power. Therefore, before data recording, the data recording unit 43 outputs a holding instruction for holding the IGCT relay 53 on to the relay operation unit 44. The relay operation unit 44 causes the power supply IC 32 to hold the IGCT relay 53 ON.

この後、データ記録部43はDMAC19を使用して、SRAM12のデータをサブマイコン20のデータフラッシュ30に記録させる。DMAC19はSRAM12のデータを読み出して、サブマイコン20のデータフラッシュ30に記録する。DMAC19は要求されたデータの記録が終了したことをデータ記録部43に通知する。   Thereafter, the data recording unit 43 uses the DMAC 19 to record the data of the SRAM 12 in the data flash 30 of the sub-microcomputer 20. The DMAC 19 reads the data from the SRAM 12 and records it in the data flash 30 of the sub-microcomputer 20. The DMAC 19 notifies the data recording unit 43 that the recording of the requested data has been completed.

データの記録が終了すると、データ記録部43は、リレー操作部44にIGCTリレー53のオンの保持を解除する解除指示を出力する。リレー操作部44は電源IC32にIGCTリレー53のONを保持する必要がないことを通知する。この後、電源IC32がIGCTリレー53をOFFするかどうかは車両状態に応じる。   When the data recording is completed, the data recording unit 43 outputs a release instruction to release the ON holding of the IGCT relay 53 to the relay operation unit 44. The relay operation unit 44 notifies the power supply IC 32 that it is not necessary to hold the IGCT relay 53 ON. Thereafter, whether the power supply IC 32 turns off the IGCT relay 53 depends on the vehicle state.

なお、データフラッシュ30がメインマイコン10内にあっても、同様の手順で不都合なくデータの記録が可能である。したがって、データ記録ECU100は1つのマイコンのみを有していてもよい。   Even if the data flash 30 is in the main microcomputer 10, data can be recorded without any inconvenience by the same procedure. Therefore, the data recording ECU 100 may have only one microcomputer.

〔動作手順〕
図7は、フラグ設定部42がIG‐ONとIG‐OFFの頻繁な繰り返しの有無を判定する手順を示すフローチャート図の一例である。
[Operation procedure]
FIG. 7 is an example of a flowchart illustrating a procedure in which the flag setting unit 42 determines whether or not IG-ON and IG-OFF are frequently repeated.

フラグ設定部42は、IG状態検出部41が検出したIG‐OFF時刻を記録している。これを利用してフラグ設定部42はIG‐OFF時刻から所定時間以上が経過したか否かを判定する(S110)。この所定時間は、IG‐OFFから短時間にIG‐ONされたか否かを判定するための時間である。所定時間はデータ記録時間より長いことが好ましく、例えば、数秒から数十秒とする。所定時間については次述する。   The flag setting unit 42 records the IG-OFF time detected by the IG state detection unit 41. Using this, the flag setting unit 42 determines whether or not a predetermined time has elapsed since the IG-OFF time (S110). This predetermined time is a time for determining whether or not the IG-ON has been performed in a short time since the IG-OFF. The predetermined time is preferably longer than the data recording time, for example, several seconds to several tens of seconds. The predetermined time will be described below.

所定時間以上、経過するまで場合(S110のNo)、フラグ設定部42は、IG状態検出部41からIG‐ONが通知されたか否かを判定する(S120)。すなわち、ステップS110、S120の判定により、IGーOFFから所定時間内にIG‐ONされたか否かが判定される。   When the predetermined time or more has elapsed (No in S110), the flag setting unit 42 determines whether or not IG-ON has been notified from the IG state detection unit 41 (S120). That is, it is determined whether or not the IG-ON has been performed within a predetermined time from the IG-OFF by the determination in steps S110 and S120.

IG状態検出部41からIG‐ONが通知された場合(S120のYes)、フラグ設定部42はフラグAをONに設定する(S130)。このように、フラグAはIGーOFFから所定時間内にIGーONされた場合にONになるので、フラグAがONか否かにより短時間にIGーOFF→IGーON操作が行われたか否かが判定される。   When IG-ON is notified from the IG state detection unit 41 (Yes in S120), the flag setting unit 42 sets the flag A to ON (S130). Thus, flag A is turned on when IG-ON is turned on within a predetermined time from IG-OFF, so whether IG-OFF → IG-ON operation was performed in a short time depending on whether flag A is ON. It is determined whether or not.

一方、ステップS110において、IG‐OFF時刻から所定時間以上が経過した場合(S110のYes)、フラグ設定部42はフラグAにOFFを設定する(S140)。すなわち、フラグAがONに設定されても、IG‐OFFから所定時間が経過すると自動的にOFFになる。   On the other hand, in step S110, when a predetermined time or more has elapsed from the IG-OFF time (Yes in S110), the flag setting unit 42 sets the flag A to OFF (S140). That is, even if the flag A is set to ON, it is automatically turned OFF when a predetermined time has elapsed since IG-OFF.

また、ステップS120において、所定時間内にIG状態検出部41からIG‐ONが通知されない場合(S120のNo)、フラグ設定部42はフラグAにOFFを設定したままにする(S140)。すなわち、フラグAは、IG‐OFFから所定時間が経過するまでにIG‐ONが検出されなければ、常にOFFとなる。   In step S120, when IG-ON is not notified from the IG state detection unit 41 within a predetermined time (No in S120), the flag setting unit 42 keeps flag A set to OFF (S140). That is, the flag A is always OFF unless IG-ON is detected before the predetermined time has elapsed from IG-OFF.

図8を用いて、ステップS110の所定時間について説明する。図8は、所定時間を説明する図の一例である。図9にて説明するように、データ記録部43は一度開始したデータ記録が完了するまでデータ記録を継続するので、データ記録中のIG‐OFFの直後にIG‐ONが検出されても、データ記録が中断・開始されることなく、データ不整合が生じるおそれはない。しかし、IG‐OFFから短時間にIG‐ON→IG‐OFFに操作されると、データ記録部43がデータ記録を開始するタイミングになってしまう。   The predetermined time in step S110 will be described with reference to FIG. FIG. 8 is an example of a diagram illustrating the predetermined time. As will be described with reference to FIG. 9, the data recording unit 43 continues data recording until the data recording once started is completed. Therefore, even if IG-ON is detected immediately after IG-OFF during data recording, There is no risk of data inconsistency without recording being interrupted or started. However, if the operation is changed from IG-OFF to IG-ON → IG-OFF in a short time, the data recording unit 43 has a timing to start data recording.

図8(a)は、所定時間が短く、短時間にIG‐ON→IG‐OFFの操作が行われた場合を示す。フラグAはIGーOFFからの所定時間内のIG‐ONによりONになり、“最後の”IG‐OFFから所定時間後にOFFとなる。図8(a)では所定時間が短いため、データ記録中にフラグAがOFFになっている。この場合、記録中のデータは継続して記録されるが、フラグAの趣旨から好ましくないと言える。   FIG. 8A shows a case where the predetermined time is short and the operation of IG-ON → IG-OFF is performed in a short time. The flag A is turned ON by IG-ON within a predetermined time from IG-OFF, and turned OFF after a predetermined time from the “last” IG-OFF. In FIG. 8A, since the predetermined time is short, the flag A is OFF during data recording. In this case, while the data being recorded is continuously recorded, it can be said that it is not preferable because of the purpose of the flag A.

そこで、所定時間は、図8(b)に示すように、データ記録時間と同程度かやや長めであることが好ましい。このように所定時間を決定しておくことで、データ記録中にフラグAがONとなることを防止できる。したがって、仮にデータ記録部43が一度開始したデータ記録が完了するまでデータ記録を継続しない場合でも、データ記録が中断・開始され、データ不整合が生じることを防止できる。   Therefore, it is preferable that the predetermined time is approximately the same as or slightly longer than the data recording time, as shown in FIG. By determining the predetermined time in this way, it is possible to prevent the flag A from being turned ON during data recording. Therefore, even if the data recording is not continued until the data recording once started by the data recording unit 43 is completed, it is possible to prevent the data recording from being interrupted / started and causing data inconsistency.

なお、所定時間は、予め固定に設定しておくのでなく、データ転送部43がSRAMのデータ量に応じて決定してもよい。   Note that the predetermined time is not set to be fixed in advance, but the data transfer unit 43 may determine the predetermined time according to the data amount of the SRAM.

図9は、データ記録ECU100がフラグA、Bを参照して、SRAM12のデータをデータフラッシュ30に格納する手順を示すフローチャート図の一例である。   FIG. 9 is an example of a flowchart illustrating a procedure in which the data recording ECU 100 stores data in the SRAM 12 in the data flash 30 with reference to the flags A and B.

データ記録部43は、原則的にIG‐OFFを契機にSRAM12のデータをデータフラッシュ30に記録するので、データ記録部43はIG‐OFF状態か否かを判定する(S210)。   Since the data recording unit 43 records the data of the SRAM 12 in the data flash 30 in principle when IG-OFF occurs, the data recording unit 43 determines whether or not it is in the IG-OFF state (S210).

IG‐OFF状態でない場合(S210のNo)、IG‐ON状態となるので、SRAM12のデータをデータフラッシュ30に退避するタイミングでない。このためフラグ設定部42はフラグBをOFFに設定する(S220)。   When it is not in the IG-OFF state (No in S210), it is in the IG-ON state, so it is not the timing to save the data in the SRAM 12 to the data flash 30. Therefore, the flag setting unit 42 sets the flag B to OFF (S220).

IG‐OFF状態の場合(S210のYes)、データ記録部43は、IG‐ONからIG‐OFFに操作された直後か否かを判定する(S230)。IGーOFF直後の場合(S230のYes)、データ記録部43はフラグAがONか否かを判定する(S240)。   In the IG-OFF state (Yes in S210), the data recording unit 43 determines whether or not it is immediately after being operated from IG-ON to IG-OFF (S230). If immediately after IG-OFF (Yes in S230), the data recording unit 43 determines whether or not the flag A is ON (S240).

フラグAがONの場合(S240のYes)、IG‐OFFから所定時間内にIG‐ONとなっており、さらに、所定時間内にIG‐OFFとなったことになる。したがって、データ不整合の発生を抑制するため、データ記録部43はデータを記録すべきでない。しかし、IG‐OFFによりデータの記録前にSRAM12のデータが消去されるおそれがあるため、データ記録部43はSRAM12のデータを保持する(S250)。具体的には、データ記録部43はリレー操作部44に、電源IC32にIGCTリレー53をOFFにさせないように保持指示を出力する(IGCTリレー53をオンに維持させる)。これにより電源IC32はIG‐OFFを検出しても、IGCTリレー53をONに維持するので、バッテリ54からメインマイコン10及びサブマイコン20に電力が供給され、SRAM12の内容が消去されない。   When the flag A is ON (Yes in S240), it is IG-ON within a predetermined time from IG-OFF, and further, it is IG-OFF within a predetermined time. Therefore, the data recording unit 43 should not record data in order to suppress the occurrence of data mismatch. However, since the data in the SRAM 12 may be erased before the data is recorded by IG-OFF, the data recording unit 43 holds the data in the SRAM 12 (S250). Specifically, the data recording unit 43 outputs a holding instruction to the relay operation unit 44 so that the power supply IC 32 does not turn off the IGCT relay 53 (maintains the IGCT relay 53 on). As a result, even if the power supply IC 32 detects IG-OFF, the IGCT relay 53 is maintained ON, so that power is supplied from the battery 54 to the main microcomputer 10 and the sub-microcomputer 20, and the contents of the SRAM 12 are not erased.

また、フラグ設定部42はフラグAがONであることから、IG‐OFFから短時間のIG‐ON→IG‐OFFであると判定し、フラグBをOFFに設定する(S260)。したがって、この場合、データ記録部43はデータを記録できない。   In addition, since the flag A is ON, the flag setting unit 42 determines that IG-ON is changed from IG-OFF to IG-OFF for a short time, and sets the flag B to OFF (S260). Therefore, in this case, the data recording unit 43 cannot record data.

一方、ステップS240にてフラグAがONでない場合(S240のNo)、IG‐OFFから所定時間にIG‐ONとなっていないか、又は、所定時間以上経過しているので、フラグ設定部42はフラグBをONに設定する(S270)。この場合、データ記録部43はデータ記録が可能になる。   On the other hand, if the flag A is not ON in step S240 (No in S240), the flag setting unit 42 is not set to IG-ON at a predetermined time from IG-OFF or more than a predetermined time has passed. The flag B is set to ON (S270). In this case, the data recording unit 43 can record data.

また、ステップS230にて、IG‐ONからIG‐OFFに操作された直後でない場合(S230のNo)、データ記録部43はフラグAがONからOFFに遷移したか否かを判定する(S280)。上記のようにフラグAは、IG‐OFFから所定時間が経過するとOFFになるので、フラグAがONだった場合でも、いずれフラグAはOFFになる。フラグAがONからOFFになった場合(S280のYes)、データ記録部43はデータを記録してよいので、フラグ設定部42はフラグBをONに設定する(S290)。これにより、IG‐OFFから短時間のIG‐ONであると判定され、その後、短時間にIG‐OFFに操作されても、いずれは(最初のIG‐OFFから所定時間経過後)データの記録が可能になる。   If it is not immediately after the operation from IG-ON to IG-OFF in Step S230 (No in S230), the data recording unit 43 determines whether or not the flag A has transitioned from ON to OFF (S280). . As described above, since the flag A is turned OFF when a predetermined time has elapsed from IG-OFF, even when the flag A is turned ON, the flag A is turned OFF. When the flag A is changed from ON to OFF (S280: Yes), the data recording unit 43 may record data, so the flag setting unit 42 sets the flag B to ON (S290). As a result, it is determined that the IG-OFF is a short-time IG-ON, and after that, even if the IG-OFF is operated for a short time, the data is recorded (after a predetermined time from the first IG-OFF). Is possible.

フラグAがONからOFFになっていない場合(S280のNo)、フラグAはONのまま処理はステップS310に進む。   If the flag A has not been turned off from ON (No in S280), the process proceeds to step S310 while the flag A remains on.

ステップS310以降はデータ記録の処理となる。
データ記録部43はフラグBがONか否かを判定する(S310)。フラグBがONの場合(S310のYes)、データ記録が許可されているので、データ記録部43はSRAM12のデータを保持して、データ記録を開始する(S320)。具体的には、データ記録部43はリレー操作部44に、IGCTリレー53をオンに維持させる。これにより電源IC32はIG‐OFFを検出しても、IGCTリレー53をONに維持するので、バッテリ54からメインマイコン10及びサブマイコン20に電力が供給され、SRAM12の内容が消去されない。
Steps S310 and after are data recording processing.
The data recording unit 43 determines whether or not the flag B is ON (S310). If the flag B is ON (Yes in S310), since data recording is permitted, the data recording unit 43 holds the data in the SRAM 12 and starts data recording (S320). Specifically, the data recording unit 43 causes the relay operation unit 44 to keep the IGCT relay 53 on. As a result, even if the power supply IC 32 detects IG-OFF, the IGCT relay 53 is maintained ON, so that power is supplied from the battery 54 to the main microcomputer 10 and the sub-microcomputer 20, and the contents of the SRAM 12 are not erased.

データ記録部43は、SRAM12のデータを全て記録したか否かを判定する(S330)。SRAM12のデータを全て記録するまでの間(S330のNo)、データの記録を継続する(S310、S320)。   The data recording unit 43 determines whether all the data in the SRAM 12 has been recorded (S330). Until all the data in the SRAM 12 is recorded (No in S330), the data recording is continued (S310, S320).

データ記録の間に(IG‐OFFから所定時間内に)、運転者がIG‐ONの操作をする可能性がある。フラグAの操作はデータ記録とは独立なので、フラグAはONになる場合があるが、データ記録は連続して行われるので、データ記録部43はSRAM12のデータを全てデータフラッシュ30に記録することができる。また、データ記録の間に(IG‐OFFから所定時間内に)、運転者がIG‐ON→IG‐OFFの操作をした場合、最後のIG‐OFFから所定時間の間はフラグAはONのままなので、記録中のデータの送信が中断されるようなことは生じない。   During data recording (within a predetermined time from IG-OFF), the driver may operate the IG-ON. Since the operation of the flag A is independent of the data recording, the flag A may be turned on. However, since the data recording is continuously performed, the data recording unit 43 records all the data of the SRAM 12 in the data flash 30. Can do. In addition, if the driver operates IG-ON → IG-OFF during data recording (within a predetermined time from IG-OFF), flag A is ON for a predetermined time from the last IG-OFF. Therefore, the transmission of data being recorded is not interrupted.

データ記録部43がSRAM12のデータを全て記録した場合(S330のYes)、データ記録部43は、データ記録のためのSRAM12のデータの保持を終了する(S340)。具体的には、データ記録部43はリレー操作部44に、IGCTリレー53をオフにすることを許可する。これにより電源IC32は、IG‐OFF、ACC‐ON、ACC‐OFF、車両状態等に基づく独自の基準により、IGCTリレー53をOFFにすることができる。   When the data recording unit 43 has recorded all the data in the SRAM 12 (Yes in S330), the data recording unit 43 finishes holding the data in the SRAM 12 for data recording (S340). Specifically, the data recording unit 43 permits the relay operation unit 44 to turn off the IGCT relay 53. As a result, the power supply IC 32 can turn off the IGCT relay 53 according to a unique standard based on IG-OFF, ACC-ON, ACC-OFF, vehicle status, and the like.

フラグ設定部42は、データ記録部43からデータの記録の終了の通知を取得すると、フラグBをOFFに設定する(S350)。すなわち、フラグBがOFFになることで、データの記録が終了したため、データ記録が不要になったことを記録できる。   The flag setting unit 42 sets the flag B to OFF when receiving a notification of the end of data recording from the data recording unit 43 (S350). That is, when the flag B is turned off, it is possible to record that data recording is no longer necessary because data recording is completed.

図10は、IG‐ON、IG‐OFFとデータ記録の関係を説明する図の一例である。図10(a)は、運転者がIGーOFFから所定時間内にIG‐ONしない場合を示す。この場合、フラグAはONとなることなくOFFを維持する。したがって、図7,9に示したように、車両の走行後、初めて運転者がIGーOFFに操作した場合、S210、S230の判定はYes、S240の判定はNo、S310の判定はYesとなる。このため、頻繁なIG‐ON、IG‐OFFの繰り返しでないIG‐OFFの場合は、IG‐OFFの後、すぐにSRAM12の全てのデータがデータフラッシュ30に記録される。   FIG. 10 is an example of a diagram illustrating the relationship between IG-ON, IG-OFF, and data recording. FIG. 10A shows a case where the driver does not IG-ON within a predetermined time from IG-OFF. In this case, the flag A is kept OFF without being turned ON. Therefore, as shown in FIGS. 7 and 9, when the driver first operates IG-OFF after the vehicle travels, the determinations at S210 and S230 are Yes, the determination at S240 is No, and the determination at S310 is Yes. . For this reason, in the case of IG-OFF which is not repeated frequent IG-ON and IG-OFF, all data in the SRAM 12 is recorded in the data flash 30 immediately after IG-OFF.

図10(b)は運転者がIG‐OFFから所定時間内にIG‐ONした場合を示す。IG‐OFFから所定時間内に、運転者がIG‐OFFからIG‐ONに操作した場合、フラグAは所定時間内に限りONになる。データ記録部43は、SRAM12のデータを全て記録することを、次のデータの記録の判定より優先するので、この場合もSRAM12のデータは全てデータフラッシュ30に記録され、データに不整合は生じない。   FIG. 10B shows a case where the driver IG-ON within a predetermined time from IG-OFF. If the driver operates from IG-OFF to IG-ON within a predetermined time from IG-OFF, the flag A is turned ON only within the predetermined time. Since the data recording unit 43 prioritizes recording all the data in the SRAM 12 over the determination of recording the next data, all the data in the SRAM 12 is recorded in the data flash 30 in this case as well, and no inconsistency occurs in the data. .

図10(c)は運転者がIG‐OFFから所定時間内にIG‐ONして、所定時間内にIG‐OFFした場合を示す。IG‐OFFからの所定時間内のIG‐ONによりフラグAがONになることは図10(b)と同じである。   FIG. 10C shows a case where the driver IG-ON within a predetermined time from IG-OFF and IG-OFF within the predetermined time. As in FIG. 10B, the flag A is turned ON by IG-ON within a predetermined time from IG-OFF.

しかし、IG‐OFFから所定時間内にIG‐OFFとなるため、フラグAがONのままIG‐OFFとなる。フラグAはIG‐OFFから所定時間経過しないとOFFにならないので、IG‐ONを起点に、2度目のIG‐OFFから所定時間が経過するまでフラグAはONを継続する。   However, since IG-OFF is turned on within a predetermined time from IG-OFF, the flag A remains IG-OFF with the flag ON. Since the flag A is not turned off until a predetermined time has elapsed from IG-OFF, the flag A continues to be turned on from the IG-ON until a predetermined time has passed since the second IG-OFF.

したがって、2度目のIG‐OFFが検出されても、データ記録部43がSRAM12からデータフラッシュ30へのデータ記録を開始するのは、フラグAがOFFになってからである。したがって、このような場合でも、本実施形態のデータ記録方法では、SRAM12のデータとデータフラッシュ30のデータに不整合が生じることはない。   Therefore, even when the second IG-OFF is detected, the data recording unit 43 starts data recording from the SRAM 12 to the data flash 30 after the flag A is turned off. Therefore, even in such a case, the data recording method of this embodiment does not cause inconsistency between the data in the SRAM 12 and the data in the data flash 30.

以上説明したように、本実施形態のデータ記憶方法は、IG‐ONとIG‐OFFが頻繁に繰り返されても、IG‐OFFから所定時間はデータ記録しないので、データの不整合が生じる可能性を低減できる。   As described above, the data storage method according to the present embodiment does not record data for a predetermined time from IG-OFF even if IG-ON and IG-OFF are repeated frequently. Can be reduced.

〔その他の構成例〕
図11(a)はデータ記録ECU100が3つのマイコンを有する場合の構成例を示す図である。図11(a)では最右のサブマイコン20がデータフラッシュ30を有しており、メインマイコン10は最右のサブマイコン20にデータを記録する。このように、データ記録ECU100が有するマイコンの数は3つでもよく、4つ以上でもよい。
[Other configuration examples]
FIG. 11A is a diagram illustrating a configuration example when the data recording ECU 100 includes three microcomputers. In FIG. 11A, the rightmost sub-microcomputer 20 has a data flash 30, and the main microcomputer 10 records data in the rightmost sub-microcomputer 20. Thus, the number of microcomputers included in the data recording ECU 100 may be three, or four or more.

また、データ記録ECU100が2つ以上のサブマイコン20を有する場合、データを記録するサブマイコン20は1つである必要はない。例えば、2つのサブマイコン20が同じデータを重複して記録することで、データの信頼性や安全性が高まる。   Further, when the data recording ECU 100 has two or more sub-microcomputers 20, it is not necessary to have one sub-microcomputer 20 that records data. For example, when the two sub-microcomputers 20 record the same data in duplicate, the reliability and safety of the data are enhanced.

図11(b)はデータ記録ECU100とは別のECUがデータフラッシュ30を有する場合の構成例を示す図である。図11(b)ではECU1のマイコンがデータフラッシュ30を有している。このような場合、データ記録ECU100は、上記に説明したタイミングでECU1へのデータの記録を開始する。この場合は、DMAC19ではなくCAN通信を使用すればよく、データの記録方法が異なっても、車載ネットワーク200の機能でデータ記録が可能である。ただし、データ記録ECU100のSRAM12のデータをECU1に記録するまでは、ECU1に電源を供給しておくことが望ましいため、データ記録時には、リレー操作部44はECU1に対し電源を保持するように要求しておく。これにより、ECU1もデータ記録ECU100からデータを受信してデータフラッシュ30に記録するまで電源が供給される。   FIG. 11B is a diagram showing a configuration example when an ECU different from the data recording ECU 100 has the data flash 30. In FIG. 11B, the microcomputer of the ECU 1 has a data flash 30. In such a case, the data recording ECU 100 starts recording data in the ECU 1 at the timing described above. In this case, it is sufficient to use CAN communication instead of the DMAC 19, and data can be recorded by the function of the in-vehicle network 200 even if the data recording method is different. However, since it is desirable to supply power to the ECU 1 until the data in the SRAM 12 of the data recording ECU 100 is recorded in the ECU 1, the relay operation unit 44 requests the ECU 1 to hold the power during data recording. Keep it. Thereby, the power is supplied until the ECU 1 also receives data from the data recording ECU 100 and records it in the data flash 30.

なお、データ記録ECU100とは別のECUがデータフラッシュ30を有する場合も、複数のECUがデータフラッシュ30を有することで、データの信頼性や安全性を高めることができる   Even when the ECU different from the data recording ECU 100 has the data flash 30, the reliability and safety of the data can be improved by having the data flash 30 in the plurality of ECUs.

10 メインマイコン
12,22 SRAM
13,23 コア(CPU)
18,28 CANC
19,29 DMAC
20 サブマイコン
30 データフラッシュ
31 CANドライバ
32 電源IC
100 データ記録ECU
200 車載ネットワーク
10 Main microcomputer 12, 22 SRAM
13,23 core (CPU)
18, 28 CANC
19,29 DMAC
20 Sub-microcomputer 30 Data flash 31 CAN driver 32 Power supply IC
100 data recording ECU
200 In-vehicle network

Claims (8)

エンジン停止操作、又は、少なくとも電動機を含む走行システムの停止操作を受け付けたタイミングで第一の記憶装置のデータを第二の記憶装置に書き出す情報処理装置であって、
エンジン停止操作若しくはエンジン始動操作、又は、少なくとも電動機を含む走行システムの停止操作若しくは始動操作を受け付ける操作受け付け手段と、
前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから所定時間内にエンジン始動操作又は走行システムの始動操作を受け付けた特定操作を記録すると共に、前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから所定時間経過後に前記特定操作の記録を消去する停止始動操作記録手段と、
前記第一の記憶装置のデータを前記第二の記憶装置に書き出すデータ書き出し手段と、を有し、
前記データ書き出し手段は、前記特定操作の記録がある場合には第一の記憶装置から第二の記憶装置へのデータの書き出しを取り消す、ことを特徴とする情報処理装置。
An information processing device that writes data in the first storage device to the second storage device at a timing when an engine stop operation or at least a stop operation of the traveling system including the electric motor is received,
An operation accepting means for accepting an engine stop operation or an engine start operation, or at least a stop operation or a start operation of a traveling system including an electric motor;
The operation accepting unit records an engine start operation or a specific operation that has received a start operation of the traveling system within a predetermined time after the engine stop operation or the travel system stop operation is received, and the operation accepting unit records the engine stop operation or Stop start operation recording means for erasing a record of the specific operation after a predetermined time has elapsed since the stop operation of the traveling system was received;
Data writing means for writing data of the first storage device to the second storage device;
The information processing apparatus, wherein the data writing means cancels writing of data from the first storage device to the second storage device when the specific operation is recorded.
前記データ書き出し手段は、
エンジン停止操作、又は、走行システムの停止操作を受け付けたタイミングに、前記特定操作の記録がある場合には第一の記憶装置から第二の記憶装置へのデータの書き出しを取り消し、前記特定操作の記録が消去されてからデータの書き出しを行う、
ことを特徴とする請求項1記載の情報処理装置。
The data writing means is
If there is a record of the specific operation at the timing when the engine stop operation or the travel system stop operation is received, the writing of data from the first storage device to the second storage device is canceled, and the specific operation Export data after the record is erased,
The information processing apparatus according to claim 1.
前記特定操作の記録がある間、電源から第一の記憶装置への電源供給を維持する電源制御手段、を有することを特徴とする請求項1又は2記載の情報処理装置。   3. The information processing apparatus according to claim 1, further comprising power control means for maintaining power supply from the power source to the first storage device while the specific operation is recorded. 4. 前記データ書き出し手段が第一の記憶装置から第二の記憶装置へのデータの書き出しを終了した場合、前記電源制御手段は、電源から第一の記憶装置への電源供給を停止する、
ことを特徴とする請求項3記載の情報処理装置。
When the data writing unit finishes writing data from the first storage device to the second storage device, the power control unit stops power supply from the power source to the first storage device.
The information processing apparatus according to claim 3.
前記停止始動操作記録手段は、最も新しい、エンジン停止操作又は走行システムの停止操作から、所定時間内にエンジン始動操作又は走行システムの始動操作を受け付けた場合に前記特定操作を記録する、
ことを特徴とする請求項1〜4いずれか1項記載の情報処理装置。
The stop start operation recording means records the specific operation when the engine start operation or the start operation of the travel system is received within a predetermined time from the newest engine stop operation or the stop operation of the travel system.
The information processing apparatus according to claim 1, wherein the information processing apparatus is an information processing apparatus.
前記停止始動操作記録手段は、前記特定操作の記録がある状態で、前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けた場合、最後のエンジン停止操作又は走行システムの停止操作から所定時間の経過後に前記特定操作の記録を消去する、
ことを特徴とする請求項1〜5いずれか1項記載の情報処理装置。
The stop / start operation recording means, when there is a record of the specific operation, when the operation accepting means accepts an engine stop operation or a stop operation of the travel system, is predetermined from the last engine stop operation or the stop operation of the travel system. Delete the record of the specific operation after a lapse of time,
The information processing apparatus according to claim 1, wherein the information processing apparatus is an information processing apparatus.
第一のマイコンと、
第二のマイコンと、
前記第一のマイコンから前記第二のマイコンへデータを送信するデータ送信手段と、を有し、
前記データ書き出し手段は、前記第一のマイコンが有する前記第一の記憶装置から前記第二のマイコンが有する前記第二の記憶装置にデータを書き込む、
ことを特徴とする請求項1〜6いずれか1項記載の情報処理装置。
The first microcomputer,
A second microcomputer,
Data transmission means for transmitting data from the first microcomputer to the second microcomputer;
The data writing means writes data from the first storage device of the first microcomputer to the second storage device of the second microcomputer,
The information processing apparatus according to claim 1, wherein:
エンジン停止操作、又は、少なくとも電動機を含む走行システムの停止操作を受け付けたタイミングで第一の記憶装置のデータを第二の記憶装置に書き出す情報処理装置のデータ記録方法であって、
操作受け付け手段が、エンジン停止操作若しくはエンジン始動操作、又は、少なくとも電動機を含む走行システムの停止操作若しくは始動操作を受け付けるステップと、
停止始動操作記録手段が、前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから、所定時間内にエンジン始動操作又は走行システムの始動操作を受け付けた特定操作を記録するステップと、
前記操作受け付け手段がエンジン停止操作又は走行システムの停止操作を受け付けてから所定時間経過後に前記特定操作の記録を消去するステップと、
前記第一の記憶装置のデータを前記第二の記憶装置に書き出すデータ書き出し手段が、前記特定操作の記録がある場合には第一の記憶装置から第二の記憶装置へのデータの書き出しを取り消すステップと、を有するデータ記録方法。
A data recording method for an information processing apparatus that writes data of a first storage device to a second storage device at a timing when an engine stop operation or at least a stop operation of a traveling system including an electric motor is received,
A step of receiving an engine stop operation or an engine start operation, or a stop operation or a start operation of a traveling system including at least an electric motor;
A stop start operation recording means for recording a specific operation in which the engine start operation or the travel system start operation is received within a predetermined time after the operation reception means receives the engine stop operation or the stop operation of the travel system; and
A step of erasing the record of the specific operation after a predetermined time has elapsed since the operation receiving means received an engine stop operation or a stop operation of the traveling system;
Data writing means for writing data in the first storage device to the second storage device cancels writing of data from the first storage device to the second storage device when there is a record of the specific operation. A data recording method.
JP2011200781A 2011-09-14 2011-09-14 Information processing apparatus and data recording method Active JP5803466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200781A JP5803466B2 (en) 2011-09-14 2011-09-14 Information processing apparatus and data recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200781A JP5803466B2 (en) 2011-09-14 2011-09-14 Information processing apparatus and data recording method

Publications (2)

Publication Number Publication Date
JP2013060141A true JP2013060141A (en) 2013-04-04
JP5803466B2 JP5803466B2 (en) 2015-11-04

Family

ID=48185216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200781A Active JP5803466B2 (en) 2011-09-14 2011-09-14 Information processing apparatus and data recording method

Country Status (1)

Country Link
JP (1) JP5803466B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6413601A (en) * 1987-07-07 1989-01-18 Aisin Aw Co Save/restore system for stored information in vehicle control system
JPH09121391A (en) * 1996-09-19 1997-05-06 Nissan Motor Co Ltd Communication equipment for vehicle
JP2001182607A (en) * 1999-12-22 2001-07-06 Denso Corp Vehicle controlling device
JP2001320801A (en) * 2000-05-09 2001-11-16 Toyota Motor Corp Vehicle, power supply controlling device, method of starting vehicle and method of using high-voltage power supply
JP2002371907A (en) * 2001-06-14 2002-12-26 Isuzu Motors Ltd Control device and control method for exhaust emission control device
JP2007131076A (en) * 2005-11-09 2007-05-31 Toyota Motor Corp Battery status diagnostic device
JP2009214596A (en) * 2008-03-07 2009-09-24 Nissan Diesel Motor Co Ltd Vehicular electronic control unit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6413601A (en) * 1987-07-07 1989-01-18 Aisin Aw Co Save/restore system for stored information in vehicle control system
JPH09121391A (en) * 1996-09-19 1997-05-06 Nissan Motor Co Ltd Communication equipment for vehicle
JP2001182607A (en) * 1999-12-22 2001-07-06 Denso Corp Vehicle controlling device
JP2001320801A (en) * 2000-05-09 2001-11-16 Toyota Motor Corp Vehicle, power supply controlling device, method of starting vehicle and method of using high-voltage power supply
JP2002371907A (en) * 2001-06-14 2002-12-26 Isuzu Motors Ltd Control device and control method for exhaust emission control device
JP2007131076A (en) * 2005-11-09 2007-05-31 Toyota Motor Corp Battery status diagnostic device
JP2009214596A (en) * 2008-03-07 2009-09-24 Nissan Diesel Motor Co Ltd Vehicular electronic control unit

Also Published As

Publication number Publication date
JP5803466B2 (en) 2015-11-04

Similar Documents

Publication Publication Date Title
JP6011379B2 (en) Tamper detection system, electronic control unit
JP6255072B2 (en) Semiconductor device
JP6332580B1 (en) Control device, program update method, and computer program
JP2011138468A (en) Semiconductor integrated circuit device
JP5138760B2 (en) Information recording device
US20110270490A1 (en) Vehicle-use electronic control device
JP3596433B2 (en) Automotive electronic control unit
JPWO2019030984A1 (en) Control device, control method, and computer program
WO2019188233A1 (en) Processing device
JP2008114806A (en) On-vehicle device relay system, on-vehicle device relay method and relay device
WO2016147793A1 (en) Vehicular control device and method for controlling same
JP2006209685A (en) Failure diagnostic method and failure diagnostic device
JP2010023556A (en) Electronic control device
JP5880411B2 (en) Information processing device
JP5803466B2 (en) Information processing apparatus and data recording method
JP2000172384A (en) On-vehicle computer and its control method
JP5614365B2 (en) Data relay device, in-vehicle network
JP2006002715A (en) Engine control circuit
JP2010258635A (en) Control apparatus
JP6040952B2 (en) Communication system, electronic control device
JP2009061987A (en) Vehicular electronic control device
JP7310642B2 (en) In-vehicle ECU, program and information processing method
JP2005088676A (en) Vehicular communication diagnostic device and diagnostic method
JP2022053165A (en) Electronic control device
JP2008107999A (en) Semiconductor device and onboard system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140116

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150108

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150804

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150817

R151 Written notification of patent or utility model registration

Ref document number: 5803466

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151