JP3000895B2 - How to download - Google Patents

How to download

Info

Publication number
JP3000895B2
JP3000895B2 JP7184678A JP18467895A JP3000895B2 JP 3000895 B2 JP3000895 B2 JP 3000895B2 JP 7184678 A JP7184678 A JP 7184678A JP 18467895 A JP18467895 A JP 18467895A JP 3000895 B2 JP3000895 B2 JP 3000895B2
Authority
JP
Japan
Prior art keywords
checksum
block
program
receiving
transmitting
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.)
Expired - Lifetime
Application number
JP7184678A
Other languages
Japanese (ja)
Other versions
JPH0916404A (en
Inventor
有造 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP7184678A priority Critical patent/JP3000895B2/en
Publication of JPH0916404A publication Critical patent/JPH0916404A/en
Application granted granted Critical
Publication of JP3000895B2 publication Critical patent/JP3000895B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、送信側装置から受信側
装置へプログラムをダウンロードするダウンロード方法
に関し、特に、ダウンロード済みの現プログラムと一部
のみが異なる新プログラムをダウンロードする際に有効
となるダウンロード方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a download method for downloading a program from a transmitting apparatus to a receiving apparatus, and particularly to a method for downloading a new program which differs from the downloaded current program only in part. Download methods that are valid for

【0002】[0002]

【従来の技術】送信側装置から受信側装置へプログラム
をダウンロードする場合、既に受信側装置へダウンロー
ドしてある現プログラムをバージョンアップするために
現プログラムと一部のみが異なる新プログラムをダウン
ロードする場合であっても、従来は、一般に新プログラ
ムを全て送信側装置から受信側装置へ送信するようにし
ていた。しかし、この方法では、現プログラムと内容が
同じ部分、即ち送信することが必要でない部分も送信さ
れることになるため、ダウンロードに多くの無駄な時間
が費やされるという問題があった。
2. Description of the Related Art When downloading a program from a transmitting device to a receiving device, downloading a new program that differs only in part from the current program in order to upgrade the current program that has already been downloaded to the receiving device. However, conventionally, in general, all new programs are transmitted from the transmitting device to the receiving device. However, in this method, a portion having the same contents as the current program, that is, a portion that does not need to be transmitted is also transmitted, so that there is a problem that a lot of useless time is spent for downloading.

【0003】また、特開平3−3443号公報には、主
処理装置が管理している網状態表示データを端末装置へ
ダウンロードする際、ダウンロードに要する時間を少な
くするための技術として以下に示す技術が記載されてい
る。
Japanese Patent Application Laid-Open No. 3-3443 discloses a technique described below as a technique for reducing the time required for downloading network status display data managed by a main processing device to a terminal device. Is described.

【0004】先ず、端末装置が、自装置で保持している
網状態表示データを複数のデータ群に分割して各データ
群のチェックサムを求める。その後、主処理装置へ各デ
ータ群のチェックサムを含むチェックサム付きデータ群
一括収集要求信号を送出する。
[0004] First, a terminal device divides the network status display data held by the terminal device into a plurality of data groups, and obtains a checksum of each data group. After that, a data group collective request signal with a checksum including a checksum of each data group is sent to the main processing unit.

【0005】主処理装置では、端末装置からのチェック
サム付きデータ群一括収集要求信号を受信すると、自装
置で保持している網状態表示データを複数のデータ群に
分割して各データ群のチェックサムを求める。その後、
主処理装置は、自装置で保持している各データ群のチェ
ックサムと、端末装置から送られてきたチェックサム付
きデータ群一括収集要求信号に含まれているチェックサ
ムとの対応するものを互いに比較する。そして、比較不
一致のチェックサムがあれば、そのチェックサムと対応
するデータ群のみを端末装置へ送出する。
When the main processing device receives a data group batch collection request signal with a checksum from the terminal device, the main processing device divides the network status display data held by itself into a plurality of data groups and checks each data group. Ask for Sam. afterwards,
The main processor compares the checksum of each data group held by the own device with the checksum included in the data group batch collection request signal with checksum sent from the terminal device. Compare. Then, if there is a checksum that does not match, only the data group corresponding to the checksum is sent to the terminal device.

【0006】端末装置では、主処理装置からデータ群が
送られてくると、自装置で保持しているデータ群の内、
上記データ群と対応するデータ群を送られてきたデータ
群で置き替える。
[0006] In the terminal device, when a data group is sent from the main processing device, of the data group held in the terminal device,
The data group corresponding to the data group is replaced with the transmitted data group.

【0007】[0007]

【発明が解決しようとする課題】上述した従来の技術を
プログラムのダウンロードに適用すれば、送信側装置で
ある主処理装置から受信側装置である端末装置へ既にダ
ウンロードしてある現プログラムと一部のみが異なる新
プログラムをダウンロードする際、新プログラムの一部
のみを送信するだけで、受信側装置に新プログラムをダ
ウンロードすることが可能になるので、新プログラムを
全て送信する場合に比較して新プログラムのダウンロー
ドに要する時間を短いものにすることができる。
If the above-mentioned conventional technique is applied to program download, the current program which has already been downloaded from the main processing apparatus which is the transmitting apparatus to the terminal apparatus which is the receiving apparatus, and a part of the program are downloaded. When downloading a new program that differs only in that only a part of the new program is transmitted, the new program can be downloaded to the receiving device. The time required for downloading the program can be shortened.

【0008】しかし、上述した従来の技術では、送信側
装置,受信側装置の両方でチェックサムを計算する必要
があるため、チェックサムの計算のためにダウンロード
処理が遅れるという問題があった。また、更に、送信側
装置でチェックサムの比較を行っているため、受信側装
置の台数が多くなると、送信側装置の負荷が増大すると
いう問題があった。
[0008] However, in the above-described conventional technique, since the checksum needs to be calculated by both the transmitting device and the receiving device, there is a problem that the download process is delayed due to the checksum calculation. Further, since the checksum is compared in the transmitting device, there is a problem that as the number of receiving devices increases, the load on the transmitting device increases.

【0009】そこで、本発明の目的は、チェックサム計
算を送信側装置だけで行えば良く、且つ受信側装置の台
数が多くなった場合でも送信側の負荷の増大を少ないも
のにすることができるダウンロード方法を提供すること
にある。
[0009] Therefore, an object of the present invention is to perform checksum calculation only on the transmission side device, and it is possible to reduce an increase in load on the transmission side even when the number of reception side devices increases. The purpose is to provide a download method .

【0010】[0010]

【課題を解決するための手段】本発明は上記目的を達成
するため、現プログラムを所定サイズの複数のブロック
に分割した際の各ブロックと各ブロックのチェックサム
とが格納されたバックアップ領域と、該バックアップ領
域に格納されているブロックがロードされる運用領域と
を有する受信側装置へ送信側装置からプログラムをダウ
ンロードするダウンロード方法であって、 前記送信側装
置が、前記受信側装置へダウンロードする新プログラム
前記所定サイズの複数のブロックに分割して各ブロッ
クのチェックサムを計算し、計算した各ブロックのチェ
ックサムを前記受信側装置へ送信し 前記受信側装置
が、前記バックアップ領域に格納されている前記現プロ
グラムの各ブロックのチェックサムと前記送信側装置か
ら送られてきた前記新プログラムの各ブロックのチェッ
クサムとの対応するものを比較し、チェックサムが比較
不一致となった前記新プログラムのブロックとそのブロ
ックのチェックサムとの送信を前記送信側装置に対して
要求し、 前記送信側装置が、前記受信側装置から送信要
求されたブロックとそのブロックのチェックサムとを前
記受信側装置へ送信し、 前記受信側装置が、前記バック
アップ領域に格納されている現プログラムのブロックと
そのブロックのチェックサムとの内、前記送信側装置か
ら送られてきたブロックとチェックサムとに対応するも
のを前記送信側装置から送られてきたブロックとチェッ
クサムとで置き替え、プログラムのロード時、前記バッ
クアップ領域に格納されている全てのブロックを前記運
用領域にロードする。
According to the present invention, in order to achieve the above object, a current program is stored in a plurality of blocks of a predetermined size.
Checksum of each block and each block when divided into
And the backup area in which the
Area where the blocks stored in the area are loaded
A downloading method for downloading a program from the transmitting device to the receiving device with the transmitting side instrumentation
Location is to divide the new program to be downloaded to the receiving apparatus into a plurality of blocks of said predetermined size to calculate a checksum for each block, and sends the checksum for each was calculated block to the receiving side apparatus, wherein Receiver device
Is the current program stored in the backup area.
Checksum of each block of the gram
Check each block of the new program sent from
Compare the counterpart with the checksum and compare the checksum
Blocks of the new program that did not match and their blocks
Transmission of the checksum of the
Request, and the transmitting device requests a transmission from the receiving device.
The requested block and the checksum of that block
Transmitting to the receiving device , the receiving device checks, among the blocks of the current program stored in the backup area and the checksum of the block, the block and the checksum sent from the transmitting device. Are replaced with the checksum and the block sent from the transmitting side device, and when loading the program, all the blocks stored in the backup area are loaded into the operation area.

【0011】[0011]

【作用】現プログラムを既にダウンロードしてある受信
側装置へ新プログラムをダウンロードする場合、送信側
装置は、先ず、新プログラムを所定サイズの複数のブロ
ックに分割して各ブロックのチェックサムを計算し、計
算した各ブロックのチェックサムを受信側装置へ送信す
る。
When downloading a new program to a receiving device that has already downloaded the current program, the transmitting device first divides the new program into a plurality of blocks of a predetermined size and calculates a checksum of each block. , And sends the calculated checksum of each block to the receiving device.

【0012】送信側装置から新プログラムの各ブロック
のチェックサムが送られてくると、受信側装置は、送ら
れてきた新プログラムの各ブロックのチェックサムとバ
ックアップ領域に格納されている現プログラムの各ブロ
ックのチェックサムとの対応するものを比較し、チェッ
クサムの比較結果が不一致になった新プログラムのブロ
ックとそのブロックのチェックサムとの送信要求を送信
側装置に対して行う。
When the checksum of each block of the new program is transmitted from the transmitting apparatus, the receiving apparatus transmits the checksum of each block of the new program and the current program stored in the backup area. The checksum of each block is compared with the corresponding checksum, and a request for transmission of the block of the new program in which the comparison result of the checksums does not match and the checksum of the block are sent to the transmission side device.

【0013】この送信要求に応答して、送信側装置は、
送信要求された新プログラムのブロックとそのブロック
のチェックサムとを受信側装置へ送信する。
In response to the transmission request, the transmitting device
The block of the new program requested to be transmitted and the checksum of the block are transmitted to the receiving device.

【0014】前記受信側装置は、新プログラムのブロッ
クとそのブロックのチェックサムとが送られてくると、
バックアップ領域に格納されている現プログラムのブロ
ックとそのブロックのチェックサムとの内、送信側装置
から送られてきたブロック,チェックサムに対応するも
のを送信側装置から送られてきたブロック,チェックサ
ムで置き替える。また、プログラムのロード時には、バ
ックアップ領域に格納されている全てのブロックを運用
領域にロードする。
[0014] When the receiving apparatus receives the block of the new program and the checksum of the block,
Among the blocks of the current program stored in the backup area and the checksum of the block, the block sent from the transmitting device, the block corresponding to the checksum, and the checksum sent from the transmitting device. Replace with When loading a program, all blocks stored in the backup area are loaded into the operation area.

【0015】[0015]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0016】図1は本発明の実施例のブロック図であ
り、送信側装置1と複数台の受信側装置2−1〜2−n
とがネットワーク3を介して接続されている。
FIG. 1 is a block diagram of an embodiment of the present invention. A transmitting apparatus 1 and a plurality of receiving apparatuses 2-1 to 2-n
Are connected via the network 3.

【0017】送信側装置1は、分割手段11と、送信フ
レーム作成手段12と、送信フレーム記憶領域13と、
制御手段14と、送受信手段15とを備えている。
The transmitting device 1 includes a dividing unit 11, a transmission frame creating unit 12, a transmission frame storage area 13,
It comprises a control means 14 and a transmission / reception means 15.

【0018】分割手段11は、受信側装置2−1〜2−
nへダウンロードするプログラムを所定サイズ(例え
ば、256バイト)の複数のブロックに分割する機能を
有する。
The dividing means 11 includes receiving-side devices 2-1 to 2-
n is divided into a plurality of blocks of a predetermined size (for example, 256 bytes).

【0019】送信フレーム作成手段12は、分割手段1
1で分割されたプログラムの各ブロックそれぞれについ
て、ブロックの内容をデータとして含むインテレックH
EXフォーマットの送信フレームを作成し、送信フレー
ム記憶領域13に格納する機能等を有する。
The transmission frame creating means 12 is composed of the dividing means 1
For each block of the program divided by 1, an Intellect H containing the contents of the block as data
It has a function of creating a transmission frame in the EX format and storing it in the transmission frame storage area 13.

【0020】図2はインテレックHEXフォーマットの
送信フレームを示した図であり、スタートマーク41
と、送信するデータのバイト数42と、送信するデータ
の先頭部分がダウンロードするプログラムの先頭から何
バイト目なのかを示す先頭アドレス43と、レコードタ
イプ44と、ブロックの内容であるデータ45と、デー
タ45のチェックサム46と、CR(Carriage
Return Character)47と、LF
(Line Feed Character)48とか
ら構成されている。
FIG. 2 is a diagram showing a transmission frame in the Intellect HEX format.
The number of bytes 42 of the data to be transmitted, the start address 43 indicating the number of bytes from the start of the program to be downloaded, the record type 44, and the data 45 as the contents of the block. A checksum 46 of the data 45 and a CR (Carriage)
(Return Character) 47, LF
(Line Feed Character) 48.

【0021】制御手段14は、送信フレーム記憶領域1
3に格納されている各送信フレーム中の先頭アドレス4
3,チェックサム46を対にして順次送受信手段15を
介して受信側装置2−1〜2−nへ送信する機能,受信
側装置2−1〜2−nから送信要求された送信フレーム
を送受信手段15を介して要求元の受信側装置へ送信す
る機能等を有する。
The control means 14 controls the transmission frame storage area 1
Start address in each transmission frame stored in 3
3. A function of sequentially transmitting the checksums 46 to the receiving devices 2-1 to 2-n via the transmitting / receiving means 15, and transmitting / receiving a transmission frame requested to be transmitted from the receiving devices 2-1 to 2-n. It has a function of transmitting the request to the receiving side device via the means 15.

【0022】また、受信側装置2−1は、送受信手段2
1と、制御手段22と、比較手段23と、置き替え手段
24と、バックアップ領域25と、ロード手段26と、
運用領域27とを備えている。尚、他の受信側装置2−
2〜2−nも同様の構成を有している。
Further, the receiving side device 2-1 includes the transmitting / receiving means 2
1, a control unit 22, a comparison unit 23, a replacement unit 24, a backup area 25, a loading unit 26,
An operation area 27 is provided. In addition, the other receiving device 2-
2 to 2-n have the same configuration.

【0023】バックアップ領域25は、例えば、EEP
ROMから構成され、現プログラムを分割手段11に於
ける分割単位(256バイト)と同じ分割単位で複数の
ブロックに分割した際の各ブロックの内容をそれぞれデ
ータとして含む複数のインテレックHEXフォーマット
のフレームが格納される。今、例えば、バックアップ領
域25には、図3に示すk個のフレーム25−1〜25
−kが格納されているとする。
The backup area 25 is, for example, an EEP
When a current program is divided into a plurality of blocks in the same division unit (256 bytes) as the division unit (256 bytes) in the division means 11, a plurality of frames of the Intellect HEX format including the contents of each block as data are provided. Is stored. Now, for example, in the backup area 25, k frames 25-1 to 25 shown in FIG.
It is assumed that −k is stored.

【0024】運用領域27は、例えばRAMにより構成
され、バックアップ領域25に格納されているフレーム
25−1〜25−k中のデータ(現プログラム)がロー
ドされる。
The operation area 27 is composed of, for example, a RAM, and loads data (current program) in the frames 25-1 to 25-k stored in the backup area 25.

【0025】制御手段22は、送受信手段21が受信し
た先頭アドレスとチェックサムとの対を比較手段23に
渡す機能,比較手段23から比較不一致が通知されたと
き比較手段23に渡したチェックサムと対になっている
先頭アドレスを含む送信要求を送受信手段21を介して
送信側装置1へ送信する機能,送受信手段21が受信し
た送信フレームを置き替え手段24に渡す機能,ロード
手段26を起動する機能を有する。
The control means 22 has a function of passing the pair of the start address and the checksum received by the transmitting / receiving means 21 to the comparing means 23, and the checksum passed to the comparing means 23 when the comparing means 23 is notified of a comparison mismatch. Activate the function of transmitting a transmission request including the paired head address to the transmitting device 1 via the transmission / reception means 21, the function of passing the transmission frame received by the transmission / reception means 21 to the replacement means 24, and the loading means 26. Has functions.

【0026】比較手段23は、制御手段22から渡され
た先頭アドレスとチェックサムとの対に含まれているチ
ェックサムと、バックアップ領域25に格納されている
フレーム中のチェックサムであって、制御手段22から
渡された先頭アドレスと同じ先頭アドレスを含むフレー
ム中のチェックサムとを比較し、比較結果を制御手段2
2に通知する機能を有する。
The comparing means 23 includes a checksum included in the pair of the start address and the checksum passed from the control means 22 and a checksum in the frame stored in the backup area 25. The control unit 2 compares the start address passed from the means 22 with the checksum in the frame including the same start address, and compares the comparison result with the control sum.
2 has the function of notifying it.

【0027】ロード手段26は、バックアップ領域25
に格納されている各フレーム中のデータを順次運用領域
27にロードする機能を有する。
The loading means 26 includes a backup area 25
Has a function of sequentially loading the data in each frame stored in the operation area 27.

【0028】図4は送信側装置1の処理例を示す流れ
図、図5は受信側装置2−1〜2−nの処理例を示す流
れ図であり、以下各図を参照して本実施例の動作を説明
する。
FIG. 4 is a flow chart showing a processing example of the transmitting apparatus 1, and FIG. 5 is a flow chart showing a processing example of the receiving apparatuses 2-1 to 2-n. The operation will be described.

【0029】今、例えば、受信側装置2−1で現在運用
中の現プログラムをバージョンアップした新プログラム
を、送信側装置1から受信側装置2−1へダウンロード
する場合を考えてみる。
Now, for example, consider a case where a new program obtained by upgrading the current program currently operating in the receiving device 2-1 is downloaded from the transmitting device 1 to the receiving device 2-1.

【0030】送信側装置1から受信側装置2−1へ新プ
ログラムをダウンロードする場合、先ず、送信側装置1
内の分割手段11が新プログラムを所定サイズ(256
バイト)の複数のブロックに分割し、各ブロックを送信
フレーム作成手段12に渡す(図4,ステップS1)。
When downloading a new program from the transmitting device 1 to the receiving device 2-1, first, the transmitting device 1
The dividing means 11 in the file stores the new program in a predetermined size (256
Bytes), and each block is passed to the transmission frame creating means 12 (FIG. 4, step S1).

【0031】送信フレーム作成手段12は、分割手段1
1から渡された新プログラムの各ブロックそれぞれにつ
いて、図2に示すようなインテレックHEXフォーマッ
トの送信フレームを作成して送信フレーム記憶領域13
に順次格納し、全てのブロックに対応する送信フレーム
を送信フレーム記憶領域13に格納すると、制御手段1
4に通知を行う(ステップS2)。尚、送信フレーム作
成手段12は、図2に示すようなインテレックHEXフ
ォーマットの送信フレームを作成する際、バイト数42
には256バイトを、先頭アドレス43には256×
(そのフレームが先頭から何番目のフレームかを示す数
値−1)を、レコードタイプ44には拡張タイプを、デ
ータ45にはブロックの内容を、チェックサム46には
データ45のチェックサムを設定する。ここで、チェッ
クサムは実際にチェックサム計算を行って求めるもので
ある。
The transmission frame creating means 12 is provided with the dividing means 1
For each of the blocks of the new program passed from No. 1, a transmission frame of the Intellect HEX format as shown in FIG.
When the transmission frames corresponding to all the blocks are stored in the transmission frame storage area 13, the control unit 1
4 is notified (step S2). The transmission frame creation means 12 creates a transmission frame of the Intellect HEX format as shown in FIG.
Contains 256 bytes, and the head address 43 has 256 ×
(Numerical value -1 indicating the number of the frame from the top of the frame), the extension type is set in the record type 44, the content of the block is set in the data 45, and the checksum of the data 45 is set in the checksum 46. . Here, the checksum is obtained by actually performing a checksum calculation.

【0032】今、例えば、上述した処理が行われること
により、新プログラムがk個のブロックに分割され、送
信フレーム記憶領域13に図6に示すk個の送信フレー
ム13−1〜13−kが格納されたとする。
Now, for example, by performing the above-described processing, the new program is divided into k blocks, and k transmission frames 13-1 to 13-k shown in FIG. Let it be stored.

【0033】制御手段14は、送信フレーム作成手段1
2から全てのブロックに対応する送信フレームの格納終
了が通知されると、送信フレーム記憶領域13に格納さ
れている第1番目の送信フレーム13−1中の先頭アド
レス43とチェックサム46との対(0,CS1)を送
受信手段15を用いて受信側装置2−1へ送信する(ス
テップS3)。
The control means 14 includes the transmission frame creation means 1
When the storage end of the transmission frames corresponding to all the blocks is notified from 2, the pair of the head address 43 and the checksum 46 in the first transmission frame 13-1 stored in the transmission frame storage area 13 is transmitted. (0, CS1) is transmitted to the receiving side device 2-1 using the transmission / reception means 15 (step S3).

【0034】受信側装置2−1内の制御手段22は、送
受信手段21が第1番目の送信フレーム13−1中の先
頭アドレス43とチェックサム46との対(0,CS
1)を受信すると、それを比較手段23に渡す(図5,
ステップS11)。
The control means 22 in the receiving side apparatus 2-1 determines that the transmitting / receiving means 21 has a pair (0, CS) of the head address 43 and the checksum 46 in the first transmission frame 13-1.
When receiving 1), it is passed to the comparing means 23 (FIG. 5,
Step S11).

【0035】比較手段23は、上記した対(0,CS
1)が渡されると、その対に含まれているチェックサム
CS1と、バックアップ領域25に格納されているフレ
ーム中のチェックサムであって、制御手段22から渡さ
れた先頭アドレス「0」と同じ先頭アドレスを含むフレ
ーム中のチェックサムとを比較し、比較結果を制御手段
22に通知する。
The comparing means 23 calculates the pair (0, CS
When 1) is passed, the checksum CS1 included in the pair and the checksum in the frame stored in the backup area 25 are the same as the start address “0” passed from the control unit 22. The checksum in the frame including the start address is compared, and the comparison result is notified to the control unit 22.

【0036】バックアップ領域25には、前述したよう
に、図3に示すようなk個のフレーム25−1〜25−
kが格納されているので、比較手段23は、先頭アドレ
スが0になっているフレーム25−1中のチェックサム
CS1と、制御手段22から渡されたチェックサムCS
1とを比較し、比較結果を制御手段22に通知すること
になる。この場合、チェックサムは共にCS1であるの
で、比較手段23は、比較一致を通知することになる。
ここで、チェックサムの比較を行うのは、比較を行った
チェックサムに対応する新プログラムのブロックを実際
に転送する必要があるか否かを判断するためである。つ
まり、チェックサムが一致する新プログラム,現プログ
ラムのブロックは内容が一致し、転送する必要がないも
のであるから、そのようなブロックは転送は行わずに、
チェックサムが一致しないブロックのみを転送するよう
にして、ダウンロードに要する時間を少なくするためで
ある。
In the backup area 25, as described above, k frames 25-1 to 25- as shown in FIG.
Since k is stored, the comparing means 23 checks the checksum CS1 in the frame 25-1 whose head address is 0 and the checksum CS1 passed from the control means 22.
1 and the control unit 22 is notified of the comparison result. In this case, since both the checksums are CS1, the comparing means 23 notifies the comparison match.
Here, the comparison of the checksums is performed to determine whether it is necessary to actually transfer the block of the new program corresponding to the compared checksums. In other words, the blocks of the new program and the current program that have the same checksum have the same contents, and do not need to be transferred.
This is because only blocks whose checksums do not match are transferred to reduce the time required for downloading.

【0037】制御手段22は、比較一致が通知されると
(ステップS12)、送受信手段21が次の先頭アドレ
ス43とチェックサム46との対を受信するのを待って
(ステップS15)、再びステップS11の処理を行
う。
When the control unit 22 is notified of the comparison match (step S12), the control unit 22 waits for the transmission / reception unit 21 to receive the next pair of the head address 43 and the checksum 46 (step S15). Step S11 is performed.

【0038】一方、送信側装置1内の制御手段14は、
第1番目の送信フレーム13−1中の先頭アドレス43
とチェックサム46との対(0,CS1)を送信してか
ら所定時間が経過しても、受信側装置2−1から送信要
求が送られてこないと(図4,ステップS4がNO)、
次の第2番目の送信フレーム13−2中の先頭アドレス
43とチェックサム46との対(255,CS2’)を
受信側装置2−1へ送信する(ステップS3)。
On the other hand, the control means 14 in the transmitting apparatus 1
Start address 43 in first transmission frame 13-1
If the transmission request is not sent from the receiving side device 2-1 even if a predetermined time has elapsed since the transmission of the pair (0, CS1) with the checksum 46 (FIG. 4, step S4 is NO),
The pair (255, CS2 ') of the start address 43 and the checksum 46 in the next second transmission frame 13-2 is transmitted to the receiving device 2-1 (step S3).

【0039】受信側装置2−1内の制御手段22は、送
受信手段21が第2番目の送信フレーム13−2中の先
頭アドレス43とチェックサム46との対(255,C
S2’)を受信すると、それを比較手段23に渡す(図
5,ステップS11)。
The control means 22 in the receiving side apparatus 2-1 determines that the transmitting / receiving means 21 has a pair (255, C) of the head address 43 and the checksum 46 in the second transmission frame 13-2.
When S2 ') is received, it is passed to the comparing means 23 (FIG. 5, step S11).

【0040】比較手段23は、先頭アドレス43とチェ
ックサム46との対(255,CS2’)が渡される
と、先頭アドレスが255になっている第2番目のフレ
ーム25−2中のチェックサムCS2と、制御手段22
から渡されたチェックサムCS2’とを比較する。この
場合、チェックサムはCS2とCS2’であり、両者は
異なるものであるので、比較手段23は比較不一致を制
御手段22に通知することになる。
When the pair (255, CS2 ') of the start address 43 and the checksum 46 is passed, the comparing means 23 checksums CS2 in the second frame 25-2 in which the start address is 255. And control means 22
Is compared with the checksum CS2 'passed from. In this case, the checksums are CS2 and CS2 ', which are different, so that the comparing means 23 notifies the control means 22 of the comparison mismatch.

【0041】制御手段22は、比較手段23から比較不
一致が通知されると(ステップS12がNO)、送信側
装置1に対して先頭アドレス「255」を含む送信フレ
ームの送信を要求し、そのフレームが送られてくるのを
待つ(ステップS13)。
When the comparison unit 23 is notified of the comparison mismatch (step S12: NO), the control unit 22 requests the transmission-side apparatus 1 to transmit a transmission frame including the head address "255". Is waited for (step S13).

【0042】送信側装置1内の制御手段14は、送受信
手段15が上記した送信要求を受信すると(ステップS
4がYES)、送信フレーム記憶領域13に格納されて
いる送信フレーム13−1〜13−kの内、送信要求に
含まれている先頭アドレス「255」と同じ先頭アドレ
スを有する送信フレーム(図6の例の場合は第2番目の
送信フレーム13−2となる)を送受信手段15を用い
て受信側装置2−1に送信する(ステップS5)。
When the transmitting / receiving means 15 receives the above-mentioned transmission request, the control means 14 in the transmitting side apparatus 1 (step S
4 is YES), out of the transmission frames 13-1 to 13-k stored in the transmission frame storage area 13, the transmission frame having the same start address as the start address "255" included in the transmission request (FIG. 6). In the case of the example (2), the second transmission frame 13-2) is transmitted to the reception side device 2-1 using the transmission / reception means 15 (step S5).

【0043】送信側装置1から第2番目の送信フレーム
13−2が送られてくると、受信側装置2−1内の制御
手段22は、置き替え手段24に送信フレーム13−2
を渡して置き替え処理を行わせる(ステップS14)。
When the second transmission frame 13-2 is sent from the transmitting device 1, the control means 22 in the receiving device 2-1 sends the transmission frame 13-2 to the replacing means 24.
To perform a replacement process (step S14).

【0044】置き替え手段24は、送信フレーム13−
2が渡されると、バックアップ領域25に格納されてい
るフレームの内、送信フレーム13−2に含まれている
先頭アドレス「255」と同じ先頭アドレスを有するフ
レーム(図3の例の場合はフレーム25−2となる)
を、送信フレーム13−2で置き替える。
The replacement means 24 transmits the transmission frame 13-
2, the frame having the same start address as the start address “255” included in the transmission frame 13-2 among the frames stored in the backup area 25 (the frame 25 in the example of FIG. 3). -2)
Is replaced by the transmission frame 13-2.

【0045】以下、送信側装置1は前述したと同様の処
理を繰り返し行い、全ての送信フレームに対して前述し
た処理を行うと(ステップS6)、受信側装置2−1に
対して処理終了を通知する(ステップS7)。
Thereafter, the transmitting apparatus 1 repeats the same processing as described above, and performs the above processing for all the transmission frames (step S6), and then terminates the processing for the receiving apparatus 2-1. Notify (step S7).

【0046】また、受信側装置2−1も前述したと同様
の処理を繰り返し行い、送信側装置1から処理終了が通
知されると(ステップS15)、その処理を終了する。
The receiving device 2-1 repeats the same processing as described above, and when the transmitting device 1 notifies the end of the process (step S15), the process is terminated.

【0047】以上の処理を行うことにより、バックアッ
プ領域25には、新プログラムを256バイトずつの複
数のブロックに分割した際の各ブロックの内容をそれぞ
れデータとして含む複数のフレームが格納されることに
なる。
By performing the above processing, the backup area 25 stores a plurality of frames each containing the contents of each block when the new program is divided into a plurality of blocks each having 256 bytes. Become.

【0048】その後、制御手段22は、プログラムのロ
ードが指示されると、ロード手段26を起動する。ロー
ド手段26は、起動されることにより、バックアップ領
域25に格納されている各フレーム中のデータ45のみ
を運用領域27にロードする。これにより、受信側装置
2−1は、新プログラムに従った処理を行うことにな
る。
Thereafter, when the control means 22 is instructed to load the program, the control means 22 activates the load means 26. The loading means 26 loads only the data 45 in each frame stored in the backup area 25 into the operation area 27 by being activated. As a result, the receiving device 2-1 performs processing according to the new program.

【0049】[0049]

【発明の効果】以上説明したように本発明は、現プログ
ラムを所定サイズの複数のブロックに分割した際の各ブ
ロックと各ブロックのチェックサムとの対が格納される
バックアップ領域を有し、受信側装置では、チェックサ
ムとの比較を行う場合、バックアップ領域に格納されて
いるチェックサムと送信側装置から送られてきたチェッ
クサムとを比較し、比較不一致の場合はバックアップ領
域中のブロックとチェックサムとの対を、送られてきた
ブロックとチェックサムとの対で置き替えるようにした
ものであるので、受信側装置でチェックサムの計算を行
うことが不要になり、その分、ダウンロードに要する時
間を短くすることができる。
As described above, the present invention has a backup area for storing a pair of each block and a checksum of each block when the current program is divided into a plurality of blocks of a predetermined size. The side device compares the checksum stored in the backup area with the checksum sent from the sending device when comparing with the checksum, and checks the blocks in the backup area if they do not match. Since the pair with the sum is replaced with the pair of the transmitted block and the checksum, it is not necessary to calculate the checksum on the receiving device, and the download is accordingly required. Time can be shortened.

【0050】また、本発明は、受信側装置でチェックサ
ムの比較を行っているので、受信側装置の台数が多い場
合であっても、送信側装置でチェックサムの比較を行っ
ていた従来の技術に比較して送信側装置の負荷を少ない
ものにすることができる。
Also, according to the present invention, the checksum is compared in the receiving device, so that the checksum is compared in the transmitting device even when the number of receiving devices is large. The load on the transmitting apparatus can be reduced as compared with the technology.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】送信フレームの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a transmission frame.

【図3】バックアップ領域25の内容例を示す図であ
る。
FIG. 3 is a diagram showing an example of the contents of a backup area 25;

【図4】送信側装置1の処理例を示す流れ図である。FIG. 4 is a flowchart illustrating a processing example of the transmission-side apparatus 1.

【図5】受信側装置2−1〜2−nの処理例を示す流れ
図である。
FIG. 5 is a flowchart illustrating a processing example of receiving-side devices 2-1 to 2-n.

【図6】送信フレーム記憶領域13の内容例を示す図で
ある。
FIG. 6 is a diagram showing an example of the contents of a transmission frame storage area 13;

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

1…送信側装置 11…分割手段 12…送信フレーム作成手段 13…送信フレーム記憶領域 14…制御手段 15…送受信手段 2−1〜2−n…受信側装置 21…送受信手段 22…制御手段 23…比較手段 24…置き替え手段 25…バックアップ領域 26…ロード手段 27…運用領域 3…ネットワーク DESCRIPTION OF SYMBOLS 1 ... Transmission-side apparatus 11 ... Division means 12 ... Transmission-frame creation means 13 ... Transmission-frame storage area 14 ... Control means 15 ... Transmission / reception means 2-1 to 2-n ... Reception-side apparatus 21 ... Transmission / reception means 22 ... Control means 23 ... Comparison means 24 Replacement means 25 Backup area 26 Loading means 27 Operation area 3 Network

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 9/06,13/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 9 / 06,13 / 00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 現プログラムを所定サイズの複数のブロ
ックに分割した際の各ブロックと各ブロックのチェック
サムとが格納されたバックアップ領域と、該バックアッ
プ領域に格納されているブロックがロードされる運用領
域とを有する受信側装置へ送信側装置からプログラムを
ダウンロードするダウンロード方法であって、 前記送信側装置が、前記受信側装置へダウンロードする
新プログラムを前記所定サイズの複数のブロックに分割
して各ブロックのチェックサムを計算し、計算した各ブ
ロックのチェックサムを前記受信側装置へ送信し 前記受信側装置が、前記バックアップ領域に格納されて
いる前記現プログラムの各ブロックのチェックサムと前
記送信側装置から送られてきた前記新プログラムの各ブ
ロックのチェックサムとの対応するものを比較し、チェ
ックサムが比較不一致となった前記新プログラムのブロ
ックとそのブロックのチェックサムとの送信を前記送信
側装置に対して要求し、 前記送信側装置が、前記受信側装置から送信要求された
ブロックとそのブロックのチェックサムとを前記受信側
装置へ送信し、 前記受信側装置が、 前記バックアップ領域に格納されて
いる現プログラムのブロックとそのブロックのチェック
サムとの内、前記送信側装置から送られてきたブロック
とチェックサムとに対応するものを前記送信側装置から
送られてきたブロックとチェックサムとで置き替え、プ
ログラムのロード時、前記バックアップ領域に格納され
ている全てのブロックを前記運用領域にロードすること
を特徴とするダウンロード方法
(1)Copy the current program to multiple
Check each block and each block when divided into blocks
And a backup area in which the sum is stored.
Area where blocks stored in the loop area are loaded
From the sending device to the receiving device withProgram
Download to downloadThe method The transmitting device downloads to the receiving device
 A new programSaidDivided into multiple blocks of a given size
To calculate the checksum of each block.
Sending a lock checksum to the receiving device., The receiving device is stored in the backup area
Checksum and previous of each block of the current program
Each block of the new program sent from the transmitting device
Compare the lock checksum with its counterpart and check
Checksum of the new program,
Transmission of the block and checksum of the block
Request to the side device, The transmitting device is requested to transmit from the receiving device.
The block and the checksum of the block
To the device, The receiving device, Stored in the backup area
Check the current program block and its block
Of the sum, the block sent from the transmitting device
And the one corresponding to the checksum from the transmitting side device.
Replace the sent block with the checksum,
When loading a program, it is stored in the backup area.
Load all blocks in the operation area
Download featuringMethod.
【請求項2】 前記送信側装置は、インテレックHEX
フォーマットの送信フレームによって前記ブロックとそ
のブロックのチェックサムとを前記受信側装置へ送信す
ることを特徴とする請求項1記載のダウンロード方法
2. The transmitting device according to claim 1, wherein said transmitting device is an Intellect HEX.
The download method according to claim 1, wherein the block and a checksum of the block are transmitted to the receiving side device by a transmission frame in a format.
【請求項3】 前記バックアップ領域はEEPROMか
ら構成されることを特徴とする請求項2記載のダウンロ
ード方法
3. The download method according to claim 2, wherein said backup area comprises an EEPROM.
JP7184678A 1995-06-28 1995-06-28 How to download Expired - Lifetime JP3000895B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7184678A JP3000895B2 (en) 1995-06-28 1995-06-28 How to download

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7184678A JP3000895B2 (en) 1995-06-28 1995-06-28 How to download

Publications (2)

Publication Number Publication Date
JPH0916404A JPH0916404A (en) 1997-01-17
JP3000895B2 true JP3000895B2 (en) 2000-01-17

Family

ID=16157456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7184678A Expired - Lifetime JP3000895B2 (en) 1995-06-28 1995-06-28 How to download

Country Status (1)

Country Link
JP (1) JP3000895B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60111072T2 (en) * 2000-10-26 2006-01-26 Prismedia Networks, Inc., San Jose METHOD AND APPARATUS FOR PARALLEL MESSAGE TRANSMISSION IN REAL TIME OF FILE-SEPARATE
JP4619804B2 (en) * 2005-01-27 2011-01-26 三菱電機株式会社 Update data transmission system, transmission side apparatus, reception side apparatus, and update data transmission method
KR100713971B1 (en) * 2005-03-21 2007-05-02 주식회사 히타치엘지 데이터 스토리지 코리아 Method for discriminating firmware download in optical disc device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE68924061T2 (en) * 1989-05-12 1996-04-18 Ibm Version control in a data processing system.
JPH0566946A (en) * 1991-09-06 1993-03-19 Hokuriku Nippon Denki Software Kk Program maintenance system
JPH06243062A (en) * 1993-02-12 1994-09-02 Toshiba Corp Computer system
JPH07146810A (en) * 1993-09-27 1995-06-06 Toshiba Corp Computer system
US5446888A (en) * 1994-01-14 1995-08-29 Pyne; Charles F. Remote file transfer method and apparatus

Also Published As

Publication number Publication date
JPH0916404A (en) 1997-01-17

Similar Documents

Publication Publication Date Title
US6061733A (en) Method and apparatus for improving internet download integrity via client/server dynamic file sizes
US4885770A (en) Boot system for distributed digital data processing system
US7366824B2 (en) Updating electronic files using byte-level file differencing and updating algorithms
JPH11259284A (en) On-line program updating system and computer readable storage medium for recording program for updating program
CN1675621A (en) Method and apparatus for booting with remote configuration data
US20020184300A1 (en) Device management system and method
CN113504922B (en) Robot software upgrading method and device, bridge server and upgrading server
JPH04347733A (en) Computer program maintenance system
JP3000895B2 (en) How to download
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN1627687A (en) File transmission proxy system and method
JPH10143449A (en) Data transmitter, data receiver and data file storage medium
JP4789401B2 (en) Content distribution system
JPH11143730A (en) Method for testing computer system device
JP2004213406A (en) Information communication unit for programmable controller, and remote management system and method for factory automation apparatus
JP2000010787A (en) Program down-loading device and its method
US20060130043A1 (en) Method and apparatus to upgrade software of an apparatus having a plurality of microprocessors
JP4133290B2 (en) Data update method for image forming apparatus, image forming apparatus, and image forming system
CN112379902A (en) Method, apparatus and computer-readable storage medium for adapting a plurality of end devices
JPH07152663A (en) Decentralized process type file transfer system
CN114265606B (en) Firmware upgrading method, device, equipment and storage medium
JP2004030042A (en) Image forming system, and down loading method in image forming system
CN115421804B (en) Data management method, system and device based on KPU unified interface
JP3263408B2 (en) Function difference absorption processing method in inter-system cooperation function
JPH08153071A (en) File update method and information processor