[go: up one dir, main page]

JP2009159383A - Communication terminal device - Google Patents

Communication terminal device Download PDF

Info

Publication number
JP2009159383A
JP2009159383A JP2007336069A JP2007336069A JP2009159383A JP 2009159383 A JP2009159383 A JP 2009159383A JP 2007336069 A JP2007336069 A JP 2007336069A JP 2007336069 A JP2007336069 A JP 2007336069A JP 2009159383 A JP2009159383 A JP 2009159383A
Authority
JP
Japan
Prior art keywords
program
communication terminal
download
terminal device
web server
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.)
Pending
Application number
JP2007336069A
Other languages
Japanese (ja)
Inventor
Tokuji Yoneyama
篤司 米山
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.)
Kokusai Denki Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
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 Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2007336069A priority Critical patent/JP2009159383A/en
Publication of JP2009159383A publication Critical patent/JP2009159383A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication terminal which can prevent a device from being unusable even when the device cannot normally be resumed after a program is downloaded, and can enhance the convenience. <P>SOLUTION: This communication terminal is configured to download an updating program from a Web server 4 connected via a network 3 when a control part receives an instruction of downloading the updating program from a user terminal (DTE) 6 connected via a network, to store the program in a memory part, and to try to resume. Further, the communication terminal is configured to download a prior program from the Web server 4 when it is impossible to resume normally if trying to resume a preset number of times, to store the program in the memory part, and to resume. Also, the user terminal 6 is informed that the prior program has been restored. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、通信端末装置に係り、特にダウンロードによってプログラムを更新する際の利便性を向上させることができる通信端末装置に関する。   The present invention relates to a communication terminal device, and more particularly to a communication terminal device that can improve convenience when a program is updated by downloading.

[先行技術の説明]
従来、通信ネットワークを介して自動販売機の商品の販売情報や装置の故障情報を一括して管理するシステムがある。
このようなシステムにおいて、自動販売機には、無線通信を行う通信端末装置が設けられている。
[Description of Prior Art]
2. Description of the Related Art Conventionally, there is a system that collectively manages vending machine product sales information and device failure information via a communication network.
In such a system, the vending machine is provided with a communication terminal device that performs wireless communication.

通信端末装置にプログラムのバージョンアップの必要が生じた場合には、全ての通信端末装置を回収して新しいプログラムに更新するか、各自動販売機毎にプログラムを管理しているWebサーバから無線通信を介して新しいプログラムをダウンロード(エアダウンロード)する。   When it is necessary to upgrade the version of a program in the communication terminal device, all the communication terminal devices are collected and updated to a new program, or wireless communication is performed from a Web server that manages the program for each vending machine. Download a new program (air download).

エアダウンロードを行う場合、自動販売機を管理するユーザが使用するDTE(Data Terminal Equipment;データ端末装置)端末からエアダウンロードの指示を各自動販売機に送信することにより、各自動販売機でのダウンロードが実行される。
しかし、従来の通信端末装置では、エアダウンロードを行った場合に、何らかの理由によりダウンロードが正常に実行されず、新しいプログラムでシステムが正しく動作しない場合があった。
When performing air download, download from each vending machine by sending an air download instruction to each vending machine from a DTE (Data Terminal Equipment) terminal used by the user who manages the vending machine. Is executed.
However, in the conventional communication terminal device, when air download is performed, the download is not normally executed for some reason, and the system may not operate correctly with a new program.

[先行技術文献]
尚、通信端末におけるダウンロードに関する先行技術としては、特開2003−87863号公報(特許文献1)がある。
特許文献1には、携帯端末において、データのダウンロード要求があった場合に、端末の電池残量及び受信電界レベルを検出し、電池残量が所定の残量以上ない場合、または受信電界レベルが所定のレベル以上でない場合にはダウンロードを行わないものであり、電池残量や受信電界レベルの低下によりホームページ閲覧やダウンロードが中断するのを防ぐものである。
[Prior art documents]
In addition, as a prior art regarding the download in a communication terminal, there exists Unexamined-Japanese-Patent No. 2003-87863 (patent document 1).
In Patent Document 1, when there is a data download request in a mobile terminal, the remaining battery level and the received electric field level of the terminal are detected, and when the remaining battery level is not equal to or more than a predetermined remaining level, or the received electric field level is If the level is not higher than a predetermined level, the download is not performed, and the homepage browsing or the download is prevented from being interrupted due to a decrease in the remaining battery level or the received electric field level.

特開2003−87863号公報Japanese Patent Laid-Open No. 2003-87863

しかしながら、従来の通信端末装置では、更新すべきプログラムのエアダウンロードを行った場合に、システムが正しく動作しない場合があり、そのような場合には、ユーザが、通信サービス会社の店舗に当該通信端末装置を持ち込んで、再度ダウンロードを行って正常に動作するまで装置を使用できず、作業が煩雑で不便であるという問題点があった。   However, in the conventional communication terminal device, when the air download of the program to be updated is performed, the system may not operate correctly. In such a case, the user enters the communication terminal of the communication service company. There is a problem that the apparatus cannot be used until the apparatus is brought in, downloaded again, and operates normally, and the work is complicated and inconvenient.

本発明は上記実状に鑑みて為されたもので、ダウンロード後、正常に再起動できなかった場合に、装置が全く使用できなくなるのを防ぎ、利便性を向上させることができる通信端末装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and provides a communication terminal device that can prevent the device from becoming unusable and improve convenience when it cannot be restarted normally after downloading. The purpose is to do.

上記従来例の問題点を解決するための本発明は、無線通信を行ってネットワークに接続する通信端末装置であって、制御部と記憶部とを有し、制御部が、ネットワークを介して接続するユーザ端末から更新用のプログラムをダウンロードする指示を受信すると、ネットワークを介して接続するWebサーバから更新用のプログラムをダウンロードして、記憶部に格納し、再起動を試み、予め設定された一定回数の再起動を試みても正常に起動できなかった場合には、当該更新前のプログラムをWebサーバからダウンロードして、記憶部に格納し、再起動すると共に、更新前のプログラムに戻したことをユーザ端末に通知することを特徴としている。   The present invention for solving the problems of the above conventional example is a communication terminal device that performs wireless communication and connects to a network, and includes a control unit and a storage unit, and the control unit is connected via the network. When an instruction to download an update program is received from the user terminal, the update program is downloaded from a Web server connected via the network, stored in the storage unit, restarted, and set in advance. If it fails to start normally even after trying to restart the number of times, the program before update is downloaded from the Web server, stored in the storage unit, restarted, and returned to the program before update Is notified to the user terminal.

本発明によれば、制御部が、ネットワークを介して接続するユーザ端末から更新用のプログラムをダウンロードする指示を受信すると、ネットワークを介して接続するWebサーバから更新用のプログラムをダウンロードして、記憶部に格納し、再起動を試み、予め設定された一定回数の再起動を試みても正常に起動できなかった場合には、当該更新前のプログラムをWebサーバからダウンロードして、記憶部に格納し、再起動すると共に、更新前のプログラムに戻したことをユーザ端末に通知する通信端末装置としているので、更新用のプログラムをダウンロードした後、正常に再起動できなかったときに、ユーザがわざわざ店舗まで出向いて行かなくても更新前の状態に戻して、通信端末装置が全く使用不能になってしまうのを防ぎ、更にユーザに新しいプログラムになっていないことを明確に報知して、再度ダウンロードを行う指示を出力する等の対処を促すことができ、利便性を向上させることができる効果がある。   According to the present invention, when the control unit receives an instruction to download an update program from a user terminal connected via a network, the control unit downloads and stores the update program from a Web server connected via the network. If the program fails to start normally even after a predetermined number of restarts, the pre-update program is downloaded from the Web server and stored in the storage unit. In addition, since the communication terminal device notifies the user terminal that the program has been restored to the pre-update program at the same time, the user has to bother when the update program cannot be restarted normally after downloading the update program. Even if you do not go to the store, you can return to the state before the update and prevent the communication terminal device from becoming completely unusable, Clearly informed that it is not turned to a new program to the user, can prompt to deal with such outputs an instruction for downloading again, there is an effect that it is possible to improve convenience.

[発明の概要]
本発明の実施の形態について図面を参照しながら説明する。
本発明の実施の形態に係る通信端末装置は、Webサーバから新しいバージョンのプログラムをダウンロードして起動する際に、予め設定された一定回数リトライを行っても正常に起動しなかった場合に、Webサーバから再度古いバージョンのプログラムをダウンロードして保存するロールバック(切り戻し)を行うと共に、ユーザのDTE端末にその旨報知するものであり、エアダウンロード後新しいプログラムで正常に起動できなかった場合に、装置が使用不能に陥るのを防ぐことができ、更にユーザに新しいプログラムのダウンロードが正常に完了しなかったことを報知して再ダウンロード等の対処を促すことができ、ユーザが装置を店舗に持ち込む作業を不要とし、利便性を向上できるものである。
[Summary of Invention]
Embodiments of the present invention will be described with reference to the drawings.
The communication terminal device according to the embodiment of the present invention downloads and starts a new version of a program from a Web server, and if it does not start normally even after retrying a predetermined number of times, When rollback (switchback) is performed to download and save the old version of the program again from the server, the user's DTE terminal is notified of this, and when the new program cannot be started normally after air download The device can be prevented from becoming unusable, and the user can be informed that the download of the new program has not been completed normally to prompt the user to deal with re-downloading. The work to bring in is unnecessary, and the convenience can be improved.

[実施の形態の通信端末装置を含むシステム:図1]
図1は、本発明の実施の形態に係る通信端末装置を含む通信システムの概略構成を示す模式説明図である。
図1に示すように、本実施の形態に係る通信端末装置2を備えた通信システム(本システム)は、自動販売機1と、通信端末装置2と、ネットワーク3と、Webサーバ4と、ルータ5と、DTE端末6とから構成されている。
[System including communication terminal apparatus of embodiment: FIG. 1]
FIG. 1 is a schematic explanatory diagram showing a schematic configuration of a communication system including a communication terminal apparatus according to an embodiment of the present invention.
As shown in FIG. 1, a communication system (this system) including a communication terminal device 2 according to the present embodiment includes a vending machine 1, a communication terminal device 2, a network 3, a Web server 4, and a router. 5 and a DTE terminal 6.

各構成部分について説明する。
本発明の実施の形態に係る通信端末装置(本装置)2は、自動販売機1に内蔵されており、ネットワーク3を介してWebサーバ4及びDTE端末6と通信を行う。そして、通信端末装置2は、DTE端末6又はWebサーバ4からの指示に従って、Webサーバ4からプログラムをダウンロードする処理を行う。
Each component will be described.
A communication terminal device (this device) 2 according to an embodiment of the present invention is built in the vending machine 1 and communicates with the Web server 4 and the DTE terminal 6 via the network 3. Then, the communication terminal device 2 performs a process of downloading a program from the Web server 4 in accordance with an instruction from the DTE terminal 6 or the Web server 4.

Webサーバ4は、データベースを備え、通信端末装置2のプログラムを管理するものであり、現在各通信端末装置2に格納されているプログラムやこれから更新される新しいバージョンのプログラムを記憶している。
そして、ユーザの指示があると、通信端末装置2にダウンロードの指示を送信し、また、通信端末装置2からの要求に従って特定のプログラムを通信端末装置2に出力する。
The Web server 4 includes a database and manages the program of the communication terminal device 2, and stores a program currently stored in each communication terminal device 2 and a new version program to be updated in the future.
When there is an instruction from the user, a download instruction is transmitted to the communication terminal device 2, and a specific program is output to the communication terminal device 2 in accordance with a request from the communication terminal device 2.

DTE端末6は、自動販売機1を管理するユーザが操作する端末であり、ルータ5を介してネットワーク3に接続されている。そして、ユーザの操作により、通信端末装置2に対して、プログラムのバージョン情報等を付して、エアダウンロードの指示をATコマンドで出力する。尚、DTE端末6は、請求項に記載した「ユーザ端末」に相当する。   The DTE terminal 6 is a terminal operated by a user who manages the vending machine 1, and is connected to the network 3 via the router 5. Then, by the user's operation, program version information and the like are attached to the communication terminal apparatus 2 and an air download instruction is output by an AT command. The DTE terminal 6 corresponds to a “user terminal” recited in the claims.

[動作概略]
本装置の動作について簡単に説明する。
上記システムにおいて、DTE端末6又はWebサーバ4から、取得するプログラムのバージョン情報を付してエアダウンロードを行う指示が通信端末装置2に送信されると、指示を受信した通信端末装置2は、Webサーバ4にアクセスして、指定されたバージョンのプログラムを取得して記憶し、再起動を試みる。再起動が正常に実行された場合にはエアダウンロードが完了したことを指示の送出元のDTE端末6に通知する。
[Operation outline]
The operation of this apparatus will be briefly described.
In the above system, when an instruction to perform air download with the version information of the program to be acquired is transmitted from the DTE terminal 6 or the Web server 4 to the communication terminal apparatus 2, the communication terminal apparatus 2 that has received the instruction The server 4 is accessed, the specified version of the program is acquired and stored, and restart is attempted. When the restart is normally executed, the DTE terminal 6 that is the instruction transmission source is notified that the air download has been completed.

また、再起動が正常に実行されなかった場合には、本装置の特徴として、予め設定されている特定回数だけリトライを行い、それでも正常に再起動できなかった場合、通信端末装置2は、ロールバックを実行して、1つ前のバージョンのプログラムをWebサーバ4から取得して記憶し、再起動する。
これにより、ユーザの手を煩わさなくても、通信端末装置2をバージョンアップ前の状態に戻すことができ、通信端末装置2が使用不能に陥るのを防ぐことができるものである。
In addition, when the restart is not executed normally, as a feature of this apparatus, the communication terminal apparatus 2 performs the retry for a specific number of times set in advance. Back is executed, the previous version of the program is acquired from the Web server 4, stored, and restarted.
Accordingly, the communication terminal device 2 can be returned to the state before the version upgrade without bothering the user, and the communication terminal device 2 can be prevented from becoming unusable.

尚、本装置では、再起動が正常に実行されなかった場合にリトライ回数に基づいて自動的にロールバックを行うか否かを任意に設定可能としており、自動ロールバックが設定されている場合には上述したように一連の処理の中でロールバックを行う。自動ロールバックが設定されていない場合には、従来と同様にそのまま処理を終わるものとする。このようにして、本装置の動作が行われる。   In this device, it is possible to arbitrarily set whether or not to automatically roll back based on the number of retries when the restart is not executed normally, and when automatic rollback is set Rolls back in a series of processes as described above. If automatic rollback is not set, the processing is terminated as it is in the prior art. In this way, the operation of this apparatus is performed.

[通信端末装置の構成:図2]
次に、通信端末装置2の構成について図2を用いて説明する。図2は、本実施の形態に係る通信端末装置2の構成ブロック図である。
図2に示すように、通信端末装置2は、主に、無線部(RF:Radio Frequency)20と、CPU(Central Processing Unit)21と、不揮発性メモリ22と、主メモリ23とから構成されている。
[Configuration of Communication Terminal Device: FIG. 2]
Next, the configuration of the communication terminal device 2 will be described with reference to FIG. FIG. 2 is a configuration block diagram of communication terminal apparatus 2 according to the present embodiment.
As shown in FIG. 2, the communication terminal device 2 mainly includes a radio unit (RF) 20, a CPU (Central Processing Unit) 21, a nonvolatile memory 22, and a main memory 23. Yes.

無線部20は、無線通信に伴う信号処理を行う。
CPU21は、不揮発性メモリ22に記憶されている各種プログラムに対応する処理手段を備えており(図示省略)、各処理手段がプログラムを主メモリ23に展開して起動し、通信制御、アプリケーション制御、ダウンロード制御、コマンド解析等の処理を実行する制御部である。
The wireless unit 20 performs signal processing associated with wireless communication.
The CPU 21 includes processing means corresponding to various programs stored in the non-volatile memory 22 (not shown). Each processing means develops and starts the program in the main memory 23, and performs communication control, application control, A control unit that executes processing such as download control and command analysis.

主メモリ23は、RAMで構成され、CPU21のワークメモリとして動作する記憶部である。
不揮発性メモリ22は、フラッシュメモリで構成されており、各種データ24、アプリケーション制御プログラム25、通信制御プログラム26、ダウンロードファイル27、コマンド解析プログラム28、ブートローダプログラム29等の各種データ及びプログラムを記憶する記憶部である。
The main memory 23 is a storage unit that includes a RAM and operates as a work memory of the CPU 21.
The nonvolatile memory 22 is composed of a flash memory, and stores various data and programs such as various data 24, an application control program 25, a communication control program 26, a download file 27, a command analysis program 28, and a boot loader program 29. Part.

各種データ24は、システムを起動するために必要なパラメータ等のデータを記憶する。自動ロールバックの設定や、新しいプログラムのダウンロード後の再起動の回数(規定起動回数)もこのエリアに記憶されている。これらの設定は、DTE端末6からユーザが任意に行うことができるものである。   The various data 24 stores data such as parameters necessary for starting the system. Settings for automatic rollback and the number of restarts after downloading a new program (specified number of startups) are also stored in this area. These settings can be arbitrarily made by the user from the DTE terminal 6.

アプリケーション制御プログラム25は、各種アプリケーションを実現するためのプログラムである。本実施の形態に係るダウンロード時の処理を行うためのプログラムは、アプリケーション制御プログラム25に含まれ、CPU21によって適切なプログラムが起動されて処理が実行されることにより、ダウンロードやロールバックの機能を実現するものである。   The application control program 25 is a program for realizing various applications. The program for performing the processing at the time of downloading according to the present embodiment is included in the application control program 25, and the download and rollback functions are realized by the CPU 21 starting and executing the appropriate program. To do.

通信制御プログラム26は、無線通信を制御するプログラムである。
ダウンロードファイル27は、ダウンロードされたファイルを記憶している。
コマンド解析プログラム28は、DTE端末6から送信されるATコマンドを解析する。
ブートローダプログラム29は、通信端末装置の起動時に動作して、OS(Operating System)を起動する。
ここで、バージョンアップの場合には、新旧2種類のプログラムをそれぞれ記憶しようとすると大容量のメモリが必要になるため、プログラムの更新時には、各プログラムの新しいバージョンを古いバージョンの上に上書きするようになっている。また、変更のあったプログラムだけを更新するようにしてもよいし、プログラム全体を一括して更新するようにしてもよい。
The communication control program 26 is a program that controls wireless communication.
The download file 27 stores the downloaded file.
The command analysis program 28 analyzes the AT command transmitted from the DTE terminal 6.
The boot loader program 29 operates when the communication terminal device is activated, and activates an OS (Operating System).
Here, in the case of version upgrade, it is necessary to store a large amount of memory when trying to store two types of new and old programs. Therefore, when updating a program, the new version of each program is overwritten on the old version. It has become. Further, only the changed program may be updated, or the entire program may be updated collectively.

[エアダウンロードの動作:図3]
次に、通信端末装置2のエアダウンロード時の処理の概略について図3を用いて説明する。図3は、通信端末装置2のCPU21におけるエアダウンロード時の処理の概略を示すフローチャート図である。
図3に示すように、通信端末装置2のCPU21は、Webサーバ4からダウンロードの指示を受信したかどうかを判断し(300)、受信していない場合には、更にDTE端末6からダウンロードの指示を受信したかどうかを判断し(302)、受信していない場合には、処理301に戻って指示を待ち受ける。
[Air download operation: Fig. 3]
Next, the outline of the process at the time of air download of the communication terminal device 2 will be described with reference to FIG. FIG. 3 is a flowchart showing an outline of processing at the time of air download in the CPU 21 of the communication terminal device 2.
As shown in FIG. 3, the CPU 21 of the communication terminal device 2 determines whether a download instruction is received from the Web server 4 (300). If not received, a download instruction is further received from the DTE terminal 6. Is received (302), and if not received, the process returns to the process 301 and waits for an instruction.

処理302でDTE端末6から指示を受信した場合には、CPU21は、DTE端末6からの指示であることを示すDTEフラグをオンにする(DTE_FLG=ON)(303)。
そして、処理301でWebサーバ4からダウンロードの指示を受信した場合、又は処理303の後、CPU21は、ネットワークに接続するためHTTP接続処理を行う(304)。
When receiving an instruction from the DTE terminal 6 in the process 302, the CPU 21 turns on the DTE flag indicating that the instruction is from the DTE terminal 6 (DTE_FLG = ON) (303).
When the download instruction is received from the Web server 4 in the process 301 or after the process 303, the CPU 21 performs an HTTP connection process to connect to the network (304).

接続後、CPU21は、指定されたプログラムをWebサーバ4から取得するプログラム取得処理を行い(305)、取得すると、不揮発性メモリ22に記憶されているプログラムを、処理305で取得した新しいプログラムで書き替えるプログラム書き替え処理を行う(306)。
プログラム取得処理とプログラム書き替え処理については、後で詳細に説明する。
After the connection, the CPU 21 performs a program acquisition process for acquiring the designated program from the Web server 4 (305). When the CPU 21 acquires the program, the program stored in the nonvolatile memory 22 is written with the new program acquired in the process 305. A program rewriting process to be replaced is performed (306).
The program acquisition process and the program rewrite process will be described in detail later.

そして、プログラム書き替え処理が終了すると、CPU21は、DTEフラグがオンになっているかどうかを判断し、オンになっていなければそのまま処理を終わり、オンになっている場合には当該DTE端末6に完了通知を送信して(308)、処理を終わる。
このようにして通信端末装置2のCPU21におけるエアダウンロード時の処理が行われるものである。
When the program rewriting process is completed, the CPU 21 determines whether or not the DTE flag is turned on. If the DTE flag is not turned on, the CPU 21 ends the process. A completion notice is transmitted (308), and the process is terminated.
In this way, the process at the time of air download in the CPU 21 of the communication terminal device 2 is performed.

[プログラム取得処理、プログラム書き替え処理:図4]
次に、図3の処理305で示したプログラム取得処理及び及び処理306で示したプログラム書き替え処理について図4を用いて説明する。図4は、通信端末装置2のプログラム取得処理及びプログラム書き替え処理を示すフローチャート図である。
図4に示すように、通信端末装置2のCPU21は、予め設定されて記憶されている規定起動回数を読み出し(K=規定起動回数)(401)、実際に実行された起動回数を表すNに1を設定する(N=1)(402)。
[Program acquisition processing, program rewriting processing: FIG. 4]
Next, the program acquisition process indicated by process 305 in FIG. 3 and the program rewrite process indicated by process 306 will be described with reference to FIG. FIG. 4 is a flowchart showing program acquisition processing and program rewriting processing of the communication terminal device 2.
As shown in FIG. 4, the CPU 21 of the communication terminal device 2 reads a preset activation count that is preset and stored (K = prescribed activation count) (401), and sets N to indicate the actual activation count. 1 is set (N = 1) (402).

そして、CPU21は、Webサーバ4にダウンロードファイルを取得要求を送信し(403)、まずダウンロード許可としてのファイル取得に成功したか否かを判断し(404)、失敗した場合には、Webサーバ4ダウンロードを失敗したことを示すエラー通知処理を行って(430)、処理を終わる。   Then, the CPU 21 transmits a download file acquisition request to the Web server 4 (403). First, the CPU 21 determines whether or not the file acquisition as a download permission has been successful (404). An error notification process indicating that the download has failed is performed (430), and the process ends.

また、処理404でファイル取得に成功した場合には、CPU21は、更にWebサーバ4にバージョンアップ用のプログラムがあるかどうかを判断し(405)、ない場合には処理を終了する。   If the file acquisition is successful in the process 404, the CPU 21 further determines whether there is a version upgrade program in the Web server 4 (405). If not, the process ends.

処理405でバージョンアップ用のプログラムがあった場合には、CPU21は、当該アップ用のダウンロードファイルを取得して、不揮発性メモリ21に保存する(406)。
そして、CPU21は、通信端末装置2のリブート(再起動)を行う(407)。リブートする場合には、新しいプログラムと古いプログラムとを合わせ込みながら、プログラムを生成して起動する。
If there is a program for upgrading in the process 405, the CPU 21 acquires the download file for upgrading and stores it in the nonvolatile memory 21 (406).
Then, the CPU 21 reboots (restarts) the communication terminal device 2 (407). When rebooting, the program is generated and started while combining the new program and the old program.

CPU21は、正常に起動したかどうかを判断し(408)、正常に起動した場合には、図3に示した処理307に移行する。   The CPU 21 determines whether or not it has started normally (408), and if it has started normally, the process proceeds to the process 307 shown in FIG.

また、処理408で、正常に起動しなかった場合には、本装置の特徴として、実際の起動回数Nが規定された起動回数K以下であるかどうかを判断し(N≦K?)(410)、NがK以下である場合(YESの場合)には、起動回数Nに1を加算して(N=N+1)(420)、処理407に戻って再起動をリトライする。   Further, when the process is not started normally in the process 408, it is determined as a characteristic of the present apparatus whether or not the actual startup number N is equal to or less than the specified startup number K (N ≦ K?) (410 ) If N is equal to or less than K (in the case of YES), 1 is added to the number N of times of activation (N = N + 1) (420), and the process returns to processing 407 to retry the restart.

処理410で、NがKより大きくなった場合(NOの場合)には、CPU21は、自動ロールバックが設定されているかどうかを判断し(412)、設定されていなければ処理を終了する。   If N is greater than K (NO) in process 410, the CPU 21 determines whether or not automatic rollback is set (412). If it is not set, the process ends.

また、処理412で、自動ロールバックが設定されている場合には、CPU21は、1つ前のバージョンを指定してWebサーバ4にダウンロードを要求し、1つ前のファイルをダウンロードする(414)。
更にCPU21は、ロールバックを行ったことを示す切り戻しフラグをオンにし(416)、処理406に移行して、取得した1つ前のファイルを不揮発性メモリに保存する。
If the automatic rollback is set in the process 412, the CPU 21 designates the previous version and requests the Web server 4 to download, and downloads the previous file (414). .
Further, the CPU 21 turns on a switchback flag indicating that rollback has been performed (416), proceeds to processing 406, and saves the acquired previous file in the nonvolatile memory.

尚、処理405でWebサーバ4にアップ用のファイルがなかった場合、及び処理412で自動ロールバックが設定されていなかった場合で、図3に示したDTEフラグがオンになっている場合には、DTE端末6にダウンロードが正常に行われなかった旨を報知するエラー通知を行うように構成してもよい。
このようにして、本装置におけるプログラム取得処理及びプログラム書き替え処理が行われるものである。
In the case where there is no up file in the Web server 4 in the process 405, and in the case where the automatic rollback is not set in the process 412, the DTE flag shown in FIG. 3 is turned on. The DTE terminal 6 may be configured to perform error notification for notifying that the download has not been performed normally.
In this way, the program acquisition process and the program rewrite process in this apparatus are performed.

これにより、従来は、新しいプログラムのダウンロード処理後、DTE端末6から起動確認を行って、正常な反応がなかった場合に初めて「異常」であることが判明して、ユーザが店舗に持ち込んで対処するようになっていたが、本装置では、新しいプログラムのダウンロード後正常に起動できなくても、ユーザの手を煩わせることなく、今までと同様の動作は支障なく行うことができるようにして、装置の当面の使用を可能とし、利便性を大幅に向上させることができるものである。   Thus, conventionally, after a new program is downloaded, the activation is confirmed from the DTE terminal 6, and when there is no normal response, it is found that the "abnormal" is the first time, and the user brings it to the store to deal with it. However, even if this device cannot be started normally after downloading a new program, the same operation as before can be performed without any trouble, even if it cannot be started normally. Therefore, the apparatus can be used for the time being, and the convenience can be greatly improved.

尚、自動ロールバックが設定されておらず、ロールバックを手動で行う場合には、ユーザがDTE端末6から1つ前のバージョンを指定してダウンロード指示を出力し、それに基づいて通信端末装置2がダウンロードを行うようにしている。   If the automatic rollback is not set and the rollback is performed manually, the user designates the previous version from the DTE terminal 6 and outputs a download instruction. Is trying to download.

[ロールバック実施通知処理:図5]
次に、本装置が自動ロールバックを行った場合にその旨ユーザに通知するロールバック実施通知処理について図5を用いて説明する。図5は、本装置のロールバック実施通知処理を示すフローチャート図である。
図5に示すように、ロールバック実施通知処理は、ダウンロード指示がなされた場合に起動されるものであり、CPU21が、Webサーバ4又はDET6からダウンロード指示がなされたかどうかを判断し(501)、ダウンロード指示があった場合には、ダウンロード処理が終了したかどうかを判断する(502)。ここで、「ダウンロード処理」とは、図3の処理301〜308に示したエアダウンロード処理である。
[Rollback execution notification processing: FIG. 5]
Next, a rollback execution notification process for notifying the user when the apparatus performs automatic rollback will be described with reference to FIG. FIG. 5 is a flowchart showing the rollback execution notification process of the present apparatus.
As shown in FIG. 5, the rollback execution notification process is started when a download instruction is issued. The CPU 21 determines whether a download instruction is issued from the Web server 4 or DET 6 (501). If there is a download instruction, it is determined whether the download process has been completed (502). Here, the “download process” is the air download process shown in the processes 301 to 308 of FIG.

そして、ダウンロード処理が終了した場合に、CPU21は、切り戻しフラグがオンであるかどうかを判断し(503)、切り戻しフラグがオンであれば、DTE端末6へロールバック実施を通知する(504)。
そして、CPU21は、切り戻しフラグをリセットし(505)、処理を終わる。
このようにして、ロールバック実施通知処理が行われる。
When the download process is completed, the CPU 21 determines whether or not the switchback flag is on (503). If the switchback flag is on, the CPU 21 notifies the DTE terminal 6 of the rollback (504). ).
Then, the CPU 21 resets the switchback flag (505) and ends the process.
In this way, rollback execution notification processing is performed.

通知メッセージの例としては、「再起動が正常に行われませんでしたので、ロールバックを実施しました」等が考えられる。これにより、ユーザは、新しいバージョンのプログラムでの再起動が正常に行われなかったために、1つ前のプログラムに戻ったことを認識でき、再度新しいプログラムのダウンロードを指示する等の対応が可能となるものである。   An example of the notification message is “Restart was not performed normally, so rollback was performed”. As a result, the user can recognize that the program has been restarted with the new version of the program and has returned to the previous program, and can respond such as instructing to download the new program again. It will be.

[実施の形態の効果]
本発明の実施の形態に係る通信端末装置によれば、受信したダウンロードの指示に従って、Webサーバ4から新しいプログラムをダウンロードした際に、予め規定された一定回数以上再起動を行っても正常に起動できなかった場合、1つ前のプログラムをダウンロードして再起動するロールバックを行う通信端末装置としているので、バージョンアップ時に再起動に失敗しても、ユーザの手を煩わせることなくそれまでと同様の動作に戻すことができ、装置が全く使用不能になってしまうのを防ぐことができ、ユーザが店舗まで当該装置を持ち込まずに済み、利便性を向上させることができる効果がある。
[Effect of the embodiment]
According to the communication terminal device according to the embodiment of the present invention, when a new program is downloaded from the Web server 4 in accordance with the received download instruction, it starts normally even if it is restarted more than a predetermined number of times. If it is not possible, it is a communication terminal device that performs rollback to download and restart the previous program, so even if restart fails at the time of version upgrade, it does not bother the user It is possible to return to the same operation, to prevent the device from becoming unusable at all, and to eliminate the need for the user to bring the device to the store, thereby improving convenience.

また、本装置によれば、自動的にロールバックを行った場合に、ロールバックを行った旨をDTE端末6に通知するようにしているので、ユーザに、当該通信端末装置が新しいプログラムにバージョンアップされておらず、それまでのプログラムで起動していることを確実に知らせることができ、ユーザに、再度新しいプログラムのダウンロード指示を行うよう促すことができると共に、ユーザに誤解や不満及び不信感を与えるのを防ぐ効果がある。   Further, according to the present apparatus, when the rollback is automatically performed, the DTE terminal 6 is notified that the rollback has been performed, so that the communication terminal apparatus is updated to a new program. It can be sure that it is not up and running with the previous program, and can prompt the user to instruct the user to download a new program again, as well as misunderstanding, dissatisfaction and distrust to the user. There is an effect to prevent giving.

更に、本装置によれば、自動的にロールバックを行うか否かをユーザがDTE端末6から任意に設定可能としているので、使い勝手を向上させることができる効果がある。   Furthermore, according to the present apparatus, since the user can arbitrarily set whether or not to perform rollback automatically from the DTE terminal 6, there is an effect that usability can be improved.

本発明は、ダウンロードによってプログラムを更新する際の利便性を向上させることができる通信端末装置に適している。   The present invention is suitable for a communication terminal device that can improve convenience when a program is updated by downloading.

本発明の実施の形態に係る通信端末装置を含む通信システムの概略構成を示す模式説明図である。It is a schematic explanatory drawing which shows schematic structure of the communication system containing the communication terminal device which concerns on embodiment of this invention. 本実施の形態に係る通信端末装置2の構成ブロック図である。It is a block diagram of the configuration of the communication terminal device 2 according to the present embodiment. 通信端末装置2のCPU21におけるエアダウンロード時の処理の概略を示すフローチャート図である。It is a flowchart figure which shows the outline of the process at the time of air download in CPU21 of the communication terminal device 2. FIG. 通信端末装置2のプログラム取得処理及びプログラム書き替え処理を示すフローチャート図である。It is a flowchart figure which shows the program acquisition process of the communication terminal device 2, and a program rewriting process. 本装置のロールバック実施通知処理を示すフローチャート図である。It is a flowchart figure which shows the rollback execution notification process of this apparatus.

符号の説明Explanation of symbols

1…自動販売機、 2…通信端末装置、 3…ネットワーク、 4…Webサーバ、 5…ルータ、 6…DTE端末、 20…無線部、 21…CPU、 22…不揮発性メモリ、 23…主メモリ、 24…各種データ、 25…アプリケーション制御プログラム、 26…通信制御プログラム、 27…ダウンロードファイル、 28…コマンド解析プログラム、 29…ブートローダプログラム   DESCRIPTION OF SYMBOLS 1 ... Vending machine, 2 ... Communication terminal device, 3 ... Network, 4 ... Web server, 5 ... Router, 6 ... DTE terminal, 20 ... Radio | wireless part, 21 ... CPU, 22 ... Non-volatile memory, 23 ... Main memory, 24 ... Various data, 25 ... Application control program, 26 ... Communication control program, 27 ... Download file, 28 ... Command analysis program, 29 ... Boot loader program

Claims (1)

無線通信を行ってネットワークに接続する通信端末装置であって、
制御部と記憶部とを有し、
前記制御部が、ネットワークを介して接続するユーザ端末から更新用のプログラムをダウンロードする指示を受信すると、ネットワークを介して接続するWebサーバから前記更新用のプログラムをダウンロードして、前記記憶部に格納し、再起動を試み、予め設定された一定回数の再起動を試みても正常に起動できなかった場合には、前記更新前のプログラムを前記Webサーバからダウンロードして、前記記憶部に格納し、再起動すると共に、前記更新前のプログラムに戻したことを前記ユーザ端末に通知することを特徴とする通信端末装置。
A communication terminal device that performs wireless communication and connects to a network,
A control unit and a storage unit;
When the control unit receives an instruction to download an update program from a user terminal connected via a network, the control unit downloads the update program from a Web server connected via the network and stores it in the storage unit If the program fails to start normally even after a predetermined number of attempts, the pre-update program is downloaded from the Web server and stored in the storage unit. The communication terminal device that restarts and notifies the user terminal that the program has been returned to the pre-update program.
JP2007336069A 2007-12-27 2007-12-27 Communication terminal device Pending JP2009159383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007336069A JP2009159383A (en) 2007-12-27 2007-12-27 Communication terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007336069A JP2009159383A (en) 2007-12-27 2007-12-27 Communication terminal device

Publications (1)

Publication Number Publication Date
JP2009159383A true JP2009159383A (en) 2009-07-16

Family

ID=40962877

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007336069A Pending JP2009159383A (en) 2007-12-27 2007-12-27 Communication terminal device

Country Status (1)

Country Link
JP (1) JP2009159383A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009448A (en) * 2019-03-14 2019-07-12 深圳友宝科斯科技有限公司 Article control method, device, computer equipment and computer readable storage medium
CN110097690A (en) * 2018-01-31 2019-08-06 鸿富锦精密工业(武汉)有限公司 Vending machine and its communication means

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110097690A (en) * 2018-01-31 2019-08-06 鸿富锦精密工业(武汉)有限公司 Vending machine and its communication means
CN110009448A (en) * 2019-03-14 2019-07-12 深圳友宝科斯科技有限公司 Article control method, device, computer equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN100517248C (en) Software edition upgrading management device and software edition upgrading management method
US7275153B2 (en) Booting and boot code update system using boot strapper code to select between a loader and a duplicate backup loader
TWI533216B (en) Operating system updating method
CN112910714A (en) Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN110083374A (en) A kind of upgrading rollback method, system and terminal device
US20120117557A1 (en) Method and system for upgrading wireless data card
JP2003029997A (en) Software upgrade method in network environment and network device thereby
CN110580167A (en) system upgrading method, intelligent device and server
US20230132494A1 (en) Information processing apparatus, method of controlling the same, and storage medium
CN112416411A (en) Upgrade method and apparatus, device end, server, computer readable medium
JP6482211B2 (en) Information processing apparatus, control method thereof, and program
JP7206106B2 (en) Information processing device and program
CN109992280A (en) An embedded software upgrade method, terminal device and storage device
CN105814545B (en) Electronic equipment
JP2009159383A (en) Communication terminal device
JP2002189609A (en) System and method for updating software adapted to accident
CN114090045A (en) Firmware upgrading method applied to multi-singlechip control system and related equipment
CN104423997A (en) Remote base station version installing method and remote base station version installing device
US20080064382A1 (en) Program updating method of wireless communication terminal and wireless communication terminal using the same
CN114968662B (en) Management system, method, device and medium for device firmware
CN114168169B (en) A microcode updating method, device, equipment and storage medium
CN100484038C (en) Network element version switching method and device
CN113721959A (en) Information processing method and device and electronic equipment
JPWO2012077604A1 (en) Processing apparatus, program update method, and program
JP2004355389A (en) Remote update system