JP2002244877A - Printer device and program updating method for the same - Google Patents

Printer device and program updating method for the same

Info

Publication number
JP2002244877A
JP2002244877A JP2001041251A JP2001041251A JP2002244877A JP 2002244877 A JP2002244877 A JP 2002244877A JP 2001041251 A JP2001041251 A JP 2001041251A JP 2001041251 A JP2001041251 A JP 2001041251A JP 2002244877 A JP2002244877 A JP 2002244877A
Authority
JP
Japan
Prior art keywords
program
update data
storage area
update
stored
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.)
Withdrawn
Application number
JP2001041251A
Other languages
Japanese (ja)
Inventor
Kazuhisa Kondo
和寿 近藤
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 JP2001041251A priority Critical patent/JP2002244877A/en
Publication of JP2002244877A publication Critical patent/JP2002244877A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute the program updating processing in a shorter time without stopping processing of a program in operation. SOLUTION: A data receiving part 2 receives update data and writes them into an update data storing region 8. Upon a power input to a printer device 1, a system controlling part 5 copies a program to a program executing region 9 from a program storing region 6, and uses the update data stored in the update data storing region 8 to update the program in the program executing region 9. If no problems arise after execution of starting processing of the program in the program executing region 9, updated part of the program in the program storing region 6 is erased and the update data are written into the position. The program in the program executing region 9 is then executed to perform a normal operation.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラムを内蔵
するプリンタ装置に関し、特に動作中のプログラムの本
来の動作を停止することなくプログラムの更新を行うプ
リンタ装置およびそのプログラム更新方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device having a built-in program, and more particularly to a printer device that updates a program without stopping the original operation of a running program and a method of updating the program.

【0002】[0002]

【従来の技術】従来、プリンタ装置のプログラムを更新
する方法として、動作中のプログラム動作を停止してプ
ログラムの更新モードに遷移しプログラムの更新処理後
にプリンタ装置の再起動を行ったり、あるいは電源を一
旦OFFにして所定の操作で電源ONすることで更新モ
ードに遷移しプログラムを更新している。
2. Description of the Related Art Conventionally, as a method of updating a program in a printer, a program operation in operation is stopped, the mode is changed to a program update mode, the printer is restarted after a program update process, or a power supply is turned off. When the power is once turned off and the power is turned on by a predetermined operation, the mode transits to the update mode and the program is updated.

【0003】また、動作中のプログラムの停止を行わず
にプログラム更新処理を行う場合の方法として、プログ
ラムの格納領域を複数設けるなどして、プログラム動作
中には使用していない格納領域に対して書き込みを行
い、次回起動時に更新日付の比較により、プログラム選
択を行う方法がある。
As a method of performing a program update process without stopping a running program, a plurality of storage areas for the program are provided, and a storage area not used during the operation of the program is provided. There is a method of performing writing and selecting a program by comparing the update date at the next startup.

【0004】[0004]

【発明が解決しようとする課題】しかし、上述した従来
の技術では、以下の問題点がある。
However, the above-mentioned prior art has the following problems.

【0005】最初の方法では、装置の動作停止や再起動
を必要としているため、他の利用者による利用状況によ
っては、プログラム更新のための時間確保ができないな
どの問題点がある。
In the first method, since the operation of the apparatus needs to be stopped or restarted, there is a problem that time cannot be secured for updating the program depending on the use situation of other users.

【0006】2番目の方法では、プログラムの格納領域
が多く必要であることと、プログラム全体を書き換える
ためデータの受信処理に時間を要する等の問題点があ
る。
The second method has problems that a large storage area for the program is required and that it takes time to receive data for rewriting the entire program.

【0007】本発明の目的は、上記の問題点を解決し、
動作中のプログラムの本来の動作を停止することなく、
また更新プログラムの受信時間を短縮することにより、
プログラム更新処理が他の利用者へ及ぼす影響をより少
なくするプリンタ装置およびそのプログラム更新方法を
提供することにある。
An object of the present invention is to solve the above problems,
Without stopping the original operation of the running program,
In addition, by shortening the time for receiving updates,
It is an object of the present invention to provide a printer apparatus and a program updating method for reducing the influence of a program updating process on other users.

【0008】[0008]

【課題を解決するための手段】本願第1の発明のプリン
タ装置は、プログラムで動作し外部装置から受信した更
新データで前記プログラムを書き替えるプリンタ装置で
あって、更新データを受信して更新データ格納領域に格
納し更新データ状態格納領域の更新データ状態を更新デ
ータ有りとするデータ受信部と、プログラム格納領域に
格納されるプログラムをプログラム実行領域にコピーし
更新データ状態格納領域に格納される更新データ状態が
更新データ無しの場合にはプログラム実行領域のプログ
ラムに実行を遷移し更新データ状態が更新データ有りの
場合にはプログラム格納領域のプログラムに前記更新デ
ータを適用してプログラム更新を行い更新データ状態格
納領域に格納される更新データ状態を更新データ無しと
しプログラム実行領域のプログラムに実行を遷移するシ
ステム制御部と,印刷処理の制御を行うプログラムを格
納するプログラム格納領域と,前記更新データの処理状
態を格納する更新データ状態格納領域と、前記データ受
信部が受信した更新データを格納する更新データ格納領
域と、前記プログラム格納領域に格納するプログラムが
コピーされて格納され格納されたプログラムが実行され
るプログラム実行領域と、を備える。
According to a first aspect of the present invention, there is provided a printer apparatus which operates according to a program and rewrites the program with update data received from an external device. A data receiving unit that stores the update data state of the update data state in the storage area and the update data state of the update data state in the storage area, and an update that copies the program stored in the program storage area to the program execution area and stores the program in the update data state storage area When the data state is no update data, the execution transitions to the program in the program execution area, and when the update data state is the update data, the program is updated by applying the update data to the program in the program storage area and the update data is updated. Execute the program with the update data status stored in the status storage area as no update data A system control unit that shifts execution to a program in the area, a program storage area that stores a program that controls print processing, an update data state storage area that stores the processing state of the update data, An update data storage area for storing the updated data, and a program execution area in which the program stored in the program storage area is copied and stored, and the stored program is executed.

【0009】本願第2の発明のプリンタ装置は、第1の
発明において前記システム制御部は、プリンタ装置起動
時に前記更新データ状態格納領域に格納される更新デー
タ状態が更新データ有りの場合に前記更新データを前記
プログラム実行領域にコピーされたプログラムに適用し
てプログラム更新を行い更新したプログラムの起動確認
を行い正常であれば、前記プログラム格納領域に格納さ
れるプログラムに前記更新データを適用してプログラム
更新を行うことを特徴とする。
In the printer device according to a second aspect of the present invention, in the first aspect, the system control unit is configured to update the update data when the update data state stored in the update data state storage area includes update data when the printer device is started. Applying the data to the program copied to the program execution area, updating the program, confirming the start of the updated program, and if the update is normal, applying the update data to the program stored in the program storage area. Updating is performed.

【0010】本願第3の発明のプリンタ装置は、第1の
発明において前記システム制御部は、アイドルタイムを
検出した時に前記更新データ状態格納領域に格納される
更新データ状態が更新データ有りの場合に前記プログラ
ム格納領域に格納されるプログラムのうち更新されない
部分と前記更新データとをチェックサムで確認して正常
であれば、前記プログラム格納領域に格納されるプログ
ラムに前記更新データを適用してプログラム更新を行う
ことを特徴とする。
In a third aspect of the present invention, in the first aspect of the invention, the system control unit is arranged such that when an idle time is detected, the update data state stored in the update data state storage area indicates that there is update data. Checking a non-updated part of the program stored in the program storage area and the update data with a checksum, and if the result is normal, applying the update data to the program stored in the program storage area to update the program Is performed.

【0011】本願第4の発明のプリンタ装置は、第2ま
たは第3の発明において前記システム制御部は、前記プ
ログラム格納領域に格納されるプログラムに前記更新デ
ータを適用してプログラム更新を行っているときには前
記更新データ状態格納領域に格納される更新データ状態
をプログラム更新中としプリンタ装置起動時に前記更新
データ状態格納領域に格納される更新データ状態がプロ
グラム更新中の場合に前記プログラム格納領域に格納さ
れるプログラムに前記更新データを適用してプログラム
更新を行い前記更新データ状態格納領域に格納される更
新データ状態を更新データ無しとし前記プログラム格納
領域に格納されるプログラムを前記プログラム実行領域
にコピーし前記プログラム実行領域のプログラムに実行
を遷移することを特徴とする。
According to a fourth aspect of the present invention, in the printer of the second or third aspect, the system control unit updates the program by applying the update data to a program stored in the program storage area. Sometimes, the update data state stored in the update data state storage area is being updated in the program, and when the update data state stored in the update data state storage area is in the program update state when the printer device is started, the update data state is stored in the program storage area. The program is updated by applying the update data to the program to be updated, the update data status stored in the update data status storage area is determined to be no update data, and the program stored in the program storage area is copied to the program execution area. Transition execution to the program in the program execution area And butterflies.

【0012】本願第5の発明のプリンタ装置のプログラ
ム更新方法は、データ受信部とシステム制御部とプログ
ラム格納領域と更新データ状態格納領域と更新データ格
納領域とプログラム実行領域とを備えてプログラムで動
作し外部装置から受信した更新データで前記プログラム
を書き替えるプリンタ装置のプログラム更新方法であっ
て、前記データ受信部は更新データを受信して前記更新
データ格納領域に格納し、前記更新データ状態格納領域
の更新データ状態を更新データ有りとし、前記システム
制御部は前記プログラム格納領域に格納されるプログラ
ムを前記プログラム実行領域にコピーし、前記更新デー
タ状態格納領域に格納される更新データ状態が更新デー
タ無しの場合には前記プログラム実行領域のプログラム
に実行を遷移し、前記更新データ状態が更新データ有り
の場合には前記プログラム格納領域のプログラムに前記
更新データを適用してプログラム更新を行い、前記更新
データ状態格納領域に格納される更新データ状態を更新
データ無しとし、前記プログラム実行領域のプログラム
に実行を遷移する、ことを特徴とする。
According to a fifth aspect of the present invention, there is provided a program updating method for a printer apparatus, comprising a data receiving unit, a system control unit, a program storage area, an update data state storage area, an update data storage area, and a program execution area, and operated by a program. And updating the program with update data received from an external device, wherein the data receiving unit receives the update data, stores the update data in the update data storage area, and stores the update data state storage area in the update data state storage area. The system control unit copies the program stored in the program storage area to the program execution area, and the update data state stored in the update data state storage area is no update data. In the case of, transition execution to the program in the program execution area, When the update data state has update data, the program is updated by applying the update data to the program in the program storage area, and the update data state stored in the update data state storage area is determined to be no update data, The execution is transited to the program in the program execution area.

【0013】本願第6の発明のプリンタ装置のプログラ
ム更新方法は、第5の発明においてプリンタ装置起動時
に前記更新データ状態格納領域に格納される更新データ
状態が更新データ有りの場合に前記更新データを前記プ
ログラム実行領域にコピーされたプログラムに適用して
プログラム更新を行い、更新したプログラムの起動確認
を行い、確認が正常であれば、前記プログラム格納領域
に格納されるプログラムに前記更新データを適用してプ
ログラム更新を行う、ことを特徴とする。
[0013] In a sixth aspect of the present invention, in the program updating method according to the fifth aspect, when the update data state stored in the update data state storage area at the time of starting the printer apparatus has the update data, the update data is updated. Update the program by applying to the program copied to the program execution area, confirm the start of the updated program, if the confirmation is normal, apply the update data to the program stored in the program storage area Program update.

【0014】本願第7の発明のプリンタ装置のプログラ
ム更新方法は、第5の発明においてアイドルタイムを検
出した時に前記更新データ状態格納領域に格納される更
新データ状態が更新データ有りの場合に前記プログラム
格納領域に格納されるプログラムのうち更新されない部
分と前記更新データとをチェックサムで確認し、確認が
正常であれば、前記プログラム格納領域に格納されるプ
ログラムに前記更新データを適用してプログラム更新を
行う、ことを特徴とする。
According to a seventh aspect of the present invention, there is provided the program updating method for a printer device according to the fifth aspect, wherein when the idle time is detected, the update data status stored in the update data status storage area indicates that there is update data. A part of the program stored in the storage area that is not updated and the update data are checked with a checksum. If the check is successful, the program is updated by applying the update data to the program stored in the program storage area. Is performed.

【0015】本願第8の発明のプリンタ装置のプログラ
ム更新方法は、第6または第7の発明において前記プロ
グラム格納領域に格納されるプログラムに前記更新デー
タを適用してプログラム更新を行っているときには前記
更新データ状態格納領域に格納される更新データ状態を
プログラム更新中とし、プリンタ装置起動時に前記更新
データ状態格納領域に格納される更新データ状態がプロ
グラム更新中の場合に前記プログラム格納領域に格納さ
れるプログラムに前記更新データを適用してプログラム
更新を行い、前記更新データ状態格納領域に格納される
更新データ状態を更新データ無しとし、前記プログラム
格納領域に格納されるプログラムを前記プログラム実行
領域にコピーし、前記プログラム実行領域のプログラム
に実行を遷移する、ことを特徴とする。
The program updating method for a printer device according to an eighth aspect of the present invention is the program updating method according to the sixth or seventh aspect, wherein the update is performed by applying the update data to the program stored in the program storage area. The update data status stored in the update data status storage area is defined as the program being updated, and the update data status stored in the update data status storage area when the printer is started is stored in the program storage area when the program is being updated. The program is updated by applying the update data to the program, the update data state stored in the update data state storage area is determined to be no update data, and the program stored in the program storage area is copied to the program execution area. Transitions execution to the program in the program execution area It is characterized in.

【0016】[0016]

【発明の実施の形態】本発明は、組み込みプログラムで
動作し、組み込みプログラムを外部から書き替えること
が可能なプリンタ装置において、動作中のプログラムの
処理を停止することなく、より短時間でのプログラム更
新処理を実行できることを特徴としている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention relates to a printer which operates with an embedded program and which can rewrite the embedded program from the outside without stopping the processing of the running program. It is characterized in that update processing can be executed.

【0017】本発明の第1の実施の形態について、図面
を参照して詳細に説明する。
The first embodiment of the present invention will be described in detail with reference to the drawings.

【0018】図1は、本発明の第1実施の形態の構成を
示す図である。
FIG. 1 is a diagram showing the configuration of the first embodiment of the present invention.

【0019】図1を参照すると、本発明のプリンタ装置
1は、外部装置(図示せず)よりデータを受信するデー
タ受信部2と、システム制御部5と,プログラム格納領
域6と,更新データ状態格納領域7と、更新データ格納
領域8と、プログラム実行領域9と、を含んでいる。
Referring to FIG. 1, a printer 1 according to the present invention includes a data receiving unit 2 for receiving data from an external device (not shown), a system control unit 5, a program storage area 6, and an updated data status. It includes a storage area 7, an update data storage area 8, and a program execution area 9.

【0020】データ受信部2は、図示されていない外部
装置よりデータ(処理コマンドも含む)の受信を行う。
データの受信は例えばジョブと呼ばれる単位で行う。ジ
ョブはデータの開始と終了が明確化されているデータの
集まりである。プログラム更新データをジョブとして処
理することにより、他の動作を妨げることなくプログラ
ム更新データの受信を行える。プログラム更新データと
してのジョブを受信すると、そのジョブ内のデータを更
新データ格納領域8に書き込みを行い、更新データ状態
格納領域7に格納されている更新データ状態を”更新デ
ータ有り”とする。なお、更新データは、プログラム格
納領域6に格納されているプログラムに対する更新情報
であり、更新情報とその更新情報がプロラムのどの位置
に適用されるかの適用位置を含んだ情報の集合体であ
り、プリンタ装置1外にて作成され、外部装置より送信
される。
The data receiving section 2 receives data (including processing commands) from an external device (not shown).
Data reception is performed, for example, in units called jobs. A job is a collection of data whose start and end are clarified. By processing the program update data as a job, the program update data can be received without hindering other operations. When a job as program update data is received, the data in the job is written to the update data storage area 8, and the update data state stored in the update data state storage area 7 is set to "update data exists". The update data is update information for the program stored in the program storage area 6, and is a set of information including the update information and an application position of the program to which the update information is applied. Is created outside the printer device 1 and transmitted from the external device.

【0021】システム制御部5は、CPU(中央処理装
置)を備え、プリンタ装置1起動時に制御を渡されてプ
リンタ装置1を制御する。システム制御部5は、プログ
ラム格納領域6からプログラム実行領域9へのプログラ
ムのコピー処理を行いプログラム実行領域9上のコピー
されたプログラムに実行を移す通常起動手段と、更新デ
ータ状態格納領域7に格納されている更新データ状態
が”更新データ有り”の場合に更新データをプログラム
実行領域9にコピーされたプログラムに適用してプログ
ラム更新を行い更新したプログラムの起動確認を行い正
常であれば更新データ状態格納領域7に格納される更新
データ状態を”プログラム更新中”としプログラム格納
領域6に格納されるプログラムに更新データを適用して
プログラム更新を行い更新データ状態格納領域7に格納
される更新データ状態を”更新データ無し”とするプロ
グラム更新手段と、プリンタ装置起動時に更新データ状
態格納領域7に格納される更新データ状態が”プログラ
ム更新中”の場合にプログラム格納領域6に格納される
プログラムに更新データを適用してプログラム更新を行
い更新データ状態格納領域7に格納される更新データ状
態を”更新データ無し”とするプログラム更新復旧手段
と、通常ジョブデータ処理を行う通常処理手段などを含
む。
The system control unit 5 includes a CPU (Central Processing Unit), and is controlled when the printer 1 is started, and controls the printer 1. The system control unit 5 performs normal copying of the program from the program storage area 6 to the program execution area 9 and shifts the execution to the copied program in the program execution area 9, and stores the program in the update data state storage area 7. If the updated data status is "updated data", the update data is applied to the program copied to the program execution area 9, the program is updated, and the updated program is started. The update data state stored in the storage area 7 is set to “program updating” and the program is updated by applying the update data to the program stored in the program storage area 6 and the update data state stored in the update data state storage area 7 Update means to set "no update data" and update when printer is started When the update data status stored in the data status storage area 7 is “program updating”, the update data is applied to the program stored in the program storage area 6 to update the program and stored in the update data status storage area 7. It includes a program update restoring unit for setting the update data state to be “no update data”, a normal processing unit for performing normal job data processing, and the like.

【0022】プログラム格納領域6は,ROM(リード
オンリメモリ)等の不揮発性メモリに確保され、印刷処
理の制御を行うプログラムを格納している領域である。
The program storage area 6 is an area secured in a non-volatile memory such as a ROM (Read Only Memory) and storing a program for controlling a printing process.

【0023】更新データ状態格納領域7は、ROM等の
不揮発性メモリに確保され、更新データの状態を示す。
更新データ状態は、更新データ状態格納領域7に有効な
更新データが格納されているときに”更新データ有
り”、更新データ状態格納領域7に有効な更新データが
ないときに”更新データ無し”、更新データでプログラ
ム格納領域6にあるプログラムを更新中のときに”プロ
グラム更新中”、となる。
The update data status storage area 7 is secured in a nonvolatile memory such as a ROM and indicates the status of the update data.
The update data state is “update data exists” when valid update data is stored in the update data state storage area 7, “no update data” exists when there is no valid update data in the update data state storage area 7, When the program in the program storage area 6 is being updated with the update data, the status is “program updating”.

【0024】更新データ格納領域8は、ROM等の不揮
発性メモリに確保され、データ受信部2が受信したプロ
グラム更新データを格納する。
The update data storage area 8 is secured in a non-volatile memory such as a ROM, and stores program update data received by the data receiving unit 2.

【0025】プログラム実行領域9は、RAM(ランダ
ムアクセスメモリ)等のメモリに確保され、プログラム
格納領域6に格納するプログラムがコピーされて格納さ
れ格納されたプログラムが実行される領域である。
The program execution area 9 is an area secured in a memory such as a RAM (random access memory), in which a program stored in the program storage area 6 is copied and stored, and the stored program is executed.

【0026】本発明の第1実施の形態の動作について、
図面を参照して説明する。
Regarding the operation of the first embodiment of the present invention,
This will be described with reference to the drawings.

【0027】図2は、ジョブデータ受信時の動作の流れ
を示す図である。
FIG. 2 is a diagram showing a flow of an operation when receiving job data.

【0028】図3は、電源起動時の動作の流れを示す図
である。
FIG. 3 is a diagram showing a flow of the operation at the time of starting the power supply.

【0029】先ず、図2を参照して、プリンタ装置1の
ジョブデータ受信時の動作について説明する。
First, the operation of the printer device 1 when receiving job data will be described with reference to FIG.

【0030】データ受信部2は、ジョブデータを受信す
るとそれがプログラム更新ジョブか否かの判断を行う
(S11〜S12)。
Upon receiving the job data, the data receiving unit 2 determines whether or not the job data is a program update job (S11 to S12).

【0031】受信したジョブがプログラム更新ジョブで
ない場合には、システム制御部5に制御を渡して通常ジ
ョブデータ処理を行い(S13)、その処理が終了する
と再びジョブデータの受信待ちとなる(S11)。
If the received job is not a program update job, the control is passed to the system control unit 5 to perform normal job data processing (S13), and when the processing is completed, the system waits again for job data reception (S11). .

【0032】受信したジョブがプログラム更新ジョブで
ある場合には、更新データ格納領域8の消去処理を行
い、ジョブ中に含まれるプログラムの更新データを更新
データ格納領域8に格納して更新データ状態を”更新デ
ータ有り”に書き替え(S14)、格納処理が終了する
と再びジョブデータの受信待ちとなる(S11)。
If the received job is a program update job, the update data storage area 8 is deleted, update data of a program included in the job is stored in the update data storage area 8, and the update data state is updated. It is rewritten to "updated data exists" (S14), and upon completion of the storing process, the job data is again waited for reception (S11).

【0033】このようにして、更新データが更新データ
格納領域に格納される。
As described above, the update data is stored in the update data storage area.

【0034】そして、次回電源投入時に、更新データ状
態のチェックが行われてプログラム更新処理が行われ
る。
When the power is turned on next time, the state of the update data is checked, and the program update process is performed.

【0035】次に、図3を参照して、プリンタ装置1の
電源起動時の動作について説明する。
Next, with reference to FIG. 3, the operation of the printer device 1 when the power is turned on will be described.

【0036】システム制御部5は、更新データ状態が”
プログラム更新中”か否かを判断し(S21)、更新デ
ータ状態が”プログラム更新中”でなければ、続いて”
更新データの有り”かのチェックを行う(S22)。
The system control unit 5 determines that the update data status is "
It is determined whether or not the program is being updated (S21).
It is checked whether "update data exists" (S22).

【0037】更新データ状態が”更新データ有り”な
ら、プログラム格納領域6からプログラム実行領域9へ
とプログラムのコピー処理を行う(S23)。
If the updated data state is "updated data exists", the program is copied from the program storage area 6 to the program execution area 9 (S23).

【0038】続いて、更新データ格納領域8に格納され
ている更新データによりプログラム実行領域9にあるプ
ログラムの更新を行う(S24)。
Subsequently, the program in the program execution area 9 is updated with the update data stored in the update data storage area 8 (S24).

【0039】プログラム更新が終了したら、プログラム
実行領域9にあるプログラムの起動処理を実行させ問題
が無いかをチェックする(S25)。
When the program update is completed, the program in the program execution area 9 is started to check whether there is any problem (S25).

【0040】プリンタ装置1の起動に問題がなければ、
更新データ状態を”プログラム更新中”とし、プログラ
ム格納領域6にあるプログラムの更新される部分の消去
処理を行い、その位置に更新データの書き込みを行う
(S26)。
If there is no problem in starting the printer device 1,
The state of the update data is set to “program updating”, the part of the program storage area 6 to be updated is erased, and the update data is written to that position (S26).

【0041】書き込みが終了したら、更新データ状態
を”更新データ無し”とし、プログラム実行領域9にあ
るプログラムに実行を移し通常動作へと進む(S27〜
S28)。
When the writing is completed, the update data state is set to "no update data", the execution is shifted to the program in the program execution area 9, and the normal operation is performed (S27 to S27).
S28).

【0042】プログラム実行領域9のプログラムでの起
動処理動作に問題が発生した場合は(S25)、更新デ
ータ状態を”更新データ無し”とし(S32)、更新処
理は行わずにプログラム格納領域6にあるプログラムに
て通常起動処理を行う。すなわち、プログラム格納領域
6からプログラム実行領域9へのプログラムのコピー処
理を行いプログラム実行領域9上のコピーされたプログ
ラムに実行を移す(S33)。
If a problem occurs in the startup processing operation by the program in the program execution area 9 (S25), the update data state is set to "no update data" (S32), and the update processing is not performed and the program is stored in the program storage area 6. Normal startup processing is performed by a certain program. That is, the program is copied from the program storage area 6 to the program execution area 9 and the execution is shifted to the copied program on the program execution area 9 (S33).

【0043】更新データの有無チェックで”更新データ
無し”と判断した場合は(S22)、プログラム格納領
域6にあるプログラムにて通常起動処理を行う(S3
3)。
When it is determined that there is no update data in the update data presence check (S22), normal startup processing is performed by the program in the program storage area 6 (S3).
3).

【0044】プログラム更新中チェック判断により”プ
ログラム更新中”であったと判断した場合は(S2
1)、S26におけるプログラム格納領域6にあるプロ
グラムの更新処理中にて、例えばプリンタ装置1の電源
がOFFにされた等の理由により更新が終了していない
ことが考えられるため、改めてプログラム格納領域6に
あるプログラムの更新処理を行ない(S31)、更新処
理が完了したら更新データ状態を”更新データ無し”と
して、更新処理を行ったプログラム格納領域6にあるプ
ログラムにより通常起動処理を行う(S33)。
If it is determined that the program is being updated during the program update check (S2)
1) During the process of updating the program in the program storage area 6 in S26, the update may not be completed due to, for example, the power of the printer device 1 being turned off. 6 (S31), and when the update processing is completed, the update data state is set to "no update data", and the normal startup processing is performed by the program in the program storage area 6 that has been updated (S33). .

【0045】このようにして、本発明のプログラム更新
方法では、更新データの受信時は更新データ格納領域へ
の格納のみを行い、実際のプログラム更新処理は、プリ
ンタ装置の動作に影響のない電源起動時のタイミングに
て行うため、動作中のプログラムを停止すること無く更
新処理を実行できる。
As described above, in the program update method of the present invention, when update data is received, only the update data is stored in the update data storage area, and the actual program update process is performed by power-on without affecting the operation of the printer. Since the update is performed at the time, the update process can be executed without stopping the running program.

【0046】次に、本発明の第2の実施の形態につい
て、図面を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the drawings.

【0047】本発明の第2の実施の形態は、プログラム
更新のタイミングを、電源投入時ではなく、プリンタ装
置のアイドル時に行う点で第1の実施の形態と異なる。
The second embodiment of the present invention differs from the first embodiment in that the program is updated not when the power is turned on but when the printer is idle.

【0048】図4は、本発明の第2実施の形態の構成を
示す図である。
FIG. 4 is a diagram showing the configuration of the second embodiment of the present invention.

【0049】図4を参照すると、本発明のプリンタ装置
21は、外部装置(図示せず)よりデータを受信するデ
ータ受信部22と、システム制御部25と,プログラム
格納領域6と,更新データ状態格納領域7と、更新デー
タ格納領域8と、プログラム実行領域9と、を含んでい
る。
Referring to FIG. 4, a printer 21 according to the present invention includes a data receiving unit 22 for receiving data from an external device (not shown), a system control unit 25, a program storage area 6, and an updated data state. It includes a storage area 7, an update data storage area 8, and a program execution area 9.

【0050】ここでは、図1に示す第1の実施の形態と
異なるデータ受信部22とシステム制御部25について
説明する。
Here, a description will be given of a data receiving unit 22 and a system control unit 25 which are different from those of the first embodiment shown in FIG.

【0051】データ受信部22は、第1の実施の形態に
おけるデータ受信部2と同等の機能に加えて、更新デー
タ状態が”プログラム更新中”の場合にデータが送信さ
れてきたら送信元にビジー信号を送信する手段を有す
る。
The data receiving section 22 has a function similar to that of the data receiving section 2 in the first embodiment, and is also busy with the transmission source when data is transmitted when the update data state is "program updating". Means for transmitting a signal.

【0052】システム制御部25は、CPUを備え、プ
リンタ装置21起動時に制御を渡されてプリンタ装置2
1を制御する。システム制御部25は、プログラム格納
領域6からプログラム実行領域9へのプログラムのコピ
ー処理を行いプログラム実行領域9上のコピーされたプ
ログラムに実行を移す通常起動手段と、更新データ状態
格納領域7に格納されている更新データ状態が”更新デ
ータ有り”の場合にプログラム格納領域6に格納される
プログラムのうち更新されない部分と更新データとをチ
ェックサムで確認して正常であれば更新データ状態格納
領域7に格納される更新データ状態を”プログラム更新
中”とし更新データをプログラム格納領域6のプログラ
ムに適用してプログラム更新を行い更新データ状態格納
領域7に格納される更新データ状態を”更新データ無
し”とするプログラム更新手段と、プリンタ装置起動時
に更新データ状態格納領域7に格納される更新データ状
態が”プログラム更新中”の場合にプログラム格納領域
6に格納されるプログラムに更新データを適用してプロ
グラム更新を行い更新データ状態格納領域7に格納され
る更新データ状態を”更新データ無し”とするプログラ
ム更新復旧手段と、通常ジョブデータ処理を行う通常処
理手段と、一定時間データ受信がないアイドルタイムを
検出した場合にプログラム書替可能と判断してプログラ
ム更新手段に制御を渡すアイドルタイム検出手段などを
含む。
The system control unit 25 has a CPU, and receives control when the printer device 21 is activated.
Control 1 The system control unit 25 performs normal copying means for copying the program from the program storage area 6 to the program execution area 9 and shifting the execution to the copied program on the program execution area 9, and stores the program in the update data state storage area 7. When the updated data status is “updated data”, the portion of the program stored in the program storage area 6 that is not updated and the update data are checked with a checksum. The update data state stored in the update data state is set to "program updating", the update data is applied to the program in the program storage area 6, the program is updated, and the update data state stored in the update data state storage area 7 is set to "no update data". Program update means to be stored in the update data status storage area 7 when the printer is started up When the update data state to be updated is “program updating”, the update data is applied to the program stored in the program storage area 6 to update the program, and the update data state stored in the update data state storage area 7 is changed to “update data”. A program update restoring unit that sets "none", a normal processing unit that performs normal job data processing, and an idle that passes control to the program updating unit by determining that the program can be rewritten when detecting an idle time during which no data is received for a certain period of time. Including time detection means.

【0053】なお、プログラム更新手段で行うチェック
サムは、プログラム格納領域6に格納されるプログラム
のうち更新されない部分と更新データ格納領域8に格納
される更新データとを1バイトずつ取り出してその和を
求め、送信元から予め送信されているチェックサム値と
一致するかをチェックしている。
The checksum performed by the program updating means is such that the unupdated part of the program stored in the program storage area 6 and the update data stored in the update data storage area 8 are taken out one byte at a time and the sum thereof is calculated. Then, it is checked whether it matches the checksum value transmitted in advance from the transmission source.

【0054】このように、アイドルタイム中にプログラ
ムの書き替えを行うため更新したプログラムでの動作確
認は行わずに、チェックサムにより更新するプログラム
の正当性を確認する。
As described above, since the program is rewritten during the idle time, the operation of the updated program is not confirmed, but the validity of the updated program is confirmed by the checksum.

【0055】本発明の第2の実施の形態の動作について
説明する。
The operation of the second embodiment of the present invention will be described.

【0056】先ず、プリンタ装置21のジョブデータ受
信時の動作について説明する。
First, the operation of the printer device 21 when receiving job data will be described.

【0057】データ受信部22は、ジョブデータを受信
するとそれがプログラム更新ジョブか否かの判断を行
う。
Upon receiving the job data, the data receiving section 22 determines whether or not the job data is a program update job.

【0058】受信したジョブがプログラム更新ジョブで
ない場合には、システム制御部25に制御を渡して通常
ジョブデータ処理を行い、その処理が終了すると再びジ
ョブデータの受信待ちとなる。
If the received job is not a program update job, the control is passed to the system control unit 25 to perform normal job data processing, and when the processing is completed, the job data reception waiting is waited again.

【0059】受信したジョブがプログラム更新ジョブで
ある場合には、更新データ格納領域8の消去処理を行
い、ジョブ中に含まれるプログラムの更新データを更新
データ格納領域8に格納して更新データ状態を”更新デ
ータ有り”に書き替え、格納処理が終了すると再びジョ
ブデータの受信待ちとなる。
If the received job is a program update job, the update data storage area 8 is erased, the update data of the program included in the job is stored in the update data storage area 8, and the update data state is updated. When the data is rewritten to "updated data" and the storage processing is completed, the job data reception waiting is again performed.

【0060】更新データ状態が”プログラム更新中”の
場合にデータが送信されてきたら、送信元にビジー信号
を送信してデータを受け取らない。
When data is transmitted when the update data state is "program updating", a busy signal is transmitted to the transmission source and the data is not received.

【0061】このようにして、更新データが更新データ
格納領域に格納される。
Thus, the update data is stored in the update data storage area.

【0062】そして、アイドルタイム中に、更新データ
状態のチェックが行われてプログラム更新処理が行われ
る。
Then, during the idle time, the state of the update data is checked, and the program update process is performed.

【0063】次に、アイドルタイム中に行うプログラム
更新の動作について説明する。
Next, the operation of updating a program performed during the idle time will be described.

【0064】システム制御部25は、一定時間データ受
信がなかった場合に、プログラム書き替え可能と判断す
る。
When no data has been received for a certain period of time, the system control unit 25 determines that the program can be rewritten.

【0065】プログラムの置き換え部分を除いたものと
更新データによりチェックサムを行う。
A checksum is made by using the program excluding the replacement part and the update data.

【0066】チェックサムが正しければプログラムの書
き替えを実行する。プログラムの書き替えは、プログラ
ム格納領域6のプログラムに対して更新データを適用す
ることによって行う。
If the checksum is correct, the program is rewritten. The rewriting of the program is performed by applying update data to the program in the program storage area 6.

【0067】このとき、更新データ状態を”プログラム
更新中”とし、プログラム格納領域6のプログラムの更
新部分の消去処理を行い、その位置に更新データの書き
込みを行う。
At this time, the state of the update data is set to “program updating”, the erasing process of the updated portion of the program in the program storage area 6 is performed, and the update data is written to that position.

【0068】書き込みが終了したら更新データ状態を”
更新データ無し”とし、書き込み完了となる。
When the writing is completed, the update data state is changed to "
There is no update data ", and the writing is completed.

【0069】これにより、次回電源起動時にはプログラ
ム書替処理を行わずに更新したプログラムが実行され
る。プログラム書替処理はプリンタ装置21のアイドル
タイム中に行われるため、プログラム書替処理の時間を
意識する必要もない。
Thus, at the next power-on, the updated program is executed without performing the program rewriting process. Since the program rewriting process is performed during the idle time of the printer device 21, there is no need to be aware of the time of the program rewriting process.

【0070】次に、本発明の第3の実施の形態につい
て、図面を参照して説明する。
Next, a third embodiment of the present invention will be described with reference to the drawings.

【0071】本発明の第3の実施の形態は、第2の実施
の形態では更新データ状態が”プログラム更新中”の場
合にデータ受信部が送信データを受け付けないでプログ
ラムの更新処理を続行するのに対して、データ受信部が
送信データを受け付けプログラムの更新処理を一時中断
して受け付けたデータの処理を行う点で異なる。
According to the third embodiment of the present invention, in the second embodiment, when the update data state is "program updating", the data receiving unit does not accept the transmission data and continues the program update processing. On the other hand, the difference is that the data reception unit receives transmission data, temporarily suspends the update process of the program, and processes the received data.

【0072】図5は、本発明の第3実施の形態の構成を
示す図である。
FIG. 5 is a diagram showing the configuration of the third embodiment of the present invention.

【0073】図5を参照すると、本発明のプリンタ装置
31は、外部装置(図示せず)よりデータを受信するデ
ータ受信部32と、システム制御部35と,プログラム
格納領域6と,更新データ状態格納領域7と、更新デー
タ格納領域8と、プログラム実行領域9と、を含んでい
る。
Referring to FIG. 5, the printer device 31 of the present invention includes a data receiving unit 32 for receiving data from an external device (not shown), a system control unit 35, a program storage area 6, and an updated data status. It includes a storage area 7, an update data storage area 8, and a program execution area 9.

【0074】ここでは、図4に示す第2の実施の形態と
異なるデータ受信部32とシステム制御部35について
説明する。
Here, a data receiving unit 32 and a system control unit 35 different from those of the second embodiment shown in FIG. 4 will be described.

【0075】データ受信部32は、第1の実施の形態に
おけるデータ受信部2と同等の機能に加えて、更新デー
タ状態が”プログラム更新中”の場合にデータが送信さ
れてきたらシステム制御部35にプログラム更新処理の
一時中断を要求する手段を有する。但し、送信されてき
たデータがプログラム更新ジョブのデータであれば、送
信元にビジー信号を送信する。
The data receiving section 32 has a function equivalent to that of the data receiving section 2 in the first embodiment, and furthermore, a system control section 35 when data is transmitted when the update data state is "program updating". Means for requesting a temporary suspension of the program update process. However, if the transmitted data is data of a program update job, a busy signal is transmitted to the transmission source.

【0076】システム制御部35は、CPUを備え、プ
リンタ装置31起動時に制御を渡されてプリンタ装置3
1を制御する。システム制御部35は、プログラム格納
領域6からプログラム実行領域9へのプログラムのコピ
ー処理を行いプログラム実行領域9上のコピーされたプ
ログラムに実行を移す通常起動手段と、更新データ状態
格納領域7に格納されている更新データ状態が”更新デ
ータ有り”の場合にプログラム格納領域6に格納される
プログラムのうち更新されない部分と更新データとをチ
ェックサムで確認して正常であれば更新データ状態格納
領域7に格納される更新データ状態を”プログラム更新
中”とし更新データをプログラム格納領域6のプログラ
ムに適用してプログラム更新を行い更新データ状態格納
領域7に格納される更新データ状態を”更新データ無
し”とするプログラム更新手段と、プリンタ装置起動時
に更新データ状態格納領域7に格納される更新データ状
態が”プログラム更新中”の場合にプログラム格納領域
6に格納されるプログラムに更新データを適用してプロ
グラム更新を行い更新データ状態格納領域7に格納され
る更新データ状態を”更新データ無し”とするプログラ
ム更新復旧手段と、通常ジョブデータ処理を行う通常処
理手段と、一定時間データ受信がないアイドルタイムを
検出した場合にプログラム書替可能と判断してプログラ
ム更新手段に制御を渡しまた更新データ状態が”プログ
ラム更新一時中断中”であればプログラム更新再開手段
に制御を渡すアイドル検出手段と、データ受信部32か
らプログラム更新処理の一時中断を要求されたらプログ
ラム更新処理を一時中断してその時の処理状態を保存し
更新データ状態を”プログラム更新一時中断中”とし通
常処理手段に制御を渡すプログラム更新一時中断手段
と、保存されている処理状態からプログラム更新処理を
再開して更新データ状態を”プログラム更新中”とする
プログラム更新再開手段などを含む。
The system control unit 35 has a CPU, and receives control when the printer device 31 is started up.
Control 1 The system control unit 35 performs a process of copying a program from the program storage area 6 to the program execution area 9 and shifts execution to the copied program in the program execution area 9, and stores the program in the update data state storage area 7. When the updated data status is “updated data”, the portion of the program stored in the program storage area 6 that is not updated and the update data are checked with a checksum. The update data state stored in the update data state is set to "program updating", the update data is applied to the program in the program storage area 6, the program is updated, and the update data state stored in the update data state storage area 7 is set to "no update data". Program update means to be stored in the update data status storage area 7 when the printer is started up When the update data state to be updated is “program updating”, the update data is applied to the program stored in the program storage area 6 to update the program, and the update data state stored in the update data state storage area 7 is changed to “update data”. A program update / recovery unit that sets "none"; a normal processing unit that performs normal job data processing; If the update data state is "temporarily suspended for program update", the idle detection means for transferring control to the program update resuming means, and the program update processing is temporarily suspended when the data reception unit 32 requests the temporary suspension of the program update processing. The processing status at that time is saved, and the update data status is set to "Program update temporarily suspended". Including normal processing and program update temporary interruption means to pass control to the means, a program updating resuming means to be "programmed Updating" to update data state resumes program update process from the processing state stored.

【0077】本発明の第3の実施の形態の動作について
説明する。
The operation of the third embodiment of the present invention will be described.

【0078】先ず、プリンタ装置31のジョブデータ受
信時の動作について説明する。
First, the operation of the printer device 31 when receiving job data will be described.

【0079】データ受信部32は、ジョブデータを受信
するとそれがプログラム更新ジョブか否かの判断を行
う。
When receiving the job data, the data receiving section 32 determines whether or not the job data is a program update job.

【0080】受信したジョブがプログラム更新ジョブで
ない場合には、システム制御部35に制御を渡して通常
ジョブデータ処理を行い、その処理が終了すると再びジ
ョブデータの受信待ちとなる。
If the received job is not a program update job, control is passed to the system control unit 35 to perform normal job data processing, and when the processing is completed, the system waits for reception of job data again.

【0081】受信したジョブがプログラム更新ジョブで
ある場合には、更新データ格納領域8の消去処理を行
い、ジョブ中に含まれるプログラムの更新データを更新
データ格納領域8に格納して更新データ状態を”更新デ
ータ有り”に書き替え、格納処理が終了すると再びジョ
ブデータの受信待ちとなる。
If the received job is a program update job, the update data storage area 8 is deleted, the update data of the program included in the job is stored in the update data storage area 8, and the update data state is changed. When the data is rewritten to "updated data" and the storage processing is completed, the job data reception waiting is again performed.

【0082】更新データ状態が”プログラム更新中”の
場合にデータ(プログラム更新ジョブ以外のデータ)が
送信されてきたら、システム制御部35にプログラム更
新処理の一時中断を要求し、システム制御部35はプロ
グラム更新処理を一時中断して通常ジョブデータ処理を
行い、その処理が終了すると再びジョブデータの受信待
ちとなる。
When data (data other than the program update job) is transmitted when the update data state is “program updating”, a request is made to the system control unit 35 to temporarily suspend the program update process, and the system control unit 35 The normal job data processing is performed by temporarily suspending the program update processing, and when the processing is completed, the apparatus waits for reception of job data again.

【0083】このようにして、更新データが更新データ
格納領域に格納される。
In this way, the update data is stored in the update data storage area.

【0084】そして、アイドルタイム中に、更新データ
状態のチェックが行われてプログラム更新処理が行われ
る。
During the idle time, the state of the update data is checked, and the program update process is performed.

【0085】次に、アイドルタイム中に行うプログラム
更新の動作について説明する。
Next, the operation of updating the program performed during the idle time will be described.

【0086】システム制御部35は、一定時間データ受
信がなかった場合に、プログラム書き替え可能と判断す
る。
The system control unit 35 determines that the program can be rewritten when there is no data reception for a predetermined time.

【0087】プログラムの置き換え部分を除いたものと
更新データによりチェックサムを行う。
A checksum is performed using the program excluding the replacement part and the update data.

【0088】チェックサムが正しければプログラムの書
き替えを実行する。プログラムの書き替えは、プログラ
ム格納領域6のプログラムに対して更新データを適用す
ることによって行う。
If the checksum is correct, the program is rewritten. The rewriting of the program is performed by applying update data to the program in the program storage area 6.

【0089】このとき、更新データ状態を”プログラム
更新中”とし、プログラム格納領域6のプログラムの更
新部分の消去処理を行い、その位置に更新データの書き
込みを行う。
At this time, the update data state is set to “program updating”, the erasing process of the updated portion of the program in the program storage area 6 is performed, and the update data is written to that position.

【0090】書き込みが終了したら更新データ状態を”
更新データ無し”とし、書き込み完了となる。
When the writing is completed, the state of the update data is changed to "
There is no update data ", and the writing is completed.

【0091】また、データ受信部32からプログラム更
新処理の一時中断を要求されたら、プログラム更新処理
を一時中断してその時の処理状態を保存し更新データ状
態を”プログラム更新一時中断中”とし、通常処理手段
に制御を渡して通常ジョブデータ処理を行う。
When the data receiving unit 32 requests a temporary suspension of the program update processing, the program update processing is suspended, the processing state at that time is saved, and the update data state is set to "program update temporary suspension". Control is passed to the processing means to perform normal job data processing.

【0092】その処理が終了した後に一定時間データ受
信がなかった場合には、保存されている処理状態からプ
ログラム更新処理を再開して更新データ状態を”プログ
ラム更新中”とする。
If no data has been received for a certain period of time after the end of the processing, the program update processing is restarted from the stored processing state and the update data state is set to "program updating".

【0093】これにより、プログラム書替処理(プログ
ラム更新処理)を一時中断してデータ受信部で受信した
データの処理を優先的に行うことができる。
Thus, the program rewriting process (program updating process) can be temporarily interrupted, and the processing of the data received by the data receiving unit can be performed with priority.

【0094】上述した実施の形態の他に、アイドルタイ
ム中にプログラム更新を行っているときに外部装置から
データ(プログラム更新ジョブ以外のデータ)が送信さ
れてきたら、データ受信部で一旦そのデータを受信し、
プログラム更新処理が終了した後に、受信したデータの
処理を行うような形態にしてもよい。
In addition to the above-described embodiment, when data (data other than the program update job) is transmitted from an external device while the program is being updated during the idle time, the data is temporarily transmitted to the data receiving unit. Receive,
After the program update processing is completed, the received data may be processed.

【0095】[0095]

【発明の効果】第1の効果は、プログラムの更新がプリ
ンタ装置の他の利用者の妨げにならないことである。
The first effect is that the update of the program does not hinder other users of the printer device.

【0096】その理由は、プログラム更新用データをジ
ョブとして管理することにより、プリンタ装置の動作を
妨げること無く受信する手段を設けたからである。ま
た、プログラム更新用データの受信と受信した更新用デ
ータのプログラムへの適用を分離して行う手段を設けた
からである。
The reason is that a means for receiving the program update data without hindering the operation of the printer is provided by managing the program update data as a job. Also, a means is provided for separately receiving the program update data and applying the received update data to the program.

【0097】第2の効果は、プログラム更新用データの
受信が、プログラム全体を受信する場合と比較して、短
時間で行うことができ、プリンタ装置の受信動作への影
響も少ないことである。
The second effect is that the reception of the program update data can be performed in a shorter time as compared with the case where the entire program is received, and the influence on the receiving operation of the printer device is small.

【0098】その理由は、プログラム更新用データをす
でに格納されているプログラムに対する更新部分のみと
しているからである。
The reason is that the program update data is only an update part for the already stored program.

【0099】第3の効果は、更新したプログラムの信頼
性が高いことである。
The third effect is that the reliability of the updated program is high.

【0100】その理由は、更新したプログラムをプリン
タ起動までの動作が正常に行われることを確認する手段
を設けたからである。
The reason is that a means is provided for confirming that the operation of the updated program up to the start of the printer is performed normally.

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

【図1】本発明の第1実施の形態の構成を示す図FIG. 1 is a diagram showing a configuration of a first embodiment of the present invention.

【図2】ジョブデータ受信時の動作の流れを示す図FIG. 2 is a diagram showing a flow of an operation when receiving job data.

【図3】電源起動時の動作の流れを示す図FIG. 3 is a diagram showing a flow of an operation at the time of power activation.

【図4】本発明の第2実施の形態の構成を示す図FIG. 4 is a diagram showing a configuration of a second embodiment of the present invention.

【図5】本発明の第3実施の形態の構成を示す図FIG. 5 is a diagram showing a configuration of a third embodiment of the present invention.

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

1 プリンタ装置 2 データ受信部 5 システム制御部 6 プログラム格納領域 7 更新データ状態格納領域 8 更新データ格納領域 9 プログラム実行領域 21 プリンタ装置 22 データ受信部 25 システム制御部 31 プリンタ装置 32 データ受信部 35 システム制御部 REFERENCE SIGNS LIST 1 printer device 2 data reception unit 5 system control unit 6 program storage area 7 update data status storage area 8 update data storage area 9 program execution area 21 printer device 22 data reception unit 25 system control unit 31 printer device 32 data reception unit 35 system Control unit

フロントページの続き Fターム(参考) 2C061 AP01 HH08 HJ10 HK04 HN02 HN15 HN24 2C087 AB05 BA14 BC04 BC07 BD01 BD41 BD46 5B014 EB01 FA06 FA07 FA13 FA14 5B021 AA01 BB00 CC06 DD00 5B076 AC03 BB04 BB06 EA11 EA17 EA18 EB09 Continued on front page F term (reference) 2C061 AP01 HH08 HJ10 HK04 HN02 HN15 HN24 2C087 AB05 BA14 BC04 BC07 BD01 BD41 BD46 5B014 EB01 FA06 FA07 FA13 FA14 5B021 AA01 BB00 CC06 DD00 5B076 AC03 BB04 BB06 EA11 EB17

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 プログラムで動作し外部装置から受信し
た更新データで前記プログラムを書き替えるプリンタ装
置であって、更新データを受信して更新データ格納領域
に格納し更新データ状態格納領域の更新データ状態を更
新データ有りとするデータ受信部と、プログラム格納領
域に格納されるプログラムをプログラム実行領域にコピ
ーし更新データ状態格納領域に格納される更新データ状
態が更新データ無しの場合にはプログラム実行領域のプ
ログラムに実行を遷移し更新データ状態が更新データ有
りの場合にはプログラム格納領域のプログラムに前記更
新データを適用してプログラム更新を行い更新データ状
態格納領域に格納される更新データ状態を更新データ無
しとしプログラム実行領域のプログラムに実行を遷移す
るシステム制御部と,印刷処理の制御を行うプログラム
を格納するプログラム格納領域と,前記更新データの処
理状態を格納する更新データ状態格納領域と、前記デー
タ受信部が受信した更新データを格納する更新データ格
納領域と、前記プログラム格納領域に格納するプログラ
ムがコピーされて格納され格納されたプログラムが実行
されるプログラム実行領域と、を備えるプリンタ装置。
1. A printer device that operates with a program and rewrites the program with update data received from an external device. The printer device receives update data, stores the update data in an update data storage area, and stores an update data state in the update data state storage area. A data receiving unit that has update data, and a program stored in the program storage area is copied to the program execution area, and if the update data state stored in the update data state storage area is no update data, the program execution area When the execution transitions to the program and the update data state is update data, the program is updated by applying the update data to the program in the program storage area, and the update data state stored in the update data state storage area is updated. A system control unit that transitions execution to the program in the program execution area with no A program storage area for storing a program for controlling print processing, an update data state storage area for storing the processing state of the update data, an update data storage area for storing the update data received by the data receiving unit, And a program execution area in which the program stored in the program storage area is copied and stored, and the stored program is executed.
【請求項2】 前記システム制御部は、プリンタ装置起
動時に前記更新データ状態格納領域に格納される更新デ
ータ状態が更新データ有りの場合に前記更新データを前
記プログラム実行領域にコピーされたプログラムに適用
してプログラム更新を行い更新したプログラムの起動確
認を行い正常であれば、前記プログラム格納領域に格納
されるプログラムに前記更新データを適用してプログラ
ム更新を行うことを特徴とする請求項1記載のプリンタ
装置。
2. The system control unit according to claim 1, wherein said update data is stored in said update data status storage area when said printer is started, and said update data is applied to the program copied to said program execution area when said update data is present. 2. The program update method according to claim 1, wherein the program update is performed, a start of the updated program is confirmed, and if the program is normal, the program is updated by applying the update data to the program stored in the program storage area. Printer device.
【請求項3】 前記システム制御部は、アイドルタイム
を検出した時に前記更新データ状態格納領域に格納され
る更新データ状態が更新データ有りの場合に前記プログ
ラム格納領域に格納されるプログラムのうち更新されな
い部分と前記更新データとをチェックサムで確認して正
常であれば、前記プログラム格納領域に格納されるプロ
グラムに前記更新データを適用してプログラム更新を行
うことを特徴とする請求項1記載のプリンタ装置。
3. The program stored in the program storage area is not updated when an update data state stored in the update data state storage area has update data when the idle time is detected. 2. The printer according to claim 1, wherein the program is updated by applying the update data to a program stored in the program storage area if the portion and the update data are confirmed by a checksum and are normal. apparatus.
【請求項4】 前記システム制御部は、前記プログラム
格納領域に格納されるプログラムに前記更新データを適
用してプログラム更新を行っているときには前記更新デ
ータ状態格納領域に格納される更新データ状態をプログ
ラム更新中としプリンタ装置起動時に前記更新データ状
態格納領域に格納される更新データ状態がプログラム更
新中の場合に前記プログラム格納領域に格納されるプロ
グラムに前記更新データを適用してプログラム更新を行
い前記更新データ状態格納領域に格納される更新データ
状態を更新データ無しとし前記プログラム格納領域に格
納されるプログラムを前記プログラム実行領域にコピー
し前記プログラム実行領域のプログラムに実行を遷移す
ることを特徴とする請求項2または3記載のプリンタ装
置。
4. The system control unit according to claim 1, wherein said update data is applied to a program stored in said program storage area to update a program. If the update data status stored in the update data status storage area at the time of starting the printer device is updating the program, the program is updated by applying the update data to the program stored in the program storage area. The update data state stored in the data state storage area is determined to be no update data, and the program stored in the program storage area is copied to the program execution area, and execution is shifted to the program in the program execution area. Item 4. The printer according to item 2 or 3.
【請求項5】 データ受信部とシステム制御部とプログ
ラム格納領域と更新データ状態格納領域と更新データ格
納領域とプログラム実行領域とを備えてプログラムで動
作し外部装置から受信した更新データで前記プログラム
を書き替えるプリンタ装置のプログラム更新方法であっ
て、前記データ受信部は更新データを受信して前記更新
データ格納領域に格納し、前記更新データ状態格納領域
の更新データ状態を更新データ有りとし、前記システム
制御部は前記プログラム格納領域に格納されるプログラ
ムを前記プログラム実行領域にコピーし、前記更新デー
タ状態格納領域に格納される更新データ状態が更新デー
タ無しの場合には前記プログラム実行領域のプログラム
に実行を遷移し、前記更新データ状態が更新データ有り
の場合には前記プログラム格納領域のプログラムに前記
更新データを適用してプログラム更新を行い、前記更新
データ状態格納領域に格納される更新データ状態を更新
データ無しとし、前記プログラム実行領域のプログラム
に実行を遷移する、ことを特徴とするプリンタ装置のプ
ログラム更新方法。
5. A data receiving unit, a system control unit, a program storage area, an update data state storage area, an update data storage area, and a program execution area. The program operates with the program, and executes the program with update data received from an external device. A method for updating a program of a printer device to be rewritten, wherein the data receiving unit receives update data, stores the update data in the update data storage area, and sets the update data state of the update data state storage area to be update data; The control unit copies the program stored in the program storage area to the program execution area, and executes the program in the program execution area when the update data state stored in the update data state storage area is no update data. If the update data status indicates that there is update data, the Updating the program by applying the update data to the program in the program storage area, setting the update data state stored in the update data state storage area to be no update data, and transiting execution to the program in the program execution area. A method for updating a program of a printer device, comprising:
【請求項6】 プリンタ装置起動時に前記更新データ状
態格納領域に格納される更新データ状態が更新データ有
りの場合に前記更新データを前記プログラム実行領域に
コピーされたプログラムに適用してプログラム更新を行
い、更新したプログラムの起動確認を行い、確認が正常
であれば、前記プログラム格納領域に格納されるプログ
ラムに前記更新データを適用してプログラム更新を行
う、ことを特徴とする請求項5記載のプリンタ装置のプ
ログラム更新方法。
6. When a status of the update data stored in the update data status storage area at the time of starting the printer apparatus is update data, the update data is applied to the program copied to the program execution area to update the program. 6. The printer according to claim 5, wherein a start of the updated program is confirmed, and if the confirmation is normal, the program is updated by applying the update data to the program stored in the program storage area. A method for updating a device program.
【請求項7】 アイドルタイムを検出した時に前記更新
データ状態格納領域に格納される更新データ状態が更新
データ有りの場合に前記プログラム格納領域に格納され
るプログラムのうち更新されない部分と前記更新データ
とをチェックサムで確認し、確認が正常であれば、前記
プログラム格納領域に格納されるプログラムに前記更新
データを適用してプログラム更新を行う、ことを特徴と
する請求項5記載のプリンタ装置のプログラム更新方
法。
7. A program that is not updated in a program stored in the program storage area when an update data state stored in the update data state storage area has an update data when an idle time is detected. 6. The program according to claim 5, wherein the program is updated by applying the update data to the program stored in the program storage area if the check is normal. Update method.
【請求項8】 前記プログラム格納領域に格納されるプ
ログラムに前記更新データを適用してプログラム更新を
行っているときには前記更新データ状態格納領域に格納
される更新データ状態をプログラム更新中とし、プリン
タ装置起動時に前記更新データ状態格納領域に格納され
る更新データ状態がプログラム更新中の場合に前記プロ
グラム格納領域に格納されるプログラムに前記更新デー
タを適用してプログラム更新を行い、前記更新データ状
態格納領域に格納される更新データ状態を更新データ無
しとし、前記プログラム格納領域に格納されるプログラ
ムを前記プログラム実行領域にコピーし、前記プログラ
ム実行領域のプログラムに実行を遷移する、ことを特徴
とする請求項6または7記載のプリンタ装置のプログラ
ム更新方法。
8. When the program is updated by applying the update data to a program stored in the program storage area, the update data status stored in the update data status storage area is determined to be "updating the program". When the update data status stored in the update data status storage area at the time of startup is a program update, the program is updated by applying the update data to the program stored in the program storage area, and the update data status storage area is updated. Wherein the state of the update data stored in the program execution area is no update data, the program stored in the program storage area is copied to the program execution area, and execution is shifted to the program in the program execution area. 8. The method of updating a printer device program according to 6 or 7.
JP2001041251A 2001-02-19 2001-02-19 Printer device and program updating method for the same Withdrawn JP2002244877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001041251A JP2002244877A (en) 2001-02-19 2001-02-19 Printer device and program updating method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001041251A JP2002244877A (en) 2001-02-19 2001-02-19 Printer device and program updating method for the same

Publications (1)

Publication Number Publication Date
JP2002244877A true JP2002244877A (en) 2002-08-30

Family

ID=18903718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001041251A Withdrawn JP2002244877A (en) 2001-02-19 2001-02-19 Printer device and program updating method for the same

Country Status (1)

Country Link
JP (1) JP2002244877A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088452A1 (en) * 2004-03-16 2005-09-22 Matsushita Electric Industrial Co., Ltd. Terminal device for updating computer program and update method
JP2007109219A (en) * 2005-09-16 2007-04-26 Ricoh Co Ltd Image formation apparatus, information processing method, information processing program and recording medium
JP2007109218A (en) * 2005-09-16 2007-04-26 Ricoh Co Ltd Image formation apparatus, information processing method, information processing program, and recording medium
WO2008041337A1 (en) * 2006-10-04 2008-04-10 Pioneer Corporation Information processing device, information processing method, information processing program and computer readable recording medium
JP2008282090A (en) * 2007-05-08 2008-11-20 Seiko Epson Corp Electronic equipment and firmware update method therefor
JP2009139997A (en) * 2007-12-03 2009-06-25 Fujitsu Ltd Firmware integration method, firmware integration device, and firmware integration program
JP2009217534A (en) * 2008-03-11 2009-09-24 Yazaki Corp Operation information collection apparatus and program update system
JP2010277367A (en) * 2009-05-28 2010-12-09 Sanyo Electric Co Ltd Integrated management system, integrated management method, integrated management device and integrated management program
JP2011221912A (en) * 2010-04-13 2011-11-04 Nec Corp Computer system and computer system management method
JP2013109571A (en) * 2011-11-21 2013-06-06 Canon Inc Information processor, control method thereof and control program
JP2015132923A (en) * 2014-01-10 2015-07-23 キヤノン株式会社 Image forming device, control method therefor, and program
US9141374B2 (en) 2005-09-16 2015-09-22 Ricoh Company, Ltd. Image forming device, information processing method, information processing program, and recording medium
JP2021005274A (en) * 2019-06-27 2021-01-14 日置電機株式会社 Wireless communication equipment for measuring instrument, measuring instrument, measuring system, and program for measuring system
JP2021158537A (en) * 2020-03-27 2021-10-07 パナソニックIpマネジメント株式会社 Hands-free device, data transfer method and program

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088452A1 (en) * 2004-03-16 2005-09-22 Matsushita Electric Industrial Co., Ltd. Terminal device for updating computer program and update method
JP2007109219A (en) * 2005-09-16 2007-04-26 Ricoh Co Ltd Image formation apparatus, information processing method, information processing program and recording medium
JP2007109218A (en) * 2005-09-16 2007-04-26 Ricoh Co Ltd Image formation apparatus, information processing method, information processing program, and recording medium
US9141374B2 (en) 2005-09-16 2015-09-22 Ricoh Company, Ltd. Image forming device, information processing method, information processing program, and recording medium
JP5016604B2 (en) * 2006-10-04 2012-09-05 パイオニア株式会社 Information processing apparatus and information processing method
WO2008041337A1 (en) * 2006-10-04 2008-04-10 Pioneer Corporation Information processing device, information processing method, information processing program and computer readable recording medium
JPWO2008041337A1 (en) * 2006-10-04 2010-02-04 パイオニア株式会社 Information processing apparatus, information processing method, information processing program, and computer-readable recording medium
JP2008282090A (en) * 2007-05-08 2008-11-20 Seiko Epson Corp Electronic equipment and firmware update method therefor
JP2009139997A (en) * 2007-12-03 2009-06-25 Fujitsu Ltd Firmware integration method, firmware integration device, and firmware integration program
JP2009217534A (en) * 2008-03-11 2009-09-24 Yazaki Corp Operation information collection apparatus and program update system
JP2010277367A (en) * 2009-05-28 2010-12-09 Sanyo Electric Co Ltd Integrated management system, integrated management method, integrated management device and integrated management program
JP2011221912A (en) * 2010-04-13 2011-11-04 Nec Corp Computer system and computer system management method
JP2013109571A (en) * 2011-11-21 2013-06-06 Canon Inc Information processor, control method thereof and control program
JP2015132923A (en) * 2014-01-10 2015-07-23 キヤノン株式会社 Image forming device, control method therefor, and program
JP2021005274A (en) * 2019-06-27 2021-01-14 日置電機株式会社 Wireless communication equipment for measuring instrument, measuring instrument, measuring system, and program for measuring system
JP2021158537A (en) * 2020-03-27 2021-10-07 パナソニックIpマネジメント株式会社 Hands-free device, data transfer method and program

Similar Documents

Publication Publication Date Title
JP4768237B2 (en) Portable electronic device and method for controlling portable electronic device
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
JP2002244877A (en) Printer device and program updating method for the same
JP2006301960A (en) Automobile control unit
JP2000148465A (en) Firmware changing method
JP2002175194A (en) Program downloading system, program downloading device, image forming device, program downloading method, and computer-readable recording medium with program for executing the method recorded thereon
JP2002342102A (en) Method and system for updating program
JP3805195B2 (en) Program rewriting apparatus and program rewriting method
JP3522176B2 (en) Switching file update synchronization method
JP2008062582A (en) Printer, control method, and computer program
JP5158883B2 (en) Firmware update method and firmware update apparatus
JP2001331379A (en) Method and device for rewriting flash memory update program
JP2001344156A (en) Device with flash memory and data rewriting method
JP5418348B2 (en) Information processing apparatus and karaoke apparatus
JP4678342B2 (en) Print control program
JP2000200193A (en) Data processor
JP2002007152A (en) Download method and download device
JP2003330655A (en) Image forming device and method for controlling the same device and computer readable storage medium and its program
JP2013109450A (en) Image forming apparatus
JP2022024904A (en) Firmware updating system and firmware updating method
WO2023035233A1 (en) Cost effective firmware upgrade algorithm for resource constrained microprocessors
JP2002041298A (en) Computer, automatic resource application processing program, and record medium of automatic resource application processing program
JP2004038716A (en) Firmware updating method provided with automatic restoring function in occurrence of failure
JPH1083358A (en) Program rewriting method and controller provided with program rewriting function
JP2003122575A (en) Information processing unit

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050315

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070118

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080513