JP6185789B2 - In-vehicle software update device - Google Patents

In-vehicle software update device Download PDF

Info

Publication number
JP6185789B2
JP6185789B2 JP2013173296A JP2013173296A JP6185789B2 JP 6185789 B2 JP6185789 B2 JP 6185789B2 JP 2013173296 A JP2013173296 A JP 2013173296A JP 2013173296 A JP2013173296 A JP 2013173296A JP 6185789 B2 JP6185789 B2 JP 6185789B2
Authority
JP
Japan
Prior art keywords
software
vehicle
control unit
update
download
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
JP2013173296A
Other languages
Japanese (ja)
Other versions
JP2015041334A (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.)
Yazaki Energy System Corp
Original Assignee
Yazaki Energy System 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 Yazaki Energy System Corp filed Critical Yazaki Energy System Corp
Priority to JP2013173296A priority Critical patent/JP6185789B2/en
Publication of JP2015041334A publication Critical patent/JP2015041334A/en
Application granted granted Critical
Publication of JP6185789B2 publication Critical patent/JP6185789B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、車両に搭載された電子機器が無線通信機能を利用してソフトウェアを更新する更新処理に関し、特に、その更新処理を制御する車載ソフトウェア更新装置に関する。   The present invention relates to an update process in which an electronic device mounted on a vehicle updates software using a wireless communication function, and more particularly to an in-vehicle software update apparatus that controls the update process.

従来より、車両には様々な電子機器が車載器として搭載されている。近年の様々な車載器は、マイクロコンピュータの動作を決定するプログラムやデータなどを含むソフトウェアを搭載している。このようなソフトウェアについては、動作の不具合を修正するために、あるいは機能の変更や追加を行うために日常的にあるいは定期的に新しいバージョンのソフトウェアに更新されることがある。   Conventionally, various electronic devices are mounted on a vehicle as an in-vehicle device. Various on-vehicle devices in recent years are equipped with software including a program and data for determining the operation of the microcomputer. Such software may be updated to a new version of software on a daily or periodic basis to correct malfunctions or to change or add functions.

特許文献1は、車載器である地図データ利用装置またはナビゲーション装置において、ユーザにとってより必要性が高い範囲の地図データを、更新のタイミングをユーザに委ねることなく適時に更新するための技術を開示している。また、特許文献1の技術では、車載器を無線通信装置を介して情報配信センタと接続し、地図データを情報配信センタからダウンロードした新しいバージョンのデータに自動更新するように制御している。   Patent Document 1 discloses a technique for updating map data in a range that is more necessary for a user in a timely manner without leaving the update timing to the user in a map data utilization device or navigation device that is a vehicle-mounted device. ing. In the technique of Patent Document 1, the vehicle-mounted device is connected to the information distribution center via a wireless communication device, and the map data is controlled to be automatically updated to a new version of data downloaded from the information distribution center.

また、特許文献2は、車載器のための技術ではないが、アプリケーションプログラムを更新インストールする場合に、様々な問題が発生する可能性があることが示唆されている(段落0003及び0004)。   Moreover, although patent document 2 is not a technique for onboard equipment, when updating and installing an application program, it is suggested that various problems may arise (paragraphs 0003 and 0004).

また、特許文献3は、車両の入庫及び出庫を自動的に識別するための技術を開示している。   Patent Document 3 discloses a technique for automatically identifying entry and exit of a vehicle.

特開2008−90057号公報JP 2008-90057 A 特開2007−200040号公報JP 2007-200040 A 特開2011−227552号公報JP 2011-227552 A

ところで、車載器のソフトウェアを新たなものに更新する際には、更新の失敗に備えて、現行ソフトウェアを削除せずにそのまま保持しておく必要がある。そのため、新たなソフトウェアを書き込むために必要な記憶容量に比べて十分に余裕のある、比較的大容量の記憶装置(不揮発性メモリなど)を用意せねばならない。言い換えると、車載器を動かすために必要な特定のソフトウェアを保持するために必要なメモリ容量に比べて大きな容量の記憶装置が必要になる。これが車載器のコスト増に繋がる。近年、確かに記憶装置の容量あたりのコストは減る傾向にあるが、車載器の機能がますます複雑化しているため、該車載器に用いられるソフトウェアを保持するために必要なメモリ容量も増大する傾向にある。このため、記憶装置のコストの増大を抑制することは難しい。   By the way, when the software of the vehicle-mounted device is updated to a new one, it is necessary to keep the current software as it is in preparation for the failure of the update. For this reason, it is necessary to prepare a relatively large-capacity storage device (such as a non-volatile memory) having a sufficient margin as compared with the storage capacity necessary for writing new software. In other words, a storage device having a larger capacity than the memory capacity necessary for holding specific software necessary for operating the vehicle-mounted device is required. This leads to an increase in the cost of the vehicle-mounted device. In recent years, the cost per capacity of storage devices has tended to decrease in recent years, but the functions of on-board devices are becoming more complex, so the memory capacity required to hold the software used in the on-board devices also increases. There is a tendency. For this reason, it is difficult to suppress an increase in the cost of the storage device.

また、車載器のソフトウェアを新たなものに更新する際には、現行ソフトウェアを車載器の記憶装置上から削除して、空いている記憶領域を確保してから新たなソフトウェアをインストールすることも考えられる。その場合には、新旧の両方のソフトウェアを保持するための記憶領域を確保する必要がないため、記憶装置に必要とされる容量を大幅に減らすことができる。   In addition, when updating the OBE software to a new one, it is also possible to delete the current software from the OBE storage device and secure a free storage area before installing the new software. It is done. In that case, since it is not necessary to secure a storage area for holding both new and old software, the capacity required for the storage device can be greatly reduced.

しかしながら、特に特許文献1のように無線通信を利用して新しいソフトウェアをダウンロードするような場合には、ダウンロードに失敗したり、データエラーの発生により新しいソフトウェアのインストールに失敗する可能性も高くなる。このような事態が発生すると、現行ソフトウェアが既に削除されているため、車載器が全く動作しなくなる可能性がある。その結果、特別な修復作業が必要になり、記憶装置のコスト増を抑制した以上の余分な修理コストが必要になる。また、修復を完了するまでは車載器を利用できないことは、特に業務用途の車載器の場合には大きな問題になる。   However, particularly when new software is downloaded using wireless communication as in Patent Document 1, there is a high possibility that the download will fail or the installation of the new software will fail due to the occurrence of a data error. When such a situation occurs, since the current software has already been deleted, the vehicle-mounted device may not operate at all. As a result, a special repair work is required, and an extra repair cost more than the suppression of the cost increase of the storage device is required. In addition, the fact that the vehicle-mounted device cannot be used until the repair is completed is a big problem particularly in the case of a vehicle-mounted device for business use.

本発明は、上述した事情に鑑みてなされたものであり、その目的は、車載器におけるソフトウェアの更新のために必要な記憶装置の容量の増大を抑制すると共に、ソフトウェアの更新の際に何らかの問題が生じた場合であっても、車載器を継続的に使用することが可能な車載ソフトウェア更新装置を提供することにある。   The present invention has been made in view of the above-described circumstances, and an object of the present invention is to suppress an increase in the capacity of a storage device necessary for updating software in the vehicle-mounted device, and to solve some problems when updating software. It is an object of the present invention to provide an in-vehicle software update device capable of continuously using an in-vehicle device even when the in-vehicle device occurs.

前述した目的を達成するために、本発明に係る車載ソフトウェア更新装置は、下記(1)〜(4)を特徴としている。
(1) データの集合及びプログラムの少なくとも一方を含むソフトウェアを情報として保持する、データ書き換えが可能なソフトウェア保持用メモリと、
車両外部の機器との間で無線通信が可能な無線通信モジュールと、
予め定めた条件を満たした時に、前記ソフトウェア保持用メモリが保持している第1のソフトウェアと関連がある第2のソフトウェアを前記無線通信モジュールを介してダウンロードし、前記ソフトウェア保持用メモリ上の前記第1のソフトウェアを前記第2のソフトウェアに置き換える更新処理を制御するソフトウェア更新制御部と、
を備え、
前記ソフトウェア更新制御部は、前記更新処理の最初の処理として、前記第2のソフトウェアの最初の一部分のダウンロードを実行すると共にこのダウンロードが正常に完了したか否かを判定し、
このダウンロードが正常に完了していないと判定した場合、前記更新処理を中止し、
このダウンロードが正常に完了したと判定した場合、前記更新処理の前記最初の処理に続く処理として、前記第1のソフトウェアの少なくとも一部分のデータを消去または無効化してメモリ空き領域を確保し、前記第2のソフトウェアの残りの部分のダウンロードを実行すると共にダウンロードした前記第2のソフトウェアを前記メモリ空き領域に書き込み、
前記ソフトウェア更新制御部は、前記更新処理が異常終了したことを検知した場合には、前記第1のソフトウェアを前記無線通信モジュールを介してダウンロードし、ダウンロードした前記第1のソフトウェアを前記メモリ空き領域に書き込む、
こと。
(2) 上記(1)の構成の車載ソフトウェア更新装置であって、
自車両の現在位置を表す位置情報を取得する位置情報取得部と、
前記位置情報取得部が取得した位置情報に基づき自車両が事前に定めた領域の範囲内にあるか否かを識別すると共に、自車両の位置が前記範囲内に属している期間の長さに応じて自車両の入庫及び出庫の状態を識別する入庫出庫識別部と、
を更に備え、
前記ソフトウェア更新制御部は、前記入庫出庫識別部が、自車両の入庫状態を検出している場合に、前記更新処理を開始する、
こと。
(3) 上記(1)又は(2)の構成の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記無線通信モジュールが利用する無線通信回線の通信環境が所定の条件を満たさない場合に、前記更新処理の開始を禁止する、
こと。
(4) 上記(1)の構成の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記更新処理において、前記第2のソフトウェアのダウンロードが完了しなかった場合であって該第2のソフトウェアをダウンロードした回数が規定回数未満のとき、前記第2のソフトウェアを再びダウンロードする、
こと。
In order to achieve the above-described object, the in-vehicle software update device according to the present invention is characterized by the following (1) to (4).
(1) A software holding memory capable of rewriting data, holding software including at least one of a set of data and a program as information,
A wireless communication module capable of wireless communication with devices outside the vehicle;
When a predetermined condition is satisfied, the second software related to the first software held in the software holding memory is downloaded via the wireless communication module, and the software holding memory A software update control unit for controlling an update process for replacing the first software with the second software;
With
The software update control unit executes download of the first part of the second software as the first process of the update process, and determines whether or not the download has been normally completed,
If it is determined that this download has not been completed successfully, the update process is stopped,
When it is determined that the download has been completed normally, as a process subsequent to the first process of the update process , at least a part of the data of the first software is erased or invalidated to secure a memory free area, Download the remaining portion of the second software and write the downloaded second software into the memory free space ;
When the software update control unit detects that the update process has ended abnormally, the software update control unit downloads the first software via the wireless communication module, and downloads the downloaded first software to the memory free area. Write to the
about.
(2) An in-vehicle software update device configured as described in (1) above,
A position information acquisition unit that acquires position information indicating the current position of the host vehicle;
Based on the position information acquired by the position information acquisition unit, it is determined whether or not the host vehicle is within the range of a predetermined area, and the length of the period during which the position of the host vehicle belongs to the range. A warehousing / unloading identification unit for identifying the state of warehousing and unloading of the own vehicle,
Further comprising
The software update control unit starts the update process when the warehousing / unloading identification unit detects the warehousing state of the host vehicle.
about.
(3) The in-vehicle software update device having the configuration (1) or (2),
The software update control unit prohibits the start of the update process when a communication environment of a wireless communication line used by the wireless communication module does not satisfy a predetermined condition;
about.
(4) The in-vehicle software update device configured as described in (1) above,
The software update control unit is configured to download the second software when the download of the second software is not completed and the number of times the second software is downloaded is less than a predetermined number in the update process. Download again,
about.

上記(1)の構成の車載ソフトウェア更新装置によれば、第1のソフトウェアを消去または無効化してメモリ空き領域を確保した後で前記第2のソフトウェアの本体をダウンロードするので、ソフトウェアの更新のために記憶装置の容量を大幅に増やす必要がない。しかも、無線通信環境の劣化などに伴って前記更新処理が異常終了した場合には、第1のソフトウェアがダウンロードされてソフトウェア保持用メモリに書き込まれるので、該当する車載器は更新前の状態でそのまま使用することができる。
上記(2)の構成の車載ソフトウェア更新装置によれば、無線通信環境が良好である可能性が高く、且つソフトウェア更新中に自車両が別の場所に移動する可能性が低い状態で、前記更新処理を開始することができる。したがって、ソフトウェアの更新に失敗する頻度を大幅に減らすことができる。
上記(3)の構成の車載ソフトウェア更新装置によれば、無線通信環境が良好でない時には更新処理を開始しないように制御できるので、ソフトウェアの更新に失敗する頻度を大幅に減らすことができる。
上記(4)の構成の車載ソフトウェア更新装置によれば、無線通信環境の一時的な悪化などによってダウンロードに失敗した場合であっても、規定回数未満であれば第2のソフトウェアのダウンロードを繰り返すので、第2のソフトウェアへの更新に成功する可能性を高めることができる。
According to the in-vehicle software update device having the configuration (1), the main body of the second software is downloaded after erasing or invalidating the first software and securing a free memory area. In addition, it is not necessary to greatly increase the capacity of the storage device. In addition, when the update process ends abnormally due to deterioration of the wireless communication environment, etc., the first software is downloaded and written in the software holding memory, so that the corresponding vehicle-mounted device remains in the state before the update. Can be used.
According to the in-vehicle software update device having the configuration of (2), the update is performed in a state where there is a high possibility that the wireless communication environment is good and the possibility that the own vehicle will move to another place during the software update is low. Processing can be started. Therefore, the frequency of software update failures can be greatly reduced.
According to the in-vehicle software update device having the configuration (3), since the update process can be controlled not to start when the wireless communication environment is not good, the frequency of software update failures can be greatly reduced.
According to the in-vehicle software update device having the configuration (4), even if the download fails due to a temporary deterioration of the wireless communication environment, the second software download is repeated if the number is less than the specified number. The possibility of succeeding in the update to the second software can be increased.

本発明の車載ソフトウェア更新装置によれば、車載器におけるソフトウェアの更新のために必要な記憶装置の容量の増大を抑制すると共に、ソフトウェアの更新の際に何らかの問題が生じた場合であっても、車載器を継続的に使用することが可能になる。   According to the in-vehicle software update device of the present invention, while suppressing an increase in the capacity of the storage device required for software update in the in-vehicle device, even when some problem occurs during software update, The vehicle-mounted device can be used continuously.

以上、本発明について簡潔に説明した。更に、以下に説明される発明を実施するための形態(以下、「実施形態」という。)を添付の図面を参照して通読することにより、本発明の詳細は更に明確化されるであろう。   The present invention has been briefly described above. Further, the details of the present invention will be further clarified by reading through a mode for carrying out the invention described below (hereinafter referred to as “embodiment”) with reference to the accompanying drawings. .

図1は、本発明の実施形態のテレマティクス車載端末のソフトウェア更新制御部の処理を示すフローチャートである。FIG. 1 is a flowchart showing processing of the software update control unit of the telematics in-vehicle terminal according to the embodiment of the present invention. 図2は、本発明の実施形態のテレマティクス車載端末の構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of the telematics in-vehicle terminal according to the embodiment of the present invention. 図3は、入庫出庫識別部の処理を示すフローチャートである。FIG. 3 is a flowchart showing the processing of the warehousing / unloading identification unit. 図4は、拠点に入庫した時の車両位置の具体例を示す斜視図である。FIG. 4 is a perspective view showing a specific example of the vehicle position when entering the base.

本発明の車載ソフトウェア更新装置に関する具体的な実施形態について、各図を参照しながら以下に説明する。   Specific embodiments relating to the in-vehicle software update device of the present invention will be described below with reference to the drawings.

<装置の概要の説明>
本発明の車載ソフトウェア更新装置を搭載したテレマティクス車載端末10の構成例を図2に示す。本実施形態のテレマティクス車載端末10は、例えばタクシー、トラック、バスのように業務用で使用される車両に搭載した状態で使用することを想定している。
<Description of the outline of the device>
A configuration example of the telematics in-vehicle terminal 10 equipped with the in-vehicle software update device of the present invention is shown in FIG. The telematics in-vehicle terminal 10 of this embodiment is assumed to be used in a state where it is mounted on a vehicle used for business purposes such as a taxi, a truck, or a bus.

したがって、このテレマティクス車載端末10を搭載した業務用車両は、運行業務を行わない時には運送事業者の事務所等の拠点に配置された駐車場に入庫した状態にあり、運行業務を行う時に駐車場から出庫して移動し、毎日の運行業務が終了すると再び駐車場に戻って入庫状態になる。   Therefore, the business vehicle equipped with the telematics in-vehicle terminal 10 is in a state where it is stored in a parking lot located at a base such as a carrier's office when the operation is not performed, and the parking lot when the operation is performed. When the daily operation is completed, the vehicle returns to the parking lot and enters the warehousing state.

テレマティクス車載端末10の基本的な機能は、車両上で収集した様々な情報を無線データ通信により車両外の所定のサーバに送信したり、車両外の所定のサーバから無線データ通信により受信したデータに基づいて様々な制御を実施することである。この機能の他に、テレマティクス車載端末10は本発明の車載ソフトウェア更新装置の機能もソフトウェアとして搭載している。即ち、テレマティクス車載端末10は、自身(テレマティクス車載端末10)の機能を実現するために必要な各種のソフトウェア、またはテレマティクス車載端末10に接続されている他の車載器の機能を実現するために必要な各種のソフトウェアを、自車両の外側に存在する所定のサーバから無線データ通信により取得する。そして、テレマティクス車載端末10は、取得したソフトウェアを自身(テレマティクス車載端末10)または他の車載器に自動的に更新する。   The basic function of the telematics in-vehicle terminal 10 is to transmit various information collected on the vehicle to a predetermined server outside the vehicle by wireless data communication, or to data received from the predetermined server outside the vehicle by wireless data communication. Based on this, various controls are implemented. In addition to this function, the telematics in-vehicle terminal 10 also includes the function of the in-vehicle software update device of the present invention as software. In other words, the telematics in-vehicle terminal 10 is necessary for realizing various functions necessary for realizing the function of itself (telematics in-vehicle terminal 10) or other in-vehicle devices connected to the telematics in-vehicle terminal 10. Various kinds of software are acquired by wireless data communication from a predetermined server existing outside the host vehicle. Then, the telematics in-vehicle terminal 10 automatically updates the acquired software to itself (telematics in-vehicle terminal 10) or another in-vehicle device.

更新対象のソフトウェアについては、車載器専用の制御用プログラム、オペレーティングシステム、アプリケーションプログラム、各種データベースなどが想定される。なお、本実施形態ではテレマティクス車載端末10に車載ソフトウェア更新装置を搭載しているが、他の様々な車載器に車載ソフトウェア更新装置を搭載しても良い。   As the software to be updated, a control program dedicated to the vehicle-mounted device, an operating system, an application program, various databases, and the like are assumed. In the present embodiment, the in-vehicle software update device is installed in the telematics in-vehicle terminal 10, but the in-vehicle software update device may be installed in various other in-vehicle devices.

<装置の構成>
図2に示すように、テレマティクス車載端末10の本体は、制御部11、無線通信モジュール12、GPSモジュール13、外部インタフェース(I/F)14、表示部15、不揮発性メモリ16、操作インタフェース17、操作部18、デジタル5ch入力インタフェース19、回転インタフェース20、速度インタフェース21、及び電源部22を備えている。
<Device configuration>
As shown in FIG. 2, the main body of the telematics in-vehicle terminal 10 includes a control unit 11, a radio communication module 12, a GPS module 13, an external interface (I / F) 14, a display unit 15, a nonvolatile memory 16, an operation interface 17, An operation unit 18, a digital 5ch input interface 19, a rotation interface 20, a speed interface 21, and a power supply unit 22 are provided.

制御部11は、マイクロコンピュータを主体とするハードウェアにより構成されている。制御部11のマイクロコンピュータは、テレマティクス車載端末10上に用意されているプログラムを実行することにより、テレマティクス車載端末10の機能を実現するための制御を行うことができる。   The control unit 11 is configured by hardware mainly including a microcomputer. The microcomputer of the control unit 11 can perform control for realizing the functions of the telematics in-vehicle terminal 10 by executing a program prepared on the telematics in-vehicle terminal 10.

制御部11のマイクロコンピュータが実行するプログラムの中には、車載ソフトウェア更新装置のプログラムも含まれている。車載ソフトウェア更新装置の機能として、ソフトウェア更新制御部11a及び入庫出庫識別部11bが制御部11に備わっている。これらの機能は、制御部11のマイクロコンピュータがプログラムを実行することにより実現する。   The program executed by the microcomputer of the control unit 11 includes a program for the in-vehicle software update device. As a function of the in-vehicle software update device, the control unit 11 includes a software update control unit 11a and a warehousing / unloading identification unit 11b. These functions are realized by the microcomputer of the control unit 11 executing a program.

無線通信モジュール12は、通信アンテナ31を介して、例えば移動体通信事業者等が提供する無線通信システムに含まれる所定の無線基地局との間で無線通信を行い、データ通信のために必要な無線通信回線を確保することができる。   The wireless communication module 12 performs wireless communication with a predetermined wireless base station included in a wireless communication system provided by, for example, a mobile communication provider via the communication antenna 31, and is necessary for data communication. A wireless communication line can be secured.

GPSモジュール13は、GPSアンテナ32を介して複数のGPS(Global Positioning System)からそれぞれ送信される電波を受信し、受信した信号のタイミングに基づいて自車両の現在位置(緯度/経度)を算出することができる。   The GPS module 13 receives radio waves respectively transmitted from a plurality of GPS (Global Positioning System) via the GPS antenna 32, and calculates the current position (latitude / longitude) of the host vehicle based on the timing of the received signal. be able to.

外部インタフェース14は、外部機器33としてテレマティクス車載端末10に接続される車両上の様々な車載器との間でデータ通信を行うための接続機能を提供する。具体的な外部機器33としては、カーナビゲーション装置、ドライブレコーダ、デジタルタコグラフ、ETC車載器、メータユニット、タクシーメータ、電子制御装置(ECU)などが想定される。   The external interface 14 provides a connection function for performing data communication with various vehicle-mounted devices connected to the telematics vehicle-mounted terminal 10 as the external device 33. Specific examples of the external device 33 include a car navigation device, a drive recorder, a digital tachograph, an ETC vehicle-mounted device, a meter unit, a taximeter, and an electronic control unit (ECU).

表示部15は、例えばテレマティクス車載端末10の動作状態や、ユーザの行うべき操作などの情報をユーザに知らせるために、文字等の可視情報を必要に応じて画面上に表示することができる。   The display unit 15 can display visible information such as characters on the screen as necessary in order to notify the user of information such as the operation state of the telematics in-vehicle terminal 10 and operations to be performed by the user.

不揮発性メモリ16は、例えばフラッシュメモリのようにデータの読み出し及びデータの書き換えが可能なメモリにより構成されており、制御部11のマイクロコンピュータが実行可能な各種のプログラムやデータなど(ソフトウェア)を保持している。   The nonvolatile memory 16 is configured by a memory that can read and rewrite data, such as a flash memory, and holds various programs and data (software) that can be executed by the microcomputer of the control unit 11. doing.

不揮発性メモリ16が保持する各種ソフトウェアの内容については、無線通信モジュール12を介して所定のサーバからダウンロードすることにより新しいバージョンに随時更新することができる。この更新作業は、制御部11に備わっている車載ソフトウェア更新装置の機能により自動的に行うことができる。   The contents of various kinds of software stored in the nonvolatile memory 16 can be updated as needed by downloading from a predetermined server via the wireless communication module 12. This update operation can be automatically performed by the function of the in-vehicle software update device provided in the control unit 11.

操作部18は、ユーザが操作可能な複数のボタンを備えている。これらのボタンは、テレマティクス車載端末10に対してユーザが指示を与えるために使用される。操作部18は、操作インタフェース17を介して制御部11と接続されている。つまり、ユーザが操作部18のボタンを操作することにより、制御部11のマイクロコンピュータに指示を与えることができる。   The operation unit 18 includes a plurality of buttons that can be operated by the user. These buttons are used by the user to give instructions to the telematics in-vehicle terminal 10. The operation unit 18 is connected to the control unit 11 via the operation interface 17. That is, when the user operates the button of the operation unit 18, an instruction can be given to the microcomputer of the control unit 11.

デジタル5ch入力インタフェース19は、車両側に備わっている各種センサ34からそれぞれ出力される複数のデジタル信号を各々処理して、各信号の情報を制御部11に与えることができる。   The digital 5ch input interface 19 can process each of a plurality of digital signals respectively output from various sensors 34 provided on the vehicle side, and can provide information of each signal to the control unit 11.

回転インタフェース20は、車両側に備わっているエンジン回転センサ35から出力される回転パルス信号を、制御部11のマイクロコンピュータの処理に適した信号に変換する。エンジン回転センサ35は、エンジンの出力軸が所定量回転する毎にパルス信号を出力することができる。したがって、この回転パルス信号により、エンジンの回転速度を把握することができる。   The rotation interface 20 converts the rotation pulse signal output from the engine rotation sensor 35 provided on the vehicle side into a signal suitable for the processing of the microcomputer of the control unit 11. The engine rotation sensor 35 can output a pulse signal every time the output shaft of the engine rotates a predetermined amount. Therefore, the rotation speed of the engine can be grasped from this rotation pulse signal.

速度インタフェース21は、車両側に備わっている速度センサ36から出力される速度パルス信号を、制御部11のマイクロコンピュータの処理に適した信号に変換する。速度センサ36は、車両の変速機の出力軸が所定量回転する毎にパルス信号を出力することができる。したがって、この速度パルス信号のパルス数やパルス周期に基づいて、車両の移動量や移動速度を把握することができる。   The speed interface 21 converts the speed pulse signal output from the speed sensor 36 provided on the vehicle side into a signal suitable for the processing of the microcomputer of the control unit 11. The speed sensor 36 can output a pulse signal each time the output shaft of the vehicle transmission rotates by a predetermined amount. Therefore, the moving amount and moving speed of the vehicle can be grasped based on the number of pulses and the pulse period of the speed pulse signal.

電源部22は、車両側電源37から供給される直流電力に基づいて、テレマティクス車載端末10内の各回路が必要とする安定した直流電源電圧を生成する。車両側電源37は、車載バッテリーや発電機(オルタネータ)などであり、イグニッションスイッチのオンオフと連動した信号も出力することができる。   The power supply unit 22 generates a stable DC power supply voltage required by each circuit in the telematics in-vehicle terminal 10 based on the DC power supplied from the vehicle-side power supply 37. The vehicle-side power source 37 is an in-vehicle battery, a generator (alternator), or the like, and can also output a signal that is linked to the on / off of the ignition switch.

<装置の動作>
<ソフトウェア更新制御部11aの処理>
ソフトウェア更新制御部11aの処理の内容を図1に示す。テレマティクス車載端末10を搭載した車両のイグニッションスイッチがオンになり、テレマティクス車載端末10への電源電力の供給が開始されると、所定のタイミングで図1に示す処理が実行される。
<Operation of the device>
<Processing of Software Update Control Unit 11a>
The contents of the processing of the software update control unit 11a are shown in FIG. When an ignition switch of a vehicle equipped with the telematics in-vehicle terminal 10 is turned on and supply of power to the telematics in-vehicle terminal 10 is started, the processing shown in FIG. 1 is executed at a predetermined timing.

最初のステップS11では、制御部11は自車両の状態が入庫状態か否かを識別する。即ち、入庫出庫識別部11bの識別結果により、自車両の状態を把握する。入庫状態であることを検出すると次のステップS12に進む。   In the first step S11, the control unit 11 identifies whether or not the state of the own vehicle is a warehousing state. That is, the state of the own vehicle is grasped from the identification result of the warehousing / unloading identification unit 11b. If it is detected that it is in the warehousing state, the process proceeds to the next step S12.

ステップS12では、制御部11は、無線通信モジュール12及び通信アンテナ31を用いて無線通信回線を確保し、例えば所定のデータセンターあるいは事務所等に配置されているサーバとテレマティクス車載端末10とがデータ通信できるように無線通信回線を経由して接続する。更に、制御部11はサーバ上に使用可能な新しいソフトウェアが登録されているか否かを識別し、該当するソフトウェアが登録されている場合には、当該ソフトウェアのダウンロードを開始するための最初の処理を実行する。具体的には、当該ソフトウェアの最初の1ブロックに関する送信要求をテレマティクス車載端末10からサーバに送り、この要求に応答してサーバが送信する最初の1ブロックのデータを、テレマティクス車載端末10の制御部11が受信する。   In step S12, the control unit 11 secures a wireless communication line using the wireless communication module 12 and the communication antenna 31, and the server and the telematics in-vehicle terminal 10 disposed in a predetermined data center or office, for example, Connect via a wireless communication line so that you can communicate. Further, the control unit 11 identifies whether or not new software that can be used is registered on the server. If the corresponding software is registered, the control unit 11 performs an initial process for starting the download of the software. Run. Specifically, a transmission request for the first block of the software is sent from the telematics in-vehicle terminal 10 to the server, and the first block data transmitted by the server in response to this request is transmitted to the control unit of the telematics in-vehicle terminal 10. 11 receives.

なお、伝送するデータのブロックについては、使用する通信回線等の通信仕様等に応じて事前に決定される最小限の大きさのデータのかたまりを意味している。例えば、伝送するデータのサイズがサイズ上限値(例えば500バイト)を超えると、無線通信回線を提供する事業者のシステム側で自動的にデータを複数に分割するような通信仕様である場合がある。この場合には、テレマティクス車載端末10側が予期していない箇所で勝手にデータの分割が生じるのを未然に防止する必要があるため、前記サイズ上限値よりも小さい、例えば400バイト以下のサイズのブロック毎にテレマティクス車載端末10がデータを分割してからブロック単位でデータを送信する。したがって、伝送するデータのブロックのサイズについては、必要に応じて変更される。   Note that the block of data to be transmitted means a block of data having a minimum size determined in advance according to communication specifications such as a communication line to be used. For example, when the size of data to be transmitted exceeds a size upper limit (for example, 500 bytes), the communication specification may automatically divide the data into a plurality of data on the system side of the provider providing the wireless communication line. . In this case, since it is necessary to prevent the data from being divided arbitrarily at a place that the telematics in-vehicle terminal 10 does not expect, a block having a size smaller than the upper limit size, for example, a size of 400 bytes or less. Each time the telematics in-vehicle terminal 10 divides the data, the data is transmitted in block units. Therefore, the size of the block of data to be transmitted is changed as necessary.

また、図1において、「新ソフトウェア」は、「現行ソフトウェア」と同じ種類に属し且つある程度の互換性を有するソフトウェアを意味し、「新ソフトウェア」は、相対的に「現行ソフトウェア」よりも新しいソフトウェアを意味する。代表例としては、「新ソフトウェア」のプログラムは、「現行ソフトウェア」のプログラムと互換性を有する、より新しいバージョンのソフトウェアである。   In FIG. 1, “new software” means software that belongs to the same type as “current software” and has some degree of compatibility, and “new software” is software that is relatively newer than “current software”. Means. As a typical example, the “new software” program is a newer version of software that is compatible with the “current software” program.

ステップS13では、制御部11は、ステップS12で伝送開始した最初の1ブロックのデータについて、ダウンロードを正常に完了したか否かを識別する。ダウンロードを正常に完了した場合はステップS15に進み、正常に完了してなければステップS14に進む。   In step S13, the control unit 11 identifies whether or not the download of the first block of data started in step S12 has been normally completed. If the download is completed normally, the process proceeds to step S15. If the download is not completed normally, the process proceeds to step S14.

例えば、無線通信モジュール12と無線基地局との間の無線通信環境が悪化しているような場合には、1ブロックのデータを伝送する間に、データエラーが発生したり、一時的に或いは継続的にデータ通信ができない状況が発生する可能性がある。そして、例えば所定時間が経過するまでの間に1ブロックのデータ全体のダウンロードが完了しないと、ステップS13からステップS14に進む。つまり、一時的な無線通信環境の悪化が原因であったとしても、ダウンロード対象のソフトウェアの一部分である最初の1ブロックのダウンロードに失敗することは、該当するソフトウェア全体の正常なダウンロードが困難な状況であることを意味し、ダウンロードを中止することが望ましい。   For example, when the wireless communication environment between the wireless communication module 12 and the wireless base station is deteriorated, a data error occurs during transmission of one block of data, or temporarily or continuously. There is a possibility that data communication cannot be performed. For example, if downloading of the entire data of one block is not completed before a predetermined time elapses, the process proceeds from step S13 to step S14. In other words, even if the cause is a temporary deterioration in the wireless communication environment, the failure to download the first block, which is a part of the software to be downloaded, makes it difficult to normally download the entire software. It is desirable to cancel the download.

ステップS14では、制御部11は、テレマティクス車載端末10が該当するソフトウェアのダウンロードを中止することを表す情報を無線通信モジュール12を経由してサーバへ通知する。また、ダウンロードを中止する理由が無線通信環境の悪化等であることを意味する情報を同時にサーバに通知する。   In step S <b> 14, the control unit 11 notifies the server of information indicating that the telematics in-vehicle terminal 10 stops downloading the corresponding software via the wireless communication module 12. In addition, information indicating that the reason for canceling the download is deterioration of the wireless communication environment or the like is simultaneously notified to the server.

ステップS15では、制御部11は、不揮発性メモリ16上に保持されている更新対象の「現行ソフトウェア」の全体を、不揮発性メモリ16上から消去する。これにより、該当する「現行ソフトウェア」が占有していた不揮発性メモリ16上の記憶領域が開放されて新たな空き領域になるため、「新ソフトウェア」を保存するための記憶領域を容易に確保可能になる。つまり、過去に「現行ソフトウェア」が占有していた記憶領域を、「新ソフトウェア」を保存するための記憶領域として確保することができる。   In step S <b> 15, the control unit 11 erases the entire “current software” to be updated held in the nonvolatile memory 16 from the nonvolatile memory 16. As a result, the storage area on the non-volatile memory 16 occupied by the corresponding “current software” is released to become a new free area, so that a storage area for storing the “new software” can be easily secured. become. That is, the storage area previously occupied by the “current software” can be secured as a storage area for storing the “new software”.

ステップS16では、制御部11は、ステップS12でダウンロード対象とした特定のソフトウェアの2番目のブロックから最終ブロックまでのデータについて、ダウンロードのための処理を続行するようにサーバに対して要求する。   In step S16, the control unit 11 requests the server to continue the process for downloading the data from the second block to the last block of the specific software to be downloaded in step S12.

この要求に応答して、サーバは該当するソフトウェアの2番目以降のブロックのデータをブロック単位で順次に送信する。テレマティクス車載端末10の制御部11は、サーバから送信された「新ソフトウェア」の各ブロックを受信し、この受信データをステップS15で確保した不揮発性メモリ16上の空き領域に順次に保存する。   In response to this request, the server sequentially transmits the data of the second and subsequent blocks of the corresponding software in units of blocks. The control unit 11 of the telematics in-vehicle terminal 10 receives each block of “new software” transmitted from the server, and sequentially stores the received data in the free area on the nonvolatile memory 16 secured in step S15.

ステップS17では、制御部11は、「新ソフトウェア」の2番目のブロック以降、最終ブロックまでの全てのデータを正常な状態でダウンロード完了したか否かを識別する。正常にダウンロード完了した場合はステップS18に進み、何らかの異常が発生した場合はステップS19に進む。   In step S <b> 17, the control unit 11 identifies whether all the data up to the last block after the second block of “new software” has been downloaded in a normal state. If the download is completed normally, the process proceeds to step S18. If any abnormality occurs, the process proceeds to step S19.

ステップS18では、制御部11は、今回のダウンロードが全て成功し、「新ソフトウェア」への更新が完了したことを表す状況を意味する終了状態情報を不揮発性メモリ16上に記憶する。また、この終了状態情報をS26で無線通信モジュール12を経由してサーバに通知する。   In step S <b> 18, the control unit 11 stores, on the non-volatile memory 16, end state information indicating a situation indicating that all the current downloads have been successful and the update to “new software” has been completed. Further, this end state information is notified to the server via the wireless communication module 12 in S26.

ステップS19では、制御部11は、テレマティクス車載端末10自身が該当する「新ソフトウェア」のダウンロードを繰り返した回数Cnを把握し、この回数Cnを事前に定めた規定回数Cmaxと比較する。「Cn>Cmax」の場合はステップS21に進み、「Cn≦Cmax」の場合はステップS20に進む。   In step S19, the control unit 11 grasps the number of times Cn that the telematics vehicle-mounted terminal 10 itself has repeatedly downloaded the corresponding “new software”, and compares this number Cn with a predetermined number of times Cmax. If “Cn> Cmax”, the process proceeds to step S21. If “Cn ≦ Cmax”, the process proceeds to step S20.

ステップS20では、制御部11は、ステップS12でダウンロード対象とした特定のソフトウェアを再びダウンロード対象に指定し、該当するソフトウェアの最初の1ブロックのデータを送信するように、サーバに対して要求する。また、ダウンロードの回数Cnを把握するためのカウンタをカウントアップする。   In step S20, the control unit 11 designates the specific software to be downloaded in step S12 as the download target again, and requests the server to transmit the first block of data of the corresponding software. Further, a counter for grasping the number of downloads Cn is counted up.

ステップS21では、制御部11は、ステップS12でダウンロード対象とした特定のソフトウェアと対応関係にある「現行ソフトウェア」をダウンロード対象に指定し、該当するソフトウェアの1番目のブロックから最終ブロックまでの全体のデータを送信するように、サーバに対して要求する。また、「現行ソフトウェア」ダウンロードの回数C0nを把握するためのカウンタをカウントアップする。   In step S21, the control unit 11 designates “current software” corresponding to the specific software to be downloaded in step S12 as the download target, and the entire software block from the first block to the final block of the corresponding software. Request the server to send data. In addition, a counter for grasping the number of times of downloading “current software” C0n is counted up.

上記のテレマティクス車載端末10の要求に応答して、サーバは該当する「現行ソフトウェア」の全てのブロックのデータをブロック単位で順次に送信する。テレマティクス車載端末10の制御部11は、サーバから送信された「現行ソフトウェア」の各ブロックを受信し、この受信データをステップS15で確保した不揮発性メモリ16上の空き領域に順次に保存する。   In response to the request from the telematics in-vehicle terminal 10 described above, the server sequentially transmits data of all blocks of the corresponding “current software” in units of blocks. The control unit 11 of the telematics in-vehicle terminal 10 receives each block of “current software” transmitted from the server, and sequentially stores the received data in the free area on the nonvolatile memory 16 secured in step S15.

ステップS22では、制御部11は、「現行ソフトウェア」の1番目のブロックから最終ブロックまでの全てのデータを正常な状態でダウンロード完了したか否かを識別する。正常にダウンロード完了した場合はステップpS23に進み、何らかの異常が発生した場合はステップS24に進む。   In step S22, the control unit 11 identifies whether or not all data from the first block to the last block of “current software” has been downloaded in a normal state. If the download is completed normally, the process proceeds to step pS23, and if any abnormality occurs, the process proceeds to step S24.

ステップS23では、制御部11は、「新ソフトウェア」のダウンロードが失敗したため「現行ソフトウェア」へ戻してから更新処理を終了したことを表す終了状態情報を不揮発性メモリ16上に記憶する。また、この終了状態情報をステップS26で無線通信モジュール12を経由してサーバに通知する。   In step S <b> 23, the control unit 11 stores, on the nonvolatile memory 16, end state information indicating that the update process has ended after returning to “current software” because the download of “new software” has failed. Further, this end state information is notified to the server via the wireless communication module 12 in step S26.

ステップS24では、制御部11は、テレマティクス車載端末10自身が該当する「現行ソフトウェア」のダウンロードを繰り返した回数C0nを把握し、この回数C0nを事前に定めた規定回数C0maxと比較する。「C0n>C0max」の場合はステップS25に進み、「C0n≦C0max」の場合はステップS21に戻って処理を繰り返す。   In step S24, the control unit 11 grasps the number of times C0n that the telematics in-vehicle terminal 10 itself has repeatedly downloaded the corresponding “current software”, and compares this number C0n with a predetermined number of times C0max set in advance. If “C0n> C0max”, the process proceeds to step S25. If “C0n ≦ C0max”, the process returns to step S21 to repeat the process.

ステップS25では、制御部11は、「新ソフトウェア」のダウンロードが失敗し、且つ「現行ソフトウェア」も消去してしまったことを表す終了状態情報を不揮発性メモリ16上に記憶する。また、この終了状態情報をステップS26で無線通信モジュール12を経由してサーバに通知する。   In step S <b> 25, the control unit 11 stores, in the nonvolatile memory 16, end state information indicating that downloading of “new software” has failed and “current software” has also been deleted. Further, this end state information is notified to the server via the wireless communication module 12 in step S26.

<入庫出庫識別部11bの処理>
入庫出庫識別部11bの処理の内容を図3に示す。また、拠点に入庫した時の車両位置の具体例を図4に示す。
<Processing of entry / exit identification unit 11b>
The content of the process of the warehousing / unloading identification part 11b is shown in FIG. Further, a specific example of the vehicle position when entering the base is shown in FIG.

本実施形態においては、管理対象の車両が運行していない時に通常駐車している場所を拠点とし、この拠点位置(緯度経度)P0を事前にテレマティクス車載端末10に登録してある。また、車両の入庫/出庫を区別するために定める拠点範囲は、図4に示すように拠点位置P0を中心とし、半径Rの円の内側とする。そして、出庫状態の車両が前記拠点範囲の内側に長時間停車していることを検知した場合に、この車両が入庫したとみなす。   In the present embodiment, the location where the vehicle is normally parked when the management target vehicle is not operating is used as a base, and this base position (latitude and longitude) P0 is registered in the telematics in-vehicle terminal 10 in advance. Further, the base range determined to distinguish the entry / exit of the vehicle is centered on the base position P0 as shown in FIG. And when it detects that the vehicle in a leaving state has stopped inside the said base range for a long time, it considers that this vehicle has received.

テレマティクス車載端末10の運用を開始すると、制御部11は図3のステップS31から処理を実行する。ステップS31では、制御部11は、現在の自車両の状態が入庫か出庫かを区別するための情報を保持している車両状態メモリMcの内容を参照し、入庫/出庫を識別する。出庫状態の場合はステップS32に進み、入庫状態の場合はステップS37に進む。   When the operation of the telematics in-vehicle terminal 10 is started, the control unit 11 executes processing from step S31 in FIG. In step S31, the control unit 11 refers to the content of the vehicle state memory Mc holding information for distinguishing whether the current state of the host vehicle is warehousing or evacuating, and identifies warehousing / departing. If it is in the warehousing state, the process proceeds to step S32. If it is in the warehousing state, the process proceeds to step S37.

ステップS32では、制御部11は、自車両の滞在時間を管理している滞在時間メモリの値を0にクリアする。   In step S32, the control part 11 clears the value of the stay time memory which manages the stay time of the own vehicle to zero.

ステップS33では、制御部11は、自車両の現在位置Ppの情報をGPSモジュール13から取得し、この現在位置Ppが事前に決定した拠点範囲内か拠点範囲外かを識別する。即ち、現在位置Ppと拠点位置P0との距離が半径R以内であれば拠点範囲内とみなしてステップS34に進み、距離が半径Rを超える場合は拠点範囲外とみなしてステップS32に戻る。   In step S33, the control unit 11 acquires information on the current position Pp of the host vehicle from the GPS module 13, and identifies whether the current position Pp is within the base range determined in advance or outside the base range. That is, if the distance between the current position Pp and the base position P0 is within the radius R, it is regarded as being within the base range, and the process proceeds to step S34. If the distance exceeds the radius R, it is regarded as outside the base range and the process returns to step S32.

ステップS34では、制御部11は、自車両の滞在時間を管理している滞在時間メモリの値を経過時間に応じてカウントアップする。   In step S34, the control part 11 counts up the value of the stay time memory which manages the stay time of the own vehicle according to elapsed time.

ステップS35では、制御部11は、滞在時間メモリが保持している現在の値(現在までの滞在時間)Tpを事前に定めた入庫判定時間T0と比較する。「Tp≧T0」の場合はステップS36に進み、「Tp<T0」の場合はステップS33に戻る。   In step S35, the control unit 11 compares the current value (stay time until now) Tp held in the stay time memory with a predetermined warehousing determination time T0. If “Tp ≧ T0”, the process proceeds to step S36, and if “Tp <T0”, the process returns to step S33.

ステップS36では、制御部11は、自車両の現在の状態を入庫とみなし、この状態に合わせて車両状態メモリMcの内容を更新する。したがって、この場合は車両状態メモリMcが「入庫状態」の情報を保持する。   In step S36, the control unit 11 regards the current state of the host vehicle as warehousing, and updates the contents of the vehicle state memory Mc according to this state. Therefore, in this case, the vehicle state memory Mc holds information on “entry state”.

ステップS37では、制御部11は、自車両の現在位置Ppの情報をGPSモジュール13から取得し、この現在位置Ppが事前に決定した拠点範囲内か拠点範囲外かを識別する。即ち、現在位置Ppと拠点位置P0との距離が半径R以内であれば拠点範囲内とみなしてステップS37を繰り返し、距離が半径Rを超える場合は拠点範囲外に移動したとみなしてステップS38に進む。   In step S37, the control unit 11 acquires information on the current position Pp of the host vehicle from the GPS module 13, and identifies whether the current position Pp is within the base range determined in advance or outside the base range. That is, if the distance between the current position Pp and the base position P0 is within the radius R, it is regarded as being within the base range, and step S37 is repeated. If the distance exceeds the radius R, it is assumed that the distance is outside the base range and the process proceeds to step S38. move on.

ステップS38では、制御部11は、自車両の現在の状態を出庫とみなし、この状態に合わせて車両状態メモリMcの内容を更新する。したがって、この場合は車両状態メモリMcが「出庫状態」の情報を保持する。   In step S38, the control unit 11 regards the current state of the host vehicle as a shipment, and updates the contents of the vehicle state memory Mc according to this state. Therefore, in this case, the vehicle state memory Mc holds information on the “shipping state”.

<特徴的な動作の説明>
<更新処理のタイミング>
本実施形態では、ソフトウェア更新制御部11aは、自車両が入庫状態であることを検出している場合に限り、ソフトウェアの更新処理を開始する(ステップS11)。業務用車両が出庫状態から入庫状態になった場合には、業務終了時であるため、車両の位置が長時間に渡って変化しない可能性が高く、しかも次に車両を運行開始するまでの時間的な余裕も十分にある。
<Description of characteristic operation>
<Timing of update processing>
In the present embodiment, the software update control unit 11a starts the software update process only when it is detected that the host vehicle is in the warehousing state (step S11). When a business vehicle changes from a leaving state to a warehousing state, it is likely that the position of the vehicle will not change for a long time because it is at the end of the business, and the time until the next start of operation of the vehicle There is sufficient margin.

車両の位置が変化しない時には、無線通信環境が急激に変化する可能性が小さくなる。このため、テレマティクス車載端末10がソフトウェアをサーバからダウンロードする際に、無線通信環境の悪化によりダウンロードに失敗するような状況が生じにくくなる。   When the position of the vehicle does not change, the possibility that the wireless communication environment changes rapidly is reduced. For this reason, when the telematics in-vehicle terminal 10 downloads software from the server, a situation in which the download fails due to deterioration of the wireless communication environment is less likely to occur.

また、次に車両を運行開始するまでに時間的な余裕がある。このため、テレマティクス車載端末10がソフトウェアをサーバからダウンロードしている途中で、車両の運行開始によってダウンロードが中断されるような状況も生じにくい。また、ダウンロードや更新処理の途中で一部のソフトウェアが消去されてテレマティクス車載端末10上に存在しない状況になった場合でも、次に車両の運行が開始されるまでの間に正常な状態に戻すことができれば、問題は生じない。   Moreover, there is a time margin until the next vehicle operation starts. For this reason, it is difficult to cause a situation in which the download is interrupted when the vehicle operation starts while the telematics in-vehicle terminal 10 is downloading the software from the server. Further, even when a part of software is deleted during the download or update process and does not exist on the telematics in-vehicle terminal 10, the normal state is restored until the next vehicle operation is started. If you can, there is no problem.

<必要なメモリ容量の削減>
図1に示した処理のように、ソフトウェアを更新する際には、ステップS15で「現行ソフトウェア」を消去して「新ソフトウェア」を保存するための記憶領域を確保する。このため、テレマティクス車載端末10上に「現行ソフトウェア」と「新ソフトウェア」の両方を同時に保存する必要がない。したがって、ソフトウェアの更新のために必要なメモリ容量が大幅に削減される。
<Reduction of necessary memory capacity>
When the software is updated as in the process shown in FIG. 1, “current software” is deleted in step S15, and a storage area for storing “new software” is secured. For this reason, it is not necessary to store both “current software” and “new software” on the telematics in-vehicle terminal 10 at the same time. Therefore, the memory capacity required for software update is greatly reduced.

<更新処理に伴う安全性の確保>
図1に示した処理のように、ステップS15で「現行ソフトウェア」を消去する前に、ステップS12で「新ソフトウェア」の一部分だけのダウンロードを実行し、このダウンロードが正常に完了したことをステップS13で確認している。したがって、実際の無線通信環境が悪化しているような状況では、「現行ソフトウェア」を消去する前にその処理を自動的に中断することができる。つまり、ソフトウェアの更新における失敗の発生に伴って、「現行ソフトウェア」及び「新ソフトウェア」のいずれも使用できない状況が発生するのを未然に防止できる。
<Ensuring safety associated with update processing>
As shown in FIG. 1, before deleting the “current software” in step S15, only a part of the “new software” is downloaded in step S12, and it is confirmed in step S13 that this download has been completed normally. Confirmed with. Therefore, in a situation where the actual wireless communication environment has deteriorated, the processing can be automatically interrupted before deleting the “current software”. That is, it is possible to prevent a situation in which neither “current software” nor “new software” can be used due to a failure in software update.

図1に示した処理のように、「新ソフトウェア」のダウンロードに失敗したことをステップS17で検知した場合には、規定回数以下であればダウンロードの処理を繰り返し実行することができる。したがって、一時的に無線通信環境が悪化したような場合には、「新ソフトウェア」を確実にダウンロードしてテレマティクス車載端末10にインストールすることができる。   As in the process shown in FIG. 1, when it is detected in step S17 that the download of the “new software” has failed, the download process can be repeatedly executed if it is less than the specified number of times. Therefore, when the wireless communication environment temporarily deteriorates, the “new software” can be reliably downloaded and installed in the telematics in-vehicle terminal 10.

図1に示した処理のように、「新ソフトウェア」のダウンロードに繰り返し失敗したことをステップS19で検知した場合には、ステップS21で「現行ソフトウェア」をサーバからダウンロードする。したがって、ステップS15で「現行ソフトウェア」を消去し、その後で「新ソフトウェア」のインストールに失敗した場合であっても、更新処理を開始する前の「現行ソフトウェア」を使用できる状態に自動的に復旧させることができる。   If it is detected in step S19 that downloading of “new software” has failed repeatedly as in the process shown in FIG. 1, “current software” is downloaded from the server in step S21. Therefore, even if “current software” is erased in step S15 and the installation of “new software” fails after that, the “current software” before the start of the update process is automatically restored to a usable state. Can be made.

また、「現行ソフトウェア」のダウンロードに失敗したことをステップS22で検知した場合には、規定回数以下であればダウンロードの処理を繰り返し実行することができる。したがって、一時的に無線通信環境が悪化したような場合には、「現行ソフトウェア」を確実にダウンロードしてテレマティクス車載端末10に再インストールすることができる。   If it is detected in step S22 that the download of the “current software” has failed, the download process can be repeatedly executed if the number is less than the specified number. Therefore, when the wireless communication environment temporarily deteriorates, the “current software” can be reliably downloaded and reinstalled in the telematics in-vehicle terminal 10.

また、図1に示した処理のように、テレマティクス車載端末10は更新処理の結果をステップS26でサーバに通知するので、多数の車両を管理する企業の管理者は、サーバが管理している情報を参照することにより、各車両における実際のソフトウェアの更新状況を容易に把握することができる。   Moreover, since the telematics vehicle-mounted terminal 10 notifies the server of the result of the update process in step S26 as in the process shown in FIG. 1, the manager of the company that manages a large number of vehicles is the information managed by the server. By referring to, it is possible to easily grasp the actual software update status in each vehicle.

<変形の可能性>
上記の実施形態では本発明の車載ソフトウェア更新装置の機能をテレマティクス車載端末10に内蔵しているが、車載ソフトウェア更新装置は、テレマティクス車載端末10に限らず様々な車載器にを搭載することができる。また、テレマティクス車載端末10以外の車載器に車載ソフトウェア更新装置を搭載する場合には、ソフトウェアのダウンロードのために必要な無線通信回線を確保するために、テレマティクス車載端末10を利用しても良い。この場合、例えば比較的狭い範囲で通信が可能な無線LAN装置、または様々な広域無線通信網と接続可能な広域無線通信装置を利用しても良い。
<Possibility of deformation>
In the above embodiment, the function of the in-vehicle software update device of the present invention is built in the telematics in-vehicle terminal 10, but the in-vehicle software update device is not limited to the telematics in-vehicle terminal 10 and can be installed in various in-vehicle devices. . Further, when the in-vehicle software update device is installed in an in-vehicle device other than the telematics in-vehicle terminal 10, the telematics in-vehicle terminal 10 may be used in order to secure a wireless communication line necessary for software download. In this case, for example, a wireless LAN device capable of communication within a relatively narrow range or a wide area wireless communication device connectable with various wide area wireless communication networks may be used.

上記の実施形態では本発明の車載ソフトウェア更新装置が、自身(テレマティクス車載端末10)のソフトウェアを更新する場合を想定している。この形態以外に、テレマティクス車載端末10が、テレマティクス車載端末10に接続可能な様々な車載器のソフトウェアを、テレマティクス車載端末10を経由して自動的に更新するように制御することもできる。   In the above embodiment, it is assumed that the in-vehicle software update device of the present invention updates its own (telematics in-vehicle terminal 10) software. In addition to this form, the telematics in-vehicle terminal 10 can also be controlled to automatically update the software of various in-vehicle devices that can be connected to the telematics in-vehicle terminal 10 via the telematics in-vehicle terminal 10.

ここで、上述した本発明に係る車載ソフトウェア更新装置の実施形態の特徴をそれぞれ以下[1]〜[4]に簡潔に纏めて列記する。
[1] データの集合及びプログラムの少なくとも一方を含むソフトウェアを情報として保持する、データ書き換えが可能なソフトウェア保持用メモリ(不揮発性メモリ16)と、
車両外部の機器との間で無線通信が可能な無線通信モジュール(12)と、
予め定めた条件を満たした時に、前記ソフトウェア保持用メモリが保持している第1のソフトウェアと関連がある第2のソフトウェアを前記無線通信モジュール(12)を介してダウンロードし、前記ソフトウェア保持用メモリ上の前記第1のソフトウェアを前記第2のソフトウェアに置き換える更新処理を制御するソフトウェア更新制御部(制御部11のソフトウェア更新制御部11a)と、
を備え、
前記ソフトウェア更新制御部は、前記第1のソフトウェアの少なくとも一部分のデータを消去または無効化して確保したメモリ空き領域に、ダウンロードした前記第2のソフトウェアを書き込み、
前記ソフトウェア更新制御部は、前記更新処理が異常終了したことを検知した場合には、前記第1のソフトウェアを前記無線通信モジュール(12)を介してダウンロードし、ダウンロードした前記第1のソフトウェアを前記メモリ空き領域に書き込む、
ことを特徴とする車載ソフトウェア更新装置。
[2] [1]に記載の車載ソフトウェア更新装置であって、
自車両の現在位置を表す位置情報を取得する位置情報取得部(GPSモジュール13)と、
前記位置情報取得部が取得した位置情報に基づき自車両が事前に定めた領域の範囲内にあるか否かを識別すると共に、自車両の位置が前記範囲内に属している期間の長さに応じて自車両の入庫及び出庫の状態を識別する入庫出庫識別部(制御部11)
を更に備え、
前記ソフトウェア更新制御部は、前記入庫出庫識別部が、自車両の入庫状態を検出している場合に、前記更新処理を開始する、
ことを特徴とする車載ソフトウェア更新装置。
[3] [1]又は[2]に記載の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記無線通信モジュール(12)が利用する無線通信回線の通信環境が所定の条件を満たさない場合に、前記更新処理の開始を禁止する、
ことを特徴とする車載ソフトウェア更新装置。
[4] [1]に記載の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記更新処理において、前記第2のソフトウェアのダウンロードが完了しなかった場合であって該第2のソフトウェアをダウンロードした回数が規定回数未満のとき、前記第2のソフトウェアを再びダウンロードする、
ことを特徴とする車載ソフトウェア更新装置。
Here, the features of the above-described embodiment of the in-vehicle software update device according to the present invention will be briefly summarized and listed in the following [1] to [4], respectively.
[1] A software holding memory (nonvolatile memory 16) capable of rewriting data and holding software including at least one of a set of data and a program as information;
A wireless communication module (12) capable of wireless communication with a device outside the vehicle;
When a predetermined condition is satisfied, second software related to the first software held in the software holding memory is downloaded via the wireless communication module (12), and the software holding memory is downloaded. A software update control unit (software update control unit 11a of the control unit 11) for controlling an update process for replacing the first software with the second software;
With
The software update control unit writes the downloaded second software into a memory free area secured by erasing or invalidating at least part of the data of the first software,
When the software update control unit detects that the update process has ended abnormally, the software update control unit downloads the first software via the wireless communication module (12) and downloads the downloaded first software to the software update control unit. Write to free memory space,
In-vehicle software update device characterized by the above.
[2] The in-vehicle software update device according to [1],
A position information acquisition unit (GPS module 13) that acquires position information indicating the current position of the host vehicle;
Based on the position information acquired by the position information acquisition unit, it is determined whether or not the host vehicle is within the range of a predetermined area, and the length of the period during which the position of the host vehicle belongs to the range. A warehousing / unloading identification unit (control unit 11) that identifies the state of warehousing and unloading of the own vehicle in response
Further comprising
The software update control unit starts the update process when the warehousing / unloading identification unit detects the warehousing state of the host vehicle.
In-vehicle software update device characterized by the above.
[3] The in-vehicle software update device according to [1] or [2],
The software update control unit prohibits the start of the update process when a communication environment of a wireless communication line used by the wireless communication module (12) does not satisfy a predetermined condition;
In-vehicle software update device characterized by the above.
[4] The in-vehicle software update device according to [1],
The software update control unit is configured to download the second software when the download of the second software is not completed and the number of times the second software is downloaded is less than a predetermined number in the update process. Download again,
In-vehicle software update device characterized by the above.

10 テレマティクス車載端末
11 制御部
11a ソフトウェア更新制御部
11b 入庫出庫識別部
12 無線通信モジュール
13 GPSモジュール
14 外部インタフェース
15 表示部
16 不揮発性メモリ
17 操作インタフェース
18 操作部
19 デジタル5ch入力インタフェース
20 回転インタフェース
21 速度インタフェース
22 電源部
31 通信アンテナ
32 GPSアンテナ
33 外部機器
34 車両側各種センサ
35 エンジン回転センサ
36 速度センサ
37 車両側電源
DESCRIPTION OF SYMBOLS 10 Telematics vehicle-mounted terminal 11 Control part 11a Software update control part 11b Warehousing / discharging identification part 12 Wireless communication module 13 GPS module 14 External interface 15 Display part 16 Non-volatile memory 17 Operation interface 18 Operation part 19 Digital 5ch input interface 20 Rotation interface 21 Speed Interface 22 Power supply unit 31 Communication antenna 32 GPS antenna 33 External device 34 Various sensors on the vehicle side 35 Engine rotation sensor 36 Speed sensor 37 Power source on the vehicle side

Claims (4)

データの集合及びプログラムの少なくとも一方を含むソフトウェアを情報として保持する、データ書き換えが可能なソフトウェア保持用メモリと、
車両外部の機器との間で無線通信が可能な無線通信モジュールと、
予め定めた条件を満たした時に、前記ソフトウェア保持用メモリが保持している第1のソフトウェアと関連がある第2のソフトウェアを前記無線通信モジュールを介してダウンロードし、前記ソフトウェア保持用メモリ上の前記第1のソフトウェアを前記第2のソフトウェアに置き換える更新処理を制御するソフトウェア更新制御部と、
を備え、
前記ソフトウェア更新制御部は、前記更新処理の最初の処理として、前記第2のソフトウェアの最初の一部分のダウンロードを実行すると共にこのダウンロードが正常に完了したか否かを判定し、
このダウンロードが正常に完了していないと判定した場合、前記更新処理を中止し、
このダウンロードが正常に完了したと判定した場合、前記更新処理の前記最初の処理に続く処理として、前記第1のソフトウェアの少なくとも一部分のデータを消去または無効化してメモリ空き領域を確保し、前記第2のソフトウェアの残りの部分のダウンロードを実行すると共にダウンロードした前記第2のソフトウェアを前記メモリ空き領域に書き込み、
前記ソフトウェア更新制御部は、前記更新処理が異常終了したことを検知した場合には、前記第1のソフトウェアを前記無線通信モジュールを介してダウンロードし、ダウンロードした前記第1のソフトウェアを前記メモリ空き領域に書き込む、
ことを特徴とする車載ソフトウェア更新装置。
A software holding memory capable of rewriting data, holding software including at least one of a set of data and a program as information;
A wireless communication module capable of wireless communication with devices outside the vehicle;
When a predetermined condition is satisfied, the second software related to the first software held in the software holding memory is downloaded via the wireless communication module, and the software holding memory A software update control unit for controlling an update process for replacing the first software with the second software;
With
The software update control unit executes download of the first part of the second software as the first process of the update process, and determines whether or not the download has been normally completed,
If it is determined that this download has not been completed successfully, the update process is stopped,
When it is determined that the download has been completed normally, as a process subsequent to the first process of the update process , at least a part of the data of the first software is erased or invalidated to secure a memory free area, Download the remaining portion of the second software and write the downloaded second software into the memory free space ;
When the software update control unit detects that the update process has ended abnormally, the software update control unit downloads the first software via the wireless communication module, and downloads the downloaded first software to the memory free area. Write to the
In-vehicle software update device characterized by the above.
請求項1に記載の車載ソフトウェア更新装置であって、
自車両の現在位置を表す位置情報を取得する位置情報取得部と、
前記位置情報取得部が取得した位置情報に基づき自車両が事前に定めた領域の範囲内にあるか否かを識別すると共に、自車両の位置が前記範囲内に属している期間の長さに応じて自車両の入庫及び出庫の状態を識別する入庫出庫識別部と、
を更に備え、
前記ソフトウェア更新制御部は、前記入庫出庫識別部が、自車両の入庫状態を検出している場合に、前記更新処理を開始する、
ことを特徴とする車載ソフトウェア更新装置。
The in-vehicle software update device according to claim 1,
A position information acquisition unit that acquires position information indicating the current position of the host vehicle;
Based on the position information acquired by the position information acquisition unit, it is determined whether or not the host vehicle is within the range of a predetermined area, and the length of the period during which the position of the host vehicle belongs to the range. A warehousing / unloading identification unit for identifying the state of warehousing and unloading of the own vehicle,
Further comprising
The software update control unit starts the update process when the warehousing / unloading identification unit detects the warehousing state of the host vehicle.
In-vehicle software update device characterized by the above.
請求項1又は請求項2に記載の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記無線通信モジュールが利用する無線通信回線の通信環境が所定の条件を満たさない場合に、前記更新処理の開始を禁止する、
ことを特徴とする車載ソフトウェア更新装置。
The in-vehicle software update device according to claim 1 or 2,
The software update control unit prohibits the start of the update process when a communication environment of a wireless communication line used by the wireless communication module does not satisfy a predetermined condition;
In-vehicle software update device characterized by the above.
請求項1に記載の車載ソフトウェア更新装置であって、
前記ソフトウェア更新制御部は、前記更新処理において、前記第2のソフトウェアのダウンロードが完了しなかった場合であって該第2のソフトウェアをダウンロードした回数が規定回数未満のとき、前記第2のソフトウェアを再びダウンロードする、
ことを特徴とする車載ソフトウェア更新装置。
The in-vehicle software update device according to claim 1,
The software update control unit is configured to download the second software when the download of the second software is not completed and the number of times the second software is downloaded is less than a predetermined number in the update process. Download again,
In-vehicle software update device characterized by the above.
JP2013173296A 2013-08-23 2013-08-23 In-vehicle software update device Active JP6185789B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013173296A JP6185789B2 (en) 2013-08-23 2013-08-23 In-vehicle software update device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013173296A JP6185789B2 (en) 2013-08-23 2013-08-23 In-vehicle software update device

Publications (2)

Publication Number Publication Date
JP2015041334A JP2015041334A (en) 2015-03-02
JP6185789B2 true JP6185789B2 (en) 2017-08-23

Family

ID=52695437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013173296A Active JP6185789B2 (en) 2013-08-23 2013-08-23 In-vehicle software update device

Country Status (1)

Country Link
JP (1) JP6185789B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6697357B2 (en) 2016-09-15 2020-05-20 株式会社日立製作所 Software update system
JP6519708B2 (en) * 2016-10-27 2019-05-29 住友電気工業株式会社 CONTROL DEVICE, PROGRAM UPDATE METHOD, AND COMPUTER PROGRAM
KR102542546B1 (en) * 2016-11-22 2023-06-13 현대모비스 주식회사 Telematics server and remote diagnosis method for vehicle thereof
JP6859282B2 (en) 2018-02-20 2021-04-14 パナソニック株式会社 Electronic devices, program update methods and computer programs
DE112022002715T5 (en) * 2021-05-21 2024-03-07 Denso Corporation ELECTRONIC CONTROL SYSTEM FOR A VEHICLE, UPDATE PROGRAM AND DATA STRUCTURE
JP2023019048A (en) * 2021-07-28 2023-02-09 トヨタ自動車株式会社 Center, method, and program
WO2023182334A1 (en) * 2022-03-25 2023-09-28 京セラ株式会社 Communication device, communication method, and program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3678595B2 (en) * 1999-01-18 2005-08-03 富士通テン株式会社 In-vehicle terminal program recovery method
JP2003204307A (en) * 2002-01-09 2003-07-18 Alpine Electronics Inc Vehicle-mounted receiver and vehicle-mounted system
JP4599953B2 (en) * 2004-09-15 2010-12-15 株式会社デンソー Program rewriting system and vehicle computer system
JP2006143049A (en) * 2004-11-22 2006-06-08 Nissan Motor Co Ltd Vehicle control system and control program rewriting method of on-vehicle control device
JP2006164030A (en) * 2004-12-09 2006-06-22 Canon Inc Firmware update method of multi-function device
JP5078079B2 (en) * 2007-07-24 2012-11-21 パナソニック株式会社 Near field communication device, near field communication system, and near field communication method
JP2012198929A (en) * 2012-06-18 2012-10-18 Toyota Motor Corp Information processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles

Also Published As

Publication number Publication date
JP2015041334A (en) 2015-03-02

Similar Documents

Publication Publication Date Title
JP6185789B2 (en) In-vehicle software update device
US10705826B2 (en) Control apparatus, program updating method, and computer program
JP6519708B2 (en) CONTROL DEVICE, PROGRAM UPDATE METHOD, AND COMPUTER PROGRAM
US9086941B1 (en) System and method for providing predictive software upgrades
US9710975B2 (en) Rental/car-share vehicle access and management system and method
US10915310B2 (en) Control apparatus, program updating method, and computer program
US11021167B2 (en) Vehicle control device, vehicle control method, and storage medium
JP6451899B2 (en) Control device, program update method, and computer program
US11704104B2 (en) Control apparatus, control method, and computer program
US11288156B2 (en) Control apparatus, control method, and computer program
CN110474961A (en) Pure electricity passenger car is based on CAN bus and realizes multi-channel long OTA upgrade method
US20190114162A1 (en) Control apparatus, program updating method, and computer program
JP6465258B1 (en) Control device, control method, and computer program
US9104522B2 (en) Data rewrite system for vehicle, in-vehicle apparatus and rewrite apparatus
CN108008964B (en) Vehicle-mounted network system, management method of vehicle-mounted software and vehicle
JP4718569B2 (en) In-vehicle electronic device and moving locus display system
US20220308857A1 (en) Control device and terminal device
JP2017215888A (en) Control device, program update method, and computer program
JPWO2018142749A1 (en) Control device, program update method, and computer program
US11670117B2 (en) Vehicle and software update method
US20220244946A1 (en) Ota master, update control method, non-transitory storage medium, and vehicle
US11614930B2 (en) Center device, vehicle electronic control system, program update progress control method, and program update progress control program
JP6406132B2 (en) OBE
KR101748274B1 (en) Vehicle information backup unit for storing information of telematics unit, mobile terminal and vehicle information backup system
US20240028326A1 (en) Vehicular electronic control device, rewriting program, and data structure

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20150123

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160719

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161227

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170728

R150 Certificate of patent or registration of utility model

Ref document number: 6185789

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250