Movatterモバイル変換


[0]ホーム

URL:


JPH0423154A - Terminal control method - Google Patents

Terminal control method

Info

Publication number
JPH0423154A
JPH0423154AJP2126701AJP12670190AJPH0423154AJP H0423154 AJPH0423154 AJP H0423154AJP 2126701 AJP2126701 AJP 2126701AJP 12670190 AJP12670190 AJP 12670190AJP H0423154 AJPH0423154 AJP H0423154A
Authority
JP
Japan
Prior art keywords
program
host device
terminal device
control method
data
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
JP2126701A
Other languages
Japanese (ja)
Inventor
Tetsuo Okuhara
奥原 哲雄
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi LtdfiledCriticalHitachi Ltd
Priority to JP2126701ApriorityCriticalpatent/JPH0423154A/en
Publication of JPH0423154ApublicationCriticalpatent/JPH0423154A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

Translated fromJapanese

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

Translated fromJapanese

【発明の詳細な説明】〔産業上の利用分野〕本発明は端末制御方法にかかり、特に上位装置から端末
装置のプログラムをダウンロードするのに好適な端末制
御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a terminal control method, and particularly to a terminal control method suitable for downloading a program for a terminal device from a host device.

〔従来の技術〕[Conventional technology]

従来技術においては、上位装置から端末装置にプログラ
ムをダウンロードする際に、異常が発生すると、既に端
末装置のプログラムは更新途中であることから、当該端
末装置は使用不可能になった。
In the prior art, if an abnormality occurs when downloading a program from a host device to a terminal device, the terminal device becomes unusable because the program in the terminal device is already in the process of being updated.

なお、本発明に関連する先行技術としては、プリンタの
文字フォント等のデータに関するものであるが、特開平
1−241467号公報に開示された発明が存在する。
Note that prior art related to the present invention relates to data such as character fonts for printers, and there is an invention disclosed in Japanese Patent Laid-Open No. 1-241467.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記したように、従来技術においては、上記装置から端
末装置へプログラムをダウンロードする際に異常が発生
すると、当該端末装置が使用不可能になるという問題点
があった。
As described above, the conventional technology has a problem in that if an abnormality occurs when downloading a program from the device to the terminal device, the terminal device becomes unusable.

本発明は上記した従来技術の問題点を解決するものであ
り、上位装置から端末装置へプログラムをダウンロード
している最中に異常が発生しても、当該端末装置を使用
可能な状態に保持することを可能にする端末制御方法を
提供することを目的としている。
The present invention solves the problems of the prior art described above, and even if an abnormality occurs while downloading a program from a host device to a terminal device, the terminal device can be kept in a usable state. The purpose is to provide a terminal control method that makes it possible to

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、プログラムエリアを制御プ
ログラムエリアとダウンロードプログラムの退避用エリ
アに分け、上位装置よりダウンロードされたプログラム
をいったん退避用エリアに格納し、これを精査し、正し
くダウンロードされたことを確認した後、ダウンロード
されたプログラムを制御プログラムエリアに転送するこ
とにした。
In order to achieve the above purpose, the program area is divided into a control program area and a save area for downloaded programs, and the programs downloaded from the host device are temporarily stored in the save area, and the programs are carefully inspected to ensure that they have been downloaded correctly. After checking this, I decided to transfer the downloaded program to the control program area.

〔作用〕[Effect]

上位装置から転送されてきたプログラムデータは、IP
Lプログラムによりいったん退避用エリアに格納される
。この間、端末装置の制御を受は持っている制御プログ
ラムはそのまま保持される。
The program data transferred from the host device is
It is temporarily stored in the evacuation area by the L program. During this time, the control program that has control over the terminal device is maintained as is.

したがって、ダウンロード中に障害等が発生し、ダウン
ロードが不成功に終わっても、ダウンロード前の制御プ
ログラムによって端末装置を運用することが可能になる
Therefore, even if a failure or the like occurs during downloading and the downloading ends in failure, it is possible to operate the terminal device using the control program before downloading.

〔実施例〕以下、添付の図面に示す実施例により、更に詳細に本発
明について説明する。
[Example] Hereinafter, the present invention will be described in more detail with reference to Examples shown in the accompanying drawings.

第1図は本発明が適用されるシステム構成を示すブロッ
ク図であり、上位装置1及びプログラムメモリ21を備
えた端末装置2から構成されている。
FIG. 1 is a block diagram showing a system configuration to which the present invention is applied, and is composed of a host device 1 and a terminal device 2 equipped with a program memory 21.

第2図は第1図に示すプログラムメモリ21のメモリマ
ツプであり、図示するようにIPLプログラムエリア2
1aと制御プログラムエリア21bとプログラム退避用
エリア21cの3つの部分から構成されている。
FIG. 2 is a memory map of the program memory 21 shown in FIG.
It consists of three parts: 1a, a control program area 21b, and a program save area 21c.

第3図は上位装置1からダウンロードされるプログラム
Pのデータフォーマットの一例を示す説明図である。図
示するように、プログラムPは、プログラム名称PMと
プログラムサイズPSとプログラムデータPDとチエツ
クサムO8とから構成されている。このうち、プログラ
ム名称PMは受信したプログラムPが自分のものである
か否かを判別するためのもので、プログラムサイズPS
は以降のデータ数を示すもので、これによりチエツクサ
ムC8を用いてサムチエツクを行うことができる。
FIG. 3 is an explanatory diagram showing an example of the data format of the program P downloaded from the host device 1. As shown in the figure, the program P is composed of a program name PM, a program size PS, program data PD, and a checksum O8. Among these, the program name PM is used to determine whether the received program P is your own, and the program size PS
indicates the number of subsequent data, so that a sum check can be performed using the check sum C8.

第4図はプログラムPのロード手順を示すフローチャー
トであり、第4図を用いて本実施例の動作について説明
する。すなわち、上位装置1は、その指示コマンドの中
にプログラムロードの開始を指示するプログラムロード
コマンドを持っている。端末装置2がこのコマンドを受
信すると、第2図に示すIPLプログラムエリア21a
に格納されているIPLプログラムが起動される。第4
図の点線部分は、上記IPLプログラムによる処理を示
している。すなわち1図示するように、上位装置から送
られてきたプログラムデータPDを第2図に示すプログ
ラム退避用RAM21cに格納する。全てのデータの受
信後、プログラム名称PMが正しいか否かの判定を行い
、かつデータサイズに基づいてチエツクサムを求め、受
信したデータに含まれるチエツクサムC8との照合を行
う。
FIG. 4 is a flowchart showing the procedure for loading the program P, and the operation of this embodiment will be explained using FIG. That is, the host device 1 has a program load command among its instruction commands, which instructs the start of program loading. When the terminal device 2 receives this command, the IPL program area 21a shown in FIG.
The IPL program stored in is started. Fourth
The dotted line portion in the figure shows the processing by the above IPL program. That is, as shown in FIG. 1, the program data PD sent from the host device is stored in the program saving RAM 21c shown in FIG. After receiving all the data, it is determined whether the program name PM is correct or not, and a checksum is determined based on the data size, which is compared with the checksum C8 included in the received data.

少なくとも、いずれか一方が不正であると判定された場
合には、異常終了が上位装置に報告され、再度IPLプ
ログラムが起動され、プログラムロードが開始される。
If at least one of them is determined to be invalid, abnormal termination is reported to the host device, the IPL program is started again, and program loading is started.

また、双方とも正しい場合に限って、正しいRAM21
cに格納されたデータを第2図に示す制御プログラムエ
リア21bに転送し、上位装置に正常終了を報告する。
Also, only if both are correct, the correct RAM21
The data stored in c is transferred to the control program area 21b shown in FIG. 2, and normal completion is reported to the host device.

次に、本端末装置の初期化プログラムを起動して、上位
装置より転送されてきた新しいプログラムの実行が開始
される。
Next, the initialization program of the terminal device is started, and the execution of the new program transferred from the host device is started.

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

本発明によれば、制御用プログラムエリアに直接プログ
ラムをロードしないため、ローディングが不成功の場合
でも、制御プログラムは破壊されることなく、端末装置
は正常に動作することが可能である。
According to the present invention, since the program is not directly loaded into the control program area, even if loading is unsuccessful, the control program is not destroyed and the terminal device can operate normally.

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

第1図は本発明が適用されるシステム構成を示すブロッ
ク図、第2図は第1図に示すプログラムメモリのメモリ
マツプを示す説明図、第3図は第1図に示す上位装置か
らダウンロードされるプログラムのデータフォーマット
の一例を示す説明図、第4図は本発明の方法によるプロ
グラムのダウンロード手順の一例を示すフローチャート
である。1・・・上位装置、2・・・端末装置、21・・・プロ
グラムメモリ、21a・・・IPLプログラムエリア、
21b・・・制御プログラムエリア、21C・・・プロ
グラム退避用RAM、P・・プログラム、PM・・・プ
ログラム名称、PS・・・プログラムサイズ、PD・・
・プログラムデータ、C8・・・チエツクサム。
FIG. 1 is a block diagram showing a system configuration to which the present invention is applied, FIG. 2 is an explanatory diagram showing a memory map of the program memory shown in FIG. 1, and FIG. 3 is a block diagram showing a memory map of the program memory shown in FIG. 1. FIG. 4 is an explanatory diagram showing an example of a program data format, and FIG. 4 is a flowchart showing an example of a program download procedure according to the method of the present invention. DESCRIPTION OF SYMBOLS 1... Host device, 2... Terminal device, 21... Program memory, 21a... IPL program area,
21b... Control program area, 21C... RAM for program saving, P... Program, PM... Program name, PS... Program size, PD...
・Program data, C8...Checksum.

Claims (1)

Translated fromJapanese
【特許請求の範囲】[Claims]1、上記装置と双方向通信可能なインターフェースによ
って接続されている端末装置において、上位装置から送
信されたプログラム更新指示のコマンドを受信し、上記
コマンドによりIPLプログラムを起動し、IPLプロ
グラムの働きによって上位装置から送信される新プログ
ラムを退避用RAMに格納し、新プログラムを完全に退
避用RAMに格納した後、上記新プログラムを制御プロ
グラムとして使用することを特徴とする端末制御方法。
1. A terminal device connected to the above device through an interface capable of two-way communication receives a program update instruction command sent from a host device, starts an IPL program based on the above command, and updates the host device by the function of the IPL program. A terminal control method characterized in that a new program transmitted from a device is stored in a save RAM, and after the new program is completely stored in the save RAM, the new program is used as a control program.
JP2126701A1990-05-181990-05-18 Terminal control methodPendingJPH0423154A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
JP2126701AJPH0423154A (en)1990-05-181990-05-18 Terminal control method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
JP2126701AJPH0423154A (en)1990-05-181990-05-18 Terminal control method

Publications (1)

Publication NumberPublication Date
JPH0423154Atrue JPH0423154A (en)1992-01-27

Family

ID=14941710

Family Applications (1)

Application NumberTitlePriority DateFiling Date
JP2126701APendingJPH0423154A (en)1990-05-181990-05-18 Terminal control method

Country Status (1)

CountryLink
JP (1)JPH0423154A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2008072141A (en)*2002-04-122008-03-27Seoul Semiconductor Co LtdLight-emitting device
JP2009259266A (en)*2009-07-142009-11-05Yamaha CorpCommunication line connection device and version upgrade method for firmware of the same
US7897982B2 (en)2002-08-292011-03-01Seoul Semiconductor Co., Ltd.Light emitting device having common N-electrode

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2008072141A (en)*2002-04-122008-03-27Seoul Semiconductor Co LtdLight-emitting device
US7897982B2 (en)2002-08-292011-03-01Seoul Semiconductor Co., Ltd.Light emitting device having common N-electrode
US8129729B2 (en)2002-08-292012-03-06Seoul Semiconductor Co., Ltd.Light emitting device having light emitting elements and an air bridge line
JP2009259266A (en)*2009-07-142009-11-05Yamaha CorpCommunication line connection device and version upgrade method for firmware of the same

Similar Documents

PublicationPublication DateTitle
US6681390B2 (en)Upgrade of a program
US5689640A (en)Method and system for downloading data to network nodes
US12032946B2 (en)Program update system, program transmission device, and program transmission method
JPH11328040A (en)Memory readout control method and program readout control method
JP2000330779A (en)System and method for remotely updating firmware program
JPH0423154A (en) Terminal control method
JP2003263323A (en)Downloader and download method
JP2003228490A (en)Terminal equipment connected to network, and network system using the same
JP2827594B2 (en) Firmware online update method for microprocessor device and update method thereof
EP0220464A2 (en)Program loading method
JPH0855068A (en) Communication terminal
US6760863B1 (en)CPU unit and run alternative control method of programmable controller
JP2818575B2 (en) Wireless base station remote reset system
JPH10105407A (en) Program failure autonomous recovery system
JP3114907B2 (en) How to change the sequence program of the programmable controller
JP2004078294A (en) Signal processing device
WO2017097180A1 (en)Method and apparatus for quickly starting base station
JP2000010784A (en)Downloading device for firmware
JPH10320366A (en)Nonresident program loading system
JPH0895879A (en) Network system
JP2000076158A (en)Application downloading resume method and system therefor
JPH1097426A (en) Method of updating system file in communication control device
JPH02137046A (en) Patch data transfer method
CN120371369A (en)Upgrade method and device for complex programmable logic device, electronic equipment and medium
JPH04112309A (en)Restart system for control system

[8]ページ先頭

©2009-2025 Movatter.jp