JP5997740B2 - Online update method for in-vehicle devices - Google Patents

Online update method for in-vehicle devices Download PDF

Info

Publication number
JP5997740B2
JP5997740B2 JP2014188455A JP2014188455A JP5997740B2 JP 5997740 B2 JP5997740 B2 JP 5997740B2 JP 2014188455 A JP2014188455 A JP 2014188455A JP 2014188455 A JP2014188455 A JP 2014188455A JP 5997740 B2 JP5997740 B2 JP 5997740B2
Authority
JP
Japan
Prior art keywords
update
vehicle
program
state
vehicle state
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.)
Active
Application number
JP2014188455A
Other languages
Japanese (ja)
Other versions
JP2015037938A (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.)
Faurecia Clarion Electronics Co Ltd
Original Assignee
Clarion Co Ltd
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 Clarion Co Ltd filed Critical Clarion Co Ltd
Priority to JP2014188455A priority Critical patent/JP5997740B2/en
Publication of JP2015037938A publication Critical patent/JP2015037938A/en
Application granted granted Critical
Publication of JP5997740B2 publication Critical patent/JP5997740B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、車載機のオンライン更新方法に関する。   The present invention relates to an on-line device online update method.

従来の、ソフトウェアのオンライン更新機能を持たない車載機では、市場に出てしまうと、ソフトウェアの機能更新や不具合修正は困難であった。具体的には、従来の車載機の機能更新は、更新用のCDやSDメモリカードを販売、配布するため、ユーザ登録をされていないユーザや中古車を利用している人には行き渡らないという課題があった。また、郵送による更新の通知や、CDやSDメモリカード配送のため時間がかかっていた。   Conventional in-vehicle devices that do not have an on-line software update function are difficult to update software functions and correct defects once they are on the market. Specifically, the function update of the conventional in-vehicle device sells and distributes update CDs and SD memory cards, so it does not reach users who are not registered or who are using a used car There was a problem. Also, it took time to notify us of updates by mail and to deliver CDs and SD memory cards.

これらの課題を解決する方法として、ネットワークを介してプログラムをダウンロードしてプログラムの更新を行うオンライン更新と呼ばれる方法がある。例えば、特開2003−122575号公報(特許文献1)にあるようなオンライン更新の仕組みを利用すると、オンライン更新機能を備えた車載機の更新は、ネットワークを介してネットワークに繋がった全ての車載機に通知できる。さらに、通知を受け取った車載機のユーザが更新の要求をすれば即座に更新を開始でき通知や配送に時間がかからない。この様にプログラムおよびデータをダウンロードして更新するオンライン更新機能を備えた車載機では、プログラムとデータの更新を行う時間や場所を選ばずにすみ、更新が容易になる。   As a method for solving these problems, there is a method called online update in which a program is downloaded via a network and the program is updated. For example, when an online update mechanism such as that disclosed in Japanese Patent Application Laid-Open No. 2003-122575 (Patent Document 1) is used, all on-vehicle devices connected to the network via the network are updated by the on-vehicle device having the online update function. Can be notified. Furthermore, if the user of the in-vehicle device that has received the notification requests an update, the update can be started immediately and the notification and delivery do not take time. Thus, in-vehicle devices having an online update function for downloading and updating programs and data can be easily updated without having to select the time and place for updating programs and data.

特開2003−122575号公報(段落0002〜0011)JP 2003-122575 A (paragraphs 0002 to 0011)

特許文献1には、ファームウェア・アプリケーションをダウンロードして更新する仕組みが記載されている。特許文献1の様なオンライン更新機能を車載機に備えると、時間や場所を選ばず、更新が容易になる。しかし、更新にかかる車載機の再起動など、車載機が本来の機能を果たせない期間が増え、ユーザを待たせてしまう機会が多くなる。   Patent Document 1 describes a mechanism for downloading and updating a firmware application. If an on-vehicle device is equipped with an online update function such as that of Patent Document 1, the update is facilitated regardless of time and place. However, the period during which the in-vehicle device cannot perform its original function, such as restart of the in-vehicle device related to the update, increases, and the opportunity for waiting for the user increases.

例えば、起動前に起動対象のファームウェアのチェックサムなどの検証をすると、その検証期間中はユーザにサービスを提供するプログラムは起動せずユーザを待たせてしまう。さらに、検証の後に更新を始めると、更新期間中もユーザはその処理の完了を待たなければならない。   For example, if the checksum of the firmware to be activated is verified before activation, the program that provides the service to the user is not activated during the verification period, and the user is kept waiting. Furthermore, when updating is started after verification, the user must wait for the completion of the processing even during the updating period.

また、車載機に供給される電力は不安定である。ダウンロードや更新中に電力の供給が停止した場合、不正なデータが残るため、起動処理時などに、そのチェックや復旧のための処理が必要となりユーザを待たせる期間が増える。   Moreover, the electric power supplied to the vehicle-mounted device is unstable. If the supply of power is stopped during download or update, invalid data remains, so that a check and recovery process is required during the startup process, and the period of waiting for the user increases.

大容量の記憶装置は、書込単位が大きく、その書込に失敗するとペナルティが大きい。例えば、ハードディスクでは、512バイトから4Kバイトの単位でデータを取り扱う。フラッシュメモリの様な不揮発メモリでは、その単位は年々大きくなる傾向にある。特に多値記憶をするフラッシュメモリでは、多値記憶をするメモリセルを複数のアドレスで共有しているため、一つのアドレスの書込単位ブロックへの書込失敗が他のブロックのデータを破壊してしまう場合がある。このため、書込失敗は多くのデータを失う事になる。例えば、ダウンロードデータの書き込みに失敗し、128Kバイトのブロックのデータを失うと、64Kbpsの回線では、少なくとも16秒の再送処理が必要となる。   A large-capacity storage device has a large writing unit, and if the writing fails, the penalty is large. For example, a hard disk handles data in units of 512 bytes to 4 Kbytes. In a non-volatile memory such as a flash memory, the unit tends to increase year by year. Especially in a flash memory that stores multiple values, memory cells that store multiple values are shared by multiple addresses, so a write failure to a write unit block at one address destroys data in another block. May end up. For this reason, a write failure results in a loss of a lot of data. For example, if writing of download data fails and data of a 128 Kbyte block is lost, a retransmission process of at least 16 seconds is required on a 64 Kbps line.

また、動作中のプログラムが利用しているデータやプログラムの更新などをする場合は、車載機の再起動を必要とする場合がある。   In addition, when updating data used by an operating program or a program, the vehicle-mounted device may need to be restarted.

これは、更新によって動作中のプログラムと、更新対象の記憶装置内のプログラムやデータの間で不整合が発生するためである。この再起動の必要な更新処理を、ダウンロードや更新の前処理が完了した直後に実行すると、いったん車載機を停止させてしまうため、車載機の提供すべきサービスを提供できない期間ができてしまう。起動時に再起動の必要な更新処理を実行する方法もある。しかし、この方法は、車載機のサービスを提供するプログラムが起動するまでの時間が長くなり、ユーザを待たせてしまう。   This is because inconsistency occurs between the program being operated by the update and the program or data in the storage device to be updated. If this update process that needs to be restarted is executed immediately after the download or update pre-processing is completed, the vehicle-mounted device is temporarily stopped, and a period during which the service that the vehicle-mounted device cannot provide cannot be provided. There is also a method of executing an update process that needs to be restarted at startup. However, this method requires a long time until the program that provides the service of the in-vehicle device is activated, and makes the user wait.

そこで、本明細書では、ユーザを待たせず、電源電圧の安定している期間を選択して、着実に更新が進む仕組みが開示される。   Therefore, the present specification discloses a mechanism in which the update proceeds steadily by selecting a period during which the power supply voltage is stable without waiting for the user.

本明細書で開示される一例は、以下に説明するダウンロードまたは更新処理の中断と再開の制御である。すなわち、電源の不安定な期間の到来を予測し、ダウンロードおよび更新処理を中断する。そして、電源の安定な期間の継続が予測できるタイミングで中断した処理を再開することによってダウンロードおよび更新処理を電源が安定している期間に行う。   One example disclosed in this specification is control of suspension and resumption of download or update processing described below. That is, the arrival of an unstable period of the power supply is predicted, and the download and update processing is interrupted. Then, the download and update processing are performed during the period when the power source is stable by resuming the processing interrupted at the timing when the continuation of the stable period of the power source can be predicted.

車の電源の状態は、エンジンが動いておらず、わずかな電流で動作するセキュリティ装置や学習の必要な車載機、ECU(Electronic Control Unit)のみに通電するACC_OFF状態、走行に直接必要の無いオーディオなどのアクセサリ機器に通電するACC_ON状態、エンジンを始動させるため補助モータに通電しているSTART状態、エンジンが動き発電機から給電されバッテリを充電しているON状態に分類される。   The state of the car's power supply is that the engine is not running, a security device that operates with a slight current, an in-vehicle device that requires learning, an ACC_OFF state that only energizes the ECU (Electronic Control Unit), audio that is not directly required for driving The ACC_ON state in which the accessory device is energized, the START state in which the auxiliary motor is energized to start the engine, and the ON state in which the engine is moved from the generator and charged with the battery are classified.

なお、ACCとは、エンジンキーや、エンジンスタートボタンの状態で、ON/OFFが制御される電源をさす。なお、エンジンキーや、エンジンスタートボタンの状態に係わらず電力供給する電源として、+Bと呼ばれる電源がある。   In addition, ACC means the power supply by which ON / OFF is controlled by the state of an engine key or an engine start button. Note that there is a power source called + B as a power source for supplying power regardless of the state of the engine key or the engine start button.

これら4つの状態のうち、車載機の電源が不安定となる期間は、エンジンを始動させる補助モータが回転するため電源電圧が低下するSTART状態の期間である。電圧低下予測手段によってこの期間を予測し、中断再開のタイミングを決定する。具体的には、走行中と停車後のACC_ON、ACC_OFF期間中を電源が安定な期間と判断し、車速がゼロで制動用ブレーキが作動していることを検出し、エンジンを始動させるSTART状態に遷移することを予測する。   Among these four states, the period during which the power supply of the in-vehicle device is unstable is a period of the START state in which the power supply voltage decreases because the auxiliary motor that starts the engine rotates. This period is predicted by the voltage drop prediction means, and the timing for restarting the interruption is determined. Specifically, the ACC_ON and ACC_OFF periods after running and stopping are determined as periods when the power source is stable, detects that the vehicle speed is zero and the braking brake is operating, and enters the START state to start the engine. Predict the transition.

ダウンロードを走行中と停車後のACC_ON、ACC_OFF期間中に行い、停車時に制動用ブレーキの作動を検出すると、ダウンロードを中断し、電源電圧が低下するSTART期間に入る前に、処理中の書き込みを完了する。ダウンロードを完了すると更新処理を開始する。   Downloading is performed during driving and during ACC_ON and ACC_OFF periods after stopping, and if braking brake operation is detected when the vehicle is stopped, downloading is interrupted and writing during processing is completed before entering the START period during which the power supply voltage drops To do. When the download is complete, the update process starts.

再起動が必要な更新処理の場合は、ダウンロードプログラム・データを、不揮発性の記憶装置に書き込む更新プログラムを実行するための再起動を、停車後のACC_OFF期間中に行い、制動用ブレーキの作動を検出すると、更新を中断し、電源電圧が低下するSTART期間に入る前に、処理中の書き込みを完了する。START後のON期間では、通常プログラムを実行し、再び停車後のACC_OFF期間に入った時点、更新プログラムを起動し、更新処理を再開する。   In the case of an update process that requires a restart, a restart for executing an update program that writes the downloaded program data to the nonvolatile storage device is performed during the ACC_OFF period after the vehicle is stopped, and the brake for braking is operated. If detected, the update is interrupted, and the write in process is completed before the START period in which the power supply voltage decreases. In the ON period after START, the normal program is executed, and when the ACC_OFF period after stopping again is entered, the update program is started and the update process is resumed.

本発明によれば、ユーザを待たせず、電源電圧の安定している期間を選択して、着実に更新が進む仕組みを提供することができる。   According to the present invention, it is possible to provide a mechanism in which the update proceeds steadily by selecting a period during which the power supply voltage is stable without waiting for the user.

上記した以外の課題、構成および効果は、以下の実施形態の説明により明らかにされる。   Problems, configurations, and effects other than those described above will become apparent from the following description of embodiments.

車載機のオンライン更新システムの構成図の例である。It is an example of the block diagram of the online update system of a vehicle equipment. 車載機の電源状態遷移図の例である。It is an example of the power supply state transition diagram of a vehicle equipment. 車載機の電源状態と供給電圧の説明図の例である。It is an example of the explanatory view of the power supply state of an in-vehicle machine, and supply voltage. 更新処理部の動作を説明するフローチャートの例である。It is an example of the flowchart explaining operation | movement of an update process part. 更新進捗データ構成の説明図の例である。It is an example of explanatory drawing of an update progress data structure. 中断再開検出部の動作を説明するフローチャートの例である。It is an example of the flowchart explaining operation | movement of the interruption resumption detection part. 再起動処理を含む車載機のオンライン更新システムの構成図の例である。It is an example of the block diagram of the online update system of the vehicle equipment including a restart process. 再起動処理を含む更新処理部の動作を説明するフローチャートの例である。It is an example of the flowchart explaining operation | movement of the update process part containing a restart process. 再起動更新を含む更新処理を考慮した更新進捗データ構成の説明図の例である。It is an example of an explanatory view of an update progress data configuration in consideration of an update process including a restart update. 車載機の電源状態と供給電圧状況と車載機の負荷変動の説明図の例である。It is an example of the explanatory view of the power supply state of an in-vehicle device, a supply voltage situation, and load variation of an in-vehicle device. プロセッサ負荷を考慮した中断再開検出部の動作を説明するフローチャートの例である。It is an example of the flowchart explaining operation | movement of the interruption resumption detection part in consideration of processor load.

以下、実施例を図面を用いて説明する。   Hereinafter, examples will be described with reference to the drawings.

本実施例では、車載機のオンライン更新を行うシステムの例を説明する。   In this embodiment, an example of a system that performs online update of an in-vehicle device will be described.

図1は、本実施例のオンライン更新システムの構成図の例である。   FIG. 1 is an example of a configuration diagram of the online update system of the present embodiment.

本実施例のオンライン更新システムは、車載機100、車載機100を搭載する車101、車載機の更新プログラムを配布するセンタ端末102、センタ端末102と車載機100をつなぐネットワーク103から構成される。   The online update system of the present embodiment includes an in-vehicle device 100, a car 101 in which the in-vehicle device 100 is mounted, a center terminal 102 that distributes an in-vehicle device update program, and a network 103 that connects the center terminal 102 and the in-vehicle device 100.

車載機100は、プロセッサ104、メモリ105、不揮発性の記憶装置106、通信により他端末とデータの送受信を行う通信インタフェース107、視聴者やオペレータ等との入出力を司る入出力装置108(ディスプレイ、スピーカ、タッチパネル、キー等)、車の状態取得インタフェース109、電源インタフェース110を含み、これらはバス等の通信線111により接続される。   The in-vehicle device 100 includes a processor 104, a memory 105, a non-volatile storage device 106, a communication interface 107 that transmits / receives data to / from other terminals through communication, and an input / output device 108 that controls input / output with a viewer, an operator, and the like. Speaker, touch panel, key, etc.), vehicle state acquisition interface 109, and power interface 110, which are connected by a communication line 111 such as a bus.

プロセッサ104は、記憶装置106に格納されるプログラム112をメモリ105に読み込み、実行することにより、種々の処理を行う。これらのプログラムやデータは、予め記憶装置106に格納しておいてもよいし、CD−ROM等の記憶媒体から入力してもよいし、ネットワーク経由で他の装置からダウンロードしてもよい。又、該プログラムにより実現される機能を、専用のハードウェアにより実現してもよい。   The processor 104 performs various processes by reading the program 112 stored in the storage device 106 into the memory 105 and executing it. These programs and data may be stored in the storage device 106 in advance, may be input from a storage medium such as a CD-ROM, or may be downloaded from another device via a network. The functions realized by the program may be realized by dedicated hardware.

不揮発性の記憶装置106は、起動フラグ113、サービスプログラムA(以下、プログラムAという)格納領域アドレス114、サービスプログラムB(以下、プログラムBという)格納領域アドレス115、更新フラグ116、更新進捗117、中断フラグ118、プログラムA119、プログラムB120、更新プログラム121を格納する。記憶装置106は、固定的なROM用途のフラッシュメモリ、ストレージ用途のフラッシュメモリのみでは無く、持ち運び可能なメモリ(SDメモリ/USBメモリ)、持ち運び可能なHDD、CD、DVD、BDディスクなどを、車載機100が起動時に格納領域の中から単一または複数の記憶域を選択して参照可能としてよい。つまり、記憶領域は複数の記憶装置からなっていてもよい。   The nonvolatile storage device 106 includes an activation flag 113, a service program A (hereinafter referred to as program A) storage area address 114, a service program B (hereinafter referred to as program B) storage area address 115, an update flag 116, an update progress 117, The interruption flag 118, program A119, program B120, and update program 121 are stored. The storage device 106 includes not only fixed ROM flash memory and storage flash memory, but also portable memory (SD memory / USB memory), portable HDD, CD, DVD, BD disk, etc. The machine 100 may select and refer to a single storage area or a plurality of storage areas from the storage area at the time of startup. That is, the storage area may be composed of a plurality of storage devices.

以下に説明する機能は、プロセッサ104が上記各プログラムを実行することにより実現されるが、説明の便宜上、各プログラムを実行主体として説明する。   The functions described below are realized by the processor 104 executing the above programs, but for convenience of description, each program will be described as an execution subject.

起動フラグ113は、起動時にプロセッサ104が読み込むプログラムと更新対象となるプログラムを指示する。具体的には、起動時に関して利用する場合、プロセッサ104が、プログラムA119を読み込んで実行するか、プログラムB120を読み込んで実行するかを指示している。また、本実施例の更新方法は起動に利用しないプログラムの格納されている領域を書き換え新しくする。つまり、起動フラグ113が、プログラムA119を指していれば、プログラムB120の格納されている領域を書き換え更新し、プログラムB120を指していれば、プログラムA119の格納されている領域を書き換え更新する。   The activation flag 113 indicates a program to be read by the processor 104 at startup and a program to be updated. Specifically, when used for startup, the processor 104 instructs whether to read and execute the program A119 or to read and execute the program B120. Also, the update method of this embodiment rewrites and renews the area where programs that are not used for activation are stored. That is, if the activation flag 113 indicates the program A119, the area where the program B120 is stored is rewritten and updated, and if the activation flag 113 indicates the program B120, the area where the program A119 is stored is updated and updated.

プログラムA格納領域アドレス114は、プログラムA119を格納するアドレスを示す。車載機100が起動するとき、起動フラグ113が、プログラムA119を指している場合、プロセッサ104は、プログラムA格納領域アドレス114の指しているアドレスからプログラムA119を読み出し、メモリ105に格納して、実行する。また、車載機100の更新をするとき、起動フラグ113が、プログラムB120を指している場合、プロセッサ104によって実行される、更新プログラム121は、プログラムA格納領域アドレス114の指しているアドレスのプログラムおよびデータを書き換えて更新する。   The program A storage area address 114 indicates an address where the program A 119 is stored. When the in-vehicle device 100 is activated, if the activation flag 113 indicates the program A 119, the processor 104 reads the program A 119 from the address indicated by the program A storage area address 114, stores it in the memory 105, and executes it. To do. When the in-vehicle device 100 is updated, if the activation flag 113 indicates the program B120, the update program 121 executed by the processor 104 is the program at the address indicated by the program A storage area address 114, and Rewrite and update data.

プログラムB格納領域アドレス115は、プログラムB120を格納するアドレスを示す。車載機100が起動するとき、起動フラグ113が、プログラムB120を指している場合、プロセッサ104は、プログラムB格納領域アドレス115の指しているアドレスからプログラムB120を読み出し、メモリ105に格納して、実行する。また、車載機100の更新をするとき、起動フラグ113が、プログラムA119を指している場合、プロセッサ104によって実行される、更新プログラム121は、プログラムB格納領域アドレス115の指しているアドレスのプログラムおよびデータを書き換えて更新する。   The program B storage area address 115 indicates an address for storing the program B120. When the in-vehicle device 100 is activated, if the activation flag 113 indicates the program B120, the processor 104 reads the program B120 from the address indicated by the program B storage area address 115, stores it in the memory 105, and executes it. To do. Further, when the in-vehicle device 100 is updated, if the activation flag 113 indicates the program A 119, the update program 121 executed by the processor 104 is the program at the address indicated by the program B storage area address 115, and Rewrite and update data.

更新フラグ116は、更新中か更新完了の更新状態を示す。この更新フラグ116がオンになっている場合、車載機100は更新中である事を表し、オフになっている場合は、更新が完了していることを表す。車載機100は、起動するとこのフラグを確認する。この更新フラグ116がオンになっていれば、前回、車載機100が停止したときに、更新処理を中断し継続して処理すべき更新処理が残っていることが分かる。つまり、この更新フラグ116を確認することによって、中断した更新の有無を判断できる。   The update flag 116 indicates an update state during update or update completion. When the update flag 116 is turned on, it indicates that the vehicle-mounted device 100 is being updated, and when it is turned off, it indicates that the update has been completed. The vehicle-mounted device 100 confirms this flag when activated. If the update flag 116 is turned on, it can be seen that when the vehicle-mounted device 100 was stopped last time, the update process is interrupted and there remains an update process to be processed. That is, by checking the update flag 116, it is possible to determine whether or not there is an interrupted update.

更新進捗117は、オンライン更新システムの更新処理の進捗の記録である。
この更新進捗117に更新プログラム121がその処理の進捗を記録しながら処理を進める。このため、更新処理が中断しても、更新進捗117を参照すれば更新処理を継続して再開できる。本実施例の更新プログラム121の更新処理部122の処理は、大きくダウンロード処理とプログラム更新処理の二つに分かれる。これに合わせ、更新進捗117は、図5の更新進捗データ構成の説明図の例に示す様に、実行中更新処理117−10、ダウンロード処理進捗117−20、プログラム更新処理進捗117−30の情報を記録する。
The update progress 117 is a record of the progress of the update process of the online update system.
The update program 121 proceeds with the update progress 117 while recording the progress of the process. For this reason, even if the update process is interrupted, the update process can be resumed by referring to the update progress 117. The processing of the update processing unit 122 of the update program 121 of the present embodiment is roughly divided into two processes: download processing and program update processing. Accordingly, as shown in the example of the update progress data configuration in FIG. 5, the update progress 117 is information on the in-execution update process 117-10, the download process progress 117-20, and the program update process progress 117-30. Record.

実行中更新処理117−10は、実行中の更新処理がダウンロード処理であるか、プログラム更新処理であるかを示す。   The in-execution update process 117-10 indicates whether the update process being executed is a download process or a program update process.

ダウンロード処理進捗117−20は、ダウンロードサーバ117−21、ダウンロードファイル117−22、ダウンロードファイル書込完了バイト数117−23の情報を含む。ダウンロードサーバ117−21は、更新ファイルを配信しているサーバであるセンタ端末102のアドレスを記録する。ダウンロードファイル117−22は、センタ端末102より配信さ、車載機100がダウンロードするダウンロードファイル情報を記録する。ダウンロードファイル書込完了バイト数117−23は、車載機100がダウンロードファイル117−22の示しているファイルをダウンロードし、記憶装置106に書込完了したバイト数を記録する。   The download process progress 117-20 includes information of a download server 117-21, a download file 117-22, and a download file write completion byte count 117-23. The download server 117-21 records the address of the center terminal 102 that is a server that distributes the update file. The download file 117-22 is distributed from the center terminal 102 and records download file information downloaded by the in-vehicle device 100. The download file write completion byte number 117-23 records the number of bytes that the in-vehicle device 100 has downloaded the file indicated by the download file 117-22 and written to the storage device 106.

プログラム更新処理進捗117−30は、プログラム更新ファイル117−31と、プログラム更新ファイル書込完了バイト数117−32を含む。プログラム更新ファイル117−31は、実行可能プログラムとして、記憶装置106に書き込む処理対象ファイルを記録する。プログラム更新ファイル書込完了バイト数117−32は、ダウンロードファイルから更新データを取り出し、実行可能プログラムとして記憶装置106に書込完了したバイト数を記録する。   The program update process progress 117-30 includes a program update file 117-31 and a program update file write completion byte count 117-32. The program update file 117-31 records a processing target file to be written in the storage device 106 as an executable program. As the program update file write completion byte number 117-32, update data is extracted from the download file, and the number of bytes written to the storage device 106 as an executable program is recorded.

中断フラグ118は、更新プログラム121の中断再開検出部123から、更新処理部への中断、再開指示を記録する。中断フラグ118がオンになっている場合は、中断再開検出部123から更新処理部122に中断指示が出ている事を示す。中断フラグ118がオフになっている場合は、中断再開検出部123から更新処理部122に再開指示が出ている事を示す。   The interruption flag 118 records an interruption / resumption instruction from the interruption / resumption detection unit 123 of the update program 121 to the update processing unit. When the interruption flag 118 is on, it indicates that an interruption instruction has been issued from the interruption / resumption detection unit 123 to the update processing unit 122. When the interruption flag 118 is turned off, it indicates that a resumption instruction is issued from the interruption resumption detection unit 123 to the update processing unit 122.

プログラムA119は、車載機100のファームウェア、OS、ドライバ、アプリケーションプログラムなど車載機100の機能を実現するプログラムである。車載機100の起動時に、起動フラグ113がプログラムAを指している場合、プログラムA119が実行される。また、車載機100を更新するとき、起動フラグ113がプログラムBを指している場合、更新プログラム121は、プログラムA119を更新する。   The program A119 is a program that realizes the functions of the in-vehicle device 100 such as firmware, OS, driver, and application program of the in-vehicle device 100. When the in-vehicle device 100 is activated, if the activation flag 113 indicates the program A, the program A119 is executed. Further, when the in-vehicle device 100 is updated, when the activation flag 113 indicates the program B, the update program 121 updates the program A119.

プログラムB120は、車載機100のファームウェア、OS、ドライバ、アプリケーションプログラムなど車載機100の機能を実現するプログラムである。車載機100の起動時に、起動フラグ113がプログラムBを指している場合、プログラムB120が実行される。また、車載機100を更新するとき、起動フラグ113がプログラムAを指している場合、更新プログラム121は、プログラムB120を更新する。   The program B120 is a program that realizes functions of the in-vehicle device 100 such as firmware, OS, driver, and application program of the in-vehicle device 100. When the in-vehicle device 100 is activated, if the activation flag 113 indicates the program B, the program B120 is executed. When updating the vehicle-mounted device 100, if the activation flag 113 indicates the program A, the update program 121 updates the program B120.

更新プログラム121は、車載機100の更新を行うプログラムであり、更新処理部122と中断再開検出部123を含む。   The update program 121 is a program for updating the in-vehicle device 100 and includes an update processing unit 122 and an interruption / resumption detection unit 123.

更新処理部122の動作は、図4のフローチャートに従い、通信インタフェース107、ネットワーク103を介して、センタ端末102より更新ファイルをダウンロードして、更新プログラムを記憶装置106に書き込む。また、更新処理部122は、記憶装置106に記録された情報を参照しながら、プログラムA119または、プログラムB120を更新する。この更新処理部122は、中断再開検出部123によって更新される、中断フラグ118を確認しながら処理を進め、中断フラグ118がオンになっている場合、処理中のデータの書き込みと、更新進捗117の更新を完了してから処理を中断する。これによって、電源電圧の不安定な期間や、ユーザを待たせてしまう期間には、更新処理を行わない制御が出来る。つぎに、車載機100の動作中に、中断フラグ118がオフになった場合、更新進捗117に記録された処理の続きを再開する。車載機100が再起動した場合も、同様に更新進捗117を参照して、中断した処理の続きを再開する。この様に、本実施例のオンライン更新システムは、中断によって書込中のデータを失う事の無いように中断と再開を繰り返しながら更新処理をすすめる。   According to the operation of the update processing unit 122, the update file is downloaded from the center terminal 102 via the communication interface 107 and the network 103 according to the flowchart of FIG. Further, the update processing unit 122 updates the program A 119 or the program B 120 while referring to information recorded in the storage device 106. The update processing unit 122 proceeds with processing while confirming the interruption flag 118 that is updated by the interruption / resumption detecting unit 123. When the interruption flag 118 is turned on, writing of data being processed and update progress 117 are performed. After completing the update, the process is interrupted. As a result, it is possible to perform control without performing update processing during a period when the power supply voltage is unstable or during a period where the user waits. Next, when the interruption flag 118 is turned off during the operation of the vehicle-mounted device 100, the continuation of the process recorded in the update progress 117 is resumed. Even when the in-vehicle device 100 is restarted, the update progress 117 is similarly referred to and the continuation of the interrupted process is resumed. As described above, the online update system according to the present embodiment proceeds with the update process while repeating the interruption and the restart so that the data being written is not lost due to the interruption.

中断再開検出部123は、図6のフローチャートに従い、車の状態取得インタフェース109から制動用ブレーキ状態と、車速および/またはパーキング(駐車用)ブレーキ状態と、を取得し、電源インタフェース110から電源状態を取得する。取得結果から、供給電力が不安定になる可能性の高い状態を検出すると中断フラグ118をオンにし、供給電力が安定である可能性が高く、ユーザを待たせる可能性の低い状態を検出すると中断フラグ118をオフにする。   The suspension / resumption detecting unit 123 acquires a braking brake state and a vehicle speed and / or a parking (parking) brake state from the vehicle state acquisition interface 109 according to the flowchart of FIG. get. From the acquisition result, the interruption flag 118 is turned on when a state where the supply power is likely to become unstable is detected, and the interruption is detected when a state where the supply power is likely to be stable and the possibility of waiting the user is low is detected. The flag 118 is turned off.

通信インタフェース107は、車載機外のサーバ、他端末と通信するためのインタフェースである。通信インタフェース107は、無線通信インタフェースであっても、有線通信インタフェースであってもよい。状況によって両方利用しても良い。例えば、停車中は有線通信インタフェースを利用し、走行中は無線通信インタフェースを利用する。一般に有線通信インタフェースは、無線通信インタフェースより高速である。このため、有線通信インタフェースを利用すると、ダウンロード時間を短縮出来る。   The communication interface 107 is an interface for communicating with a server outside the in-vehicle device and other terminals. The communication interface 107 may be a wireless communication interface or a wired communication interface. You may use both depending on the situation. For example, a wired communication interface is used while the vehicle is stopped, and a wireless communication interface is used while traveling. In general, a wired communication interface is faster than a wireless communication interface. For this reason, the download time can be shortened by using the wired communication interface.

入出力装置108は、車載機のユーザ、視聴者やオペレータからの入力を受け取る、キー、タッチパネル、トラックボールなどのポインティングデバイスと、ユーザ、視聴者、オペレータに対する出力をするディスプレイ、スピーカ、LED等のライトなどを含む。入出力装置108によって、車載機100のユーザは、更新プログラム121を動作させるなどの指示を行え、更新プログラム121の更新処理の進捗を確認することが出来る。   The input / output device 108 is a pointing device such as a key, a touch panel, or a trackball that receives input from the user, viewer, or operator of the in-vehicle device, and a display that outputs to the user, viewer, operator, speaker, LED, etc. Including lights. With the input / output device 108, the user of the in-vehicle device 100 can give an instruction to operate the update program 121 and the like, and can confirm the progress of the update process of the update program 121.

車の状態取得インタフェース109は、車101より、制動用ブレーキ状態、車速、パーキングブレーキ状態を受け取るインタフェースである。   The vehicle state acquisition interface 109 is an interface that receives a braking brake state, a vehicle speed, and a parking brake state from the vehicle 101.

電源インタフェース110は、車101より、ACCと+Bの2種類の電源信号を受けとり、車載機100に電力を供給する。
電源は、図2に示す4つの状態をとり、電源インタフェース110は、4つの状態のうちACC_OFF状態を検出する。
The power interface 110 receives two types of power signals ACC and + B from the car 101 and supplies power to the in-vehicle device 100.
The power supply takes four states shown in FIG. 2, and the power supply interface 110 detects the ACC_OFF state among the four states.

車101は、車載機100を搭載する車である。例えば、ガソリン自動車、電気自動車、ディーゼル自動車、燃料電池自動車、自動二輪車、三輪自動車、動力付自転車などがある。車101は、車載機100に電力を供給する電源を備え、ブレーキ状態、車速、パーキングブレーキ状態など車101の状態を取得し車載機100に通知する装置を備える。   A car 101 is a car on which the in-vehicle device 100 is mounted. For example, there are gasoline cars, electric cars, diesel cars, fuel cell cars, motorcycles, tricycles, powered bicycles, and the like. The vehicle 101 includes a power source that supplies power to the in-vehicle device 100, and includes a device that acquires the state of the vehicle 101 such as a brake state, a vehicle speed, and a parking brake state and notifies the in-vehicle device 100.

センタ端末102は、車載機100に更新プログラムを配信するサーバである。車載機100に対して、更新可能なプログラムの通知と、車載機100からのダウンロード要求に従って、更新ファイルの送信を行う。   The center terminal 102 is a server that distributes an update program to the in-vehicle device 100. The update file is transmitted to the in-vehicle device 100 according to the notification of the updatable program and the download request from the in-vehicle device 100.

ネットワーク103は、車載機100とセンタ端末102をつなぐネットワークである。携帯電話網、IEEE 802.11シリーズを利用した無線通信/ IEEE 802.16シリーズを利用した無線通信/ IEEE 802.15シリーズを利用した無線通信/UWB等の無線通信網、有線通信網のいずれかであっても、これらを組み合わせたネットワークであっても良い。   The network 103 is a network that connects the in-vehicle device 100 and the center terminal 102. Whether it is a mobile phone network, wireless communication using IEEE 802.11 series / wireless communication using IEEE 802.16 series / wireless communication using IEEE 802.15 series / wireless communication network such as UWB, wired communication network It may be a network that combines.

図2は、本実施例の車載機の電源状態遷移図の例である。車101より車載機100に供給される電源の状態は、ACC_OFF200、ACC_ON201、START202、ON203の4つの状態をとる。電源状態の遷移は、ACC_OFF200からACC_ON201、ACC_ON201からSTART202または、ACC_OFF200、START202からON203、ON203からACC_ON201がある。   FIG. 2 is an example of a power state transition diagram of the in-vehicle device of the present embodiment. The state of the power supplied from the car 101 to the in-vehicle device 100 takes four states: ACC_OFF200, ACC_ON201, START202, and ON203. The transition of the power state includes ACC_OFF 200 to ACC_ON 201, ACC_ON 201 to START 202, ACC_OFF 200, START 202 to ON 203, and ON 203 to ACC_ON 201.

ACC_OFF200は、車101のエンジンは停止しており、車載機100に電力は供給されない状態である。ACC_OFF200の状態では、車載機100はユーザに目的地までの経路案内などのサービスを提供しない。ACC_OFF200の状態では、車100のエンジンが停止しているため発電をしておらずバッテリの電圧である約12Vが+Bに供給される。   ACC_OFF 200 is a state in which the engine of the car 101 is stopped and power is not supplied to the in-vehicle device 100. In the state of ACC_OFF200, the in-vehicle device 100 does not provide services such as route guidance to the destination to the user. In the state of ACC_OFF200, since the engine of the vehicle 100 is stopped, power is not generated and about 12V that is the battery voltage is supplied to + B.

ACC_ON201は、車101のエンジンは停止しており、車載機100に電力が供給される状態である。ACC_ON201の状態では、車載機100はユーザにサービスを提供する。ACC_ON201の状態では、車100のエンジンが停止しているため発電しておらずバッテリの電圧である約12Vが+BとACCに供給される。   ACC_ON 201 is a state in which the engine of the car 101 is stopped and electric power is supplied to the in-vehicle device 100. In the state of ACC_ON 201, the in-vehicle device 100 provides a service to the user. In the state of ACC_ON201, since the engine of the vehicle 100 is stopped, power is not generated, and about 12V as the battery voltage is supplied to + B and ACC.

START202は、車101のエンジンをスタートさせるスタータが動くため、車載機100に供給される電力が不安定な状態である。状況によっては、ACC、+Bに供給される電源電圧は約6Vから約5Vまで低下する。   Since the starter that starts the engine of the car 101 moves in the START 202, the power supplied to the in-vehicle device 100 is unstable. Depending on the situation, the power supply voltage supplied to ACC, + B drops from about 6V to about 5V.

ON203は、車101のエンジンが動き、車載機100に電力が供給される状態である。ON203の状態では、車載機100はユーザにサービスを提供する。ON203の状態では、車100のエンジンが動いているため発電機からバッテリへの充電電圧である約13VがACC、+Bに供給される。   ON 203 is a state in which the engine of the car 101 moves and power is supplied to the in-vehicle device 100. In the state of ON 203, the in-vehicle device 100 provides a service to the user. In the state of ON 203, since the engine of the car 100 is operating, approximately 13V that is a charging voltage from the generator to the battery is supplied to ACC and + B.

ユーザが車101に乗り込み車載機100を起動するときACC_OFF200、ACC_ON201、START202、ON203と遷移する場合が多い。この場合、ACC_ON201の状態とSTART202の状態を取る期間は短い場合が多い。このため、ACC_ON201状態で、車載機100は起動し始め、起動途中で、電力の状態がSTART202で不安定になる為停止し、ON203で再び起動する場合がある。   When the user gets into the car 101 and activates the vehicle-mounted device 100, there are many cases in which the user transitions to ACC_OFF200, ACC_ON201, START202, and ON203. In this case, the period for taking the state of ACC_ON 201 and the state of START 202 is often short. For this reason, the in-vehicle device 100 starts to be activated in the ACC_ON201 state, and in the middle of the activation, the power state becomes unstable at the START 202 and may stop, and may be activated again at the ON203.

また、ユーザが車101を停車させ、車101からおりるため車載機100を停止させる時ON203、ACC_ON201、ACC_OFF200と遷移する場合が多い。この場合ACC_ON201を取る期間は短い場合が多い。しかし、ACC_ON201から取り得る遷移はACC_OFF200だけでは無くSTART202もある。ユーザがいったん止めたエンジンをスタートさせるため短時間でACC_ON201からSTART202に遷移するため、車載機100に供給される電力は不安定になる。   Further, when the user stops the vehicle 101 and is away from the vehicle 101, the vehicle often transitions to ON 203, ACC_ON 201, and ACC_OFF 200 when the vehicle-mounted device 100 is stopped. In this case, the period for taking ACC_ON 201 is often short. However, the transition that can be taken from ACC_ON 201 is not only ACC_OFF 200 but also START 202. In order to start the engine once stopped by the user, a transition is made from ACC_ON 201 to START 202 in a short time, so the power supplied to the in-vehicle device 100 becomes unstable.

ACC_OFF200の状態である期間には車載機100は所定のサービスを提供しないため、更新などの処理を行ってもユーザを待たせることがないが、更新処理中にSTART202への遷移が起こると供給される電力が不安定になり、記憶装置106への書込が正常に行えない状況が発生する課題がある。同様にACC_ON201の状態でユーザへのサービス提供と並行して更新を行う事も考えられるが、START202への遷移で、記憶装置106への書込が正常に行えず、更新が進まない課題がある。   Since the in-vehicle device 100 does not provide a predetermined service during the period of the ACC_OFF 200 state, it does not cause the user to wait even if processing such as update is performed, but is supplied when a transition to the START 202 occurs during the update processing. Therefore, there is a problem that a situation occurs in which the power to be unstable becomes unstable and writing to the storage device 106 cannot be performed normally. Similarly, updating in parallel with service provision to the user in the state of ACC_ON 201 can be considered, but there is a problem that writing to the storage device 106 cannot be performed normally and the update does not proceed at the transition to START 202. .

図3は、本実施例の車載機の電源状態と供給される電圧の説明図の例である。これは、ユーザが停車している車101に乗り込み、エンジンをスタートさせ、移動後し、停車後、エンジンを停止し車101から降りる場合の電源電圧の変化を示している。電源の状態はACC_OFF200,ACC_ON201、START202、ON203、ACC_ON201、ACC_OFF200の順に遷移する。この場合、ACC_ON301とACC_ON304の期間は短いケースが多い。   FIG. 3 is an example of an explanatory diagram of the power supply state and the supplied voltage of the vehicle-mounted device of the present embodiment. This shows a change in the power supply voltage when the user gets into the stopped vehicle 101, starts the engine, moves, stops, then stops the engine and gets off the vehicle 101. The power supply state transitions in the order of ACC_OFF200, ACC_ON201, START202, ON203, ACC_ON201, and ACC_OFF200. In this case, the period between ACC_ON 301 and ACC_ON 304 is often short.

ACC_OFF300、ACC_OFF305の期間は、ACC_OFF200の状態であり、+Bへは約12Vが供給され、ACCには供給されない。ACC_ON301、ACC_ON304の期間は、ACC_ON201の状態であり、+B、ACC共に約12Vが供給される。START302の期間は、START202の状態であり、供給される電力が不安定な期間で、+B、ACC共に約6Vから5Vが供給される。   The period of ACC_OFF300 and ACC_OFF305 is in the state of ACC_OFF200, and about 12V is supplied to + B and not supplied to ACC. The period of ACC_ON301 and ACC_ON304 is the state of ACC_ON201, and about 12V is supplied to both + B and ACC. The period of START 302 is the state of START 202, and the supplied power is unstable, and + B and ACC are supplied from about 6V to 5V.

図4は、更新処理部122の動作を説明するフローチャートの例である。更新プログラム121の更新処理部122と中断再開検出部123は、車載機100起動後、車載機100のサービスを提供するプログラムA119または、プログラムB120と並行して実行される。更新プログラム121は、通信インタフェース107、ネットワーク103を介してセンタ端末102に接続し、更新プログラムの有無を確認する。更新プログラムがあった場合、実行中更新処理117−10、ダウンロード処理進捗117−20、プログラム更新処理進捗117−30の初期値を設定し、更新フラグ116をたてて(オンにして)、更新中を示す状態にして、更新処理部122の処理をスタートさせる。   FIG. 4 is an example of a flowchart for explaining the operation of the update processing unit 122. The update processing unit 122 and the interruption / resumption detection unit 123 of the update program 121 are executed in parallel with the program A 119 or the program B 120 that provides the service of the in-vehicle device 100 after the in-vehicle device 100 is activated. The update program 121 is connected to the center terminal 102 via the communication interface 107 and the network 103 and confirms the presence or absence of the update program. If there is an update program, the initial values of the update process 117-10, download process progress 117-20, and program update process progress 117-30 are set, the update flag 116 is set (turned on), and the update program is updated. In a state indicating “inside”, the processing of the update processing unit 122 is started.

まず、ステップ401で更新フラグ116を確認し、更新フラグ116がオンになっており更新を示していればステップ402に進み、更新フラグがオフであり新しい更新がない場合は終了する。   First, in step 401, the update flag 116 is confirmed. If the update flag 116 is on and indicates an update, the process proceeds to step 402. If the update flag is off and there is no new update, the process ends.

ステップ402では、更新進捗117の実行中更新処理117−10を確認し、ダウンロード処理中であればステップ403に進み、プログラム更新処理中であればステップ408に進む。   In step 402, update processing 117-10 during execution of update progress 117 is confirmed. If download processing is in progress, the process proceeds to step 403. If program update processing is in progress, the process proceeds to step 408.

ステップ403では、中断フラグ118を確認し、中断フラグ118がオンになっており中断を指示されている場合は、中断が解除されるまで、ステップ403で中断フラグ118の確認を続ける。中断フラグ118がオフになっており中断が解除されている場合は、ステップ404に進む。   In step 403, the interruption flag 118 is checked. If the interruption flag 118 is on and an interruption is instructed, the interruption flag 118 is continuously checked in step 403 until the interruption is released. If the interruption flag 118 is off and the interruption is released, the process proceeds to step 404.

ステップ404では、更新進捗117のダウンロード進捗117−20のダウンロードサーバ117−21の示すサーバからダウンロードファイル117−22の示すファイルの1ブロックを要求して受信する。1ブロックの受信が完了するとステップ405に進む。   In Step 404, one block of the file indicated by the download file 117-22 is requested and received from the server indicated by the download server 117-21 of the download progress 117-20 of the update progress 117. When reception of one block is completed, the process proceeds to step 405.

ステップ405では、ステップ404で受信した1ブロックのデータを更新進捗117のダウンロード進捗117−20のダウンロードファイル書込完了バイト数117−23の示す記憶装置106の書込場所に書き込む。この場所は、起動フラグ113が、プログラムAを指している場合は、プログラムB120の格納されている領域で、ダウンロードファイル書込完了バイト数117−23の示すバイト数分進んだ場所である。書込が完了すると、ステップ406に進む。   In step 405, the data of one block received in step 404 is written in the write location of the storage device 106 indicated by the download progress write 117-17 of the update progress 117 and the download file write completion byte number 117-23. This location is a location advanced by the number of bytes indicated by the download file writing completion byte number 117-23 in the area where the program B 120 is stored when the activation flag 113 indicates the program A. When the writing is completed, the process proceeds to step 406.

ステップ406では、ダウンロード処理進捗117−20のダウンロードファイル書込完了バイト数117−23を更新し、中断した場合も、ダウンロードサーバ117−21の示すサーバからダウンロードファイル117−22の示すファイルのダウンロードファイル書込完了バイト数117−23分進んだ位置のデータを要求できるようにする。   In step 406, the download file write completion byte number 117-23 of the download processing progress 117-20 is updated, and the download file of the file indicated by the download file 117-22 is also downloaded from the server indicated by the download server 117-21 even when interrupted. It is possible to request data at a position advanced by the write completion byte number 117-23.

ステップ407では、ダウンロードファイル117−21の示すファイルのサイズとダウンロードファイル書込バイト数117−23を比較し、ダウンロードの完了を確認する。完了していなければ、ステップ403に戻りダウンロード処理を継続し、完了していれば実行中更新処理117−10をプログラム更新処理に変更して、ステップ408に進み、プログラム更新処理を開始する。   In step 407, the size of the file indicated by the download file 117-21 is compared with the download file write byte count 117-23 to confirm the completion of the download. If not completed, the process returns to step 403 to continue the download process. If completed, the running update process 117-10 is changed to the program update process, and the process proceeds to step 408 to start the program update process.

ステップ408では、中断フラグ118を確認し、中断フラグ118がオンになっており中断を指示されている場合は、中断が解除されるまで、ステップ408で中断フラグ118の確認を続ける。中断フラグ118がオフになっており中断が解除されている場合は、ステップ409に進む。   In step 408, the interruption flag 118 is confirmed. If the interruption flag 118 is turned on and an interruption is instructed, the confirmation of the interruption flag 118 is continued in step 408 until the interruption is released. If the interruption flag 118 is off and the interruption is released, the process proceeds to step 409.

ステップ409では、更新進捗117のプログラム更新処理進捗117−30のプログラム更新ファイル117−31の示すファイルの1ブロックから実行可能なプログラムを構築する。1ブロックの構築が完了するとステップ410に進む。   In step 409, an executable program is constructed from one block of the file indicated by the program update file 117-31 of the program update process progress 117-30 of the update progress 117. When the construction of one block is completed, the process proceeds to step 410.

ステップ410では、ステップ409で構築したプログラムの1ブロックのデータを更新進捗117のプログラム更新処理進捗117−30のプログラム更新ファイル書込完了バイト数117−32の示す記憶装置106の書込場所に書き込む。この場所は、起動フラグ113が、プログラムAを指している場合は、プログラムB120の格納されている領域で、プログラム更新ファイル書込完了バイト数117−32の示すバイト数分進んだ場所である。書込が完了すると、ステップ411に進む。   In step 410, the data of one block of the program constructed in step 409 is written in the write location of the storage device 106 indicated by the program update file write completion byte number 117-32 of the program update process progress 117-30 of the update progress 117. . When the activation flag 113 indicates the program A, this location is a location advanced by the number of bytes indicated by the program update file write completion byte count 117-32 in the area where the program B120 is stored. When the writing is completed, the process proceeds to step 411.

ステップ411では、プログラム更新処理進捗117−30のプログラム更新ファイル書込完了バイト数117−32を更新し、中断した場合も、プログラム更新ファイル117−31の示すファイルのプログラム更新ファイル書込完了バイト数117−32分進んだ位置のデータの構築から再開できるようにする。   In step 411, the program update file write completion byte number 117-32 of the program update process progress 117-30 is updated, and the program update file write completion byte number of the file indicated by the program update file 117-31 is interrupted. It is possible to resume from the construction of data at a position advanced by 117 to 32 minutes.

ステップ412では、プログラム更新ファイル117−31とプログラム更新ファイル書込完了バイト数117−32を比較し、プログラム更新処理の完了を確認する。完了していなければ、ステップ408に戻りプログラム更新処理を継続し、完了していれば処理を終了する。   In step 412, the program update file 117-31 and the program update file write completion byte count 117-32 are compared to confirm the completion of the program update process. If not completed, the process returns to step 408 to continue the program update process, and if completed, the process ends.

図6は、中断再開検出部123の動作を説明するフローチャートの例である。このフローチャートは、プログラムの更新処理開始時に開始し、プログラム更新処理完了を条件に終了する。   FIG. 6 is an example of a flowchart for explaining the operation of the interruption / resumption detecting unit 123. This flowchart starts at the start of the program update process and ends with the completion of the program update process as a condition.

ステップ501では、電源インタフェース110より、電源状態を取得する。つぎにステップ502で、車の状態取得インタフェース109より、制動用ブレーキ状態、車速、パーキングブレーキ状態を取得する。ステップ503では、ステップ501、ステップ502で取得した電源状態、車の状態より、次の中断条件1が成り立っているか判定する。中断条件1:車速がゼロ、かつ、制動用ブレーキが作動している。
中断条件が成り立っていればステップ504で、中断フラグ118をたて、成り立っていなければステップ505で中断フラグをおろし、ステップ506に進む。ステップ506では、更新フラグ116を確認し、更新処理が完了していれば終了し、更新中であればステップ501に戻り、処理を継続する。
In step 501, the power state is acquired from the power interface 110. Next, in step 502, the braking state, vehicle speed, and parking brake state are acquired from the vehicle state acquisition interface 109. In step 503, it is determined whether or not the next interruption condition 1 is satisfied from the power supply state and the vehicle state acquired in step 501 and step 502. Interruption condition 1: The vehicle speed is zero and the braking brake is operating.
If the interruption condition is satisfied, the interruption flag 118 is set in step 504. If not, the interruption flag is cleared in step 505, and the process proceeds to step 506. In step 506, the update flag 116 is checked. If the update process is completed, the process is terminated.

ユーザが車載機100の電源状態をSTART202に遷移させる場合、通常の運用では、車101は停車しており、ユーザは制動用ブレーキを作動させてからその操作を行う。このため、中断条件1で更新処理を中断すれば、START202に遷移する前に、記憶装置106に書き込みを完了させ更新処理を中断させることができる。また、ON203状態になれば、ユーザは制動用ブレーキから足をはなす。つまり、START202の状態から抜けてから中断条件1が成り立たなくなる為、電源の状態が安定している期間であるACC_OFF300、ACC_ON301、ON303、ACC_ON304、ACC_OFF305の期間を利用して、着実に更新処理を進め、記録装置106への書き込み失敗に伴う再処理などで更新時間が長くなりユーザを待たせることが無くなる。この中断条件1は、信号で停止してアイドリングストップする場合にも同様に働くため、アイドリングストップにも有効である。   When the user changes the power supply state of the vehicle-mounted device 100 to START 202, in normal operation, the car 101 is stopped and the user operates the brake after operating the brake for braking. For this reason, if the update process is interrupted under the interrupt condition 1, the update process can be interrupted by completing the writing in the storage device 106 before the transition to the START 202. Further, when the state becomes ON 203, the user removes his / her foot from the brake for braking. That is, since the interruption condition 1 does not hold after exiting the state of the START 202, the update process is steadily advanced using the periods of the ACC_OFF 300, ACC_ON 301, ON 303, ACC_ON 304, and ACC_OFF 305, which are periods in which the power supply is stable. In addition, the reprocessing due to a failure in writing to the recording device 106 increases the update time and makes the user not wait. Since this interruption condition 1 works in the same way when stopping by a signal and stopping idling, it is also effective for idling stopping.

中断条件1を次の様な判定条件に変更しても同じ効果が得られる。
中断条件2:パーキングブレーキがかけられている、かつ、制動用ブレーキが作動している。
中断条件3:電源の状態が、ACC_OFF200状態、または、ACC_ON201状態の何れかの状態、かつ、制動用ブレーキが作動している。
Even if the interruption condition 1 is changed to the following determination condition, the same effect can be obtained.
Interruption condition 2: The parking brake is applied and the braking brake is operating.
Interruption condition 3: The power supply state is either the ACC_OFF200 state or the ACC_ON201 state, and the brake for braking is operating.

また、これらの中断条件1、中断条件2、中断条件3何れかの条件が成り立っている事を中断条件としても良い。   Further, the condition that any one of the interruption condition 1, the interruption condition 2, and the interruption condition 3 is satisfied may be set as the interruption condition.

ACC_ON301の期間、ON303の期間、ACC_ON304の期間は、車載機100の提供するサービスと並行して更新を行うため、サービスを提供するプログラムA119または、プログラムB120の実行速度が低下する場合がある。   During the period of ACC_ON301, the period of ON303, and the period of ACC_ON304, updating is performed in parallel with the service provided by the in-vehicle device 100, and therefore the execution speed of the program A119 or program B120 that provides the service may decrease.

このような場合は、次の中断条件4に切り替えれば、更新処理は、上記期間を除く、ACC_OFF305、ACC_OFF300の期間に実行されるため、車載機100の提供するサービスの性能に影響を与えることは無くなる。
中断条件4:電源の状態がACC_OFF200状態ではない
本実施例では、通信インタフェース107、センタ端末102から更新データを取得し、記憶装置106のプログラムを更新する場合について述べたが、持ちは混み可能な持ち運び可能なメモリ(SDメモリ/USBメモリ)、持ち運び可能なHDD、CD、DVD、BDディスクなどから更新データを取得しても同様である。
In such a case, if the next interruption condition 4 is switched, the update process is executed in the periods of ACC_OFF 305 and ACC_OFF 300 except for the above period, so that the performance of the service provided by the in-vehicle device 100 is not affected. Disappear.
Interruption condition 4: The power supply is not in the ACC_OFF200 state In this embodiment, the update data is acquired from the communication interface 107 and the center terminal 102 and the program in the storage device 106 is updated. The same applies when update data is acquired from a portable memory (SD memory / USB memory), a portable HDD, CD, DVD, BD disk, or the like.

また、起動フラグ113は、プログラムA119、プログラムB120の二つのプログラムでは無く、任意の数の起動プログラムから選択出来てもよい。この様にすると、複数バージョンのプログラムを保存できる。また、用途の異なる複数プログラムを選択することもできる。   Further, the activation flag 113 may be selected from an arbitrary number of activation programs instead of the two programs A119 and B120. In this way, multiple versions of the program can be saved. It is also possible to select a plurality of programs having different uses.

さらに、プログラムA119、プログラムB120の内容に更新プログラム121が含まれても良い。この様にすると更新プログラム121の更新も可能となる。   Furthermore, the update program 121 may be included in the contents of the programs A119 and B120. In this way, the update program 121 can be updated.

本実施例では、再起動処理を含むオンライン更新を行うシステムの例を説明する。   In the present embodiment, an example of a system that performs online update including restart processing will be described.

図7は、実施例2における再起動処理を含む車載機のオンライン更新システムの構成図の例である。図1の車載機のオンライン更新システムのうち、既に説明した図1に示された同一の符号を付された構成と、同一の機能を有する部分については、説明を省略する。   FIG. 7 is an example of a configuration diagram of an on-line machine online update system including a restart process according to the second embodiment. In the on-line update system for the in-vehicle device in FIG. 1, the description of the components having the same functions as those already described with reference to FIG. 1 is omitted.

起動フラグ113は、プログラムA119とプログラムB120に加え、更新プログラム121を選択出来る。更新プログラム格納領域アドレス601は、更新プログラム121の格納されているアドレスを示す。この様にすると、再起動時に起動フラグ113が更新プログラム121を指していると、更新プログラム格納領域アドレス601を参照して、更新プログラム121を実行出来る。   The activation flag 113 can select the update program 121 in addition to the program A 119 and the program B 120. The update program storage area address 601 indicates the address where the update program 121 is stored. In this way, when the activation flag 113 points to the update program 121 at the time of restart, the update program 121 can be executed with reference to the update program storage area address 601.

更新進捗117には、再起動更新処理の進捗も記録するため、実行中更新処理117−10は、図9の再起動更新を含む更新処理を考慮した更新進捗データ構成の説明図の例に示す様に、ダウンロード処置と、プログラム更新処理に加え、再起動更新処理も示す様になる。また、更新進捗117に再起動更新処理進捗117−40が追加される。再起動更新処理進捗117−40の情報は、再起動更新ファイル117−41と再起動更新ファイル書込完了バイト数117−42を含む。   In order to record the progress of the restart update process in the update progress 117, the in-execution update process 117-10 is shown in the example of the explanatory diagram of the update progress data configuration in consideration of the update process including the restart update in FIG. Similarly, in addition to download processing and program update processing, restart update processing is also shown. In addition, the restart update process progress 117-40 is added to the update progress 117. The information on the restart update process progress 117-40 includes a restart update file 117-41 and a restart update file write completion byte count 117-42.

図8は、実施例2における再起動処理を含む更新処理部の動作を説明するフローチャートの例である。図4の更新処理部の動作を説明するフローチャートのうち、既に説明した図4に示された同一の符号を付されたステップと、同一の機能を有する部分については、説明を省略する。   FIG. 8 is an example of a flowchart for explaining the operation of the update processing unit including the restart process according to the second embodiment. In the flowchart for explaining the operation of the update processing unit in FIG. 4, the description of the steps having the same functions as the steps denoted by the same reference numerals shown in FIG.

ステップ402では、実行中更新処理117−10を確認する。実行中更新処理117−10が再起動更新処理であった場合、ステップ701を実行する。また、ステップ412でプログラム更新処理の完了が確認された場合、実行中更新処理117−10を再起動更新処理として、ステップ701を実行する。   In step 402, the executing update process 117-10 is confirmed. If the ongoing update process 117-10 is a restart update process, step 701 is executed. If the completion of the program update process is confirmed in step 412, step 701 is executed with the executing update process 117-10 as the restart update process.

ステップ701では、中断フラグ118を確認し、中断フラグ118がオンになっており中断を指示されている場合は、中断が解除されるまで、ステップ701で中断フラグ118の確認を続ける。中断フラグ118がオフになっており中断が解除されている場合は、ステップ702に進む。   In step 701, the interruption flag 118 is confirmed. If the interruption flag 118 is on and an interruption is instructed, the interruption flag 118 is continuously checked in step 701 until the interruption is released. If the interruption flag 118 is off and the interruption is released, the process proceeds to step 702.

ステップ702では、更新進捗117の再起動更新処理進捗117−40の再起動更新ファイル117−41の示すファイルから再起動をしなければ更新できないプログラムのデータを構築する。1ブロックのデータを構築するとステップ703に進む。   In step 702, data of a program that cannot be updated without restarting is constructed from the file indicated by the restart update file 117-41 of the restart update process progress 117-40 of the update progress 117. When one block of data is constructed, the process proceeds to step 703.

ステップ703では、ステップ702で構築した1ブロックのデータを更新進捗117の再起動更新処理進捗117−40の再起動更新ファイル書込完了バイト数117−42の示す記憶装置106の書込場所に書き込む。この場所は、起動フラグ113が、プログラムAを指している場合は、プログラムB120の格納されている領域で、ダウンロードファイル書込完了バイト数117−23の示すバイト数分進んだ場所である。書込が完了すると、ステップ704に進む。   In step 703, the data of one block constructed in step 702 is written in the write location of the storage device 106 indicated by the restart update file write completion byte number 117-42 of the restart update process progress 117-40 of the update progress 117. . This location is a location advanced by the number of bytes indicated by the download file writing completion byte number 117-23 in the area where the program B 120 is stored when the activation flag 113 indicates the program A. When the writing is completed, the process proceeds to step 704.

ステップ704では、再起動更新処理進捗117−40の再起動更新ファイル書込完了バイト数117−42を更新し、中断した場合も、再起動の必要な更新処理を再開できるようにする。   In step 704, the restart update file write completion byte count 117-42 of the restart update process progress 117-40 is updated so that the update process that needs to be restarted can be resumed even when interrupted.

ステップ705では、再起動更新ファイル117−41の示すファイルのサイズと再起動更新ファイル書込完了バイト数117−42を比較し、再起動更新処理の完了を確認する。完了していなければ、ステップ701に戻り再起動更新処理を継続し、完了していれば更新処理を終了する。   In step 705, the file size indicated by the restart update file 117-41 is compared with the restart update file write completion byte count 117-42 to confirm the completion of the restart update process. If not completed, the process returns to step 701 to continue the restart update process, and if completed, the update process is terminated.

これによって、他のプログラムの実行と並行して実行できない更新処理が出来るようになる。   This makes it possible to perform update processing that cannot be executed in parallel with the execution of other programs.

ダウンロード処理とプログラム更新処理は中断条件1を利用し、再起動更新処理は中断条件4を利用すると、ダウンロード処理とプログラム更新処理は、供給電力が安定する、ON303、ACC_ON304、ACC_OFF305、ACC_OFF300、ACC_ON301の期間を利用して更新を進め、再起動更新処理は、ACC_OFF305、ACC_OFF300の期間を利用して実行される。ACC_ON301、ON303、ACC_ON304の期間に再起動をする、再起動中は車載機100が提供すべきサービスを提供できなくなってしまい、ユーザを待たせてしまう。しかし、再起動更新処理の中断条件に中断条件4を用いることで、この様なユーザを待たせる期間を発生させずに更新処理ができる。   If the download process and the program update process use the interruption condition 1, and the restart update process uses the interruption condition 4, the download process and the program update process are performed with ON303, ACC_ON304, ACC_OFF305, ACC_OFF300, and ACC_ON301. The update is advanced using the period, and the restart update process is executed using the period of ACC_OFF 305 and ACC_OFF 300. Rebooting during the period of ACC_ON301, ON303, and ACC_ON304, during the rebooting, the service that the vehicle-mounted device 100 should provide cannot be provided, causing the user to wait. However, by using the interruption condition 4 as the interruption condition for the restart update process, the update process can be performed without generating such a period of waiting for the user.

本実施例では、電源の不安定な期間だけでなく、プロセッサ104の処理負荷の高い期間の更新処理中断も行えるオンライン更新システムの例を説明する。   In this embodiment, an example of an online update system capable of interrupting update processing not only during an unstable power supply period but also during a period when the processing load on the processor 104 is high will be described.

図10は、図3に、さらに車載機の負荷変動を加えて説明する図の例である。既に説明した図3に示された同一の符号を付された部分については、説明を省略する。   FIG. 10 is an example of a diagram that is explained by adding the load fluctuation of the in-vehicle device to FIG. The description of the parts denoted by the same reference numerals shown in FIG. 3 already described is omitted.

車載機100のサービスはACC_ON301の期間から提供するため、ACC_OFF300からACC_ON301に変化したタイミングで起動する。このため、ACC_ON301の期間は負荷が高くなる。START302の期間は電源の状態が不安定なため、起動処理中にSTART302の期間に入ると、車載機100は停止する場合がある。   Since the service of the in-vehicle device 100 is provided from the period of ACC_ON301, the service is started at a timing when the ACC_OFF300 is changed to ACC_ON301. For this reason, a load becomes high during the period of ACC_ON301. Since the power supply state is unstable during the START 302 period, the vehicle-mounted device 100 may stop when the START 302 period is entered during the startup process.

図10では、START302の期間、車載機100が停止した例を示している。START302の期間が終わり、電源の安定しているON303に移ると、START302の期間で車載機100が停止した場合は、再起動して負荷が高い期間801が始まる。起動が完了すると負荷の安定した期間802になる。ACC_ON304の期間は、ユーザから特に指示がない限り、低めの処理負荷となる。ACC_ON304からACC_OFF305に変化すると、車載機100は、更新処理が残っていなければ停止する。   FIG. 10 shows an example in which the in-vehicle device 100 is stopped during the period of START302. When the period of START 302 ends and the process moves to ON 303 where the power supply is stable, when the vehicle-mounted device 100 stops during the period of START 302, the period 801 where the load is high and the load is high starts. When the startup is completed, a period 802 in which the load is stable is entered. The period of ACC_ON 304 is a low processing load unless otherwise instructed by the user. If it changes from ACC_ON304 to ACC_OFF305, the onboard equipment 100 will stop, if an update process does not remain.

車載機100において起動時間は、ユーザを待たせる主な時間である。この期間に更新処理を並列に実行すると更にユーザを待たせてしまう場合がある。また、車載機100の提供するサービスの処理実行中で処理負荷の高い期間はユーザを待たせている場合が多い。   The start-up time in the in-vehicle device 100 is a main time that makes the user wait. If the update process is executed in parallel during this period, the user may be kept waiting. In many cases, a user is kept waiting during a period when processing of a service provided by the vehicle-mounted device 100 is being executed and the processing load is high.

図11は、実施例3プロセッサ負荷を考慮した中断再開検出部の動作を説明するフローチャートの例である。図6の中断再開検出部の動作を説明するフローチャートのうち、既に説明した図6に示された同一の符号を付されたステップと、同一の機能を有する部分については、説明を省略する。   FIG. 11 is an example of a flowchart for explaining the operation of the interruption / resumption detecting unit in consideration of the processor load according to the third embodiment. In the flowchart for explaining the operation of the interruption / resumption detecting unit in FIG. 6, the description of the steps having the same functions as those in FIG.

ステップ901は、車載機100のプロセッサ104の処理負荷を取得するステップである。ステップ503では、ステップ501、ステップ502で取得した電源状態、車の状態とステップ901で取得したプロセッサ104の負荷より、次の中断条件5が成り立っているか判定する。
中断条件5:プロセッサ負荷が60%以上、または、中断条件1
中断条件5が成り立っていればステップ504で、中断フラグ118をオンにして、成り立っていなければステップ505で中断フラグをオフにし、ステップ506に進む。ステップ506では、更新フラグ116を確認し、更新処理が完了していれば終了し、更新中であればステップ501に戻り、処理を継続する。
Step 901 is a step of acquiring the processing load of the processor 104 of the in-vehicle device 100. In step 503, it is determined whether the next interruption condition 5 is satisfied based on the power supply state and vehicle state acquired in steps 501 and 502 and the load of the processor 104 acquired in step 901.
Interruption condition 5: Processor load is 60% or more, or interruption condition 1
If the interruption condition 5 is satisfied, the interruption flag 118 is turned on in step 504. If not, the interruption flag is turned off in step 505, and the process proceeds to step 506. In step 506, the update flag 116 is checked. If the update process is completed, the process is terminated.

中断条件5を次の様な判定条件に変更しても同じ効果が得られる。
中断条件6:プロセッサ負荷が60%以上、または、中断条件2
中断条件7:プロセッサ負荷が60%以上、または、中断条件3
また、これらの中断条件5、中断条件6、中断条件7を組み合わせて判定しても良い。
Even if the interruption condition 5 is changed to the following determination condition, the same effect can be obtained.
Interruption condition 6: Processor load is 60% or more, or interruption condition 2
Interruption condition 7: Processor load is 60% or more, or interruption condition 3
Further, the interruption condition 5, the interruption condition 6, and the interruption condition 7 may be determined in combination.

更新を中断するプロセッサ負荷の値を、この例では60%としているが、対象とする車載機100に適切な値とするとよい。この値をユーザが入出力装置108を利用して設定できるようにしても良い。この値をセンタ端末102から車載機100に送るようにしても良い。   The value of the processor load for interrupting the update is 60% in this example, but may be a value appropriate for the target in-vehicle device 100. This value may be set by the user using the input / output device 108. This value may be sent from the center terminal 102 to the in-vehicle device 100.

本実施例の中断再開処理を実施例1の更新処理で利用すれば、プロセッサ104の処理負荷が安定している期間802、電源が安定してプロセッサ104の処理負荷が低いACC_ON304、ACC_OFF305、ACC_OFF300、ACC_ON301の期間を使って、ダウンロード処理とプログラム更新処理を実行できる。   If the interruption / resumption process of the present embodiment is used in the update process of the first embodiment, a period 802 in which the processing load of the processor 104 is stable, ACC_ON304, ACC_OFF305, ACC_OFF300, in which the power supply is stable and the processing load on the processor 104 is low. Download processing and program update processing can be executed using the period of ACC_ON301.

本実施例の中断再開処理を実施例2の更新処理で利用すれば、プロセッサ104の処理負荷が安定している期間802、電源が安定してプロセッサ104の処理負荷が低いACC_ON304、ACC_OFF305、ACC_OFF300、ACC_ON301の期間を使って、ダウンロード処理とプログラム更新処理を実行できる。再起動更新処理に関しては、中断条件4でACC_OFF305とACC_OFF300の、再起動によりユーザを待たせる事の無い期間に実行出来る。   If the interruption / resumption process of the present embodiment is used in the update process of the second embodiment, a period 802 in which the processing load of the processor 104 is stable, an ACC_ON304, an ACC_OFF305, an ACC_OFF300 in which the power supply is stable and the processing load on the processor 104 is low. Download processing and program update processing can be executed using the period of ACC_ON301. The restart update process can be executed during a period in which ACC_OFF 305 and ACC_OFF 300 do not cause the user to wait due to restart under the interruption condition 4.

この仕組みは、オンライン更新導入で増加する処理時間が起動時間に与える影響を小さくすることができる。これによって、車載機の抱える大きな課題である、ユーザを待たせる時間の短縮とプログラム更新の処理にかかる時間の短縮を実現することができる。   This mechanism can reduce the influence of the processing time, which increases due to the introduction of online update, on the startup time. As a result, it is possible to reduce the time required for the user to wait and the time required for the program update processing, which are major problems of the in-vehicle device.

100 車載機
101 車
102 センタ端末
103 ネットワーク
104 プロセッサ
105 メモリ
106 不揮発性の記憶装置
107 通信インタフェース
108 入出力装置
109 車の状態取得インタフェース
110 電源インタフェース
111 通信線
DESCRIPTION OF SYMBOLS 100 Vehicle equipment 101 Car 102 Center terminal 103 Network 104 Processor 105 Memory 106 Nonvolatile memory | storage device 107 Communication interface 108 Input / output device 109 Car status acquisition interface 110 Power supply interface 111 Communication line

Claims (8)

車に装着され、プロセッサと記憶装置を備え、前記記憶装置に格納されたプログラムを前記プロセッサが実行する車載機において、
前記車の状態として制動用ブレーキの状態および車速を含む車両状態を取得する車両状態取得手段と、
前記プログラムの更新処理を行う更新処理手段と、
前記車両状態取得手段が取得した当該車両状態が、前記車からの電力供給が不安定になる可能性があることを示す予め定められた更新処理中断条件を満たしているかどうかを検出する中断再開検出部と、
前記車両状態に応じて予め定めた更新データ取得中断条件に従い、前記プログラムの更新データの取得処理を行う更新データ取得手段と、を備え、
前記更新処理手段は、
前記車両状態が前記更新処理中断条件を満たしていることを前記中断再開検出部が検出した場合は、前記プログラムの更新処理を中断し、
前記プログラムの更新処理が中断しているときに、前記車両状態が前記更新処理中断条件を満たしていないことを前記中断再開検出部が検出した場合は、前記プログラムの更新処理を再開するとともに、
前記更新データ取得手段は、
前記車両状態取得手段が取得した当該車両状態が、前記更新データ取得中断条件を満たしていない場合は、前記プログラムの更新データの取得処理を行い、
当該車両状態が、前記更新データ取得中断条件を満たしている場合は、前記プログラムの更新データの取得処理を中断することを特徴とする車載機。
In an in-vehicle device that is mounted on a vehicle and includes a processor and a storage device, and the processor executes a program stored in the storage device,
Vehicle state acquisition means for acquiring a vehicle state including a braking brake state and a vehicle speed as the vehicle state;
Update processing means for performing update processing of the program;
Interruption restart detection for detecting whether or not the vehicle state acquired by the vehicle state acquisition unit satisfies a predetermined update processing interruption condition indicating that power supply from the vehicle may become unstable. And
Update data acquisition means for performing an update data acquisition process of the program according to an update data acquisition interruption condition predetermined according to the vehicle state ,
The update processing means includes
When the suspension / resumption detecting unit detects that the vehicle state satisfies the update process interruption condition, the update process of the program is interrupted,
When the update process of the program is interrupted, if the interruption / resumption detecting unit detects that the vehicle state does not satisfy the update process interruption condition, the update process of the program is resumed ,
The update data acquisition means includes
When the vehicle state acquired by the vehicle state acquisition means does not satisfy the update data acquisition interruption condition, an update data acquisition process of the program is performed,
If the vehicle state satisfies the update data acquisition suspension condition, the update data acquisition process of the program is interrupted .
車に装着され、プロセッサと記憶装置を備え、前記記憶装置に格納されたプログラムを前記プロセッサが実行する車載機において、
前記車の状態を示す車両状態を取得する車両状態取得手段と、前記プログラムの更新処理を行う更新処理手段と、前記車両状態取得手段が取得した当該車両状態が、予め定められた更新処理中断条件を満たしているかどうかを検出する中断再開検出部と、を備え、
前記更新処理手段は、
前記車両状態が前記更新処理中断条件を満たしていることを前記中断再開検出部が検出した場合は、前記プログラムの更新処理を中断し、
前記プログラムの更新処理が中断しているときに、前記車両状態が前記更新処理中断条件を満たしていないことを前記中断再開検出部が検出した場合は、前記プログラムの更新処理を再開し、
前記車両状態は制動用ブレーキの状態を含み、
(1)前記車の状態取得手段が取得した車の状態は、更に車速を含み、前記更新処理中断条件とは、車速がゼロ、かつ、制動用ブレーキが作動している、または、
(2)前記車の状態取得手段が取得した車の状態は、更に、駐車用ブレーキの状態を含み、前記更新処理中断条件とは、駐車用ブレーキが作動している、かつ、制動用ブレーキが作動している、または、
(3)前記車両状態取得手段が取得した車両状態は、更に、車の電源状態を含み、前記更新処理中断条件とは、前記電源状態が、ACC_OFF状態、または、ACC_ON状態の何れかであり、かつ、制動用ブレーキが作動している、
ことを特徴とする車載機。
In an in-vehicle device that is mounted on a vehicle and includes a processor and a storage device, and the processor executes a program stored in the storage device,
Vehicle state acquisition means for acquiring a vehicle state indicating the state of the vehicle, update processing means for performing update processing of the program, and the vehicle state acquired by the vehicle state acquisition means are predetermined update processing interruption conditions An interruption / resumption detection unit that detects whether or not
The update processing means includes
When the suspension / resumption detecting unit detects that the vehicle state satisfies the update process interruption condition, the update process of the program is interrupted,
When the interruption restart detection unit detects that the vehicle state does not satisfy the update process interruption condition when the program update process is interrupted, the program update process is resumed,
The vehicle state includes a state of a brake for braking,
(1) The vehicle state acquired by the vehicle state acquisition means further includes a vehicle speed, and the update process interruption condition is that the vehicle speed is zero and the brake for braking is operating, or
(2) The state of the vehicle acquired by the vehicle state acquisition means further includes the state of the parking brake, and the update processing interruption condition is that the parking brake is activated and the braking brake is Working or
(3) The vehicle state acquired by the vehicle state acquisition unit further includes a power state of the vehicle, and the update process interruption condition is either the ACC_OFF state or the ACC_ON state, And the braking brake is operating,
In-vehicle device characterized by this.
請求項2に記載の車載機であって、
前記車載機は、さらに、前記プログラムの更新データを取得する更新データ取得手段を備え、
前記更新データ取得手段は、
前記車両状態取得手段が取得した当該車両状態が、予め定めた更新データの取得を中断する更新データ取得中断条件を満たしていない場合は、前記プログラムの更新データの取得処理を行い、
前記更新データ取得中断条件を満たしている場合は、前記プログラムの更新データの取得処理を中断することを特徴とする車載機。
The in-vehicle device according to claim 2 ,
The in-vehicle device further includes update data acquisition means for acquiring update data of the program,
The update data acquisition means includes
When the vehicle state acquired by the vehicle state acquisition means does not satisfy the update data acquisition interruption condition for interrupting the acquisition of the predetermined update data, the update data acquisition process of the program is performed,
When the update data acquisition interruption condition is satisfied, the update data acquisition process of the program is interrupted.
請求項1または3に記載の車載機であって
記更新データ取得中断条件とは、前記車両状態取得手段が取得した前記車両状態において、車速がゼロ、かつ、制動用ブレーキが作動していることを特徴とする車載機。
A vehicle apparatus according to claim 1 or 3,
Before SL The update data acquisition interruption condition, in the vehicle state in which the vehicle condition acquisition unit has acquired, the vehicle-mounted device that the vehicle speed is zero, and the braking brake is characterized in that it is operating.
請求項1から4のいずれか一に記載の車載機であって、
前記車載機は、さらに、前記プログラムの再起動更新処理を行う再起動更新処理手段を備え、
前記再起動更新処理手段は、
前記車両状態取得手段が取得した当該車両状態が、予め定めた再起動更新処理中断条件を満たしていない場合は、前記プログラムの再起動更新処理を行い、
前記再起動更新処理中断条件を満たしている場合は、前記プログラムの再起動更新処理を中断することを特徴とする車載機。
The in-vehicle device according to any one of claims 1 to 4,
The in-vehicle device further includes restart update processing means for performing restart update processing of the program,
The restart update processing means includes:
If the vehicle state acquired by the vehicle state acquisition means does not satisfy a predetermined restart update process interruption condition, perform a restart update process of the program,
When the restart update process interruption condition is satisfied, the restart update process of the program is interrupted.
請求項5に記載の車載機において、
前記車両状態取得手段が取得した車両状態は、更に、車の電源状態を含み、前記再起動更新処理中断条件とは、前記電源状態がACC_OFF状態ではない、ことを特徴とする車載機。
The in-vehicle device according to claim 5,
The vehicle state acquired by the vehicle state acquisition means further includes a power supply state of the vehicle, and the restart update process interruption condition is that the power supply state is not an ACC_OFF state.
請求項1から6のいずれか一に記載の車載機であって、
前記車載機は、さらに、前記プロセッサの負荷取得手段を備え、
前記更新処理手段は、取得した前記プロセッサの負荷が規定値未満、かつ、前記車両状態取得手段が取得した当該車両状態が、前記更新処理中断条件を満たしていない場合は、前記プログラムの更新処理を行い、
取得した前記プロセッサの負荷が規定値以上、または、前記更新処理中断条件を満たしている場合は、前記プログラムの更新処理を中断することを特徴とする車載機。
The in-vehicle device according to any one of claims 1 to 6,
The in-vehicle device further includes a load acquisition unit of the processor,
The update processing unit performs update processing of the program when the acquired load of the processor is less than a specified value and the vehicle state acquired by the vehicle state acquisition unit does not satisfy the update process interruption condition. Done
The in-vehicle device, wherein the update process of the program is interrupted when the acquired load of the processor is equal to or greater than a predetermined value or satisfies the update process interruption condition.
請求項1または3に記載の車載機であって、
前記更新データ取得手段として、無線/有線通信インタフェースまたは可搬型メモリが接続されるインタフェースを備えることを特徴とする車載機。
The in-vehicle device according to claim 1 or 3 ,
An in-vehicle device comprising a wireless / wired communication interface or an interface to which a portable memory is connected as the update data acquisition means.
JP2014188455A 2014-09-17 2014-09-17 Online update method for in-vehicle devices Active JP5997740B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014188455A JP5997740B2 (en) 2014-09-17 2014-09-17 Online update method for in-vehicle devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014188455A JP5997740B2 (en) 2014-09-17 2014-09-17 Online update method for in-vehicle devices

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010253389A Division JP5629927B2 (en) 2010-11-12 2010-11-12 Online update method for in-vehicle devices

Publications (2)

Publication Number Publication Date
JP2015037938A JP2015037938A (en) 2015-02-26
JP5997740B2 true JP5997740B2 (en) 2016-09-28

Family

ID=52631342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014188455A Active JP5997740B2 (en) 2014-09-17 2014-09-17 Online update method for in-vehicle devices

Country Status (1)

Country Link
JP (1) JP5997740B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791514A (en) * 2014-12-22 2016-07-20 阿里巴巴集团控股有限公司 Application starting monitoring method and device
US10970063B2 (en) 2017-04-12 2021-04-06 Sumitomo Electric Industries, Ltd. Relay apparatus, transfer method, and computer program

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922998A (en) * 2016-10-27 2019-06-21 住友电气工业株式会社 Control device, method for updating program and computer program
JP6863037B2 (en) * 2017-04-20 2021-04-21 富士通株式会社 Storage controller and storage control program
JP7207301B2 (en) 2017-06-13 2023-01-18 住友電気工業株式会社 Update controller, control method and computer program
JP6702269B2 (en) 2017-06-15 2020-05-27 住友電気工業株式会社 Control device, control method, and computer program
WO2019030985A1 (en) 2017-08-10 2019-02-14 住友電気工業株式会社 Control device, control method, and computer program
CN111032438B (en) 2017-08-10 2023-05-02 住友电气工业株式会社 Control apparatus, control method, and computer program
JP6907803B2 (en) 2017-08-16 2021-07-21 住友電気工業株式会社 Control devices, control methods, and computer programs
JP6897417B2 (en) 2017-08-16 2021-06-30 住友電気工業株式会社 Control devices, control methods, and computer programs
JP6881150B2 (en) * 2017-08-16 2021-06-02 住友電気工業株式会社 Control devices, control methods, and computer programs
WO2019187391A1 (en) * 2018-03-26 2019-10-03 住友電気工業株式会社 Control device, program updating method, computer program, program sending method, and removable medium
CN112770940B (en) * 2018-10-15 2024-04-19 株式会社自动网络技术研究所 Vehicle-mounted updating device, updating processing program, program updating method, and vehicle-mounted updating system
JP7373590B2 (en) 2020-01-10 2023-11-02 日立Astemo株式会社 Electronic control device and electronic control system
EP4122775A4 (en) * 2020-03-18 2023-08-16 Nissan Motor Co., Ltd. Software update device, software update method, and software update processing program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6413601A (en) * 1987-07-07 1989-01-18 Aisin Aw Co Save/restore system for stored information in vehicle control system
JP2000207219A (en) * 1999-01-18 2000-07-28 Fujitsu Ten Ltd Communication system for between on-vehicle terminal and center, and the on-vehicle terminal used for communication system
JP2004249914A (en) * 2003-02-21 2004-09-09 Matsushita Electric Ind Co Ltd On-vehicle device
JP2005293369A (en) * 2004-04-01 2005-10-20 Konica Minolta Opto Inc Operation program update method, data processor and data processing program
JP5236376B2 (en) * 2008-07-16 2013-07-17 本田技研工業株式会社 Network system rewriting device
JP4809418B2 (en) * 2008-11-25 2011-11-09 トヨタ自動車株式会社 Software updating apparatus and software updating method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791514A (en) * 2014-12-22 2016-07-20 阿里巴巴集团控股有限公司 Application starting monitoring method and device
CN105791514B (en) * 2014-12-22 2020-08-04 阿里巴巴集团控股有限公司 Application starting monitoring method and device
US10970063B2 (en) 2017-04-12 2021-04-06 Sumitomo Electric Industries, Ltd. Relay apparatus, transfer method, and computer program

Also Published As

Publication number Publication date
JP2015037938A (en) 2015-02-26

Similar Documents

Publication Publication Date Title
JP5629927B2 (en) Online update method for in-vehicle devices
JP5997740B2 (en) Online update method for in-vehicle devices
JP6451899B2 (en) Control device, program update method, and computer program
WO2016158547A1 (en) Program rewriting device and program rewriting method
JPWO2018079006A1 (en) Control device, program update method, and computer program
CN111782234A (en) Vehicle-mounted software flashing method, control device, central processing unit and automobile
JP6465258B1 (en) Control device, control method, and computer program
JPWO2018139296A1 (en) Vehicle control device and program update system
JPWO2012056773A1 (en) Program rewriting system for vehicles
TWI607912B (en) Program updating method and system of vehicle
JP2012091755A (en) Program rewriting system for vehicle
JP6011379B2 (en) Tamper detection system, electronic control unit
JP2010167997A (en) Rewriting system for vehicle
JP6547904B2 (en) CONTROL DEVICE, PROGRAM UPDATE METHOD, AND COMPUTER PROGRAM
JP2006011647A (en) Software management device
JP2008158591A (en) Information processor and control program
CN116610340A (en) Update method and device of vehicle software, vehicle and storage medium
JP6237543B2 (en) In-vehicle device
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
US20220308857A1 (en) Control device and terminal device
US20220300271A1 (en) Program update control apparatus, program update control method and computer-readable storage medium
US20220206779A1 (en) Control system, moving object, control method, and computer-readable storage medium
CN115454462A (en) OTA manager, system, method, non-transitory storage medium, and vehicle
JP7355061B2 (en) Center, OTA master, system, distribution method, distribution program, and vehicle
JP7363853B2 (en) OTA master, center, system, update method, update program, and vehicle

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150630

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160330

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160826

R150 Certificate of patent or registration of utility model

Ref document number: 5997740

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250