JPS62172453A - Program loading system - Google Patents

Program loading system

Info

Publication number
JPS62172453A
JPS62172453A JP1412586A JP1412586A JPS62172453A JP S62172453 A JPS62172453 A JP S62172453A JP 1412586 A JP1412586 A JP 1412586A JP 1412586 A JP1412586 A JP 1412586A JP S62172453 A JPS62172453 A JP S62172453A
Authority
JP
Japan
Prior art keywords
program
data
center station
station
remote station
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
JP1412586A
Other languages
Japanese (ja)
Inventor
Yoshihisa Shiomi
塩見 佳久
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 JP1412586A priority Critical patent/JPS62172453A/en
Publication of JPS62172453A publication Critical patent/JPS62172453A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a transfer time, and to prevent the processing capacity of a center station from being lowered by requesting the transmission of only a program or a data stored at a storing area judged as wrong from the result of a verification by an arithmetic means to an equipment at a transmission side. CONSTITUTION:A remote station 10 is provided with a DMA control circuit 102, a memory control circuit 103, a memory 104, a logical operation circuit 105, and an interface circuit 106 at a CPU 101 through an address bus/data bus 107. When the abnormal traveling of the program due to a factor, such as a partial damage in the program or the data is generated in a normal program traveling, the remote station 10 performs the logical operation of each block at a program area corresponding to a reset instruction, or an initial startup instruction from a center station 20, and decides normality, and transmits the program loading request of only an NG, that is, an erroneous block to the center station 20. Thereby,the number of times and the time of loading can be reduced, simultaneously, a load on the center station 20 can be reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムローディング方式に関し、特に回線
速度が眩い通信回線を介して接続された装置間で大量の
プログラムまたはデータをローディングする必要のある
場合に有効なプログラムローディング方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a program loading method, particularly when it is necessary to load a large amount of programs or data between devices connected via a communication line with a high line speed. Regarding effective program loading methods.

〔従来の技術〕[Conventional technology]

第2図は一般的なネットワークにおけるセンタ局とリモ
ート局の一接続例を示すブロック図、第5図は従来のセ
ンタ局とリモート局間のプログラムローディング方式の
一手順例を示す図である。
FIG. 2 is a block diagram showing an example of a connection between a center station and remote stations in a general network, and FIG. 5 is a diagram showing an example of a procedure for a conventional program loading method between a center station and remote stations.

第2図に示すようにセンタ局20と複数のリモート局1
0のそれぞれには複数のデータ端末4゜が収容され、セ
ンタ局2oと各リモート局1oは変復調dJi、置30
を介して通信回線で接続される。
As shown in FIG. 2, a center station 20 and a plurality of remote stations 1
0 accommodates a plurality of data terminals 4°, and the center station 2o and each remote station 1o each have a modulator/demodulator dJi,
connected via a communication line.

このプログラムローディング方式では、第5図に示すよ
うに転送すべきプログラムまたはデータを複数のブロッ
ク0,1.〜Nに分割し、リモート局10からのプログ
ラムローディングの要求に従い、センタ局20の送信装
置はlプロ2ク分(ブロック0)のグログラムをリモー
ト局1oのメモリにおいて格納すべき領域の格納開始ア
ドレス八〇と、ブロックのバイト長の情報Boを付加し
、さらにこの情報に転送するデータの正当性を検証する
ための@算アルゴリズム(ここでは巡回冗長検査アルゴ
リズム)を適用し、演算結果データ(ここではFCSデ
ータ)Fe2.を付加してリモート局lOに転送する。
In this program loading method, the program or data to be transferred is transferred to a plurality of blocks 0, 1, . . . as shown in FIG. ~ N, and in accordance with the program loading request from the remote station 10, the transmitting device of the center station 20 determines the storage start address of the area in which the program for l programs (block 0) is to be stored in the memory of the remote station 1o. 80 and the block byte length information Bo, and further apply the @ calculation algorithm (here, cyclic redundancy check algorithm) for verifying the validity of the data to be transferred to this information, and add the operation result data (here Then, FCS data) Fe2. is added and transferred to the remote station IO.

次に、センタ局20からの終結指示信号によシ1ブロッ
ク分のプログラムの転送完了がリモート局10に通知さ
れて1ブロック分のプログラム転送が終了する。順次ブ
ロック1.〜Nごとの転送をくシ返すことによシ、セン
タ局2゜からリモート局10にプログラムが転送される
Next, the completion of transfer of one block of programs is notified to remote station 10 by a termination instruction signal from center station 20, and the transfer of one block of programs is completed. Sequential block 1. By repeating the transfer every .about.N, the program is transferred from the center station 2° to the remote station 10.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のプログラムローディング方式は、リモー
ト局の電源投入を行った場合のようなリモート局のメモ
リ内容が全く保証されない場合のプログラムローディン
グだけでなく、プログラムの一部破壊によるプログラム
の異常走行(暴走)時も全プログラムをローディングす
るため、大量のプログラム情報を低速の通信回巌を使用
して転送する場合には、転送に長い時間を要すると共に
センタ局の処理能力を低下させるという欠点がある。
The conventional program loading method described above not only loads a program when the memory contents of the remote station are not guaranteed at all, such as when the remote station is powered on, but also prevents the program from running abnormally (runaway) due to partial destruction of the program. ), the entire program is loaded, so when transferring a large amount of program information using a low-speed communication circuit, there is a drawback that the transfer takes a long time and reduces the processing capacity of the center station.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のプログラムローディング方式は、複数の領域に
分割されたプログラムまたはデータを受信する受信装置
において、受信したプログラムまたはデータを格納する
と同時に該プログラムまたはデータの格納領域の指定情
報と転送されたプログラムまたはデータの正当性を検証
するための論理演算アルゴリズムによる論理演算結果デ
ータを格納する記憶手段と、前記指定情報の中の格納開
始アドレスと転送バイト数の情報によシ対応する前記格
納領域の内容を順次読み出して前記演算アルゴリズムに
よる演算を行う演算手段とを備えている。
The program loading method of the present invention, in a receiving device that receives a program or data divided into a plurality of areas, stores the received program or data and at the same time displays designation information of the storage area of the program or data and the transferred program or data. A storage means for storing logical operation result data based on a logical operation algorithm for verifying the validity of the data, and a storage means for storing the data of the logical operation result by a logical operation algorithm for verifying the validity of the data, and a storage means for storing the contents of the storage area corresponding to the information of the storage start address and the number of transferred bytes in the specified information. and calculation means for sequentially reading data and performing calculations based on the calculation algorithm.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明のプログラムローディング方式の一実施
例におけるリモート局の構成を示すブロック図、第3図
、第4図はそれぞれ第1図および第2図における初期時
(リモート局の電源投入時等)、リモート局での障害発
生時のプログラムローディング手順を示す図である。
FIG. 1 is a block diagram showing the configuration of a remote station in an embodiment of the program loading method of the present invention, and FIGS. etc.) is a diagram showing a program loading procedure when a failure occurs at a remote station.

まず第1図において、リモート局1oは中央処理装置(
以下CPU)101にアドレスバス・デーp /(ス1
07を介してダイレクトメモリアクセス制御回路(以下
DMA制御回路)102.メモリ制、御回路103.メ
モリ104.論理演算回路1o5゜センタ局20と変@
詞装置30を介して接続されるインタフェース回路1o
 6t−[t、CPUtotおよびL)MA制御回路1
02からのメモリ104に対するリード/ライト信号を
制御するメモリ制御回路103がメモ!J 104に接
続される。
First, in FIG. 1, the remote station 1o has a central processing unit (
The address bus data p/(S1
Direct memory access control circuit (hereinafter referred to as DMA control circuit) 102. Memory control and control circuit 103. Memory 104. Logic operation circuit 1o5゜ Center station 20 and change @
An interface circuit 1o connected via a device 30
6t-[t, CPUtot and L) MA control circuit 1
Memo! Connected to J104.

次に、本実施例の動作について第1図、第3図および第
4図に基づいて説明する。
Next, the operation of this embodiment will be explained based on FIGS. 1, 3, and 4.

まず、リモート局1oで電源投入時等のメモリ内容が保
証されない場合のプログラムローディングにおいては、
センタ局2oからの初期起動指示に対してリモート局1
0のプログラム領域のすべてのブロック0,1.〜Nに
ついて)1次プログラムローディング要求をセンタ局2
0に送信する。リモート局10では、このプログラムロ
ーディング要求に対してセンタ局20から順次リモート
局10へ送出されるプログラムを格納開始アドレスAo
First, when loading a program when the memory contents are not guaranteed at the time of power-on, etc. on the remote station 1o,
Remote station 1 responds to the initial startup instruction from center station 2o.
All blocks 0, 1 . ~N) The primary program loading request is sent to the center station 2.
Send to 0. In response to this program loading request, the remote station 10 stores the programs sequentially sent from the center station 20 to the remote station 10 at the storage start address Ao.
.

A!、〜ANで示されるメモリのアドレスから転送バイ
ト数情報B、、B1〜BNで示されるバイト数分格納す
ると同時に、センタ局20から送信されてくる送信デー
タの正当性を検証するための論理演算結果データをメモ
リ104に格納する。
A! ,~A logical operation for storing the number of bytes indicated by B1 to BN from the memory address indicated by AN, and at the same time verifying the validity of the transmission data sent from the center station 20. The result data is stored in memory 104.

次に通常のプログラム走行中にプログラムまたはデータ
の一部破壊等の要因でプログラムの異常走行(暴走)が
発生した場合、リモート局10はセンタ局20からのリ
セット指示、初期起動指示に対しプログラム領域の各ブ
ロックについて論理演算を行ってその正当性を判定し、
NGすなわち誤っている(プログラムが破壊されている
)ブロックについてのみセンタ局20に対してプログラ
ムローディング要求を送信する。この手順は次の通シで
ある。
Next, if the program runs abnormally (runaway) due to a factor such as partial destruction of the program or data during normal program running, the remote station 10 will respond to the reset instruction or initial startup instruction from the center station 20 in the program area. Perform logical operations on each block to determine its validity,
A program loading request is sent to the center station 20 only for blocks that are NG, that is, incorrect (programs are destroyed). This procedure is as follows.

まず、リモート局10はインタフェース部106を介し
てセンタ局20からリセット信号、初期起動信号を受信
すると、プログラムの各ブロックO1l、〜Nの格納開
始アドレスA5 、 AH、〜AN転送バイト数情報B
o、B、、〜BNが格納されているメモリ領域から順次
これらの情報を読み出してDMA制御回路102に設定
し、DMA転送を起動する。
First, when the remote station 10 receives a reset signal and an initial start signal from the center station 20 via the interface unit 106, it stores the storage start address A5, AH, ~AN transfer byte number information B of each block O1l, ~N of the program.
These pieces of information are sequentially read out from the memory area where o, B, .

DMA制御回[102は設定されたアドレスに従ってメ
モリ104から順次1バイトずつメモリ内容を読み出し
て論理演算回路105に転送する。
The DMA control circuit 102 sequentially reads the memory contents one byte at a time from the memory 104 according to the set address and transfers it to the logic operation circuit 105.

論理演算回路105では、転送されたデータに対して順
次論理演算を〈シ返す。L)MA制御回路102の動作
は設定されたバイト長方のメモリ内容が論理演算回路1
05にすべて転送されるまでくシ返され、データの転送
完了時にCPUl0IK対して割込みを発生してDMA
転送の完了を通知する。
The logic operation circuit 105 sequentially performs logic operations on the transferred data. L) The operation of the MA control circuit 102 is such that the memory contents of the set byte length are the logic operation circuit 1.
05 until all the data has been transferred, and when the data transfer is complete, an interrupt is generated to CPU10IK and DMA is executed.
Notify when transfer is complete.

本実施例では、プログラムの正当性を検証するための論
理演算が巡回冗長検査(C几C)であるため、上記の論
理演算はまず最初に格納開始アドレスA、、A1.〜A
Nと転送バイト数情報BO,Bl。
In this embodiment, since the logical operation for verifying the validity of the program is a cyclic redundancy check (C), the above logical operation is performed first at storage start addresses A, , A1 . ~A
N and transfer byte number information BO, Bl.

〜BNを論理演算回路105に転送して演算した後1)
MA転送を起動して各ブロックのプログラムに対して論
理演算を行い、最後に各ブロックに対応するFCSデー
タFC80,Fe2.、〜FC8Nを論理演算回路10
5に転送して演算を行い、演算結果に基づいて各ブロッ
クのプログラム内容の正否を判定している。
~After transferring BN to the logic operation circuit 105 and calculating it 1)
MA transfer is started, logical operations are performed on the program of each block, and finally FCS data FC80, Fe2 . , ~FC8N as logic operation circuit 10
5 and performs calculations, and based on the calculation results, it is determined whether the program contents of each block are correct or not.

第4図において、リモート局10はセンタ局20からの
リセット、初期起動に対してプログラム領域のブロック
0から順次論理演算を適用して各ブロックのプログラム
の内容の正否を判定し、演算結果が正しくないブロック
1のプログラムについてのみセンタ局20に対してプロ
グラムローディング要求を送信する。
In FIG. 4, the remote station 10 applies logical operations sequentially from block 0 of the program area to the reset and initial startup from the center station 20, and determines whether the program contents of each block are correct. A program loading request is sent to the center station 20 only for the block 1 program that is not available.

〔発明の効果〕〔Effect of the invention〕

本発明は以上説明したように、プログラムのローディン
グの際に、リモート局において論理演算回路によってメ
モリ内の内容をチェックし、メモリ内容がローディング
すべきプログラムと異なりている領域についてのみセン
タ局に対してプログラムのローディング要求を行うこと
によシ、ローディングの回数と時間を短縮すると同時に
センタ局の負荷t−軽減する効果がある。
As explained above, in the present invention, when loading a program, the contents in the memory are checked by a logical operation circuit in the remote station, and only areas where the memory contents are different from the program to be loaded are sent to the center station. By making a program loading request, there is an effect of reducing the number of times and time of loading and at the same time reducing the load on the center station.

一般の通信ネットワークでは、すべてのプログラムを毎
回ローディングする必要はなく、障害発生時の蕎ローデ
ィングはメモリの異常領域に対してのみローディングを
行えば良い場合が多い。本発明はこの要求を満足するも
のである。
In general communication networks, it is not necessary to load all programs every time, and in many cases it is sufficient to load only the abnormal area of memory when a failure occurs. The present invention satisfies this need.

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

第1図は本発明のプログラムローディング方式の一実施
例におけるリモート局の構成を示すブロック図、第2図
は一般的なネットワークにおけるセンタ局とリモート局
の一接続例を示すブロック図、第3図、第4図はそれぞ
れ第1図および第2図における初期時、リモート局での
障害発生時のプログラムローディング手順を示す図、第
5図は従来のセンタ局とリモート局間のプログラムロー
ディング方式の一手順例を示す図である。 10・・・・・・リモート局、20・・・・・・センタ
局、30・・・・・・変復調装置、40・・・・・・デ
ータ端末、101・・・・・・中央処理装置(CPU)
、1o 2・・・・・・DMA制御回路、103・・・
・・・メモリ制御回路、104・・・・・・メモリ、1
05・・・・・・論理演算回路、106・・・・・・イ
ンタフェース回路、107・・・・・・アドレスバス・
データバス。 、\。 代理人 弁理士  内 原   −) ・〜ノ 第 7図 躬3図 第4図 第に口
FIG. 1 is a block diagram showing the configuration of a remote station in an embodiment of the program loading method of the present invention, FIG. 2 is a block diagram showing an example of connection between a center station and remote stations in a general network, and FIG. 3 , Figure 4 shows the program loading procedure at the initial stage and when a failure occurs at the remote station in Figures 1 and 2, respectively. Figure 5 shows one of the conventional program loading methods between the center station and the remote station. It is a figure which shows the example of a procedure. 10...Remote station, 20...Center station, 30...Modulator/demodulator, 40...Data terminal, 101...Central processing unit (CPU)
, 1o 2...DMA control circuit, 103...
...Memory control circuit, 104...Memory, 1
05...Logic operation circuit, 106...Interface circuit, 107...Address bus.
data bus. ,\. Agent Patent Attorney Uchihara -) - Figure 7 Figure 3 Figure 4 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 複数の領域に分割されたプログラムまたはデータを受信
する受信装置において、受信したプログラムまたはデー
タを格納すると同時に該プログラムまたはデータの格納
領域の指定情報と転送されたプログラムまたはデータの
正当性を検証するための論理演算アルゴリズムによる論
理演算結果データを格納する記憶手段と、前記指定情報
の中の格納開始アドレスと転送バイト数の情報により対
応する前記格納領域の内容を順次読み出して前記演算ア
ルゴリズムによる演算を行う演算手段とを備え、該演算
手段による検証の結果正しくない格納領域のプログラム
またはデータについてのみ送信側装置に送信を要求する
ことを特徴とするプログラムローディング方式。
In a receiving device that receives a program or data divided into multiple areas, at the same time as storing the received program or data, verifying the designation information of the storage area of the program or data and the validity of the transferred program or data. a storage means for storing logical operation result data based on the logical operation algorithm, and sequentially reads the contents of the storage area corresponding to the information of the storage start address and the number of transfer bytes in the specified information, and performs the operation according to the operation algorithm. 1. A program loading method, comprising: a calculation means, and requests a transmitting device to transmit only programs or data in a storage area that are incorrect as a result of verification by the calculation means.
JP1412586A 1986-01-24 1986-01-24 Program loading system Pending JPS62172453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1412586A JPS62172453A (en) 1986-01-24 1986-01-24 Program loading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1412586A JPS62172453A (en) 1986-01-24 1986-01-24 Program loading system

Publications (1)

Publication Number Publication Date
JPS62172453A true JPS62172453A (en) 1987-07-29

Family

ID=11852401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1412586A Pending JPS62172453A (en) 1986-01-24 1986-01-24 Program loading system

Country Status (1)

Country Link
JP (1) JPS62172453A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59123040A (en) * 1982-12-29 1984-07-16 Fujitsu Ltd Down-loading control system
JPS60236533A (en) * 1984-05-10 1985-11-25 Nec Corp Data communication equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59123040A (en) * 1982-12-29 1984-07-16 Fujitsu Ltd Down-loading control system
JPS60236533A (en) * 1984-05-10 1985-11-25 Nec Corp Data communication equipment

Similar Documents

Publication Publication Date Title
JPS604624B2 (en) System for retransmitting incorrect information frames
JPS639786B2 (en)
JPS5853366B2 (en) Tanmatsu Souchi Program Road Houshiki
CN114880266B (en) Fault processing method and device, computer equipment and storage medium
JPS62172453A (en) Program loading system
US20180336102A1 (en) Device for supervising and initializing ports
US6907503B2 (en) Dual port RAM communication protocol
JP4137450B2 (en) Data processing device that can continue processing with backup data
JPH02205956A (en) Fault diagnostic device for dual port memory in multiprocessor system
JP2524601B2 (en) Communication control device
JP2584903B2 (en) External device control method
JPS60258645A (en) Information processing system
JPS59195736A (en) Communication controller
JPS62126452A (en) Memory load system
JP3169488B2 (en) Communication control device
JPH04349559A (en) Information processor
JPH0152774B2 (en)
JPH0468458A (en) Data communication processing unit
JPH05250300A (en) Information processor
JPS6210746A (en) Non-volatile ram checking method
JPS61163460A (en) Data transfer system of multiprocessor system
JPS61189053A (en) Data transmitting and receiving method in data processor
JPS6130842A (en) Communication terminal equipment
JPH033054A (en) Method for preventing communication data from being missed
JPH04358230A (en) Method for confirming operation between cpus