JPH09128230A - Terminal device equipped with eeprom - Google Patents

Terminal device equipped with eeprom

Info

Publication number
JPH09128230A
JPH09128230A JP28601595A JP28601595A JPH09128230A JP H09128230 A JPH09128230 A JP H09128230A JP 28601595 A JP28601595 A JP 28601595A JP 28601595 A JP28601595 A JP 28601595A JP H09128230 A JPH09128230 A JP H09128230A
Authority
JP
Japan
Prior art keywords
control program
eeprom
external device
terminal device
rewriting
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
JP28601595A
Other languages
Japanese (ja)
Inventor
Yasushi Watabe
恭志 渡部
Hiromichi Kitahara
博道 北原
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 Building Systems Co Ltd
Original Assignee
Hitachi Building Systems Co 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 Building Systems Co Ltd filed Critical Hitachi Building Systems Co Ltd
Priority to JP28601595A priority Critical patent/JPH09128230A/en
Publication of JPH09128230A publication Critical patent/JPH09128230A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the terminal device which eliminates the need to lead many signal lines out and can accurately rewrite a control program stored in an EEPROM (electrically rewritable memory holding storage capacity even when the power supply is cut off) into a new control program. SOLUTION: This device is equipped with the EEPROM 3 which stores the control program of controlled equipment, an MPU 4 which performs control based upon the control program over the controlled equipment, a changeover switch 5 which switches the operation mode of the MPU 4 between at least a control mode and a rewriting mode, an internal memory 4A which is stored with a rewriting program and incorporated in the MPU 4, and an interface 6 which is connected to an external device 1 through a communication line. Here, when the changeover switch 5 is switched to the rewriting mode and a new control program is supplied from the external device 1, the MPU 4 rewrites the control program stored in the EEPROM 3 into the new control program according to the rewriting program stored in the internal memory 4A.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、EEPROM(電
気的に書換え可能で、かつ、電源を切っても記憶内容が
失われないメモリ)を備える端末装置に係わり、特に、
EEPROMに格納されている制御プログラムを、外部
装置から供給される新たな制御プログラムに正確かつ効
率的に書き換えを行うEEPROMを備える端末装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a terminal device equipped with an EEPROM (a memory which is electrically rewritable and whose stored contents are not lost even when the power is turned off), and more particularly,
The present invention relates to a terminal device provided with an EEPROM that accurately and efficiently rewrites a control program stored in an EEPROM with a new control program supplied from an external device.

【0002】[0002]

【従来の技術】従来、エレベータ保守システムは、保守
データを管理している外部装置と、各エレベータ保守員
が個別に携帯している携帯用端末機と、外部装置とそれ
ぞれの携帯用端末機との間に通信路を選択的に接続する
端末装置とにより構成され、外部装置と一つの携帯用端
末機との間で情報交換やデータの送信を行う必要がある
場合、端末装置によって外部装置とこの一つの携帯用端
末機との間に通信路を形成し、この通信路の形成によ
り、この一つの携帯用端末機からのリクエスト情報等を
外部装置に送信したり、必要とする保守データ等を外部
装置からこの一つの携帯用端末機に送信させるようにし
ている。
2. Description of the Related Art Conventionally, an elevator maintenance system includes an external device that manages maintenance data, a portable terminal that is individually carried by each elevator maintenance staff, an external device and each portable terminal. If a terminal device that selectively connects a communication path between the external device and one portable terminal device is required to exchange information or transmit data, the terminal device connects the external device to the external device. A communication path is formed with this one portable terminal device, and by forming this communication path, request information etc. from this one portable terminal device is transmitted to an external device, necessary maintenance data, etc. Is transmitted from an external device to this one portable terminal.

【0003】ところで、エレベータ保守システムの端末
装置には、被制御機器を適切に管理するのに必要なアプ
リケーションソフトプログラム(制御プログラム)を格
納したEEPROMや、制御プログラムに基づいて被制
御機器に対する制御を実行する制御部(マイクロプロセ
ッサユニット)等が設けられている。そして、EEPR
OMに格納されている制御プログラムは、バージョンア
ップを行う場合等に、新たな制御プログラムに書換更新
される。
By the way, in a terminal device of an elevator maintenance system, an EEPROM storing an application software program (control program) necessary for appropriately managing controlled equipment, and control of the controlled equipment based on the control program. A control unit (microprocessor unit) for executing the operation is provided. And EEPR
The control program stored in the OM is rewritten and updated with a new control program when upgrading the version.

【0004】ここで、EEPROMに格納されている制
御プログラムを書換更新を行う既知の手段としては、例
えば、特開平2−130779号に開示の手段や特開平
6−109741号に開示の手段等がある。
Here, as a known means for rewriting and updating the control program stored in the EEPROM, for example, the means disclosed in JP-A-2-130779 or the means disclosed in JP-A-6-109741 are available. is there.

【0005】この場合、前記特開平2−130779号
に開示の手段は、端末装置にソケットを設けて、アドレ
スバス、データバス及びMPUスタンバイ端子を端末装
置の外部に引き出すようにし、かつ、端末装置の外部に
MPUを備えたROM書換装置を取付け、このROM書
換装置によりEEPROMに格納されている制御プログ
ラムの書き換え作業を行っているものである。
In this case, the means disclosed in the above-mentioned Japanese Patent Laid-Open No. 2-130779 is such that the terminal device is provided with a socket so that the address bus, the data bus and the MPU standby terminal can be drawn out of the terminal device. A ROM rewriting device equipped with an MPU is attached to the outside of the device to rewrite the control program stored in the EEPROM by this ROM rewriting device.

【0006】また、前記特開平6−109741号に開
示の手段は、端末装置に送受信部を構成するインターフ
ェイスと新たな制御プログラムを格納するランダムアク
セスメモリ(RAM)を設け、外部装置から新たな制御
プログラムがインターフェイスに入力されると、その新
たな制御プログラムをRAMに一旦記憶させ、その後、
書換プログラムによりRAMに記憶されている新たな制
御プログラムをEEPROMに転送し、EEPROMに
格納されている制御プログラムの書き換えを行っている
ものである。
Further, the means disclosed in the above-mentioned Japanese Patent Laid-Open No. 6-109741 is provided with a random access memory (RAM) for storing an interface constituting a transmission / reception unit and a new control program in a terminal device, and a new control from an external device. When the program is input to the interface, the new control program is temporarily stored in RAM, and then
A new control program stored in the RAM is transferred to the EEPROM by the rewriting program, and the control program stored in the EEPROM is rewritten.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、前記既
知の特開平2−130779号に開示の手段は、EEP
ROMに格納されている制御プログラムを書換更新する
場合に、外部のROM書換装置とのインターフェイスを
達成するため、アドレスバス、データバス等の多くの信
号線を外に引き出しす必要があり、端末装置における制
御プログラムの書換更新側のための構成が複雑になると
いう問題がある他に、アドレスバス、データバス等の多
くの信号線や端子を引き出していることにより、ノイズ
等の外的障害を受け易くなり、端末装置の信頼性が低下
する等の問題がある。
However, the means disclosed in the above-mentioned known Japanese Patent Laid-Open No. 2-130779 is EEP.
When the control program stored in the ROM is rewritten and updated, many signal lines such as an address bus and a data bus need to be pulled out in order to achieve an interface with an external ROM rewriting device. In addition to the problem that the configuration for the rewriting and updating side of the control program becomes complicated, in addition, many signal lines and terminals of the address bus, data bus, etc. are pulled out, so that external disturbance such as noise is received. However, there is a problem that the reliability of the terminal device is deteriorated.

【0008】また、前記既知の特開平6−109741
号に開示の手段は、外部装置から供給された新たな制御
プログラムを一旦RAMに記憶させた後、そのRAMの
記憶内容をEEPROMに転送すしているため、新たな
制御プログラムがRAMの記憶容量を超える容量のもの
であったとき、EEPROMに格納されている制御プロ
グラムの書き換えができないという問題がある。
Further, the above-mentioned known Japanese Patent Laid-Open No. 6-109741.
In the means disclosed in the publication, the new control program temporarily stores the new control program supplied from the external device in the RAM and then transfers the storage content of the RAM to the EEPROM. Therefore, the new control program reduces the storage capacity of the RAM. If the capacity is exceeded, there is a problem that the control program stored in the EEPROM cannot be rewritten.

【0009】本発明は、これらの問題点を解決するもの
で、その目的は、外部へ多くの信号線を引き出す必要が
なく、RAMの記憶容量に係わりなくEEPROMに格
納の制御プログラムを新たな制御プログラムに正確に書
換え可能な端末装置を提供することにある。
The present invention solves these problems, and its purpose is to eliminate the need for drawing many signal lines to the outside and to newly control the control program stored in the EEPROM regardless of the storage capacity of the RAM. It is to provide a terminal device that can be accurately rewritten in a program.

【0010】[0010]

【課題を解決するための手段】前記目的を達成するため
に、本発明は、被制御機器の制御プログラムを格納する
EEPROMと、前記被制御機器に対して前記制御プロ
グラムに基づいた制御を実行する制御部と、前記制御部
の動作モードを少なくとも制御モードと書換モードに切
換える切換スイッチと、書換プログラムが格納され、前
記制御部に内蔵された内部メモリと、前記外部装置に通
信回線を介して接続される送受信部とを備え、前記切換
スイッチが書換モードに切換えられ、かつ、前記外部装
置から新たな制御プログラムが供給されたとき、前記制
御部は、前記内部メモリに格納の書換プログラムに基づ
き、前記EEPROMに格納されている前記制御プログ
ラムを、前記新たな制御プログラムに書換える手段を具
備する。
In order to achieve the above object, the present invention executes an EEPROM for storing a control program for a controlled device and a control for the controlled device based on the control program. A control unit, a changeover switch for switching the operation mode of the control unit to at least a control mode and a rewriting mode, an internal memory in which a rewriting program is stored and built in the control unit, and a connection to the external device via a communication line. When the changeover switch is switched to a rewrite mode and a new control program is supplied from the external device, the control unit, based on a rewrite program stored in the internal memory, The control program stored in the EEPROM is rewritten to the new control program.

【0011】そして、前記手段においては、EEPRO
Mに格納されている制御プログラムを書換える場合、切
換スイッチを書換モードに切換え、制御部の内部メモリ
に格納されている書換プログラムを起動する。このと
き、外部装置から供給される新たな制御プログラムを送
受信部において受信すると、制御部は、書換プログラム
に基づいてEEPROMに格納されている制御プログラ
ムを新たな制御プログラムに書き換える。そして、EE
PROMへの書換え処理が完了すると、切換スイッチを
通常の制御モードに切換え、制御部は、新たな制御プロ
グラムに基づく制御動作を実行する。
In the above means, EEPRO
When rewriting the control program stored in M, the changeover switch is switched to the rewriting mode, and the rewriting program stored in the internal memory of the control unit is activated. At this time, when the transmitting / receiving unit receives a new control program supplied from the external device, the control unit rewrites the control program stored in the EEPROM with the new control program based on the rewriting program. And EE
When the rewriting process to the PROM is completed, the changeover switch is switched to the normal control mode, and the control unit executes the control operation based on the new control program.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
を用いて詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0013】図1は、本発明に係わるEEPROMを備
える端末装置の実施の形態の一つを示すブロック構成図
である。
FIG. 1 is a block diagram showing one embodiment of a terminal device having an EEPROM according to the present invention.

【0014】図1において、1は端末装置、2は外部装
置、3はEEPROM(電気的に書換え可能で、かつ、
電源を切っても記憶内容が失われないメモリ)、4はマ
イクロプロセッサユニット(MPU、即ち、制御部)、
4Aは内部メモリ、5は切換スイッチ、6はインターフ
ェイス(送受信部)、7はデータバスである。この場
合、端末装置1は、EEPROM3と、マイクロプロセ
ッサユニット4と、切換スイッチ5と、インターフェイ
ス6とからなり、マイクロプロセッサユニット4は、内
部メモリ4Aを内蔵し、データバス7を介してEEPR
OM3及びインターフェイス6に結合され、切換スイッ
チ5に接続される。
In FIG. 1, 1 is a terminal device, 2 is an external device, 3 is an EEPROM (electrically rewritable, and
Memory that does not lose stored contents even when the power is turned off), 4 is a microprocessor unit (MPU, that is, control unit),
4A is an internal memory, 5 is a changeover switch, 6 is an interface (transmission / reception unit), and 7 is a data bus. In this case, the terminal device 1 includes an EEPROM 3, a microprocessor unit 4, a changeover switch 5 and an interface 6. The microprocessor unit 4 has an internal memory 4A built therein, and an EEPR via a data bus 7.
It is coupled to the OM 3 and the interface 6 and connected to the changeover switch 5.

【0015】この場合、端末装置1は、外部装置2とそ
れぞれの保守員が個別に携帯する携帯用端末機(図示な
し)との間の通信路を切換制御するように働くもので、
通信回線を介して外部装置2に選択的に結合される。外
部装置2は、通常、ビル内にあるエレベータ等の被制御
機器を保守する際に必要な保守データ等を管理している
もので、管理されている保守データ等は通信回線を介し
てそれぞれの携帯用端末機に選択的に送信される。この
他に、外部装置2は、携帯用端末機に対する新たな通信
路を切換制御する切換制御プログラムや、この切換制御
プログラム及び各種のデータを伝送する伝送プログラム
を記憶している。EEPROM3は、携帯用端末機に対
する通信路の切換制御を行う切換制御プログラム及び各
種データを記憶するもので、マイクロプロセッサユニッ
ト4は、端末装置2を制御するプログラム及びEEPR
OM3に対するプログラムの書換を行う書換プログラム
を実行するものである。内部メモリ4Aは、新たな制御
プログラムをEEPROM3に書き込むための書換プロ
グラムを格納しているもので、切換スイッチ5は、マイ
クロプロセッサユニット4に対して、EEPROM3に
格納されている通信路の切換制御プログラムの実行と内
部メモリ4Aに格納されている書換プログラムの実行と
を切換えるもので、マイクロプロセッサユニット4は、
切換スイッチ5のオン/オフ動作にしたがって、通信路
の切換制御プログラムの実行と書換プログラムの実行と
が切換えられる。インターフェイス6は、EEPROM
3へ書き込む新たな制御プログラムや各種データを入力
するもので、特に、ノイズ等の外的障害に充分耐えられ
るように構成されており、例えば、直列通信インターフ
ェイス等が用いられている。
In this case, the terminal device 1 serves to switch and control a communication path between the external device 2 and a portable terminal device (not shown) individually carried by each maintenance person.
It is selectively coupled to the external device 2 via a communication line. The external device 2 normally manages maintenance data and the like required when maintaining controlled equipment such as an elevator in a building, and the managed maintenance data and the like are managed via communication lines. It is selectively transmitted to the portable terminal. In addition to this, the external device 2 stores a switching control program for switching and controlling a new communication path for the portable terminal, and a transmission program for transmitting this switching control program and various data. The EEPROM 3 stores a switching control program for controlling switching of a communication path for a portable terminal and various data. The microprocessor unit 4 stores a program for controlling the terminal device 2 and EEPR.
The rewriting program for rewriting the program to the OM3 is executed. The internal memory 4A stores a rewriting program for writing a new control program in the EEPROM 3, and the changeover switch 5 controls the microprocessor unit 4 to change the communication path switching control program stored in the EEPROM 3. To switch execution of the rewriting program stored in the internal memory 4A.
According to the on / off operation of the changeover switch 5, the execution of the communication path switching control program and the execution of the rewriting program are switched. Interface 6 is an EEPROM
A new control program to be written in 3 and various data are input, and it is particularly configured to sufficiently withstand external disturbances such as noise. For example, a serial communication interface or the like is used.

【0016】次に、図2は、図1に図示された実施の形
態において、EEPROM3に格納されている制御プロ
グラムを新たな制御プログラムに書換える際の端末装置
1側の一連の動作を示すフローチャートであり、図3
は、同じく、図1に図示された実施の形態において、端
末装置1に対して新たな制御プログラムを伝送する際の
外部装置2側の一連の動作を示すフローチャートであ
る。
Next, FIG. 2 is a flowchart showing a series of operations on the side of the terminal device 1 when the control program stored in the EEPROM 3 is rewritten to a new control program in the embodiment shown in FIG. And FIG.
2 is a flowchart showing a series of operations on the external device 2 side when transmitting a new control program to the terminal device 1 in the embodiment shown in FIG.

【0017】まず、端末装置1側において、EEPRO
M3に格納されている制御プログラムを新たな制御プロ
グラムに書換える際の動作を図2に図示のフローチャー
トにしたがって説明する。
First, on the terminal device 1 side, EEPRO
The operation of rewriting the control program stored in M3 with a new control program will be described with reference to the flowchart shown in FIG.

【0018】最初に、ステップS1において、切換スイ
ッチ5をオンからオフに切換えると、マイクロプロセッ
サユニット4は、内部メモリ4Aに記憶されている書換
プログラムを読み出すとともに、インターフェイス6か
ら外部装置2に対して伝送プログラム実行要求を送出す
る。そして、この伝送プログラム実行要求に対して、外
部装置2側から新たな制御プログラムが送信伝送される
と、新たな制御プログラムをインターフェイス6におい
て受信する。
First, in step S1, when the changeover switch 5 is changed from on to off, the microprocessor unit 4 reads out the rewriting program stored in the internal memory 4A, and at the same time, the interface 6 sends it to the external device 2. Send a transmission program execution request. Then, when a new control program is transmitted and transmitted from the external device 2 side in response to this transmission program execution request, the new control program is received at the interface 6.

【0019】次に、ステップS2において、マイクロプ
ロセッサユニット4は、インターフェイス6で受信した
新たな制御プログラムをデータバス7を介して取り入
れ、新たな制御プログラムが1ブロック分受信されたか
否かを判断する。そして、1ブロック分受信していると
判断した(Y)ときは次のステップS3に移行し、未だ
1ブロック分受信していないと判断した(N)ときは最
初のステップS1に戻り、再び、ステップS1以降の動
作が実行される。
Next, in step S2, the microprocessor unit 4 takes in the new control program received by the interface 6 via the data bus 7, and determines whether or not one block of the new control program has been received. . When it is determined that one block has been received (Y), the process proceeds to the next step S3, and when it is determined that one block has not yet been received (N), the process returns to the first step S1 and again, The operation after step S1 is executed.

【0020】次いで、ステップS3において、マイクロ
プロセッサユニット4は、1ブロック分の新たな制御プ
ログラムを受信した後に送信停止要求を発生し、送信停
止要求をインターフェイス6から外部装置2に対して伝
送する。この場合、送信停止要求を外部装置2側に伝送
する理由は、EEPROM3に新たな制御プログラムを
書き込む際の書込み要処理時間が、図1に図示されてい
ないランダムアクセスメモリ(RAM)にデータを書き
込む際の書込み要処理時間に比べてかなり長くなるた
め、新たな制御プログラムの書き込み中は外部装置2に
対して他のデータ等の送信停止要求をする。
Next, in step S3, the microprocessor unit 4 generates a transmission stop request after receiving a new control program for one block, and transmits the transmission stop request from the interface 6 to the external device 2. In this case, the reason why the transmission stop request is transmitted to the external device 2 side is that the write required processing time when writing a new control program in the EEPROM 3 is such that data is written in the random access memory (RAM) not shown in FIG. Since the processing time required for writing is considerably longer than that at the time of writing, a request to stop transmission of other data or the like is issued to the external device 2 during writing of a new control program.

【0021】前記動作と同時に、ステップS4におい
て、マイクロプロセッサユニット4は、取り入れた1ブ
ロック分の新たな制御プログラムをEEPROM3に書
き込み、EEPROM3の格納内容の書換えを行う。
Simultaneously with the above operation, in step S4, the microprocessor unit 4 writes the new control program for one block, which has been taken in, into the EEPROM 3 and rewrites the contents stored in the EEPROM 3.

【0022】続く、ステップS5において、マイクロプ
ロセッサユニット4は、EEPROM3に1ブロック分
の新たな制御プログラムの書き込みが完了したか否かを
判断する。そして、書き込みが完了したと判断した
(Y)ときは次のステップS6に移行し、未だ書き込み
が完了していないと判断した(N)ときはこのステップ
S5を繰り返し実行する。
In the next step S5, the microprocessor unit 4 determines whether or not the writing of the new control program for one block into the EEPROM 3 is completed. When it is determined that the writing has been completed (Y), the process proceeds to the next step S6, and when it is determined that the writing has not been completed (N), this step S5 is repeatedly executed.

【0023】続いて、ステップS6において、マイクロ
プロセッサユニット4は、EEPROM3に1ブロック
分の新たな制御プログラムの書き込みが完了したので、
送信許可信号を発生し、送信許可信号をインターフェイ
ス6から外部装置2に対して伝送する。そして、この送
信許可信号が行われた後、再び、ステップS1に戻り、
ステップS1以降の動作が繰り返し実行される。
Subsequently, in step S6, since the microprocessor unit 4 has finished writing the new control program for one block in the EEPROM 3,
A transmission permission signal is generated, and the transmission permission signal is transmitted from the interface 6 to the external device 2. After the transmission permission signal is sent, the process returns to step S1 again,
The operation after step S1 is repeatedly executed.

【0024】これに対して、外部装置2側において、端
末装置1に対して新たな制御プログラムを伝送する際の
動作を図3に図示のフローチャートにしたがって説明す
る。
On the other hand, the operation of transmitting a new control program to the terminal device 1 on the external device 2 side will be described with reference to the flowchart shown in FIG.

【0025】始めに、ステップS7において、端末装置
1側から伝送プログラム実行要求が伝送されると、外部
装置2は、1ブロック分の新たな制御プログラムを図1
に図示されていないメモリから読み出し、この1ブロッ
ク分の新たな制御プログラムを端末装置1側に送信伝送
する。
First, when a transmission program execution request is transmitted from the terminal device 1 side in step S7, the external device 2 creates a new control program for one block in FIG.
A new control program for one block is read out from a memory (not shown) and transmitted to the terminal device 1 side.

【0026】次に、ステップS8において、外部装置2
は、端末装置2から送られてきた送信停止要求を受信し
たか否かを判断する。そして、送信停止要求を受信した
と判断した(Y)ときは次のステップS9に移行し、未
だ送信停止要求を受信していないと判断した(N)とき
は始めのステップS7に戻り、ステップS7以降の動作
を繰り返し実行する。
Next, in step S8, the external device 2
Determines whether or not the transmission stop request sent from the terminal device 2 has been received. When it is determined that the transmission stop request has been received (Y), the process proceeds to the next step S9, and when it is determined that the transmission stop request has not been received yet (N), the process returns to the first step S7 and step S7. Repeat the following operations.

【0027】続いて、ステップS9において、外部装置
2は、端末装置2から送られてきた送信許可信号を受信
したか否かを判断する。そして、送信許可信号を受信し
たと判断した(Y)ときは次のステップS10に移行
し、未だ送信許可信号を受信していないと判断した
(N)ときはこのステップS9の動作を繰り返し実行す
る。
Subsequently, in step S9, the external device 2 determines whether or not the transmission permission signal sent from the terminal device 2 has been received. When it is determined that the transmission permission signal is received (Y), the process proceeds to the next step S10, and when it is determined that the transmission permission signal is not yet received (N), the operation of step S9 is repeatedly executed. .

【0028】次いで、ステップS10において、外部装
置2は、端末装置2に送信すべき全ての新しい制御プロ
グラムの送信が完了した否かを判断する。そして、全て
の新しい制御プログラムの送信が完了したと判断した
(Y)ときはこの一連の動作を終了し、未だ全ての新し
い制御プログラムの送信が完了していないと判断した
(N)ときは始めのステップS7に戻り、ステップS7
以降の動作を繰り返し実行する。
Next, in step S10, the external device 2 determines whether or not the transmission of all new control programs to be transmitted to the terminal device 2 has been completed. Then, when it is judged that the transmission of all the new control programs is completed (Y), this series of operations is ended, and when it is judged that the transmission of all the new control programs is not yet completed (N), it is started. Return to step S7 of step S7
Repeat the following operations.

【0029】なお、図2及び図3における一連の動作が
終了した後、切換スイッチ5をオフからオンに切換えれ
ば、マクロプロセッサユニット4において、通常の制御
プログラムにしたがった動作が実行される。
After the series of operations shown in FIGS. 2 and 3, the changeover switch 5 is switched from OFF to ON, and the macroprocessor unit 4 executes the operation according to the normal control program.

【0030】このように、本発明の実施の形態によれ
ば、EEPROM3に記憶格納されている通信路の切換
制御プログラムの書換え時に、切換スイッチ5のオフへ
の切換えに対応して、マイクロプロセッサユニット4
は、内部メモリ4A内の書換プログラムの実行により、
外部装置2から新たな制御プログラムが送信伝送され、
マイクロプロセッサユニット4に取り入れられた後、こ
の新たな制御プログラムをEEPROM3を書き込み、
EEPROM3の格納内容を書換えるようにしているの
で、アドレスバス、データバス等の多くの信号線を外部
配置する必要がなくなり、これにより、端末装置1が外
来ノイズの影響を受けることがなくなって、端末装置1
の信頼性を向上させることができ、しかも、RAMの記
憶容量に係わらずEEPROM3に新たな制御プログラ
ムを書き込むことができる。
As described above, according to the embodiment of the present invention, when the communication path switching control program stored in the EEPROM 3 is rewritten, in response to the switching of the switching switch 5, the microprocessor unit is turned off. Four
By executing the rewriting program in the internal memory 4A,
A new control program is transmitted and transmitted from the external device 2,
After being incorporated into the microprocessor unit 4, the EEPROM 3 is written with this new control program,
Since the content stored in the EEPROM 3 is rewritten, it is not necessary to externally arrange many signal lines such as an address bus and a data bus, and the terminal device 1 is not affected by external noise. Terminal device 1
The reliability can be improved, and a new control program can be written in the EEPROM 3 regardless of the storage capacity of the RAM.

【0031】[0031]

【発明の効果】以上詳細に説明したように、本発明によ
れば、端末装置1のEEPROM3に格納記憶されてい
る通信路の切換制御プログラムを、外部装置2から通信
回線を通して端末装置1に供給されるの新たな制御プロ
グラムで書換えるようにしているので、EEPROM3
に格納の通信路の切換制御プログラムの書換え時に、端
末装置1が外来ノイズの影響を受けることがなくなり、
端末装置1の信頼性を向上させることができるととも
に、新たな制御プログラムの書換えを正確に実行するこ
とができるという効果がある。
As described in detail above, according to the present invention, the communication path switching control program stored and stored in the EEPROM 3 of the terminal device 1 is supplied from the external device 2 to the terminal device 1 through the communication line. The EEPROM3 is rewritten with a new control program.
When the communication path switching control program stored in the terminal is rewritten, the terminal device 1 is not affected by external noise,
There is an effect that the reliability of the terminal device 1 can be improved and a new control program can be rewritten accurately.

【0032】また、本発明によれば、外部装置2から送
られてくる新たな制御プログラムをブロック単位で受信
し、ブロック単位の新たな制御プログラムのEEPRO
M3への書き込みの際に、外部装置2に他のデータの送
信停止要求を供給し、ブロック単位の新たな制御プログ
ラムのEEPROM3への書き込みが終了すると、外部
装置2に他のデータの送信許可信号を供給するように
し、かかる動作を全ての新たな制御プログラムがEEP
ROM3に書き込まれるまで繰り返し実行されるので、
端末装置1のRAMの記憶容量に係わらずEEPROM
3に全ての新たな制御プログラムを書き込むことができ
るという効果がある。
Further, according to the present invention, the new control program sent from the external device 2 is received in block units, and the new control program EEPRO in block units is received.
At the time of writing to M3, a request to stop transmission of other data is supplied to the external device 2, and when writing of a new control program in block units to the EEPROM 3 is completed, the external device 2 is sent a transmission permission signal for other data. Is supplied to all new control programs by EEP.
Since it is repeatedly executed until it is written in ROM3,
EEPROM regardless of the storage capacity of the RAM of the terminal device 1
3 has the effect that all new control programs can be written.

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

【図1】本発明に係わるEEPROMを備える端末装置
の実施の形態の一つを示すブロック構成図である。
FIG. 1 is a block diagram showing one embodiment of a terminal device including an EEPROM according to the present invention.

【図2】図1に図示された実施の形態において、EEP
ROM3に格納されている制御プログラムを新たな制御
プログラムに書換える際の端末装置側の一連の動作を示
すフローチャートである。
2 shows an EEP in the embodiment illustrated in FIG.
It is a flowchart which shows a series of operation | movement by the side of a terminal device at the time of rewriting a control program stored in ROM3 to a new control program.

【図3】図1に図示された実施の形態において、端末装
置に対して新たな制御プログラムを伝送する際の外部装
置側の一連の動作を示すフローチャートである。
FIG. 3 is a flowchart showing a series of operations on the external device side when transmitting a new control program to the terminal device in the embodiment shown in FIG.

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

1 外部装置 2 端末装置 3 EEPROM 4 マイクロプロセッサユニット(MPU、制御部) 4A 内部メモリ 5 切換スイッチ 6 インターフェイス(送受信部) 7 データバス 1 External Device 2 Terminal Device 3 EEPROM 4 Microprocessor Unit (MPU, Control Unit) 4A Internal Memory 5 Changeover Switch 6 Interface (Transmit / Receive Unit) 7 Data Bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 被制御機器の制御プログラムを格納する
EEPROMと、前記被制御機器に対して前記制御プロ
グラムに基づいた制御を実行する制御部と、前記制御部
の動作モードを少なくとも制御モードと書換モードに切
換える切換スイッチと、書換プログラムが格納され、前
記制御部に内蔵された内部メモリと、前記外部装置に通
信回線を介して接続される送受信部とを備え、前記切換
スイッチが書換モードに切換えられ、かつ、前記外部装
置から新たな制御プログラムが供給されたとき、前記制
御部は、前記内部メモリに格納の書換プログラムに基づ
き、前記EEPROMに格納されている前記制御プログ
ラムを、前記新たな制御プログラムに書換えることを特
徴とするEEPROMを備える端末装置。
1. An EEPROM that stores a control program for a controlled device, a control unit that executes control based on the control program for the controlled device, and an operation mode of the control unit that is at least a control mode. A changeover switch for changing over to a mode, an internal memory in which the rewriting program is stored and built in the control section, and a transmitting / receiving section connected to the external device via a communication line are provided, and the changeover switch is changed over to the rewriting mode. And a new control program is supplied from the external device, the control unit controls the new control program stored in the EEPROM based on the rewriting program stored in the internal memory. A terminal device provided with an EEPROM characterized by being rewritten into a program.
【請求項2】 前記外部装置から供給される新たな制御
プログラムは、ブロック単位で供給されることを特徴と
する請求項1に記載のEEPROMを備える端末装置。
2. The terminal device having an EEPROM according to claim 1, wherein the new control program supplied from the external device is supplied in block units.
【請求項3】 前記制御部は、前記EEPROMに格納
されている前記制御プログラムの書換えを行う際に、前
記外部装置に送信停止要求を供給して前記外部装置から
前記端末装置への他のデータの送信を停止し、前記EE
PROMに所定量の新たな制御プログラムの書換えが行
われると、前記外部装置に送信許可信号を供給して前記
外部装置から前記端末装置への他のデータの送信を再開
することを特徴とする請求項1乃至2のいずれかに記載
のEEPROMを備える端末装置。
3. The control unit supplies a transmission stop request to the external device and rewrites other data from the external device to the terminal device when rewriting the control program stored in the EEPROM. To stop the transmission of the EE
When a predetermined amount of a new control program is rewritten in the PROM, a transmission permission signal is supplied to the external device to restart transmission of other data from the external device to the terminal device. A terminal device comprising the EEPROM according to any one of items 1 and 2.
JP28601595A 1995-11-02 1995-11-02 Terminal device equipped with eeprom Pending JPH09128230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28601595A JPH09128230A (en) 1995-11-02 1995-11-02 Terminal device equipped with eeprom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28601595A JPH09128230A (en) 1995-11-02 1995-11-02 Terminal device equipped with eeprom

Publications (1)

Publication Number Publication Date
JPH09128230A true JPH09128230A (en) 1997-05-16

Family

ID=17698885

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28601595A Pending JPH09128230A (en) 1995-11-02 1995-11-02 Terminal device equipped with eeprom

Country Status (1)

Country Link
JP (1) JPH09128230A (en)

Similar Documents

Publication Publication Date Title
JP2017157004A (en) System, method, and computer program for updating programs
US20200167307A1 (en) In-vehicle relay device, control program, and memory sharing method
JP2021047875A (en) On-vehicle device, control program, and memory sharing method
JPH09128230A (en) Terminal device equipped with eeprom
JP2000293366A (en) Method for updating module for set top box
WO2020195034A1 (en) Vehicle-mounted update device, update processing system, update processing method, and processing program
JP3109262B2 (en) Master slave network system
JPH10187454A (en) Bios reloading system
JP2000128447A (en) Elevator control program rewriting device
JPH0562485A (en) Rewriting device for eeprom of controller
JP2003022101A (en) Pio controller
JPH05276178A (en) Home bus system
JPH10268914A (en) Programmable controller
JPH03269633A (en) Terminal program rewriting system
JP2000231481A (en) Apparatus control system
JP3549288B2 (en) Air conditioner
JPH11274915A (en) Fpga rewriting processor
JP3582432B2 (en) Communication terminal device and communication terminal device reset processing method
JPH04282740A (en) Input/output port device
JPH05289968A (en) Data transmission processing system
JPH04107595A (en) Display system
JP2021060747A (en) Microcomputer
JP2007047995A (en) Traffic signal controller
JPH0142198B2 (en)
JPH02125303A (en) Programmable controller