JP6524925B2 - Vehicle control device - Google Patents

Vehicle control device Download PDF

Info

Publication number
JP6524925B2
JP6524925B2 JP2016005472A JP2016005472A JP6524925B2 JP 6524925 B2 JP6524925 B2 JP 6524925B2 JP 2016005472 A JP2016005472 A JP 2016005472A JP 2016005472 A JP2016005472 A JP 2016005472A JP 6524925 B2 JP6524925 B2 JP 6524925B2
Authority
JP
Japan
Prior art keywords
power
connection line
battery
supplied
storage unit
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.)
Expired - Fee Related
Application number
JP2016005472A
Other languages
Japanese (ja)
Other versions
JP2017124757A (en
Inventor
芳弘 大谷
芳弘 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2016005472A priority Critical patent/JP6524925B2/en
Publication of JP2017124757A publication Critical patent/JP2017124757A/en
Application granted granted Critical
Publication of JP6524925B2 publication Critical patent/JP6524925B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Description

本発明は、バッテリからの電力供給状態に応じて車両情報の書き込み処理を変更する車両用制御装置に関する。   The present invention relates to a control device for a vehicle that changes the process of writing vehicle information according to the state of power supply from a battery.

車両において、イグニッションオフ時も電力がバッテリから供給されない場合として、たとえば常時通電用の電源ヒューズを抜いている場合、およびヒューズが断線している場合がある。ヒューズは、たとえば長期保管時のバッテリ上がりを防止するために抜かれることがある。このようにバッテリから常時通電される電力がない場合であっても、車両制御装置はユーザの操作によって作動電源をオンできる構成となっている。換言すると、常時通電されていなくても、ユーザの操作によってACCオンおよびイグニッションオンすることができる。   In a vehicle, when power is not supplied from the battery even when the ignition is off, for example, the power supply fuse for constant current conduction may be removed and the fuse may be disconnected. The fuse may be removed, for example, to prevent battery run-up during long-term storage. As described above, even when there is no electric power constantly supplied from the battery, the vehicle control device is configured to be able to turn on the operating power by the operation of the user. In other words, ACC can be turned on and the ignition can be turned on by the user's operation even when power is not always applied.

しかし常時通電がない場合、ユーザにより作動電源がオンされた時にRAMから情報を読み込めず初期状態で動作し、前回走行状態が反映されないことがある。また作動電源をオフした場合には、バッテリからの電力供給が停止するので、通常実施する電源オフ時の処理が行えず、電源オフ以前の情報および各種状態が保存できないことがある(たとえば特許文献1参照)。   However, when the power is not constantly applied, the information can not be read from the RAM when the operation power is turned on by the user, and the system may operate in the initial state, and the previous traveling state may not be reflected. In addition, when the operation power is turned off, the power supply from the battery is stopped, so the processing at the time of the power off which is usually performed can not be performed, and the information and various states before the power off may not be saved. 1).

特開2015−58751号公報JP, 2015-58751, A

たとえばメータでは、バッテリからの常時通電が遮断されている場合、イグニッションのオンオフで通電と非通電が切り替わる。そのため、常時通電が遮断されている状態で、イグニッションオフされたとき、通常行われるべきイグニッションオフ処理が供給電力の停止によって実施されないことがある。   For example, in the case of the meter, when the constant current supply from the battery is cut off, the current supply and non-current supply are switched by turning on and off the ignition. Therefore, when the ignition is turned off in a state in which the current is always shut off, the ignition off process that should normally be performed may not be performed due to the stop of the supplied power.

また常時通電がない状況においては、本来作動電源オフ処理がなされない状況のはずが、瞬断防止回路の残留電圧の影響で作動電源オフ処理が一部実施されてしまい、信頼性に欠けた処理が実施されることがある。   In addition, in the situation where there is no constant power supply, it should be the situation where the operation power off process is not originally performed, but the operation power off process is partially executed under the influence of the residual voltage of the short interruption prevention circuit, and the process is unreliable May be implemented.

さらに常時通電がなくとも、残留電圧を利用して作動電源オフ処理が行われるようなシステムにおいて、作動電源オフ処理が完了する前にマイコンのリセット電圧を下回ってしまった場合も同様に信頼性に欠けた処理になってしまう。   Furthermore, in a system in which operation power off processing is performed using residual voltage even if there is no constant power supply, the same applies to reliability even when the reset voltage of the microcomputer falls below the completion of operation power off processing. It becomes a missing process.

そこで、本発明は前述の問題点を鑑みてなされたものであり、バッテリからの常時通電が遮断されている場合であっても、イグニッションがオフされた後に記憶部へ書き込まれる情報の信頼性を向上することができる車両用制御装置を提供することを目的とする。   Therefore, the present invention has been made in view of the above-mentioned problems, and, even when the constant energization from the battery is interrupted, the reliability of the information written to the storage unit after the ignition is turned off It is an object of the present invention to provide a vehicle control device that can be improved.

本発明は前述の目的を達成するために以下の技術的手段を採用する。   The present invention adopts the following technical means to achieve the above-mentioned object.

本発明は、バッテリ検出部(17)の検出によってバッテリ(20)から常時接続線(11)を介して電力が供給されている場合、イグニッション検出部(18)の検出によって車両のイグニッションがオンからオフになったとき、車両情報のうち所定の終了情報を記憶部(30)に書き込み、バッテリ検出部の検出によってバッテリから常時接続線を介して電力が供給されておらず作動接続線(12)を介して電力が供給されている場合、イグニッション検出部の検出によってイグニッションがオンからオフになったとき、蓄電部(16)から供給される電力で駆動できる期間にわたって、終了情報を書き込む処理を複数に分割した分割処理を順次実施し、各分割処理では、終了情報の一部の情報を記憶部に書き込む車両用制御装置である。   In the present invention, when power is supplied from the battery (20) through the constant connection line (11) by the detection of the battery detection unit (17), the ignition of the vehicle is turned on by the detection of the ignition detection unit (18). When the vehicle is turned off, predetermined end information in the vehicle information is written in the storage unit (30), and power is not supplied from the battery via the constant connection line by the detection of the battery detection unit, and the operation connection line (12) When power is supplied via the power supply, and the ignition detection unit detects that the ignition is turned on from off, a plurality of processes for writing the end information over a period in which the power can be driven by the power supplied from the storage unit (16) Is a vehicle control device that sequentially executes division processing divided into two, and in each division processing, writes partial information of end information in the storage unit

このような本発明に従えば、バッテリから常時接続線を介して電力が供給されている場合、車両のイグニッションがオンからオフになったとき、車両情報のうち所定の終了情報が記憶部に書き込まれる。通常、バッテリから常時接続線を介して電力が供給されているので、終了情報を書き込むための電力を考慮する必要がない。しかしバッテリから常時接続線を介して電力が供給されておらず作動接続線を介して電力が供給されている場合、イグニッションがオンからオフされると、バッテリから電力が供給されないので、終了情報を書き込むための電力が不足するおそれがある。そこで本発明では、蓄電部から供給される電力で駆動できる期間にわたって、終了情報を書き込む処理を複数に分割した分割処理を順次実施する。分割処理では、終了情報の一部の情報を記憶部に書き込むので、終了した分割処理にて書き込まれた情報を次回、有効な情報として用いることができる。これによって終了情報を全て書き込む時間がなくとも、より多くの信頼できる情報を記憶部に書き込むことができる。   According to the present invention, when power is supplied from the battery via the constant connection line, when the ignition of the vehicle is switched from on to off, predetermined end information of the vehicle information is written in the storage unit. Be Since power is normally supplied from the battery via the constant connection line, there is no need to consider the power for writing the termination information. However, when power is not supplied from the battery via the connection line and power is supplied via the operation connection line, the power is not supplied from the battery when the ignition is turned off, so the end information is displayed. There is a risk that the power for writing will be insufficient. Therefore, in the present invention, division processing in which processing for writing end information is divided into a plurality of parts is sequentially performed over a period in which driving can be performed by the power supplied from the storage unit. In the division process, since a part of the end information is written in the storage unit, the information written in the completed division process can be used as valid information next time. This makes it possible to write more reliable information to the storage unit without having time to write all the end information.

なお、前述の各手段の括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示す一例である。   In addition, the code | symbol in the parenthesis of each above-mentioned means is an example which shows the correspondence with the specific means as described in embodiment mentioned later.

バッテリ20とECU10との接続状態を示すブロック図である。It is a block diagram which shows the connection state of the battery 20 and ECU10. ECU10の電気的構成を示すブロック図である。FIG. 2 is a block diagram showing an electrical configuration of the ECU 10. 電源オフ処理を示すタイムチャートである。It is a time chart which shows a power-off process. 電源オン処理を示すフローチャートである。It is a flowchart which shows a power-on process. 電源オフ処理を示すフローチャートである。It is a flowchart which shows a power-off process. 分割処理を説明するタイムチャートである。It is a time chart explaining division processing.

(第1実施形態)
本発明の第1実施形態に関して、図1〜図6を用いて説明する。図1に示すように電子制御装置(Electronic Control Unit:略称ECU)10には、バッテリ20から電力が供給されている。ECU10は、バッテリ20と常時接続線11および作動接続線12を介して接続される。したがってECU10は、常時接続線11または作動接続線12のいずれかを介して供給される電力で駆動する。ECU10は、車両用制御装置である。
First Embodiment
A first embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 1, an electronic control unit (ECU) 10 is supplied with power from a battery 20. The ECU 10 is connected to the battery 20 via the constant connection line 11 and the operation connection line 12. Therefore, the ECU 10 is driven by the electric power supplied via either the constant connection line 11 or the operation connection line 12. The ECU 10 is a control device for a vehicle.

常時接続線11には、ヒューズ13が設けられている。ヒューズ13は、常時接続線11に過大な電流が流れた場合に、常時接続線11を遮断する。   A fuse 13 is provided on the constant connection line 11. The fuse 13 always interrupts the connection line 11 when an excessive current flows in the connection line 11 at all times.

作動接続線12には、スイッチ14が設けられている。スイッチ14は、イグニッションのオンオフと連動する。スイッチ14は、イグニッションがオンされると通電し、イグニッションがオフされると非通電となる。これによって作動接続線12は、車両のイグニッションがオフされると非通電となり、イグニッションがオンされると通電する。イグニッションのオンオフには、車両のアクセサリ(以下、ACC)のオンオフも含まれる。   A switch 14 is provided on the operation connection line 12. The switch 14 is interlocked with on / off of the ignition. The switch 14 is energized when the ignition is turned on, and is deenergized when the ignition is turned off. As a result, the actuation connection line 12 is de-energized when the ignition of the vehicle is turned off, and is energized when the ignition is turned on. Ignition on / off includes on / off of vehicle accessories (hereinafter ACC).

ECU10は、イグニッションオフ時も常時接続線11を介して電力がバッテリ20から供給される。逆に、常時接続線11のヒューズ13を抜いている場合、およびヒューズ13が断線している場合には、イグニッションオフ時に常時接続線11を介して電力がバッテリ20から供給されない。常時接続線11を介して電力が供給されない場合であっても、ユーザの操作によってイグニッションがオンされてスイッチ14をオンされると、作動接続線12を介してECU10に電力が供給される。   The ECU 10 is supplied with power from the battery 20 via the connection line 11 even when the ignition is off. On the other hand, when the fuse 13 of the constant connection line 11 is removed and the fuse 13 is broken, power is not supplied from the battery 20 via the constant connection line 11 when the ignition is off. Even when power is not supplied via the constant connection line 11, power is supplied to the ECU 10 via the operation connection line 12 when the ignition is turned on and the switch 14 is turned on by the operation of the user.

図2に示すように、ECU10は、マイコン15、瞬断防止回路16、常時電源判定回路17、作動電源判定回路18およびマイコン電源19を含んで構成される。マイコン15は、記憶部30に記憶されているプログラムを実行し、図示を省略している各部を制御する。マイコン15は、制御部であって、バッテリ20から供給される電力で駆動し、記憶部30への車両情報の書き込み、および記憶部30から車両情報の読み出しを行う。   As shown in FIG. 2, the ECU 10 is configured to include a microcomputer 15, an instantaneous power failure prevention circuit 16, a constant power supply determination circuit 17, an operating power supply determination circuit 18, and a microcomputer power supply 19. The microcomputer 15 executes a program stored in the storage unit 30, and controls each unit (not shown). The microcomputer 15 is a control unit, is driven by the power supplied from the battery 20, writes vehicle information to the storage unit 30, and reads vehicle information from the storage unit 30.

記憶部30は、コンピュータによって読み取り可能なプログラムおよびデータを非一時的に格納する非遷移的実体的記憶媒体である。記憶部30は、半導体メモリまたは磁気ディスクなどによって実現される。記憶部30には、車両の制御および走行に関連する車両情報が記憶されている。本実施形態では、記憶部30は、揮発性メモリ31および不揮発性メモリ32を含む。揮発性メモリ31は、電力を供給しないと記憶している情報を保持できないメモリである。不揮発性メモリ32は、電力を供給しなくても情報を失わないメモリである。 The storage unit 30 is a non-transitory tangible storage medium storing non-transitory computer readable programs and data. The storage unit 30 is realized by a semiconductor memory or a magnetic disk. The storage unit 30 stores vehicle information related to control and traveling of the vehicle. In the present embodiment, the storage unit 30 includes a volatile memory 31 and a non-volatile memory 32. The volatile memory 31 is a memory that can not hold stored information unless power is supplied. The non-volatile memory 32 is a memory that does not lose information even when power is not supplied.

マイコン電源19は、マイコン15へ電力を供給する。マイコン電源19は、バッテリ20から供給された直流電圧を降圧し、マイコン15が動作するための電力を供給する。   The microcomputer power supply 19 supplies power to the microcomputer 15. The microcomputer power supply 19 steps down the DC voltage supplied from the battery 20 and supplies power for the microcomputer 15 to operate.

常時電源判定回路17は、バッテリ20から常時接続線11を介して電力が供給されているか否かを判断し、判断結果をマイコン15の電圧監視用端子15aに与える。常時電源判定回路17は、バッテリ20から常時接続線11を介して供給される電力状態を検出するバッテリ検出部として機能する。作動電源判定回路18は、バッテリ20から作動接続線12を介して電力が供給されているか否かを判断し、判断結果をマイコン15の電圧監視用端子15aに与える。作動電源判定回路18は、イグニッションのオンオフ状態を検出するイグニッション検出部として機能する。   The constant power supply determination circuit 17 determines whether power is supplied from the battery 20 via the constant connection line 11 and gives the determination result to the voltage monitoring terminal 15 a of the microcomputer 15. The constant power supply determination circuit 17 functions as a battery detection unit that detects the power state supplied from the battery 20 via the constant connection line 11. The operation power supply determination circuit 18 determines whether power is supplied from the battery 20 via the operation connection line 12 and gives the determination result to the voltage monitoring terminal 15 a of the microcomputer 15. The operating power supply determination circuit 18 functions as an ignition detection unit that detects the on / off state of the ignition.

瞬断防止回路16は、瞬断防止部であって、バッテリ20からマイコン電源19に供給される電力の瞬断を防止する回路である。瞬断防止回路16は、バッテリ20から供給される電力を蓄電する蓄電部を備える。蓄電部は、たとえばバックアップコンデンサと呼ばれるコンデンサによって実現される。バックアップコンデンサは、瞬断時において、予め蓄積された電荷によってマイコン電源19に電力を供給する。これによってマイコン電源19は、瞬断時においても、マイコン15への電力の供給を継続することができる。   The instantaneous interruption prevention circuit 16 is an instantaneous interruption prevention unit, and is a circuit that prevents an instantaneous interruption of the power supplied from the battery 20 to the microcomputer power supply 19. The instantaneous interruption prevention circuit 16 includes a power storage unit that stores the power supplied from the battery 20. The storage unit is realized by, for example, a capacitor called a backup capacitor. The backup capacitor supplies electric power to the microcomputer power supply 19 by the charge accumulated in advance at the momentary power failure. Thus, the microcomputer power supply 19 can continue the supply of power to the microcomputer 15 even at the momentary interruption.

次に、作動電源がオンからオフに切り替わった場合の処理に関して説明する。図3では、3つの比較例と本実施形態とを示している。比較例1では、常時電源がオンである場合を示している。常時電源がオンの状態は、バッテリ20から常時接続線11を介して電力が供給されている状態である。この場合に、イグニッションがオンされて、作動電源がオンされると、オフされるまではECU10が起動中となる。そしてイグニッションがオフされて、作動電源がオフされても、引き続きバッテリ20から常時接続線11を介して電力が供給されている。したがって作動電源がオフされても、電源オフ処理を実施することができる。電源オフ処理は、ユーザがカスタマイズしたデータなどを記憶部30に記憶する処理である。換言すると、電源オフ処理は、イグニッションがオンからオフになったとき、車両情報のうち所定の終了情報を記憶部30に書き込む処理である。終了情報としては、たとえばユーザがカスタマイズしたデータ、積算データおよび車両情報がある。カスタマイズしたデータとして、たとえば日付情報、表示デザイン情報および機能有無の設定情報がある。車両情報として、たとえば後続可能距離、燃料使用情報、燃費情報および残燃料がある。   Next, processing when the operating power is switched from on to off will be described. FIG. 3 shows three comparative examples and the present embodiment. Comparative Example 1 shows the case where the power is always on. The always-on state is a state in which power is supplied from the battery 20 via the always-connected line 11. In this case, when the ignition is turned on and the operation power is turned on, the ECU 10 is starting until the power is turned off. Then, even if the ignition is turned off and the operation power supply is turned off, power is continuously supplied from the battery 20 via the constant connection line 11. Therefore, even if the operation power is turned off, the power off process can be performed. The power off process is a process of storing data customized by the user in the storage unit 30. In other words, the power-off process is a process of writing predetermined end information of the vehicle information in the storage unit 30 when the ignition is turned off from on. The end information includes, for example, user-customized data, integrated data, and vehicle information. As customized data, for example, there are date information, display design information, and setting information of the presence or absence of functions. As vehicle information, there are, for example, a following distance, fuel usage information, fuel consumption information and remaining fuel.

比較例2では、常時電源がオフである場合を示している。常時電源がオフの状態は、バッテリ20から常時接続線11を介して電力が供給されていない状態である。この場合も、イグニッションがオンされて、作動電源がオンされると、オフされるまではECU10が起動中となる。そしてイグニッションがオフされて、作動電源がオフされると、電力の供給が停止されるので、電源オフ処理を実施することができない。   Comparative Example 2 shows the case where the power is always off. The state in which the power supply is always off is a state in which power is not supplied from the battery 20 via the connection line 11. Also in this case, when the ignition is turned on and the operation power is turned on, the ECU 10 is starting until the power is turned off. Then, when the ignition is turned off and the operation power is turned off, the power supply is stopped, so the power off process can not be performed.

そこで比較例3のように、瞬断防止回路16の電力を用いる処理方法がある。比較例3では、比較例2と同様に、常時電源がオフである場合を示している。そしてECU10が起動中に、イグニッションがオフされて、作動電源がオフされると、瞬断防止回路16の残留電圧によって電源オフ処理が実施される。しかし残留電圧が徐々に低下し、マイコンリセット電圧を下回ると、電源オフ処理が強制的に終了となる。したがって電源オフ処理の一部が実施されてしまい、信頼性に欠けた処理が実施されることになる。   Thus, as in Comparative Example 3, there is a processing method using the power of the instantaneous interruption prevention circuit 16. In Comparative Example 3, as in Comparative Example 2, the case where the constant power supply is off is shown. Then, when the ignition is turned off and the operation power is turned off while the ECU 10 is starting up, the power off process is performed by the residual voltage of the instantaneous interruption prevention circuit 16. However, when the residual voltage gradually decreases and falls below the microcomputer reset voltage, the power off process is forcibly terminated. Therefore, part of the power-off process is performed, and a process that is not reliable is performed.

本実施形態では、比較例3と同様に、瞬断防止回路16の電力を用いている。イグニッションがオフされて、作動電源がオフされると、瞬断防止回路16の残留電圧によって電源オフ処理が実施される。そして電源オフ処理では、瞬断防止回路16から供給される電力で駆動できる期間にわたって、終了情報を書き込む処理を複数に分割した分割処理を順次実施する。したがって分割した分割処理によって書き込まれた終了情報は、信頼できる情報として取り扱うことができる。   In the present embodiment, as in the third comparative example, the power of the instantaneous interruption prevention circuit 16 is used. When the ignition is turned off and the operation power supply is turned off, the power off process is implemented by the residual voltage of the instantaneous interruption prevention circuit 16. Then, in the power-off process, the division process in which the process of writing the end information is divided into a plurality of parts is sequentially performed over a period in which the process can be driven by the power supplied from the instantaneous loss prevention circuit 16. Therefore, the end information written by the divided processing can be treated as reliable information.

次に、ECU10の具体的な電源オフ処理の制御に関して、図4〜図6を用いて説明する。図4は、ECU10によって短時間に繰り返し実行される処理である。ステップS11では、作動電源がオフからオンされたか否かを判断し、オンされた場合には、ステップS12に移り、オンされていない場合には、本フローを終了する。   Next, control of the specific power-off process of the ECU 10 will be described with reference to FIGS. 4 to 6. FIG. 4 is a process repeatedly executed by the ECU 10 in a short time. In step S11, it is determined whether or not the operation power supply is turned on from off. If it is turned on, the process proceeds to step S12, and if it is not turned on, the present flow ends.

ステップS12では、作動電源がオンされたので、初期処理を実施、ステップS13に移る。初期処理では、必要な情報を記憶部30から読み出す。このとき、正しく記憶されている情報を読み込む。正しく記憶されているか否かは、書き込み完了のフラグの有無によって判断することができる。また正しく記憶されていない情報の場合、最近に正しく記憶された情報を用いてもよく、初期値を用いてもよい。   In step S12, since the operation power supply is turned on, the initial process is performed, and the process proceeds to step S13. In the initial process, necessary information is read from the storage unit 30. At this time, the information stored correctly is read. Whether or not the data is correctly stored can be determined by the presence or absence of the write completion flag. In addition, in the case of information that is not stored correctly, information that has been stored correctly recently may be used, or initial values may be used.

ステップS13では、バッテリ20の接続状態を記憶し、ステップS14に移る。バッテリ20の接続状態は、常時電源判定回路17から取得する。ステップS14では、作動電源がオンされているときに実施する通常処理を実施し、本フローを終了する。またステップS14を実行中に、バッテリ20からの電力供給状態が変化したら、イベント処理で即、電源オフ処理を実施する。   In step S13, the connection state of the battery 20 is stored, and the process proceeds to step S14. The connection state of the battery 20 is constantly acquired from the power supply determination circuit 17. In step S14, a normal process that is performed when the operation power is on is performed, and this flow ends. If the state of power supply from the battery 20 changes while executing step S14, the power off process is immediately performed in the event process.

次に、電源オフ処理に関して説明する。図5に示す処理は、作動電源がオンの状態で短時間に繰り返し実行される処理である。ステップS21では、作動電源がオンからオフされたか否かを判断し、オフされた場合には、ステップS22に移り、オフされていない場合には、本フローを終了する。   Next, the power off process will be described. The process shown in FIG. 5 is a process that is repeatedly performed in a short time with the operating power on. In step S21, it is determined whether or not the operation power supply is turned off from on. If the operation power is turned off, the process proceeds to step S22. If the operation power is not turned off, the present flow ends.

ステップS22では、常時電源の有無を判断し、常時電源が無い場合には、ステップ3に移り、常時電源がある場合には、ステップS28に移る。ステップS28では、常時電源があるので、通常の電源オフ処理を実施、本フローを終了する。通常の電源オフ処理は、比較例1で示した処理のように実施される。このとき、記憶部30の揮発性メモリ31に終了情報が記憶される。   In step S22, it is determined whether or not there is a constant power supply. If there is no continuous power supply, the process proceeds to step 3, and if there is a continuous power supply, the process proceeds to step S28. In step S28, since there is a constant power supply, a normal power-off process is performed, and this flow is ended. The normal power-off process is performed as in the process shown in Comparative Example 1. At this time, the end information is stored in the volatile memory 31 of the storage unit 30.

ステップS23では、常時電源が無いので、常時電源が無いときのための電源オフ処理を開始するため、分割数nに初期値として1をセットし、ステップS24に移る。分割数nは、電源オフ処理をn個に細分化したことを示している。電源オフ処理を予め処理の塊毎に分割しており、分割した処理を所定の順番に従って実施する。   In step S23, since there is no power supply at all times, 1 is set as an initial value to the division number n in order to start the power off process when there is no power supply at all times, and the process moves to step S24. The division number n indicates that the power-off process has been subdivided into n. The power-off process is divided in advance into blocks of processes, and the divided processes are performed in a predetermined order.

ステップS24では、第n処理、すなわち第1処理が終了したか否かを判断し、終了した場合は、ステップS25に移り、終了するまでステップS24の処理を繰り返す。ステップS25では、第n処理、すなわち第1処理のデータを記憶部30の不揮発性メモリ32に記憶し、ステップS26に移る。このとき、第n処理の書き込みが完了したことを示すフラグ、すなわち書き込みが成功した成功情報も書き込んでもよい。   In step S24, it is determined whether the nth process, that is, the first process is completed. If completed, the process proceeds to step S25, and the process of step S24 is repeated until the process is completed. In step S25, data of the nth process, that is, the first process is stored in the non-volatile memory 32 of the storage unit 30, and the process proceeds to step S26. At this time, a flag indicating that the writing of the nth process has been completed may be written, that is, success information of the successful writing.

ステップS26では、nを1増加させて2とし、ステップS27に移る。ステップS27では、電源オフ処理が終了したか否かを判断し、終了していない場合、ステップS29に移り、終了した場合は本フローを終了する。ステップS29では、第n処理、すなわち第2処理を開始し、ステップS24に移る。   In step S26, n is increased by 1 to 2 and the process proceeds to step S27. In step S27, it is determined whether or not the power off process has been completed. If it has not been completed, the process proceeds to step S29. If it has been completed, the present flow is terminated. In step S29, the nth process, that is, the second process is started, and the process proceeds to step S24.

したがってマイコン15は、バッテリ20から常時接続線11を介して電力が供給されている場合、イグニッションがオンからオフになったとき、ステップS28に示すように、車両情報のうち所定の終了情報を記憶部30に書き込む。またマイコン15は、バッテリ20から常時接続線11を介して電力が供給されておらず作動接続線12を介して電力が供給されている場合、イグニッションがオンからオフになったとき、ステップS23に移り、瞬断防止回路16から供給される電力で駆動できる期間にわたって分割処理を順次実施する。   Therefore, when electric power is supplied from battery 20 via connection line 11 constantly, microcomputer 15 stores predetermined end information of the vehicle information as shown in step S28 when the ignition is turned off from on. Write to section 30. When the ignition is turned off from the on state, the microcomputer 15 proceeds to step S23 when the power is not supplied from the battery 20 via the connection line 11 at all times and is supplied via the operation connection line 12. Then, division processing is sequentially performed over a period in which the circuit can be driven by the power supplied from the instantaneous failure prevention circuit 16.

具体的には、図6に示すように、常時電源が無い状態で、作動電源がオンからオフになると、分割処理が順次実行される。そして供給電力がマイコンリセット電圧を下回るまで、分割処理が実行される。そして供給電力がマイコンリセット電圧を下回ると、電源オフ処理の途中であっても、強制的に終了となる。しかし処理の塊毎に分割した分割処理を実施しているので、全ての分割処理が完了していなくとも、完了している分割処理のデータは用いることができる。たとえば図5のステップS24、ステップS25、ステップS26、ステップS27およびステップS29を順次繰り返して、繰り返しの途中に強制終了となっても、ステップS25にて記憶されているデータは信頼できるデータである。   Specifically, as shown in FIG. 6, when the operating power supply is turned on from off in a state where there is no power supply at all times, division processing is sequentially executed. Then, division processing is performed until the supplied power falls below the microcomputer reset voltage. When the supplied power falls below the microcomputer reset voltage, the process is forcibly terminated even during the power-off process. However, since division processing divided into processing chunks is performed, data of the division processing that has been completed can be used even if all division processing has not been completed. For example, even if step S24, step S25, step S26, step S27 and step S29 of FIG. 5 are sequentially repeated and forced termination is made during the repetition, the data stored in step S25 is reliable data.

以上説明したように本実施形態の車両用制御装置は、バッテリ20から常時接続線11を介して電力が供給されている場合、イグニッションがオンからオフになったとき、車両情報のうち所定の終了情報が記憶部30に書き込まれる。通常、バッテリ20から常時接続線11を介して電力が供給されているので、終了情報を書き込むための電力を考慮する必要がない。しかしバッテリ20から常時接続線11を介して電力が供給されておらず作動接続線12を介して電力が供給されている場合、イグニッションがオンからオフされると、バッテリ20から電力が供給されないので、終了情報を書き込むための電力が不足するおそれがある。そこで瞬断防止回路16の蓄電部から供給される電力で駆動できる期間にわたって、終了情報を書き込む処理を複数に分割した分割処理を順次実施する。分割処理では、終了情報の一部の情報を記憶部30に書き込むので、終了した分割処理にて書き込まれた情報を次回、有効な情報として用いることができる。これによって終了情報を全て書き込む時間がなくとも、より多くの信頼できる情報を記憶部30に書き込むことができる。   As described above, when the electric power is supplied from the battery 20 via the constant connection line 11, the vehicle control device of the present embodiment terminates predetermined ones of the vehicle information when the ignition changes from on to off. Information is written to the storage unit 30. Since power is normally supplied from the battery 20 via the connection line 11, there is no need to consider the power for writing the end information. However, when power is not supplied from the battery 20 via the constant connection line 11 and power is supplied via the operation connection line 12, no power is supplied from the battery 20 when the ignition is turned off. , There is a possibility that the power for writing the end information is insufficient. Therefore, division processing in which the process of writing the end information is divided into a plurality of parts is sequentially performed over a period in which driving can be performed by the power supplied from the storage unit of the short interruption prevention circuit 16. In the division process, since a part of the end information is written in the storage unit 30, the information written in the ended division process can be used as valid information next time. As a result, more reliable information can be written in the storage unit 30 without having time to write all the end information.

換言すると、本実施形態では、電源オフ処理を細分化し、細分化された処理が終わる毎に処理がどこまで終わったかを記憶する。これにより次回の電源オン時に、前回電源オフ時どこまで処理が終わっているかを判別することが可能となり、信用できるデータかを判断して使用することが可能となる。また、記憶するのは処理の終わった場所ではなく、正常に記憶されたデータかどうかを記憶してもよい。   In other words, in the present embodiment, the power-off process is subdivided, and each time the subdivided process is completed, it is stored how far the process is completed. As a result, when the power is turned on next time, it is possible to determine how far the processing has been completed when the power was turned off last time, and it is possible to judge and use data that can be trusted. Also, it may be stored whether or not stored data is not stored at the end of processing, but is data stored normally.

また本実施形態では、瞬断を防止する瞬断防止回路16が設けられている。そして瞬断防止回路16は、バッテリ20から供給される電力が瞬断した場合、蓄電部の電力をマイコン電源19に供給する。これによってバッテリ20からの電力が瞬断しても、継続してマイコン15に電力を供給することができる。また瞬断防止回路16が備える蓄電部の電力を用いて、電源オフ処理を実施することができる。   Further, in the present embodiment, an instantaneous interruption prevention circuit 16 for preventing an instantaneous interruption is provided. Then, when the power supplied from battery 20 is momentarily interrupted, instantaneous interruption prevention circuit 16 supplies the electric power of the storage unit to microcomputer power supply 19. As a result, even if the power from the battery 20 is momentarily interrupted, the power can be continuously supplied to the microcomputer 15. Further, the power off process can be performed using the power of the power storage unit included in the short interruption prevention circuit 16.

さらに本実施形態では、分割処理では、終了情報の一部を記憶部30に書き込みむとともに、書き込みが完了したことを示す成功情報も書き込む。これによって次回、初期処理を実施したとき、信頼できる情報がどれかを判断することができる。換言すると、成功情報が書き込まれている情報は、信頼できる情報である。このような情報だけを読み込むことによって、書き込みが失敗している情報を用いることを抑制することができる。   Furthermore, in the present embodiment, in the division processing, part of the end information is written to the storage unit 30, and success information indicating that the writing is completed is also written. By this, when the initial processing is performed next time, it is possible to determine which information can be trusted. In other words, the information in which the success information is written is reliable information. By reading only such information, it is possible to suppress the use of the information whose writing has failed.

また本実施形態では、記憶部30は、不揮発性メモリ32と揮発性メモリ31とを有し、通常の電源オフ処理の場合は揮発性メモリ31に終了情報を書き込み、常時電源がない場合は不揮発性メモリ32に終了情報を書き込む。したがって常に不揮発性メモリ32への書き込む処理よりも、揮発性メモリ31にも書き込むことによって不揮発性メモリ32への書き込み回数を低減することができる。また不揮発性メモリ32は記憶領域に制限があるため、記憶するデータを取捨選択することが好ましい。取捨選択は、システムにおけるデータの重要度、データ毎の処理時間によって優先順位をつける。   Further, in the present embodiment, the storage unit 30 includes the non-volatile memory 32 and the volatile memory 31 and writes end information to the volatile memory 31 in the case of normal power-off processing, and non-volatile when there is no power supply at all times. End information is written to the sex memory 32. Therefore, the number of times of writing to the nonvolatile memory 32 can be reduced by writing also to the volatile memory 31 rather than the process of writing to the nonvolatile memory 32 all the time. Further, since the non-volatile memory 32 is limited in storage area, it is preferable to select data to be stored. Selection is prioritized by the importance of data in the system and the processing time for each data.

さらに本実施形態では、分割処理によって書き込まれる終了情報の順番は、設定される優先度が高い順番が好ましい。優先度をたとえば重要度に基づいて設定すると、重要度の高いデータを記憶できる確率を高くすることができる。また優先度を処理時間の昇順に設定すると、処理時間の短いものを先に処理することで、記憶するデータの数を増やすことができる。優先度は、システムに依存してもよく、ユーザが設定してもよい。また優先度は、ユーザカスタマイズデータの優先度を高くしてもよい。また走行距離の積算データであるオド情報など、法規に関わる情報の優先度を高くしてもよい。 Furthermore, in the present embodiment, the order of the end information to be written by the division process is preferably the order in which the priority to be set is high. For example, if the priority is set based on the importance, it is possible to increase the probability that high importance data can be stored. When the priority is set in the ascending order of the processing time, the number of data to be stored can be increased by processing the one with the short processing time first. The priority may be system dependent or user set. Also, the priority may be higher priority of user customization data. In addition, the priority of information related to laws and regulations may be increased, such as odo information, which is integrated data of travel distance.

(その他の実施形態)
以上、本発明の好ましい実施形態について説明したが、本発明は前述した実施形態に何ら制限されることなく、本発明の主旨を逸脱しない範囲において種々変形して実施することが可能である。
(Other embodiments)
The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above-described embodiments, and can be variously modified and implemented without departing from the spirit of the present invention.

前述の実施形態の構造は、あくまで例示であって、本発明の範囲はこれらの記載の範囲に限定されるものではない。本発明の範囲は、特許請求の範囲の記載によって示され、さらに特許請求の範囲の記載と均等の意味及び範囲内での全ての変更を含むものである。   The structures of the aforementioned embodiments are merely illustrative, and the scope of the present invention is not limited to the scope of these descriptions. The scope of the present invention is shown by the statement of a claim, and also includes the meaning of a statement of a claim, an equivalent meaning, and all the changes within the range.

前述の第1実施形態では、蓄電部は、瞬断防止回路16を構成しているが、このような構成に限るものではなく、電源オフ処理のための専用の蓄電部を設けてもよい。   In the first embodiment described above, the storage unit constitutes the instantaneous interruption prevention circuit 16, but the present invention is not limited to such a configuration, and a dedicated storage unit for power off processing may be provided.

前述の第1実施形態では、成功情報としてフラグを用いているが、フラグに限るものではなく、書き込み時間でもよい。書き込み時間がある場合には、書き込み処理が正常に終了したと判断することができる。また成功情報を書き込まない電源オフ処理であってもよい。   Although the flag is used as the success information in the first embodiment described above, the present invention is not limited to the flag, and the writing time may be used. If there is a write time, it can be determined that the write process has ended normally. In addition, power-off processing may be performed without writing success information.

前述の第1実施形態では、記憶部30は不揮発性メモリ32と揮発性メモリ31とを有しいるがこのような構成に限るものではない。記憶する情報の割り当ても変更してもよい。   Although the storage unit 30 includes the non-volatile memory 32 and the volatile memory 31 in the first embodiment described above, the present invention is not limited to such a configuration. The assignment of information to be stored may also be changed.

前述の第1実施形態において、ECU10によって実現されていた機能は、前述のものとは異なるハードウェアおよびソフトウェア、またはこれらの組み合わせによって実現してもよい。ECU10は、たとえば他のECU10と通信し、他のECU10が処理の一部または全部を実行してもよい。ECU10が電子回路によって実現される場合、それは多数の論理回路を含むデジタル回路、またはアナログ回路によって実現することができる。   In the first embodiment described above, the functions implemented by the ECU 10 may be implemented by hardware and software different from those described above, or a combination thereof. The ECU 10 may communicate with, for example, another ECU 10, and the other ECU 10 may execute part or all of the processing. When the ECU 10 is implemented by an electronic circuit, it can be implemented by a digital circuit including a number of logic circuits or an analog circuit.

11…常時接続線 12…作動接続線 13…ヒューズ 14…スイッチ
15…マイコン(制御部) 15a…電圧監視用端子
16…瞬断防止回路(蓄電部、瞬断防止部)
17…常時電源判定回路(バッテリ検出部)
18…作動電源判定回路(イグニッション検出部) 19…マイコン電源
20…バッテリ 30…記憶部 31…揮発性メモリ 32…不揮発性メモリ
11 ... Always connected line 12 ... Operated connection line 13 ... Fuse 14 ... Switch 15 ... Microcomputer (control unit) 15 a ... Terminal for voltage monitoring 16 ... Momentary interruption prevention circuit (power storage unit, momentary interruption prevention unit)
17 ... Constant power supply determination circuit (battery detection unit)
18 Operation power supply determination circuit (ignition detection unit) 19 Microcomputer power supply 20 Battery 30 Storage unit 31 Volatile memory 32 Nonvolatile memory

Claims (5)

バッテリ(20)と常時接続線(11)および作動接続線(12)を介して接続され、前記常時接続線または前記作動接続線のいずれかを介して供給される電力で駆動する車両用制御装置であって、
前記常時接続線には、ヒューズ(13)が設けられており、
前記作動接続線は、車両のイグニッションがオフされると非通電となり、前記イグニッションがオンされると通電し、
前記バッテリから供給される電力を蓄電する蓄電部(16)と、
前記車両の制御および走行に関連する車両情報が記憶されている記憶部(30)と、
前記イグニッションのオンオフ状態を検出するイグニッション検出部(18)と、
前記バッテリから前記常時接続線を介して供給される電力状態を検出するバッテリ検出部(17)と、
前記バッテリから供給される電力で駆動し、前記記憶部への前記車両情報の書き込み、および前記記憶部から前記車両情報の読み出しを行う制御部(15)と、を含み、
前記制御部は、
前記バッテリ検出部の検出によって前記バッテリから前記常時接続線を介して電力が供給されている場合、前記イグニッション検出部の検出によって前記イグニッションがオンからオフになったとき、前記車両情報のうち所定の終了情報を前記記憶部に書き込み、
前記バッテリ検出部の検出によって前記バッテリから前記常時接続線を介して電力が供給されておらず前記作動接続線を介して電力が供給されている場合、前記イグニッション検出部の検出によって前記イグニッションがオンからオフになったとき、前記蓄電部から供給される電力で駆動できる期間にわたって、前記終了情報を書き込む処理を複数に分割した分割処理を順次実施し、
前記各分割処理では、前記終了情報の一部の情報を前記記憶部に書き込む車両用制御装置。
A control device for a vehicle connected to a battery (20) via a constant connection line (11) and an operation connection line (12) and driven by power supplied via either the constant connection line or the operation connection line And
A fuse (13) is provided on the constant connection line,
The actuation connection line is de-energized when the ignition of the vehicle is turned off, and is energized when the ignition is turned on,
A storage unit (16) for storing power supplied from the battery;
A storage unit (30) in which vehicle information related to control and travel of the vehicle is stored;
An ignition detection unit (18) for detecting the on / off state of the ignition;
A battery detection unit (17) for detecting a state of power supplied from the battery via the constant connection line;
A control unit (15) which is driven by the power supplied from the battery, writes the vehicle information to the storage unit, and reads the vehicle information from the storage unit;
The control unit
When electric power is supplied from the battery via the constant connection line by the detection of the battery detection unit, when the ignition is turned off from the on state by the detection of the ignition detection unit, a predetermined one of the vehicle information is selected. Write end information to the storage unit;
When power is not supplied from the battery via the constant connection line due to detection by the battery detection unit and power is supplied via the operation connection line, the ignition is turned on by detection by the ignition detection unit When the power supply is turned off, division processing in which the processing of writing the end information is divided into a plurality of divisions is sequentially performed over a period in which the storage unit can be driven by the power supplied from the storage unit.
The control apparatus for vehicles which writes a part of information on end information into the storage part in each division processing.
瞬断を防止する瞬断防止部(16)をさらに含み、
前記蓄電部は、前記瞬断防止部を構成し、
前記瞬断防止部は、前記バッテリから供給される電力が瞬断した場合、前記蓄電部の電力を前記制御部に供給する請求項1に記載の車両用制御装置。
It further includes an instantaneous interruption prevention unit (16) for preventing an instantaneous interruption,
The power storage unit constitutes the instantaneous interruption prevention unit,
The control apparatus for a vehicle according to claim 1, wherein the momentary loss prevention unit supplies the power of the power storage unit to the control unit when the power supplied from the battery is momentarily interrupted.
前記分割処理では、前記終了情報の一部を前記記憶部に書き込みむとともに、書き込みが完了したことを示す成功情報も書き込む請求項1または2に記載の車両用制御装置。   The vehicle control device according to claim 1 or 2, wherein in the division processing, a part of the end information is written in the storage unit, and success information indicating that the writing is completed is also written. 前記記憶部は、揮発性メモリ(3)と不揮発性メモリ(32)とを有し、
前記制御部は、
前記バッテリから前記常時接続線を介して電力が供給されている場合、前記イグニッションがオンからオフになったとき、前記終了情報を前記揮発性メモリに書き込み、
前記バッテリから前記常時接続線を介して電力が供給されておらず前記作動接続線を介して電力が供給されている場合、前記イグニッションがオンからオフになったときには、前記蓄電部から供給される電力で駆動できる期間にわたって、前記分割処理によって前記不揮発性メモリに前記終了情報を書き込む請求項1〜3のいずれか1つに記載の車両用制御装置。
Wherein the storage unit, and a volatile memory (3 1) and non-volatile memory (32),
The control unit
If the power through the constant connection line from the battery is supplied, when the ignition is turned off from on, writes the end information before Ki揮-volatile memory,
When the power is not supplied from the battery via the permanent connection line and the power is supplied via the operation connection line, the power is supplied from the storage unit when the ignition is turned off from on The vehicle control device according to any one of claims 1 to 3, wherein the end information is written to the non-volatile memory by the division process during a period in which power can be driven.
前記分割処理によって書き込まれる前記終了情報の順番は、設定される優先度が高い順番である請求項1〜4のいずれか1つに記載の車両用制御装置。   The vehicle control device according to any one of claims 1 to 4, wherein the order of the end information written by the division process is an order of high priority to be set.
JP2016005472A 2016-01-14 2016-01-14 Vehicle control device Expired - Fee Related JP6524925B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016005472A JP6524925B2 (en) 2016-01-14 2016-01-14 Vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016005472A JP6524925B2 (en) 2016-01-14 2016-01-14 Vehicle control device

Publications (2)

Publication Number Publication Date
JP2017124757A JP2017124757A (en) 2017-07-20
JP6524925B2 true JP6524925B2 (en) 2019-06-05

Family

ID=59365452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016005472A Expired - Fee Related JP6524925B2 (en) 2016-01-14 2016-01-14 Vehicle control device

Country Status (1)

Country Link
JP (1) JP6524925B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3520615B2 (en) * 1995-08-23 2004-04-19 トヨタ自動車株式会社 Vehicle data recording device
JP4187085B2 (en) * 2001-08-24 2008-11-26 三菱電機株式会社 Vehicle occupant protection device
JP3852347B2 (en) * 2002-03-04 2006-11-29 日産自動車株式会社 Vehicle information recording method and apparatus
JP2005263134A (en) * 2004-03-22 2005-09-29 Calsonic Kansei Corp Meter cluster for automobile
JP3199497U (en) * 2015-06-15 2015-08-27 照芳 古川 In-vehicle electrical equipment power supply control device

Also Published As

Publication number Publication date
JP2017124757A (en) 2017-07-20

Similar Documents

Publication Publication Date Title
US8209078B2 (en) Electronic control unit and vehicle control system
JP6011162B2 (en) Electronic control unit
JP5962697B2 (en) Electronic control unit
JP2009255742A (en) Battery state determination device
JP2012241645A (en) Electronic control apparatus for vehicle
JP2015217911A (en) Electronic control apparatus
JP6183229B2 (en) Electronic control unit
JP5598447B2 (en) Starter control device
US9989565B2 (en) Vehicle control apparatus
JP6524925B2 (en) Vehicle control device
US10120760B2 (en) Vehicle infotainment system
JP2002323902A (en) Electronic controller
JP2013151220A (en) On-vehicle control device
US20050177768A1 (en) Update detection device and update detection program
JP6172040B2 (en) Electronic control unit
US20100251033A1 (en) Method for Operating an Electronic Device
JP3662409B2 (en) Power supply monitoring circuit and power supply monitoring method thereof
CN111042932A (en) Method and device for obtaining downtime and electronic control unit
JP5934456B2 (en) Vehicle control apparatus and vehicle control system
JP5516509B2 (en) Program writing system
JP2011174421A (en) Engine starting control device
JP5959238B2 (en) Vehicle control apparatus and vehicle control method
JP2018136777A (en) Control device
JP2020156222A (en) Power supply controller of in-vehicle camera module
JPS6132438Y2 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180409

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190322

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: 20190409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190422

R151 Written notification of patent or utility model registration

Ref document number: 6524925

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees