JP5080318B2 - Image processing apparatus and access control method - Google Patents

Image processing apparatus and access control method Download PDF

Info

Publication number
JP5080318B2
JP5080318B2 JP2008055305A JP2008055305A JP5080318B2 JP 5080318 B2 JP5080318 B2 JP 5080318B2 JP 2008055305 A JP2008055305 A JP 2008055305A JP 2008055305 A JP2008055305 A JP 2008055305A JP 5080318 B2 JP5080318 B2 JP 5080318B2
Authority
JP
Japan
Prior art keywords
control program
control
program
update
storage means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008055305A
Other languages
Japanese (ja)
Other versions
JP2009211537A (en
Inventor
幸治 今西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008055305A priority Critical patent/JP5080318B2/en
Publication of JP2009211537A publication Critical patent/JP2009211537A/en
Application granted granted Critical
Publication of JP5080318B2 publication Critical patent/JP5080318B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、制御プログラムに従ってコンピュータを動作させることにより画像処理に必要な動作を制御する手段を有する複写機、プリンタ、ファクシミリ、又はこれらの機能を複合させた複合機等の画像処理装置に関し、より詳しくは、ネットワークより更新制御プログラムがダウンロードでき、その際に主制御手段を介さずにダウンロードを行えるようにした画像処理装置及びダウンロードする更新制御プログラム及び実行制御プログラムのアクセスを制御するアクセス制御方法に関する。   The present invention relates to an image processing apparatus such as a copying machine, a printer, a facsimile, or a multifunction machine in which these functions are combined, having means for controlling operations necessary for image processing by operating a computer according to a control program. More specifically, the present invention relates to an image processing apparatus that can download an update control program from a network and that can be downloaded without going through a main control unit, an update control program to be downloaded, and an access control method for controlling access to an execution control program. .

近年、複写機、プリンタ、ファクシミリ、又はこれらの機能を複合させた複合機等の画像処理装置は、多くの機能を搭載し多機能化の進展が著しい。
このような多機能化の進展に伴い、制御するCPUの数が増加し、これらの複数のCPUに対応した、プログラムファイル数も増加し、これらのファイルを格納する記憶装置の容量も増大してきている。
このため、プログラムの不具合(バグ)の修正、新たな機能の追加等によるプログラムのバージョンアップが頻繁に必要になってきている。稼動状態にある画像処理装置に対してプログラムのバージョンアップを実施する方法としては、プログラムを格納した装置内蔵ROMをバージョンアップしたプログラムを格納したものと差し替える方法により対応することが可能であるが、この方法は、多大な工数と時間を要する。
In recent years, an image processing apparatus such as a copying machine, a printer, a facsimile machine, or a multifunction machine in which these functions are combined has a large number of functions and the progress of multi-functionality has been remarkable.
As the number of functions increases, the number of CPUs to be controlled increases, the number of program files corresponding to the plurality of CPUs increases, and the capacity of the storage device for storing these files also increases. Yes.
For this reason, it is frequently necessary to upgrade the program version by correcting a problem (bug) of the program or adding a new function. As a method of performing a program upgrade for an image processing apparatus in an operating state, it is possible to cope with a method of replacing the device built-in ROM storing the program with a program storing the upgraded program. This method requires a lot of man-hours and time.

そこで、この問題を回避するために、次に示す方法が採用されている。それは、外部と接続するLAN(ローカルエリアネットワーク)等の通信ラインを経由して画像処理装置に機能追加や不具合へ対処するためのプログラムファイルを転送し、受取る側の画像処理装置では、CPUを搭載する各ユニット上のメモリに転送されてくるプログラムファイルを書き込み、プログラムをダウンロードする方法である。
ただ、ネットワーク経由で転送されてくるプログラムファイルをダウンロードする方法では、画像処理装置を動作させたままで、プログラムの書き換えや書き換えたプログラムの有効化を行うケースが起きることになり、例えば、印字動作等を行っている場合、画像処理に影響を与える恐れがあるため、実行中の画像処理を中断しなければならず、このようなケースでは、プログラムの書き換えを容易に行えない、という問題点が生じる。
また、CPUには、ソフトウェアダウンロード処理に要する負荷が加わるので、CPUに加わる負荷やCPU間通信に要する負荷は、極力増大させないようにして、通常サービスへの影響を最小限にすることが望まれる。
In order to avoid this problem, the following method is employed. It transfers a program file for addressing function additions and problems to the image processing device via a communication line such as a LAN (local area network) connected to the outside, and the receiving image processing device has a CPU. In this method, the program file transferred to the memory on each unit is written and the program is downloaded.
However, in the method of downloading the program file transferred via the network, there are cases where the program is rewritten or the rewritten program is validated while the image processing apparatus is operating, for example, printing operation, etc. In such cases, the image processing being executed must be interrupted. In such a case, there is a problem that the program cannot be rewritten easily. .
In addition, since a load required for software download processing is applied to the CPU, it is desired that the load applied to the CPU and the load required for inter-CPU communication are not increased as much as possible to minimize the influence on the normal service. .

このような問題や課題を解決するために提案された先行技術として、下記特許文献1及び2を例示することができる。
特許文献1記載の画像処理装置は、図11のシステム構成を有するもので、実行するプログラムを収納したフラッシュROM511とRAM512をCPU510の制御下に備え、画像処理装置が何らかの動作を実行している時にもホストコンピュータ519から通信用I/F520を介して、前記RAM512の所定領域にバージョンアッププログラムをダウンロードし、その後、RAM512にダウンロードしたプログラムをフラッシュROM511に書き込むことが示されている。
The following Patent Documents 1 and 2 can be exemplified as prior arts proposed for solving such problems and problems.
The image processing apparatus described in Patent Document 1 has the system configuration shown in FIG. 11, and includes a flash ROM 511 and a RAM 512 storing programs to be executed under the control of the CPU 510, and the image processing apparatus is executing some operation. Also, it is shown that the upgrade program is downloaded from the host computer 519 to the predetermined area of the RAM 512 via the communication I / F 520, and then the downloaded program is written to the flash ROM 511.

また、特許文献2記載のマルチCPUシステムは、図12のシステム構成を有するもので、マスターCPU610と、複数のスレーブCPU611,612から構成されるシステムである。このシステムでは、スレーブCPU611,612がサービスの実行のために直接アクセスする現用面のメモリと、マスターCPU610がファームウェアの更新のために直接アクセスする予備面のメモリとの2面から構成されるメモリを有し、マスターCPU610は、スレーブCPU611,612がサービス実行のために現用面のメモリをアクセスするのに干渉することなく、予備面のメモリを直接接続する接続手段により接続し、プログラムダウンロードをすることが示されている。
上記各特許文献の課題は、CPUに対するファームウェアの更新処理を、通常サービスへの影響を最小限に抑えつつ、高効率で行うことのできるシステムを提供することを目的としている。
特開2003−330655号公報 特開平10−260845号公報
The multi-CPU system described in Patent Document 2 has the system configuration shown in FIG. 12, and is a system including a master CPU 610 and a plurality of slave CPUs 611 and 612. This system has a memory composed of two surfaces: a working surface memory that the slave CPUs 611 and 612 directly access to execute services, and a spare surface memory that the master CPU 610 directly accesses to update firmware. The master CPU 610 indicates that the slave CPUs 611 and 612 do not interfere with accessing the active memory for service execution, and the program is downloaded by connecting the connecting memory directly to the spare memory. Has been.
An object of each of the above patent documents is to provide a system capable of performing firmware update processing for a CPU with high efficiency while minimizing the influence on normal service.
JP 2003-330655 A JP-A-10-260845

しかしながら、上記特許文献1のシステム構成は、CPU510が接続された同一バス上にバージョンアッププログラムをダウンロードするRAM512が接続されている。従って、ダウンロード時にCPU510が所定の動作を行うために、SDRAM513をアクセスするとバスの競合が発生する。このような場合には、通常、バスの調停(バスの優先度)を行うので、RAM512及びSDRAM513のアクセス時間が遅くなる。結果として、コピー動作を実行しているような場合は、本来の処理速度が達成できなくなり、最悪の場合は誤動作が発生する可能性もある。また、リブート処理によりSDRAM513(プログラムメモリ)にフラッシュROM511の内容をリロードするが、SDRAM513の容量を増やしたくない等のこともあり、全てのプログラムはリロードしないで、その都度フラッシュROM511からリロードしたり、プログラム処理に必要なDATA等をアクセスしたりする場合もある。このような場合には、フラッシュROMにダウンロードしたRAM512の内容を書き込むことは出来ない。   However, in the system configuration of Patent Document 1, a RAM 512 that downloads an upgrade program is connected to the same bus to which the CPU 510 is connected. Therefore, when the SDRAM 513 is accessed in order for the CPU 510 to perform a predetermined operation during downloading, a bus contention occurs. In such a case, since bus arbitration (bus priority) is normally performed, the access time of the RAM 512 and the SDRAM 513 is delayed. As a result, when the copy operation is executed, the original processing speed cannot be achieved, and in the worst case, a malfunction may occur. In addition, the contents of the flash ROM 511 are reloaded into the SDRAM 513 (program memory) by the reboot process. However, there is a case where it is not desired to increase the capacity of the SDRAM 513, etc. In some cases, DATA or the like necessary for program processing is accessed. In such a case, the contents of the RAM 512 downloaded to the flash ROM cannot be written.

また、上記特許文献2のシステム構成は、特許文献1の上記した問題を解決することができるが、マルチCPUの構成を採用しており、構成が複雑であり、また、マスターCPU610は、マスターCPU610がサービス実行のために現用面のメモリをアクセスするのに干渉することなく、予備面のメモリに直接接続し、プログラムをダウンロードするために具体的にどのように構成するかを明らかにしていない。
本発明は、制御プログラムに従ってコンピュータを動作させることにより画像処理に必要な動作を制御する手段を有する画像処理装置における上述した従来技術の問題点に鑑みてなされたものであり、その目的は、更新制御プログラムをダウンロードする際に、制御プログラムの実行中においても、画像処理動作に影響を与えず、更新制御プログラムをダウンロードできるようにするとともに、短時間で更新制御プログラムの実行を可能にし、これを簡素な構成によって実現できるようにすることにある。
Further, although the system configuration of Patent Document 2 can solve the above-described problem of Patent Document 1, a multi-CPU configuration is adopted and the configuration is complicated, and the master CPU 610 is a master CPU 610. However, it does not clarify how to directly connect to the spare side memory and download the program without interfering with accessing the working side memory for service execution.
The present invention has been made in view of the above-described problems of the prior art in an image processing apparatus having means for controlling operations necessary for image processing by operating a computer in accordance with a control program. When downloading the control program, the update control program can be downloaded without affecting the image processing operation even during the execution of the control program, and the update control program can be executed in a short time. It is to be able to be realized by a simple configuration.

本発明は、制御プログラムに従ってコンピュータを動作させることにより画像処理に必要な動作を制御する手段を有する画像処理装置であって、前記制御プログラムに従って画像処理動作を制御する主制御手段と、外部から入力されてくる更新制御プログラムを読込む読込制御手段と、前記主制御手段と前記読込制御手段とにそれぞれ接続可能な第1記憶手段と、前記主制御手段と前記読込制御手段とにそれぞれ接続可能な第2記憶手段と、前記主制御手段との接続を前記第1記憶手段と前記第2記憶手段の一方から他方に切替える第1切替接続手段と、前記読込制御手段との接続を前記第1記憶手段と前記第2記憶手段の一方から他方に切替える第2切替接続手段とを有し、前記読込制御手段は、前記第1記憶手段と前記第2記憶手段のうち、実行する前記制御プログラムが格納される方を前記主制御手段に接続するように第1切替接続手段を切替制御すると同時に、前記制御プログラムが格納されない方を前記読込制御手段に接続するように第2切替接続手段を切替制御する手段を備え、かつ、外部から入力される更新制御プログラムを、前記第1記憶手段と前記第2記憶手段のうち、前記第2切替接続手段によって接続される方に、直接読込む制御を行うことを特徴とする。
本発明は、制御プログラムに従って実行する画像処理動作を制御する主制御手段、外部から入力されてくる更新制御プログラムを読込む読込制御手段の各制御手段と前記各制御手段がそれぞれアクセス可能な第1記憶手段と第2記憶手段との接続を、一方の記憶手段から他方の記憶手段に切替制御し、接続した記憶手段に対し前記各制御手段からのアクセスを行うアクセス制御方法であって、前記読込制御手段は、前記第1記憶手段と前記第2記憶手段のうち、実行する前記制御プログラムが格納される方を前記主制御手段に接続するように切替制御すると同時に、前記制御プログラムが格納されない方を前記読込制御手段に接続するように切替制御し、かつ外部から入力される更新制御プログラムを、前記第1記憶手段と前記第2記憶手段のうち、前記制御プログラムが格納されない方の記憶手段に直接読込む制御を行うことを特徴とする。
The present invention relates to an image processing apparatus having means for controlling operations necessary for image processing by operating a computer according to a control program, the main control means for controlling image processing operations according to the control program, and an external input Read control means for reading the update control program, first storage means connectable to the main control means and the read control means, respectively, connectable to the main control means and the read control means, respectively A connection between the second storage means and the main control means is switched from one of the first storage means and the second storage means to the other, and a connection between the read control means is the first memory. And a second switching connection means for switching from one of the second storage means to the other, and the read control means is configured to be connected to the first storage means and the second storage means. The first switching connection means is controlled to connect the one storing the control program to be executed to the main control means, and at the same time, the one not storing the control program is connected to the reading control means. 2 having a means for switching control of the switching connection means, and an update control program inputted from outside is connected to the one of the first storage means and the second storage means connected by the second switching connection means. It is characterized by performing direct reading control.
The present invention provides a main control means for controlling an image processing operation to be executed in accordance with a control program, each control means of a read control means for reading an update control program inputted from the outside, and a first accessible by each of the control means. An access control method for controlling the connection between the storage means and the second storage means from one storage means to the other storage means and accessing the connected storage means from each control means, wherein the reading means control means of said first storage means and the second storing means, the direction which the control program to be executed is stored and at the same time switching control to connect to the main control unit, who said control program is not stored was the switching control to connect to the read control means, and an update control program that is input from the external, the said first memory means a second storage means Of, characterized in that a direct read uncontrolled in the storage means towards said control program is not stored.

読込制御手段が、外部から入力されてくる更新プログラムのダウンロードを、主制御手段のCPUの動作と関係なく、直接記憶手段に対して行うことができ、主制御手段で実行中の制御プログラムによる処理に影響しないので、更新プログラムのダウンロードによって当該処理を中断することがなく、中断で起きる可能性のある不具合が生じることもない。また、主制御手段は、更新プログラムをネットワークからダウンロードするために従来必要とされた機能を持たなくてもよいので、構成を簡素化できる。
さらに、ダウンロードを完了した後、直ぐに更新プログラムを使用することができるので、性能が向上する。
The read control means can download the update program input from the outside to the direct storage means regardless of the operation of the CPU of the main control means, and the processing by the control program being executed by the main control means Therefore, the process is not interrupted by downloading the update program, and there is no problem that may occur due to the interruption. Further, the main control means does not have to have a function conventionally required for downloading the update program from the network, so that the configuration can be simplified.
Further, since the update program can be used immediately after the download is completed, the performance is improved.

以下に、本発明の画像処理装置及びアクセス制御方法に係る実施形態を示す。
本実施形態の画像処理装置は、制御プログラムに従ってコンピュータを動作させることにより画像処理に必要な動作を制御する手段を有する。ここでは、原稿読取りにより入力される画像或いは外部機から通信手段を介して印刷出力を要求して入力される画像をもとに、印刷出力等を行う複合機(デジタル複写機)やプリンタに適用した例を示す。
Embodiments according to the image processing apparatus and the access control method of the present invention will be described below.
The image processing apparatus according to the present embodiment includes means for controlling operations necessary for image processing by operating a computer according to a control program. Here, it applies to multi-function printers (digital copiers) and printers that perform print output based on images input by reading originals or images input by requesting print output from external devices via communication means An example is shown.

以下に示す実施形態では、画像処理装置の主制御手段が、制御プログラムに従って入力される画像を処理するために必要な動作を含め、画像処理装置全体を制御する。
主制御手段が動作に用いる制御プログラムは、電源断時にも格納したデータが消失しない不揮発性メモリのような記憶手段に格納、保管され、画像処理装置に電源が投入されると、動作に必要な制御プログラムが保管された不揮発性の記憶手段から読出され、実行プログラムとして用いることができる状態で管理され、処理要求に応じて駆動される。
また、不揮発性の記憶手段で保管される制御プログラムは、プログラムのバグの修正、新たな機能の追加等により必要となるバージョンアップが行われる。近年、プログラムのバージョンアップをネットワーク経由で更新プログラムをダウンロードする方法が採用されている。この方法による場合、ダウンロードの要求時に、画像処理装置では稼動状態にあるのが普通であるから、実行中のジョブがある場合に、このジョブの処理を中断させる必要があり、不具合を起こす原因となる。
In the embodiment described below, the main control unit of the image processing apparatus controls the entire image processing apparatus including operations necessary for processing an image input according to the control program.
The control program used for the operation by the main control means is stored and stored in a storage means such as a non-volatile memory in which stored data is not lost even when the power is turned off, and is necessary for the operation when the image processing apparatus is turned on. The control program is read from the stored nonvolatile storage means, managed in a state where it can be used as an execution program, and driven in response to a processing request.
The control program stored in the non-volatile storage means is upgraded as necessary by correcting bugs in the program, adding new functions, and the like. In recent years, a method of downloading an update program via a network to upgrade the program has been adopted. If this method is used, the image processing device is normally in operation when a download request is made. If there is a job being executed, it is necessary to interrupt the processing of this job. Become.

そこで、この実施形態では、CPUが制御プログラムを実行している場合であっても、実行中の制御プログラムによる処理を中断せずに更新制御プログラムのダウンロードを行え、ダウンロードを完了した後、直ちに更新制御プログラムを使用することができるようにすることを意図し、以下に示す構成を採用する。
図1は、本発明の1実施形態(以下「実施形態1」という)の画像処理装置の基本構成を示すブロック図である。なお、図1に示す構成は、上記の意図を実現する構成に関する部分を主として示し、この種の画像処理装置が通常備える他の構成部分については、図示を省略している。
Therefore, in this embodiment, even when the CPU is executing the control program, the update control program can be downloaded without interrupting the processing by the control program being executed, and updated immediately after the download is completed. The configuration shown below is adopted with the intention of enabling the use of the control program.
FIG. 1 is a block diagram showing a basic configuration of an image processing apparatus according to an embodiment (hereinafter referred to as “Embodiment 1”) of the present invention. Note that the configuration shown in FIG. 1 mainly shows portions related to the configuration that realizes the above intention, and other components that are normally provided in this type of image processing apparatus are not shown.

図1に示す画像処理装置100は、画像処理装置全体を制御する機能を持つ主制御手段2とネットワーク20から送信されてくる各種のデータを内部の記憶部に読込む読込制御手段1を備え、主制御手段2と読込制御手段1は、それぞれ制御プログラムを格納するための第1記憶手段3及び第2記憶手段4をアクセス可能にする。
制御プログラムを格納するための記憶手段として、第1記憶手段3及び第2記憶手段4を設けている。これは、一方が現行の制御プログラムを格納するために、また、他方が更新制御プログラムを格納するために用いるためである。よって、第1記憶手段3と第2記憶手段4のうち、現行の制御プログラムが格納された方を主制御手段2に、他方を更新制御プログラムが格納できるように読込制御手段1に接続する。このように記憶手段を分けて用いる場合、制御プログラムが更新されるたびに、更新制御プログラムの格納場所として第1記憶手段3と第2記憶手段4が交互に用いられる。
An image processing apparatus 100 shown in FIG. 1 includes a main control unit 2 having a function of controlling the entire image processing apparatus, and a read control unit 1 that reads various data transmitted from the network 20 into an internal storage unit. The main control means 2 and the read control means 1 make the first storage means 3 and the second storage means 4 for storing control programs accessible respectively.
As storage means for storing the control program, a first storage means 3 and a second storage means 4 are provided. This is because one is used to store the current control program and the other is used to store the update control program. Therefore, of the first storage means 3 and the second storage means 4, the one that stores the current control program is connected to the main control means 2, and the other is connected to the read control means 1 so that the update control program can be stored. When the storage means are separately used in this way, each time the control program is updated, the first storage means 3 and the second storage means 4 are alternately used as storage locations for the update control program.

上記の接続動作を行うために、主制御手段2及び読込制御手段1をそれぞれ第1記憶手段3と第2記憶手段4の一方から他方に切替える切替接続手段と、この切替接続手段の切替制御を行う手段を設ける。
図1に示すように、読込制御手段1を第1記憶手段3と第2記憶手段4の一方から他方に切替えるために切替接続手段5を設け、また、主制御手段2を第1記憶手段3と第2記憶手段4の一方から他方に切替えるために切替接続手段6を設ける。これらの切替接続手段5,6は、それぞれ切替制御信号SEL2、SEL1の入力によって第1記憶手段3と第2記憶手段4の一方から他方に接続を切替える一対の接続器(切替接続手段5に対し接続器51,52、また切替接続手段6に対し接続器61,62)を持つ。
In order to perform the above connection operation, switching control means for switching the main control means 2 and the read control means 1 from one of the first storage means 3 and the second storage means 4 to the other, and switching control of the switching connection means. Provide means to do.
As shown in FIG. 1, a switching connection means 5 is provided to switch the reading control means 1 from one of the first storage means 3 and the second storage means 4 to the other, and the main control means 2 is changed to the first storage means 3. The switching connection means 6 is provided for switching from one of the second storage means 4 to the other. These switching connection means 5 and 6 are respectively connected to a pair of connectors (for the switching connection means 5) for switching the connection from one of the first storage means 3 and the second storage means 4 to each other by the input of the switching control signals SEL2 and SEL1. The connectors 51 and 52 and the connectors 61 and 62) are provided for the switching connection means 6.

実施形態1では、読込制御手段1にネットワーク20から送信されてくる更新制御プログラムを第1記憶手段3と第2記憶手段4のうち、切替制御信号SEL2によって定まる方の記憶手段をアクセスし、ダウンロードする。
この更新制御プログラムのダウンロードは、読込制御手段1が、定められた記憶手段に対して直接書込みを行う、DMA転送等の方法によって行う。例えば、この図1の回路構成に示すように、主制御手段2のCPUの制御下で動作するバス9を用いずに、読込制御手段1の制御によって、読込制御手段1から直接、第1記憶手段3又は第2記憶手段4にDMA転送により更新制御プログラムを書き込む。
In the first embodiment, the update control program transmitted from the network 20 to the read control means 1 is accessed by downloading the storage means determined by the switching control signal SEL2 out of the first storage means 3 and the second storage means 4. To do.
Downloading of the update control program is performed by a method such as DMA transfer in which the read control unit 1 directly writes to a predetermined storage unit. For example, as shown in the circuit configuration of FIG. 1, the first memory is directly stored from the read control means 1 by the control of the read control means 1 without using the bus 9 operating under the control of the CPU of the main control means 2. The update control program is written in the means 3 or the second storage means 4 by DMA transfer.

更新制御プログラムをダウンロードする記憶手段は、実行する制御プログラムを格納していない方であるが、更新制御プログラムのダウンロードが完了すれば、次回に制御プログラムを起動するときには、更新した方を実行する制御プログラムとして用いる。このために、記憶手段の接続を切替える。
この切替えは、切替制御信号SEL2、SEL1によって、切替接続手段5と切替接続手段6を同時に制御し、更新制御プログラムのダウンロードに用いた記憶手段を主制御手段2に接続し実行する制御プログラムに用い、実行する制御プログラムを格納していた記憶手段を今度は読込制御手段1に更新制御プログラムのダウンロードに用いる。
The storage means for downloading the update control program is the one that does not store the control program to be executed. When the download of the update control program is completed, the control means for executing the updated one when the control program is started next time. Use as a program. For this purpose, the connection of the storage means is switched.
This switching is used for a control program in which the switching connection means 5 and the switching connection means 6 are simultaneously controlled by the switching control signals SEL2 and SEL1, and the storage means used for downloading the update control program is connected to the main control means 2 and executed. The storage means storing the control program to be executed is now used for downloading the update control program to the read control means 1.

ここで、図1を基本構成とする実施形態1における切替接続手段5,6の切替制御及び実行する制御プログラムと更新制御プログラムをそれぞれ格納する不揮発性の記憶手段に対するアクセス動作について、図2を参照してより詳細に説明する。
図2は、図1を基本構成として、より具体的に回路構成を示すものである。
図2と図1の構成要素の対応関係は、次の通りである。図2のネットワーク処理部11は、図1の読込制御手段1に相当する。図2の主制御部12は、図1の主制御手段2に相当する。図2の不揮発性メモリ(1)13は、図1の第1記憶手段3に相当する。図2の不揮発性メモリ(2)14は、図1の第2記憶手段4に相当する。双方向バッファ15,16は、それぞれ、図1の切替接続手段5,6に相当する。
Here, refer to FIG. 2 for the switching control of the switching connection means 5 and 6 and the access operation to the nonvolatile storage means for storing the control program to be executed and the update control program in the first embodiment based on FIG. Will be described in more detail.
FIG. 2 shows a more specific circuit configuration based on FIG. 1 as a basic configuration.
The correspondence between the components in FIG. 2 and FIG. 1 is as follows. The network processing unit 11 in FIG. 2 corresponds to the read control unit 1 in FIG. The main control unit 12 in FIG. 2 corresponds to the main control unit 2 in FIG. The nonvolatile memory (1) 13 in FIG. 2 corresponds to the first storage unit 3 in FIG. The nonvolatile memory (2) 14 in FIG. 2 corresponds to the second storage unit 4 in FIG. The bidirectional buffers 15 and 16 correspond to the switching connection means 5 and 6 in FIG.

ネットワーク処理部11は、ネットワークインターフェースとしての機能を有し、その一部に、更新制御プログラムのダウンロード機能を持つ。このため、ネットワーク20から受信したデータが、印刷出力を要求して送信されてきた印刷データか、ダウンロードを要求して送信されてきた更新制御プログラムのデータかを判断する。この判断は、例えば、ソフトウェアアップデート用に特定のTCP(Transmission Control Protocol)ポート番号(後述する図6の「ポート1234」参照)を設定し、その特定ポート番号のパケットを受信したときのみ、パケットのデータをプログラム(更新制御プログラム)データとして判断する。
また、ネットワーク20から受信したデータが、プログラムデータである場合のみ、不揮発性メモリ(1)13又は不揮発性メモリ(2)14へプログラムデータを書込む。
不揮発性メモリ(1)13及び不揮発性メモリ(2)14は、それぞれ後述する主制御部12のCPU121に接続可能であるが、図1を参照して説明したように、切替制御によってどちらか一方の不揮発性メモリにしかアクセスできない。
主制御部12が接続する方の不揮発性メモリには、現在CPU121が実行中の制御プログラムが格納されており、他方の不揮発性メモリには、ネットワーク20から新バージョンをダウンロードするときに更新制御プログラムが格納されるので、ネットワーク処理部11が接続する。
The network processing unit 11 has a function as a network interface, and a part thereof has a download function of an update control program. Therefore, it is determined whether the data received from the network 20 is print data transmitted by requesting print output or update control program data transmitted by requesting download. This determination can be made, for example, by setting a specific TCP (Transmission Control Protocol) port number (see “Port 1234” in FIG. 6 described later) for software update and receiving a packet of the specific port number. The data is determined as program (update control program) data.
Further, the program data is written into the nonvolatile memory (1) 13 or the nonvolatile memory (2) 14 only when the data received from the network 20 is program data.
Each of the non-volatile memory (1) 13 and the non-volatile memory (2) 14 can be connected to a CPU 121 of the main control unit 12, which will be described later. However, as described with reference to FIG. Can only access non-volatile memory.
The non-volatile memory to which the main control unit 12 is connected stores a control program currently being executed by the CPU 121, and the other non-volatile memory has an update control program when a new version is downloaded from the network 20. Is stored, the network processing unit 11 is connected.

主制御部12は、切替接続手段としての双方向バッファ15,16の切替制御及び不揮発性メモリに対するアクセス動作を行うための構成要素として、CPU121、メモリ選択部123、起動情報格納メモリ125を有する。
メモリ選択部123は、現在不揮発性メモリ(1)13又は不揮発性メモリ(2)14のどちらの制御プログラムを使用してCPU121が動作しているかを示す情報と、不揮発性メモリ(1)13又は不揮発性メモリ(2)14のどちらを更新制御プログラムのダウンロードに使用するかを示す一対の設定情報を保持している。
なお、この一対の設定情報は、次に説明するように、切替接続手段として双方向バッファ15,16の切替制御信号として機能する。双方向バッファ15は、不揮発性メモリ(1)13又は不揮発性メモリ(2)14のどちらに接続するかを選択するために一対の双方向バッファ要素151,152を有し、また、双方向バッファ16は、不揮発性メモリ(1)13又は不揮発性メモリ(2)14のどちらに接続するかを選択するために一対の双方向バッファ要素161,162を有する。
The main control unit 12 includes a CPU 121, a memory selection unit 123, and a startup information storage memory 125 as components for performing switching control of the bidirectional buffers 15 and 16 as switching connection means and an access operation to the nonvolatile memory.
The memory selection unit 123 includes information indicating which control program of the nonvolatile memory (1) 13 or the nonvolatile memory (2) 14 is used to operate the CPU 121 and the nonvolatile memory (1) 13 or A pair of setting information indicating which one of the nonvolatile memories (2) 14 is used for downloading the update control program is held.
The pair of setting information functions as switching control signals for the bidirectional buffers 15 and 16 as switching connection means, as will be described below. The bidirectional buffer 15 has a pair of bidirectional buffer elements 151 and 152 for selecting whether to connect to the nonvolatile memory (1) 13 or the nonvolatile memory (2) 14, and the bidirectional buffer 15 16 includes a pair of bidirectional buffer elements 161 and 162 for selecting whether to connect to the nonvolatile memory (1) 13 or the nonvolatile memory (2).

ここでは、メモリ選択部123に保持される一対の設定情報は、SEL1信号、SEL2信号であり、SEL1信号、SEL2信号は、それぞれ信号が“H”と“L”の状態に応じて、双方向バッファ15における双方向バッファ要素151,152、並びにバッファ16における双方向バッファ要素161,162のどちらの動作を有効にするか、無効にするかを制御し、主制御部12とネットワーク処理部11をそれぞれ不揮発性メモリ(1)13又は不揮発性メモリ(2)14のどちらに接続するかを切替える。
SEL1信号、SEL2信号、それぞれ“H”と“L”の信号の状態に対応する双方向バッファ15,16の動作を纏めると、次のようになる。
・SEL1信号(主制御部12の接続)については、
SEL1信号=“H”時: 双方向バッファ161が有効、
双方向バッファ162が無効、
となり、不揮発性メモリ(1)13に接続する。
SEL1信号=“L”時: 双方向バッファ161が無効、
双方向バッファ162が有効、
となり、不揮発性メモリ(2)14に接続する。
・SEL2信号(ネットワーク処理部11の接続)については、
SEL2信号=“H”時: 双方向バッファ151が無効、
双方向バッファ152が有効、
となり、不揮発性メモリ(2)14に接続する。
SEL2信号=“L”時: 双方向バッファ151が有効、
双方向バッファ152が無効、
となり、不揮発性メモリ(1)13に接続する。
Here, the pair of setting information held in the memory selection unit 123 is the SEL1 signal and the SEL2 signal, and the SEL1 signal and the SEL2 signal are bidirectional depending on the state of the signals being “H” and “L”, respectively. It controls whether the bidirectional buffer elements 151 and 152 in the buffer 15 and the bidirectional buffer elements 161 and 162 in the buffer 16 are to be validated or invalidated, and the main control unit 12 and the network processing unit 11 are controlled. Switching between the nonvolatile memory (1) 13 and the nonvolatile memory (2) 14 is switched.
The operations of the bidirectional buffers 15 and 16 corresponding to the states of the SEL1 signal and the SEL2 signal, respectively, “H” and “L” are summarized as follows.
・ About SEL1 signal (main control unit 12 connection)
When SEL1 signal = “H”: Bidirectional buffer 161 is enabled.
The bidirectional buffer 162 is invalid,
And connected to the nonvolatile memory (1) 13.
When SEL1 signal = “L”: Bidirectional buffer 161 is invalid.
Bidirectional buffer 162 is enabled,
And connected to the nonvolatile memory (2) 14.
・ About SEL2 signal (connection of network processing unit 11)
When SEL2 signal = “H”: Bidirectional buffer 151 is invalid.
Bidirectional buffer 152 is enabled,
And connected to the nonvolatile memory (2) 14.
When SEL2 signal = “L”: Bidirectional buffer 151 is enabled.
Bidirectional buffer 152 is invalid,
And connected to the nonvolatile memory (1) 13.

SEL1信号とSEL2信号の値は、常に同じ論理値をとり、
SEL1信号=“H” かつ SEL2信号=“H”の時、
不揮発性メモリ(1)13の状態=制御プログラムの実行可能、
不揮発性メモリ(2)14の状態=更新制御プログラムの格納に使用可能
となり、
SEL1信号=“L” かつ SEL2信号=“L”の時、
不揮発性メモリ(1)13の状態=更新制御プログラムの格納に使用可能、
不揮発性メモリ(2)14の状態=制御プログラムの実行可能
となる。
また、無効時は、双方向バッファがHi-Zとなる。
このように、メモリ選択部123で発生させるSEL1信号、SEL2信号によって双方向バッファ15,16の切替制御を行い、主制御部12とネットワーク処理部11をそれぞれ不揮発性メモリ(1)13又は不揮発性メモリ(2)14に接続する。
The values of the SEL1 signal and SEL2 signal always take the same logical value,
When SEL1 signal = “H” and SEL2 signal = “H”
State of the non-volatile memory (1) 13 = executable control program;
The state of the nonvolatile memory (2) 14 can be used to store the update control program,
When SEL1 signal = “L” and SEL2 signal = “L”
The state of the non-volatile memory (1) 13 can be used to store an update control program.
The state of the nonvolatile memory (2) 14 = the control program can be executed.
When disabled, the bidirectional buffer is Hi-Z.
As described above, the switching control of the bidirectional buffers 15 and 16 is performed by the SEL1 signal and the SEL2 signal generated by the memory selection unit 123, and the main control unit 12 and the network processing unit 11 are respectively connected to the nonvolatile memory (1) 13 or the nonvolatile memory. Connect to memory (2) 14.

主制御部12の起動情報格納メモリ125について、説明する。
この実施形態のように、制御プログラムを格納する不揮発性メモリが2つあり、最も新しいバージョンの制御プログラムを格納しているメモリがバージョンアップするたびに交互に変わるので、使用する不揮発性メモリを管理する必要がある。つまり、CPU121が制御プログラムを起動するときに、2つの不揮発性メモリのどちらのメモリの制御プログラムを使用するかを示す情報である起動情報を起動情報格納メモリ125に保存することで、正常に制御プログラムを使用できるように管理をする。なお、CPU121がこの起動情報を格納するタイミングは、更新制御プログラムのダウンロードが終了した時点である。
The activation information storage memory 125 of the main control unit 12 will be described.
As in this embodiment, there are two non-volatile memories that store the control program, and the memory that stores the latest version of the control program changes alternately each time the version is upgraded, so the non-volatile memory to be used is managed. There is a need to. That is, when the CPU 121 activates the control program, the activation information, which is information indicating which memory control program of the two nonvolatile memories is used, is stored in the activation information storage memory 125, so that the control is normally performed. Manage the program so that it can be used. Note that the timing at which the CPU 121 stores the activation information is when the download of the update control program is completed.

図2の実施形態では、起動情報格納メモリ125に格納される起動情報は、不揮発性メモリ(1)状態、不揮発性メモリ(2)状態のいずれかを示す情報である。
不揮発性メモリ(1)状態、不揮発性メモリ(2)状態の意味は、
不揮発性メモリ(1)状態=“H”: 制御プログラムの実行可能時
“L”: 更新制御プログラムの格納に使用可能時
であり、また、
不揮発性メモリ(2)状態=“H”: 制御プログラムの実行可能時
“L”: 更新制御プログラムの格納に使用可能時
である。
起動情報格納メモリ125に保存した起動情報の用い方は、CPU121によって、起動時に先ず、このメモリに保存した起動情報が参照される。その後、参照した起動情報によって実行する制御プログラムを格納した不揮発性メモリの情報を得て、その不揮発性メモリから読出した制御プログラムを実行プログラムとして用いることができる状態で管理し、処理要求に応じてこの制御プログラムを駆動する。
In the embodiment of FIG. 2, the activation information stored in the activation information storage memory 125 is information indicating either the nonvolatile memory (1) state or the nonvolatile memory (2) state.
The meanings of the nonvolatile memory (1) state and the nonvolatile memory (2) state are as follows:
Nonvolatile memory (1) state = “H”: When the control program can be executed
“L”: Can be used to store the update control program.
Nonvolatile memory (2) state = “H”: When the control program can be executed
“L”: Can be used to store update control programs.
In order to use the activation information stored in the activation information storage memory 125, the CPU 121 first refers to the activation information stored in this memory at the time of activation. After that, information on the non-volatile memory storing the control program to be executed according to the referenced startup information is obtained, and the control program read from the non-volatile memory is managed in a state where it can be used as an execution program. This control program is driven.

次に、上記のように構成する画像処理装置(図2)の不揮発性メモリに対するアクセス動作を図3及び図4のシーケンス図にもとづいて説明する。
ここでは、制御プログラムを使用するために通常行われる起動時のアクセス動作を「通常動作」とし、ネットワーク経由で行われるアップデート(更新制御プログラムのダウンロード)要求時のアクセス動作を「アップデート動作」として、分けて説明する。
なお、下記のアクセス動作、特に「アップデート動作」の説明では、動作に係る信号のタイムチャートを示す図5、ネットワークから受取るデータの処理プロセスをタイムチャートにて示す図6及びアクセスによって一対の不揮発性メモリに格納するデータの遷移をメモリマップにて示す図7を併せて参照する。
Next, an access operation to the nonvolatile memory of the image processing apparatus (FIG. 2) configured as described above will be described with reference to the sequence diagrams of FIGS.
Here, the access operation at startup that is normally performed in order to use the control program is referred to as “normal operation”, and the access operation at the time of an update request (download of the update control program) performed via the network is referred to as “update operation”. Separately described.
In the following description of the access operation, particularly “update operation”, FIG. 5 shows a time chart of signals related to the operation, FIG. 6 shows a processing process of data received from the network, and FIG. Reference is also made to FIG. 7 showing a transition of data stored in the memory in a memory map.

「通常動作」
電源ON時等における起動時の動作手順として、CPU121が不揮発性メモリをアクセスし、使用する制御プログラムを読出し、実行可能な状態にロードする時の手順を説明する。
図3に示すシーケンス図によると、電源ON等により起動が指示されると、先ず、主制御部12のメモリ選択部123は、初期条件としてCPU121が不揮発性メモリ(1)13に対してアクセスできるように、
SEL1信号=“H” かつ SEL2信号=“H”
を一対の設定情報として保持する(シーケンスSq101)。
次いで、メモリ選択部123は、CPU121に対し、リセットを要求し、要求に従いCPU121は、不揮発性メモリをアクセスするための設定をリセットする(シーケンスSq102)。
この後、CPU121は、起動情報格納メモリ125の起動情報にアクセスし(シーケンスSq103)、現在、2つの不揮発性メモリのうちどちらで起動すればよいかを示す情報を読込む(シーケンスSq104)。
ここでは、不揮発性メモリ(1)状態=“H”(制御プログラム実行可能時)
不揮発性メモリ(2)状態=“L”(更新制御プログラムの格納に使用可能)
であることが読込まれる。
"Normal operation"
As an operation procedure at the time of start-up when the power is turned on, a procedure when the CPU 121 accesses the nonvolatile memory, reads a control program to be used, and loads it into an executable state will be described.
According to the sequence diagram shown in FIG. 3, when activation is instructed by turning on the power or the like, first, the memory selection unit 123 of the main control unit 12 allows the CPU 121 to access the nonvolatile memory (1) 13 as an initial condition. like,
SEL1 signal = “H” and SEL2 signal = “H”
Are stored as a pair of setting information (sequence Sq101).
Next, the memory selection unit 123 requests the CPU 121 to reset, and the CPU 121 resets the setting for accessing the nonvolatile memory according to the request (sequence Sq102).
Thereafter, the CPU 121 accesses the activation information in the activation information storage memory 125 (sequence Sq103), and reads information indicating which one of the two nonvolatile memories should be activated at present (sequence Sq104).
Here, nonvolatile memory (1) state = “H” (when control program can be executed)
Non-volatile memory (2) status = “L” (can be used to store update control programs)
Is read.

次いで、CPU121は、不揮発性メモリ(1)13で制御プログラムの実行が可能であることを示す起動情報に従って、メモリ選択部123に対し、SEL1信号、SEL2信号を、
SEL1信号=“H” かつ SEL2信号=“H”
に設定する(シーケンスSq105)。
この後、CPU121は、不揮発性メモリ(1)13にアクセスし(シーケンスSq106)、実行する制御プログラム(ここでは、プログラムVer1とする)を作業用のメモリに読出し(シーケンスSq107)、プログラムVer1により処理を実行する。
Next, the CPU 121 sends the SEL1 signal and the SEL2 signal to the memory selection unit 123 in accordance with the startup information indicating that the nonvolatile memory (1) 13 can execute the control program.
SEL1 signal = “H” and SEL2 signal = “H”
(Sequence Sq105).
Thereafter, the CPU 121 accesses the non-volatile memory (1) 13 (sequence Sq106), reads out a control program to be executed (here, program Ver1) to the working memory (sequence Sq107), and performs processing by the program Ver1. Execute.

「アップデート動作」
上記「通常動作」によって、実行する制御プログラム(ここでは、プログラムVer1とする)が起動された後、ネットワーク経由で行われるアップデート(更新制御プログラムのダウンロード)要求時の制御プログラムのアップデート処理の動作手順、及びアップデート後に、CPU121が更新制御プログラム(ここでは、プログラムVer2とする)を格納した不揮発性メモリをアクセスし、使用する制御プログラムを読出し、実行可能な状態にロードする時の手順を説明する。
図4に示すシーケンス図によると、実行する制御プログラムVer1が起動された後、ネットワーク20からアップデートの開始要求を受信すると(シーケンスSq201)、この要求を受けるネットワーク処理部11は、アップデート開始OKをネットワーク20へ出力する(シーケンスSq202)。
この後、ネットワーク20から更新プログラムVer2データが送られてくるので、ネットワーク処理部11はこのデータを受信し(シーケンスSq203)、受信した更新プログラムVer2データを、不揮発性メモリへ書込む(シーケンスSq204)。このとき、上記「通常動作」で説明したように、SEL2信号=“H”であるから、受信した更新プログラムVer2データは、不揮発性メモリ(2)14に書込まれる。
"Update operation"
Operation procedure of control program update processing at the time of an update (downloading of update control program) request made via the network after the control program to be executed (here, program Ver1) is started by the above "normal operation" After the update, the procedure when the CPU 121 accesses the non-volatile memory storing the update control program (here, program Ver2), reads the control program to be used, and loads it into an executable state will be described.
According to the sequence diagram shown in FIG. 4, when an update start request is received from the network 20 after the control program Ver1 to be executed is started (sequence Sq201), the network processing unit 11 receiving this request sends an update start OK to the network. 20 (sequence Sq202).
Thereafter, the update program Ver2 data is sent from the network 20, so that the network processing unit 11 receives this data (sequence Sq203) and writes the received update program Ver2 data to the nonvolatile memory (sequence Sq204). . At this time, as described in the above “normal operation”, since the SEL2 signal = “H”, the received update program Ver2 data is written in the nonvolatile memory (2).

ここで、ネットワーク処理部11が行う制御プログラムのアップデート(更新制御プログラムのダウンロード)処理について説明を加える。
ネットワーク処理部11は、ネットワークインターフェースとしての機能し、複合機やプリンタのような画像処理装置では、ネットワーク20から印刷データを受信し、印刷出力要求にも応じる。このため、ネットワーク処理部11では、受信したデータから制御プログラムのアップデート処理の要求か、印刷出力処理の要求かを判断して処理を分ける必要がある。
図6は、TCP(Transmission Control Protocol)によって、ネットワーク20との通信を行う場合のネットワーク処理部11における受信データの処理を説明するタイムチャートである。
Here, a description will be given of control program update (update control program download) processing performed by the network processing unit 11.
The network processing unit 11 functions as a network interface, and an image processing apparatus such as a multifunction peripheral or a printer receives print data from the network 20 and responds to a print output request. For this reason, the network processing unit 11 needs to determine whether it is a control program update process request or a print output process request from the received data, and divide the process.
FIG. 6 is a time chart for explaining received data processing in the network processing unit 11 when communication with the network 20 is performed by TCP (Transmission Control Protocol).

図6に示す受信データは、受信したパケットが時間軸に沿って、プログラムデータと印刷データが混在した例を示している。受信したパケットのTCP/IPヘッダに埋込まれるポート番号を「ポート1234」と設定することで、制御プログラムのアップデート用のデータであることを特定する。「ポート1234」のパケットのデータをプログラム(更新制御プログラム)データとして判断し、この場合のみ、不揮発性メモリ(1)13又は不揮発性メモリ(2)14へプログラムデータを書込む。なお、「ポート9000」が設定された印刷データは、バス9経由で主制御部12のCPU121の管理するメモリに格納される。   The received data shown in FIG. 6 shows an example in which the received packet is a mixture of program data and print data along the time axis. By setting the port number embedded in the TCP / IP header of the received packet as “port 1234”, it is specified that the data is for updating the control program. Data of the packet of “port 1234” is determined as program (update control program) data, and only in this case, the program data is written into the nonvolatile memory (1) 13 or the nonvolatile memory (2). The print data in which “port 9000” is set is stored in the memory managed by the CPU 121 of the main control unit 12 via the bus 9.

ネットワーク処理部11は、受信したプログラムデータを不揮発性メモリ(1)13又は不揮発性メモリ(2)14へ書込む際、直接、双方向バッファ15により選択された方の不揮発性メモリにDMA(Direct Memory Access)転送し、主制御部12のCPU121の制御下で動作するバス9を用いない。
DMA転送は、受信パケットからプログラムデータのみを取り出してパケットごとに転送先の不揮発性メモリに書込む。このため、ネットワーク処理部11は、バッファメモリ上のパケットプログラムデータの先頭アドレス、データ長を管理する。
本実施形態では、不揮発性メモリに対するアクセスは、DMA転送により行うので、この転送に用いるバス上の点153,163を流れるデータは、制御プログラムデータのみである。
When the network processing unit 11 writes the received program data into the nonvolatile memory (1) 13 or the nonvolatile memory (2) 14, the DMA (Direct) is directly transferred to the nonvolatile memory selected by the bidirectional buffer 15. Memory Access) is transferred, and the bus 9 operating under the control of the CPU 121 of the main control unit 12 is not used.
In DMA transfer, only program data is extracted from a received packet and is written in a non-volatile memory at a transfer destination for each packet. Therefore, the network processing unit 11 manages the head address and data length of the packet program data on the buffer memory.
In this embodiment, since the nonvolatile memory is accessed by DMA transfer, the data flowing through the points 153 and 163 on the bus used for this transfer is only control program data.

図4のシーケンスに戻ると、ネットワーク処理部11は、ネットワーク20からの更新プログラムVer2データを全て受信し、ダウンロードが終了したことを確認し(シーケンスSq205)、ダウンロード終了信号を “H” にして、メモリ選択部123へ出力する(シーケンスSq206)。
次いで、ネットワーク処理部11からのダウンロード終了信号を受取ったメモリ選択部123は、ダウンロード終了信号をCPU121へ出力する(シーケンスSq207)。
ダウンロード終了信号を受取ったCPU121は、次回制御プログラムを起動する時に更新プログラムVer2を格納した不揮発性メモリ(2)14をアクセスするように、起動情報格納メモリ125に、
不揮発性メモリ(2)状態=“H”(制御プログラム実行可能時)
を起動応報として設定する(シーケンスSq208)。
この後、CPU121は、現在、実行中のタスクが終了した時、タスク終了ビットの設定を“H”にして、メモリ選択部123へ出力する(シーケンスSq209)。
Returning to the sequence of FIG. 4, the network processing unit 11 receives all the update program Ver2 data from the network 20, confirms that the download is completed (sequence Sq205), sets the download end signal to “H”, The data is output to the memory selection unit 123 (sequence Sq206).
Next, the memory selection unit 123 that has received the download end signal from the network processing unit 11 outputs the download end signal to the CPU 121 (sequence Sq207).
The CPU 121 that has received the download end signal stores the startup information storage memory 125 so as to access the nonvolatile memory (2) 14 storing the update program Ver2 when the control program is started next time.
Non-volatile memory (2) state = “H” (when control program can be executed)
Is set as an activation response (sequence Sq208).
Thereafter, when the task currently being executed ends, CPU 121 sets the task end bit to “H” and outputs it to memory selection unit 123 (sequence Sq209).

タスク終了信号を受取ったメモリ選択部123は、
ダウンロード終了ビット=“H” かつ タスク終了ビット=“H”の時、
CPU121が不揮発性メモリ(2)14をアクセスできるように、
SEL1信号=“L” かつ SEL2信号=“L”
を一対の設定情報として保持する(シーケンスSq210)。
次いで、メモリ選択部123は、CPU121に対し、リセットを要求し、要求に従いCPU121は、不揮発性メモリをアクセスするための設定をリセットする(シーケンスSq211)。
この後、CPU121は、起動情報格納メモリ125の起動情報にアクセスし(シーケンスSq212)、現在、2つの不揮発性メモリのうちどちらで起動すればよいかを示す情報を読込む(シーケンスSq213)。
ここでは、不揮発性メモリ(1)状態=“L”(更新制御プログラムの格納に使用可能)
不揮発性メモリ(2)状態=“H”(制御プログラム実行可能時)
であることが読込まれる。
The memory selection unit 123 that has received the task end signal
When download end bit = “H” and task end bit = “H”
In order for the CPU 121 to access the nonvolatile memory (2) 14,
SEL1 signal = “L” and SEL2 signal = “L”
Are stored as a pair of setting information (sequence Sq210).
Next, the memory selection unit 123 requests the CPU 121 to reset, and the CPU 121 resets the setting for accessing the nonvolatile memory according to the request (sequence Sq211).
Thereafter, CPU 121 accesses activation information in activation information storage memory 125 (sequence Sq212), and reads information indicating which one of the two nonvolatile memories should be activated at present (sequence Sq213).
Here, nonvolatile memory (1) state = “L” (can be used to store update control program)
Non-volatile memory (2) state = “H” (when control program can be executed)
Is read.

次いで、CPU121は、不揮発性メモリ(2)14で制御プログラムの実行が可能であることを示す起動情報に従って、メモリ選択部123に対し、SEL1信号、SEL2信号を、
SEL1信号=“L” かつ SEL2信号=“L”
に設定する(シーケンスSq214)。
この後、CPU121は、不揮発性メモリ(2)14にアクセスし(シーケンスSq215)、実行する制御プログラム(ここでは、プログラムVer2)を作業用のメモリに読出し(シーケンスSq216)、プログラムVer2により処理を実行する。
Next, the CPU 121 sends the SEL1 signal and the SEL2 signal to the memory selection unit 123 in accordance with the startup information indicating that the control program can be executed in the nonvolatile memory (2) 14.
SEL1 signal = “L” and SEL2 signal = “L”
(Sequence Sq214).
Thereafter, the CPU 121 accesses the non-volatile memory (2) 14 (sequence Sq215), reads the control program to be executed (here, program Ver2) to the working memory (sequence Sq216), and executes the processing by the program Ver2. To do.

ここで、制御プログラムのアップデート(更新制御プログラムのダウンロード)処理とアップデート後に更新プログラムを実行プログラムとしてアクセスする処理の動作タイミングについて説明を加える。
この実施形態では、上記で説明したように、制御プログラムを格納する不揮発性メモリが2つあり、更新制御プログラムのダウンロードに用いる不揮発性メモリへのアクセスを、CPU121が制御するバス9を介さずに、ネットワーク処理部11が直接行うので、CPU121の動作を中断することなく、ネットワークからの更新制御プログラムのダウンロードを行える。
この動作状態は、図5の不揮発性メモリへのアクセス動作に係る信号のタイムチャートに示される。即ち、図5に示すSEL1信号、SEL2信号が、SEL1信号=“H”かつSEL2信号=“H”とした期間は、不揮発性メモリ(1)13の制御プログラムをCPU121が起動する期間であり、またこの期間ではネットワーク20からのプログラムダウンロードの要求に対してもネットワーク処理部11が応動して更新制御プログラムを不揮発性メモリ(2)14へ書込むことができる期間であることを示している。
Here, the operation timing of the control program update (update control program download) process and the process of accessing the update program as an execution program after the update will be described.
In this embodiment, as described above, there are two nonvolatile memories storing the control program, and access to the nonvolatile memory used for downloading the update control program is not via the bus 9 controlled by the CPU 121. Since the network processing unit 11 directly performs, the update control program can be downloaded from the network without interrupting the operation of the CPU 121.
This operation state is shown in a time chart of signals related to the access operation to the nonvolatile memory in FIG. That is, the period in which the SEL1 signal and the SEL2 signal shown in FIG. 5 are such that the SEL1 signal = “H” and the SEL2 signal = “H” is a period in which the CPU 121 starts the control program of the nonvolatile memory (1) 13; Further, this period indicates that the network processing unit 11 can respond to a program download request from the network 20 and write the update control program into the nonvolatile memory (2) 14.

また、上記のSEL1信号=“H”かつSEL2信号=“H”とした期間におけるプログラムダウンロードが終了し、かつCPU121のタスクが終了したことを条件に、CPU121がリセットを掛け(図5における「ダウンロード終了」「CPUタスク終了」「リセット」の各信号の関係、参照)、リセット後にSEL1信号=“L”かつSEL2信号=“L”とする期間を設定する。つまり、直前のタスク実行期間にダウンロードした更新制御プログラムを次のタスクに適用するために、実行プログラムをアクセスできる不揮発性メモリを切替え、CPU121が更新制御プログラムを使用できるようにしている。この不揮発性メモリの切替は、CPU121と同時にネットワーク処理部11がアクセスできる不揮発性メモリを切替え、切替る前にCPU121がアクセス可能であった不揮発性メモリを今度はネットワーク処理部11がアクセスする。   In addition, the CPU 121 performs a reset (provided that the “download” in FIG. (Refer to the relationship of each signal of “end”, “CPU task end”, “reset”), and after reset, set the period for SEL1 signal = “L” and SEL2 signal = “L”. That is, in order to apply the update control program downloaded in the immediately preceding task execution period to the next task, the nonvolatile memory that can access the execution program is switched so that the CPU 121 can use the update control program. This switching of the non-volatile memory switches the non-volatile memory that can be accessed by the network processing unit 11 simultaneously with the CPU 121, and this time the network processing unit 11 accesses the non-volatile memory accessible by the CPU 121 before switching.

上記のようにして不揮発性メモリ(1)13及び不揮発性メモリ(2)14よりなる2つの不揮発性メモリに対し、CPU121及びネットワーク処理部11によりそれぞれ読出、書込アクセスが交互に行われる。
図7は、不揮発性メモリに対するアクセス動作による制御プログラムの格納状態の遷移をメモリマップにて示す図である。
図7中の(A)は、初期状態を示すもので、不揮発性メモリ(1)13に制御プログラムVer1が格納された状態を示す。この制御プログラムVer1がCPU121によりアクセスされ、実行プログラムとして使用される(上記「通常動作」の説明、参照)。
図7中の(B)は、ダウンロード後の状態を示すもので、不揮発性メモリ(2)14にダウンロードされた更新制御プログラムVer2が格納された状態を示す。なお、不揮発性メモリ(1)13には、制御プログラムVer1が格納されたままで、上記のように、現行のタスクが終了し、リセットが掛けられるまで、制御プログラムVer1がCPU121によりアクセスされ、実行プログラムとして使用される。
図7中の(C)の上段は、ダウンロード後、リセットが掛けられ、ダウンロードした更新制御プログラムVer2を次のタスクに適用するために、実行プログラムをアクセスできる不揮発性メモリを不揮発性メモリ(2)14に切替え、CPU121がこのプログラムVer2を使用できるようにしたときの状態を示すものである。なお、図7中の(C)の下段は、更新制御プログラムVer2の起動NG後の状態を示すもので、この動作については、後述する。
As described above, the CPU 121 and the network processing unit 11 alternately perform read and write accesses to the two nonvolatile memories including the nonvolatile memory (1) 13 and the nonvolatile memory (2) 14, respectively.
FIG. 7 is a diagram showing a transition of the storage state of the control program by the access operation to the nonvolatile memory in a memory map.
(A) in FIG. 7 shows an initial state, and shows a state in which the control program Ver1 is stored in the nonvolatile memory (1) 13. This control program Ver1 is accessed by the CPU 121 and used as an execution program (see the description of “normal operation” above).
(B) in FIG. 7 shows a state after downloading, and shows a state in which the downloaded update control program Ver2 is stored in the nonvolatile memory (2). The non-volatile memory (1) 13 stores the control program Ver1, and as described above, the control program Ver1 is accessed by the CPU 121 until the current task is completed and reset, and the execution program is executed. Used as.
The upper part of (C) in FIG. 7 is reset after downloading, and a nonvolatile memory (2) which can access the execution program in order to apply the downloaded update control program Ver2 to the next task. 14 shows a state when the CPU 121 enables the program Ver2 to be used. Note that the lower part of (C) in FIG. 7 shows a state after NG of the activation of the update control program Ver2, and this operation will be described later.

本実施形態によると、ネットワーク処理部11が、ネットワーク20から送信されてくる更新制御プログラムのダウンロードを、主制御部12のCPU121の動作と関係なく、DMA転送により直接不揮発性メモリに対して行うことができ、CPU121が実行中の制御プログラムによる処理に影響しないので、更新プログラムのダウンロードによって当該処理を中断することがなく、中断で起きる可能性のある不具合が生じることもない。また、主制御部12は、更新プログラムをネットワークからダウンロードするために従来必要とされた機能を持たなくてもよいので、構成を簡素化できる。
さらに、ダウンロードを完了し、現行のタスクが終了した後、直ぐに不揮発性メモリを切替えて更新プログラムを使用することができるので、次のタスクに対し最新の制御プログラムを用いた処理を行うことで性能の向上を図ることができる。
According to this embodiment, the network processing unit 11 downloads the update control program transmitted from the network 20 directly to the nonvolatile memory by DMA transfer regardless of the operation of the CPU 121 of the main control unit 12. Since the CPU 121 does not affect the processing by the control program being executed, the processing is not interrupted by downloading the update program, and a problem that may occur due to the interruption does not occur. Further, the main control unit 12 does not have to have a function conventionally required for downloading the update program from the network, so that the configuration can be simplified.
In addition, after the download is completed and the current task is completed, the nonvolatile memory can be switched and the update program can be used immediately, so the performance by performing the process using the latest control program for the next task Can be improved.

図8は、本発明の他の形態(以下「実施形態2」という)の画像処理装置の基本構成を示すブロック図である。
実施形態2の画像処理装置は、制御プログラムを格納するための不揮発性の記憶手段として、第1記憶手段3及び第2記憶手段4を有し、一方が現行の制御プログラムの格納用で主制御手段2に接続され、他方が更新制御プログラムの格納用で読込制御手段1に接続される。また、ネットワーク20からの要求に応じ更新制御プログラムがダウンロードされるたびに、更新制御プログラムの格納場所として第1記憶手段3と第2記憶手段4を交互に用いる、といった点で実施形態1と共通の設計概念に基づいている。
従って、基本的な構成は、図8に示すように、図1に示した実施形態1の構成と変わりがない。即ち、いずれも、主制御手段2(2’)及び読込制御手段(1’)をそれぞれ第1記憶手段3と第2記憶手段4の一方から他方に切替える切替接続手段5,6を有し、この切替接続手段5,6それぞれの切替制御を行うための切替制御信号SEL2、SEL1を出力する手段を有する。
FIG. 8 is a block diagram showing a basic configuration of an image processing apparatus according to another embodiment of the present invention (hereinafter referred to as “embodiment 2”).
The image processing apparatus according to the second embodiment includes a first storage unit 3 and a second storage unit 4 as nonvolatile storage units for storing a control program, one of which is used for storing the current control program and is used for main control. The other is connected to the reading control means 1 for storing the update control program. In addition, the first storage unit 3 and the second storage unit 4 are alternately used as storage locations for the update control program every time the update control program is downloaded in response to a request from the network 20. Based on the design concept.
Accordingly, as shown in FIG. 8, the basic configuration is the same as that of the first embodiment shown in FIG. That is, both have switching connection means 5 and 6 for switching the main control means 2 (2 ′) and the read control means (1 ′) from one of the first storage means 3 and the second storage means 4, respectively, There is means for outputting switching control signals SEL2 and SEL1 for performing switching control of the switching connection means 5 and 6, respectively.

この実施形態と実施形態1との構成の違いは、上記した切替制御信号SEL2、SEL1を出力する手段を実施形態1では主制御手段2に設けていたが、この実施形態では、この手段を読込制御手段1’に設けるようにした点にある。
具体的には、この実施形態の読込制御手段1’は、実施形態1において図2の主制御部12(図1の主制御手段2に当たる)内に設けたメモリ選択部123に相当するメモリ選択手段(不図示)を有し、この手段によって、切替制御信号SEL2、SEL1を出力する一対の設定情報を管理する。なお、切替制御信号SEL2、SEL1は、実施形態1における信号と同じ機能を持ち、SEL1信号は、実行する制御プログラムを格納する記憶手段を選択し、SEL2信号は、ダウンロードされる更新制御プログラムを格納する記憶手段を選択するためにそれぞれ切替接続手段5,6を切替制御する信号である。
The difference between this embodiment and the first embodiment is that the means for outputting the switching control signals SEL2 and SEL1 described above is provided in the main control means 2 in the first embodiment, but in this embodiment, this means is read. The control means 1 ′ is provided.
Specifically, the read control unit 1 ′ of this embodiment is a memory selection corresponding to the memory selection unit 123 provided in the main control unit 12 of FIG. 2 (corresponding to the main control unit 2 of FIG. 1) in the first embodiment. A means (not shown) is provided, and a pair of setting information for outputting the switching control signals SEL2 and SEL1 is managed by this means. The switching control signals SEL2 and SEL1 have the same function as the signals in the first embodiment, the SEL1 signal selects a storage means for storing a control program to be executed, and the SEL2 signal stores a downloaded update control program. This is a signal for switching control of the switching connection means 5 and 6 in order to select the storage means to be performed.

この実施形態の読込制御手段1’は、メモリ選択手段(不図示)を備えたことで、読込制御手段1’の内部処理で、切替制御信号SEL2、SEL1を設定することができる。つまり、読込制御手段1’は、ネットワーク処理部11(図2)の機能を持ち、ネットワークから行われる更新制御プログラムのダウンロードの終了を検知しているので、検知したダウンロードの終了時を切替制御信号SEL2、SEL1の設定を変更するタイミングとして認識することができる。
実施形態1の場合、第1記憶手段3又は第2の記憶手段4を切替える際、切替制御信号SEL2、SEL1の設定を主制御手段2(図2の主制御部2に当たる)で行い、このためには、更新制御プログラムのダウンロードが終了したことを主制御手段2が検知する必要があり、ダウンロードの終了を読込制御手段1から通信ライン7を介して通知し、この通知を受けて主制御手段2が切替制御信号SEL2、SEL1を設定するという処理プロセスをとるので、タイミングにずれが生じる可能性がある。
この実施形態では、読込制御手段1’に切替制御信号SEL2、SEL1を設定するメモリ選択手段を設けたことにより、主制御手段2’を経ることなく、更新制御プログラムのダウンロードが終了後、即時に切替を行うことが可能になり、適正な動作を保つことができる。
The read control means 1 ′ of this embodiment is provided with a memory selection means (not shown), so that the switching control signals SEL2 and SEL1 can be set by internal processing of the read control means 1 ′. That is, since the read control unit 1 ′ has the function of the network processing unit 11 (FIG. 2) and detects the end of the download of the update control program performed from the network, the switching control signal indicates the end of the detected download. It can be recognized as the timing to change the setting of SEL2 and SEL1.
In the case of the first embodiment, when switching the first storage means 3 or the second storage means 4, the switching control signals SEL2 and SEL1 are set by the main control means 2 (corresponding to the main control unit 2 in FIG. 2). In this case, the main control means 2 needs to detect that the download of the update control program has been completed. The end of the download is notified from the read control means 1 via the communication line 7, and upon receipt of this notification, the main control means 2 2 takes the processing process of setting the switching control signals SEL2 and SEL1, so that there is a possibility that a difference in timing occurs.
In this embodiment, by providing memory selection means for setting the switching control signals SEL2 and SEL1 in the read control means 1 ′, immediately after the download of the update control program is completed without passing through the main control means 2 ′. It becomes possible to perform switching, and proper operation can be maintained.

図9は、本発明の他の実施形態(以下「実施形態3」という)の画像処理装置の基本構成を示すブロック図である。
図9に示す実施形態3の画像処理装置の構成は、上記した実施形態1の画像処理装置(図1)にウォッチドッグ手段8を付加したことを特徴とする。なお、図9に示す構成は、ウォッチドッグ手段8を付加した以外、図1の構成と変わりがない。
ウォッチドッグ手段8は、主制御手段2において使用する制御プログラムによる動作異常を検知する手段である。
ウォッチドッグ手段8を付加した画像処理装置の実施形態として、より具体的に回路構成を示す図2(実施形態1と共通)を参照して、以下本実施形態を説明する。図2の画像処理装置では、ウォッチドッグ手段として、ウォッチドッグタイマ18を付加した構成の例を示す。なお、図2に示すウォッチドッグタイマ18を実施形態2の画像処理装置(図8)へ付加しても同様に構成することができる。
FIG. 9 is a block diagram showing a basic configuration of an image processing apparatus according to another embodiment (hereinafter referred to as “Embodiment 3”) of the present invention.
The configuration of the image processing apparatus according to the third embodiment shown in FIG. 9 is characterized in that a watchdog unit 8 is added to the image processing apparatus according to the first embodiment (FIG. 1). The configuration shown in FIG. 9 is the same as the configuration shown in FIG. 1 except that the watch dog means 8 is added.
The watchdog unit 8 is a unit that detects an operation abnormality caused by a control program used in the main control unit 2.
As an embodiment of the image processing apparatus to which the watchdog means 8 is added, the present embodiment will be described below with reference to FIG. 2 (common to the first embodiment) showing the circuit configuration more specifically. In the image processing apparatus of FIG. 2, an example of a configuration in which a watchdog timer 18 is added as watchdog means is shown. Note that the same configuration can be achieved by adding the watchdog timer 18 shown in FIG. 2 to the image processing apparatus (FIG. 8) of the second embodiment.

図2に示す画像処理装置100に付加したウォッチドッグタイマ18は、主制御部12のCPU121の動作状態を監視する。
ウォッチドッグタイマ18は、内部にカウンタ(タイマ)を持ち、カウントUP動作を常時行っている。CPU121は、一定間隔でウォッチドッグタイマ18内のカウンタヘのリセット信号を出力する。ウォッチドッグタイマ18は、CPU121から一定間隔でカウンタのリセット信号を入力し、カウンタをリセットする。CPU121からリセット信号が入力されずにカウンタが最大値までカウントUPされると、ウォッチドッグタイマ18は、CPU121の動作異常と判断する。この実施形態では、ネットワーク20からダウンロードした直後の更新制御プログラムを起動したときにウォッチドッグタイマ18によってCPU121の動作異常が検知されたときに、異常に対応した処理を行えるようにする。
A watchdog timer 18 added to the image processing apparatus 100 shown in FIG. 2 monitors the operating state of the CPU 121 of the main control unit 12.
The watchdog timer 18 has a counter (timer) inside and always performs a count-up operation. The CPU 121 outputs a reset signal to the counter in the watchdog timer 18 at regular intervals. The watchdog timer 18 receives a counter reset signal from the CPU 121 at regular intervals, and resets the counter. When the counter is counted up to the maximum value without receiving a reset signal from the CPU 121, the watchdog timer 18 determines that the operation of the CPU 121 is abnormal. In this embodiment, when an operation abnormality of the CPU 121 is detected by the watchdog timer 18 when the update control program immediately after downloading from the network 20 is activated, processing corresponding to the abnormality can be performed.

図10は、更新制御プログラムの起動異常に対応する処理プロセスを付加したこの実施形態における不揮発性メモリに対するアクセス動作を示すシーケンス図である。
図10に示すシーケンス図は、上記図3のシーケンスに従って、実行する制御プログラムVer1が起動された後の「アップデート動作」の手順、即ち、ネットワーク20からアップデートの開始要求を受信し、CPU121がダウンロードした更新制御プログラムVer2を実行するまで、を前段の動作手順とし、更新制御プログラムの起動異常に対応する動作手順(図10中破線で囲んだ部分)を後段の動作手順とする。ただし、前段の「アップデート動作」の手順(シーケンスSq301〜Sq316)は、上記「アップデート動作」において、図4のシーケンスにもとづいて説明した通りであるから、ここでは、記載を省略し、先の説明を参照する。
FIG. 10 is a sequence diagram showing an access operation to the nonvolatile memory in this embodiment to which a processing process corresponding to an abnormal start of the update control program is added.
The sequence diagram shown in FIG. 10 is the procedure of “update operation” after the control program Ver1 to be executed is started according to the sequence of FIG. 3, that is, the update request received from the network 20 and downloaded by the CPU 121. Until the update control program Ver2 is executed, the operation procedure of the former stage is used, and the operation procedure corresponding to the activation abnormality of the update control program (the part surrounded by the broken line in FIG. 10) is the operation procedure of the latter stage. However, the procedure of the “update operation” in the previous stage (sequences Sq301 to Sq316) is the same as that described based on the sequence of FIG. 4 in the “update operation”, and therefore the description is omitted here. Refer to

図10のシーケンスSq301〜Sq316で「アップデート動作」の手順を行うことによって、CPU121は、不揮発性メモリ(2)14に格納した更新制御プログラムVer2を作業用のメモリに読出し、このプログラムによる処理を実行すべく起動を掛ける。
ここで、更新制御プログラムVer2が正常に起動できなかった場合、CPU121は、ウォッチドッグタイマ18へのカウンタリセット出力を停止する。
CPU121からのカウンタリセットが来ないために、ウォッチドッグタイマ18は、カウントアップし、異常が検知される。ウォッチドッグタイマ18は、起動異常を検知すると、CPU起動NG信号を主制御部12のメモリ選択部123へ出力する(シーケンスSq321)。なお、更新制御プログラムVer2が正常に起動できなかった場合のCPU起動NG信号の発生タイミングについては、図5のタイムチャートの最下部に示している。
The CPU 121 reads the update control program Ver2 stored in the non-volatile memory (2) 14 into the working memory by performing the procedure of “update operation” in the sequences Sq301 to Sq316 in FIG. 10, and executes processing by this program Start as much as possible.
If the update control program Ver2 cannot be started normally, the CPU 121 stops the counter reset output to the watchdog timer 18.
Since the counter reset from the CPU 121 does not come, the watchdog timer 18 counts up and an abnormality is detected. When the watchdog timer 18 detects an activation abnormality, it outputs a CPU activation NG signal to the memory selection unit 123 of the main control unit 12 (sequence Sq321). Note that the generation timing of the CPU activation NG signal when the update control program Ver2 cannot be activated normally is shown at the bottom of the time chart of FIG.

CPU起動NG信号を受取ったメモリ選択部123は、CPU起動NG信号の入力時点で、一対の設定情報が、
SEL1信号=“L” かつ SEL2信号=“L”であれば、
SEL1信号=“H” かつ SEL2信号=“H”とし、
また、
SEL1信号=“H” かつ SEL2信号=“H”であれば、
SEL1信号=“L” かつ SEL2信号=“L”とし、
この設定情報を保持し、CPU121が不揮発性メモリ(1)13をアクセスできるようにする(シーケンスSq322)。
なお、図10の例では、
SEL1信号=“L” かつ SEL2信号=“L”であるから、
シーケンスSq322では、
SEL1信号=“H” かつ SEL2信号=“H”
に設定する。
The memory selection unit 123 that has received the CPU activation NG signal receives a pair of setting information at the time of input of the CPU activation NG signal.
If SEL1 signal = “L” and SEL2 signal = “L”,
SEL1 signal = “H” and SEL2 signal = “H”
Also,
If SEL1 signal = “H” and SEL2 signal = “H”,
SEL1 signal = “L” and SEL2 signal = “L”
The setting information is held, and the CPU 121 can access the nonvolatile memory (1) 13 (sequence Sq322).
In the example of FIG.
Since SEL1 signal = “L” and SEL2 signal = “L”,
In sequence Sq322,
SEL1 signal = “H” and SEL2 signal = “H”
Set to.

次いで、メモリ選択部123は、CPU121に対し、リセットを要求し、要求に従いCPU121は、不揮発性メモリをアクセスするための設定をリセットする(シーケンスSq323)。
この後、再起動の際に、CPU121は、
SEL1信号=“H” かつ SEL2信号=“H”
を設定して、不揮発性メモリ(1)13にアクセスし(シーケンスSq324)、実行する制御プログラム(ここでは、プログラムVer1)を作業用のメモリに読出し(シーケンスSq325)、プログラムVer1により処理を実行する。
Next, the memory selection unit 123 requests the CPU 121 to reset, and the CPU 121 resets the setting for accessing the nonvolatile memory according to the request (sequence Sq323).
Thereafter, upon restart, the CPU 121
SEL1 signal = “H” and SEL2 signal = “H”
Is set, the nonvolatile memory (1) 13 is accessed (sequence Sq324), the control program to be executed (here, program Ver1) is read to the working memory (sequence Sq325), and the process is executed by the program Ver1. .

上記のようにして、ネットワーク20からダウンロードした直後の更新制御プログラムを起動したときにウォッチドッグタイマ18によってCPU121の動作異常が検知されたときに、異常が発生する直前に使用していた制御プログラムに戻し再起動する処理を行う。
制御プログラムの格納状態の遷移をメモリマップにて示す図7中の(C)の下段は、異常が発生する直前に使用していた制御プログラムに戻し再起動する処理を行ったときの制御プログラムの格納状態を示す。同図には、再起動によって、異常が発生する直前に使用していたプログラムVer1をCPU121が使用できるようにした状態を示している。なお、図7中の(C)の上段は、ダウンロードした更新制御プログラムVer2が正常に起動できた場合の状態を示している。
As described above, when an operation abnormality of the CPU 121 is detected by the watchdog timer 18 when the update control program immediately after downloading from the network 20 is activated, the control program used immediately before the abnormality occurs Perform processing to return and restart.
The lower part of (C) in FIG. 7 showing the transition of the storage state of the control program in the memory map is the control program when the process of returning to the control program used immediately before the abnormality occurs and restarting is performed. Indicates the storage status. This figure shows a state in which the CPU 121 can use the program Ver1 used immediately before the occurrence of an abnormality by restarting. In addition, the upper part of (C) in FIG. 7 shows a state when the downloaded update control program Ver2 can be normally started.

本実施形態によると、ネットワーク20からダウンロードした更新制御プログラムを起動した時に動作異常が検知された場合に、更新直前のバージョンの制御プログラムで再起動することを可能にしたので、主制御部12の動作が止まることがなくなる。   According to the present embodiment, when an operation abnormality is detected when the update control program downloaded from the network 20 is activated, it is possible to restart with the version of the control program immediately before the update. The operation never stops.

本発明の実施形態1に係る画像処理装置の基本構成を示すブロック図である。1 is a block diagram showing a basic configuration of an image processing apparatus according to Embodiment 1 of the present invention. 図1の画像処理装置における回路構成をより具体化して示す図である。It is a figure which shows more concretely the circuit structure in the image processing apparatus of FIG. 画像処理装置(図2)の不揮発性メモリに対するアクセス動作(電源ON起動時)を示すシーケンス図である。It is a sequence diagram which shows the access operation (at the time of power ON starting) with respect to the non-volatile memory of an image processing apparatus (FIG. 2). 画像処理装置(図2)の不揮発性メモリに対するアクセス動作(アップデート動作時)を示すシーケンス図である。It is a sequence diagram which shows the access operation (at the time of an update operation | movement) with respect to the non-volatile memory of an image processing apparatus (FIG. 2). 不揮発メモリに対するアクセス動作に係る信号のタイムチャートを示す図である。It is a figure which shows the time chart of the signal which concerns on access operation with respect to a non-volatile memory. ネットワークから受取るデータの処理プロセスをタイムチャートにて示す図である。It is a figure which shows the processing process of the data received from a network with a time chart. 一対の不揮発性メモリに格納するデータのアクセス動作による遷移をメモリマップにて示す図である。It is a figure which shows the transition by the access operation | movement of the data stored in a pair of non-volatile memory with a memory map. 本発明の実施形態2に係る画像処理装置の基本構成を示すブロック図である。It is a block diagram which shows the basic composition of the image processing apparatus which concerns on Embodiment 2 of this invention. 本発明の実施形態3に係る画像処理装置の基本構成を示すブロック図である。It is a block diagram which shows the basic composition of the image processing apparatus which concerns on Embodiment 3 of this invention. 画像処理装置(図2)の不揮発性メモリに対するアクセス動作(更新制御プログラムの起動異常時)を示すシーケンス図である。It is a sequence diagram which shows the access operation (at the time of starting abnormality of an update control program) with respect to the non-volatile memory of an image processing apparatus (FIG. 2). 通信手段を介してプログラムをダウンロードする従来の画像処理装置を例示する図である。It is a figure which illustrates the conventional image processing apparatus which downloads a program via a communication means. プログラムをダウンロードする従来の画像処理装置の他の例を示す図である。It is a figure which shows the other example of the conventional image processing apparatus which downloads a program.

符号の説明Explanation of symbols

1・・読込制御手段、2・・主制御手段、3・・第1記憶手段、4・・第2記憶手段、5,6・・切替接続手段、8・・ウォッチドッグ手段、11・・ネットワーク処理部、12・・主制御部、121・・CPU、123・・メモリ選択部、125・・起動情報格納メモリ、13・・不揮発性メモリ(1)、14・・不揮発性メモリ(2)、15,16・・双方向バッファ、18・・ウォッチドッグタイマ、20・・ネットワーク。 1 .... Read control means 2 .... Main control means 3 .... First storage means 4 .... Second storage means 5, 6 .... Switch connection means 8, ... Watch dog means 11, ... Network Processing unit, 12 ..Main control unit, 121... CPU, 123 ..Memory selection unit, 125 ..Startup information storage memory, 13..Non-volatile memory (1), 14.. 15, 16 ... Bidirectional buffer, 18 ... Watchdog timer, 20 ... Network.

Claims (4)

制御プログラムに従ってコンピュータを動作させることにより画像処理に必要な動作を制御する手段を有する画像処理装置であって、
前記制御プログラムに従って画像処理動作を制御する主制御手段と、
外部から入力されてくる更新制御プログラムを読込む読込制御手段と、
前記主制御手段と前記読込制御手段とにそれぞれ接続可能な第1記憶手段と、
前記主制御手段と前記読込制御手段とにそれぞれ接続可能な第2記憶手段と、
前記主制御手段との接続を前記第1記憶手段と前記第2記憶手段の一方から他方に切替える第1切替接続手段と、
前記読込制御手段との接続を前記第1記憶手段と前記第2記憶手段の一方から他方に切替える第2切替接続手段とを有し、
前記読込制御手段は、前記第1記憶手段と前記第2記憶手段のうち、実行する前記制御プログラムが格納される方を前記主制御手段に接続するように第1切替接続手段を切替制御すると同時に、前記制御プログラムが格納されない方を前記読込制御手段に接続するように第2切替接続手段を切替制御する手段を備え、
かつ、外部から入力される更新制御プログラムを、前記第1記憶手段と前記第2記憶手段のうち、前記第2切替接続手段によって接続される方に、直接読込む制御を行うことを特徴とする画像処理装置。
An image processing apparatus having means for controlling operations necessary for image processing by operating a computer according to a control program,
Main control means for controlling the image processing operation according to the control program;
Read control means for reading an update control program input from outside,
First storage means connectable to the main control means and the read control means,
Second storage means connectable to the main control means and the read control means,
First switching connection means for switching the connection with the main control means from one of the first storage means and the second storage means;
A second switching connection means for switching the connection with the read control means from one of the first storage means and the second storage means to the other;
At the same time as the read control means switches the first switching connection means so as to connect the first storage means and the second storage means, which stores the control program to be executed, to the main control means. And means for controlling the switching of the second switching connection means so as to connect the reading control means to the one not storing the control program,
The update control program inputted from the outside is controlled to be directly read into the first storage means and the second storage means connected by the second switching connection means. Image processing device.
請求項1に記載された画像処理装置において、
前記読込制御手段は、前記更新制御プログラムの読込完了を検知し、読込完了を前記制御手段に通知する手段と、読込完了の検知時に、前記制御手段が当該更新制御プログラムを実行プログラムとしてアクセスし、かつ新たな更新制御プログラムの読込を可能にするために、前記第1切替接続手段及び第2切替接続手段の切替え制御条件の設定を変更する手段を備え、
前記制御手段は、前記読込制御手段から更新制御プログラムの読込完了通知を受け、次回に制御プログラムを起動する時に、当該更新制御プログラムを実行プログラムとしてアクセスするために、適応するアクセス制御条件を設定する手段を備えたことを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The read control means detects completion of reading of the update control program, notifies the main control means of read completion, and the main control means accesses the update control program as an execution program upon detection of read completion. And a means for changing the setting of the switching control condition of the first switching connection means and the second switching connection means in order to enable reading of a new update control program,
The main control means receives an update completion notification of the update control program from the read control means, and sets an appropriate access control condition to access the update control program as an execution program when the control program is started next time An image processing apparatus comprising means for performing the processing.
請求項1又は2に記載された画像処理装置において、
前記制御プログラムの動作異常を検知する異常検知手段と、
前記異常検知手段が動作異常を検知したことを条件に、前記第1切替接続手段及び第2切替接続手段の切替制御条件の設定を変更する手段を有したことを特徴とする画像処理装置。
In the image processing apparatus according to claim 1 or 2,
An abnormality detecting means for detecting an operation abnormality of the control program;
An image processing apparatus comprising: means for changing a setting of a switching control condition of the first switching connection means and the second switching connection means on condition that the abnormality detection means detects an operation abnormality.
制御プログラムに従って実行する画像処理動作を制御する主制御手段、外部から入力されてくる更新制御プログラムを読込む読込制御手段の各制御手段と前記各制御手段がそれぞれアクセス可能な第1記憶手段と第2記憶手段との接続を、一方の記憶手段から他方の記憶手段に切替制御し、接続した記憶手段に対し前記各制御手段からのアクセスを行うアクセス制御方法であって、
前記読込制御手段は、前記第1記憶手段と前記第2記憶手段のうち、実行する前記制御プログラムが格納される方を前記主制御手段に接続するように切替制御すると同時に、前記制御プログラムが格納されない方を前記読込制御手段に接続するように切替制御し、かつ外部から入力される更新制御プログラムを、前記第1記憶手段と前記第2記憶手段のうち、前記制御プログラムが格納されない方の記憶手段に直接読込む制御を行うことを特徴とするアクセス制御方法。
Main control means for controlling an image processing operation executed in accordance with the control program, each control means for reading control means for reading an update control program inputted from the outside, and a first storage means and a first storage means accessible by each of the control means, respectively 2 is an access control method for controlling the connection with the storage means from one storage means to the other storage means, and accessing the connected storage means from each of the control means,
The reading control means performs switching control so as to connect the one storing the control program to be executed, of the first storage means and the second storage means, to the main control means, and at the same time storing the control program The update control program that is switched so as to be connected to the read control means and an externally input update control program is stored in the first storage means and the second storage means in which the control program is not stored. An access control method characterized by performing control to read directly into a means.
JP2008055305A 2008-03-05 2008-03-05 Image processing apparatus and access control method Expired - Fee Related JP5080318B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008055305A JP5080318B2 (en) 2008-03-05 2008-03-05 Image processing apparatus and access control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008055305A JP5080318B2 (en) 2008-03-05 2008-03-05 Image processing apparatus and access control method

Publications (2)

Publication Number Publication Date
JP2009211537A JP2009211537A (en) 2009-09-17
JP5080318B2 true JP5080318B2 (en) 2012-11-21

Family

ID=41184600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008055305A Expired - Fee Related JP5080318B2 (en) 2008-03-05 2008-03-05 Image processing apparatus and access control method

Country Status (1)

Country Link
JP (1) JP5080318B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5431111B2 (en) * 2009-10-22 2014-03-05 株式会社日立製作所 Information processing apparatus and system setting method
DE102011102425A1 (en) * 2011-05-24 2012-11-29 Heidelberger Druckmaschinen Ag Simultaneous software update
JP5911271B2 (en) * 2011-11-21 2016-04-27 キヤノン株式会社 Information processing apparatus, control method thereof, and control program
JP6432199B2 (en) * 2014-08-05 2018-12-05 日本電気株式会社 Information processing system, information processing apparatus, control method, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05342009A (en) * 1992-06-11 1993-12-24 Toshiba Corp Program class managing device for computer
JP2002207605A (en) * 2000-11-13 2002-07-26 Matsushita Electric Ind Co Ltd Device and method for information processing
JP4443213B2 (en) * 2003-12-26 2010-03-31 富士通株式会社 Communication device

Also Published As

Publication number Publication date
JP2009211537A (en) 2009-09-17

Similar Documents

Publication Publication Date Title
KR101515260B1 (en) Information processing apparatus capable of appropriately executing shutdown processing, method of controlling the information processing apparatus, and storage medium
EP1909474B1 (en) Image processor and its control method
JP6103909B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP5438371B2 (en) Image processing apparatus and image processing method
JP5080318B2 (en) Image processing apparatus and access control method
US9244692B2 (en) Information processing apparatus, control method for information processing apparatus, and program to stop supply of clock to a DSP
JP5984326B2 (en) Information processing apparatus, program update method, and program
JP4246672B2 (en) Image forming apparatus and image forming apparatus control method
JP2015022681A (en) Information processing apparatus and software update method for information processing apparatus
JP2008158991A (en) Control system for nand type flash memory
JP7267692B2 (en) Image forming device for updating firmware
JP5011780B2 (en) Information processing apparatus and activation method thereof
JP5895609B2 (en) Information processing apparatus, image forming apparatus, and program
US10447886B2 (en) Image processing apparatus for updating a non-volatile memory and method controlling image processing apparatus
JP6459543B2 (en) Image forming apparatus, job processing control method, and job processing control program
JP7404780B2 (en) Information processing device, update method and update program for information processing device
JP5383722B2 (en) Information processing device
JP7180463B2 (en) image forming device
JP4622325B2 (en) Image forming apparatus and control program for image forming apparatus
JP5645630B2 (en) Information processing apparatus, stopping method, and program
JP6464657B2 (en) Image processing apparatus, program update method, and computer program
JP6248910B2 (en) Image processing apparatus and program backup method
JP5734469B2 (en) MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, AND PROGRAM
JP2005210582A (en) Image forming apparatus
JP2004355067A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101008

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120611

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120809

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120810

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120827

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120830

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150907

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5080318

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees