JP2000330777A - Program exchanging method - Google Patents

Program exchanging method

Info

Publication number
JP2000330777A
JP2000330777A JP11140028A JP14002899A JP2000330777A JP 2000330777 A JP2000330777 A JP 2000330777A JP 11140028 A JP11140028 A JP 11140028A JP 14002899 A JP14002899 A JP 14002899A JP 2000330777 A JP2000330777 A JP 2000330777A
Authority
JP
Japan
Prior art keywords
data
program
exchange
information processing
exchanging
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
JP11140028A
Other languages
Japanese (ja)
Inventor
Kazuhiro Uemura
和容 植村
Noriyoshi Ichise
規善 市瀬
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP11140028A priority Critical patent/JP2000330777A/en
Publication of JP2000330777A publication Critical patent/JP2000330777A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To secure the storage capacity of an information processor at a maximum and to evade a deficiency in storage capacity at the time of data transfer by temporarily saving program and data which are not necessary while programs are exchanged. SOLUTION: A data deleting means 213 of a terminal-side device 2 specifies files which can temporarily be deleted, saves copies of files which are not objects of program exchanging among those files in a program exchange restoration data storage part 115 of a server device 1, and deletes the files which can temporarily be deleted from a storage device 22. A data transfer means 214 transfers all file groups stored in a data A storage part 111 for program exchanging to a free area of the storage device 22. Data A are actually exchanged. The data transfer means 214 transfers file groups stored in a data B storage part 112 for program exchanging to the storage device 22 and then sequential exchanging is carried out.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム交換方
法に関し、特に、資源の少ない情報処理装置のプログラ
ムやデータの交換作業において、データ転送時の記憶容
量不足を回避するとともに、通信路切断による転送中断
が生じても好適にプログラムやデータの交換を遂行でき
るプログラムの交換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of exchanging programs, and more particularly, to exchanging programs and data of an information processing apparatus with less resources, avoiding a shortage of storage capacity at the time of data transfer, and transferring the data by disconnecting a communication path. The present invention relates to a method for exchanging programs that can preferably exchange programs and data even if interruption occurs.

【0002】[0002]

【従来の技術】近年では、例えばPOS(Point of Sal
es)システムや携帯型情報端末システム等のように、限
られた機能を持たせた情報入力端末をサーバ型情報処理
装置と接続してデータ管理を行うコンピュータシステム
が様々な態様で利用されている。このようなシステムに
おいて、端末側情報処理装置内のプログラムやデータを
更新・交換等する必要が生じた場合には、通常端末装置
には独立の交換プログラム取込み手段を設けずに、サー
バ側からプログラム交換用データを端末側に伝送してプ
ログラム交換を実施するようにしている。
2. Description of the Related Art In recent years, for example, POS (Point of Sal
es) Computer systems that perform data management by connecting an information input terminal having limited functions to a server-type information processing device, such as a system and a portable information terminal system, are used in various forms. . In such a system, when it becomes necessary to update / exchange programs and data in the terminal-side information processing device, the terminal device usually does not have an independent exchange program fetching means, and the server side executes the program. The exchange data is transmitted to the terminal to execute the program exchange.

【0003】ところで、端末側装置がサーバ側装置に接
続している状況でも、例えば端末側情報処理装置が携帯
型無線端末である場合等には通信状態が悪化して通信が
切断されてしまう場合がある。また、サーバ側情報処理
装置のスロットに差込んでコネクタ接続するようなタイ
プの端末装置は容易に取外すことができ、予期せぬ切断
が想定しうる。更に、接続中に電源コードの挿抜等によ
り電源供給がストップして接続が中断される場合もあ
る。
By the way, even when the terminal-side device is connected to the server-side device, for example, when the terminal-side information processing device is a portable wireless terminal, the communication state deteriorates and the communication is disconnected. There is. Further, a terminal device of a type that is inserted into a slot of a server-side information processing device and connected to a connector can be easily removed, and unexpected disconnection can be assumed. Further, during connection, power supply may be stopped due to insertion and removal of a power cord, and the connection may be interrupted.

【0004】端末側情報処理装置に対するプログラム交
換中にこのような切断が生じると、プログラムやデータ
が一部しか交換されずに、端末装置のシステムが不正な
状態となってしまう場合がある。この不具合を回避する
ため、一般的に、サーバ側装置から転送するプログラム
交換用データの全てを端末側情報処理装置の空き記憶領
域に一旦格納して、当該転送が最後まで正常終了してか
らプログラム交換を実施することが行われている。
If such a disconnection occurs during the exchange of the program for the terminal-side information processing device, only a part of the program or data is exchanged, and the terminal system may be in an incorrect state. In order to avoid this problem, generally, all of the program exchange data transferred from the server-side device is temporarily stored in an empty storage area of the terminal-side information processing device, and the program is transferred after the transfer is normally completed to the end. An exchange is taking place.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、通常端
末側情報処理装置は限られた記憶容量で構成されるた
め、プログラム交換用データのサイズが大きいと転送中
に空き記憶領域が足りなくなる場合がある。データ転送
中に記憶領域が一杯になるとそれ以上のデータ転送は不
可能となり、装置は転送が異常終了したと判断して交換
作業を中止するため、端末装置の記憶装置の空き容量が
少ない場合にはプログラムの交換を行うことができなか
った。
However, since the terminal-side information processing device is usually configured with a limited storage capacity, if the size of the program exchange data is large, the free storage area may become insufficient during transfer. . If the storage area becomes full during data transfer, further data transfer becomes impossible, and the device judges that the transfer has ended abnormally and stops the exchange work. Could not exchange programs.

【0006】そこで、本発明は、プログラム交換中に端
末側装置内において必要としないプログラム及びデータ
を一時的に待避させることで、端末側情報処理装置の記
憶容量を最大限に確保してデータ転送時の記憶容量不足
を極力回避してプログラムの交換を行う方法を提供する
ことを目的とする。
Therefore, the present invention secures the storage capacity of the terminal-side information processing device to the maximum by temporarily saving unnecessary programs and data in the terminal-side device during the program exchange, thereby transferring data. It is an object of the present invention to provide a method for exchanging programs while avoiding a shortage of storage capacity at the time.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、接続手段を介して接続された外部記憶手
段から交換用プログラムやデータを伝送することにより
情報処理装置内のプログラムやデータを交換する方法で
あって、前記情報処理装置においてプログラム交換中に
必要となるプログラム以外のプログラムの実行を必要に
応じて停止する工程と、前記プログラム交換を実行する
のに必要のないプログラムやデータを一時的に待避させ
る工程と、前記交換用プログラムやデータを前記情報処
理装置に伝送して交換する工程と、前記プログラムやデ
ータの交換が終了したら、前記一時的に待避させたプロ
グラムやデータを前記情報処理装置に復元する工程と、
を具えることを特徴とする。
In order to achieve the above object, the present invention provides a method for transmitting a program or data in an information processing apparatus by transmitting a replacement program or data from an external storage means connected via a connection means. A method of exchanging data, wherein the information processing apparatus stops executing programs other than the programs required during the program exchange as necessary in the information processing apparatus, and a program not required to execute the program exchange. A step of temporarily saving data, a step of transmitting the exchange program or data to the information processing apparatus and exchanging the same, and after the exchange of the program or data is completed, the temporarily saved program or data. Restoring the information processing device,
It is characterized by having.

【0008】このように、情報処理装置内のプログラム
交換を実施するにあたり、当該プログラム交換に必要と
ならないプログラムの実行を必要に応じて停止させ、プ
ログラムやデータを一時的に待避させることにより、記
憶媒体の空き容量を確保してからのデータ転送が可能と
なり、転送中の記憶容量不足の発生を抑制することがで
きる。
As described above, when the program exchange in the information processing apparatus is performed, the execution of the program that is not necessary for the program exchange is stopped as necessary, and the program and data are temporarily saved, thereby storing the program and data. Data transfer after securing the free space of the medium becomes possible, and occurrence of shortage of storage capacity during transfer can be suppressed.

【0009】上記の方法において、前記プログラムやデ
ータを一時的に待避させるには、前記プログラム交換に
必要のないプログラムやデータを前記接続手段を介して
接続された外部装置の記憶手段に転送して待避させる
か、あるいは、前記プログラム交換に必要のないプログ
ラムやデータを圧縮することにより実現することができ
る。
In the above method, in order to temporarily save the programs and data, the programs and data that are not necessary for the program exchange are transferred to storage means of an external device connected via the connection means. This can be realized by saving the program or compressing programs and data that are not necessary for the program exchange.

【0010】また、本発明のプログラム交換方法では、
前記交換用プログラムやデータを前記情報処理装置に伝
送して交換する工程は、前記交換用プログラムやデータ
をまず前記情報処理装置の空き記憶領域に転送し、この
転送が全て終了した後に実際の交換を行うようにしても
良い。このように、交換用プログラムを全て情報処理装
置の空き記憶領域に全て転送してから実際の交換を行う
ようにすると、転送途中に通信路が切断された場合はデ
ータの交換は行われないため、かかる場合に一部のデー
タのみが交換されてシステムに不具合が生じることを防
ぐことができる。また、転送が中断された場合にも再び
交換用データを転送すればプログラム交換を遂行するこ
とができる。
Further, according to the program exchange method of the present invention,
The step of transmitting and exchanging the exchange program or data to the information processing apparatus includes first transferring the exchange program or data to a free storage area of the information processing apparatus, and after completing the transfer, the actual exchange. May be performed. As described above, if all the exchange programs are transferred to the free storage area of the information processing apparatus before the actual exchange is performed, data exchange is not performed if the communication path is disconnected during the transfer. In such a case, it is possible to prevent the system from malfunctioning due to the exchange of only part of the data. Even if the transfer is interrupted, the program exchange can be performed by transferring the exchange data again.

【0011】あるいは、予め前記交換用プログラムやデ
ータを、一部のデータだけが交換された場合に前記情報
処理装置のシステムが不正となる可能性のあるデータ
と、一部のデータだけが交換された場合でも前記情報処
理装置のシステムが不正とならないデータとに分けてお
き、前記交換用プログラムやデータを前記情報処理装置
に伝送して交換する工程が、前記一部のデータだけが交
換された場合にシステムが不正となる可能性のあるデー
タを前記情報処理装置の空き記憶領域に転送し、この転
送が全て終了した後に実際の交換を行うと共に、前記一
部のデータだけが交換された場合でもシステムが不正と
ならないデータをそのまま前記情報処理装置の記憶手段
に伝送することで交換を行うようにしても良い。
Alternatively, only a part of the exchange program or data is exchanged with data which may cause the system of the information processing apparatus to be illegitimate if only a part of the data is exchanged. In the case where the system of the information processing apparatus is divided into data that does not become illegal even if the data is exchanged, the step of transmitting and exchanging the exchange program and data to the information processing apparatus and exchanging only the partial data is performed. In the case where the system transfers data that may be illegal to the free storage area of the information processing device, and when the transfer is completed, the actual exchange is performed, and only a part of the data is exchanged. However, the exchange may be performed by transmitting data that does not become illegal by the system to the storage means of the information processing apparatus as it is.

【0012】このようにプログラム交換を行うようにす
ると、上述のように全ての交換用データを転送してから
交換する方法に比して、情報処理装置の空き記憶領域に
転送するデータ容量を少なくすることができるため、よ
り有効にデータ転送時の記憶容量不足を回避することが
できる。
When the program exchange is performed in this manner, the data capacity to be transferred to the free storage area of the information processing apparatus is reduced as compared with the method of transferring all the exchange data and exchanging the data as described above. Therefore, it is possible to more effectively avoid shortage of storage capacity at the time of data transfer.

【0013】[0013]

【発明の実施の形態】本発明の実施の形態を、添付の図
面を参照しながら以下に詳細に説明する。図1は本発明
の方法を適用する情報処理装置システムの一例を示す図
である。図1を参照すると、本実施例は、プログラム交
換用データを供給する情報処理装置1(以下、適宜「サ
ーバ側装置」と称す。)と、例えば携帯型情報端末など
のような情報処理装置2(以下、適宜「端末側装置」と
称す。)とで構成される。サーバ側装置1は少なくとも
記憶装置11を有しており、一方端末側装置2はプログ
ラム制御により動作するデータ処理装置21と、記憶装
置22とを具えている。
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a diagram showing an example of an information processing apparatus system to which the method of the present invention is applied. Referring to FIG. 1, in this embodiment, an information processing apparatus 1 (hereinafter, appropriately referred to as a “server-side apparatus”) that supplies data for program exchange, and an information processing apparatus 2 such as a portable information terminal, for example. (Hereinafter, appropriately referred to as “terminal-side device”). The server-side device 1 has at least a storage device 11, while the terminal-side device 2 has a data processing device 21 operated by program control and a storage device 22.

【0014】サーバ側装置1側の記憶装置11は、2つ
のプログラム交換用データ記憶部111、112と、プ
ログラム交換用データ情報記憶部113と、プログラム
交換削除可能データ情報記憶部114と、プログラム交
換復元データ記憶部115と、プログラム交換復元デー
タ情報記憶部116と、を具えている。
The storage device 11 of the server-side device 1 includes two program exchange data storage units 111 and 112, a program exchange data information storage unit 113, a program exchange deletable data information storage unit 114, a program exchange A restoration data storage unit 115 and a program exchange restoration data information storage unit 116 are provided.

【0015】このサーバ側装置1内で、端末装置2への
プログラム交換用データを構成するファイルは2つのデ
ータ記憶部111、112に分けて格納されている。す
なわち、プログラム交換用データファイルのうち、端末
装置2に対するプログラム交換が途中で失敗し一部のフ
ァイルのみが交換された場合に、端末側装置2のシステ
ムが不正な状態に陥ってしまう可能性のあるファイル
(以下、データAと呼ぶ。)は記憶部111に、かかる
場合にも端末装置2のシステムが不正な状態に陥ること
のないファイル(以下、データBと呼ぶ。)は記憶部1
12に格納されている。
In the server-side device 1, files constituting data for exchanging programs with the terminal device 2 are separately stored in two data storage units 111 and 112. In other words, when the program exchange for the terminal device 2 in the program exchange data file fails on the way and only some of the files are exchanged, the system of the terminal device 2 may fall into an incorrect state. A certain file (hereinafter, referred to as data A) is stored in the storage unit 111, and a file (hereinafter, referred to as data B) that does not cause the system of the terminal device 2 to be in an unauthorized state even in such a case is stored in the storage unit 1.
12 is stored.

【0016】プログラム交換用データ情報記憶部113
には、上記データ記憶部111及び112に格納された
各ファイルの名前(場所を含む)及び交換先における名
前(場所を含む)を特定できる情報が登録されている。
Data information storage unit 113 for program exchange
Registered therein are information that can specify the name (including location) of each file stored in the data storage units 111 and 112 and the name (including location) at the exchange destination.

【0017】プログラム交換削除可能データ情報記憶部
114には、端末側装置2内のファイルのうち、プログ
ラム交換の実行にあたり端末装置2が必要としないファ
イルであって、一旦削除してもプログラム交換を遂行す
ることが可能なファイルの名前(場所を含む)を特定で
きる情報が登録されている。
The program-exchange-deletable data information storage unit 114 stores, among the files in the terminal-side device 2, files that are not required by the terminal device 2 for executing the program exchange. Information that can specify the name (including the location) of a file that can be executed is registered.

【0018】プログラム交換復元データ記憶部115
は、プログラム交換にあたり端末装置2から待避するフ
ァイルをプログラム交換後に端末装置2に戻すために一
時的に格納しておく記憶領域である。また、プログラム
交換復元データ情報記憶部116には、この復元データ
記憶部115に一時的に待避されたファイルの名前(元
にあった場所を含む)が登録される。
Program exchange / restoration data storage section 115
Is a storage area for temporarily storing files to be saved from the terminal device 2 when exchanging programs so as to return to the terminal device 2 after exchanging programs. In the program exchange restoration data information storage unit 116, the names (including the original locations) of the files temporarily saved in the restoration data storage unit 115 are registered.

【0019】一方、端末側装置2のプログラム交換処理
部211は、プログラム停止手段212と、データ削除
手段213と、データ転送手段214と、データ復元手
段215とを具えている。
On the other hand, the program exchange processing unit 211 of the terminal device 2 includes a program stopping unit 212, a data deleting unit 213, a data transferring unit 214, and a data restoring unit 215.

【0020】プログラム停止手段212は、プログラム
交換中に必要となるプログラム以外のプログラムの実行
を、必要であれば停止する。データ削除手段213は、
サーバ側装置1の削除可能データ情報記憶部114の情
報をもとに交換の対象でないファイルであって一時的に
待避可能なファイルを選択し、選択したファイルの複製
を前記プログラム交換復元データ記憶部115に格納す
ると共に、必要な情報(格納したファイル名および復元
先における名前、いずれも場所を含む)をプログラム交
換復元データ情報記憶部116に登録する。更に、これ
らの工程が終了したら、一旦削除可能なファイルを記憶
装置22から削除する。
The program stopping means 212 stops the execution of programs other than those required during the exchange of programs, if necessary. The data deletion means 213
Based on the information in the erasable data information storage unit 114 of the server-side device 1, a file that is not an exchange target and that can be temporarily saved is selected, and a copy of the selected file is copied to the program exchange restoration data storage unit. At the same time, the necessary information (the stored file name and the name of the restoration destination, both including the location) is registered in the program exchange restoration data information storage unit 116. Further, when these steps are completed, files that can be deleted once are deleted from the storage device 22.

【0021】データ転送手段214は、サーバ側装置1
のプログラム交換用データ情報記憶部113の情報をも
とに、まずデータA記憶部111のデータを全て記憶装
置22に転送した後に実際の交換を行い、次いでデータ
B記憶部112のデータを記憶装置22に順次転送する
ことで交換を行う。
The data transfer means 214 is the server-side device 1
First, based on the information of the program exchange data information storage unit 113, first, all the data of the data A storage unit 111 is transferred to the storage device 22 and then the actual exchange is performed. Then, the data of the data B storage unit 112 is stored in the storage device. The transfer is performed by sequentially transferring the data to the storage 22.

【0022】データ復元手段215は、上記のプログラ
ム交換が終了した後に、一時的にサーバ側装置1の交換
復元データ記憶部115に待避させていたファイルを、
プログラム交換復元データ情報記憶部116の情報をも
とに記憶装置22に転送することで復元する。
The data restoring means 215 stores the file temporarily saved in the exchange restoration data storage unit 115 of the server-side apparatus 1 after the above-mentioned program exchange is completed.
It is restored by transferring it to the storage device 22 based on the information in the program exchange restoration data information storage unit 116.

【0023】このように構成したシステムの動作を、図
2に示すフローチャートを用いて詳細に説明する。例え
ば携帯型情報端末システムにおいて、端末装置2のプロ
グラム交換処理部211がプログラム交換要求を検出す
ると、プログラム停止手段212はプログラム交換中に
必要となるプログラム以外のプログラムの実行を停止す
る(ステップA1)。
The operation of the system configured as described above will be described in detail with reference to the flowchart shown in FIG. For example, in the portable information terminal system, when the program exchange processing unit 211 of the terminal device 2 detects a program exchange request, the program suspending unit 212 suspends the execution of programs other than the programs required during the program exchange (step A1). .

【0024】次に、データ削除手段213が、サーバ装
置1の削除可能データ情報記憶部114の情報に基づき
一時的に削除可能なファイルを特定し、これらのうちプ
ログラム交換の対象とならないファイルの複製を前記プ
ログラム交換復元データ記憶部115に待避させると共
に、ここで待避したファイルを復元するために必要な情
報(格納したファイル名および復元先における名前、い
ずれも場所を含む)をプログラム交換復元データ情報記
憶部116に登録した後、一旦削除可能なファイルを記
憶装置22から削除する(ステップA2)。
Next, the data deleting means 213 specifies files that can be temporarily deleted based on the information in the deletable data information storage section 114 of the server device 1, and copies the files that are not subject to program exchange among these files. Is stored in the program exchange and restoration data storage unit 115, and information necessary for restoring the file saved here (the stored file name and the name at the restoration destination, including the location) is stored in the program exchange and restoration data information. After registration in the storage unit 116, the file that can be deleted once is deleted from the storage device 22 (step A2).

【0025】次に、データ転送手段214が、サーバ装
置1のプログラム交換用データ情報記憶部113の情報
に基づき、プログラム交換用データA記憶部111に記
憶されている全てのファイル群を記憶装置22の空き領
域に転送する(ステップA3)。この時点では、データ
A(プログラム交換が途中で失敗し一部のファイルのみ
が交換された場合に、端末側装置2のシステムが不正な
状態に陥ってしまう可能性のあるファイル)は記憶装置
22に格納されただけであり実際のプログラム交換は行
われていないため、例えば転送途中で通信路が切断され
転送が失敗した場合にもシステムが不正な状態に陥るこ
とはない。通信が正常終了したか否かはステップA4で
判断され、正常終了しなかった場合は記憶装置22の空
き領域をチェックし(ステップA5)、まだ空き領域が
ある場合には通信路を再接続してプログラム交換を再実
行する。ステップA5にて空き領域がない場合にはエラ
ー処理を行いプログラム交換を終了する。
Next, the data transfer unit 214 stores all the file groups stored in the program exchange data A storage unit 111 based on the information in the program exchange data information storage unit 113 of the server device 1 in the storage unit 22. (Step A3). At this point, the data A (a file that may cause the system of the terminal-side device 2 to enter an improper state when the program exchange fails halfway and only some files are exchanged) is stored in the storage device 22. And the actual program exchange is not performed. Therefore, even if the communication path is disconnected during the transfer and the transfer fails, for example, the system does not fall into an illegal state. It is determined in step A4 whether or not the communication has been completed normally. If the communication has not been completed normally, a free area of the storage device 22 is checked (step A5). Re-execute the program exchange. If there is no free area in step A5, error processing is performed and the program exchange ends.

【0026】ステップA4にてデータAに係るファイル
の転送が全て正常終了したら、データAの実際の交換を
実施する(ステップA6)。このようにしてデータAに
係るファイル群は記憶装置22に全て格納された後に交
換されるため、その一部しか交換されずにシステムが不
正な状態に陥ることはない。
When the transfer of all files related to the data A is completed normally in step A4, the actual exchange of data A is performed (step A6). Since the files related to the data A are exchanged after being stored in the storage device 22 in this manner, the system does not fall into an unauthorized state because only a part of them is exchanged.

【0027】次に、データ転送手段214は、プログラ
ム交換用データ情報記憶部113の情報をもとに、プロ
グラム交換用データ記憶部112に記憶されているファ
イル群を記憶装置22に転送し、これにより順次交換が
実施される(ステップA7)。なお、ここで転送される
データBは上述したように一部のファイルのみが交換さ
れた場合にも端末装置2のシステムが不正な状態に陥る
ことのないファイルであり、この転送が途中で途切れる
ことがあってもシステムは不正な状態に陥ることはな
い。
Next, the data transfer means 214 transfers the file group stored in the program exchange data storage unit 112 to the storage device 22 based on the information in the program exchange data information storage unit 113, (Step A7). Note that the data B transferred here is a file that does not cause the system of the terminal device 2 to be in an invalid state even when only some of the files are exchanged as described above, and this transfer is interrupted on the way. In any case, the system will not fall into the wrong state.

【0028】次に、データ復元手段215は、プログラ
ム交換復元データ情報記憶部116の情報をもとに、デ
ータ削除手段213が前記ステップA2で一旦削除した
ファイルを、プログラム交換復元データ記憶部115か
ら転送することにより復元する(ステップA8)。
Next, the data restoration means 215 retrieves the file once deleted by the data deletion means 213 in step A2 from the program exchange restoration data storage 115 based on the information in the program exchange restoration data information storage 116. It is restored by transferring (step A8).

【0029】これらを全て転送できたか否かをステップ
A9で判断し、転送できた場合にはプログラム交換は完
了する。ステップA9にて転送の中断を検出した場合に
は記憶装置22の空き容量をチェックして(ステップA
10)、空き容量があれば通信路の切断があったものと
判断できるため再接続してファイル転送のやり直しを試
み、空き容量がなければ記憶装置22の空容量不足とし
てエラー処理を行いプログラム交換を終了する。
It is determined in step A9 whether or not all of these have been transferred, and if they have been transferred, the program exchange is completed. If the interruption of the transfer is detected in step A9, the free space of the storage device 22 is checked (step A9).
10) If there is free space, it can be determined that the communication path has been disconnected. Therefore, reconnection is performed and file transfer is attempted again. To end.

【0030】このようにプログラム交換を行うようにす
れば、情報処理装置間のプログラム交換用データの転送
時に予め待避可能なファイルをサーバ側に移しておくこ
とで、端末側装置の限られた記憶領域の空き容量を増や
してデータ転送に備えることができる。また、転送途中
に予期せぬ通信路の切断が生じても、端末装置のシステ
ムが不正な状態に陥ることなく再接続してプログラム交
換を続行することができる。
If the program exchange is performed as described above, the files that can be evacuated are transferred to the server side in advance when the program exchange data is transferred between the information processing apparatuses, so that the limited storage of the terminal side apparatus is achieved. The free space in the area can be increased to prepare for data transfer. Further, even if an unexpected disconnection of the communication path occurs during the transfer, the system of the terminal device can be reconnected and the program exchange can be continued without falling into an unauthorized state.

【0031】図3及び図4は、本発明の他の実施形態を
説明する図である。図3を参照すると本実施例は、プロ
グラムやデータの待避/復元手段として図1に示すデー
タ削除手段213とデータ復元手段215ではなく、デ
ータ圧縮手段413とデータ復元手段415を有してい
る。また、図1に示すプログラム交換削除可能データ情
報記憶部114の代りにプログラム交換圧縮可能データ
情報記憶部314を有する。更に、図1に示すプログラ
ム交換復元データ記憶部115とプログラムデータ交換
復元データ情報記憶部116ではなく、端末側装置21
の記憶装置42に、プログラム交換圧縮データ記憶部4
21とプログラム交換復元情報記憶部422を有してい
る。本実施例においてその他の構成要素は図1に示す例
と概略同じ機能を有するものとし、重複する説明は以下
に省略する。
FIGS. 3 and 4 are diagrams for explaining another embodiment of the present invention. Referring to FIG. 3, this embodiment has a data compression unit 413 and a data restoration unit 415 as a program and data save / restore unit instead of the data deletion unit 213 and the data restoration unit 215 shown in FIG. Further, a program exchange compressible data information storage unit 314 is provided instead of the program exchange deleteable data information storage unit 114 shown in FIG. Further, instead of the program exchange restoration data storage unit 115 and the program data exchange restoration data information storage unit 116 shown in FIG.
Of the program exchange compressed data storage unit 4
21 and a program exchange / restoration information storage unit 422. In the present embodiment, the other components have substantially the same functions as those of the example shown in FIG. 1, and overlapping descriptions will be omitted below.

【0032】プログラム交換圧縮可能データ情報記憶部
314には、端末側装置2内のファイルのうち、プログ
ラム交換の実行にあたり端末装置2が必要としないファ
イルであって、圧縮してもプログラム交換を遂行するこ
とが可能なファイルの名前(場所を含む)を特定できる
情報が予め登録されている。
The program exchange compressible data information storage unit 314 stores, among the files in the terminal device 2, the files that the terminal device 2 does not need to execute the program exchange. Information that can specify the name (including the location) of a file that can be used is registered in advance.

【0033】データ圧縮手段413は、このプログラム
交換圧縮可能データ情報記憶部314の情報をもとに一
旦圧縮可能なファイルを特定し、これらを圧縮してプロ
グラム交換圧縮データ記憶部421に格納するととも
に、圧縮したファイルを復元するために必要な情報をプ
ログラム交換復元情報記憶部422に登録した後、記憶
装置42からこれらのファイルを削除する。
The data compression means 413 specifies a compressible file once based on the information in the program exchange compressible data information storage section 314, compresses these files and stores them in the program exchange compression data storage section 421. After the information necessary for restoring the compressed files is registered in the program exchange / restoration information storage unit 422, these files are deleted from the storage device 42.

【0034】データ復元手段415は、データ圧縮手段
413がプログラム交換圧縮データ記憶部421に格納
した圧縮ファイルを、プログラム交換復元情報記憶部4
22の情報に基づいて記憶装置42に解凍することによ
り復元する。復元した後は、プログラム交換圧縮データ
記憶部421及びプログラム交換復元情報記憶部422
に格納したデータを削除する。
The data restoration means 415 stores the compressed file stored in the program exchange / compression data storage section 421 by the data compression means 413 into the program exchange / reconstruction information storage section 4.
The data is restored by decompressing it in the storage device 42 based on the information of 22. After the restoration, the program exchange compressed data storage unit 421 and the program exchange restoration information storage unit 422
Delete the data stored in.

【0035】図4はこの実施例の動作を示すフローチャ
ートである。図4において図2と同一の符号で示す工程
は図2で説明したのと同じ工程であり、その重複する説
明はここでは省略する。
FIG. 4 is a flowchart showing the operation of this embodiment. In FIG. 4, the steps indicated by the same reference numerals as those in FIG. 2 are the same steps as those described in FIG. 2, and the overlapping description will be omitted here.

【0036】本実施例では、プログラム交換にあたり記
憶装置42の空き領域を確保するために、データ圧縮手
段413がプログラム交換圧縮可能データ情報記憶部3
14の情報をもとに、プログラム交換を実行するのに必
要としないファイルを一旦圧縮し記憶装置42内のプロ
グラム交換圧縮データ記憶部421に待避させるととも
に、圧縮したファイルを復元するために必要な情報をプ
ログラム交換復元情報記憶部422に登録する(ステッ
プB2)。また、データ復元手段425は、プログラム
交換用データAの交換が終了した後に、前記圧縮したフ
ァイルを解凍することで復元する(ステップB7)。そ
の後、プログラム交換用データBを転送することにより
データBの交換が実施される(ステップB8)。
In the present embodiment, in order to secure a free area of the storage device 42 when exchanging programs, the data compression means 413 is used by the program exchange compressible data information storage unit 3.
On the basis of the information of No. 14, files that are not necessary for executing the program exchange are temporarily compressed and saved in the program exchange compressed data storage unit 421 in the storage device 42, and necessary for restoring the compressed files. The information is registered in the program exchange / restoration information storage unit 422 (step B2). Further, after the exchange of the program exchange data A is completed, the data restoration unit 425 restores the compressed file by decompressing the compressed file (step B7). Thereafter, the exchange of data B is performed by transferring the data B for program exchange (step B8).

【0037】このように本実施例のシステムを構成して
も、図1に示す例と同様の効果を得ることができる。す
なわち、端末装置内の待避可能なファイルを圧縮するこ
とで記憶装置の空き容量を増やしてプログラム変換用デ
ータの転送に備えると共に、データ転送中に通信路の切
断が生じてもシステムが不正な状態に陥ることなくプロ
グラム交換を実施することができる。
Even when the system according to the present embodiment is configured as described above, the same effect as that of the example shown in FIG. 1 can be obtained. In other words, by compressing the savable files in the terminal device, the free space of the storage device is increased to prepare for the transfer of the program conversion data, and the system is in an illegal state even if the communication path is disconnected during the data transfer. It is possible to carry out program exchange without falling into.

【0038】以上、本発明の実施形態について詳細に説
明したが、本発明の技術的範囲は上記実施形態の例に限
るものではなく、他にも様々な例として実現することが
できる。例えば、上記実施例ではプログラム交換にあた
り必要に応じて端末側装置で実行中のプログラムを停止
するようにしているが、実際のシステムにおいてプログ
ラム交換が終了した際に再び停止したプログラムを自動
的に立ち上げるように構成しても良い。
Although the embodiments of the present invention have been described in detail, the technical scope of the present invention is not limited to the above-described embodiments, but can be realized as various other examples. For example, in the above-described embodiment, the program being executed on the terminal device is stopped when necessary in the program exchange. However, when the program exchange is completed in the actual system, the stopped program is automatically started again. You may comprise so that it may raise.

【0039】また、プログラム交換用データを供給する
サーバ側装置は、例えばメモリカード等の記憶手段であ
っても良い。例えば端末側装置に交換用データを格納し
たメモリカードを挿入してプログラム交換を行うシステ
ムにおいて、カードが不意に抜かれてデータ転送が中断
した場合であっても本発明によれば不具合を生じること
なくプログラム交換を遂行することができる。なお、一
般的にメモリカードの記憶容量は少ないことを考慮する
と、この場合は本願第2実施例として図3に示したよう
にデータを端末側装置内で圧縮する方法を好適に用いる
ことができる。
The server-side device that supplies the program exchange data may be a storage means such as a memory card. For example, in a system for exchanging programs by inserting a memory card storing exchange data into a terminal device, even if the card is unexpectedly removed and data transfer is interrupted, according to the present invention, no problem occurs. A program exchange can be performed. Considering that the storage capacity of a memory card is generally small, in this case, a method of compressing data in the terminal device as shown in FIG. 3 can be suitably used as the second embodiment of the present invention. .

【0040】更に、上記実施例ではプログラム交換時の
動作制御は端末側装置のデータ処理装置21、41が行
うようにしているが、この動作制御はサーバ側装置1、
3の制御部が、あるいは、図示しない第3の情報処理装
置が担うようにしても良い。また、図1に示す例ではプ
ログラム交換に必要のないプログラムやデータを外部記
憶手段に転送することにより、図3に示す例では圧縮す
ることにより待避させるようにしたが、これを組合わせ
て、プログラム交換に必要のないプログラムやデータを
圧縮したうえで外部記憶手段に転送して待避させるよう
にしても良い。
Further, in the above embodiment, the operation control at the time of program exchange is performed by the data processing devices 21 and 41 of the terminal device.
The third control unit or a third information processing device (not shown) may perform the control. Further, in the example shown in FIG. 1, programs and data not necessary for the program exchange are transferred to the external storage means, and in the example shown in FIG. 3, they are saved by compression, but by combining them, A program or data that is not necessary for program exchange may be compressed and then transferred to an external storage unit for saving.

【0041】[0041]

【発明の効果】上述したように、本発明によれば、端末
装置のプログラム交換にあたり必要とならないプログラ
ムやデータを一旦待避させることにより、データ転送に
備えて記憶領域を広く確保することができるため、記憶
容量不足によるデータ転送の中断を回避することができ
る。
As described above, according to the present invention, by temporarily saving programs and data that are not required for exchanging programs in a terminal device, a wide storage area can be secured in preparation for data transfer. In addition, interruption of data transfer due to insufficient storage capacity can be avoided.

【0042】更に、予め交換用プログラムを分けてお
き、一部のデータだけが交換された場合にシステムが不
正となる可能性のあるデータを記憶媒体の空き領域に転
送した後に実際の交換を行うようにすると共に、一部の
データだけが交換された場合でもシステムが不正となら
ないデータをそのまま前記記憶媒体に伝送することで交
換を行うようにしているため、全ての交換用データを転
送してから交換する方法に比して、より有効にデータ転
送時の記憶容量不足を回避することができる。
Further, the exchange program is divided in advance, and the actual exchange is performed after transferring the data which may cause the system to be illegitimate when only a part of the data is exchanged, to the free area of the storage medium. In addition to the above, even when only some data is exchanged, the system performs exchange by transmitting data that does not become illegal to the storage medium as it is, so that all exchange data is transferred. Insufficient storage capacity at the time of data transfer can be avoided more effectively as compared with the method of exchanging data.

【図面の簡単な説明】[Brief description of the drawings]

【図1】図1は、本発明の第1実施例の構成を示す図で
ある。
FIG. 1 is a diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】図2は、図1に示すシステムの動作を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing an operation of the system shown in FIG. 1;

【図3】図3は、本発明の第2実施例の構成を示す図で
ある。
FIG. 3 is a diagram showing a configuration of a second exemplary embodiment of the present invention.

【図4】図4は、図3に示すシステムの動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing an operation of the system shown in FIG. 3;

【符号の説明】[Explanation of symbols]

1、3 サーバ側情報処理装置 2、4 端末側情報処理装置 11、31 サーバ側記憶装置 21、41 データ処理装置 22、42 端末側記憶装置 211、411 プログラム交換処理部 1, 3 server-side information processing device 2, 4 terminal-side information processing device 11, 31 server-side storage device 21, 41 data processing device 22, 42 terminal-side storage device 211, 411 program exchange processing unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 接続手段を介して接続された外部記憶手
段から交換用プログラムやデータを伝送することにより
情報処理装置内のプログラムやデータを交換する方法で
あって、 前記情報処理装置においてプログラム交換中に必要とな
るプログラム以外のプログラムの実行を必要に応じて停
止する工程と、 前記プログラム交換を実行するのに必要のないプログラ
ムやデータを一時的に待避させる工程と、 前記交換用プログラムやデータを前記情報処理装置に伝
送して交換する工程と、 前記プログラムやデータの交換が終了したら、前記一時
的に待避させたプログラムやデータを前記情報処理装置
に復元する工程と、を具えることを特徴とするプログラ
ム交換方法。
1. A method for exchanging programs and data in an information processing apparatus by transmitting exchange programs and data from an external storage means connected via a connection means, comprising: Stopping the execution of programs other than those required during the program as necessary; temporarily saving programs and data unnecessary to execute the program exchange; and the exchange program and data Transmitting the program and data to the information processing device and exchanging the program and data, and restoring the temporarily saved program and data to the information processing device after the exchange of the program and data is completed. A featured program exchange method.
【請求項2】 請求項1に記載のプログラム交換方法に
おいて、前記プログラムやデータを一時的に待避させる
工程及び復元する工程は、前記接続手段を介して接続さ
れている外部記憶手段に前記プログラムやデータを転送
して待避させると共に、ここで転送したプログラムやデ
ータを前記情報処理手段に再び転送して復元することを
特徴とするプログラム交換方法。
2. The program exchange method according to claim 1, wherein the step of temporarily saving and restoring the program or data includes the step of storing the program or data in an external storage unit connected via the connection unit. A program exchange method, wherein data is transferred and saved, and the transferred program or data is transferred again to the information processing means and restored.
【請求項3】 請求項1に記載のプログラム交換方法に
おいて、前記プログラムやデータを一時的に待避させる
工程及び復元する工程は、前記プログラムやデータを圧
縮することにより待避させると共に、ここで圧縮したプ
ログラムやデータを解凍することにより復元することを
特徴とするプログラム交換方法。
3. The program exchanging method according to claim 1, wherein the step of temporarily saving and restoring the program or data is performed by compressing the program or data and compressing the program or data. A method of exchanging a program, characterized in that a program or data is restored by decompressing it.
【請求項4】 請求項1乃至3のいずれかに記載のプロ
グラム交換方法において、前記交換用プログラムやデー
タを前記情報処理装置に伝送して交換する工程は、前記
交換用プログラムやデータをまず前記情報処理装置の空
き記憶領域に転送し、この転送が全て終了した後に実際
の交換を行うことを特徴とするプログラム交換方法。
4. The program exchange method according to claim 1, wherein the step of transmitting and exchanging the exchange program and data to the information processing apparatus first comprises exchanging the exchange program and data with each other. A program exchange method, wherein the program is transferred to a free storage area of an information processing apparatus, and the actual exchange is performed after the transfer is completed.
【請求項5】 請求項1乃至3のいずれかに記載のプロ
グラム交換方法において、予め前記交換用プログラムや
データを、一部のデータだけが交換された場合に前記情
報処理装置のシステムが不正となる可能性のあるデータ
と、一部のデータだけが交換された場合でも前記情報処
理装置のシステムが不正とならないデータとに分けてお
き、 前記交換用プログラムやデータを前記情報処理装置に伝
送して交換する工程が、前記一部のデータだけが交換さ
れた場合にシステムが不正となる可能性のあるデータを
前記情報処理装置の空き記憶領域に転送し、この転送が
全て終了した後に実際の交換を行うと共に、前記一部の
データだけが交換された場合でもシステムが不正となら
ないデータをそのまま前記情報処理装置の記憶手段に伝
送することで交換を行うことを特徴とするプログラム交
換方法。
5. The program exchanging method according to claim 1, wherein the exchange program or data is exchanged in advance when only a part of the exchange program or data is exchanged. Data and the data of the information processing apparatus, even if only some of the data is exchanged, is not illegal, and the exchange program and the data are transmitted to the information processing apparatus. And exchanging the data, the system may transfer data that may be incorrect if only a part of the data is exchanged to a free storage area of the information processing apparatus, and after the transfer is completed, the actual While performing the exchange, even if only a part of the data is exchanged, the system can transmit the data which does not become invalid to the storage means of the information processing apparatus as it is. Program exchange method and performing conversion.
【請求項6】 請求項1乃至5のいずれかに記載のプロ
グラム交換方法において、前記外部記憶手段は、前記情
報処理装置に接続された第2の情報処理手段の記憶装置
であることを特徴とするプログラム交換方法。
6. The program exchange method according to claim 1, wherein the external storage unit is a storage device of a second information processing unit connected to the information processing device. How to exchange programs.
【請求項7】 請求項1乃至5のいずれかに記載のプロ
グラム交換方法において、前記外部記憶手段は、前記情
報処理装置に対して挿抜可能なメモリカードであること
を特徴とするプログラム交換方法。
7. The program exchange method according to claim 1, wherein said external storage means is a memory card that can be inserted into and removed from said information processing apparatus.
JP11140028A 1999-05-20 1999-05-20 Program exchanging method Pending JP2000330777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11140028A JP2000330777A (en) 1999-05-20 1999-05-20 Program exchanging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11140028A JP2000330777A (en) 1999-05-20 1999-05-20 Program exchanging method

Publications (1)

Publication Number Publication Date
JP2000330777A true JP2000330777A (en) 2000-11-30

Family

ID=15259285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11140028A Pending JP2000330777A (en) 1999-05-20 1999-05-20 Program exchanging method

Country Status (1)

Country Link
JP (1) JP2000330777A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076554A (en) * 2001-09-05 2003-03-14 Sharp Corp Software update system, portable information terminal and server to be used for the same, software updating method, its computer program and recording medium with the program recorded thereon
US7538901B2 (en) 2002-08-27 2009-05-26 Ricoh Company, Ltd. Multifunction peripheral with efficient use of memory resources
KR101013773B1 (en) 2002-12-19 2011-02-14 가부시키가이샤 고마쓰 세이사쿠쇼 Rewrite control apparatus for onboard program
JP2013060047A (en) * 2011-09-12 2013-04-04 Toyota Motor Corp Vehicle network system, and method of processing vehicle information
JP2014191574A (en) * 2013-03-27 2014-10-06 Denso Corp Electronic control device for vehicle and control program
JP5653568B1 (en) * 2013-12-03 2015-01-14 三菱電機株式会社 Network system
JP2022014797A (en) * 2020-07-07 2022-01-20 トヨタ自動車株式会社 On-vehicle device, on-vehicle system and vehicle

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076554A (en) * 2001-09-05 2003-03-14 Sharp Corp Software update system, portable information terminal and server to be used for the same, software updating method, its computer program and recording medium with the program recorded thereon
US7538901B2 (en) 2002-08-27 2009-05-26 Ricoh Company, Ltd. Multifunction peripheral with efficient use of memory resources
KR101013773B1 (en) 2002-12-19 2011-02-14 가부시키가이샤 고마쓰 세이사쿠쇼 Rewrite control apparatus for onboard program
JP2013060047A (en) * 2011-09-12 2013-04-04 Toyota Motor Corp Vehicle network system, and method of processing vehicle information
JP2014191574A (en) * 2013-03-27 2014-10-06 Denso Corp Electronic control device for vehicle and control program
JP5653568B1 (en) * 2013-12-03 2015-01-14 三菱電機株式会社 Network system
JP2022014797A (en) * 2020-07-07 2022-01-20 トヨタ自動車株式会社 On-vehicle device, on-vehicle system and vehicle
JP7334688B2 (en) 2020-07-07 2023-08-29 トヨタ自動車株式会社 In-vehicle device and vehicle

Similar Documents

Publication Publication Date Title
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
US7793060B2 (en) System method and circuit for differential mirroring of data
EP1569120A1 (en) Computer system for recovering data based on priority of the data
JPH02310665A (en) Data restoration method for distributed transaction processing system
CN104486319A (en) Real-time synchronization method and real-time synchronization system for configuration file applied to high-availability system
WO2024103594A1 (en) Container disaster recovery method, system, apparatus and device, and computer-readable storage medium
JP2001034568A (en) Logical path establishing method, and storage medium
JP3901060B2 (en) Application update processing method, update processing system, and update processing program
JP2000330777A (en) Program exchanging method
US20090248760A1 (en) Backup method of computer system
EP0409604A2 (en) Processing method by which continuous operation of communication control program is obtained
EP0881569A2 (en) File system and file management method which realize distributed replication in system having shared type raid
WO2020094063A1 (en) Data storage method and device, storage medium and electronic device
JP2005293469A (en) System and method for data copy
US8560691B2 (en) Relocating item in distributed storage system
JP3598202B2 (en) Online system
JP3627619B2 (en) Two-phase commit avoidance method and program recording medium
JP3088683B2 (en) Data communication system
JP2645065B2 (en) Information download system
JP3216618B2 (en) Data failure recovery method for video server device and medium recording data failure recovery program
CN113127151B (en) Real-time copying method, system and medium for data in virtualization environment
WO2017013791A1 (en) Data backup system
JP3973285B2 (en) File transfer method, file transfer control device, and recording medium recording file transfer program
JP3434311B2 (en) Electronic exchange
KR100308836B1 (en) How to initialize a multiprocessor system using a compressed program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040720

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041116