JP5471466B2 - Image processing device exclusive control apparatus, control method, program, and recording medium - Google Patents

Image processing device exclusive control apparatus, control method, program, and recording medium Download PDF

Info

Publication number
JP5471466B2
JP5471466B2 JP2010004111A JP2010004111A JP5471466B2 JP 5471466 B2 JP5471466 B2 JP 5471466B2 JP 2010004111 A JP2010004111 A JP 2010004111A JP 2010004111 A JP2010004111 A JP 2010004111A JP 5471466 B2 JP5471466 B2 JP 5471466B2
Authority
JP
Japan
Prior art keywords
image processing
processing device
access
task
exclusive control
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
JP2010004111A
Other languages
Japanese (ja)
Other versions
JP2011145761A (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 JP2010004111A priority Critical patent/JP5471466B2/en
Publication of JP2011145761A publication Critical patent/JP2011145761A/en
Application granted granted Critical
Publication of JP5471466B2 publication Critical patent/JP5471466B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、画像処理デバイスアクセス要求が競合する画像処理デバイス制御に関し、特に画像処理デバイスごとに画像処理デバイスアクセスの競合を防止する排他制御に関する。   The present invention relates to image processing device control in which image processing device access requests compete, and particularly to exclusive control for preventing image processing device access contention for each image processing device.

CCD(Charg Coupled Device)光電変換素子からなるラインセンサを用いた読み取り装置や、レーザー照射によるトナー書き込み装置の発展により、アナログ複写機からデジタル化された画像データにてコピーを作成するデジタル複写機が登場した。   With the development of a reading device using a line sensor composed of a CCD (Charge Coupled Device) photoelectric conversion element and a toner writing device by laser irradiation, a digital copying machine that creates a copy with image data digitized from an analog copying machine Appeared.

デジタル複写機となってからは、デジタル画像データを扱う他の装置との親和性が高まり、複写機としての機能だけでなく、ファクシミリ機能、プリンタ機能、スキャナ機能等、いろいろな機能と複合し、単なるデジタル複写機ではなく、デジタル複合機(MFP:Multifunction Peripheral)と呼ばれるようになった。   Since becoming a digital copier, compatibility with other devices that handle digital image data has increased, and not only functions as a copier, but also functions such as a facsimile function, printer function, scanner function, etc. It has come to be called a digital multifunction peripheral (MFP) instead of a mere digital copier.

HDDドライブ等メモリの大容量化・低コスト化、ネットワーク等通信技術の高速化や普及、CPU(Central Processing Unit)の処理能力の向上、デジタル画像データに関連する技術(圧縮技術等)等々、MFPに関連する技術の進化に伴い、MFPに搭載される機能も多種・多様化してきている。   Increase in capacity and cost of memory such as HDD drives, increase and spread of communication technology such as network, improvement of CPU (Central Processing Unit) processing capability, technology related to digital image data (compression technology, etc.), etc. MFP With the evolution of technology related to, the functions installed in MFPs have also been diversified and diversified.

またMFPの使われ方も多種・多様化してきている。例えばPCの横にペアで設置され、操作者が手軽に複写機・ファクシミリ・プリンター・スキャナの機能を使用することができる小型MFPと呼ばれる物。部署や課単位の複数名で共有され、ある程度の生産性やソート・パンチ・ステープル等の機能が使用できる中型MFPと呼ばれる物。企業の中で複写関連業務を集中して行なう部署、もしくは複写関連業務そのものを生業とする会社などでは、高生産性・高品位で、多機能な大型MFPと呼ばれる物が使用されている。   In addition, the way in which MFPs are used has become diverse and diverse. For example, a small MFP that is installed in pairs next to a PC and allows the operator to easily use the functions of a copier, facsimile, printer, and scanner. A medium-sized MFP that can be shared by multiple people in each department or section and can use functions such as a certain level of productivity and sorting, punching, and stapling. In a company where departments that focus on copying-related work or companies that make copying-related work itself live, high-productivity, high-quality, multifunctional large-sized MFPs are used.

このように、小型から大型まで多様化してきているMFPは、各クラスに亘って共有できる機能も存在するが、そのクラスごとに要求が強い機能も存在する。例えば大型MFPではパンチ・ステープル・紙折り等、プロット後の紙に対する後加工や、複写業務と同時に電子ファイリング化すること等が求められ、小型MFPではインターネットFAXやPC−FAX等の充実や、パーソナル的な使用目的として、専用紙に対する高品位画像印刷等が求められている。   As described above, MFPs that have been diversified from small to large have functions that can be shared across classes, but there are also functions that are strongly required for each class. For example, large MFPs require post-processing on paper after plotting, such as punching, stapling, and paper folding, and electronic filing at the same time as copying operations. Smaller MFPs include enhancements such as Internet FAX and PC-FAX. As a typical purpose of use, high-quality image printing on dedicated paper is required.

このように多種・多様化してきているMFP市場に対して、従来は各クラスに必要な機能をセットにしたシステムを構築し、販売・提供していた。   In the MFP market, which has been diversified and diversified as described above, a system having a set of functions required for each class has been constructed, sold, and provided.

また、ビジネスにおける情報価値の重要性は既に認知されており、情報を早く・正確に・確実に伝えるだけでなく、分かりやすく・効果的に伝えることも要求されている。そして通信技術の高速化/普及化・メモリの大容量化/低コスト化/小型化・PCの高性能化にともない、デジタルデータを利用した情報を効率的にあつかう新しい機能が提供されてきており、デジタルデータの一部であるデジタル画像データを扱うMFPにも、新機能の提供や融合が望まれてきている。   In addition, the importance of information value in business is already recognized, and it is required not only to convey information quickly, accurately and reliably, but also to convey it in an easy-to-understand and effective manner. And with the speeding up / spreading of communication technology, the increase in memory capacity / cost reduction / downsizing, and the high performance of PCs, new functions for efficiently handling information using digital data have been provided. Also, it has been desired that MFPs that handle digital image data, which is a part of digital data, provide new functions and fuse.

さらに製品も多機能化してきており、多くの要求を操作部で設定可能になり、その多くの要求を制御する画像処理制御装置が必要になってきた。また、従来のハードウェア(ASIC)に比べデジタルシグナルプロセッサ(DSP:デジタルシグナルプロセッサ)はプログラムやデータを入れ替えることによってさまざまな画像処理を実現可能にするものである。しかし、画像処理のバリエーションが増えた一方、そのDSPを制御する制御装置は煩雑になってしまう。さらに、仕様変更が容易に行なえるので画像処理制御は多々発生が予想される仕様変更に対し、早急にかつ確実に対応していかなければならなくなってきた。   Furthermore, products have become more multifunctional, and many requests can be set by the operation unit, and an image processing control apparatus that controls many requests has become necessary. Compared with conventional hardware (ASIC), a digital signal processor (DSP: digital signal processor) can implement various image processing by exchanging programs and data. However, while the variation in image processing has increased, the control device for controlling the DSP becomes complicated. Furthermore, since the specification can be easily changed, the image processing control has to deal with the specification change that is expected to occur frequently and promptly and reliably.

そして、操作部からのさまざまな要求を満たす画像処理制御装置だけではなく、柔軟に仕様変更に対応できることが望まれている。ただし、DSPはASICに比べ高価であるので、変更があまり起こらないような画像処理に対してはASICで画像処理を実現している。このように画像処理を実現するデバイスも用途によって選択、あるいは両立するので、その制御装置が必要になっている。   It is desired that not only an image processing control apparatus that satisfies various requirements from the operation unit but also a specification change can be flexibly handled. However, since DSP is more expensive than ASIC, image processing is realized by ASIC for image processing that does not change much. In this way, a device that realizes image processing is also selected or compatible depending on the application, so that a control device is required.

そこで、μITRON(Micro Industrial TRON)準拠の組込み系ソフトウェアの問題領域において複数のタスクから画像処理デバイスをアクセスする必要ができ排他制御が必要になっている。しかし、既存のRTOS(Real−time operating system)のセマフォやPC上で動作する一般的なアプリケーションにおける排他制御を適用すると、他のタスクの動作を止めたり、タスクごとに割り当てられた時間に対してタスク間のやり取りが発生して画像処理デバイスにアクセスするタスクで待ちが発生するという問題があった。従って、タスクに割り当てられた時間に対して画像処理デバイスをアクセスするタスクは最小単位の処理(以下スレッド)を実行に対し出来るだけ待ちが発生しない排他方式が必要になる。   Therefore, it is necessary to access the image processing device from a plurality of tasks in the problem area of embedded system software compliant with μITRON (Micro Industrial TRON), and exclusive control is required. However, if exclusive control is applied to existing RTOS (Real-time operating system) semaphores or general applications that run on a PC, the operation of other tasks is stopped or the time allocated for each task is reduced. There is a problem that waiting occurs in a task accessing an image processing device due to an exchange between tasks. Therefore, a task that accesses the image processing device with respect to the time allocated to the task needs an exclusion method that does not wait as much as possible for execution of the minimum unit processing (hereinafter referred to as a thread).

また、組込み系ソフトウェアは複数のタスクを起動し、時分割でタスクごとに割り当てられた優先順位に従って実行されていることや、1タスクは1スレッドごとに処理されることや、タスク間はメモリを共有できないため、情報のやり取りは同期/非同期のタスク間通信をすることはμITRONの仕様として既に知られている。   Embedded software starts multiple tasks and is executed according to the priority assigned to each task in a time-sharing manner. One task is processed for each thread. Since information cannot be shared, it is already known as μITRON specifications that information is exchanged between synchronous and asynchronous tasks.

しかし、今までのμITRON準拠の組込み系ソフトウェアにおける画像処理デバイス制御においては、複数のタスクによる画像処理デバイスアクセスにおいて、不整合が起きないようにセマフォ(Semaphore)管理を行っていた。この方法では先に画像処理デバイスへアクセスを開始したタスクが画像処理デバイス制御を独占してその制御を実行している間は他のタスクに処理が切り替わることがなくなり他のタスクの実行を止めてしまうため、画像処理デバイス制御が完了しないと他のタスクの制御を実行することができず、すぐに処理をする必要があるタスク内の処理実行が遅れるという問題があった。   However, in conventional image processing device control in μITRON-compliant embedded software, semaphore management has been performed so that inconsistency does not occur in image processing device access by a plurality of tasks. In this method, while the task that started the access to the image processing device monopolizes the image processing device control and executes that control, the processing is not switched to the other task and the execution of the other task is stopped. Therefore, if the image processing device control is not completed, control of other tasks cannot be executed, and there is a problem that processing execution in a task that needs to be processed immediately is delayed.

例えば特許文献1においては、タスク排他制御方法及びタスク排他制御装置の発明が開示されている。   For example, Patent Document 1 discloses an invention of a task exclusive control method and a task exclusive control device.

しかし特許文献1に記載されている方法では、図1に示すように、タスク1が優先度をあげるとタスク1に割り当てられた時間に関係なく優先度を元に戻すまで処理を占有し続けるという問題がある。また、タスク2のスレッド2−1の処理は大幅にずらされる。特に画像処理デバイスアクセス実行で設定する量によりタスク1が処理を占有する時間が増加するという問題がある。   However, in the method described in Patent Document 1, as shown in FIG. 1, when task 1 increases the priority, the process continues to be occupied until the priority is restored regardless of the time allocated to task 1. There's a problem. In addition, the processing of the thread 2-1 of the task 2 is greatly shifted. In particular, there is a problem that the time for task 1 to occupy processing increases depending on the amount set in the image processing device access execution.

図1は、2つのタスクでタスク2の処理が遅れる例を示すが、実際のMFPは約50〜60タスクあり、制御が他のタスクと競合する画像処理デバイスアクセスをするタスク数や設定量に比例して次に行うタスクのスレッド実行が遅れるという問題がある。   FIG. 1 shows an example in which processing of task 2 is delayed by two tasks, but an actual MFP has about 50 to 60 tasks, and the number of tasks and the set amount of image processing device access that control conflicts with other tasks. There is a problem that the thread execution of the next task is delayed in proportion.

そこで図2に示すような、タスク内のスレッド処理が必要となる。画像処デバイスへアクセスする排他機構管理を設けスレッドの完了、生成のトリガーを送る管理を行う。画像処理デバイスにアクセスするタスクは画像処理デバイスアクセス許可、画像処理デバイスアクセス許可後のアクセスとスレッド処理を分割する。画像処理デバイスにアクセス許可を通知し次に要求されているスレッド処理に移行する。従って、タスクのスレッド管理は優先順位が無く受け付けた順番に処理を実行するため簡略化できる。また、スレッドに優先順位の概念が無いため画像処理デバイスをアクセスするタスク側のスレッド管理機構が簡略化できる。さらに、画像処理デバイスの状態に応じて画像処理デバイスを管理するタスクは画像処理デバイスアクセス要求を出すタスクを含め他のタスクに対して送るメッセージの内容を切り替えることが可能となる。   Therefore, thread processing in the task as shown in FIG. 2 is required. An exclusive mechanism management for accessing the image processing device is provided, and a thread completion and generation trigger is managed. The task for accessing the image processing device divides the image processing device access permission, the access after the image processing device access permission and the thread processing. The access permission is notified to the image processing device, and the next thread processing is requested. Accordingly, the thread management of tasks can be simplified because the processes are executed in the order received without priority. Further, since the thread has no concept of priority, the thread management mechanism on the task side for accessing the image processing device can be simplified. Furthermore, the task of managing the image processing device according to the state of the image processing device can switch the contents of messages sent to other tasks including the task of issuing an image processing device access request.

そこで本発明は、上記問題点に鑑みてなされたもので、画像処理デバイス制御において不整合が起きない排他制御を行うことを目的とする。   Accordingly, the present invention has been made in view of the above-described problems, and an object thereof is to perform exclusive control that does not cause inconsistency in image processing device control.

上記課題を解決するため、本発明に係る画像処理デバイス排他制御装置は、1以上のタスクで画像データに対して画像処理を行う画像処理デバイスへのアクセス要求が競合する場合の画像処理デバイス制御であって、1以上のタスクからアクセスされる、デジタル画像データに対して画像処理を行う画像処理デバイスと、前記画像処理デバイスへのアクセスを制御する画像処理デバイス制御手段と、1スレッドを実行するタスク単位で、複数のタスクを非同期で実行するCPUと、1以上のタスクで前記画像処理デバイス制御手段による画像処理デバイスアクセス要求が競合する場合に、前記画像処理デバイスごとに画像処理デバイスアクセスの競合を防止する排他制御手段と、を有し、前記排他制御手段は、画像処理デバイスアクセスを要求するタスクのスレッドの管理を行ない、画像処理デバイスアクセス要求時にスレッドを完了し、画像処理デバイスアクセスが可能になった場合には画像処理デバイスアクセスを要求するタスクに対して画像処理デバイスアクセス許可を通知し、画像処理デバイスアクセスを要求するタスクのスレッドを生成させて、画像処理デバイスアクセスを実行すると共に、前記画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容を、ライト要求とリード要求と画像処理デバイスの複数のタスクによる制御の競合状態と、に基づいて切り替えることを特徴とする。 In order to solve the above-described problems, the image processing device exclusive control apparatus according to the present invention is an image processing device control in a case where access requests to an image processing device that performs image processing on image data in one or more tasks compete. there are tasks to be performed are accessed from one or more tasks, an image processing device for performing image processing on the digital image data, an image processing device control means for controlling access to the image processing device, a thread When the image processing device access request by the image processing device control unit competes with the CPU that executes a plurality of tasks asynchronously with one or more tasks, the image processing device access contention occurs for each image processing device. It has a exclusive control means for preventing the said exclusion control unit, a main image processing device access If the image processing device access request is completed, the thread is completed. When the image processing device access is enabled, the task that requests the image processing device access is notified of the image processing device access permission. and, a thread of tasks that require the image processing device access by generating, the rewritable executes the image processing device access the contents of the message transmission to be notified to the task that requests the image processing device access, and a write request Switching is performed based on a read request and a competition state of control by a plurality of tasks of the image processing device .

本発明により、画像処理デバイス制御において不整合が起きない排他制御を行うことが可能になる。   According to the present invention, it is possible to perform exclusive control that does not cause inconsistency in image processing device control.

従来の制御方法による問題点を示した図である。It is the figure which showed the problem by the conventional control method. 本発明の実施形態に係るタスク内のスレッド処理の関係を示した図である。It is the figure which showed the relationship of the thread process in the task which concerns on embodiment of this invention. 本発明の実施形態に係るイメージプロセッシングユニット(IPU)の例を示す図である。It is a figure which shows the example of the image processing unit (IPU) which concerns on embodiment of this invention. 本発明の実施形態に係るイメージプロセッシングユニット(IPU)における画像データの流れを示す図である。It is a figure which shows the flow of the image data in the image processing unit (IPU) which concerns on embodiment of this invention. 本発明の実施形態に係るアプリケーションと用いる画像データパスを示す図である。It is a figure which shows the image data path used with the application which concerns on embodiment of this invention. 本発明の実施形態に係るコントローラ部のCPUの制御装置と上位の制御装置と画像処理制御装置の関係を示す図である。It is a figure which shows the relationship between the control apparatus of CPU of the controller part which concerns on embodiment of this invention, a high-order control apparatus, and an image processing control apparatus. 本発明の実施形態に係る上位の制御装置と画像処理制御装置の呼び出しタイミングの例を示す図である。It is a figure which shows the example of the calling timing of the high-order control apparatus and image processing control apparatus which concern on embodiment of this invention. 本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)とハードウェア内の画像処理モジュールの例を示す図である。It is a figure which shows the example of the image processing module in a digital signal processor (DSP) and hardware concerning embodiment of this invention. 本発明の実施形態に係る画像処理デバイス制御タスクとアクセス管理タスクの関係を示す図である。It is a figure which shows the relationship between the image processing device control task which concerns on embodiment of this invention, and an access management task. 本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)にアクセスするタスクの制御フローの例を示す図である。It is a figure which shows the example of the control flow of the task which accesses the digital signal processor (DSP) which concerns on embodiment of this invention. 本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)のアクセス状況管理タスクの制御フローの例を示す図である。It is a figure which shows the example of the control flow of the access condition management task of the digital signal processor (DSP) which concerns on embodiment of this invention. 本発明の実施形態に係るアクセス状況管理タスクと情報I/Fとの例を示す図である。It is a figure which shows the example of the access status management task and information I / F which concern on embodiment of this invention. 本発明の実施形態に係るアクセス状況更新の処理フローの例を示す図である。It is a figure which shows the example of the processing flow of the access condition update which concerns on embodiment of this invention. 本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)アクセス要求とアクセス状況管理タスクのリスト要素の遷移の例を示す図である。It is a figure which shows the example of the transition of the list element of the digital signal processor (DSP) access request which concerns on embodiment of this invention, and an access condition management task. 本発明の実施形態に係るアクセスの優先順位を考慮したアクセス状況更新の処理フローの例を示す図である。It is a figure which shows the example of the processing flow of the access condition update which considered the priority of the access which concerns on embodiment of this invention. 本発明の実施形態に係るリードライトアクセスを考慮したDSPにアクセスするタスクの制御フローの例を示す図である。It is a figure which shows the example of the control flow of the task which accesses DSP which considers the read / write access which concerns on embodiment of this invention. 本発明の実施形態に係るリードライトアクセスを考慮したDSPのアクセス状況管理タスク制御フローの例を示す図である。It is a figure which shows the example of the access condition management task control flow of DSP which considered the read / write access which concerns on embodiment of this invention.

本発明の好適な実施の形態について以下に図等を参照して説明する。   Preferred embodiments of the present invention will be described below with reference to the drawings.

(実施例1)
図3は、本発明の一実施形態に係るイメージプロセッシングユニット(IPU)の例を示す図である。
Example 1
FIG. 3 is a diagram illustrating an example of an image processing unit (IPU) according to an embodiment of the present invention.

画像処理デバイスに、スキャナCCD301のランプが切れているかの確認やスキャナ画像補正を行うためのデジタルシグナルプロセッサ(DSP)305とハードウェア(ASIC)306と、プリンタ出力画像補正309とを適用した例である。   In this example, a digital signal processor (DSP) 305, hardware (ASIC) 306, and printer output image correction 309 for checking whether the lamp of the scanner CCD 301 is burned out or performing scanner image correction are applied to the image processing device. is there.

なお、本実施形態において画像処理デバイスをアクセスする制御ソフトである画像制御装置703の制御対象は、このデジタルシグナルプロセッサ(DSP)305と309とハードウェア(ASIC)306であり、パワーサプライユニット(PSU)303や一次記憶装置308への画像の転送や、画像データの画像処理デバイス305と306と309への入出力のタイミングを管理するのはMFPシステム内に組み込まれている後述する上位の制御装置602になる。   Note that the control targets of the image control apparatus 703, which is control software for accessing the image processing device in this embodiment, are the digital signal processors (DSP) 305 and 309 and the hardware (ASIC) 306, and the power supply unit (PSU) ) A higher-level control device (described later) incorporated in the MFP system manages the timing of image transfer to 303 and the primary storage device 308 and the timing of input / output of image data to the image processing devices 305, 306, and 309. 602.

この上位の制御装置602と画像処理制御装置603はエンジン部(IPU)304の画像処理デバイスやスキャナCCD301やプリンタ302やPSU303を制御するCPU310内に組み込まれたソフトウェアを示している。   The higher-level control device 602 and the image processing control device 603 indicate software incorporated in an image processing device of the engine unit (IPU) 304, a CPU 310 that controls the scanner CCD 301, the printer 302, and the PSU 303.

上位の制御装置602や画像処理制御装置603は複数のタスクを起動しディスパッチにより割り当てられた時間に対し処理を切り替えて実行するCPU310内で起動されるタスクで、別のタスクに割り当てられている。   The host control device 602 and the image processing control device 603 are tasks activated in the CPU 310 that activates a plurality of tasks and switches the processing for the time allocated by dispatch, and is assigned to another task.

画像制御装置603は、デジタルシグナルプロセッサ(DSP)305と309と、ハードウェア(ASIC)306へ画像データを送り画像処理が開始される前までに最適な画像処理が画像処理デバイス305と306と309内で行えるように画像処理パラメータを設定することである。   The image control apparatus 603 sends image data to the digital signal processors (DSPs) 305 and 309 and the hardware (ASIC) 306 and performs optimum image processing before the image processing is started. The image processing parameters are set so as to be able to be performed within the network.

図4は、本発明の一実施形態に係るイメージプロセッシングユニット(IPU)における画像データの流れを示す図である。   FIG. 4 is a diagram showing a flow of image data in an image processing unit (IPU) according to an embodiment of the present invention.

本実施形態におけるMFPシステムでは、使用可能なアプリケーションとしてコピー、スキャナ、FAX(送信、受信)、プリントの4種類があり、それぞれの画像データの流れを示す。   In the MFP system according to the present embodiment, there are four types of applications that can be used: copy, scanner, FAX (transmission, reception), and printing, and the flow of each image data is shown.

図5は、本発明の一実施形態に係る、それぞれのアプリケーションと用いる画像データパスを示す図である。   FIG. 5 is a diagram showing an image data path used with each application according to an embodiment of the present invention.

図4と図5に示すように、コピーは、スキャナCCD301から画像処理デバイスであるデジタルシグナルプロセッサ(DSP)305とハードウェア306でスキャナ入力の画像に対する補正処理を行い、コントローラ部307に送られる。   As shown in FIGS. 4 and 5, the copy is corrected from the scanner CCD 301 by the digital signal processor (DSP) 305, which is an image processing device, and the hardware 306, and sent to the controller unit 307.

その後コントローラ部307から再びIPU304に画像データが送られ、画像処理デバイスであるデジタルシグナルプロセッサ309でプリンタ出力の画像に対する補正処理を行いプリンタ302へ画像データが送られて紙出力される。   Thereafter, the image data is sent again from the controller unit 307 to the IPU 304, the digital signal processor 309, which is an image processing device, performs a correction process on the printer output image, and the image data is sent to the printer 302 and output on paper.

スキャナ、FAX(送信)は、基本的にコピーのAの画像データパスになり、デジタルシグナルプロセッサ(DSP)305とハードウェア306で画像処理された画像データはコントローラ部307へ送られ、ローカルエリアネットワークLAN等のネットワークで接続されたクライアントPCやプリンタへ送信される。   The scanner and FAX (transmission) basically become an image data path of copy A, and the image data processed by the digital signal processor (DSP) 305 and the hardware 306 is sent to the controller unit 307, and the local area network The data is transmitted to a client PC or printer connected via a network such as a LAN.

プリンタ、FAX(受信)は、Bのコントローラ部307からデジタルシグナルプロセッサ(DSP)309でプリンタ出力の画像に対する補正処理を行いプリンタ302へ画像データが送られて紙出力される。   In the printer and FAX (reception), the B controller unit 307 performs correction processing on the printer output image by the digital signal processor (DSP) 309, and the image data is sent to the printer 302 to be output on paper.

図6は、本発明の一実施形態に係るコントローラ部のCPUの制御装置と上位の制御装置と画像処理制御装置の関係を示す図である。   FIG. 6 is a diagram illustrating a relationship among the CPU control device, the host control device, and the image processing control device of the controller unit according to the embodiment of the present invention.

コントローラ部307のCPU311の制御装置と上位の制御装置602と画像処理制御装置603の関係を示したものである。画像処理制御装置603は、コントローラ部307にある操作画面部(ユーザインターフェース)のユーザが指定する情報を上位の制御装置602を経由して送られる。   The relationship between the control device of the CPU 311 of the controller unit 307, the upper control device 602, and the image processing control device 603 is shown. The image processing control device 603 sends information specified by the user of the operation screen unit (user interface) in the controller unit 307 via the upper control device 602.

上位の制御装置602から送られてきたユーザが指定する情報(原稿モードや変倍率や濃さ設定等)を受け取り制御対象である画像処理デバイスのデジタルシグナルプロセッサ(DSP)305や309にプログラムやデータを、ハードウェア(ASIC)306にデータをダウンロードすることによって、ユーザに最適な画像を出力するように画像処理パラメータの設定を制御する。   A program or data is received by the digital signal processor (DSP) 305 or 309 of the image processing device that receives the information (original mode, scaling ratio, darkness setting, etc.) designated by the user sent from the host control device 602 and receives control. By downloading data to the hardware (ASIC) 306, the setting of image processing parameters is controlled so as to output an optimum image for the user.

上位の制御装置602は操作画面から設定されるユーザ情報を送ることと、画像処理制御装置603が処理を実装するための読み出しタイミングを制御する。   The host control device 602 sends user information set from the operation screen, and controls the read timing for the image processing control device 603 to implement processing.

画像処理制御装置603は読み出された事をトリガーにして呼び出された要求に従って処理を切り替える。   The image processing control device 603 switches processing according to the called request with the read-out as a trigger.

図7は、本発明の一実施形態に係る上位の制御装置と画像処理制御装置の呼び出しタイミングの例を示す図である。   FIG. 7 is a diagram illustrating an example of call timings of the host control device and the image processing control device according to the embodiment of the present invention.

上位の制御装置602と画像処理制御装置603の呼び出しタイミングの例を示したものである。   The example of the call timing of the high-order control apparatus 602 and the image processing control apparatus 603 is shown.

図7に示したように、上位の制御装置602はタスクごとに分割され、スキャナ入力やプロッタ出力に画像処理が必要になる設定を画像処理制御装置603が行っているため、設定の要求元はスキャンプロセスとプロッタプロセスの2つのプロセスになる。   As shown in FIG. 7, the upper control device 602 is divided for each task, and the image processing control device 603 performs settings that require image processing for scanner input and plotter output. There are two processes: a scanning process and a plotter process.

本実施形態におけるMFPのIPU構成では、スキャンとプロッタで別の画像処理デバイスで処理を行うため、図7に示したように要求タイミングが重なることがある。   In the IPU configuration of the MFP in the present embodiment, processing is performed by different image processing devices for scanning and plotter, so that the request timing may overlap as shown in FIG.

画像処理制御装置603は1画像処理の単位をプロセスとして管理していて、計算要求、設定要求、終了設定要求で1プロセス内の制御動作が完了する。   The image processing control apparatus 603 manages one image processing unit as a process, and the control operation in one process is completed by a calculation request, a setting request, and an end setting request.

計算要求は、画像処理パラメータを計算し画像処理デバイスに設定する画像処理パラメータを保持する。設定要求で、あらかじめ計算されて保持された画像処理パラメータの内容を画像処理デバイスに設定する。   The calculation request holds image processing parameters to be calculated and set in the image processing device. In response to the setting request, the contents of the image processing parameters calculated and held in advance are set in the image processing device.

終了設定要求では、保持した計算結果の開放等のメモリリークが起きないように後処理を実施する。   In the end setting request, post-processing is performed so that a memory leak such as release of the held calculation result does not occur.

スキャンプロセスは、画像処理デバイスが画像処理を開始する前までに計算要求と設定要求を送り画像処理デバイスが画像処理実行可能な状態にし、画像データを画像処理デバイスに送り画像処理を実行させ、終了設定要求を送り画像処理制御装置603の1プロセス制御を完了させる。   The scan process sends a calculation request and a setting request before the image processing device starts image processing so that the image processing device can execute image processing, sends image data to the image processing device, and executes image processing. A setting request is sent to complete one-process control of the image processing control apparatus 603.

本実施形態では、スキャンタスク、スキャンタスクから呼び出されて処理をするスキャナ画像処理タスク、プロッタタスク、プロッタタスクから呼び出されて処理をするプロッタ画像処理タスクが、画像処理デバイスにアクセス制御を行い、画像処理デバイス排他制御が、動作するタスクへ画像処理デバイスアクセス許可を送るタスクになる。画像処理デバイス排他制御装置は別タスクでの処理となる。   In the present embodiment, the scanner image processing task that is called from the scan task, the scan task, and the plotter task, and the plotter image processing task that is called from the plotter task for processing performs access control to the image processing device, and the image Processing device exclusive control becomes a task of sending an image processing device access permission to an operating task. The image processing device exclusive control apparatus performs processing in a separate task.

図8は、本発明の一実施形態に係るデジタルシグナルプロセッサ(DSP)とハードウェア内の画像処理モジュールの例を示す図である。   FIG. 8 is a diagram illustrating an example of a digital signal processor (DSP) and an image processing module in hardware according to an embodiment of the present invention.

デジタルシグナルプロセッサ(DSP)305と309とハードウェア(ASIC)306内の画像処理モジュールの一例を示したものである。本実施形態におけるMFPシステムのIPUに実装されている画像処理デバイスであるデジタルシグナルプロセッサ(DSP)305と309とハードウェア(ASIC)306内の画像処理内容を示した図である。   An example of an image processing module in digital signal processors (DSPs) 305 and 309 and hardware (ASIC) 306 is shown. 2 is a diagram showing image processing contents in digital signal processors (DSPs) 305 and 309 and hardware (ASIC) 306 which are image processing devices mounted on the IPU of the MFP system in the present embodiment. FIG.

デジタルシグナルプロセッサ(DSP)305とハードウェア(ASIC)309はスキャナCCD301入力の画像データを補正するためシェーディング補正801、フィルタ処理802、色変換処理803が実装されている。   A digital signal processor (DSP) 305 and hardware (ASIC) 309 are mounted with a shading correction 801, a filter process 802, and a color conversion process 803 to correct image data input to the scanner CCD 301.

デジタルシグナルプロセッサ(DSP)309はプリンタ302のための画像処理であり、プリンタ特性に合わせたγ処理804と階調処理805により入力と出力に要求される階調数が異なるため階調変換を行う。   A digital signal processor (DSP) 309 is an image process for the printer 302 and performs gradation conversion because the number of gradations required for input and output is different by the γ process 804 and the gradation process 805 according to the printer characteristics. .

本実施形態では画像処理制御装置が制御する対象モジュールはこの5つの画像処理モジュールとする。また、デジタルシグナルプロセッサ(DSP)305内のシェーディング補正処理801は、スキャンタスクでランプ切れ検知確認でアクセスし、スキャナ画像処理タスクではスキャナ入力の画像補正用に画像処理パラメータ設定を行うため、2つのタスクで制御が競合する画像処理とする。   In the present embodiment, the target modules controlled by the image processing control apparatus are the five image processing modules. Further, the shading correction processing 801 in the digital signal processor (DSP) 305 is accessed by the lamp task detection confirmation in the scan task, and the scanner image processing task sets image processing parameters for the image correction of the scanner input. It is assumed that image processing for which control competes with a task.

本実施形態の詳細について説明する。スキャンタスク、プロッタタスクなどの複数のタスクが画像処理デバイスにアクセスする制御に際して、以下の特徴を有する。   Details of this embodiment will be described. When controlling a plurality of tasks such as a scan task and a plotter task to access the image processing device, the following features are provided.

本実施形態においては、画像処理デバイスアクセスの許可を排他制御の管理をするタスクを用いる。画像処理デバイスへアクセス制御を行う要求元から画像処理デバイスアクセス要求を受け取ると、画像処理デバイスアクセスを管理するタスクは要求の受付とともにスレッドを完了する。   In this embodiment, a task for managing exclusive control of permission of image processing device access is used. When an image processing device access request is received from a request source that controls access to the image processing device, the task for managing the image processing device access completes the thread together with the reception of the request.

画像処理デバイスアクセス要求を出しているタスクにアクセス順番がまわってきたら、画像処理デバイスアクセスを管理するタスクから要求元がスレッドを生成するためのトリガーになる非同期で実行するメッセージを送る。   When the access order reaches the task that has issued the image processing device access request, a message to be executed asynchronously is sent from the task that manages the image processing device access as a trigger for the requester to generate a thread.

要求元から画像処理デバイスアクセス開放要求を受け取るとスレッドを完了し、要求元からの要求を削除することが特徴になっている。   A feature is that when an image processing device access release request is received from a request source, the thread is completed and the request from the request source is deleted.

図9は、本発明の一実施形態に係る画像処理デバイス制御タスクとアクセス管理タスクの関係を示す図である。   FIG. 9 is a diagram showing a relationship between an image processing device control task and an access management task according to an embodiment of the present invention.

画像処理デバイス305にアクセスするスキャンタスク901とスキャン画像処理タスク902と画像処理デバイスアクセス状況を管理するドライバ管理904、905と、画像処理デバイス305へのアクセス手段のドライバ906、907と画像処理デバイス(DSP)305と、の関係図になる。   A scan task 901 for accessing the image processing device 305, a scan image processing task 902, driver management 904 and 905 for managing the access status of the image processing device, drivers 906 and 907 for accessing the image processing device 305, and an image processing device ( DSP) 305.

矢印の方向によって、それぞれの関連と情報のやり取りを示している。   The direction of the arrow indicates the relationship and information exchange.

画像処理デバイスアクセスを管理するための管理を処理時間に余裕があるタスクAに割り当てる。タスクAの画像処理デバイスアクセス状況管理は制御が競合しない画像処理デバイスを含め全ての画像処理デバイスごとにある。   The management for managing the image processing device access is assigned to the task A having a sufficient processing time. The image processing device access status management of task A is for every image processing device including image processing devices that do not compete for control.

図10は、本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)にアクセスするタスクの制御フローの例を示す図である。   FIG. 10 is a diagram illustrating an example of a control flow of a task accessing the digital signal processor (DSP) according to the embodiment of the present invention.

デジタルシグナルプロセッサ(DSP)305にアクセスするタスクの制御フローの一例を示したものである。スキャンタスクや、スキャン画像処理タスクの処理フローを示している。   2 shows an example of a control flow of a task that accesses a digital signal processor (DSP) 305. The processing flow of a scan task and a scan image processing task is shown.

各タスク共通である、自タスクが管理するメッセージBOXのメッセージ確認処理1001を行いメッセージBOXにある最初のメッセージ(要求)から順番に処理を実行する。   The message confirmation processing 1001 of the message BOX managed by the own task, which is common to each task, is performed, and processing is executed in order from the first message (request) in the message BOX.

あらかじめスケジューリングされて自タスクの処理の処理時間中にメッセージが全てなくなった場合は、次タスクへ処理を移行させて自タスクの処理を完了する。メッセージを受け取ると必ずタスクはスレッド生成1002をする。生成されたスレッド内で具体的なそのタスクに割り当てられている処理を実行していく。スレッド完了1008で受信したメッセージに対する処理が完結し、次の受信したメッセージの処理に移行する。   If all the messages are scheduled during the processing time of the processing of the own task, the processing is shifted to the next task and the processing of the own task is completed. Whenever a message is received, the task performs thread generation 1002. The process assigned to the specific task is executed in the generated thread. The processing for the message received at thread completion 1008 is completed, and the processing shifts to the processing of the next received message.

生成したスレッドでDSP305にアクセス許可が必要な処理1003判断を行い、アクセス許可を行うスレッドである場合は、アクセス状況を管理するタスクに対し、ドライバ管理にアクセス許可をメッセージで通知1004を行いスレッド完了1008をする。   A process 1003 that requires access permission to the DSP 305 is determined with the generated thread, and if the thread is to perform access permission, the access management is notified of the access permission with a message 1004 to the task that manages the access status, and the thread is completed. 1008.

DSP305にアクセスをする処理1005である場合は、アクセス状況を管理するタスクからメッセージとともに後述するDSP305へアクセスするために必要な情報を受け取っていて、その情報を用いてドライバ管理から通知されたドライバを用いてDSP305アクセス実行1006を行ってDSP305へリードまたはライトアクセスを行う。   In the case of the processing 1005 for accessing the DSP 305, information necessary for accessing the DSP 305 (to be described later) is received together with a message from the task for managing the access status, and the driver notified from the driver management using the information is received. Use DSP 305 access execution 1006 to perform read or write access to DSP 305.

DSP305制御とは無関係な処理である場合は、DSP305アクセスしない処理を実行1007、スキャンタスクであれば、例えばスキャナのキャリッジ移動等の処理を行う。   If the process is not related to the DSP 305 control, a process that does not access the DSP 305 is executed 1007. If the process is a scan task, for example, a process such as carriage movement of the scanner is performed.

図11は、本発明の実施形態に係るデジタルシグナルプロセッサ(DSP)のアクセス状況管理タスクの制御フローの例を示す図である。   FIG. 11 is a diagram showing an example of the control flow of the access status management task of the digital signal processor (DSP) according to the embodiment of the present invention.

デジタルシグナルプロセッサ(DSP)305のアクセス状況管理タスクの制御フローの一例を示したものである。   2 shows an example of a control flow of an access status management task of a digital signal processor (DSP) 305.

図10で説明した各タスク共通の処理である1001、1002、1008は全てのタスクにおいて共通に行われる処理であるため、説明を省略する。タスクは、自タスクが管理するメッセージBOXにあるメッセージによりスレッドを生成し、処理を実行し、スレッドを完了して次のメッセージに対応する処理を実行する。メッセージは、自タスク内や他のタスクからメッセージとして通知されメッセージBOXで管理される。   Processes 1001, 1002, and 1008 that are common to each task described in FIG. 10 are processes that are performed in common in all tasks, and thus description thereof is omitted. The task generates a thread based on the message in the message BOX managed by its own task, executes the process, completes the thread, and executes the process corresponding to the next message. The message is notified as a message from its own task or from another task and is managed by the message BOX.

本実施形態においては、DSP305アクセス状況判断は、比較的処理時間に余裕があるタスクの処理に割り当てられるため、本来そのタスクに割り当てられた処理とDSP305アクセス状況判断の2つに分かれる。   In this embodiment, the DSP 305 access status determination is assigned to a process of a task having a relatively large processing time, and thus is divided into a process originally assigned to the task and a DSP 305 access status determination.

DSP305のアクセス状況判断スレッド1101の場合、アクセス状況更新1102を行う。アクセス状況更新1102の詳細なフローに関しては図13で説明する。   In the case of the access status determination thread 1101 of the DSP 305, an access status update 1102 is performed. A detailed flow of the access status update 1102 will be described with reference to FIG.

DSP305のアクセス状況判断スレッドでは無い場合、アクセス状況更新しない処理を実行1103して次のスレッドの処理を行う。   If it is not the access status determination thread of the DSP 305, processing for not updating the access status is executed 1103, and processing of the next thread is performed.

図12は、本発明の一実施形態に係るアクセス状況管理タスクと情報I/Fとの例を示す図である。   FIG. 12 is a diagram showing an example of an access status management task and information I / F according to an embodiment of the present invention.

DSP305にアクセスするタスクからDSP305のアクセス状況を管理するタスクへは、タスクID、要求ID、R/Wアクセス、優先順位、アクセスのデータ量を設定して、アクセス権ドライバ管理にアクセス許可をメッセージで通知1004を送る。   From a task that accesses the DSP 305 to a task that manages the access status of the DSP 305, a task ID, request ID, R / W access, priority, and access data amount are set, and an access permission message is sent to the access right driver management. A notification 1004 is sent.

本実施形態では、タスクIDはスキャンタスク:0、スキャナ画像処理タスク1にする。   In this embodiment, the task ID is set to scan task: 0 and scanner image processing task 1.

要求IDはアクセス取得と開放で同じ値なら何でも良い値にする。R/Wアクセスはリードアクセスなら0、ライトアクセスなら1を指定する。優先順位は、ランプ切れ検知確認のようにすぐにアクセスしたい要求である場合は高:0を設定し、それ以外の要求であれば通常アクセスである中:1を設定する。   The request ID is set to any value as long as it is the same value for access acquisition and release. For R / W access, 0 is specified for read access, and 1 is specified for write access. The priority is set to high: 0 for a request to be immediately accessed as in the lamp burnout detection confirmation, and set to medium: 1 for normal access for other requests.

アクセスのデータ量はアクセスするデータのサイズで正確な数値がわからない大量のデータアクセスをする場合は上限値(0xFFFF)を設定する。これらの情報を元にDSP305のアクセス状況を管理するタスクは、次にアクセス権を送るタスクを決定する。   The access data amount is set to an upper limit value (0xFFFF) when accessing a large amount of data for which the exact numerical value is not known depending on the size of the data to be accessed. Based on these pieces of information, the task for managing the access status of the DSP 305 determines the task to send the access right next.

図13は、本発明の実施形態に係るアクセス状況更新の処理フローの例を示す図である。   FIG. 13 is a diagram showing an example of an access status update processing flow according to the embodiment of the present invention.

アクセス状況更新1102の処理フローの一例を示したものである。(a)は複数のタスクでアクセスが競合する場合で、(b)は競合しない場合で、システムの初期化時にどちらかに決まる。   9 shows an example of a processing flow of access status update 1102. (A) is a case where access conflicts among a plurality of tasks, and (b) is a case where there is no conflict, which is determined when the system is initialized.

本実施形態ではDSP305にアクセスを管理する場合(a)になり、それ以外の画像処理デバイスでは(b)になる。   In this embodiment, the access is managed by the DSP 305 (a), and the other image processing devices are (b).

(a)は、アクセス要求に関するメッセージ受信1301している処理で、アクセス許可要求メッセージを受け取った場合、リストの状況判断1302を行う。リストに要求が無い場合はすぐにアクセス許可をメッセージで通知1303を要求したタスクに出して処理が完了する。   (A) is a process for receiving an access request message 1301. When an access permission request message is received, a list status determination 1302 is performed. If there is no request in the list, the access permission is immediately sent out to the task that requested the notification 1303 as a message, and the process is completed.

リストに要求がある場合はDSP305にアクセス中の可能性があるため、リスト最後に保存1304をしてリストにその要求を保存する。アクセス開放要求メッセージを受け取った場合、その要求に対するアクセスが完了したのでリストから削除1305を行う。   If there is a request in the list, there is a possibility that the DSP 305 is being accessed. When the access release request message is received, the access to the request is completed, and deletion 1305 is performed from the list.

削除した状態でリストの状況判断1302を行い、まだリストに要求が残っている状態であれば、アクセス待ちをしているタスクに対してリストの先頭の要求に対しアクセス許可をメッセージで通知1306を実行してメッセージを送り処理を完了する。   In the deleted state, the status of the list 1302 is determined. If there is still a request in the list, an access permission message 1306 is notified to the request waiting for access to the task waiting for access. Execute and send a message to complete the process.

(b)は、アクセス要求を受け取ると、複数のタスクでアクセスが競合していないので、すぐにアクセス許可をメッセージで通知1303を要求したタスクに出して処理が完了する。   In (b), when an access request is received, access is not competing among a plurality of tasks, so the access permission is immediately sent to the task that requested the notification 1303 and the processing is completed.

図14は、本発明の一実施形態に係るデジタルシグナルプロセッサ(DSP)アクセス要求とアクセス状況管理タスクのリスト要素の遷移の例を示す図である。   FIG. 14 is a diagram showing an example of transition of a list element of a digital signal processor (DSP) access request and an access status management task according to an embodiment of the present invention.

デジタルシグナルプロセッサ(DSP)305アクセス要求とアクセス状況管理タスクのリスト要素の遷移の一例を示したものである。   6 shows an example of a transition of a list element of a digital signal processor (DSP) 305 access request and an access status management task.

図14は、スキャンタスクとスキャナ画像処理タスクがアクセス要求、アクセス開放要求を行ったときのアクセス管理を行っているドライバ管理層が保持しているリスト内の要素の関係を示している。   FIG. 14 shows the relationship between the elements in the list held by the driver management layer that performs access management when the scan task and the scanner image processing task make an access request and an access release request.

スキャンタスクからアクセス要求1αを受け取ると、要求がまだ無いため、リストに保存してすぐにスキャンタスクにアクセス許可メッセージを送る。その状態でスキャナ画像処理タスクから要求2βが送られた場合リストに保存し、メッセージは送らない。アクセス権開放要求がきた場合、リストから要求1αを削除し、要求2βを送っているスキャナ画像処理タスクにアクセス許可メッセージを送る。DSP305へアクセスを行いアクセス権開放要求をしてリストから要求2βを削除して初期の何も要求がきていない状態に戻る。   When the access request 1α is received from the scan task, since there is no request yet, an access permission message is sent to the scan task immediately after saving in the list. In this state, when a request 2β is sent from the scanner image processing task, it is saved in the list and no message is sent. When an access right release request is received, the request 1α is deleted from the list, and an access permission message is sent to the scanner image processing task that is sending the request 2β. The DSP 305 is accessed, an access right release request is made, the request 2β is deleted from the list, and the state returns to the state where no initial request has been made.

(実施例2)
図15は、本発明の一実施形態に係るアクセスの優先順位を考慮したアクセス状況更新の処理フローの例を示す図である。
(Example 2)
FIG. 15 is a diagram showing an example of an access status update processing flow in consideration of the access priority according to an embodiment of the present invention.

アクセスの優先順位を考慮したアクセス状況更新1102の処理フローの一例を示したものである。図12のアクセス状況管理タスクとの情報I/Fにある優先順位にDSP305にアクセスするタスクは高、中を指定してアクセス状況を管理するタスクでDSP305アクセス要求を送る。   9 shows an example of a processing flow of access status update 1102 in consideration of access priority. The task that accesses the DSP 305 in the priority order in the information I / F with the access status management task in FIG. 12 sends a DSP 305 access request with a task that manages the access status by specifying high and medium.

アクセス状況管理タスクのアクセス状況更新1102の詳細のフローは図13とほぼ同じで、アクセス開放要求を受け取りリストに要求の要素が存在した場合、リストの順番と優先順位を考慮してアクセス許可をメッセージで通知1501にて、リストの先頭要素から優先順位高の要求を検索し、最初に条件にあった要求に対してアクセス許可メッセージを送る。   The detailed flow of the access status update 1102 of the access status management task is almost the same as in FIG. 13. When an access release request is received and a request element exists in the list, an access permission message is given in consideration of the order and priority of the list. In the notification 1501, a request with a high priority is searched from the top element of the list, and an access permission message is sent to the request that first satisfies the condition.

要素の最後まで優先順位高の要求が無い場合、リストの先頭に戻り今度はアクセスデータ量を検索する。リストの先にあり、アクセスデータ量がある閾値以下の要求に対してアクセス許可メッセージを送る。アクセスデータ量が多く時間がかかるアクセス要求はアクセス許可を出すタイミングを遅らせてアクセスデータ量が少ない処理を優先させる。   If there is no request for high priority until the end of the element, the process returns to the top of the list and this time searches the access data amount. An access permission message is sent in response to a request that is at the top of the list and whose access data amount is equal to or smaller than a threshold value. For an access request that requires a large amount of access data and takes a long time, priority is given to processing with a small amount of access data by delaying the timing of granting access permission.

(実施例3)
図16は、本発明の実施形態に係るリードライトアクセスを考慮したDSPにアクセスするタスクの制御フローの例を示す図である。
(Example 3)
FIG. 16 is a diagram showing an example of a control flow of a task for accessing a DSP in consideration of read / write access according to the embodiment of the present invention.

リードライトアクセスを考慮したデジタルシグナルプロセッサ(DSP)305にアクセスするタスクの制御フローの一例を示したものである。   2 shows an example of a control flow of a task that accesses a digital signal processor (DSP) 305 in consideration of read / write access.

DSP305にアクセスするタスクの制御フローを示していて基本的に図10で説明したフローと同じになる。   A control flow of a task that accesses the DSP 305 is shown and is basically the same as the flow described in FIG.

DSP305にアクセスをする処理1005を受け取ると、図12に示したアクセス状況管理タスクとの情報I/Fにあるドライバ識別子により直接アクセス0か、ディスクリプタアクセス1なのか判断する。   When the process 1005 for accessing the DSP 305 is received, it is determined whether it is direct access 0 or descriptor access 1 based on the driver identifier in the information I / F with the access status management task shown in FIG.

直接アクセスの場合、直接アクセス用ドライバを用いてDSP305アクセス実行1602をして今回設定が必要な差分のみ、CPUが直接アクセスできるようにメモリ上のアドレスにマッピングされたDSPのレジスタを示すアドレスに直接設定する。   In the case of direct access, the DSP 305 access execution 1602 is performed using a direct access driver, and only the difference that needs to be set this time is directly set to an address indicating a DSP register mapped to an address on the memory so that the CPU can directly access.

ディスクリプタアクセス用ドライバを用いてDSP305アクセス実行1603の場合、指定されたメモリのアドレスを示すポインタが、図12に示すドライバへのポインタに設定されているので、DSP305を動作させる全ての設定を指定されたメモリのアドレス上に設定する。   In the case of DSP305 access execution 1603 using a descriptor access driver, since the pointer indicating the address of the specified memory is set as the pointer to the driver shown in FIG. 12, all settings for operating the DSP305 are specified. Set it on the memory address.

ディスクリプタを用いたDSP305へのアクセス方法については従来からある技術であるため説明を省略する。   Since the access method to the DSP 305 using the descriptor is a conventional technique, the description thereof is omitted.

図17は、本発明の実施形態に係るリードライトアクセスを考慮したDSPのアクセス状況管理タスク制御フローの例を示す図である。   FIG. 17 is a diagram showing an example of a DSP access status management task control flow considering read / write access according to the embodiment of the present invention.

リードライトアクセスを考慮したデジタルシグナルプロセッサ(DSP)305のアクセス状況管理タスクの制御フローの一例を示したものである。   6 shows an example of a control flow of an access status management task of the digital signal processor (DSP) 305 in consideration of read / write access.

(a)のDSP305で複数のタスクで制御が競合する場合は、アクセス許可の順番が回ってきたタスクにメッセージを送る際にリードライドアクセス判断1701を行い、図12に示したドライバ識別子と、ドライバへのポインタに直接アクセスするドライバへのポインタかディスクリプタ用のドライバへのポインタを設定し、直接アクセス用のアクセス許可をメッセージで通知1702かディスクリプタアクセス用のアクセス許可をメッセージで通知1703を実行する。   When control conflicts among a plurality of tasks in the DSP 305 in (a), a read ride access determination 1701 is performed when a message is sent to a task whose access permission has been turned, and the driver identifier and driver shown in FIG. A pointer to a driver that directly accesses the pointer to the pointer or a pointer to the driver for the descriptor is set, and a notification 1702 of access permission for direct access or a notification 1703 of access permission for descriptor access is executed by a message.

メッセージ受信1301でアクセス開放要求メッセージを受け取ってかつリストに要求の要素がある場合も同じで、リードライドアクセス判断1701を行い、図12に示したドライバ識別子と、ドライバへのポインタに直接アクセスするドライバへのポインタかディスクリプタ用のドライバへのポインタを設定し、リストの先頭の要求に対し直接アクセス用のアクセス許可をメッセージで通知1704かリストの先頭の要求に対しディスクリプタアクセス用のアクセス許可をメッセージで通知1705を実行する。   The same applies when an access release request message is received in the message reception 1301 and there is a request element in the list. The read ride access determination 1701 is performed, and the driver identifier shown in FIG. 12 and the driver that directly accesses the driver pointer are accessed. And a pointer to the driver for the descriptor are set, and the access permission for direct access is notified by a message to the request at the head of the list 1704 or the access permission for descriptor access is notified by a message to the request at the head of the list 1705 Execute.

DSPアクセスが複数のタスクで競合しない場合の(b)はリード、ライト要求に関係なく、直接アクセス用のアクセス許可をメッセージで通知1702にて直接アクセス用のドライバを送る。   In the case (b) where the DSP access does not compete with a plurality of tasks, the driver for direct access is sent by the notification 1702 of the access permission for direct access regardless of the read / write request.

上記の実施形態によれば、μITRON準拠の組込み系ソフトウェアで実装された制御ソフトに対して、複数のタスクによる画像処理デバイスアクセスにおいて、それぞれのタスクごとに割り当てられた時間をそのタスク内のスレッド処理を効率的に実行する、かつ複数のタスクで画像処理デバイス制御において不整合が起きない排他制御を行うことができる。   According to the above-described embodiment, the time allocated for each task in the image processing device access by a plurality of tasks to the control software implemented by the μITRON-compliant embedded system software is processed in the thread. Can be performed efficiently, and exclusive control can be performed in a plurality of tasks so that inconsistency does not occur in image processing device control.

また上記の実施形態によれば、画像処理デバイスからの結果を取得して、その後の処理にフィードバックする処理の画像処理デバイスアクセスを優先させることによって、結果の内容によっては、すぐに停止させないといけないような処理を優先させて実行することができ、いち早くランプ切れのような異常状態の場合ユーザに通知することができる。   In addition, according to the above-described embodiment, priority is given to the image processing device access of the process of acquiring the result from the image processing device and feeding back to the subsequent process, and depending on the content of the result, the result must be stopped immediately. Such a process can be prioritized and executed, and the user can be notified of an abnormal condition such as a lamp burnout.

また上記の実施形態によれば、画像処理デバイスへの設定量によって画像処理デバイスアクセスを優先させることによって、画像データを画像処理デバイスへ送る前に設定する必要がある画像処理パラメータ設定を遅らせ、画像処理デバイス異常検知のような数レジスタアクセスして画像処理デバイスの異常判断する処理を優先させて実行することができ、いち早く画像処理デバイス異常のような異常状態の場合ユーザに通知することができる。   Further, according to the above-described embodiment, priority is given to image processing device access according to the set amount to the image processing device, thereby delaying image processing parameter setting that needs to be set before sending image data to the image processing device, and It is possible to prioritize and execute processing for judging abnormality of an image processing device by accessing several registers such as processing device abnormality detection, and to notify the user of an abnormal state such as an image processing device abnormality promptly.

また上記の実施形態によれば、画像処理デバイスのアクセス制御が競合している場合、ライト要求に対しては、ディスクリプタ情報を用いたDMA転送し、リード要求に対しては、直接アクセスする。競合していない場合は、ライトとリード要求に対して直接アクセスするように画像処理デバイスの制御の競合状況やライト、リード要求の要求に対してアクセス方法を使い分けることによって複数のタスクで画像処理デバイス制御において不整合が起きない排他制御を行ことができる。なぜならば、画像処理デバイスへのアクセスには制御CPUから直接アクセスと、画像処理デバイスに設定するパラメータをレジスタイメージとしてメモリ中に保持し、保持しているレジスタイメージのアドレスからパラメータに対するディスクリプタ情報を生成し、DMA転送することによって設定するディスクリプタアクセスがあるからである。   Further, according to the above-described embodiment, when the access control of the image processing device is competing, the DMA transfer using the descriptor information is performed for the write request, and the read request is directly accessed. If there is no conflict, control the image processing device with multiple tasks by using different access control methods for the image processing device control conflict status and write / read request requests so that the write and read requests are accessed directly. Exclusive control that does not cause inconsistency can be performed. This is because the image processing device is accessed directly from the control CPU, the parameters set in the image processing device are stored in the memory as register images, and descriptor information for the parameters is generated from the addresses of the stored register images. This is because there is a descriptor access set by DMA transfer.

また上記の実施形態によれば、複数のタスクで画像処理デバイスアクセス制御において競合が起きない排他制御において、アクセス要求が要求された場合、すぐにアクセス許可を送るようにすることによってアクセス要求をする制御ソフトの画像処理デバイスの他のタスクとの競合状態を意識しない共通化することと、排他機構の簡略化をすることができる。   Further, according to the above-described embodiment, when an access request is requested in exclusive control in which contention does not occur in a plurality of tasks in image processing device access control, an access request is made by sending an access permission immediately. The control software image processing device can be shared without being aware of the competition state with other tasks, and the exclusion mechanism can be simplified.

また上記の実施形態によれば、画像処理デバイスの競合を防止する排他制御をタスクが処理を実行する占有時間において比較的少ないタスクに割り当てることによってタスクごとの処理を均等化して全体の処理終了を早く完了し高速化することができる。   In addition, according to the above-described embodiment, the exclusive control for preventing the competition of the image processing devices is assigned to relatively few tasks in the occupation time in which the tasks execute processing, thereby equalizing the processing for each task and ending the entire processing. It can be completed quickly and speeded up.

また上記の実施形態によれば、画像処理デバイスはデジタルシグナルプロセッサ(DSP)でリードライトアクセスにおいて決められたプロトコルに従って制御が必要なDSPに対し不整合が起きない排他制御を行うことができる。   Further, according to the above-described embodiment, the image processing device can perform exclusive control that does not cause inconsistency for a DSP that needs to be controlled in accordance with a protocol determined in read / write access by a digital signal processor (DSP).

なお、上述する実施形態は、本発明の好適な実施形態であり、上記実施形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。   The above-described embodiment is a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiment alone, and various modifications are made without departing from the gist of the present invention. Implementation is possible.

そして、上記実施形態の機能を実現するソフトウェアのプログラムコードを記録したコンピュータ読み取り可能な記録媒体、すなわち記憶メディアを介して、画像処理装置や画像形成装置のコンピュータ(CPUやMPU)が記憶メディアに格納されたプログラムコードを読み出し実行することによっても、本発明の目的は達成される。   Then, the computer (CPU or MPU) of the image processing apparatus or the image forming apparatus stores the storage medium via the computer-readable recording medium that records the program code of the software that realizes the functions of the above-described embodiments, that is, the storage medium. The object of the present invention can also be achieved by reading and executing the programmed program code.

また、プログラムは、記録メディアを介さず、通信回線を通じて直接にコンピュータにロードし実行することもでき、これによっても同様に本発明の目的は達成される。   Further, the program can be loaded and executed directly on a computer through a communication line without going through a recording medium, and the object of the present invention can be achieved similarly.

この場合、記憶メディアから読み出された又は通信回線を通じてロードし実行されたプログラムコード自体が前述の実施形態の機能を実現することになる。そして、そのプログラムコードを記憶した記憶メディアは本発明を構成する。   In this case, the program code itself read from the storage medium or loaded and executed through the communication line realizes the functions of the above-described embodiment. And the storage medium which memorize | stored the program code comprises this invention.

また、プログラムコードを供給するための記憶メディアとしては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、不揮発性のメモリカード、ROM、磁気テープ等を用いることができる。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a nonvolatile memory card, a ROM, and a magnetic tape. Can be used.

また本発明に係る画像処理デバイス排他制御装置の前記排他制御手段は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求の画像処理内容と、に基づいて前記メッセージ送信内容と優先順位とを判断することを特徴とする。   In addition, the exclusive control unit of the image processing device exclusive control apparatus according to the present invention sends an access request to the image processing device with the content and priority of message transmission to be notified to the task requesting the image processing device access. The message transmission content and the priority order are determined based on the requested status information and the image processing content of the access request.

また本発明に係る画像処理デバイス排他制御装置の前記排他制御手段は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求のアクセス量と、に基づいて前記メッセージ送信内容と優先順位とを判断することを特徴とする。   In addition, the exclusive control unit of the image processing device exclusive control apparatus according to the present invention sends an access request to the image processing device with the content and priority of message transmission to be notified to the task requesting the image processing device access. The message transmission content and the priority order are determined based on the requested status information and the access amount of the access request.

また本発明に係る画像処理デバイス排他制御装置の前記排他制御手段は、前記画像処理デバイスアクセスを要求するタスクに対して通知する前記メッセージ送信の内容を、ライト要求とリード要求と画像処理デバイスの複数のタスクによる制御の競合状態と、に基づいて切り替えることを特徴とする。   In addition, the exclusive control unit of the image processing device exclusive control apparatus according to the present invention may include a plurality of write requests, read requests, and image processing devices for the content of the message to be notified to the task that requests the image processing device access. It is characterized in that switching is performed based on the control competition state by the task.

また本発明に係る画像処理デバイス排他制御装置の前記排他制御手段は、前記画像処理デバイスアクセスが1以上のタスクの処理で競合しない画像処理デバイスに割り当てられている場合、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージの内容を、画像処理デバイスへのアクセス要求をしている要求状況情報に基づかないで無条件にアクセス許可を通知することを特徴とする。   The exclusive control unit of the image processing device exclusive control apparatus according to the present invention requests the image processing device access when the image processing device access is assigned to an image processing device that does not compete in processing of one or more tasks. The content of the message notified to the task is not based on the request status information requesting access to the image processing device, and the access permission is notified unconditionally.

また本発明に係る画像処理デバイス排他制御装置の前記排他制御手段は、前記画像処理デバイスアクセスを実行させる場合、そのタスクが処理を実行する占有時間が少ないタスクに優先して割り当てることを特徴とする。   The exclusive control means of the image processing device exclusive control apparatus according to the present invention is characterized in that when the image processing device access is executed, the task is preferentially assigned to a task having a small occupation time for executing the process. .

また本発明に係る画像処理デバイス排他制御装置の前記画像処理デバイスは、デジタルシグナルプロセッサ(DSP)であることを特徴とする。   The image processing device of the image processing device exclusive control apparatus according to the present invention is a digital signal processor (DSP).

また本発明に係る画像処理デバイス排他制御方法の前記排他制御工程は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求の画像処理内容と、に基づいて前記メッセージ送信内容と優先順位とを判断することを特徴とする。   Further, the exclusive control step of the image processing device exclusive control method according to the present invention includes a request for access to the image processing device, and a message transmission content and priority order notified to a task requesting the image processing device access. The message transmission content and the priority order are determined based on the requested status information and the image processing content of the access request.

また本発明に係る画像処理デバイス排他制御方法の前記排他制御工程は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求のアクセス量と、に基づいて前記メッセージ送信内容と優先順位とを判断することを特徴とする。   Further, the exclusive control step of the image processing device exclusive control method according to the present invention includes a request for access to the image processing device, and a message transmission content and priority order notified to a task requesting the image processing device access. The message transmission content and the priority order are determined based on the requested status information and the access amount of the access request.

また本発明に係る画像処理デバイス排他制御方法の前記排他制御工程は、前記画像処理デバイスアクセスを要求するタスクに対して通知する前記メッセージ送信の内容を、ライト要求とリード要求と画像処理デバイスの複数のタスクによる制御の競合状態と、に基づいて切り替えることを特徴とする。   Further, the exclusive control step of the image processing device exclusive control method according to the present invention includes a plurality of write requests, read requests, and image processing devices for the content of the message to be notified to the task that requests the image processing device access. It is characterized in that switching is performed based on the control competition state by the task.

また本発明に係る画像処理デバイス排他制御方法の前記排他制御工程は、前記画像処理デバイスアクセスが1以上のタスクの処理で競合しない画像処理デバイスに割り当てられている場合、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージの内容を、画像処理デバイスへのアクセス要求をしている要求状況情報に基づかないで無条件にアクセス許可を通知することを特徴とする。   The exclusive control step of the image processing device exclusive control method according to the present invention requests the image processing device access when the image processing device access is assigned to an image processing device that does not compete in processing of one or more tasks. The content of the message notified to the task is not based on the request status information requesting access to the image processing device, and the access permission is notified unconditionally.

また本発明に係る画像処理デバイス排他制御方法の前記排他制御工程は、前記画像処理デバイスアクセスを実行させる場合、そのタスクが処理を実行する占有時間が少ないタスクに優先して割り当てることを特徴とする。   The exclusive control step of the image processing device exclusive control method according to the present invention is characterized in that when the image processing device access is executed, the task is preferentially assigned to a task having a small occupation time for executing the process. .

本発明によれば、デジタル複合機(MFP)、画像処理装置、画像形成装置及びプロセッサの制御方法や制御プログラム、画像処理デバイスの制御方法や制御プログラムなどの用途に適用できる。   The present invention can be applied to uses such as a digital multifunction peripheral (MFP), an image processing apparatus, an image forming apparatus, a processor control method and control program, and an image processing device control method and control program.

301 スキャナCCD
302 プリンタ
303 パワーサプライユニット(PSU)
304 エンジン部:イメージプロセッシングユニット(IPU)
305 デジタルシグナルプロセッサ(DSP)
306 ハードウェア(ASIC)
307 コントローラ部
308 一次記憶装置
309 プリンタ出力画像補正:デジタルシグナルプロセッサ(DSP)
310 CPU
311 CPU
602 上位の制御装置
603 画像処理制御装置
801 シェーディング補正
802 フィルタ補正
803 色変換処理
804 γ処理
805 階調処理
901 スキャンタスク
902 スキャン画像処理タスク
904、905 ドライバ管理
906、907 アクセス手段のドライバ
301 Scanner CCD
302 Printer 303 Power supply unit (PSU)
304 Engine part: Image processing unit (IPU)
305 Digital Signal Processor (DSP)
306 Hardware (ASIC)
307 Controller 308 Primary storage device 309 Printer output image correction: Digital signal processor (DSP)
310 CPU
311 CPU
602 High-level control device 603 Image processing control device 801 Shading correction 802 Filter correction 803 Color conversion processing 804 γ processing 805 Gradation processing 901 Scan task 902 Scan image processing task 904, 905 Driver management 906, 907 Driver of access means

特開2004−127039号公報JP 2004-127039 A

Claims (13)

1以上のタスクで画像データに対して画像処理を行う画像処理デバイスへのアクセス要求が競合する場合の画像処理デバイス制御であって、
1以上のタスクからアクセスされる、デジタル画像データに対して画像処理を行う画像処理デバイスと、
前記画像処理デバイスへのアクセスを制御する画像処理デバイス制御手段と、
1スレッドを実行するタスク単位で、複数のタスクを非同期で実行するCPUと、
1以上のタスクで前記画像処理デバイス制御手段による画像処理デバイスアクセス要求が競合する場合に、前記画像処理デバイスごとに画像処理デバイスアクセスの競合を防止する排他制御手段と、
を有し、
前記排他制御手段は、画像処理デバイスアクセスを要求するタスクのスレッドの管理を行ない、画像処理デバイスアクセス要求時にスレッドを完了し、画像処理デバイスアクセスが可能になった場合には画像処理デバイスアクセスを要求するタスクに対して画像処理デバイスアクセス許可を通知し、画像処理デバイスアクセスを要求するタスクのスレッドを生成させて、画像処理デバイスアクセスを実行すると共に、前記画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容を、ライト要求とリード要求と画像処理デバイスの複数のタスクによる制御の競合状態と、に基づいて切り替えることを特徴とする画像処理デバイス排他制御装置。
Image processing device control when there are conflicting access requests to an image processing device that performs image processing on image data in one or more tasks,
An image processing device for performing image processing on digital image data, accessed from one or more tasks;
Image processing device control means for controlling access to the image processing device;
A CPU that executes a plurality of tasks asynchronously in units of tasks that execute one thread;
Exclusive control means for preventing image processing device access contention for each image processing device when image processing device access requests by the image processing device control means compete in one or more tasks;
Have
The exclusive control means manages a thread of a task that requests image processing device access, completes the thread when the image processing device access is requested, and requests image processing device access when image processing device access becomes possible notifies the image processing device access permissions to the task of, by generating a thread of tasks requiring the image processing device access, the rewritable executes the image processing device access, to tasks that requests the image processing device access An image processing device exclusive control apparatus characterized in that the content of message transmission to be notified is switched based on a write request, a read request, and a competition state of control by a plurality of tasks of the image processing device.
前記排他制御手段は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求の画像処理内容と、に基づいて判断することを特徴とする請求項1に記載の画像処理デバイス排他制御装置。 The exclusive control means includes request status information for requesting access to the image processing device, contents of message transmission to be notified to a task requesting image processing device access, and priority, and an image of the access request. as the processing, the image processing device exclusive control device according to claim 1, characterized in that the judgment on the basis of. 前記排他制御手段は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求のアクセス量と、に基づいて判断することを特徴とする請求項1に記載の画像処理デバイス排他制御装置。 The exclusive control means includes request status information for requesting access to the image processing device, contents of message transmission to be notified to a task requesting access to the image processing device, and priority, and access of the access request. the amount and the image processing device exclusive control device according to claim 1, characterized in that the judgment on the basis of. 前記排他制御手段は、前記画像処理デバイスアクセスが1以上のタスクの処理で競合しない画像処理デバイスに割り当てられている場合、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージの内容を、画像処理デバイスへのアクセス要求をしている要求状況情報に基づかないで無条件にアクセス許可を通知することを特徴とする請求項1からのいずれか1項に記載の画像処理デバイス排他制御装置。 When the image processing device access is assigned to an image processing device that does not compete in processing of one or more tasks, the exclusive control unit displays the content of a message to be notified to the task requesting the image processing device access, The image processing device exclusive control apparatus according to any one of claims 1 to 3 , wherein an access permission is notified unconditionally without being based on request status information requesting access to a processing device. 前記排他制御手段は、前記画像処理デバイスアクセスを実行させる場合、そのタスクが処理を実行する占有時間が少ないタスクに優先して割り当てることを特徴とする請求項1からのいずれか1項に記載の画像処理デバイス排他制御装置。 The exclusion control unit, the case of executing the image processing device access, according to claims 1, wherein the assigning with priority the task is less occupied time the task executes the process in any one of 4 Image processing device exclusive control device. 前記画像処理デバイスは、デジタルシグナルプロセッサ(DSP)であることを特徴とする請求項1からのいずれか1項に記載の画像処理デバイス排他制御装置。 The image processing device, image processing device exclusive control device according to claim 1, wherein in any one of the four that is a digital signal processor (DSP). 1以上のタスクで画像データに対して画像処理を行う画像処理デバイスへのアクセス要求が競合する場合の画像処理デバイス制御の制御方法であって、
1以上のタスクからアクセスされる、デジタル画像データに対して画像処理を行う画像処理デバイスへのアクセスを制御する画像処理デバイス制御工程と、
1スレッドを実行するタスク単位で、複数のタスクを非同期で実行するCPU工程と、
1以上のタスクで前記画像処理デバイス制御工程による画像処理デバイスアクセス要求が競合する場合に、前記画像処理デバイスごとに画像処理デバイスアクセスの競合を防止する排他制御工程と、
を有し、
前記排他制御工程は、画像処理デバイスアクセスを要求するタスクのスレッドの管理を行なう工程と、画像処理デバイスアクセス要求時にスレッドを完了する工程と、画像処理デバイスアクセスが可能になった場合には画像処理デバイスアクセスを要求するタスクに対して画像処理デバイスアクセス許可を通知する工程と、画像処理デバイスアクセスを要求するタスクのスレッドを生成させる工程と、画像処理デバイスアクセスを実行すると共に前記排他制御工程は、前記画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容を、ライト要求とリード要求と画像処理デバイスの複数のタスクによる制御の競合状態と、に基づいて切り替える工程と、を有することを特徴とする画像処理デバイス排他制御方法。
A control method for controlling an image processing device when access requests to an image processing device that performs image processing on image data in one or more tasks compete,
An image processing device control step for controlling access to an image processing device that performs image processing on digital image data, accessed from one or more tasks;
A CPU process that asynchronously executes a plurality of tasks in units of tasks that execute one thread;
An exclusive control step for preventing an image processing device access conflict for each image processing device when image processing device access requests by the image processing device control step conflict in one or more tasks;
Have
The exclusive control step includes a step of managing a thread of a task that requests access to an image processing device, a step of completing the thread when an image processing device access request is made, and image processing when image processing device access is enabled Notifying the image processing device access permission to the task requesting device access, generating a thread of the task requesting image processing device access, executing the image processing device access and the exclusive control step includes: Switching contents of message transmission to be notified to the task requesting the image processing device access based on a write request, a read request, and a competition state of control by a plurality of tasks of the image processing device. An image processing device exclusive control method characterized by the above.
前記排他制御工程は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求の画像処理内容と、に基づいて判断することを特徴とする請求項に記載の画像処理デバイス排他制御方法。 The exclusive control step includes request status information for requesting access to the image processing device, contents of message transmission to be notified to a task requesting image processing device access, and priority, and an image of the access request. as the processing, the image processing device exclusive control method according to claim 7, characterized in that the judgment on the basis of. 前記排他制御工程は、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージ送信の内容と優先順位と、を前記画像処理デバイスへのアクセス要求をしている要求状況情報と、アクセス要求のアクセス量と、に基づいて判断することを特徴とする請求項7に記載の画像処理デバイス排他制御方法。 The exclusive control step includes request status information for requesting access to the image processing device, contents of message transmission to be notified to a task requesting access to the image processing device, and priority, and access of the access request. the amount and the image processing device exclusive control method according to claim 7, characterized in that the judgment on the basis of. 前記排他制御工程は、前記画像処理デバイスアクセスが1以上のタスクの処理で競合しない画像処理デバイスに割り当てられている場合、画像処理デバイスアクセスを要求するタスクに対して通知するメッセージの内容を、画像処理デバイスへのアクセス要求をしている要求状況情報に基づかないで無条件にアクセス許可を通知することを特徴とする請求項からのいずれか1項に記載の画像処理デバイス排他制御方法。 In the exclusive control step, when the image processing device access is assigned to an image processing device that does not compete in the processing of one or more tasks, the exclusive control step displays the content of a message to be notified to the task requesting the image processing device access, the image processing device exclusive control method according to any one of claims 7 9, characterized in that notifies the permission to unconditionally without being based on the request status information that the access request to the processing device. 前記排他制御工程は、前記画像処理デバイスアクセスを実行させる場合、そのタスクが処理を実行する占有時間が少ないタスクに優先して割り当てることを特徴とする請求項から10のいずれか1項に記載の画像処理デバイス排他制御方法。 The exclusive control process, the case of executing the image processing device access, according to any one of claims 7 to 10, characterized in that allocated in preference to the task occupancy time less the task executes processing Image processing device exclusive control method. 請求項から11のいずれか1項に記載の画像処理デバイス排他制御方法をコンピュータに実行させるためのプログラム。 Program for executing the image processing device exclusive control method according to the computer in any one of claims 7 11. 請求項12に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the program according to claim 12 is recorded.
JP2010004111A 2010-01-12 2010-01-12 Image processing device exclusive control apparatus, control method, program, and recording medium Expired - Fee Related JP5471466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010004111A JP5471466B2 (en) 2010-01-12 2010-01-12 Image processing device exclusive control apparatus, control method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010004111A JP5471466B2 (en) 2010-01-12 2010-01-12 Image processing device exclusive control apparatus, control method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2011145761A JP2011145761A (en) 2011-07-28
JP5471466B2 true JP5471466B2 (en) 2014-04-16

Family

ID=44460583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010004111A Expired - Fee Related JP5471466B2 (en) 2010-01-12 2010-01-12 Image processing device exclusive control apparatus, control method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP5471466B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05313923A (en) * 1992-05-07 1993-11-26 Ricoh Co Ltd Exclusive controller for shared resources
JPH0675786A (en) * 1992-08-26 1994-03-18 Hitachi Ltd Task scheduling method
JP2003091424A (en) * 2001-09-18 2003-03-28 Matsushita Electric Ind Co Ltd Distributed processing system and job distribution processing method
JP4695465B2 (en) * 2004-09-28 2011-06-08 株式会社リコー Image forming apparatus, hardware control method, and hardware control program

Also Published As

Publication number Publication date
JP2011145761A (en) 2011-07-28

Similar Documents

Publication Publication Date Title
JP5177181B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
US8584137B2 (en) Image processing system for judging whether a partial job should be processed by an own device or another device
US20140300921A1 (en) Image forming apparatus and power supply control system
US10664212B2 (en) Image forming apparatus, control method for image forming apparatus, and storage medium for controlling storage of a print job
JP6066006B2 (en) Image forming apparatus
US20080229327A1 (en) Information processing apparatus, information processing mehtod and computer program product
JP5609308B2 (en) Image processing system, image processing apparatus, information processing apparatus, and image processing method
JP2006203655A (en) Method for setting image forming apparatus and image forming apparatus
US20130073773A1 (en) Access control apparatus, image forming apparatus, and access control method
JP5471466B2 (en) Image processing device exclusive control apparatus, control method, program, and recording medium
JP2008265135A (en) Print system and printer
JP3724536B2 (en) Image output control device and process execution control method thereof
JP3910993B2 (en) Image forming apparatus, image forming method, and image forming program
JP5704318B2 (en) Image forming method and image forming apparatus
JP5025377B2 (en) Image processing apparatus, scan data division transmission method, and scan data division transmission program
JP4534805B2 (en) Image forming apparatus and control method thereof
JP3910992B2 (en) Image forming apparatus, image forming method, and image forming program
JP2012159962A (en) Information processing system
JP5370065B2 (en) Image forming apparatus, image forming apparatus control method, and control program
JP2007305143A (en) Information processor and information processing method
US7788364B2 (en) Management apparatus and method for managing network device
JP2006345329A (en) Image forming apparatus, image forming system, and image control device
JP2006005963A (en) Information processor and information processing method
JPH11331528A (en) Image processor
JP2006035558A (en) Image forming device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121009

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131209

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: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140120

LAPS Cancellation because of no payment of annual fees