JP2001125789A - Program download method - Google Patents

Program download method

Info

Publication number
JP2001125789A
JP2001125789A JP30557899A JP30557899A JP2001125789A JP 2001125789 A JP2001125789 A JP 2001125789A JP 30557899 A JP30557899 A JP 30557899A JP 30557899 A JP30557899 A JP 30557899A JP 2001125789 A JP2001125789 A JP 2001125789A
Authority
JP
Japan
Prior art keywords
program
memory
data
task
area
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
JP30557899A
Other languages
Japanese (ja)
Inventor
Keiichi Kadokawa
啓一 角川
Tatsumi Takagi
辰美 高木
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.)
Tamura Electric Works Ltd
Original Assignee
Tamura Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tamura Electric Works Ltd filed Critical Tamura Electric Works Ltd
Priority to JP30557899A priority Critical patent/JP2001125789A/en
Publication of JP2001125789A publication Critical patent/JP2001125789A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent complication in management on the side of a managing device and the malfunction of a program on the side of a terminal in the case of revising the task program of the terminal on the basis of download. SOLUTION: When revising the task program of the terminal (I/F device 5, for example), a managing device 4 initializes an area 43A corresponding to this terminal, stores all programs including the revise task program, performs check sum operation concerning all data in the area 43A and downloads all the programs and the result of the check sum operation to the terminal. After a receiving area 55A is initialized, the terminal writes the download program and simultaneously writes all the data of the area 55A in a memory 54. After this write is completed, the terminal performs check sum operation concerning all the data in the memory 54, compares the result with the result of the check sum operation on the side of the managing device and discriminates whether download is right or not.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、公衆電話機等の端
末において実行されるプログラムを前記端末へダウンロ
ードするプログラムダウンロード方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program download method for downloading a program to be executed on a terminal such as a public telephone to the terminal.

【0002】[0002]

【従来の技術】この種の公衆電話機等の端末は電話回線
を介して管理装置に接続されている。各端末を管理する
前記管理装置は、各端末において実行されるプログラム
を自身のデータベースに格納している。ここで、端末に
おいてプログラムの改版の必要が生じた場合は、まずデ
ータベース内の該当端末のプログラムを更新し、更新し
たデータベース内のプログラムを電話回線を介して該当
端末にダウンロードし該当端末のプログラムを書き替え
る。
2. Description of the Related Art A terminal such as a public telephone of this type is connected to a management device via a telephone line. The management device that manages each terminal stores a program executed in each terminal in its own database. Here, if it is necessary to update the program on the terminal, first update the program of the terminal in the database, download the updated program in the database to the terminal via the telephone line, and download the program of the terminal. Rewrite.

【0003】こうした端末のプログラムは複数のタスク
プログラムから構成されていることから、端末に対して
各タスクプログラムを個別にダウンロードして端末の該
当タスクプログラムを新たな版数のタスクプログラムに
更新することが検討されている。
[0003] Since such a terminal program is composed of a plurality of task programs, it is necessary to individually download each task program to the terminal and update the corresponding task program of the terminal to a new version of the task program. Is being considered.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、端末の
各タスクプログラムを個別にダウンロードして更新する
場合、管理装置側では1つの端末毎に版数の異なる複数
のタスクプログラムが混在するため、管理装置側の管理
が複雑化するという問題がある。また、端末側ではダウ
ンロードされた新規版数のタスクプログラムとダウンロ
ードされない旧版数のタスクプログラムの混在によっ
て、誤動作を招く恐れがある。このため、管理装置側の
管理の複雑化を防止するとともに、端末側のダウンロー
ドされたプログラムとダウンロードされないプログラム
の混在に起因する誤動作を防止できるようなダウンロー
ド方法が要望されている。したがって、本発明は、ダウ
ンロードに基づき端末のタスクプログラムを更新する場
合、管理装置側の管理の複雑化を防止するとともに、端
末側の誤動作を未然に防止することを目的とする。
However, when each task program of a terminal is individually downloaded and updated, a plurality of task programs having different versions are mixed for each terminal on the management device side. There is a problem that management on the side becomes complicated. In addition, a malfunction may occur on the terminal side due to a mixture of a downloaded new version of the task program and an undownloaded old version of the task program. For this reason, there is a demand for a download method that can prevent the management device from becoming complicated in management and prevent a malfunction caused by a mixture of a downloaded program and a non-downloaded program on the terminal side. Therefore, an object of the present invention is to prevent management of the management apparatus from becoming complicated when updating a task program of a terminal based on download, and to prevent a malfunction on the terminal side.

【0005】[0005]

【課題を解決するための手段】このような課題を解決す
るために本発明は、複数の端末と、管理装置とからな
り、端末は第1のメモリを内蔵するとともに第1のメモ
リに格納されたプログラムを実行し、管理装置は複数の
端末の各プログラムがそれぞれ格納される複数の第2の
メモリを有し、プログラムの改版の必要が生じた改版対
象端末に対し、改版対象端末に対応する第2のメモリの
改版プログラムをダウンロードして改版対象端末の第1
のメモリのプログラムを更新するシステムにおいて、端
末の第1のメモリのプログラムを構成する複数のタスク
プログラムのうち少なくとも1つのタスクプログラムの
改版の要請が発生すると、管理装置により改版対象端末
に対応する第2のメモリのタスクプログラムを改版する
改版ステップと、タスクプログラムの改版後、管理装置
から改版対象端末へアクセスするステップと、アクセス
した改版対象端末へ第2のメモリの改版タスクプログラ
ムを含む全てのタスクプログラムをダウンロードするダ
ウンロードステップと、改版対象端末の第1のメモリの
全てのタスクプログラムをダウンロードされたタスクプ
ログラムに更新する更新ステップを有するようにしたこ
とにより特徴づけられる。
In order to solve the above-mentioned problems, the present invention comprises a plurality of terminals and a management device. The terminals have a first memory and are stored in the first memory. The management device has a plurality of second memories in which the respective programs of the plurality of terminals are respectively stored. Download the revision program for the second memory and download the first
In the system for updating a program in the memory of the above, when a request for revision of at least one task program among the plurality of task programs constituting the program of the first memory of the terminal occurs, the management device causes the A step of revising the task program of the second memory; a step of accessing the terminal to be revised from the management device after the revision of the task program; and all tasks including the task of revising the second memory to the accessed terminal to be revised. It is characterized by having a download step of downloading a program and an update step of updating all task programs in the first memory of the terminal to be updated with the downloaded task program.

【0006】この場合、前記改版ステップは、端末のタ
スクプログラム改版の要請が発生すると、改版対象端末
に対応する第2のメモリを初期化するステップと、初期
化された第2のメモリに改版タスクプログラムを含む全
てのタスクプログラムを各個に格納するステップと、第
2のメモリ内のタスクプログラムを含む全てのデータに
ついてチェックサム演算を行うステップとを有し、か
つ、前記ダウンロードステップは、第2のメモリ内のタ
スクプログラムとチェックサム演算結果とを改版対象端
末へダウンロードするステップを有するとともに、前記
更新ステップは、ダウンロードされたタスクプログラム
を受信すると、第2のメモリと同一の容量を有する第1
のメモリを初期化するステップと、初期化された第1の
メモリに受信タスクプログラムを書き込むステップと、
第1のメモリに受信タスクプログラムが書き込まれる
と、第1のメモリの全てのデータについてチェックサム
演算を行うステップと、チェックサム演算結果と、ダウ
ンロードされたチェックサム演算結果とを比較し、比較
結果を管理装置へ返送するステップとを有する。また、
前記更新ステップは、ダウンロードされたタスクプログ
ラムを受信すると、第2のメモリと同一の容量を有する
第3のメモリを初期化するステップと、初期化された第
3のメモリに受信タスクプログラムを書き込むととも
に、第3のメモリの全てのデータを第3のメモリと同一
容量を有する第1のメモリに順次書き込むステップとを
有する。
In this case, the revision step includes a step of initializing a second memory corresponding to the terminal to be revised when a request for a task program revision of the terminal occurs, and a step of updating the task in the initialized second memory. Storing each task program including a program in each of them, and performing a checksum operation on all data including the task program in the second memory, and the downloading step includes a second step. A step of downloading the task program and the checksum calculation result in the memory to the terminal to be updated, and the updating step includes, when receiving the downloaded task program, a first memory having the same capacity as the second memory.
Initializing the memory, and writing the receiving task program to the initialized first memory;
When the receiving task program is written in the first memory, a step of performing a checksum operation on all data in the first memory, a comparison between the checksum operation result and the downloaded checksum operation result, and a comparison result Is returned to the management device. Also,
The updating step includes, upon receiving the downloaded task program, initializing a third memory having the same capacity as the second memory, and writing the receiving task program into the initialized third memory. And sequentially writing all data in the third memory to the first memory having the same capacity as the third memory.

【0007】[0007]

【発明の実施の形態】以下、本発明について図面を参照
して説明する。図1は本発明に係るプログラムダウンロ
ード方法を適用したシステムの構成を示すブロック図で
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a system to which a program download method according to the present invention is applied.

【0008】本システムは、図1に示すように、プログ
ラム(プログラムデータ)のダウンロード対象端末であ
る公衆電話機1と、電話局2と、公衆電話機1を管理す
るとともに公衆電話機1等の端末のプログラムを格納す
る管理装置4と、電話局2と管理装置4間に配置され管
理装置4からダウンロードされる公衆電話機1のプログ
ラムを受信するとこの受信プログラムを電話局2を介し
て公衆電話機1へ送信し公衆電話機1のプログラムを書
き替えるI/F装置(インタフェース装置)5とから構
成される。また、I/F装置5もプログラムのダウンロ
ード対象端末であり、管理装置4から直接ダウンロード
される自身宛のプログラムを受信すると自身のプログラ
ムを書き替える。
As shown in FIG. 1, the present system manages a public telephone 1, a central office 2, and a public telephone 1, which are terminals to which programs (program data) are to be downloaded. When a program of the public telephone 1 which is arranged between the telephone station 2 and the management apparatus 4 and downloaded from the management apparatus 4 is received, the received program is transmitted to the public telephone 1 via the telephone station 2. An I / F device (interface device) 5 for rewriting the program of the public telephone 1 is provided. The I / F device 5 is also a terminal to which the program is to be downloaded, and upon receiving a program directly downloaded from the management device 4 and directed to itself, rewrites its own program.

【0009】ここで、管理装置4は、管理装置4の全体
を制御する制御部41と、I/F装置5を介し各公衆電
話機との間での発着信制御を行うとともに、I/F装置
5との間でデータ通信を行うシリアルI/F42と、各
公衆電話機のプログラムデータ等のデータやI/F装置
4のプログラムデータを記憶するデータベース43と、
表示部44と、キーボードなどの入力部45と、プリン
タ46と、以上の各部に電源を供給する電源部47とか
ら構成される。
[0009] Here, the management device 4 controls outgoing / incoming calls between the control unit 41 for controlling the whole of the management device 4 and each public telephone via the I / F device 5, and also controls the I / F device. 5, a serial I / F 42 for performing data communication with the public telephone 5 and a database 43 for storing data such as program data of each public telephone and program data of the I / F device 4.
It comprises a display unit 44, an input unit 45 such as a keyboard, a printer 46, and a power supply unit 47 for supplying power to the above units.

【0010】管理装置4は、前述したように複数の公衆
電話機を管理するものであり、各公衆電話機の発呼に基
づく着信に応答して、各公衆電話機のメモリに蓄積され
公衆電話機の通話の時の利用データを入力してデータベ
ース43に記憶するとともに、公衆電話機自身の自己診
断などによる故障データを入力してデータベース43に
記憶し、このデータベース43の記憶状況に基づき各公
衆電話機を管理する。
The management device 4 manages a plurality of public telephones as described above. In response to an incoming call based on an outgoing call of each public telephone, the management device 4 is stored in a memory of each public telephone and communicates with the public telephone. The usage data at the time is input and stored in the database 43, and the failure data by the self-diagnosis of the public telephone itself is inputted and stored in the database 43, and each public telephone is managed based on the storage state of the database 43.

【0011】また、管理装置4のデータベース43に
は、各公衆電話機のプログラムやパラメータ(設定デー
タ)等が記憶され、各公衆電話機においてプログラムの
改版などが生じた場合、管理装置4はI/F装置5に対
し公衆電話機に発呼させ、公衆電話機がこれに応答する
と、その公衆電話機のプログラムデータやその公衆電話
機のパラメータをデータベース43から読み出してI/
F装置5に送り、I/F装置5にそのプログラムデータ
等を該当公衆電話機に送信させ該当公衆電話機のプログ
ラムを新たなプログラムに書き替えさせる。また、管理
装置4のデータベース43には、I/F装置5のプログ
ラムも記憶され、I/F装置5においてプログラムの改
版が生じた場合、改版したプログラムをデータベース4
3から読み出してI/F装置5にダウンロードしI/F
装置5のプログラムを更新させる。
The database 43 of the management device 4 stores programs and parameters (setting data) of each public telephone, and when a program is revised in each public telephone, the management device 4 uses the I / F. When the public telephone is called by the device 5 and the public telephone responds, the program data of the public telephone and the parameters of the public telephone are read out from the database 43 and read from the I / O.
The program is sent to the F device 5, and the I / F device 5 transmits the program data and the like to the corresponding public telephone so that the program of the corresponding public telephone is rewritten with a new program. The database 43 of the management device 4 also stores the program of the I / F device 5, and when the program is revised in the I / F device 5, the revised program is stored in the database 4.
3 and read to the I / F device 5 to download the I / F
The program of the device 5 is updated.

【0012】図2は、本システムを構成する公衆電話機
1のブロック図である。図2において、端末である公衆
電話機1は前述したように電話局2に接続されるととも
に、ICカード3を利用した通話が可能なものである。
公衆電話機1は、図2に示すように、CPU11と、C
PU11の実行するプログラムが格納され電気的な書込
・消去が可能なフラッシュメモリ12と、RAM13
と、回線インタフェース14と、通話回路15と、送受
話器16と、表示部17と、表示制御回路18と、ダイ
ヤルキー等のキーボード19と、ICカード3に対しデ
ータのリードライトを行うICカードリーダライタ20
(以下、カードリーダ20という)とから構成される。
FIG. 2 is a block diagram of a public telephone 1 constituting the present system. In FIG. 2, a public telephone 1, which is a terminal, is connected to the telephone station 2 as described above, and can make a call using the IC card 3.
As shown in FIG. 2, the public telephone 1 includes a CPU 11 and a C
A flash memory 12 in which a program executed by the PU 11 is stored and which can be electrically written and erased;
, A line interface 14, a communication circuit 15, a handset 16, a display unit 17, a display control circuit 18, a keyboard 19 such as a dial key, and an IC card reader for reading and writing data from and to the IC card 3. Writer 20
(Hereinafter, referred to as a card reader 20).

【0013】ここで、利用者によりICカード3がカー
ドリーダ20の図示しないカード挿入口に挿入される
と、カードリーダ20はそのICカード3の挿入を検知
しCPU11に報知する。この場合、CPU11はフラ
ッシュメモリ12内のプログラムの実行に基づきカード
リーダ20を制御して、ICカード3の図示しないメモ
リに記憶されている度数データ(価値情報)を読み取
る。
Here, when the user inserts the IC card 3 into a card insertion slot (not shown) of the card reader 20, the card reader 20 detects the insertion of the IC card 3 and notifies the CPU 11. In this case, the CPU 11 controls the card reader 20 based on the execution of the program in the flash memory 12 to read the frequency data (value information) stored in the memory (not shown) of the IC card 3.

【0014】CPU11は、ICカード3に残度数があ
る場合は回線インタフェース14を制御して回線捕捉を
行う。そして、このときオフフック状態にあれば、電話
局3からのダイヤルトーンが回線インタフェース14,
通話回路15を経由して送受話器16に送出され利用者
により聴取される。ここで、利用者がキーボード19の
ダイヤルキーを操作することにより相手番号をダイヤル
すると、CPU11はこれを検出して回線インタフェー
ス14に送出し回線インタフェース14からダイヤル信
号として電話局2側へ送出させる。これにより相手の呼
出が行われ、相手がその呼出に応答すると利用者と相手
側との間で通話が開始される。なお、通話開始時及び通
話続行中には電話局2からの課金信号の到来、または公
衆電話機1の内部での周知の自律課金処理によりICカ
ード3のメモリから度数データが減算される。
If the IC card 3 has a residual number, the CPU 11 controls the line interface 14 to capture the line. If the telephone is off-hook at this time, the dial tone from the telephone station 3 is transmitted to the line interface 14,
It is transmitted to the handset 16 via the communication circuit 15 and is listened to by the user. Here, when the user dials the other party number by operating the dial keys on the keyboard 19, the CPU 11 detects this and sends it out to the line interface 14 and sends it out as a dial signal from the line interface 14 to the telephone station 2. As a result, the call of the other party is made, and when the other party answers the call, a call is started between the user and the other party. At the start of the call and during the continuation of the call, the frequency data is subtracted from the memory of the IC card 3 by the arrival of the charging signal from the telephone station 2 or the well-known autonomous charging process inside the public telephone 1.

【0015】こうした利用者の通話の際のICカードの
番号や通話度数などの利用データは前述したように公衆
電話機1のRAM13に記憶され、公衆電話機1のCP
U11はRAM13に記憶されている利用データを定期
的に管理装置4に送信し、データベース43に格納させ
る。また、CPU11は管理装置4からI/F装置5を
介してダウンロードされてくる自身のプログラムデータ
を受信するとフラッシュメモリ12のプログラムを受信
した新たなプログラムに書き替える。
The use data such as the number of the IC card and the frequency of the call when the user makes a call is stored in the RAM 13 of the public telephone 1 as described above, and the CP of the public telephone 1 is used.
U <b> 11 periodically transmits the usage data stored in the RAM 13 to the management device 4 and stores the usage data in the database 43. When receiving its own program data downloaded from the management device 4 via the I / F device 5, the CPU 11 rewrites the program in the flash memory 12 with the received new program.

【0016】図3は、電話局2と管理装置4間に配設さ
れたI/F装置5の構成を示すブロック図である。I/
F装置5は、図3(a)に示すように、主制御部50
と、主制御部50に接続されるとともに、回線群Lnの
うち収容した複数の回線毎に発着信制御やデータ通信を
行う複数の副制御部60とからなる。各副制御部60
は、それぞれ3個の回線I/Fを制御する。なお、1つ
の回線I/Fに2回線が収容される。
FIG. 3 is a block diagram showing the configuration of the I / F device 5 provided between the telephone station 2 and the management device 4. I /
The F device 5, as shown in FIG.
And a plurality of sub-control units 60 connected to the main control unit 50 and performing outgoing / incoming call control and data communication for each of the plurality of lines accommodated in the line group Ln. Each sub-control unit 60
Controls three line I / Fs, respectively. Note that two lines are accommodated in one line I / F.

【0017】主制御部50は、図3(b)に示すよう
に、CPU51と、CPU51により実行されるローデ
ィングプログラム等が格納されるマスクROM52と、
管理装置4側とデータのシリアル通信を行うシリアルI
/F53と、CPU51により実行される主制御部50
用のプログラムが格納され電気的な書込・消去が可能な
フラッシュメモリ54と、管理装置4からダウンロード
され前記主制御部50用のプログラムが一時的に格納さ
れるRAM55と、データ通信中に図示しないLEDを
点灯するためのLED制御回路56とからなり、CPU
51,フラッシュメモリ54,RAM55等がバスBUS1
に接続されている。
As shown in FIG. 3B, the main control unit 50 includes a CPU 51, a mask ROM 52 storing a loading program executed by the CPU 51, and the like.
Serial I for performing serial data communication with the management device 4
/ F53 and main control unit 50 executed by CPU 51
Flash memory 54 in which a program for the main control unit 50 is stored and a program for the main control unit 50 is temporarily stored, which is downloaded from the management device 4. And an LED control circuit 56 for lighting an LED that is not
51, flash memory 54, RAM 55, etc.
It is connected to the.

【0018】一方、副制御部60は、バスBUS1を介して
主制御部50と接続され主制御部50との間で転送され
るデータを一時蓄積するデュアルポートRAM61と、
CPU62と、CPU62により実行されるローディン
グプログラム等が格納されるマスクROM63と、副制
御部60用のプログラムが格納され電気的な書込・消去
が可能なフラッシュメモリ64と、管理装置4からダウ
ンロードされ前記副制御部60用のプログラム等が一時
的に格納されるRAM65と、データ通信中に図示しな
いLEDを点灯するためのLED制御回路66等とから
なり、CPU62,フラッシュメモリ64,RAM65
等がバスBUS2を介してデュアルポートRAM61に接続
される。なお、バスBUS2には、CPU62の制御の下
で、収容した回線を介して各公衆電話機への発信や各公
衆電話機からの着信に応答するための図示しない回線リ
レーを制御するリレー制御部71,81、各回線からの
ダイヤルトーン(DT)等のトーン検出を行うDT検出
部74,84、各回線を介してデータ通信を行うための
モデム73,83及びシリアルI/F72,82が接続
されている。
On the other hand, the sub-control unit 60 is connected to the main control unit 50 via the bus BUS1 and temporarily stores data transferred to and from the main control unit 50;
CPU 62, a mask ROM 63 in which a loading program executed by the CPU 62 is stored, a flash memory 64 in which a program for the sub-control unit 60 is stored and which can be electrically written and erased, and downloaded from the management device 4 A CPU 65, a flash memory 64, a RAM 65 and a RAM 65 for temporarily storing a program and the like for the sub-control unit 60, and an LED control circuit 66 for lighting an LED (not shown) during data communication.
Are connected to the dual port RAM 61 via the bus BUS2. Under the control of the CPU 62, the bus BUS2 includes a relay control unit 71 for controlling a line relay (not shown) for responding to an outgoing call to each public telephone or an incoming call from each public telephone via the accommodated line. 81, DT detectors 74 and 84 for detecting a tone such as dial tone (DT) from each line, modems 73 and 83 for performing data communication via each line, and serial I / Fs 72 and 82 are connected. I have.

【0019】(A)第1の実施の形態(管理装置4から
公衆電話機1へのプログラムのダウンロード) 管理装置4のデータベース43には前述したように端末
である各公衆電話機のプログラムが格納されており、公
衆電話機のプログラムの改版の必要が生じた場合は、デ
ータベース43内の該当公衆電話機のプログラムを改版
して蓄積する。制御部41は、この蓄積されたプログラ
ムをデータベース43から読み出し識別コードを付けて
該当公衆電話機の電話番号とともにシリアルI/F42
を介してI/F装置5に送信する。
(A) First Embodiment (Download of Program from Management Device 4 to Public Phone 1) The database 43 of the management device 4 stores the program of each public telephone as a terminal as described above. If it becomes necessary to update the program of the public telephone, the program of the public telephone in the database 43 is revised and stored. The control unit 41 reads out the stored program from the database 43, attaches an identification code thereto, and, together with the telephone number of the corresponding public telephone, a serial I / F 42.
To the I / F device 5 via the.

【0020】I/F装置5の主制御部50のCPU51
は、マスクROM52のプログラムを実行することによ
り、シリアルI/F53を介してこのプログラムデータ
を受信し、受信したプログラムデータの識別コードに基
づき公衆電話機用プログラムと認識すると、このプログ
ラムデータを副制御部60のデュアルポートRAM61
に書き込む。副制御部60のCPU62は、マスクRO
M63のプログラムを実行することにより、デュアルポ
ートRAM61に書き込まれたプログラムデータを順次
読み出しRAM65に書き込む。
CPU 51 of main control unit 50 of I / F device 5
Receives the program data via the serial I / F 53 by executing the program in the mask ROM 52 and recognizes the program data as a program for a public telephone based on the identification code of the received program data. 60 dual port RAMs 61
Write to. The CPU 62 of the sub control unit 60 controls the mask RO
By executing the program of M63, the program data written in the dual port RAM 61 is sequentially read and written in the RAM 65.

【0021】ここで、CPU62は、RAM65に格納
されたプログラムをその識別コードから公衆電話機のプ
ログラムと認識し、かつデュアルポートRAM61を介
し主制御部50側から伝達されたダウンロード先を示す
公衆電話機の電話番号を入力した場合は、何れかのリレ
ー制御部を制御して該当回線を捕捉するとともに、前記
電話番号をダイヤル信号として捕捉回線に送出すること
により該当公衆電話機の呼出を行う。そして、公衆電話
機がその呼出に応答すると、RAM65から順次プログ
ラムデータを読み出し何れかのモデムに出力することに
より、モデムから該当シリアルI/Fを介してそのプロ
グラムデータを公衆電話機にダウンロードし、公衆電話
機のフラッシュメモリ12のプログラムデータを新たな
プログラムデータに書き替える。
Here, the CPU 62 recognizes the program stored in the RAM 65 as the program of the public telephone from the identification code, and indicates the download destination transmitted from the main control unit 50 via the dual port RAM 61 to the public telephone. When a telephone number is input, the corresponding public telephone is called by controlling one of the relay control units to capture the line and sending the telephone number as a dial signal to the captured line. When the public telephone responds to the call, the program data is sequentially read from the RAM 65 and output to one of the modems, so that the program data is downloaded from the modem to the public telephone via the corresponding serial I / F. Is rewritten with new program data.

【0022】ここで、公衆電話機1のフラッシュメモリ
12内のプログラムは複数のタスクプログラムに分割さ
れ、各タスクプログラム毎に改版が可能である。公衆電
話機の或るタスクプログラムを改版する場合、管理装置
4はデータベース43内の改版対象公衆電話機のプログ
ラムエリアの各タスクプログラムをデータベース43内
のワークエリアに一旦退避した後、該当プログラムエリ
アをデータ「FF」H(16進)で初期化する。その
後、改版されたタスクプログラムを該当プログラムエリ
アに格納するとともに、改版しないタスクプログラムに
ついては前記ワークエリアから取り出して該当プログラ
ムエリアの他の領域に格納する。
Here, the program in the flash memory 12 of the public telephone 1 is divided into a plurality of task programs, and each task program can be revised. When revising a certain task program of a public telephone, the management device 4 temporarily saves each task program in the program area of the public telephone to be revised in the database 43 to a work area in the database 43, and then stores the corresponding program area in the data “ Initialize with FF "H (hexadecimal). Thereafter, the revised task program is stored in the corresponding program area, and the task program not to be revised is taken out of the work area and stored in another area of the corresponding program area.

【0023】次に、該当プログラムエリアの前記データ
「FF」Hを含む全てのデータについてチェックサム演
算を行い、そのチェックサムデータと該当プログラムエ
リアの全てのプログラムデータを、I/F装置5へ送
る。I/F装置5では管理装置4からのダウンロードデ
ータを受信すると、この受信データを前述したように改
版対象公衆電話機へダウンロードする。この場合、前記
改版対象電話機である公衆電話機1のCPU11は、フ
ラッシュメモリ12内のダウンロード対象プログラムと
は異なるエリアにあるローディングプログラムを実行す
ることにより、まずRAM13のプログラム受信エリア
をデータ「FF」Hで初期化する。
Next, a checksum operation is performed on all data including the data “FF” H in the corresponding program area, and the checksum data and all program data in the corresponding program area are sent to the I / F device 5. . Upon receiving the download data from the management device 4, the I / F device 5 downloads the received data to the revision target public telephone as described above. In this case, the CPU 11 of the public telephone 1, which is the telephone targeted for the revision, executes the loading program in an area different from the download target program in the flash memory 12, so that the program reception area of the RAM 13 first stores the data "FF" H Initialize with

【0024】その後、送信されてくる各タスクプログラ
ムデータを受信してRAM13の受信エリアに順次書き
込み、かつ同時にRAM13の受信エリアの全てのデー
タをフラッシュメモリ12のプログラムエリアに転送す
る。全てのプログラムデータがRAM13に書き込ま
れ、かつRAM13に書き込まれたデータがフラッシュ
メモリ12のプログラムエリアに全て転送されると、公
衆電話機はこのプログラムエリアの全データについてチ
ェックサム演算を行い、この演算結果と管理装置4側か
ら受信したチェックサム演算結果のと一致を比較する。
そして、双方の演算結果が一致した場合は、そのプログ
ラムは正常にダウンロードされたものと見なし、以降フ
ラッシュメモリ12の新たなプログラムによる処理を実
行する。
Thereafter, the received task program data is received and sequentially written in the reception area of the RAM 13, and at the same time, all data in the reception area of the RAM 13 is transferred to the program area of the flash memory 12. When all the program data has been written to the RAM 13 and all the data written to the RAM 13 has been transferred to the program area of the flash memory 12, the public telephone performs a checksum operation on all the data in this program area, and this operation result Is compared with the checksum calculation result received from the management device 4 side.
Then, when the two calculation results match, it is considered that the program has been normally downloaded, and the processing by the new program in the flash memory 12 is executed thereafter.

【0025】ここで、管理装置5からダウンロードされ
プログラムが書き込まれる公衆電話機1のRAM13の
受信エリア及びフラッシュメモリ12のプログラムエリ
アの各容量は同一であり、これらのメモリの容量は管理
装置4のデータベース43内の公衆電話機用プログラム
エリアの容量と同一である。また、公衆電話機1のRA
M13には、受信エリアの他に、受信エリアに対するプ
ログラムデータの書込アドレスを示す書込ポインタと、
フラッシュメモリ12に書き込まれる受信エリアのアド
レスを示す受信ポインタと、フラッシュメモリ12の書
込アドレスを示すポインタとを記憶する領域が設けられ
ている。CPU11はフラッシュメモリ12のローディ
ングプログラムを実行することにより、RAM13の各
ポインタの値にしたがってRAM13の受信エリアへの
プログラムの書き込みを行うと同時に、RAM13の受
信エリアの先頭アドレスのデータから順次フラッシュメ
モリ12への転送書き込みを行う。
Here, the capacity of the receiving area of the RAM 13 and the program area of the flash memory 12 of the public telephone 1 in which the program is downloaded from the management device 5 and the program is written are the same. 43 is the same as the capacity of the public telephone program area. Also, the RA of the public telephone 1
M13 includes, in addition to the reception area, a write pointer indicating a write address of program data for the reception area;
An area for storing a reception pointer indicating an address of a reception area written to the flash memory 12 and a pointer indicating a write address of the flash memory 12 is provided. The CPU 11 executes the loading program of the flash memory 12 to write the program into the reception area of the RAM 13 according to the value of each pointer of the RAM 13 and, at the same time, sequentially starts from the data of the start address of the reception area of the RAM 13 To transfer data to

【0026】このように、管理装置4のデータベース4
3の公衆電話機用タスクプログラムを改版して公衆電話
機のフラッシュメモリ12へダウンロードする場合、改
版タスクプログラムを含む全てのタスクプログラムをダ
ウンロードするようにしたものである。この結果、管理
装置側では版数の異なる複数のタスクプログラムを1つ
のプログラムとして管理できることから、管理装置側の
管理の複雑化を回避できるとともに、公衆電話機1には
全てのタスクプログラムが一括してダウンロードされる
ことから、公衆電話機1側ではダウンロードされたプロ
グラムとダウンロードされないプログラムの混在に起因
する誤動作を未然に防止できる。
As described above, the database 4 of the management device 4
When the public telephone task program 3 is revised and downloaded to the flash memory 12 of the public telephone, all task programs including the revised task program are downloaded. As a result, the management device can manage a plurality of task programs of different versions as one program, so that the management of the management device can be prevented from becoming complicated, and all the task programs can be collectively stored in the public telephone 1. Since the program is downloaded, the public telephone 1 can prevent a malfunction caused by a mixture of the downloaded program and the non-downloaded program.

【0027】また、前記公衆電話機用各タスクプログラ
ムを公衆電話機1へダウンロードする場合、管理装置4
ではデータベース43の該当プログラムエリアをデータ
「FF」Hで初期化し、初期化されたデータベース43
のプログラムエリアにダウンロード対象の全てのタスク
プログラムを格納し、かつそのプログラムエリアの全て
のデータについてチェックサム演算を行って各タスクプ
ログラムとチェックサム演算結果とを公衆電話機1へ送
信する一方、公衆電話機1では、タスクプログラムを受
信すると、データベース43の該当プログラムエリアと
同一サイズのRAM13の受信エリアをデータ[FF]
Hで初期化し、初期化された受信エリアへ受信プログラ
ムデータを書き込むと同時に受信エリアの全てのデータ
をフラッシュメモリ12に書き込み、書き込んだ全ての
データについてチェックサム演算を行って、管理装置4
からのチェックサム演算結果と比較するようにしたもの
である。
When each of the task programs for the public telephone is downloaded to the public telephone 1, the management device 4
Then, the corresponding program area of the database 43 is initialized with data “FF” H, and the initialized database 43 is initialized.
While storing all the task programs to be downloaded in the program area, performing checksum calculation on all data in the program area, and transmitting each task program and the checksum calculation result to the public telephone 1, 1, when a task program is received, a reception area of the RAM 13 having the same size as the corresponding program area of the database 43 is stored in the data [FF].
H, writing the received program data into the initialized receiving area, and simultaneously writing all the data in the receiving area into the flash memory 12 and performing a checksum operation on all the written data.
This is compared with the checksum calculation result from.

【0028】この結果、管理装置4側ではデータベース
43の該当プログラムエリアの全データをダウンロード
する必要がなく、各タスクプログラムデータのみをダウ
ンロードすることができダウンロード時間を短縮でき
る。また、複数のタスクプログラムを1つのチェックサ
ムで管理するため、プログラムの一元管理が可能にな
る。さらに、ダウンロードした後、そのプログラムの版
数の正否をチェックサムの確認により確認できる。な
お、第1の実施の形態では、管理装置4からのプログラ
ムデータを一旦公衆電話機1のRAM13に書き込んだ
後、RAM13のプログラムデータをフラッシュメモリ
12に転送しているが、公衆電話機1のフラッシュメモ
リ12のプログラムエリアを初期化した後、管理装置4
からのプログラムデータを直接フラッシュメモリ12に
書き込むようにしても良い。
As a result, the management device 4 does not need to download all data in the corresponding program area of the database 43, and can download only each task program data, thereby reducing the download time. Further, since a plurality of task programs are managed by one checksum, centralized management of the programs becomes possible. Furthermore, after downloading, the correctness of the version number of the program can be confirmed by checking the checksum. In the first embodiment, the program data from the management device 4 is once written in the RAM 13 of the public telephone 1 and then the program data in the RAM 13 is transferred to the flash memory 12. After initializing the 12 program areas, the management device 4
May be written directly into the flash memory 12.

【0029】(B)第2の実施の形態(管理装置4から
I/F装置5の副制御部60へのプログラムのダウンロ
ード) 管理装置4のデータベース43には、公衆電話機のプロ
グラムの他に、前述したようにI/F装置5のプログラ
ムもダウンロード対象端末のプログラムとして格納され
ている。ここで、I/F装置5には、前述したように主
制御部50及び副制御部60が設けられている。したが
って、主制御部50のフラッシュメモリ54に格納され
CPU51により実行される主制御部用プログラム、及
び副制御部60のフラッシュメモリ64に格納されCP
U62により実行される副制御部用プログラムもダウン
ロード対象プログラムであり、これら主制御部用及び副
制御部用プログラムの各プログラムがデータベース43
に格納されている。第2の実施の形態では、管理装置4
からI/F装置の副制御部60への副制御部用プログラ
ムのダウンロードについて説明する。
(B) Second Embodiment (Download of Program from Management Device 4 to Sub-Control Unit 60 of I / F Device 5) The database 43 of the management device 4 stores, in addition to the program of the public telephone, As described above, the program for the I / F device 5 is also stored as a program for the terminal to be downloaded. Here, the I / F device 5 is provided with the main control unit 50 and the sub control unit 60 as described above. Therefore, the main control unit program stored in the flash memory 54 of the main control unit 50 and executed by the CPU 51, and the CP stored in the flash memory 64 of the sub control unit 60
The sub-control unit program executed by U62 is also a download target program, and these main control unit and sub-control unit programs are stored in the database 43.
Is stored in In the second embodiment, the management device 4
Download of the sub-control unit program from the sub-controller to the sub-control unit 60 of the I / F device will be described.

【0030】I/F装置5の副制御部60のプログラム
の改版の必要が生じた場合、管理装置4は同様にデータ
ベース43内の該当副制御部用プログラムを改版してデ
ータベース43に蓄積する。制御部41は、この蓄積さ
れたプログラムをデータベース43から読み出し識別コ
ードを付けてシリアルI/F42を介しI/F装置5へ
送信する。
When it is necessary to update the program of the sub-control unit 60 of the I / F device 5, the management device 4 similarly revises the program for the sub-control unit in the database 43 and stores it in the database 43. The control unit 41 reads out the stored program from the database 43, attaches the identification code thereto, and transmits the program to the I / F device 5 via the serial I / F.

【0031】I/F装置5の主制御部50のCPU51
は、マスクROM52のプログラムを実行することによ
り、シリアルI/F53を介してこのプログラムデータ
を受信し、受信したプログラムデータの識別コードに基
づき副制御部用プログラムと認識すると、このプログラ
ムデータを副制御部60のデュアルポートRAM61に
書き込む。副制御部60のCPU62はマスクROM6
3のプログラムを実行することにより、デュアルポート
RAM61に書き込まれたプログラムデータを順次読み
出しRAM65に書き込む。ここで、CPU62は、R
AM65に格納されたプログラムをその識別コードから
自身用(即ち、副制御部用)のプログラムと認識した場
合はRAM65から順次プログラムデータを読み出しフ
ラッシュメモリ64に書き込む。
CPU 51 of main controller 50 of I / F device 5
Receives the program data through the serial I / F 53 by executing the program in the mask ROM 52 and recognizes the program data as a sub-control unit program based on the identification code of the received program data. The data is written to the dual port RAM 61 of the unit 60. The CPU 62 of the sub control unit 60 has a mask ROM 6
By executing the program No. 3, the program data written in the dual port RAM 61 is sequentially read out and written in the RAM 65. Here, the CPU 62 determines that R
When the program stored in the AM 65 is recognized as the program for itself (that is, for the sub control unit) from the identification code, the program data is sequentially read from the RAM 65 and written to the flash memory 64.

【0032】ここで、副制御部60のフラッシュメモリ
64のプログラムも公衆電話機のプログラムと同様に複
数のタスクプログラムから構成され各タスクプログラム
毎に改版が可能である。管理装置4は、前記副制御部用
プログラムの或るタスクプログラムを改版する場合は、
同様に、データベース43の改版対象副制御部用プログ
ラムの各タスクプログラムをワークエリアに一旦退避し
た後、該当プログラムエリアをデータ「FF」Hで初期
化する。その後、改版されたタスクプログラムを該当プ
ログラムエリアに格納するとともに、改版しないタスク
プログラムについては前記ワークエリアから取り出して
該当プログラムエリアの他の領域に格納する。
Here, the program of the flash memory 64 of the sub-control unit 60 is also composed of a plurality of task programs like the program of the public telephone, and can be revised for each task program. When the management device 4 updates a certain task program of the sub-control unit program,
Similarly, after each task program of the sub-control unit program to be updated in the database 43 is temporarily saved in the work area, the corresponding program area is initialized with data “FF” H. Thereafter, the revised task program is stored in the corresponding program area, and the task program not to be revised is taken out of the work area and stored in another area of the corresponding program area.

【0033】その後、管理装置4は該当プログラムエリ
アの前記データ「FF」Hを含む全てのデータについて
チェックサム演算を行い、そのチェックサムデータと該
当プログラムエリアの全てのプログラムデータを、I/
F装置5の主制御部50を介して副制御部60へダウン
ロードする。この場合、副制御部60のCPU62はマ
スクROM63のプログラムを実行することにより、ま
ずRAM65のプログラム受信エリアをデータ「FF」
Hで初期化する。
Thereafter, the management device 4 performs a checksum operation on all data including the data “FF” H in the corresponding program area, and compares the checksum data and all the program data in the corresponding program area with I / O.
The program is downloaded to the sub control unit 60 via the main control unit 50 of the F device 5. In this case, the CPU 62 of the sub control unit 60 executes the program of the mask ROM 63 to first set the program reception area of the RAM 65 to the data “FF”.
Initialize with H.

【0034】その後、送信されてくる各タスクプログラ
ムデータを受信してRAM65の受信エリアに順次書き
込み、かつ同時にRAM65の受信エリアの全てのデー
タをフラッシュメモリ64のプログラムエリアに転送す
る。全てのプログラムデータがRAM65に書き込ま
れ、かつRAM65のデータがフラッシュメモリ64の
プログラムエリアに転送されると、副制御部60のCP
U62はこのプログラムエリアの全データについてチェ
ックサム演算を行い、この演算結果と管理装置4側から
受信したチェックサム演算結果との一致を比較する。そ
して、双方のチェックサム演算結果が一致すると、その
プログラムは正常にダウンロードされたものと見なし、
以降フラッシュメモリ64の新たなプログラムによる処
理を実行する。
Thereafter, the received task program data is received and sequentially written to the reception area of the RAM 65, and all data in the reception area of the RAM 65 is simultaneously transferred to the program area of the flash memory 64. When all the program data is written to the RAM 65 and the data in the RAM 65 is transferred to the program area of the flash memory 64, the CP of the sub-control unit 60
U62 performs a checksum operation on all the data in the program area, and compares the result of the operation with the result of the checksum operation received from the management device 4. If the checksum calculation results match, the program is considered to have been downloaded successfully,
Thereafter, the processing by the new program of the flash memory 64 is executed.

【0035】ここで、副制御部60内のRAM65の受
信エリアの容量とフラッシュメモリ64の容量は同一で
あり、かつこれらのメモリの容量は管理装置4のデータ
ベース43内の副制御部用プログラムエリアの容量と同
一である。また、副制御部60のRAM65には、受信
エリアの他に、受信エリアに対するプログラムデータの
書込アドレスを示す書込ポインタと、フラッシュメモリ
64に書き込まれる受信エリアのアドレスを示す受信ポ
インタと、フラッシュメモリ64の書込アドレスを示す
ポインタとを記憶する領域が設けられている。副制御部
60のCPU62はマスクROM63のプログラムを実
行することにより、RAM65の各ポインタの値にした
がってRAM65の受信エリアへのプログラムの書き込
みを行うと同時に、RAM65の受信エリアの先頭アド
レスのデータから順次フラッシュメモリ64への転送書
き込みを行う。
Here, the capacity of the receiving area of the RAM 65 in the sub-control unit 60 is the same as the capacity of the flash memory 64, and the capacity of these memories is the program area for the sub-control unit in the database 43 of the management device 4. And the same capacity. The RAM 65 of the sub-control unit 60 includes, in addition to the reception area, a write pointer indicating the write address of the program data for the reception area, a reception pointer indicating the address of the reception area to be written to the flash memory 64, and a flash memory. An area for storing a pointer indicating a write address of the memory 64 is provided. The CPU 62 of the sub control unit 60 executes the program of the mask ROM 63 to write the program into the reception area of the RAM 65 according to the value of each pointer of the RAM 65, and at the same time, sequentially starts from the data at the start address of the reception area of the RAM 65. The transfer writing to the flash memory 64 is performed.

【0036】このように、管理装置4のデータベース4
3の副制御部用タスクプログラムを改版して副制御部6
0のフラッシュメモリ64へダウンロードする場合、改
版タスクプログラムを含む全てのタスクプログラムをダ
ウンロードするようにしたものである。この結果、管理
装置側では版数の異なる複数のタスクプログラムを1つ
のプログラムとして管理できることから、管理装置側の
管理の複雑化を回避できるとともに、副制御部60には
全てのタスクプログラムが一括してダウンロードされる
ことから、副制御部60側ではダウンロードされたプロ
グラムとダウンロードされないプログラムの混在に起因
する誤動作を未然に防止できる。
As described above, the database 4 of the management device 4
The task program for sub-control unit 3 is revised and sub-control unit 6
In the case of downloading to the flash memory 64 of No. 0, all task programs including the revised task program are downloaded. As a result, the management device can manage a plurality of task programs of different versions as one program, so that the management of the management device can be prevented from becoming complicated, and all the task programs are collectively stored in the sub-control unit 60. Therefore, the sub-control unit 60 can prevent a malfunction caused by a mixture of the downloaded program and the non-downloaded program beforehand.

【0037】また、前記副制御部用各タスクプログラム
を副制御部1へダウンロードする場合、管理装置4では
データベース43の該当プログラムエリアをデータ「F
F」Hで初期化し、初期化されたデータベース43のプ
ログラムエリアにダウンロード対象の全てのタスクプロ
グラムを格納し、かつそのプログラムエリアの全てのデ
ータについてチェックサム演算を行って各タスクプログ
ラムとチェックサム演算結果とを副制御部60へ送信す
る一方、副制御部60では、タスクプログラムを受信す
ると、データベース43の該当プログラムエリアと同一
サイズのRAM65の受信エリアをデータ[FF]Hで
初期化し、初期化された受信エリアへ受信プログラムデ
ータを書き込むと同時に受信エリアの全てのデータをフ
ラッシュメモリ12に書き込み、書き込んだ全てのデー
タについてチェックサム演算を行って、管理装置からの
チェックサム演算結果と比較するようにしたものであ
る。
When each of the task programs for the sub-control unit is downloaded to the sub-control unit 1, the management unit 4 stores the corresponding program area of the database 43 in the data "F".
F "H", all task programs to be downloaded are stored in the initialized program area of the database 43, and checksum calculation is performed on all data in the program area to perform checksum calculation with each task program. While transmitting the result to the sub-control unit 60, the sub-control unit 60, upon receiving the task program, initializes a reception area of the RAM 65 having the same size as the corresponding program area of the database 43 with data [FF] H and initializes. At the same time as writing the reception program data to the received reception area, all the data in the reception area is written to the flash memory 12, a checksum operation is performed on all the written data, and the result is compared with the checksum operation result from the management device. It was made.

【0038】この結果、管理装置4側ではデータベース
43の該当プログラムエリアの全データをダウンロード
する必要がなく、各タスクプログラムデータのみをダウ
ンロードすることができダウンロード時間を短縮でき
る。また、複数のタスクプログラムを1つのチェックサ
ムで管理するため、プログラムの一元管理が可能にな
る。さらに、ダウンロードした後、そのプログラムの版
数の正否をチェックサムの確認により確認できる。な
お、第2の実施の形態では、管理装置4からのプログラ
ムデータを一旦副制御部60のRAM65に書き込んだ
後、RAM65のプログラムデータをフラッシュメモリ
64へ転送しているが、副制御部60のフラッシュメモ
リ64のプログラムエリアを初期化した後、管理装置4
からのプログラムデータを直接フラッシュメモリ64に
書き込むようにしても良い。
As a result, the management device 4 does not need to download all data in the corresponding program area of the database 43, and can download only each task program data, thereby reducing the download time. Further, since a plurality of task programs are managed by one checksum, centralized management of the programs becomes possible. Furthermore, after downloading, the correctness of the version number of the program can be confirmed by checking the checksum. In the second embodiment, the program data from the management device 4 is once written in the RAM 65 of the sub-control unit 60, and then the program data in the RAM 65 is transferred to the flash memory 64. After initializing the program area of the flash memory 64, the management device 4
May be directly written into the flash memory 64.

【0039】(C)第3の実施の形態(管理装置4から
I/F装置5の主制御部50へのプログラムのダウンロ
ード) 管理装置4のデータベース43には、公衆電話機1のプ
ログラム及びI/F装置5の副制御部60のプログラム
の他に、I/F装置5の主制御部50のプログラムも前
述したようにダウンロード対象端末プログラムとして格
納されている。ここで、管理装置4は主制御部50のプ
ログラムの改版の必要が生じた場合は、同様にデータベ
ース43内の主制御部用プログラムを改版して蓄積す
る。管理装置4の制御部41は、この蓄積されたプログ
ラムをデータベース43から読み出し識別コードを付け
てシリアルI/F42を介しI/F装置5に送信する。
(C) Third Embodiment (Download of Program from Management Device 4 to Main Control Unit 50 of I / F Device 5) The database 43 of the management device 4 stores the program of the public telephone 1 and the I / F In addition to the program of the sub-control unit 60 of the F device 5, the program of the main control unit 50 of the I / F device 5 is stored as a download target terminal program as described above. Here, when it becomes necessary to update the program of the main control unit 50, the management device 4 similarly updates and stores the main control unit program in the database 43. The control unit 41 of the management device 4 reads out the stored program from the database 43, attaches an identification code thereto, and transmits the program to the I / F device 5 via the serial I / F.

【0040】I/F装置5の主制御部50のCPU51
は、マスクROM52のプログラムを実行することによ
り、シリアルI/F53を介してこのプログラムデータ
を受信するとともに、受信したプログラムデータの識別
コードに基づき自身用(即ち、主制御部用)プログラム
と認識すると、このプログラムデータをRAM55に書
き込む。そして、RAM55に書き込んだ主制御部用プ
ログラムを順次読み出してフラッシュメモリ54に書き
込む。
CPU 51 of main controller 50 of I / F device 5
Receives the program data via the serial I / F 53 by executing the program in the mask ROM 52 and recognizes it as a program for itself (that is, for the main control unit) based on the identification code of the received program data. Then, the program data is written into the RAM 55. Then, the main control unit programs written in the RAM 55 are sequentially read and written in the flash memory 54.

【0041】ここで、主制御部50のフラッシュメモリ
54のプログラムについても複数のタスクプログラムか
ら構成され、各タスクプログラム毎に改版が可能であ
る。管理装置4は、主制御部用プログラムの或るタスク
プログラムを改版する場合は、同様にデータベース43
の主制御部用プログラムの各タスクプログラムをワーク
エリアに一旦退避した後、該当プログラムエリアをデー
タ「FF」Hで初期化する。その後、改版したタスクプ
ログラムを該当プログラムエリアに格納するとともに、
改版しないタスクプログラムについては前記ワークエリ
アから取り出して該当プログラムエリアの他の領域に格
納する。
Here, the program in the flash memory 54 of the main control unit 50 is also composed of a plurality of task programs, and can be revised for each task program. When revising a certain task program of the main control unit program, the management device 4
After temporarily saving each task program of the main control unit program in the work area, the corresponding program area is initialized with data "FF" H. After that, while storing the revised task program in the corresponding program area,
The task program not to be revised is taken out of the work area and stored in another area of the program area.

【0042】その後、管理装置4は該当プログラムエリ
アの前記データ「FF」Hを含む全てのデータについて
チェックサム演算を行い、そのチェックサムデータと該
当プログラムエリアの全てのプログラムデータを、シリ
アルI/F42を介してI/F装置5へダウンロードす
る。この場合、主制御部50のCPU51はマスクRO
M52のプログラムを実行することにより、まずRAM
55のプログラム受信エリアをデータ「FF」Hで初期
化する。その後、シリアルI/F53を介して送信され
てくる各タスクプログラムデータを受信してRAM55
の受信エリアに順次書き込み、かつ同時にRAM55の
受信エリアの全てのデータをフラッシュメモリ54のプ
ログラムエリアに転送する。
Thereafter, the management device 4 performs a checksum operation on all data including the data "FF" H in the corresponding program area, and converts the checksum data and all program data in the corresponding program area into a serial I / F 42. To the I / F device 5 via the. In this case, the CPU 51 of the main control unit 50
By executing the program of M52, first the RAM
The program receiving area 55 is initialized with data "FF" H. After that, each task program data transmitted via the serial I / F 53 is received and the
, And simultaneously transfer all data in the reception area of the RAM 55 to the program area of the flash memory 54.

【0043】全てのプログラムデータがRAM55に書
き込まれ、かつRAM55のデータがフラッシュメモリ
54のプログラムエリアに転送されると、主制御部50
のCPU51はこのプログラムエリアの全データについ
てチェックサム演算を行い、この演算結果と管理装置4
側から受信したチェックサム演算結果との一致を比較す
る。そして、双方の演算結果が一致した場合はそのプロ
グラムは正常にダウンロードされたものと見なし、以降
フラッシュメモリ54の新たなプログラムによる処理を
実行する。
When all the program data has been written to the RAM 55 and the data in the RAM 55 has been transferred to the program area of the flash memory 54, the main control unit 50
CPU 51 performs a checksum operation on all data in the program area,
Compare the checksum calculation result received from the side. Then, when the two calculation results match, it is regarded that the program has been normally downloaded, and the processing by the new program in the flash memory 54 is executed thereafter.

【0044】ここで、管理装置5からダウンロードされ
主制御部用プログラムが書き込まれる主制御部50のR
AM55の受信エリア55A及びフラッシュメモリ54
の各容量は、図4に示すようにそれぞれ同一の128K
バイトの容量を有しており、管理装置4のデータベース
43内の主制御部用プログラムエリアの容量もこれと同
一の128Kバイトの容量を有している。
Here, the R of the main control unit 50 to which the program for the main control unit is downloaded from the management device 5 is written.
AM 55 reception area 55A and flash memory 54
Are the same 128K as shown in FIG.
The main control unit program area in the database 43 of the management device 4 has the same capacity of 128 Kbytes.

【0045】また、主制御部50のRAM55には、受
信エリア55Aの他に、図4に示すように、受信エリア
55Aに対するプログラムデータの書込アドレスを示す
書込ポインタRPが記憶される領域55Bと、フラッシ
ュメモリ54に書き込まれる受信エリア55Aのアドレ
スを示す受信ポインタWPが記憶される領域55Cと、
フラッシュメモリ54の書込アドレスを示すポインタF
Pが記憶される領域55Dとが設けられている。そし
て、各ポインタRP,WP,FPの各値にしたがってR
AM55の受信エリア55Aへの主制御部用プログラム
の書き込み、及び受信エリア55Aのプログラムのフラ
ッシュメモリ54への転送書き込みが行われる。
Further, in the RAM 55 of the main control unit 50, in addition to the reception area 55A, as shown in FIG. 4, an area 55B in which a write pointer RP indicating a write address of program data to the reception area 55A is stored. And an area 55C in which a reception pointer WP indicating an address of the reception area 55A written in the flash memory 54 is stored.
Pointer F indicating write address of flash memory 54
An area 55D in which P is stored is provided. Then, according to each value of each pointer RP, WP, FP, R
The writing of the main control unit program into the reception area 55A of the AM 55 and the transfer writing of the program of the reception area 55A to the flash memory 54 are performed.

【0046】図5は、管理装置4のデータベース43に
格納された主制御部用各タスクプログラムのうち1つの
タスクプログラムを主制御部50のRAM55及びフラ
ッシュメモリ54にダウンロードする動作を示す説明図
である。この説明図にしたがって本発明の要部動作を簡
単に説明する。管理装置4のデータベース43には、前
述したように主制御部用プログラムが複数のタスクプロ
グラムに分割されて格納されている。ここで、タスクプ
ログラムを改版してデータベース43に格納する場合
は、前述したように、その格納に先立ち該当プログラム
エリア43A(第2のメモリ)をデータ「FF」Hで初
期化したのちプログラムデータを書き込む。図5の例で
は領域43A2にプログラムデータが書き込まれた例で
あり、プログラムデータが書き込まれない領域43A
1,領域43A3は、図5に示すようにデータ「FF」
Hが格納された状態となっている。
FIG. 5 is an explanatory diagram showing an operation of downloading one task program of the main control unit task programs stored in the database 43 of the management device 4 to the RAM 55 and the flash memory 54 of the main control unit 50. is there. The operation of the main part of the present invention will be briefly described with reference to this explanatory diagram. As described above, the main control unit program is divided into a plurality of task programs and stored in the database 43 of the management device 4. Here, when the task program is revised and stored in the database 43, the program area 43A (second memory) is initialized with data "FF" H before storing the program data, as described above, and then the program data is stored. Write. FIG. 5 shows an example in which the program data is written in the area 43A2, and the area 43A in which the program data is not written.
1, the area 43A3 has data "FF" as shown in FIG.
H is stored.

【0047】管理装置4の制御部41は、I/F装置5
にタスクプログラムをダウンロードする場合、プログラ
ムエリア43A内の空き領域を含む全てのデータをダウ
ンロードせずにタスクプログラム領域43A2のプログ
ラムデータのみをその領域の先頭アドレスとともにダウ
ンロードする。図5に示す1つのタスクプログラムのダ
ウンロードの例では、管理装置4はアドレス「1+N
1」番地からアドレス「N1+N2」番地間に位置する
領域43A2のタスクプログラムを先頭アドレス「1+
N1」を付けてI/F装置5にダウンロードし、アドレ
ス1番地からN1番地間の空き領域43A1のデータ
(「FF」H)、及びアドレス「1+N1+N2」番地
から「N1+N2+N3」番地間の空き領域43A3の
データはダウロードしない。こうしたダウンロードは各
タスクプログラム領域毎に同様に行われる。そして、予
め全ての主制御部用プログラムが格納されているプログ
ラムエリアの全てのデータについてチェックサム演算を
行った結果のチェックサムデータを、最後にダウンロー
ドされるタスクプログラム領域のプログラムデータに付
加して送信する。
The control unit 41 of the management device 4 includes the I / F device 5
When downloading the task program, only the program data in the task program area 43A2 is downloaded together with the start address of the area without downloading all data including the free area in the program area 43A. In the example of downloading one task program shown in FIG. 5, the management device 4 stores the address “1 + N”.
The task program in the area 43A2 located between the address “1” and the address “N1 + N2” is added to the start address “1+
The data is downloaded to the I / F device 5 with "N1" appended thereto, and the data ("FF" H) of the free area 43A1 between address 1 and address N1 and the free area 43A3 between address "1 + N1 + N2" and address "N1 + N2 + N3". Data is not downloaded. Such downloading is similarly performed for each task program area. Then, the checksum data obtained as a result of performing the checksum operation on all the data in the program area in which all the main control unit programs are stored in advance is added to the program data in the task program area to be downloaded last. Send.

【0048】主制御部50では、RAM55へのプログ
ラムデータのダウンロードに先立ちRAM55の受信エ
リア55A(第3のメモリ)をデータ「FF」Hで初期
化する。その後、管理装置4からタスクプログラムが送
信されてくると、その先頭アドレス(即ち、「1+N
1」番地)を受信して領域55BにリードポインタRP
として書き込み、そのリードポインタRPが示す受信エ
リア55Aの領域から順次タスクプログラムを書き込
み、かつその書き込み毎にリードポインタRPを+1す
る。この結果、受信エリア55Aには、アドレス「1+
N1」番地からアドレス「N1+N2」番地までの領域
55A2にタスクプログラムが格納され、アドレス1番
地からN1番地間の領域55A1、及びアドレス「1+
N1+N2」番地から「N1+N2+N3」番地間の領
域55A3はプログラムデータが格納されずに空き領域
となり、前記初期化時のデータ「FF」Hが格納されて
いる。
The main control unit 50 initializes the reception area 55A (third memory) of the RAM 55 with data "FF" H before downloading the program data to the RAM 55. Thereafter, when the task program is transmitted from the management device 4, the start address (that is, "1 + N")
1 ") and the read pointer RP is stored in the area 55B.
The task program is sequentially written from the area of the receiving area 55A indicated by the read pointer RP, and the read pointer RP is incremented by one for each write. As a result, the address “1+
The task program is stored in the area 55A2 from the address “N1” to the address “N1 + N2”, the area 55A1 between the address 1 and the address N1 and the address “1+
An area 55A3 between addresses "N1 + N2" and "N1 + N2 + N3" is a free area without storing program data, and stores data "FF" H at the time of initialization.

【0049】主制御部50のCPU51は、管理装置4
からタスクプログラムの先頭アドレスのデータを受信し
受信エリア55Aに書き込むと、RAM55の領域55
Cの書込ポインタWPを受信エリア55Aの先頭アドレ
スに設定し、かつ領域55DのポインタFPをフラッシ
ュメモリ54の先頭アドレスに設定した後、受信エリア
55C内の前記ポインタWPで示される領域のデータを
フラッシュメモリ54(第1のメモリ)の前記ポインタ
FPで示される領域に書き込み、かつポインタWP,F
Pをそれぞれ次のアドレスに設定する処理を順次実行す
る。このような処理の実行により、I/F装置5では、
管理装置4からのタスクプログラムが順次受信エリア5
5のアドレス「1+N1」番地の領域からアドレス「N
1+N2」番地の領域まで書き込まれると同時に、順次
受信エリア55のデータが先頭領域から読み出されてフ
ラッシュメモリ54に書き込まれる。
The CPU 51 of the main control unit 50
When the data at the start address of the task program is received from the
After setting the write pointer WP of C to the start address of the reception area 55A and setting the pointer FP of the area 55D to the start address of the flash memory 54, the data of the area indicated by the pointer WP in the reception area 55C is read. Writing to the area of the flash memory 54 (first memory) indicated by the pointer FP, and the pointers WP, F
The process of setting P to the next address is sequentially executed. By performing such processing, in the I / F device 5,
The task programs from the management device 4 are sequentially received in the reception area 5
From the area of address “1 + N1” of address 5, the address “N”
At the same time as writing to the area of the address "1 + N2", data in the reception area 55 is sequentially read from the head area and written to the flash memory 54.

【0050】受信エリア55Aにタスクプログラムが順
次書き込まれ、かつ受信エリア55Aの先頭領域から順
次データが読み出されてフラッシュメモリ54に書き込
まれると、フラッシュメモリ54の領域54Aには受信
エリア55Aの領域55A1のデータ「FF」Hが書き
込まれ、フラッシュメモリ54の領域54Bには受信エ
リア55Aの領域55A2のプログラムデータが書き込
まれる。その後、I/F装置5は引き続き受信エリア5
5Aのアドレス「1+N1+N2」番地からアドレス
「N1+N2+N3」までの領域55A3のデータ「F
F」Hを順次フラッシュメモリ54の領域55Cに書き
込む。フラッシュメモリ54に全てのデータが書き込ま
れると、受信エリア55Aのデータとフラッシュメモリ
54のデータとは一致する。
When the task program is sequentially written in the receiving area 55A, and the data is sequentially read from the head area of the receiving area 55A and written in the flash memory 54, the area 54A of the flash memory 54 becomes the area of the receiving area 55A. The data “FF” H of 55A1 is written, and the program data of the area 55A2 of the receiving area 55A is written in the area 54B of the flash memory 54. After that, the I / F device 5 continues the reception area 5
The data “F” in the area 55A3 from the address “1 + N1 + N2” of 5A to the address “N1 + N2 + N3”
F "H are sequentially written to the area 55C of the flash memory 54. When all data is written to the flash memory 54, the data in the reception area 55A and the data in the flash memory 54 match.

【0051】このようにして、主制御部用の全てのタス
クプログラムをフラッシュメモリ54に書き込むことが
できる。主制御部50のCPU51はフラッシュメモリ
54へのデータの書き込みが終了すると、フラッシュメ
モリ54の全てのデータについてチェックサム演算を行
い、この演算結果と管理装置4側から送信されたチェッ
クサム演算とを比較する。そして、双方のチェックサム
演算結果が一致した場合はフラッシュメモリ54にタス
クデータが正常にダウンロードされたものと判定する。
Thus, all the task programs for the main control unit can be written in the flash memory 54. When the data writing to the flash memory 54 is completed, the CPU 51 of the main control unit 50 performs a checksum operation on all the data in the flash memory 54, and compares the calculation result with the checksum operation transmitted from the management device 4 side. Compare. Then, when both the checksum calculation results match, it is determined that the task data has been normally downloaded to the flash memory 54.

【0052】このように、管理装置4のデータベース4
3内の主制御部用タスクプログラムを改版して主制御部
50のフラッシュメモリ54へダウンロードする場合、
改版タスクプログラムを含む全てのタスクプログラムを
ダウンロードするようにしたものである。この結果、管
理装置側では版数の異なる複数のタスクプログラムを1
つのプログラムとして管理できることから、管理装置側
の管理の複雑化を回避できるとともに、主制御部50に
は全てのタスクプログラムが一括してダウンロードされ
ることから、主制御部50側ではダウンロードされたプ
ログラムとダウンロードされないプログラムの混在に起
因する誤動作を未然に防止できる。
As described above, the database 4 of the management device 4
In the case where the main control unit task program in 3 is revised and downloaded to the flash memory 54 of the main control unit 50,
All the task programs including the revised task program are downloaded. As a result, on the management device side, a plurality of task programs having different versions are stored in one.
Management can be avoided as one program, so that the management on the management device side can be prevented from being complicated, and all task programs are collectively downloaded to the main control unit 50. And malfunctions caused by the mixture of programs that are not downloaded.

【0053】また、前記主制御部用各タスクプログラム
を主制御部50へダウンロードする場合、データベース
43の該当プログラムエリア43A及びこのプログラム
エリアと同一サイズのRAM55の受信エリア55Aを
データ「FF」Hで初期化し、初期化されたデータベー
ス43のプログラムエリア43Aにダウンロード対象の
全てのタスクプログラムを格納しかつそのプログラムエ
リア43Aの全てのデータについてチェックサム演算を
行って各タスクプログラムとチェックサム演算結果とを
主制御部50へ送信する一方、主制御部50では、タス
クプログラムを受信するとRAM55の受信エリア55
Aに書き込むと同時に受信エリア55Aの全てのデータ
をフラッシュメモリ54に書き込み、書き込んだ全ての
データについてチェックサム演算を行って、管理装置4
からのチェックサム演算結果と比較するようにしたもの
である。
When each of the task programs for the main control unit is downloaded to the main control unit 50, the corresponding program area 43A of the database 43 and the reception area 55A of the RAM 55 having the same size as this program area are stored as data "FF" H. Initialize, store all the task programs to be downloaded in the initialized program area 43A of the database 43, perform checksum calculation on all data in the program area 43A, and calculate each task program and the checksum calculation result. While transmitting the task program to the main control unit 50, the main control unit 50
A, at the same time as writing to A, all data in the receiving area 55A is written to the flash memory 54, and a checksum operation is performed on all the written data, and the management device 4
This is compared with the checksum calculation result from.

【0054】この結果、管理装置4側ではデータベース
43の該当プログラムエリア43Aの全データをダウン
ロードする必要がなく、各タスクプログラムデータのみ
をダウンロードすることができダウンロード時間を短縮
できる。また、複数のタスクプログラムを1つのチェッ
クサムで管理するため、プログラムの一元管理が可能に
なる。さらに、ダウンロードした後、そのプログラムの
版数の正否をチェックサムの確認により確認できる。な
お、前述の例は、管理装置4からのプログラムデータを
一旦RAM55に書き込んだ後、RAM55のプログラ
ムデータをフラッシュメモリ54へ転送しているが、フ
ラッシュメモリ54を初期化した後、管理装置4からの
プログラムデータを直接フラッシュメモリ54に書き込
むようにしても良い。
As a result, the management device 4 does not need to download all data in the corresponding program area 43A of the database 43, and can download only each task program data, thereby reducing the download time. Further, since a plurality of task programs are managed by one checksum, centralized management of the programs becomes possible. Furthermore, after downloading, the correctness of the version number of the program can be confirmed by checking the checksum. In the above-described example, the program data from the management device 4 is once written in the RAM 55, and then the program data in the RAM 55 is transferred to the flash memory 54. After the flash memory 54 is initialized, May be written directly into the flash memory 54.

【0055】次に、図6は、管理装置4のデータベース
43内の主制御部用各タスクプログラムをI/F装置5
の主制御部50のフラッシュメモリ54にダウンロード
する場合の要部動作を示す説明図である。この説明図に
したがい管理装置4及び主制御部50の各動作を説明す
る。管理装置4のデータベース43内の主制御部用各タ
スクプログラムを改版してダウンロードする場合、管理
装置4は前述したように、まず該当プログラムエリアの
各タスクプログラムを他の領域に退避した後、該当プロ
グラムエリアをデータ「FF」Hで初期化する。そし
て、改版されたタスクプログラムを含む全てのプログラ
ムを該当プログラムエリアの各領域に各個に格納するス
テップ(1)のデータソートを実行する。次に、ステッ
プ(2)で該当プログラムエリアの全てのデータについ
てチェックサム演算を行い、ステップ(3)で主制御部
50に対しダウンロード開始を通知する。
Next, FIG. 6 shows that each task program for the main control unit in the database 43 of the management device 4 is stored in the I / F device 5.
FIG. 4 is an explanatory diagram showing an operation of a main part when downloading to the flash memory 54 of the main control unit 50 of FIG. The operations of the management device 4 and the main control unit 50 will be described with reference to this explanatory diagram. When revising and downloading each task program for the main control unit in the database 43 of the management device 4, the management device 4 first saves each task program in the corresponding program area to another area as described above, and then, The program area is initialized with data "FF" H. Then, the data sorting of step (1) of storing all the programs including the revised task program in each area of the corresponding program area is executed. Next, in step (2), checksum calculation is performed on all data in the corresponding program area, and in step (3), the start of download is notified to the main control unit 50.

【0056】主制御部50は通信処理を実行することに
より、管理装置4から前記ダウンロード開始通知を受信
すると、ステップ(4)でRAM55の受信エリア55
Aをデータ「FF」Hにより初期化する。次に、ステッ
プ(5)でフラッシュメモリ54にデータ書込を行うた
めに受信ポインタWP、書込ポインタFPをそれぞれ初
期化する。これにより、ステップ(6)で受信ポインタ
WPは受信エリア55Aの先頭アドレスに設定され、か
つ書込ポインタFPはフラッシュメモリ54の先頭アド
レスに設定される。主制御部50は、各ポインタWP、
RPの初期設定を行った後、ステップ(7)で管理装置
4へ前述のダウンロード開始通知に対する応答を返送す
る。
When the main control unit 50 receives the download start notification from the management device 4 by executing the communication process, the main control unit 50 executes the communication process to execute the communication process in step (4).
A is initialized with data “FF” H. Next, in step (5), the reception pointer WP and the write pointer FP are initialized to write data in the flash memory 54. Thus, in step (6), the reception pointer WP is set to the start address of the reception area 55A, and the write pointer FP is set to the start address of the flash memory 54. The main control unit 50 controls each pointer WP,
After the initial setting of the RP, a response to the above-described download start notification is returned to the management device 4 in step (7).

【0057】管理装置4は、このダウンロード開始通知
応答に対し、ステップ(8)でデータベース43Bの該
当プログラムエリア内の最初にダウンロードされるタス
クプログラムの1レコード分をそのプログラムの先頭ア
ドレスとともにダウンロードする。主制御部50はダウ
ンロードされたプログラムを受信すると、書込ポインタ
RPに受信したプログラムの先頭アドレスをセットする
とともに、ステップ(9)でRAM55の受信エリア5
5Aの前記ポインタRPで示される領域から順次受信プ
ログラムの書き込みを行い、かつRAMへの書込ポイン
タRPをインクリメントする処理を行う。さらに、主制
御部50はステップ(10)でフラッシュメモリ54に
対する書込要求を行う。
In response to the download start notification response, the management device 4 downloads one record of the task program to be downloaded first in the corresponding program area of the database 43B in step (8) together with the start address of the program. Upon receiving the downloaded program, the main control unit 50 sets the start address of the received program in the write pointer RP, and in step (9), sets the reception area 5
5A, the receiving program is sequentially written from the area indicated by the pointer RP, and the process of incrementing the write pointer RP to the RAM is performed. Further, the main controller 50 issues a write request to the flash memory 54 in step (10).

【0058】前記書込要求が行われると、書込ポインタ
RPと受信ポインタWPとが不一致となるため、主制御
部50はステップ(11)で受信ポインタWPで示され
るRAM55の受信エリア55Aの領域のデータを書込
ポインタFPで示されるフラッシュメモリ54の領域に
書き込み、かつ各ポインタWP,FPの値をインクリメ
ントするフラッシュ書込処理を、RAM書込ポインタR
Pと受信ポインタWPとの値が一致するまで続行する。
When the write request is made, the write pointer RP and the receive pointer WP do not match, and the main control unit 50 determines in step (11) that the area of the receive area 55A of the RAM 55 indicated by the receive pointer WP. Is written to the area of the flash memory 54 indicated by the write pointer FP, and the value of each of the pointers WP and FP is incremented by the RAM write pointer R.
The process is continued until the value of P matches the value of the reception pointer WP.

【0059】こうして、管理装置4から主制御部50へ
のプログラムのダウンロードと、ダウンロードされたプ
ログラムの受信エリア55Aへの書き込みとが順次行わ
れ、1つのタスクプログラムが受信エリア55Aに書き
込まれると、管理装置4は次にダウンロードされるタス
クプログラムの1レコード分をそのプログラムの先頭ア
ドレスとともにダウンロードする。これにより、受信エ
リア55Aの次の領域には次のタスクプログラムが書き
込まれ、かつフラッシュメモリ54には引き続いて受信
エリア55Aのデータが書き込まれる。
Thus, the downloading of the program from the management device 4 to the main control unit 50 and the writing of the downloaded program to the receiving area 55A are sequentially performed. When one task program is written to the receiving area 55A, The management device 4 downloads one record of the task program to be downloaded next together with the start address of the program. As a result, the next task program is written in the area next to the reception area 55A, and the data in the reception area 55A is subsequently written in the flash memory 54.

【0060】このようにして、管理装置4から最後のタ
スクプログラムの最終レコードがステップ(12)でダ
ウンロードされると、主制御部50は、ステップ(1
3)で同様に受信エリア55Aに書き込み、かつステッ
プ(14)でフラッシュメモリ54への書込要求を行
う。これにより、フラッシュメモリ54にプログラムの
最終レコードが書き込まれる。管理装置4は、プログラ
ムの最終レコードを主制御部50に送信した後、主制御
部50に対してステップ(15)でダウンロード終了を
通知する。このダウンロード終了通知時には、管理装置
4で演算された前記チェックサム演算結果が付加され
る。主制御部50は、この終了通知を受信すると、ステ
ップ(16)でRAM書込ポインタRPを受信エリア5
5Aの最終アドレス(ボトム)にセットする。
As described above, when the last record of the last task program is downloaded from the management device 4 in step (12), the main control unit 50 proceeds to step (1).
In the same manner, the data is written in the reception area 55A in the step 3), and a write request to the flash memory 54 is issued in the step (14). Thus, the last record of the program is written to the flash memory 54. After transmitting the last record of the program to the main control unit 50, the management device 4 notifies the main control unit 50 of the end of the download in step (15). At the time of this download end notification, the checksum calculation result calculated by the management device 4 is added. Upon receiving the end notification, the main control unit 50 stores the RAM write pointer RP in the reception area 5 in step (16).
Set to the last address (bottom) of 5A.

【0061】主制御部50は、前述したようにRAM書
込ポインタRPと受信ポインタWPとの値が一致するま
でフラッシュ書込処理を続行し、最終的にRAM書込ポ
インタRPの前記最終アドレスと受信ポインタWPとの
値が一致し、受信エリア55Aの全てのデータがフラッ
シュメモリ54に書き込まれると、ステップ(17)で
書込終了を通知する。この書込終了通知により、主制御
部50の通信処理では、書込ポインタRPが前記最終ア
ドレスに設定されていることを確認して、ステップ(1
8)でフラッシュメモリ54の全てのデータについてチ
ェックサム演算を行い、管理装置4側から受信したチェ
ックサムデータとのチェック結果をステップ(19)で
管理装置4へ送信する。管理装置4は、主制御部50か
らのチェックサムチェック結果をステップ(20)で受
信すると、そのチェック結果が正しければダウンロード
が正常に行われたものと認識し、前記チェックサムチェ
ック結果が正しくなければダウンロードエラーと判断し
て再度のダウンロードを行う。
The main control unit 50 continues the flash write process until the value of the RAM write pointer RP matches the value of the receive pointer WP as described above, and finally, the final address of the RAM write pointer RP is When the value of the reception pointer WP matches and all the data in the reception area 55A has been written to the flash memory 54, the end of writing is notified in step (17). In the communication process of the main control unit 50, the main control unit 50 confirms that the write pointer RP is set to the last address by the write end notification, and proceeds to step (1).
In step 8), a checksum operation is performed on all data in the flash memory 54, and the check result with the checksum data received from the management apparatus 4 is transmitted to the management apparatus 4 in step (19). When the management device 4 receives the checksum check result from the main control unit 50 in step (20), if the check result is correct, the management device 4 recognizes that the download has been normally performed, and if the checksum check result is incorrect. If a download error occurs, the download is performed again.

【0062】図7及び図8は、図6で説明したダウンロ
ード動作をさらに詳細に示すフローチャートである。ま
ず、図7のフローチャートにしたがって管理装置4の動
作を説明する。管理装置4のデータベース43内の各タ
スクプログラムをダウンロードする場合、管理装置4は
該当プログラムエリアをデータ「FF」Hで初期化した
後、各タスクプログラムが順次ダウンロードできるよう
に改版したタスクプログラムを含む全てのプログラムを
該当プログラムエリアの各領域に各個に格納するソート
処理を実行する(ステップS1)。次に、該当プログラ
ムエリアの全てのデータについてチェックサム演算を行
い(ステップS2)、その後主制御部50に対してダウ
ンロード開始を通知する(ステップS3)。
FIGS. 7 and 8 are flowcharts showing the download operation described in FIG. 6 in more detail. First, the operation of the management device 4 will be described according to the flowchart of FIG. When downloading each task program in the database 43 of the management device 4, the management device 4 initializes the corresponding program area with data "FF" H, and then includes a revised task program so that each task program can be downloaded sequentially. A sort process for storing all programs individually in each area of the corresponding program area is executed (step S1). Next, a checksum calculation is performed for all data in the corresponding program area (step S2), and then the start of download is notified to the main control unit 50 (step S3).

【0063】このダウンロード開始通知に対し主制御部
50からダウンロード開始通知応答が返送されステップ
S4の「開始OK」が「Y」となると、管理装置4はデ
ータベース43内の該当プログラムエリアの先頭アドレ
スから1レコード分のタスクプログラムを読み出し(ス
テップS5)、読み出したプログラムデータを送信デー
タとして作成する(ステップS6)。そして、作成した
1レコード分の送信データを主制御部50へダウンロー
ドする(ステップS7)。このようなプログラムデータ
のダウンロードは、全てのタスクプログラム毎に順次実
行される。
When the main control unit 50 returns a download start notification response to the download start notification and “start OK” in step S 4 becomes “Y”, the management apparatus 4 starts from the top address of the corresponding program area in the database 43. The task program for one record is read (step S5), and the read program data is created as transmission data (step S6). Then, the created transmission data for one record is downloaded to the main control unit 50 (step S7). Such downloading of program data is sequentially executed for all task programs.

【0064】データベース43内の該当プログラムエリ
アの全てのタスクプログラムが主制御部50にダウンロ
ードされると、ステップS8の「終了」が「Y」とな
る。この場合、管理装置4は、主制御部50に対し前記
チェックサム演算結果が付加されたダウンロード終了通
知情報を送信する(ステップS9)。このダウンロード
終了通知に対し、主制御部50側ではフラッシュメモリ
54に書き込まれた全てのタスクプログラムを含む全て
のデータについてのチェックサム演算が行われ、かつそ
の演算結果と管理装置4から送信されたチェックサム演
算結果とを比較照合するチェック処理が行われる。そし
て、そのチェック処理結果を管理装置4へ返送する。
When all the task programs in the corresponding program area in the database 43 have been downloaded to the main control unit 50, “End” in step S8 becomes “Y”. In this case, the management device 4 transmits download end notification information to which the checksum calculation result is added to the main control unit 50 (step S9). In response to the download completion notification, the main control unit 50 performs a checksum operation on all data including all the task programs written in the flash memory 54, and transmits the operation result and the operation result from the management device 4. A check process for comparing and comparing the checksum calculation result is performed. Then, the check processing result is returned to the management device 4.

【0065】管理装置4は、主制御部50からの前記チ
ェック処理結果を受信すると、ステップS10の「結果
受信」を「Y」と判定し、そのチェック結果が正しくス
テップS11の「OK」が「Y」となると、ダウンロー
ドが正常に終了したものと認識する(ステップS1
2)。また、管理装置4からの前記チェック結果が正し
くなければエラー処理を行う(ステップS13)。
When receiving the check processing result from the main control unit 50, the management device 4 determines that “result reception” in step S10 is “Y”, the check result is correct, and “OK” in step S11 is “OK”. If "Y", it is recognized that the download has been completed normally (step S1).
2). If the check result from the management device 4 is not correct, error processing is performed (step S13).

【0066】管理装置4の以上のような動作に応動する
主制御部50は、図8(a)の通信処理において、管理
装置4からのダウンロード開始の通知の有無を判断する
(ステップS21)。ここで、管理装置4からダウンロ
ード開始が通知されると、RAM55の受信エリア55
Aをデータ「FF」Hで初期化する(ステップS2
2)。その後、主制御部50は、図8(b)のフラッシ
ュ書込処理において、RAM55の各領域55B,55
CのRAM書込ポインタRP,受信ポインタWPをそれ
ぞれ受信エリア55Aの先頭アドレスにセットし、かつ
RAM55の領域55Dの書込ポインタFPをフラッシ
ュメモリ54の先頭アドレスにセットする(ステップS
41)。
The main control unit 50 responding to the above operation of the management apparatus 4 determines whether there is a notification of the download start from the management apparatus 4 in the communication processing of FIG. 8A (step S21). Here, when the start of download is notified from the management device 4, the reception area 55 of the RAM 55 is received.
A is initialized with data "FF" H (step S2)
2). Thereafter, in the flash writing process of FIG.
The RAM write pointer RP and the reception pointer WP of C are respectively set to the head address of the reception area 55A, and the write pointer FP of the area 55D of the RAM 55 is set to the head address of the flash memory 54 (step S).
41).

【0067】次に、主制御部50は、管理装置4からの
ダウンロード開始通知に対する応答を管理装置4に返送
する(ステップS23)。このダウンロード開始通知応
答の返送により、管理装置4からタスクプログラムがダ
ウンロードされると、書込ポインタRPに管理装置4か
ら受信したそのプログラムの先頭アドレスをセットする
(ステップS26)とともに、管理装置4から受信した
プログラムデータを受信エリア55Aの前記書込ポイン
タRPで示される領域にセットし、かつ書込ポインタR
Pをインクリメントして後続の受信データを順次受信エ
リア55Aの後続領域にセットする処理を実行する(ス
テップS26)。
Next, the main control unit 50 returns a response to the download start notification from the management device 4 to the management device 4 (step S23). When the task program is downloaded from the management device 4 by returning the download start notification response, the start address of the program received from the management device 4 is set to the write pointer RP (step S26), and The received program data is set in an area of the reception area 55A indicated by the write pointer RP, and the write pointer R
A process of incrementing P and sequentially setting subsequent reception data in a subsequent area of the reception area 55A is executed (step S26).

【0068】書込ポインタRPに管理装置4から受信し
たプログラムの先頭アドレスがセットされると、図8
(b)のフラッシュ書込処理においてステップS42の
「WP=RP」が「N」となる。この場合、主制御部5
0は、受信ポインタWPで示される受信エリア55Aの
領域から250バイト分のデータを順次読み出してフラ
ッシュ書込ポインタFPで示されるフラッシュメモリ5
4の領域へ順次書き込むために、ステップS43の「F
Pに対し、WPの示すアドレス以降の256バイトの書
き込み要求」を行い、かつ1バイトが書き込まれる毎に
ステップS44の「WP,RPにそれぞれ次のアドレス
を設定する」処理を実行する。こうして、フラッシュメ
モリ54に256バイトのRAMデータの書き込みが終
了し、ステップS45の判定が「Y」となると、主制御
部50はステップS46で受信ポインタWPとRAM書
込ポインタRPとの一致を比較し、双方の不一致を確認
すると、ステップS43及びS44の各処理を順次行っ
て受信エリア55Aの次の256バイトのデータをフラ
ッシュメモリ54の次の領域に書き込む。
When the start address of the program received from the management device 4 is set in the write pointer RP,
In the flash writing process of (b), “WP = RP” in step S42 becomes “N”. In this case, the main control unit 5
0 indicates that 250 bytes of data are sequentially read from the area of the reception area 55A indicated by the reception pointer WP and the flash memory 5 indicated by the flash write pointer FP.
In order to sequentially write data in the area No. 4, “F
A request is made to P for writing 256 bytes after the address indicated by WP, and every time one byte is written, the process of setting the next address for WP and RP in step S44 is executed. Thus, when the writing of the 256-byte RAM data to the flash memory 54 is completed, and the determination in step S45 is “Y”, the main control unit 50 compares the reception pointer WP with the RAM write pointer RP in step S46. Then, when the mismatch is confirmed, the processes of steps S43 and S44 are sequentially performed, and the next 256-byte data of the reception area 55A is written to the next area of the flash memory 54.

【0069】一方、主制御部50は、管理装置4側から
の全てのタスクプログラムのダウンロードが終了した後
に管理装置4から終了通知を受信すると、ステップS2
7の「終了通知受信」を「Y」と判定する。この場合、
主制御部50は書込ポインタRPを受信エリア55Aの
最終アドレス(ボトム)に設定する(ステップS2
8)。この書込ポインタRPが受信エリア55Aの最終
アドレスに設定されることにより、図8(b)のフラッ
シュ書込処理ではステップS42の「WP=RP」が
「N」となり、この結果、主制御部50によりステップ
S43,S44の各処理が実行される。このステップS
43,S44の各処理の実行により、受信エリア55A
のプログラムデータ領域以降の空き領域のデータ「F
F」Hが最終アドレスまで順次読み出されてフラッシュ
メモリ54に書き込まれる。これにより、ステップS4
6の「WP=RP」が「Y」となるため、書込終了を通
知する(ステップS47)。
On the other hand, when the main control unit 50 receives the end notification from the management device 4 after all the task programs have been downloaded from the management device 4, the main control unit 50 proceeds to step S2.
7 is determined as “Y” for “end notification reception”. in this case,
The main control unit 50 sets the write pointer RP to the last address (bottom) of the reception area 55A (step S2).
8). By setting this write pointer RP to the last address of the reception area 55A, in the flash write processing of FIG. 8B, “WP = RP” in step S42 becomes “N”, and as a result, the main control unit By 50, each processing of steps S43 and S44 is executed. This step S
43 and S44, the reception area 55A
Of the free area after the program data area
F "H are sequentially read out to the final address and written to the flash memory 54. Thereby, step S4
Since "WP = RP" of No. 6 becomes "Y", the writing completion is notified (step S47).

【0070】この書込終了通知により、図8(a)の通
信処理のステップS29の「書込終了通知」が「Y」と
なる。この場合、主制御部50は、ステップS30で受
信ポインタWPが受信エリア55Aの最終アドレスであ
ることを確認すると、フラッシュメモリ54の全てのデ
ータについてチェックサム演算を行い(ステップS3
1)、かつ、この演算結果と、前記終了通知の受信の際
に管理装置4から受信した管理装置4側のチェックサム
演算結果とを比較照合してチェックし、このチェック結
果を管理装置4へ通知する(ステップS32)。このチ
ェック結果の通知により、管理装置4は、そのチェック
結果が正しいと判断した場合はダウンロードが正常に終
了したものと認識する一方、管理装置4からの前記チェ
ック結果が正しくないと判断した場合はエラー処理を行
う。
By this writing end notification, the "writing end notification" in step S29 of the communication process in FIG. 8A becomes "Y". In this case, when confirming in step S30 that the reception pointer WP is the last address of the reception area 55A, the main control unit 50 performs a checksum operation on all data in the flash memory 54 (step S3).
1) In addition, the calculation result is compared and checked with the checksum calculation result of the management device 4 received from the management device 4 at the time of receiving the end notification, and the check result is sent to the management device 4. Notify (step S32). When the management device 4 determines that the check result is correct based on the notification of the check result, it recognizes that the download has been completed normally, and when the management device 4 determines that the check result from the management device 4 is not correct, Perform error handling.

【0071】以上の第1〜第3の実施の形態では、管理
装置4からそれぞれ公衆電話機1,I/F装置5の副制
御部60,I/F装置5の主制御部50に対しプログラ
ムをダウンロードする例について説明したが、タウンロ
ード対象端末としてフラッシュメモリを備えた端末であ
ればどのような端末に対しても適用できる。
In the first to third embodiments described above, the program is sent from the management device 4 to the public telephone 1, the sub-control unit 60 of the I / F device 5, and the main control unit 50 of the I / F device 5, respectively. Although the example of downloading has been described, the present invention can be applied to any terminal provided with a flash memory as a terminal to be downloaded.

【0072】[0072]

【発明の効果】以上説明したように本発明によれば、複
数の端末と、管理装置とを備え、端末は第1のメモリを
内蔵するとともに第1のメモリに格納されたプログラム
を実行し、管理装置は複数の端末の各プログラムがそれ
ぞれ格納される複数の第2のメモリを有し、プログラム
の改版の必要が生じた改版対象端末に対し、改版対象端
末に対応する第2のメモリの改版プログラムをダウンロ
ードして改版対象端末の第1のメモリのプログラムを更
新するシステムにおいて、端末の第1のメモリのプログ
ラムを構成する複数のタスクプログラムのうち少なくと
も1つのタスクプログラムの改版の要請が発生すると、
管理装置により改版対象端末に対応する第2のメモリの
タスクプログラムを改版し、タスクプログラムの改版
後、管理装置から改版対象端末へアクセスして改版対象
端末に対し第2のメモリの改版タスクプログラムを含む
全てのタスクプログラムをダウンロードし、改版対象端
末の第1のメモリの全てのタスクプログラムを更新する
ようにしたので、管理装置側では版数の異なる複数のタ
スクプログラムを1つのプログラムとして管理できるこ
とから、管理装置側の管理の複雑化を防止できるととも
に、端末に対しては複数のタスクプログラムを一括して
ダウンロードできるため、端末側のダウンロードされた
プログラムとダウンロードされないプログラムの混在に
起因する誤動作を未然に防止できる。
As described above, according to the present invention, a plurality of terminals and a management device are provided, and the terminals have a built-in first memory and execute a program stored in the first memory. The management device has a plurality of second memories in which the programs of the plurality of terminals are respectively stored. For a terminal to be revised in which the program needs to be revised, a revision of the second memory corresponding to the terminal to be revised is performed. In a system for downloading a program and updating a program in a first memory of a terminal to be revised, when a request for a revision of at least one task program among a plurality of task programs constituting the program in the first memory of the terminal occurs. ,
The management device updates the task program in the second memory corresponding to the terminal to be updated, and after the task program is updated, accesses the terminal to be updated from the management device and executes the task program for updating the second memory to the terminal to be updated. Since all the task programs including the different versions are downloaded and all the task programs in the first memory of the terminal to be revised are updated, the management device can manage a plurality of task programs having different versions as one program. In addition, the management of the management device can be prevented from becoming complicated, and a plurality of task programs can be downloaded to the terminal at one time. This prevents malfunctions caused by a mixture of downloaded and undownloaded programs on the terminal. Can be prevented.

【0073】また、端末のタスクプログラム改版の要請
が発生すると、改版対象端末に対応する第2のメモリを
初期化し、初期化した第2のメモリに改版タスクプログ
ラムを含む全てのタスクプログラムを各個に格納すると
ともに、第2のメモリ内のタスクプログラムを含む全て
のデータについてチェックサム演算を行い、第2のメモ
リ内のタスクプログラムとチェックサム演算結果とを改
版対象端末へダウンロードする一方、ダウンロードされ
たタスクプログラムを受信すると、第2のメモリと同一
の容量を有する第1のメモリを初期化し、初期化した第
1のメモリに受信タスクプログラムを書き込むととも
に、第1のメモリに受信タスクプログラムが書き込まれ
ると、第1のメモリの全てのデータについてチェックサ
ム演算を行い、このチェックサム演算結果と、ダウンロ
ードされたチェックサム演算結果とを比較し、比較結果
を管理装置へ返送するようにしたので、端末に対してプ
ログラムが正常にダウンロードされたか否かを的確に識
別でき、かつダウンロード時にはプログラムデータのみ
を送信するため、ダウンロード時間を短縮できる。ま
た、ダウンロードされたタスクプログラムを受信する
と、第2のメモリと同一の容量を有する第3のメモリを
初期化し、初期化した第3のメモリに受信タスクプログ
ラムを書き込むと同時に第3のメモリの全てのデータを
第3のメモリと同一容量を有する第1のメモリに順次書
き込むようにしたので、端末に対して的確なダウンロー
ドを行えるとともに、同様にダウンロード時間を短縮で
きる。
Further, when a request for a task program revision of the terminal occurs, the second memory corresponding to the terminal to be revised is initialized, and all the task programs including the revised task program are individually stored in the initialized second memory. While storing, the checksum calculation is performed on all data including the task program in the second memory, and the task program and the checksum calculation result in the second memory are downloaded to the terminal to be revised, while the downloaded data is downloaded. When the task program is received, the first memory having the same capacity as the second memory is initialized, the reception task program is written in the initialized first memory, and the reception task program is written in the first memory. And performs a checksum operation on all data in the first memory. Since the checksum calculation result is compared with the downloaded checksum calculation result and the comparison result is returned to the management device, it is possible to accurately identify whether the program has been normally downloaded to the terminal, and Since only the program data is transmitted at the time of downloading, the download time can be reduced. Further, when the downloaded task program is received, the third memory having the same capacity as the second memory is initialized, and the received task program is written into the initialized third memory, and at the same time, all of the third memory is written. Is sequentially written to the first memory having the same capacity as the third memory, so that accurate downloading to the terminal can be performed and the download time can be similarly reduced.

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

【図1】 本発明に係るプログラムダウンロード方法を
適用したシステムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a system to which a program download method according to the present invention is applied.

【図2】 上記システムを構成する公衆電話機のブロッ
ク図である。
FIG. 2 is a block diagram of a public telephone constituting the system.

【図3】 上記システムを構成するI/F装置のブロッ
ク図である。
FIG. 3 is a block diagram of an I / F device constituting the system.

【図4】 プログラムがダウンロードされるI/F装置
のRAM及びフラッシュメモリの構成を示す図である。
FIG. 4 is a diagram showing a configuration of a RAM and a flash memory of an I / F device to which a program is downloaded.

【図5】 プログラムダウンロード時のメモリの状況を
示す説明図である。
FIG. 5 is an explanatory diagram showing a state of a memory when a program is downloaded.

【図6】 プログラムのダウンロード動作を示す説明図
である。
FIG. 6 is an explanatory diagram showing a program download operation.

【図7】 プログラムをダウンロードする管理装置の動
作を示すフローチャートである。
FIG. 7 is a flowchart illustrating an operation of a management device that downloads a program.

【図8】 プログラムがダウンロードされるI/F装置
の動作を示すフローチャートである。
FIG. 8 is a flowchart showing an operation of an I / F device to which a program is downloaded.

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

1…公衆電話機、2…電話局、3…ICカード、4…管
理装置、5…I/F装置、11,51,62…CPU、
12,54,64…フラッシュメモリ(第1のメモ
リ)、13,55,65…RAM(第3のメモリ)、4
1…制御部、43……データベース、43A…プログラ
ムエリア(第2のメモリ)、50…主制御部、60…副
制御部。
DESCRIPTION OF SYMBOLS 1 ... Public telephone, 2 ... Telephone office, 3 ... IC card, 4 ... Management device, 5 ... I / F device, 11, 51, 62 ... CPU,
12, 54, 64 ... flash memory (first memory), 13, 55, 65 ... RAM (third memory), 4
DESCRIPTION OF SYMBOLS 1 ... Control part, 43 ... Database, 43A ... Program area (2nd memory), 50 ... Main control part, 60 ... Sub-control part.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の端末と、管理装置とからなり、前
記端末は第1のメモリを内蔵するとともに前記第1のメ
モリに格納されたプログラムを実行し、前記管理装置は
前記複数の端末の各プログラムがそれぞれ格納される複
数の第2のメモリを有し、前記プログラムの改版の必要
が生じた改版対象端末に対し、前記改版対象端末に対応
する第2のメモリの改版プログラムをダウンロードして
前記改版対象端末の第1のメモリのプログラムを更新す
るシステムにおいて、 前記端末の第1のメモリのプログラムを構成する複数の
タスクプログラムのうち少なくとも1つのタスクプログ
ラムの改版の要請が発生すると、前記管理装置により前
記改版対象端末に対応する第2のメモリのタスクプログ
ラムを改版する改版ステップと、 前記タスクプログラムの改版後、前記管理装置から前記
改版対象端末へアクセスするステップと、 アクセスした前記改版対象端末へ第2のメモリの前記改
版タスクプログラムを含む全てのタスクプログラムをダ
ウンロードするダウンロードステップと、 前記改版対象端末の第1のメモリの全てのタスクプログ
ラムを前記ダウンロードされたタスクプログラムに更新
する更新ステップとを有することを特徴とするプログラ
ムダウンロード方法。
1. A terminal comprising: a plurality of terminals; and a management device, wherein the terminal has a built-in first memory and executes a program stored in the first memory; Each of the programs has a plurality of second memories stored therein, and for a terminal to be revised in which the program needs to be revised, a revised program in the second memory corresponding to the terminal to be revised is downloaded. In a system for updating a program in a first memory of a terminal to be updated, when a request to update at least one task program among a plurality of task programs constituting a program in a first memory of the terminal occurs, the management is performed. A revision step of revising a task program in a second memory corresponding to the revision target terminal by a device; Accessing the terminal to be updated from the management device after updating the system, a download step of downloading all task programs including the updated task program in the second memory to the accessed terminal to be updated, An updating step of updating all the task programs in the first memory of the target terminal to the downloaded task programs.
【請求項2】 請求項1において、 前記改版ステップは、 前記端末のタスクプログラム改版の要請が発生すると、
前記改版対象端末に対応する第2のメモリを初期化する
ステップと、 初期化された第2のメモリに改版タスクプログラムを含
む全てのタスクプログラムを各個に格納するステップ
と、 前記第2のメモリ内のタスクプログラムを含む全てのデ
ータについてチェックサム演算を行うステップとを含
み、 かつ、前記ダウンロードステップは、 前記第2のメモリ内のタスクプログラムと前記チェック
サム演算結果とを前記改版対象端末へダウンロードする
ステップを含むとともに、 前記更新ステップは、 前記ダウンロードされたタスクプログラムを受信する
と、前記第2のメモリと同一の容量を有する前記第1の
メモリを初期化するステップと、 初期化された第1のメモリに受信タスクプログラムを書
き込むステップと、 第1のメモリに受信タスクプログラムが書き込まれる
と、第1のメモリの全てのデータについてチェックサム
演算を行うステップと、 前記チェックサム演算結果と、ダウンロードされたチェ
ックサム演算結果とを比較し、比較結果を管理装置へ返
送するステップとを含むことを特徴とするプログラムダ
ウンロード方法。
2. The method according to claim 1, wherein the updating step includes: when a request for updating the task program of the terminal occurs.
Initializing a second memory corresponding to the terminal to be updated; storing all task programs including the updated task program in the initialized second memory; Performing a checksum operation on all data including the task program of (a), and the downloading step downloads the task program in the second memory and the checksum operation result to the terminal to be updated. And an updating step, upon receiving the downloaded task program, initializing the first memory having the same capacity as the second memory; and Writing a receiving task program to the memory; Performing the checksum operation on all the data in the first memory, and comparing the checksum operation result with the downloaded checksum operation result and returning the comparison result to the management device. And a program download method.
【請求項3】 請求項1において、 前記改版ステップは、 前記端末のタスクプログラム改版の要請が発生すると、
前記改版対象端末に対応する第2のメモリを初期化する
ステップと、 初期化された第2のメモリに改版タスクプログラムを含
む全てのタスクプログラムを各個に格納するステップ
と、 前記第2のメモリ内のタスクプログラムを含む全てのデ
ータについてチェックサム演算を行うステップとを含
み、 かつ、前記ダウンロードステップは、 前記第2のメモリ内のタスクプログラムと前記チェック
サム演算結果とを前記改版対象端末へダウンロードする
ステップを含むとともに、 前記更新ステップは、 前記ダウンロードされたタスクプログラムを受信する
と、前記第2のメモリと同一の容量を有する第3のメモ
リを初期化するステップと、 初期化された第3のメモリに受信タスクプログラムを書
き込むとともに、第3のメモリの全てのデータを前記第
3のメモリと同一の容量を有する前記第1のメモリに順
次書き込むステップと、 第1のメモリに全てのデータが書き込まれると、第1の
メモリの全てのデータについてチェックサム演算を行う
ステップと、 前記チェックサム演算結果と、ダウンロードされたチェ
ックサム演算結果とを比較し、比較結果を管理装置へ返
送するステップとを含むことを特徴とするプログラムダ
ウンロード方法。
3. The method according to claim 1, wherein the step of updating includes: when a request for updating the task program of the terminal occurs.
Initializing a second memory corresponding to the terminal to be updated; storing all task programs including the updated task program in the initialized second memory; Performing a checksum operation on all data including the task program of (a), and the downloading step downloads the task program in the second memory and the checksum operation result to the terminal to be updated. Receiving the downloaded task program, initializing a third memory having the same capacity as the second memory; and updating the initialized third memory. And write the receiving task program to all the data in the third memory. Sequentially writing to the first memory having the same capacity as the third memory; and performing checksum operation on all data in the first memory when all data is written to the first memory. And a step of comparing the checksum calculation result with the downloaded checksum calculation result, and returning the comparison result to a management device.
JP30557899A 1999-10-27 1999-10-27 Program download method Pending JP2001125789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30557899A JP2001125789A (en) 1999-10-27 1999-10-27 Program download method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30557899A JP2001125789A (en) 1999-10-27 1999-10-27 Program download method

Publications (1)

Publication Number Publication Date
JP2001125789A true JP2001125789A (en) 2001-05-11

Family

ID=17946840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30557899A Pending JP2001125789A (en) 1999-10-27 1999-10-27 Program download method

Country Status (1)

Country Link
JP (1) JP2001125789A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004003742A1 (en) * 2002-06-28 2004-01-08 Sony Corporation Information processing unit and method, recording medium, and program
JP2019179308A (en) * 2018-03-30 2019-10-17 沖電気工業株式会社 Information processing device, information processing terminal, information processing system, information processing device-side program and information processing terminal-side program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004003742A1 (en) * 2002-06-28 2004-01-08 Sony Corporation Information processing unit and method, recording medium, and program
CN100409192C (en) * 2002-06-28 2008-08-06 索尼株式会社 Information processing unit and method, recording medium, and program
JP2019179308A (en) * 2018-03-30 2019-10-17 沖電気工業株式会社 Information processing device, information processing terminal, information processing system, information processing device-side program and information processing terminal-side program
JP7063057B2 (en) 2018-03-30 2022-05-09 沖電気工業株式会社 Information processing device, information processing terminal, information processing system, information processing device side program and information processing terminal side program

Similar Documents

Publication Publication Date Title
US7991988B2 (en) Communication device and firmware update method thereof
US20110283274A1 (en) Firmware image update and management
US5689640A (en) Method and system for downloading data to network nodes
JPH11259284A (en) On-line program updating system and computer readable storage medium for recording program for updating program
WO2003083647A1 (en) Communication terminal software updating method, communication terminal, and software updating method
JP2002099441A (en) Communication terminal apparatus and its operating method
JP2002207599A (en) Communication terminal and software update system thereof
JP3093541B2 (en) Terminal device and online system for managing version numbers of programs and data
JP2001125789A (en) Program download method
US6862346B2 (en) System data sharing management system in LAN telephone system
CN112860595B (en) PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly
CN113923240A (en) System and method for dynamically upgrading equipment interface protocol in gateway of Internet of things by using local OTA method
JP3152144B2 (en) How to download
JP4478298B2 (en) Data transfer system
JP3226566B2 (en) Electronic exchange system
JPH1027097A (en) Method and device for rewriting data of flash rom
KR100630871B1 (en) User terminal, method for upgrading software of user terminal and recording medium
JP2003177919A (en) Communication device and its memory management method
KR20010074936A (en) Programmable hands free telephone system
JP2001101007A (en) Down-load method
JPH08297576A (en) Station data loading system
US6298402B1 (en) Method for rewriting data including program in an information processing apparatus and an information processing apparatus capable of rewriting data including program
JP2000259398A (en) Module version management device
JPH10177527A (en) Method for writing and reading-out data in and from flash memory, and storage device using the memory
KR100586357B1 (en) System and Method for Operating Internet Protocol Phone