JP6926938B2 - Printing device and control method of printing device - Google Patents
Printing device and control method of printing device Download PDFInfo
- Publication number
- JP6926938B2 JP6926938B2 JP2017204544A JP2017204544A JP6926938B2 JP 6926938 B2 JP6926938 B2 JP 6926938B2 JP 2017204544 A JP2017204544 A JP 2017204544A JP 2017204544 A JP2017204544 A JP 2017204544A JP 6926938 B2 JP6926938 B2 JP 6926938B2
- Authority
- JP
- Japan
- Prior art keywords
- event
- information
- time
- processing device
- unit
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 63
- 238000012545 processing Methods 0.000 claims description 182
- 238000004891 communication Methods 0.000 claims description 37
- 230000004913 activation Effects 0.000 claims description 4
- 238000001514 detection method Methods 0.000 description 31
- 230000001186 cumulative effect Effects 0.000 description 22
- 230000014509 gene expression Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 238000005259 measurement Methods 0.000 description 12
- 230000005856 abnormality Effects 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 10
- 238000006243 chemical reaction Methods 0.000 description 8
- 230000002123 temporal effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 208000012661 Dyskinesia Diseases 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Debugging And Monitoring (AREA)
Description
本発明は、印刷装置、及び印刷装置の制御方法に関する。 The present invention relates to a printing device and a method for controlling the printing device.
従来、印刷装置として、デュアルコア・プロセッサーを備え、一方のプロセッサー・コアにより印刷ヘッド等の印刷機構部を制御し、他方のプロセッサー・コアによりサーバー等の外部機器と通信するものが知られている。このようなデュアルコア・プロセッサーを備える装置として、例えば、特許文献1には、印刷機構を制御するメインコアと、外部機器との通信制御を行うサブコアとが、共有メモリーを介して相互に通信を行って、互いの動作を監視する印刷装置が開示されている。 Conventionally, as a printing device, it is known that a dual-core processor is provided, one processor core controls a printing mechanism such as a print head, and the other processor core communicates with an external device such as a server. .. As a device including such a dual-core processor, for example, in Patent Document 1, a main core that controls a printing mechanism and a sub-core that controls communication with an external device communicate with each other via a shared memory. Printing devices that go and monitor each other's movements are disclosed.
一般に、複数のプロセッサーやプロセッサー・コア(以下、単にプロセッサーという)を用いる装置では、各プロセッサーは、その装置が有する種々の異なる機能を分担し、これらを並列処理することで装置全体としての処理能力を向上する。このため、各プロセッサーは、それぞれが分担する機能に適した異なるオペレーティングシステム(OS、Operating System)上でアプリケーション・プログラム(以下、単にプログラムともいう)を動作させるよう構成されることが多い。 Generally, in a device using a plurality of processors or processor cores (hereinafter, simply referred to as processors), each processor shares various different functions of the device, and the processing capacity of the device as a whole is processed by processing these in parallel. To improve. For this reason, each processor is often configured to run an application program (hereinafter, also simply referred to as a program) on a different operating system (OS, Operating System) suitable for the function to be shared by each processor.
例えば、印刷装置においては、2つのプロセッサーを用いて、印刷ヘッド等の印刷機構部の動作制御と、外部装置との通信制御とが分担され、並列処理される。この場合、印刷機構部の動作制御には、例えば、リアルタイム制御に適したリアルタイムOS(Real−Time Operating System)が用いられ、通信制御には、例えば、汎用性のあるOSであるLinux(登録商標)が用いられる。 For example, in a printing device, two processors are used to share the operation control of a printing mechanism unit such as a print head and the communication control with an external device, and perform parallel processing. In this case, for example, a real-time OS (Real-Time Operating System) suitable for real-time control is used for operation control of the printing mechanism unit, and for example, Linux (registered trademark), which is a versatile OS, is used for communication control. ) Is used.
ところが、OSが異なれば、各OSが提供する機能に依存して各OS上で動作するプログラムが扱い得る情報の表現形式に関する制限は異なるものとなり、異なるOSで動作する2つのプロセッサー間での情報共有に不都合が生ずる場合があり得る。例えば、Linux上ではテキスト形式での情報表現は比較的容易であるのに対し、リアルタイムOS上では、テキスト形式での表現を行うためには、より多くの処理が必要となり得る。また、Linuxでは、標準時(例えば日本標準時)に従う時刻情報を保持して時刻を計測することができる一方、リアルタイムOSでは、時刻を間接的に表す情報として、例えばプロセッサーを含む印刷装置の起動後の経過時間が計測される。 However, if the OS is different, the restrictions on the expression format of information that can be handled by the program running on each OS will be different depending on the functions provided by each OS, and the information between the two processors running on different OSs will be different. Sharing may be inconvenient. For example, while information expression in text format is relatively easy on Linux, more processing may be required to express information in text format on a real-time OS. Further, in Linux, the time can be measured by holding the time information according to the standard time (for example, Japan Standard Time), while in the real-time OS, as the information indirectly expressing the time, for example, after the printing device including the processor is started. Elapsed time is measured.
このため、例えば、これらの異なるOSで動作する2つのプロセッサーが、それぞれ、異なる形式の時刻情報を含むイベント発生記録(例えば異常発生記録)をメモリーに保存すると、イベント間の時間的な前後関係が曖昧となり得る。その結果、例えば複数の異常イベントの発生記録の時間的前後関係が曖昧となって、故障解析が煩雑になる等の問題も生じ得る。なお、印刷装置の起動後の経過時間の情報は、起動時の時刻を加算すれば時刻を表す情報となることから、ここでは、そのような経過時間の情報も含めて時刻情報と称している。 Therefore, for example, when two processors operating on these different OSs save an event occurrence record (for example, an abnormality occurrence record) including time information in different formats in the memory, the temporal context between the events is changed. It can be ambiguous. As a result, for example, the temporal context of the occurrence records of a plurality of abnormal events becomes ambiguous, which may cause problems such as complicated failure analysis. Since the information on the elapsed time after the start-up of the printing device becomes the information indicating the time when the time at the time of start-up is added, the information on the elapsed time is also referred to as the time information here. ..
本発明の目的は、複数のプロセッサー(又はプロセッサー・コア)を有する印刷装置において、相異なるOSを用いて動作するそれぞれのプロセッサーが収集した表現形式に違いのある情報を、それら情報の相互関係が明らかとなるように保存することである。 An object of the present invention is to obtain information in a printing apparatus having a plurality of processors (or processor cores), which has a different expression format collected by each processor operating using different OSs, and to have a mutual relationship between the information. Save it for clarity.
上記課題を解決するために、本発明の印刷装置は、第1オペレーティングシステム上で印刷機構部を制御するプログラムが動作する第1処理装置と、第1オペレーティングシステムとは異なる第2オペレーティングシステム上で外部装置と通信する通信部を制御するプログラムが動作する第2処理装置と、前記第1処理装置及び前記第2処理装置からアクセスされる第1記憶部と、前記第2処理装置によりアクセスされる第2記憶部と、を有し、前記第1処理装置は、前記印刷機構部で生じた第1イベントに係る第1イベント情報を前記第1記憶部に書き込み、前記第2処理装置は、前記通信部で生じた第2イベントに係る第2イベント情報と、前記第1記憶部から読み出した前記第1イベント情報とを、それぞれ所定の共通形式のデータを含むイベントログ情報として前記第2記憶部に保存する。
この構成によれば、第1記憶部を介した情報の転送は、第1処理装置から第2処理装置へ向かう一方向に限定され、第1記憶部には第1オペレーティングシステムの基本機能がサポートする表現形式に従う情報のみが保存される。このため、第1記憶部から読み出した情報を他の表現形式に一律に変換することができ、変換処理が容易となる。また、転送された第1イベント情報は、第2処理装置により共通形式のデータを含むイベントログ情報に変換されるので、第1イベント情報と第2イベント情報との相互関係を共通形式のデータ部分に基づいて判断することが可能となる。
In order to solve the above problems, the printing apparatus of the present invention is installed on a first processing apparatus in which a program for controlling a printing mechanism unit is operated on the first operating system and on a second operating system different from the first operating system. Accessed by the second processing device, the second processing device in which a program for controlling the communication unit communicating with the external device operates, the first storage unit accessed from the first processing device and the second processing device, and the second processing device. The first processing device has a second storage unit, the first processing device writes the first event information related to the first event generated in the printing mechanism unit to the first storage unit, and the second processing device describes the first event information. The second event information related to the second event generated in the communication unit and the first event information read from the first storage unit are used as event log information including data in a predetermined common format in the second storage unit. Save to.
According to this configuration, the transfer of information via the first storage unit is limited to one direction from the first processing device to the second processing device, and the first storage unit supports the basic functions of the first operating system. Only information that follows the representation format is saved. Therefore, the information read from the first storage unit can be uniformly converted into another expression format, and the conversion process becomes easy. Further, since the transferred first event information is converted into event log information including the data in the common format by the second processing device, the mutual relationship between the first event information and the second event information is the data portion in the common format. It is possible to make a judgment based on.
また、本発明は、前記所定の共通形式のデータは、前記第1イベント及び前記第2イベントの発生時刻に関するデータであって、前記第2処理装置は、前記第1イベント情報に含まれる第1イベントの発生時刻を示す第1時刻情報と、前記第2イベント情報に含まれる第2イベントの発生時刻を示す第2時刻情報とを、同一の時刻系に従う時刻に変換することにより前記共通形式のデータとして第2記憶部に保存する構成であってもよい。
この構成によれば、第2記憶部に記憶された第1イベント情報及び第2イベント情報の共通形式データ部分から、第1イベント情報と第2イベント情報の時間的な前後関係を判断することができる。
Further, in the present invention, the predetermined common format data is data relating to the occurrence time of the first event and the second event, and the second processing apparatus includes the first event information. By converting the first time information indicating the occurrence time of the event and the second time information indicating the occurrence time of the second event included in the second event information into a time according to the same time system, the common format can be obtained. It may be configured to be stored in the second storage unit as data.
According to this configuration, it is possible to determine the temporal context of the first event information and the second event information from the common format data portion of the first event information and the second event information stored in the second storage unit. can.
また、本発明は、前記第1時刻情報は、前記印刷機構部の起動後の経過時間を示す情報であり、前記第2時刻情報は、所定の時刻系に従う時刻を示す情報であり、前記第2処理装置は、前記印刷機構部の起動時の時刻に前記第1時刻情報が示す前記起動後の経過時間を加算して、前記第1時刻情報を、前記所定の時刻系に従う時刻に変換する構成であってもよい。
この構成によれば、第1オペレーティングシステムが時刻そのものを直接的に表す時刻情報をサポートしない場合でも、第1イベント情報と第2イベント情報の時間的な前後関係を明確にしてイベントログを生成し、保存しておくことができる。
Further, in the present invention, the first time information is information indicating an elapsed time after the start of the printing mechanism unit, and the second time information is information indicating a time according to a predetermined time system. The 2 processing apparatus adds the elapsed time after the activation indicated by the first time information to the time at the time of activation of the printing mechanism unit, and converts the first time information into a time according to the predetermined time system. It may be a configuration.
According to this configuration, even if the first operating system does not support the time information that directly represents the time itself, the event log is generated by clarifying the temporal context of the first event information and the second event information. , Can be saved.
また、本発明は、前記第1記憶部は、データ配列を成すように順序付けられた所定の記憶容量を有する複数の記憶領域に分割され、前記第1処理装置は、前記第1イベントに係る前記第1イベント情報を、前記第1イベントの発生順に、前記データ配列の先頭から末尾に向かう順に、前記データ配列を構成する前記記憶領域のうち空き領域に設定されている前記記憶領域に記憶し、前記第2処理装置は、前記第1イベント情報を、前記データ配列の先頭から末尾に向かう順に前記記憶領域から読み出して、前記読み出した前記記憶領域を空き領域に設定する構成であってもよい。
この構成によれば、第2処理装置は、第1イベント情報間の時間的前後関係を明確にしつつ、第1記憶部から第1イベント情報を読み出すことができる。このため、第1イベント情報及び第2イベント情報を時系列で記録するイベントログを容易に作成することができる。
Further, in the present invention, the first storage unit is divided into a plurality of storage areas having predetermined storage capacities arranged so as to form a data sequence, and the first processing device is the said one related to the first event. The first event information is stored in the storage area set in the free area of the storage areas constituting the data array in the order of occurrence of the first event and from the beginning to the end of the data array. The second processing apparatus may have a configuration in which the first event information is read from the storage area in the order from the beginning to the end of the data array, and the read storage area is set as a free area.
According to this configuration, the second processing device can read the first event information from the first storage unit while clarifying the temporal context between the first event information. Therefore, it is possible to easily create an event log that records the first event information and the second event information in chronological order.
また、本発明は、前記第1処理装置は、前記第1イベント情報を前記第1記憶部に保存しようとする際に、前記データ配列を構成する前記記憶領域のうち空き領域に設定されている前記記憶領域がないときは、前記保存しようとする前記第1イベント情報を破棄し、且つ、前記第1処理装置は、空き領域に設定されている前記記憶領域がないことにより一つ以上の前記第1イベント情報を破棄した後に、前記記憶領域のいずれかが空き領域に設定されたときは、前記空き領域に設定された前記記憶領域に、前記破棄した前記第1イベント情報の数と、その後に発生した前記第1イベントに係る前記第1イベント情報とを保存する構成であってもよい。
この構成によれば、第1イベント情報が例えば異常発生を表す場合に、例えば異常の根本原因を表現している可能性のある最も古い異常発生イベントの情報を失うことなく、且つ最近における異常発生イベントの件数を保持することができる。このため、例えばイベントログに基づく故障解析が容易となる。
Further, in the present invention, when the first processing device intends to store the first event information in the first storage unit, the first processing device is set in an empty area of the storage areas constituting the data array. When there is no storage area, the first event information to be saved is discarded, and the first processing device has one or more of the storage areas set in the free area. When any of the storage areas is set as a free area after discarding the first event information, the number of the discarded first event information is set in the storage area set in the free area, and thereafter. It may be configured to store the first event information related to the first event that occurred in.
According to this configuration, when the first event information represents, for example, an abnormality occurrence, the information of the oldest abnormality occurrence event that may represent the root cause of the abnormality is not lost, and the recent abnormality occurrence occurs. The number of events can be retained. Therefore, for example, failure analysis based on the event log becomes easy.
また、本発明は、複数のプロセッサーを備えたマルチコア・プロセッサーを備え、前記第1処理装置及び前記第2処理装置は、それぞれ相異なる前記プロセッサーで構成されていてもよい。
この構成によれば、第1オペレーティングシステム及び第2オペレーティングシステムを備える印刷装置を、小型かつ安価に構成することができる。
Further, the present invention includes a multi-core processor including a plurality of processors, and the first processing device and the second processing device may be configured by different processors.
According to this configuration, a printing device including a first operating system and a second operating system can be configured in a small size and at low cost.
また、本発明では、前記第1処理装置は、前記第1オペレーティングシステムとして、前記印刷機構部をリアルタイム制御するためのリアルタイムオペレーティングシステムを備える構成であってもよい。
この構成によれば、第1オペレーティングシステムにより印刷機構部を効率的にリアルタイム制御しつつ、例えば印刷機構部の異常イベントを示す第1イベント情報を収集して、時系列に構成されたイベントログを生成することができる。このため、イベントログを用いて、例えば印刷機構部の故障解析を容易に行うことができる。
Further, in the present invention, the first processing apparatus may be configured to include, as the first operating system, a real-time operating system for controlling the printing mechanism unit in real time.
According to this configuration, while the printing mechanism unit is efficiently controlled in real time by the first operating system, for example, the first event information indicating an abnormal event of the printing mechanism unit is collected, and the event log configured in chronological order is displayed. Can be generated. Therefore, for example, failure analysis of the printing mechanism unit can be easily performed using the event log.
また、本発明は、前記第2処理装置は、前記第2記憶部に記憶した前記イベントログ情報を、前記通信部を介して外部装置へ送信する構成であってもよい。
この構成によれば、第2記憶部に蓄積されたイベントログ情報を外部装置において解析することができる。また、第2記憶部に保存されているイベントログ情報を外部装置に退避することができるので、第2記憶部の記憶容量不足による第1イベント情報及び又は第2イベント情報の保存漏れを防止することができる。
Further, the present invention may be configured such that the second processing device transmits the event log information stored in the second storage unit to the external device via the communication unit.
According to this configuration, the event log information stored in the second storage unit can be analyzed by the external device. Further, since the event log information stored in the second storage unit can be saved in the external device, it is possible to prevent omission of storage of the first event information and / or the second event information due to insufficient storage capacity of the second storage unit. be able to.
上記課題を解決するため、本発明は、第1オペレーティングシステム上で印刷機構部を制御するプログラムが動作する第1処理装置と、第1オペレーティングシステムとは異なる第2オペレーティングシステム上で外部装置と通信する通信部を制御するプログラムが動作する第2処理装置と、前記第1処理装置及び前記第2処理装置からアクセスされる第1記憶部と、前記第2処理装置によりアクセスされる第2記憶部と、を備える印刷装置の制御方法であって、前記第1処理装置は、前記印刷機構部で生じた第1イベントに係る第1イベント情報を前記第1記憶部に書き込み、前記第2処理装置は、前記通信部で生じた第2イベントに係る第2イベント情報と、前記第1記憶部から読み出した前記第1イベント情報とを、それぞれ所定の共通形式のデータを含むイベントログ情報として前記第2記憶部に保存する。
この構成によれば、第1記憶部を介した情報の転送は、第1処理装置から第2処理装置へ向かう一方向に限定され、第1記憶部には第1オペレーティングシステムの基本機能がサポートする表現形式に従う情報のみが保存される。このため、第1記憶部から読み出した情報を他の表現形式に一律に変換することができ、変換処理が容易となる。また、転送された第1イベント情報は、第2処理装置により共通形式データを含むイベントログ情報に変換されるので、第1イベント情報と第2イベント情報との相互関係を共通形式データ部分に基づいて判断することが可能となる。
In order to solve the above problems, the present invention communicates with a first processing device in which a program for controlling a printing mechanism unit operates on the first operating system and an external device on a second operating system different from the first operating system. A second processing device in which a program for controlling a communication unit is operated, a first storage unit accessed from the first processing device and the second processing device, and a second storage unit accessed by the second processing device. A method for controlling a printing device including The second event information related to the second event generated in the communication unit and the first event information read from the first storage unit are used as event log information including data in a predetermined common format. 2 Save in the storage.
According to this configuration, the transfer of information via the first storage unit is limited to one direction from the first processing device to the second processing device, and the first storage unit supports the basic functions of the first operating system. Only information that follows the representation format is saved. Therefore, the information read from the first storage unit can be uniformly converted into another expression format, and the conversion process becomes easy. Further, since the transferred first event information is converted into event log information including common format data by the second processing device, the mutual relationship between the first event information and the second event information is based on the common format data portion. It becomes possible to judge.
以下、図面を参照して本発明の実施形態について説明する。
図1は、本発明の一実施形態に係る印刷装置100の構成を示す図である。本印刷装置100は、用紙に印刷を行う印刷機構部102と、外部装置と通信を行う通信部104と、処理装置106と、第1記憶部108と、第2記憶部110と、を有する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a configuration of a
印刷機構部102は、例えば用紙にインクを吐出する印刷ヘッド、用紙上で印刷ヘッドを移動する走査機構、用紙を搬送する搬送機構等(いずれも不図示)で構成される。また、通信部104は、例えば、周辺機器やサーバー等の外部装置と通信を行う送受信機(不図示)等で構成される。
The
処理装置106は、第1処理装置130と、第2処理装置132と、第1時間計測部134と、第2時間計測部136と、を備える。第1時間計測部134は、印刷装置100の電源が投入されて印刷機構部102が起動されたときに、第2処理装置132により起動され、印刷機構部102の起動後の経過時間を計測する。
The
第2時間計測部136は、例えばリアルタイムクロック(RTC、Real Time Clock)であり、所定の時刻系、例えば日本標準時(JST、Japan Standard Time)を保持する。すなわち、第2時間計測部136は、印刷装置100の電源が投入されている間はもちろん、電源が断になったあとも、例えば印刷装置100に設けられたバッテリー(不図示)により時間計測を継続して、日本標準時に従う現在時刻を保持する。なお、第2時間計測部136は、日本標準時に代えて、協定世界時(UTC、Coordinated Universal Time)に従う時刻を保持するものとしてもよい。
The second
第1処理装置130及び第2処理装置132は、例えば、CPU(Central Processing Unit)等のプロセッサーを備えるコンピューターである。第1処理装置130及び第2処理装置132は、プログラムが書き込まれたROM(Read Only Memory)、データの一時記憶のためのRAM(Random Access Memory)等を有する構成であってもよい。そして、第1処理装置130は、機能要素(又は機能ユニット)として、印刷制御部140と、第1イベント検出部142と、第1イベント記録部144と、を有する。また、第2処理装置132は、機能要素(又は機能ユニット)として、通信制御部150と、第2イベント検出部152と、イベントログ記録部154と、を有する。
The
第1処理装置130及び第2処理装置132が備えるこれらの機能要素は、それぞれ、コンピューターである第1処理装置130及び第2処理装置132がプログラムを実行することにより実現される。
These functional elements included in the
図2は、第1処理装置130のソフトウェア階層構造を示す図である。第1処理装置130は、CPU、RAM、ROM等のハードウェアの動作を管理する第1オペレーティングシステム200を備える。また第1処理装置130は、第1オペレーティングシステム200上で実行されて印刷制御部140、第1イベント検出部142、第1イベント記録部144の各機能要素を実現するアプリケーションプログラム202、204、206を備える。本実施形態では、第1オペレーティングシステム200は、印刷機構部102をリアルタイム制御する印刷制御部140の効率的な動作を確保する観点から、例えばT−Kernelなどのリアルタイムオペレーティングシステム(リアルタイムOS)である。
FIG. 2 is a diagram showing a software hierarchical structure of the
図3は、第2処理装置132のソフトウェア階層構造を示す図である。第2処理装置132は、CPU、RAM、ROM等のハードウェアの動作を管理する第2オペレーティングシステム300を備える。また第2処理装置132は、第2オペレーティングシステム300上で実行されて通信制御部150、第2イベント検出部152、イベントログ記録部154の各機能要素を実現するアプリケーションプログラム302、304、306を備える。本実施形態では、第2オペレーティングシステム300は、リアルタイム処理を必要としない通信制御その他の種々の処理を汎用的に行う観点から、例えばLinuxである。
FIG. 3 is a diagram showing a software hierarchical structure of the
ここで、一般に、リアルタイムオペレーティングシステムでは、制御動作の効率性が重視されており、日本標準時等の時刻情報の保持は、基本機能としてはサポートされていない。このため、リアルタイムオペレーティングシステムを用いる場合には、時間に関する情報は、例えば、装置起動後の経過時間等が用いられる。これに対し、Linux当の汎用オペレーティングシステムでは、日本標準時等の時刻情報が、基本機能としてサポートされており、現在の時刻をアプリケーションプログラムの中で容易に取得することができる。このように、T−KernelなどのリアルタイムOSとLinux等の汎用OSとでは、それらの基本機能を用いて取得される時間(又は時刻)についての表現形式が異なる。 Here, in general, in a real-time operating system, the efficiency of control operation is emphasized, and the retention of time information such as Japan Standard Time is not supported as a basic function. Therefore, when a real-time operating system is used, for example, the elapsed time after the device is started is used as the information regarding the time. On the other hand, in Linux's general-purpose operating system, time information such as Japan Standard Time is supported as a basic function, and the current time can be easily acquired in an application program. As described above, the real-time OS such as T-Kernel and the general-purpose OS such as Linux differ in the expression format of the time (or time) acquired by using their basic functions.
なお、本実施形態では、第1処理装置130及び第2処理装置132は、それぞれが個別のプロセッサー(CPU)を有するものとしたが、これには限られない。例えば、第1処理装置130及び第2処理装置132は、複数のプロセッサー(又はプロセッサー・コア)を備えるマルチコア・プロセッサー内の、個別のプロセッサー(又はプロセッサー・コア)により構成されるものとすることができる。
In the present embodiment, the
第1記憶部108(図1)は、例えば揮発性又は不揮発性の半導体メモリーで構成される。第1記憶部108は、データ配列120を成すように順序付けられた所定の記憶容量を有する複数(n個)の記憶領域122−1、122−2、122−3、122−4、...、122−nに分割された部分を有する。これらの記憶領域122−1、122−2、122−3、122−4、...、122−nは、例えば、第1記憶部108内の記憶アドレス順に設けられる。記憶領域122のそれぞれには、後述する処理装置106の第1処理装置130により第1イベント情報が保存される。また、記憶領域122に保存された第1イベント情報は、処理装置106の第2処理装置132により読み出される。すなわち、第1イベント情報は、第1記憶部108を介して、第1処理装置130から第2処理装置132へ一方向に転送される。
The first storage unit 108 (FIG. 1) is composed of, for example, a volatile or non-volatile semiconductor memory. The
以下、記憶領域122−1、122−2、122−3、122−4、…、122−nを総称するときは、記憶領域122という。また、以下において、データ配列120の先頭とは、記憶領域122のうちアドレス値が最も小さい記憶アドレスの位置に設けられた記憶領域122(例えば、122−1)をいうものとする。また、データ配列120の末尾とは、記憶領域122のうちアドレス値が最も大きい記憶アドレスの位置に設けられた記憶領域122(例えば、122−n)をいうものとする。
Hereinafter, when the storage areas 122-1, 122-2, 122-3, 122-4, ..., 122-n are collectively referred to as the
第1記憶部108には、また、第1処理装置130が第1イベント情報を次に保存すべき記憶領域122の場所を示す書込みポインター124が保存される。さらに、第1記憶部108には、第2処理装置132が第1イベント情報を次に読み出すべき記憶領域122の場所を示す読出しポインター126が保存される。書込みポインター124及び読出しポインター126は、印刷装置100の起動時に実行される初期化処理の際に、データ配列の先頭の記憶領域122を示す値に設定される。
The
図4は、データ配列120を構成する記憶領域122におけるデータ構造を示す図である。記憶領域122に記憶されるデータは、所定サイズのビット長を持つデータ列であり、その先頭から順に、ステイタス領域400、破棄数領域402、及びイベント情報領域404を有する。また、イベント情報領域404は、さらに、時刻領域406とメッセージ領域408で構成されている。
FIG. 4 is a diagram showing a data structure in the
ステイタス領域400には、その記憶領域122に第1イベント情報が書き込まれているか否かを示すステイタスが記憶される。ステイタスは、イベント情報領域404に第1イベント情報が書き込まれていないことを示す「空き領域」、又はイベント情報領域404に第1イベント情報が書き込まれていることを示す「占有領域」のいずれかである。以下において、記憶領域122を「空き領域に設定する」又は「占有領域に設定する」とは、その記憶領域122のステイタス領域400に「空き領域」であることを示す値又は「占有領域」であることを示す値を保存することをいうものとする。なお、第1記憶部108の記憶領域122は、印刷装置100の起動時に実行される初期化処理の際に、全て「空き領域」に設定される。その他の領域に保存されるデータの詳細については後述する。
In the
第2記憶部110(図1)は、例えば揮発性又は不揮発性の半導体メモリーで構成される。第2記憶部110には、発生した第1イベント(後述)及び第2イベント(後述)の履歴であるイベントログ128が保存される。イベントログ128は、処理装置106の第2処理装置132により第2記憶部110に保存されるイベントログ情報により構成される。
The second storage unit 110 (FIG. 1) is composed of, for example, a volatile or non-volatile semiconductor memory. The
第1処理装置130の印刷制御部140は、印刷機構部102の動作をリアルタイム制御して、用紙への印刷を実行する。第1イベント検出部142は、印刷機構部102の動作に関連する第1イベントの発生を検出する。第1イベントには、例えば、印刷機構部102におけるインクの枯渇、用紙切れ等の、正常な印刷動作に伴って生ずるイベントのほか、印刷ヘッドの移動異常や用紙の紙詰まり等の異常動作に関するイベントが含まれる。
The
また、第1イベント検出部142は、第1イベントを検出したときに、印刷機構部102の起動後の経過時間を第1時間計測部134から取得し、取得した経過時間と上記検出した第1イベントの内容を表す情報とを第1イベント記録部144へ送る。
Further, when the first
第1イベント記録部144は、第1イベント検出部142から受信した経過時間と第1イベントの内容を表す情報とに基づき、第1イベント情報を生成する。より具体的には、第1イベント記録部144は、受信した第1イベントの内容を記述するメッセージに、受信した経過時間を第1時刻情報として付加して、第1イベント情報を生成する。ここで、第1イベントの内容を記述する上記メッセージは、本実施形態では、例えば、第1イベントの種類毎に予め定められたコードで表される。ただし、これに限らず、第1イベントの内容を記述する上記メッセージを、テキストメッセージで構成するものとすることもできる。
The first
第1イベント記録部144は、上記生成した第1イベント情報を、第1記憶部108の記憶領域122に記憶する。その際、第1イベント記録部144は、第1イベント情報を、第1イベントの発生順に、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に、空き領域に設定されている記憶領域122に保存する。すなわち、第1イベント記録部144は、データ配列120の先頭の記憶領域122から順に第1イベント情報を書き込む毎に、第1記憶部108が記憶する書込みポインター124を、データ配列120の末尾に向かって次の記憶領域122を示す値に設定する。より具体的には、第1イベント記録部144は、第1イベント情報を記憶領域122に書き込む毎に、書込みポインター124の値を、1個の記憶領域122のサイズ分だけ増加させる(インクリメントする)。また、書込みポインター124がデータ配列120の末尾の記憶領域122を示す値となった後は、第1イベント記録部144は、書込みポインター124を初期値(すなわち、データ配列120の先頭の記憶領域122を示すアドレス値)に設定する。
The first
第1イベント情報は、図4に示すデータ構造のイベント情報領域404に保存される。より詳細には、第1イベント情報のうち、第1イベントの内容を記述するメッセージはメッセージ領域408に保存され、第1時刻情報は時刻領域406に保存される。また、第1イベント記録部144は、記憶領域122に第1イベント情報を保存したときは、その記憶領域122を占有領域に設定する。
The first event information is stored in the
第1イベント記録部144は、さらに、第1イベント情報を生成した際に、第1記憶部108に空き領域に設定されている記憶領域122がない間は、生成した第1イベント情報を破棄し、連続して破棄された第1イベント情報の累積数をカウントする。その後、第1イベント記録部144は、いずれかの記憶領域122が空き領域に設定された後、新たな第1イベントが発生すると、その第1イベントに係る第1イベント情報を、空き領域に設定されたその記憶領域122に保存する。
Further, when the first event information is generated, the first
また、その際、第1イベント記録部144は、その第1イベント情報を保存する記憶領域122の破棄数領域402に、それまでに破棄した第1イベント情報の累積数(累積破棄数)を保存する。第1イベント記録部144は、累積破棄数を破棄数領域402に保存した後は、累積破棄数のカウントをゼロにリセットし、新たに第1イベント情報を破棄したときに、累積破棄数のカウントを開始する。なお、第1イベント記録部144は、第1イベント情報を記憶領域122に記憶する際に、累積破棄数がゼロであるときは、その記憶領域122の破棄数領域402に値ゼロを保存する。
At that time, the first
なお、上述において、第1記憶部108に空き領域に設定されている記憶領域122がないか否かは、例えば、第1記憶部108が記憶する書込みポインター124が示す記憶領域122が占有領域であるか否かにより判断することができる。すなわち、書込みポインター124が示す記憶領域122が占有領域であれば、第1記憶部108には空き領域に設定されている記憶領域122はないものと判断することができる。データ配列120の記憶領域122が次々に占有領域に設定されて書込みポインター124がインクリメントされると、最後の空き領域の記憶領域122が占有領域に設定された後の書込みポインター124が示す記憶領域122は必ず占有領域であるためである。
In the above description, whether or not the
第2処理装置132の通信制御部150(図1)は、通信部104を制御して、周辺機器やサーバー等の外部装置と通信を行う。
The communication control unit 150 (FIG. 1) of the
第2処理装置132の第2イベント検出部152は、印刷機構部102以外の部分の動作に関連する第2イベントの発生を検出する。第2イベントには、例えば、通信部104における通信動作の異常、通信部104を介して行われるサーバー等の外部装置との間の定期通信の発生、通信部104を介して受信される印刷装置100の周辺機器におけるイベント等が含まれ得る。
The second
また、第2イベント検出部152は、第2イベントを検出したときに、第2時間計測部136から現在時刻を取得し、取得した現在時刻と上記検出した第2イベントの内容を表す情報とをイベントログ記録部154へ送る。
Further, the second
イベントログ記録部154は、第2イベント検出部152から受信した現在時刻と第2イベントの内容を表す情報とに基づき、第2イベント情報を生成する。より具体的には、イベントログ記録部154は、受信した第2イベントの内容を記述するメッセージに、受信した現在時刻を第2時刻情報として付加して、第2イベント情報を生成する。そして、イベントログ記録部154は、上記生成した第2イベント情報を、イベントログ情報として、第2記憶部110が記憶するイベントログ128に追加して記憶する。ここで、第2イベントの内容を記述する上記メッセージは、本実施形態では、例えば、テキストメッセージで構成される。ただし、これに限らず、第2イベントの内容を記述する上記メッセージを、第2イベントの種類毎に予め定められたコードで表すものとすることもできる。
The event
図5は、第2イベント情報のデータ構造を示す図である。第2イベント情報は、所定サイズのビット長を持つデータ列であり、その先頭から順に、時刻領域502、及びメッセージ領域504を含む。時刻領域502には、第2イベント情報の第2時刻情報が保存され、メッセージ領域504には、第2イベントの内容を記述するメッセージが保存される。
FIG. 5 is a diagram showing a data structure of the second event information. The second event information is a data string having a bit length of a predetermined size, and includes a
イベントログ記録部154は、また、例えば所定の時間間隔で第1記憶部108にアクセスし、第1記憶部108の記憶領域122から累積破棄数及び第1イベント情報を読み出して、その記憶領域122を空き領域に設定する。すなわち、イベントログ記録部154は、所定の時間間隔で第1記憶部108内に占有領域に設定された記憶領域122があるか否かを判断する。そして、占有領域に設定された記憶領域122があるときは、その記憶領域122から累積破棄数及び第1イベント情報(以下、「第1イベント情報等」ともいう)を読み出す。その際、占有領域に設定された記憶領域122が複数あるときは、イベントログ記録部154は、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に読み出しを行う。
The event
より具体的には、イベントログ記録部154は、第1記憶部108が記憶する読出しポインター126が示す位置の記憶領域122が占有領域であれば、その記憶領域122から第1イベント情報等を読み出す。そして、イベントログ記録部154は、その記憶領域122を空き領域に設定すると共に、読出しポインター126を、データ配列120の末尾に向かって次の記憶領域122を示す値に設定する。すなわち、イベントログ記録部154は、読出しポインター126の値を、1個の記憶領域122のサイズ分だけ増加させる(インクリメントする)。また、読出しポインター126がデータ配列120の末尾の記憶領域122を示す値となった後は、イベントログ記録部154は、読出しポインター126を初期値(すなわち、データ配列120の先頭の記憶領域122を示すアドレス値)に設定する。
More specifically, if the
上記において、読出しポインター126が示す記憶領域122が空き領域に設定されていれば、第1記憶部108内には占有領域に設定されている記憶領域122はないものと判断することができる。データ配列120の記憶領域122が次々に空き領域に設定されて読出しポインター126がインクリメントされると、最後の占有領域の記憶領域122が空き領域に設定された後の読出しポインター126が示す記憶領域122は必ず空き領域であるためである。
In the above, if the
なお、所定の時間間隔ごとにイベントログ記録部154が読み出し対象とする記憶領域122は、必ずしも占有領域に設定されている記憶領域122の全てである必要はなく、予め定められた数を上限とする数の記憶領域122であるものとすることができる。
The
さらに、イベントログ記録部154は、読み出した第1イベント情報に含まれる第1時刻情報を、第2イベント情報に含まれる第2時刻情報と共通の形式に変換する。具体的には、イベントログ記録部154は、印刷装置100の電源投入時に記憶した印刷機構部102の起動時の時刻に第1時刻情報が示す印刷機構部102の起動後の経過時間を加算して、第1時刻情報を第2時刻情報と同様の日本標準時に従う時刻に変換する。すなわち、イベントログ記録部154は、第1時刻情報を、第2時刻情報と同一の時刻系に従う時刻に変換する。そして、イベントログ記録部154は、上記変換した第1時刻情報を含む第1イベント情報を、イベントログ情報として第2記憶部110のイベントログ128に追加して記憶する。
Further, the event
すなわち、イベントログ記録部154は、共通形式のデータとしての第1時刻情報と第2時刻情報とをそれぞれ含む第1イベント情報と第2イベント情報とを、イベントログ情報として第2記憶部110に保存する。なお、イベントログ記録部154は、共通形式のデータである第1時刻情報及び第2時刻情報に基づいて、第1イベント情報と第2イベント情報とをそれらの発生順にソートして、イベントログ128に保存するものとすることができる。
That is, the event
また、イベントログ記録部154は、第1記憶部108の記憶領域122から読み込んだ累積破棄数がゼロでないときは、まず、読み込んだ累積破棄数の情報をイベントログ情報としてイベントログ128に追加して記憶する。そして、その後に、イベントログ記録部154は、その累積破棄数と同時に読み込んだ第1イベント情報を、第1時刻情報についての上記変換を行った後、イベントログ128に追加して記憶する。
When the cumulative number of discarded items read from the
さらに、イベントログ記録部154は、例えば所定の時間間隔で、第2記憶部110に保存されたイベントログ128のイベントログ情報を、通信制御部150及び通信部104を介して、例えば外部のサーバーへ送信する。また、イベントログ記録部154は、イベントログ128のうち上記送信したイベントログ情報の部分を第2記憶部110から消去する。これにより、イベントログ128に新たに追加されるイベントログ情報の保存に用いることのできる第2記憶部110内の記憶領域が確保される。
Further, the event
図6は、第1記憶部108が記憶するデータ配列120における、第1処理装置130による第1イベント情報の書き込みと第2処理装置132による第2イベント情報の読み出しの様子の一例を示す図である。図示の例では、データ配列120は512個の記憶領域122で構成されており、各記憶領域122は、データ配列120の先頭から122−1、122−2、...122−512の符号で示されている。第1イベント情報は、記憶領域122−6から122−509まで書き込まれており、これらの記憶領域122のステイタス領域400には占有領域であることを示す値11が書き込まれている。また、これら以外の記憶領域122のステイタス領域400には、空き領域であることを示す値00が書き込まれている。
FIG. 6 is a diagram showing an example of a state in which the
さらに、占有領域に設定された記憶領域122−6〜122−509の破棄数領域402には、一例として、すべて0が書き込まれている。これにより、記憶領域122−6〜122−509のそれぞれに第1イベント情報を保存する直前において、破棄された第1イベント情報は無かったことがわかる。
Further, as an example, all 0s are written in the discard
また、占有領域に設定された記憶領域122−6〜122−509の、イベント情報領域404の時刻領域406には、印刷機構部102の起動後の経過時間を表す秒数が保存されている。
Further, in the
第1処理装置130の第1イベント記録部144は、上述したように、第1イベント情報を、第1イベントの発生順に、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に、空き領域に設定されている記憶領域122に保存する。すなわち、第1イベント記録部144は、書込みポインター124により示される、図6において図示左向き矢印で示す位置の記憶領域122−510に、次に発生する第1イベントに係る第1イベント情報を書き込む。そして、その後は、書込みポインター124をインクリメントしつつ、第1イベントを検出する毎に、記憶領域122−511、122−512に、順次、検出した第1イベントの第1イベント情報を、その発生順に書き込んでいく。
As described above, the first
なお、第1イベント記録部144は、データ配列120を構成する最後(末尾)の記憶領域122−512まで第1イベント情報を書き込んだときは、書込みポインター124を、データ配列120を構成する最初の記憶領域122−1を示す値に設定する。これにより、第1イベント記録部144は、次に生成した第1イベント情報を、データ配列120を構成する最初の記憶領域122−1に戻って保存する。その後は、第1イベント記録部144は、上述したように、第1イベント情報を、第1イベントの発生順に、データ配列120の先頭から末尾に向かう順に記憶領域122に保存する。
When the first
また、第2処理装置132のイベントログ記録部154は、上述したように、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に、第1イベント情報等の読み出しを行う。すなわち、イベントログ記録部154は、次に第1イベント情報を第1記憶部108から読み出すときは、読出しポインター126により示される、図6において図示右向き矢印の開始点で示された位置の記憶領域122−6から第1イベント情報を読み出す。そして、その後は、読出しポインター126をインクリメントしつつ、順次、記憶領域122−7、122−8、...に記憶されている第1イベント情報を読み出す。
Further, as described above, the event
なお、イベントログ記録部154は、データ配列120の最後の記憶領域122−512まで占有領域となっていた場合であって、最後の記憶領域122−512から第1イベント情報等を読み込んだときは、読出しポインター126を、初期値に設定する。すなわち、読出しポインター126を、データ配列120を構成する最初の記憶領域122−1を示す値に設定する。これにより、イベントログ記録部154は、最後の記憶領域122−512から第1イベント情報等を読み込んだ後は、データ配列120の先頭の記憶領域122−1に戻って第1イベント情報等を読み出すこととなる。そして、その後は、イベントログ記録部154は、上述したように、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に、第1イベント情報等の読み出しを行う。
The event
図7は、第2記憶部110に記憶されるイベントログ128の一例を示す図である。図示の例では、イベントログ128は、イベントログ情報700−1〜700−12により構成されている。以下、イベントログ情報700−1〜700−12を総称するときは、イベントログ情報700という。
FIG. 7 is a diagram showing an example of the event log 128 stored in the
イベントログ情報700−1〜700−3、700−7〜700−9は、第2イベント情報を含む。これらのイベントログ情報には、それぞれ先頭の時刻情報領域710に第2時刻情報が「時:分 月.日 年」の形式で保存されており、これに続くメッセージ領域712に第2イベントの内容を示す第2イベントメッセージが保存されている。
The event log information 700-1 to 700-3 and 700-7 to 700-9 include the second event information. In each of these event log information, the second time information is stored in the first
また、イベントログ情報700−4〜700−6、700−11、700−12は、第1イベント情報を含む。これらのイベントログ情報には、それぞれ先頭の時刻情報領域710に第1時刻情報が、第2時刻情報と同じ「時:分 月.日 年」の形式で保存されており、これに続くメッセージ領域712に第1イベントの内容を示す第1イベントメッセージが保存されている。すなわち、イベントログ情報700に含まれる第1時刻情報と第2時刻情報とは、同じ時刻系(本実施形態では日本標準時)に従う共通形式のデータとして、イベントログ128に記憶されている。
Further, the event log information 700-4 to 700-6, 700-11, 700-12 includes the first event information. In each of these event log information, the first time information is stored in the first
イベントログ情報700−10は、第1イベント情報の破棄数についての情報である。このイベントログ情報700−10により、イベントログ情報700−11の第1イベントメッセージに係る第1イベントの発生前に破棄された第1イベント情報の累積数が5であることが判る。イベントログ情報700−10は、イベントログ情報700−11に係る第1イベント情報が保存されていた記憶領域122から読み出した累積破棄数に基づいて、イベントログ128に追加されたイベントログ情報である。なお、イベントログ情報700−10の時刻情報領域710に、イベントログ情報700−11と同一の時刻情報を保存するようにしてもよい。
The event log information 700-10 is information about the number of discarded first event information. From this event log information 700-10, it can be seen that the cumulative number of first event information discarded before the occurrence of the first event related to the first event message of the event log information 700-11 is 5. The event log information 700-10 is event log information added to the event log 128 based on the cumulative number of discards read from the
上述の構成を有する印刷装置100は、第1イベント情報が、第1記憶部108のデータ配列120を介して、第1処理装置130から第2処理装置132へ一方向に転送される。このため、データ配列120には、第1処理装置130における第1オペレーティングシステム200の基本機能がサポートする表現形式に従う情報のみが保存される。従って、第2処理装置132では、第1記憶部108のデータ配列120から読み出した情報(例えば、第1時刻情報)を他の表現形式へ一律に変換することができ、変換処理が容易となる。
In the
また、転送された第1イベント情報は、第2処理装置132により、その第1時刻情報が、第2イベント情報の有する第2時刻情報と同じ時刻系に基づく共通形式データに変換された後、イベントログ128に保存される。このため、イベントログ128に保存された第1イベント情報と第2イベント情報とは、共通形式データで記述された第1時刻情報及び第2時刻情報により、それらの発生時刻についての相互関係が明確に表現されることとなる。
Further, the transferred first event information is converted into common format data based on the same time system as the second time information of the second event information by the
その結果、発生したイベントの履歴を統一されたフォーマット、統一された時系列で保持し及び管理することが可能となる。また、イベントを時系列に分析することができるので、不具合解析やユーザーからの問い合わせ対応時にイベントログ128を参照して、より早期に問題解決を図ることが可能となる。さらに、製品である印刷装置100のカスタマイズや機能追加などの開発を行う際に、設計の場面でイベントログ128のデータを活用し、ファームウェアのパフォーマンス計測や評価を効率よく実施することが可能となる。
As a result, it becomes possible to maintain and manage the history of events that have occurred in a unified format and a unified time series. In addition, since the events can be analyzed in chronological order, it is possible to solve the problem at an earlier stage by referring to the
次に、第1処理装置130の第1イベント検出部142及び第1イベント記録部144における処理の手順、及び第2処理装置132の第2イベント検出部152及びイベントログ記録部154の処理の手順について説明する。
Next, the processing procedure in the first
第1処理装置130の第1イベント検出部142及び第1イベント記録部144は、第1イベント情報保存処理を実行する。第1イベント情報保存処理は、第1イベントの発生を検出して、検出した第1イベントの内容及び発生時刻を示す第1イベント情報を、第1記憶部108のデータ配列120に保存する処理である。
The first
第2処理装置132の第2イベント検出部152及びイベントログ記録部154は、第2イベントログ保存処理、第1イベントログ保存処理、及びイベントログ送信処理を実行する。第2イベントログ保存処理は、第2イベントの発生を検出して、検出した第2イベントの内容及び発生時刻を示す第2イベント情報を、イベントログ情報として第2記憶部110が記憶するイベントログ128に保存する処理である。また、第1イベントログ保存処理は、第1記憶部108が記憶するデータ配列120から第1イベント情報を読み出して、第1時刻情報を共通形式に変換した後、イベントログ情報として第2記憶部110が記憶するイベントログ128に保存する処理である。また、イベントログ送信処理は、第2記憶部110からイベントログ128を構成するイベントログ情報を読み出して、外部のサーバー等へ送信する処理である。
The second
以下、第1処理装置130が実行する第1イベント情報保存処理、並びに、第2処理装置132が実行する第2イベントログ保存処理、第1イベントログ保存処理、及びイベントログ送信処理の手順について説明する。
Hereinafter, the procedures of the first event information storage process executed by the
<第1イベント情報保存処理>
まず、第1処理装置130が行う第1イベント情報保存処理の手順について、図8に示すフローチャートに従って説明する。図8に示す第1イベント情報保存処理は、印刷装置100の電源がオンされたときに開始し、印刷装置100の電源がオフされたときに終了する。
<First event information storage process>
First, the procedure of the first event information storage process performed by the
処理を開始すると、まず、第1処理装置130の第1イベント記録部144は、第1記憶部108が記憶するデータ配列120の全ての記憶領域122を空き領域に設定し(S100)、累積破棄数のカウントをゼロにリセットする(S102)。また、第1イベント記録部144は、書込みポインター124及び読出しポインター126の値を初期値に設定する(S104)。ここで、書込みポインター124及び読出しポインター126の初期値は、データ配列120の先頭の記憶領域122の位置を示すアドレス値である。
When the processing is started, first, the first
続いて、第1処理装置130の第1イベント検出部142は、印刷機構部102の動作に係る所定の第1イベントの発生を検出したか否かを判断する(S106)。第1イベント検出部142は、例えば、印刷機構部102に設けられた各種のセンサー(不図示)からの信号を用いて、第1イベントの発生を検出することができる。
Subsequently, the first
そして、第1イベント検出部142は、第1イベントの発生を検出していないときは(S106、NO)、ステップS106に戻って第1イベントの発生が検出されるのを待機する。一方、所定の第1イベントのいずれかの発生を検出したときは(S106、YES)、第1イベント検出部142は、第1時間計測部134から、印刷機構部102の起動後の経過時間を取得する(S108)。また、第1イベント検出部142は、上記検出した第1イベントの内容を示す情報と、上記取得した経過時間とを、第1イベント記録部144へ送る。
Then, when the occurrence of the first event is not detected (S106, NO), the first
次に、第1イベント記録部144は、第1イベント検出部142から受信した上記第1イベントの内容を示す情報に、上記経過時間を第1時刻情報として付加して、第1イベント情報を生成する(S110)。続いて、第1イベント記録部144は、データ配列120に、空き領域に設定されている記憶領域122があるか否かを判断する(S112)。上述したように、この判断は、書込みポインター124が示す記憶領域122が空き領域に設定されているか否かを判断することにより行われる。
Next, the first
そして、書込みポインター124が示す記憶領域122が空き領域に設定されているときは(S112、YES)、その記憶領域122に、上記生成した第1イベント情報と累積破棄数(すなわち、第1イベント情報等)を保存する(S114)。また、第1イベント記録部144は、第1イベント情報等を保存した記憶領域122を占有領域に設定し(S116)、書込みポインター124を記憶領域122のサイズ分インクリメントする(S118)。これにより、第1イベント情報は、第1イベントの発生順に、データ配列120の先頭から末尾に向かう順に記憶領域122に保存される。なお、ステップS114において第1イベント情報等を保存した記憶領域122がデータ配列の末尾であるときは、第1イベント記録部144は、書込みポインター124を初期値(データ配列120の先頭の記憶領域122のアドレス)に設定する。
Then, when the
続いて、第1イベント記録部144は、累積破棄数をゼロにリセットした後(S120)、ステップS106に戻って処理を繰り返す。
Subsequently, the first
一方、ステップS112において空き領域に設定されている記憶領域122がないときは(S112、NO)、第1イベント記録部144は、累積破棄数に1を加算する(S122)。そして、第1イベント記録部144は、生成した第1イベント情報を記憶領域122に保存することなく、ステップS106に戻って処理を繰り返す。
On the other hand, when there is no
<第2イベントログ保存処理>
次に、第2処理装置132が行う第2イベントログ保存処理の手順について、図9に示すフローチャートに従って説明する。第2イベントログ保存処理は、後述する第1イベントログ保存処理、及びイベントログ送信処理と共に、第2処理装置132において並列に処理される。また、第2イベントログ保存処理は、印刷装置100の電源がオンされたときに開始し、印刷装置100の電源がオフされたときに終了する。
<Second event log save process>
Next, the procedure of the second event log saving process performed by the
印刷装置100の電源がオンされて印刷機構部102が起動されると、まず、第2処理装置132のイベントログ記録部154は、第1時間計測部134に印刷機構部102の起動後の経過時間の計測を開始させる(S200)。続いて、イベントログ記録部154は、第2時間計測部136から、印刷機構部102の起動時の時刻を取得して記憶する(S202)。なお、第2時間計測部136から取得される時刻は、上述したように、所定の時刻系(本実施形態では日本標準時)に従う時刻である。
When the power of the
次に、第2イベント検出部152は、印刷機構部102の動作以外の、印刷装置100の動作に係る所定の第2イベントの発生を検出したか否かを判断する(S204)。第2イベント検出部152は、例えば、通信制御部150からの通信異常通知を受信すること等により、第2イベントの発生を検出することができる。
Next, the second
そして、第2イベント検出部152は、第2イベントの発生を検出していないときは(S204、NO)、ステップS204に戻って第2イベントの発生が検出されるのを待機する。一方、所定の第2イベントのいずれかの発生を検出したときは(S204、YES)、第2イベント検出部152は、第2時間計測部136から、上記検出した第2イベントの発生時刻を取得する(S206)。第2イベント検出部152は、上記検出した第2イベントの内容を示す情報と、上記取得した発生時刻とを、イベントログ記録部154へ送る。
Then, when the occurrence of the second event is not detected (S204, NO), the second
次に、イベントログ記録部154は、第2イベント検出部152から受信した上記第2イベントの内容を示す情報に、上記発生時刻を第2時刻情報として付加して、第2イベント情報を生成する(S208)。そして、イベントログ記録部154は、生成した第2イベント情報を、イベントログ情報として、第2記憶部110が記憶するイベントログ128に追加して保存した後(S210)、ステップS204に戻って処理を繰り返す。
Next, the event
<第1イベントログ保存処理>
次に、第2処理装置132が行う第1イベントログ保存処理の手順について図10に示すフローチャートに従って説明する。第1イベントログ保存処理は、上述の第2イベントログ保存処理及び後述するイベントログ送信処理と共に、第2処理装置132において並列に処理される。また、第1イベントログ保存処理は、印刷装置100の電源がオンされた後、所定の時間間隔で繰り返し実行される。
<First event log save process>
Next, the procedure of the first event log saving process performed by the
第1イベントログ保存処理を開始すると、まず、イベントログ記録部154は、データ配列120に占有領域に設定されている記憶領域220があるか否かを判断する(S300)。上述したように、この判断は、読出しポインター126が示す記憶領域122が占有領域に設定されているか否かを判断することにより行われる。
When the first event log storage process is started, the event
そして、読出しポインター126が示す記憶領域122が占有領域に設定されていないときは(S300、NO)、そのまま処理を終了する。一方、読出しポインター126が示す記憶領域122が占有領域であるときは(S300、YES)、イベントログ記録部154は、読出しポインター126が示す占有領域である記憶領域122から第1イベント情報及び累積破棄数を読み込む(S302)。
Then, when the
次に、イベントログ記録部154は、読出しポインター126を記憶領域122のサイズ分インクリメントする(S304)。これにより、イベントログ記録部154は、データ配列120の先頭から末尾に向かう順に、従って第1イベントの発生順に、記憶領域122から第1イベント情報を読み出すことができる。なお、ステップS304において第1イベント情報等を読み出した記憶領域122がデータ配列の末尾であるときは、イベントログ記録部154は、読出しポインター126を初期値(データ配列120の先頭の記憶領域122のアドレス)に設定する。
Next, the event
次に、イベントログ記録部154は、読み出した累積破棄数がゼロか否かを判断する(S306)。そして、読み出した累積破棄数がゼロであるときは(S306、YES)、読み出した第1イベント情報が含む第1時刻情報を、第2時刻情報と同じ共通形式データに変換する(S308)。すなわち、イベントログ記録部154は、第2イベントログ保存処理(図9)のステップS202において取得した、印刷機構部102の起動時の時刻に、第1時刻情報が示す印刷機構部102の起動後の経過時間を加算する。
Next, the event
続いて、イベントログ記録部154は、第1時刻情報を変換した第1イベント情報を、イベントログ情報としてイベントログ128に追加して保存して(S310)、処理を終了する。
Subsequently, the event
一方、ステップS306において、記憶領域122から読み出した累積破棄数がゼロでないときは(S306、NO)、読み出した累積破棄数の情報を、イベントログ情報としてイベントログ128に保存した後(S312)、ステップS308に処理を移す。
On the other hand, in step S306, when the cumulative number of discarded items read from the
なお、上記実施形態では、イベントログ記録部154は、第1イベント情報に含まれる第1時刻情報を、第2時刻情報の形式に変換するものとしたが、これには限られない。第1イベント情報及び第2イベント情報が、それぞれ共通形式の第1時刻情報及び第2時刻情報を含んだ状態でイベントログ128に保存される限りにおいて、第1時刻情報及び第2時刻情報の一方又は双方を所定の共通形式に変換するものとすることができる。例えば、第1時刻情報の形式及び第2時刻情報の形式のいずれとも異なる、所定の時刻系に従う他の時刻表現形式を、共通形式として用いることができる。この場合、イベントログ記録部154は、第1時刻情報及び第2時刻情報の双方を、上記他の時刻表現式に変換した後に、これらの時刻情報を含む第1イベント情報及び第2イベント情報を、イベントログ情報としてイベントログ128に保存することができる。
In the above embodiment, the event
<イベントログ送信処理>
次に、第2処理装置132が行うイベントログ送信処理の手順について図11に示すフローチャートに従って説明する。イベントログ送信処理は、上述の第2イベントログ保存処理及び第1イベントログ保存処理と共に、第2処理装置132において並列に処理される。また、イベントログ送信処理は、印刷装置100の電源がオンされた後、所定の時間間隔で繰り返し実行される。
<Event log transmission process>
Next, the procedure of the event log transmission processing performed by the
処理を開始すると、第2処理装置132のイベントログ記録部154は、第2記憶部110にイベントログ128を構成するイベントログ情報が保存されているか否かを判断する(S400)。そして、イベントログ情報が保存されていないときは(S400、NO)、そのまま処理を終了する。一方、イベントログ情報が保存されているときは(S400、YES)、イベントログ記録部154は、イベントログ128のイベントログ情報を読み出す(S402)。そして、読み出したイベントログ情報を通信部104を介して外部サーバー等へ送信して(S404)、処理を終了する。
When the processing is started, the event
以上、説明したように、本実施形態の印刷装置100は、第1オペレーティングシステム200上で印刷機構部102を制御するアプリケーションプログラム202が動作する第1処理装置130を備える。また、印刷装置100は、第1オペレーティングシステム200とは異なる第2オペレーティングシステム300上で外部装置と通信する通信部104を制御するアプリケーションプログラム302が動作する第2処理装置132を備える。さらに、印刷装置100は、第1処理装置130及び第2処理装置132からアクセスされる第1記憶部108と、第2処理装置132によりアクセスされる第2記憶部110と、を有する。そして、第1処理装置130は、印刷機構部102で生じた第1イベントに係る第1イベント情報を第1記憶部108に書き込む。また、第2処理装置132は、通信部104で生じた第2イベントに係る第2イベント情報と、第1記憶部108から読み出した第1イベント情報とを、それぞれ所定の共通形式のデータを含むイベントログ情報として第2記憶部110に保存する。
As described above, the
本発明の印刷装置、及び、印刷装置の制御方法を適用した印刷装置100によれば、第1記憶部108を介した情報の転送は、第1処理装置130から第2処理装置132へ向かう一方向に限定される。そして、第1記憶部108には第1オペレーティングシステム200の基本機能がサポートする表現形式に従う情報のみが保存される。このため、第1記憶部108から読み出した情報を他の表現形式に一律に変換することができ、変換処理が容易となる。また、転送された第1イベント情報は、第2処理装置132により共通形式データを含むイベントログ情報に変換されるので、第1イベント情報と第2イベント情報との相互関係を共通形式データ部分に基づいて判断することが可能となる。
According to the printing device of the present invention and the
詳細には、印刷装置100では、上記所定の共通形式のデータは、第1イベント及び第2イベントの発生時刻に関するデータである。そして、第2処理装置132は、第1イベント情報に含まれる第1イベントの発生時刻を示す第1時刻情報と、第2イベント情報に含まれる第2イベントの発生時刻を示す第2時刻情報とが、同一の時刻系に従う時刻となるように変換を行う。すなわち、第2処理装置132は、第1時刻情報と第2時刻情報とを共通形式のデータとして第2記憶部110に保存する。これにより、第2記憶部110に記憶されたイベントログ128を参照して、各イベント情報の共通形式データ部分から、第1イベント情報と第2イベント情報の時間的な前後関係を判断することができる。
Specifically, in the
より詳細には、印刷装置100では、第1時刻情報は、印刷機構部102の起動後の経過時間を示す情報であり、第2時刻情報は、所定の時刻系に従う時刻を示す情報である。そして、第2処理装置132は、印刷機構部102の起動時の時刻に第1時刻情報が示す上記起動後の経過時間を加算して、第1時刻情報を、所定の時刻系に従う時刻に変換する。これにより、第1オペレーティングシステム200の基本機能が時刻そのものを直接的に表す時刻情報をサポートしない場合でも、第1イベント情報と第2イベント情報の時間的な前後関係を明確にしてイベントログ128を生成し、保存しておくことができる。
More specifically, in the
また、印刷装置100では、第1記憶部108は、データ配列120を成すように順序付けられた所定の記憶容量を有する複数の記憶領域122に分割されている。また、第1処理装置130は、第1イベントに係る第1イベント情報を、第1イベントの発生順に、データ配列120の先頭から末尾に向かう順に、データ配列120を構成する記憶領域122のうち空き領域に設定されている記憶領域122に記憶する。そして、第2処理装置132は、第1イベント情報を、データ配列120の先頭から末尾に向かう順に記憶領域122から読み出して、読み出した記憶領域122を空き領域に設定する。これにより、第2処理装置132は、第1イベント情報間の時間的前後関係を明確にしつつ、第1記憶部108から第1イベント情報を読み出すことができる。このため、第1イベント情報及び第2イベント情報を時系列で記録するイベントログ128を容易に作成することができる。
Further, in the
また、印刷装置100では、第1処理装置130は、第1イベント情報を第1記憶部108に保存しようとする際に、データ配列120内に空き領域に設定されている記憶領域122がないときは、保存しようとする第1イベント情報を破棄する。また、第1処理装置130は、一つ以上の第1イベント情報を破棄した後は、その後に空き領域に設定された記憶領域122に、上記破棄した第1イベント情報の数と、その後に発生した第1イベントに係る第1イベント情報とを保存する。これにより、例えば、第1イベント情報が異常発生を表す場合に、その異常の根本原因を表現している可能性のある最も古い異常発生イベントの情報を失うことなく、且つ最近における異常発生イベントの件数を保持することができる。このため、例えばイベントログ128に基づく故障解析が容易となる。
Further, in the
また、印刷装置100は、複数のプロセッサーを備えたマルチコア・プロセッサーを備え、第1処理装置130及び第2処理装置132は、それぞれ相異なるプロセッサーで構成され得る。この構成によれば、第1オペレーティングシステム200及び第2オペレーティングシステム300を用いて動作する印刷装置100を、小型かつ安価に構成することができる。
Further, the
また、印刷装置100では、第1処理装置130は、第1オペレーティングシステム200として、印刷機構部102をリアルタイム制御するためのリアルタイムオペレーティングシステムを備える。このため、第1オペレーティングシステム200により印刷機構部102を効率的にリアルタイム制御しつつ、例えば印刷機構部102の異常イベントを示す第1イベント情報を収集して、時系列に構成されたイベントログ128を生成することができる。これにより、イベントログ128を用いて、例えば印刷機構部102の故障解析を容易に行うことができる。
Further, in the
また、印刷装置100は、第2処理装置132が、第2記憶部110に記憶したイベントログ情報を、通信部104を介して外部装置へ送信する。これにより、第2記憶部110に蓄積されたイベントログ情報を外部装置において解析することができる。また、第2記憶部110に保存されているイベントログ128を外部装置に退避することができるので、第2記憶部110の記憶容量不足による第1イベント情報及び又は第2イベント情報の保存漏れを防止することができる。
Further, the
なお、上記実施形態は本発明を適用した一具体例を示すものであり、本発明はこれに限定されるものではない。 The above embodiment shows a specific example to which the present invention is applied, and the present invention is not limited thereto.
例えば、第1処理装置130及び又は第2処理装置132のCPUが実行するプログラムは、印刷装置100が備えるROM等に記憶されるプログラムに限定されない。例えば、他の記憶装置、記憶媒体や外部装置の記憶媒体に上記プログラムを記憶させ、第1処理装置130及び又は第2処理装置132により読み出して実行する構成としてもよい。
For example, the program executed by the CPU of the
また、上記実施形態では、第1処理装置130から第2処理装置132へ、第1記憶部108が記憶するデータ配列120を介して第1イベント情報が一方向に転送されるものとしたが、これには限定されない。例えば、第1記憶部108はデータ配列120とは異なる追加のデータ配列を記憶するものとし、第2処理装置132から第1処理装置130へ、上記追加のデータ配列を介して第2イベント情報を転送するものとしてもよい。
Further, in the above embodiment, the first event information is transferred from the
より具体的には、通信部104を介して印刷装置100に通信可能に接続された周辺機器におけるイベントを第2イベントとして、そのイベントに係る第2イベント情報を第1記憶部108を介して第2処理装置132から第1処理装置130へ転送するものとしてもよい。この場合、第2処理装置132は、例えば第2イベントの発生時刻を印刷機構部102の起動後の経過時間で表した時刻情報(上記第1時刻情報と同じ形式の時刻情報)として含ませた第2イベント情報を第1記憶部108の追加データ配列に保存する。第1処理装置130は、第1記憶部108の追加データ配列から第2イベント情報を読み出し、第2イベント情報に応じた適切な処理を行うことができる。これにより、第1処理装置130は、印刷機構部102と周辺機器との連携動作の制御をより適切に行うことが可能となる。印刷装置100に接続される周辺機器としては、例えば、MSR(磁気ストライプリーダー、Magnetic Stripe Reader)や、バーコードリーダー(いずれも不図示)等の入力装置がある。
More specifically, an event in a peripheral device communicably connected to the
また、上記実施形態では、第1イベント検出部142が第1イベントを検出したときに、第1イベント記録部144により第1イベント情報を第1記憶部108に保存し、第2イベント検出部152が第2イベントを検出したときに、イベントログ記録部154により第2イベント情報を第2記憶部110に保存するものとしたが、これには限られない。すなわち、印刷機構部102を制御するアプリケーションプログラム202または通信部104を制御するアプリケーションプログラム302は、第1記憶部108または第2記憶部110にイベント情報を任意に保存することができる。例えば、アプリケーションプログラム202が起動(動作開始)したことを、イベント記録部144に指示し第1イベント情報として記憶部108に保存し、また、アプリケーションプログラム302が起動(動作開始)したことを、イベント記録部154に指示し第2イベント情報として記憶部110に保存することもできる。
Further, in the above embodiment, when the first
また、上記実施形態では、印刷装置100は、第1処理装置130と第2処理装置132の2つの処理装置を備えるものとしたが、これには限られない。例えば、3つ以上の処理装置を備え、一の処理装置から他の処理装置への一方向のデータの転送が、それぞれ、第1記憶部108に記憶された複数のデータ配列の一つを介して行われるものとすることができる。
Further, in the above embodiment, the
また、上記実施形態では、第1時刻情報と第2時刻情報とが同一の時刻系に従う時刻を表すように変換を行うものとしたが、これには限られない。すなわち、変換後の第1時刻情報と第2時刻情報とが、互いの時間的な前後関係を明確にする共通形式のデータとして保存される限りにおいて、日本標準等のいわゆる時刻系とは異なる基準に従う時刻情報を共通形式データとすることができる。例えば、変換後の第1時刻情報と第2時刻情報とが、同一の基準時刻からの経過時間を表すものとしてもよい。 Further, in the above embodiment, the conversion is performed so that the first time information and the second time information represent the time according to the same time system, but the conversion is not limited to this. That is, as long as the converted first time information and second time information are stored as data in a common format that clarifies the temporal context of each other, the standard is different from the so-called time system such as the Japanese standard. The time information according to the above can be used as common format data. For example, the converted first time information and the second time information may represent the elapsed time from the same reference time.
100…印刷装置、102…印刷機構部、104…通信部、106…処理装置、108…第1記憶部、110…第2記憶部、120…データ配列、122…記憶領域、124…書込みポインター、126…読出しポインター、128…イベントログ、130…第1処理装置、132…第2処理装置、134…第1時間計測部、136…第2時間計測部、140…印刷制御部、142…第1イベント検出部、144…第1イベント記録部、150…通信制御部、152…第2イベント検出部、154…イベントログ記録部、200…第1オペレーティングシステム、202、204、206、302、304、306…アプリケーションプログラム、300…第2オペレーティングシステム。
100 ... printing device, 102 ... printing mechanism unit, 104 ... communication unit, 106 ... processing device, 108 ... first storage unit, 110 ... second storage unit, 120 ... data array, 122 ... storage area, 124 ... write pointer, 126 ... Read pointer, 128 ... Event log, 130 ... 1st processing device, 132 ... 2nd processing device, 134 ... 1st time measurement unit, 136 ... 2nd time measurement unit, 140 ... Print control unit, 142 ... 1st
Claims (9)
第1オペレーティングシステムとは異なる第2オペレーティングシステム上で外部装置と通信する通信部を制御するプログラムが動作する第2処理装置と、
前記第1処理装置及び前記第2処理装置からアクセスされる第1記憶部と、
前記第2処理装置によりアクセスされる第2記憶部と、
を有し、
前記第1処理装置は、前記印刷機構部で生じた第1イベントに係る第1イベント情報を前記第1記憶部に書き込み、
前記第2処理装置は、前記通信部で生じた第2イベントに係る第2イベント情報と、前記第1記憶部から読み出した前記第1イベント情報とを、それぞれ所定の共通形式のデータを含むイベントログ情報として前記第2記憶部に保存する印刷装置。 The first processing device on which the program that controls the printing mechanism operates on the first operating system,
A second processing device that runs a program that controls a communication unit that communicates with an external device on a second operating system that is different from the first operating system.
The first storage unit accessed from the first processing device and the second processing device, and
A second storage unit accessed by the second processing device, and
Have,
The first processing device writes the first event information related to the first event generated in the printing mechanism unit to the first storage unit, and writes the information.
The second processing device is an event that includes data in a predetermined common format for the second event information related to the second event generated in the communication unit and the first event information read from the first storage unit. A printing device that stores log information in the second storage unit.
前記第2処理装置は、前記第1イベント情報に含まれる第1イベントの発生時刻を示す第1時刻情報と、前記第2イベント情報に含まれる第2イベントの発生時刻を示す第2時刻情報とを、同一の時刻系に従う時刻に変換することにより前記共通形式のデータとして第2記憶部に保存する請求項1に記載の印刷装置。 The predetermined common format data is data relating to the occurrence time of the first event and the second event.
The second processing apparatus includes first time information indicating the occurrence time of the first event included in the first event information, and second time information indicating the occurrence time of the second event included in the second event information. The printing apparatus according to claim 1, wherein the information is stored in the second storage unit as the data in the common format by converting the information into a time according to the same time system.
前記第2時刻情報は、所定の時刻系に従う時刻を示す情報であり、
前記第2処理装置は、前記印刷機構部の起動時の時刻に前記第1時刻情報が示す前記起動後の経過時間を加算して、前記第1時刻情報を、前記所定の時刻系に従う時刻に変換する請求項2に記載の印刷装置。 The first time information is information indicating an elapsed time after the start of the printing mechanism unit.
The second time information is information indicating a time according to a predetermined time system.
The second processing apparatus adds the elapsed time after the activation indicated by the first time information to the time when the printing mechanism unit is activated, and sets the first time information to a time according to the predetermined time system. The printing apparatus according to claim 2 to be converted.
前記第1処理装置は、前記第1イベントに係る前記第1イベント情報を、前記第1イベントの発生順に、前記データ配列の先頭から末尾に向かう順に、前記データ配列を構成する前記記憶領域のうち空き領域に設定されている前記記憶領域に記憶し、
前記第2処理装置は、前記第1イベント情報を、前記データ配列の先頭から末尾に向かう順に前記記憶領域から読み出して、前記読み出した前記記憶領域を空き領域に設定する請求項1から3のいずれか一項に記載の印刷装置。 The first storage unit is divided into a plurality of storage areas having predetermined storage capacities ordered to form a data array.
The first processing apparatus stores the first event information related to the first event in the storage area constituting the data array in the order of occurrence of the first event and in the order from the beginning to the end of the data array. Store in the storage area set in the free area,
The second processing apparatus reads the first event information from the storage area in the order from the beginning to the end of the data array, and sets the read storage area as a free area. The printing apparatus according to one item.
前記第1処理装置は、空き領域に設定されている前記記憶領域がないことにより一つ以上の前記第1イベント情報を破棄した後に、前記記憶領域のいずれかが空き領域に設定されたときは、前記空き領域に設定された前記記憶領域に、前記破棄した前記第1イベント情報の数と、その後に発生した前記第1イベントに係る前記第1イベント情報とを保存する請求項4に記載の印刷装置。 When the first processing device intends to store the first event information in the first storage unit, the first processing device does not have the storage area set in the free area among the storage areas constituting the data array. Discards the first event information to be saved and
When the first processing device discards one or more of the first event information due to the absence of the storage area set in the free area, and then any of the storage areas is set in the free area. 4. The fourth aspect of claim 4, wherein the number of the discarded first event information and the first event information related to the first event generated thereafter are stored in the storage area set in the free area. Printing device.
前記第1処理装置及び前記第2処理装置は、それぞれ相異なる前記プロセッサーで構成される請求項1から5のいずれか一項に記載の印刷装置。 With a multi-core processor with multiple processors,
The printing apparatus according to any one of claims 1 to 5, wherein the first processing apparatus and the second processing apparatus are composed of different processors.
前記第1処理装置は、前記印刷機構部で生じた第1イベントに係る第1イベント情報を前記第1記憶部に書き込み、
前記第2処理装置は、前記通信部で生じた第2イベントに係る第2イベント情報と、前記第1記憶部から読み出した前記第1イベント情報とを、それぞれ所定の共通形式のデータを含むイベントログ情報として前記第2記憶部に保存する印刷装置の制御方法。
A first processing device that operates a program that controls a printing mechanism on the first operating system and a program that controls a communication unit that communicates with an external device on a second operating system that is different from the first operating system. A method for controlling a printing device including two processing devices, a first storage unit accessed from the first processing device and the second processing device, and a second storage unit accessed by the second processing device. hand,
The first processing device writes the first event information related to the first event generated in the printing mechanism unit to the first storage unit, and writes the information.
The second processing device is an event that includes data in a predetermined common format for the second event information related to the second event generated in the communication unit and the first event information read from the first storage unit. A method for controlling a printing device that stores log information in the second storage unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017204544A JP6926938B2 (en) | 2017-10-23 | 2017-10-23 | Printing device and control method of printing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017204544A JP6926938B2 (en) | 2017-10-23 | 2017-10-23 | Printing device and control method of printing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019077078A JP2019077078A (en) | 2019-05-23 |
| JP6926938B2 true JP6926938B2 (en) | 2021-08-25 |
Family
ID=66628583
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017204544A Active JP6926938B2 (en) | 2017-10-23 | 2017-10-23 | Printing device and control method of printing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6926938B2 (en) |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002373084A (en) * | 2001-06-14 | 2002-12-26 | Hitachi Ltd | Redundant system status exchange / failure detection method |
| JP4483807B2 (en) * | 2006-03-16 | 2010-06-16 | 日本電気株式会社 | Log format conversion device, log format conversion method, and log format conversion program |
| JP2009009448A (en) * | 2007-06-29 | 2009-01-15 | Mitsubishi Electric Corp | Data transmission apparatus, data transmission method, and program |
| JP2011039834A (en) * | 2009-08-12 | 2011-02-24 | Nec Corp | Log conversion system |
| JP2012190197A (en) * | 2011-03-10 | 2012-10-04 | Canon Inc | Log processing system |
| JP6119331B2 (en) * | 2013-03-15 | 2017-04-26 | 株式会社リコー | Information processing system, information transmission method and program |
| JP2015118493A (en) * | 2013-12-18 | 2015-06-25 | 三菱電機株式会社 | Trace device and trace program |
-
2017
- 2017-10-23 JP JP2017204544A patent/JP6926938B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019077078A (en) | 2019-05-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5533097B2 (en) | Information processing apparatus, image forming apparatus, and information processing program | |
| JP4462291B2 (en) | Information processing apparatus, information processing program, and information processing system | |
| JP2009059112A (en) | Log collection system and computer apparatus | |
| US11231700B2 (en) | Communication system, communication method, and information storage medium | |
| CN111290364A (en) | Method of monitoring usage of electronic control device of vehicle | |
| JP5191934B2 (en) | Status monitoring system and status monitoring method | |
| CN116339205A (en) | Diagnosis information synchronization method, device, electronic equipment and storage medium | |
| JP5088479B2 (en) | Data recording device | |
| JP6926938B2 (en) | Printing device and control method of printing device | |
| CN111400294A (en) | Data anomaly monitoring method, device and system | |
| JP4573179B2 (en) | Performance load abnormality detection system, performance load abnormality detection method, and program | |
| CN110221932B (en) | Computer and its control method | |
| SU1588344A1 (en) | Automatic system for all-year-round looking after vital activity of bee family | |
| JP5987797B2 (en) | Information processing apparatus and program | |
| JP2847893B2 (en) | Programmable controller | |
| US20170013142A1 (en) | Image forming apparatus, abnormality management system of image forming apparatus | |
| CN110058979A (en) | A kind of temperature reads monitoring method, BMC and the storage medium of failure failure | |
| JP6732147B1 (en) | Communication device and data collection system | |
| JP6112552B2 (en) | Information collection system | |
| JPH0898278A (en) | Digital control system | |
| JP4899763B2 (en) | Terminal management apparatus, program, and communication method | |
| JP2006252487A (en) | Programmable controller system | |
| CN116569560B (en) | Methods and apparatus for protecting signals used to transmit measured values to a signal processing unit. | |
| JP2001256029A5 (en) | ||
| CN119443124A (en) | A method for monitoring smart card problems |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200903 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210623 |
|
| 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: 20210706 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210719 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6926938 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |