JP2013060141A - Information processing apparatus, and method for recording data - Google Patents
Information processing apparatus, and method for recording data Download PDFInfo
- 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
Links
Images
Abstract
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).
しかしながら、従来の電子制御ユニットでは、データの不整合を防止できないという問題がある。 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
この場合、途中まで書き込まれたデータの退避はそこで終了してしまうので、本来退避されるべき、データ(図では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.
以下、本発明を実施するための形態について図面を参照しながら説明する。
図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-
記憶されるデータは例えば、データ記憶日時、走行距離、走行時間、最高車速、平均車速、最高エンジン回転数、平均燃費、水温、排ガス濃度、位置情報、エアバッグの展開などのイベント等である。この他、車両の状態を特定するために有効なデータは記憶対象となりうる。 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-
図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
サブマイコン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
メインマイコン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
ADC11,21はA/Dコンバータであり、不図示のセンサが検出したアナログデータをデジタルデータに変換する。WDT14,24はコア13,23によるプログラムの実行状態を監視するタイマであり、予め決められた時間内にコア13,23がリセットしないことから、コア13,23の異常を検出し、リセットするなどの処理を行う。
CANC18,28は、CANプロトコルに従って他のECU110等と通信する通信装置である。CANC18,28はCANドライバ31と接続されている。CANドライバ31は、データの送信時、通信データを差動電圧に変換してCANバスに出力する。また、データの受信時、差動電圧が所定の電圧範囲に含まれるように整形して受信信号を生成し、CANC18,28に出力する。
The CANCs 18 and 28 are communication devices that communicate with
SRAM12はRAMの一種であり、本実施形態ではデータを一時的に保持するために使用される。SRAM22は、サブマイコン20がデータを一時的に保持するために使用可能であるが、サブマイコン20にはなくてもよい。I/O17にはメインマイコン10が演算に用いる信号を検出する各種のセンサ、メインマイコン10が制御するアクチュエータやアクチュエータのドライバ回路等が接続されている。I/O27についても同様である。なお、ADC11やCANC18はI/O17に接続されていてもよい。
The
DMAC19は、I/O17から入力されたデータを、コア13を介さずにRAM16やSRAM12に記録し、コア13からの要求を受け付けてRAM16やSRAM12の指定アドレスからセンサやアクチュエータにデータを転送する。本実施形態では、メインマイコン10とサブマイコン20の間の通信もDMAC19を介して行われる。この場合、コア13はDMAC19に、データの転送元としてSRAM12を指定するアドレスとデータサイズを、データの転送先としてサブマイコン20のデータフラッシュ30のアドレスをそれぞれ設定する。したがって、メインマイコン10のDMAC19はサブマイコン20のデータフラッシュ30をメインマイコン10の一部のようにアクセスできる。
The
また、メインマイコン10のDMAC19が直接、サブマイコン20のデータフラッシュ30にアクセスするのでなく、メインマイコン10のDMAC19がサブマイコン20のDMAC29に、データフラッシュ30へのデータ転送を依頼してもよい。また、必ずしもDMAC19、29を使用するのでなく、UART(Universal Asynchronous Receiver Transmitter)やI2C(Inter‐Integrated Circuit)を利用して通信してもよい。
Further, the
電源IC32は、不図示のバッテリから電力供給を受けてマイコン駆動用の電圧・電流を生成する。IG‐ON時は、ECU内の全ての回路を通常モードで動作させるために必要な大容量の電圧・電流を生成し、IG‐OFF時は、メインマイコン10・サブマイコン20の回路の一部を省電力モードに保持するために必要な最小限の電圧・電流を生成する。また、電源IC32は、メインマイコン10又はサブマイコン20からの制御を取得して、バッテリから、メインマイコン10及びサブマイコン20への電力供給を遮断及び維持することができる。
The
サブマイコン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
<データ収集>
まず、データ収集部45によるデータ収集について説明する。
図6は、データ記録ECU100がデータをSRAM12に記録する手順を示すフローチャート図の一例である。
<Data collection>
First, data collection by the
FIG. 6 is an example of a flowchart illustrating a procedure in which the
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
データ記録ECU100のCANC18は予め定められたCAN IDのデータを選択的に受信して、コア13に受信割込みする。コア13は受信割込みに対しデータ収集部45などを起動させるので、データ収集部45はCAN
IDに基づき記録すべきデータとして選択したデータをSRAM12に記憶する(S20)。
The
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
データ収集部45が収集するデータにはこのような性格があるので、SRAM12に記憶されるデータ量が一定であるとは限らない。このためデータ記録時間も一定とは限らない。
Since the data collected by the
そして、データ記録ECU100のIG状態検出部41がIG‐OFFを検出すると、メインマイコン10はSRAM12からデータフラッシュ30へのデータを記録するタイミングか否かを判定する。記録するタイミングであると判定されれば、データ記録部43がデータの記録を開始する。
When the IG state detection unit 41 of the
<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
・ハイブリッド車又は電気自動車の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
・エンジン車両、ハイブリッド車又は電気自動車の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
エンジン車両の場合、いずれの場合も所定の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
なお、フラグ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
フラグ設定部42は、IG状態検出部41が検出したIG‐OFFの時刻(以下、IG‐OFF時刻という)を記録している。IG‐OFF時刻は時計上の時刻である必要はなく、IG‐OFFとなった時に例えばゼロであることを示す情報でよい。フラグ設定部42は、IG‐OFF時刻を基準に数秒から数十秒の予め決められた所定時間を計測する。また、IG‐OFF時刻は、この予め決められた時間でもよく、フラグ設定部42は予め決められた時間からカウントダウンを開始しゼロになったことを検出する。
The
<データ記録>
データ記録部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
この後、データ記録部43はDMAC19を使用して、SRAM12のデータをサブマイコン20のデータフラッシュ30に記録させる。DMAC19はSRAM12のデータを読み出して、サブマイコン20のデータフラッシュ30に記録する。DMAC19は要求されたデータの記録が終了したことをデータ記録部43に通知する。
Thereafter, the data recording unit 43 uses the
データの記録が終了すると、データ記録部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
なお、データフラッシュ30がメインマイコン10内にあっても、同様の手順で不都合なくデータの記録が可能である。したがって、データ記録ECU100は1つのマイコンのみを有していてもよい。
Even if the data flash 30 is in the
〔動作手順〕
図7は、フラグ設定部42がIG‐ONとIG‐OFFの頻繁な繰り返しの有無を判定する手順を示すフローチャート図の一例である。
[Operation procedure]
FIG. 7 is an example of a flowchart illustrating a procedure in which the
フラグ設定部42は、IG状態検出部41が検出したIG‐OFF時刻を記録している。これを利用してフラグ設定部42はIG‐OFF時刻から所定時間以上が経過したか否かを判定する(S110)。この所定時間は、IG‐OFFから短時間にIG‐ONされたか否かを判定するための時間である。所定時間はデータ記録時間より長いことが好ましく、例えば、数秒から数十秒とする。所定時間については次述する。
The
所定時間以上、経過するまで場合(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
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
一方、ステップ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
また、ステップ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
図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
データ記録部43は、原則的にIG‐OFFを契機にSRAM12のデータをデータフラッシュ30に記録するので、データ記録部43はIG‐OFF状態か否かを判定する(S210)。
Since the data recording unit 43 records the data of the
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
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
また、フラグ設定部42はフラグAがONであることから、IG‐OFFから短時間のIG‐ON→IG‐OFFであると判定し、フラグBをOFFに設定する(S260)。したがって、この場合、データ記録部43はデータを記録できない。
In addition, since the flag A is ON, the
一方、ステップ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
また、ステップ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
フラグ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
データ記録部43は、SRAM12のデータを全て記録したか否かを判定する(S330)。SRAM12のデータを全て記録するまでの間(S330のNo)、データの記録を継続する(S310、S320)。
The data recording unit 43 determines whether all the data in the
データ記録の間に(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
データ記録部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
フラグ設定部42は、データ記録部43からデータの記録の終了の通知を取得すると、フラグBをOFFに設定する(S350)。すなわち、フラグBがOFFになることで、データの記録が終了したため、データ記録が不要になったことを記録できる。
The
図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
図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
図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
以上説明したように、本実施形態のデータ記憶方法は、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
また、データ記録ECU100が2つ以上のサブマイコン20を有する場合、データを記録するサブマイコン20は1つである必要はない。例えば、2つのサブマイコン20が同じデータを重複して記録することで、データの信頼性や安全性が高まる。
Further, when the
図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
なお、データ記録ECU100とは別のECUがデータフラッシュ30を有する場合も、複数のECUがデータフラッシュ30を有することで、データの信頼性や安全性を高めることができる
Even when the ECU different from the
10 メインマイコン
12,22 SRAM
13,23 コア(CPU)
18,28 CANC
19,29 DMAC
20 サブマイコン
30 データフラッシュ
31 CANドライバ
32 電源IC
100 データ記録ECU
200 車載ネットワーク
10
13,23 core (CPU)
18, 28 CANC
19,29 DMAC
20 Sub-microcomputer 30
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.
ことを特徴とする請求項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.
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)
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 |
-
2011
- 2011-09-14 JP JP2011200781A patent/JP5803466B2/en active Active
Patent Citations (7)
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 |