Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6926938B2 - Printing device and control method of printing device - Google Patents
[go: Go Back, main page]

JP6926938B2 - Printing device and control method of printing device - Google Patents

Printing device and control method of printing device Download PDF

Info

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
Application number
JP2017204544A
Other languages
Japanese (ja)
Other versions
JP2019077078A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2017204544A priority Critical patent/JP6926938B2/en
Publication of JP2019077078A publication Critical patent/JP2019077078A/en
Application granted granted Critical
Publication of JP6926938B2 publication Critical patent/JP6926938B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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.

特開2011−159136号公報Japanese Unexamined Patent Publication No. 2011-159136

一般に、複数のプロセッサーやプロセッサー・コア(以下、単にプロセッサーという)を用いる装置では、各プロセッサーは、その装置が有する種々の異なる機能を分担し、これらを並列処理することで装置全体としての処理能力を向上する。このため、各プロセッサーは、それぞれが分担する機能に適した異なるオペレーティングシステム(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.

本発明の一実施形態に係る印刷装置の構成を示す図。The figure which shows the structure of the printing apparatus which concerns on one Embodiment of this invention. 第1処理装置におけるソフトウェア階層構造を示す図。The figure which shows the software hierarchy structure in the 1st processing apparatus. 第2処理装置におけるソフトウェア階層構造を示す図。The figure which shows the software hierarchy structure in the 2nd processing apparatus. 第1記憶部が記憶するデータ配列のデータ構造を示す図。The figure which shows the data structure of the data array which the 1st storage part stores. 第2イベント情報のデータ構造を示す図。The figure which shows the data structure of the 2nd event information. データ配列における書込み及び読出しの位置の例を示す図。The figure which shows the example of the position of writing and reading in a data array. イベントログの一例を示す図。The figure which shows an example of the event log. 第1イベント情報保存処理の手順を示すフローチャート。The flowchart which shows the procedure of the 1st event information storage process. 第2イベントログ保存処理の手順を示すフローチャート。The flowchart which shows the procedure of the 2nd event log save process. 第1イベントログ保存処理の手順を示すフローチャート。The flowchart which shows the procedure of the 1st event log save process. イベントログ送信処理の手順を示すフローチャート。A flowchart showing the procedure of event log transmission processing.

以下、図面を参照して本発明の実施形態について説明する。
図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 printing apparatus 100 according to an embodiment of the present invention. The printing device 100 includes a printing mechanism unit 102 that prints on paper, a communication unit 104 that communicates with an external device, a processing device 106, a first storage unit 108, and a second storage unit 110.

印刷機構部102は、例えば用紙にインクを吐出する印刷ヘッド、用紙上で印刷ヘッドを移動する走査機構、用紙を搬送する搬送機構等(いずれも不図示)で構成される。また、通信部104は、例えば、周辺機器やサーバー等の外部装置と通信を行う送受信機(不図示)等で構成される。 The printing mechanism unit 102 includes, for example, a printing head that ejects ink onto the paper, a scanning mechanism that moves the printing head on the paper, a conveying mechanism that conveys the paper, and the like (all not shown). Further, the communication unit 104 is composed of, for example, a transceiver (not shown) that communicates with an external device such as a peripheral device or a server.

処理装置106は、第1処理装置130と、第2処理装置132と、第1時間計測部134と、第2時間計測部136と、を備える。第1時間計測部134は、印刷装置100の電源が投入されて印刷機構部102が起動されたときに、第2処理装置132により起動され、印刷機構部102の起動後の経過時間を計測する。 The processing device 106 includes a first processing device 130, a second processing device 132, a first time measuring unit 134, and a second time measuring unit 136. When the power of the printing device 100 is turned on and the printing mechanism 102 is started, the first time measuring unit 134 is started by the second processing device 132 and measures the elapsed time after the printing mechanism 102 is started. ..

第2時間計測部136は、例えばリアルタイムクロック(RTC、Real Time Clock)であり、所定の時刻系、例えば日本標準時(JST、Japan Standard Time)を保持する。すなわち、第2時間計測部136は、印刷装置100の電源が投入されている間はもちろん、電源が断になったあとも、例えば印刷装置100に設けられたバッテリー(不図示)により時間計測を継続して、日本標準時に従う現在時刻を保持する。なお、第2時間計測部136は、日本標準時に代えて、協定世界時(UTC、Coordinated Universal Time)に従う時刻を保持するものとしてもよい。 The second time measurement unit 136 is, for example, a real-time clock (RTC, Real Time Clock) and holds a predetermined time system, for example, Japan Standard Time (JST, Japan Standard Time). That is, the second time measurement unit 136 measures the time not only while the power of the printing device 100 is turned on, but also after the power is turned off, for example, by using a battery (not shown) provided in the printing device 100. Continue to keep the current time according to Japan Standard Time. The second time measurement unit 136 may hold the time according to Coordinated Universal Time (UTC) instead of Japan Standard Time.

第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 first processing device 130 and the second processing device 132 are computers including a processor such as a CPU (Central Processing Unit), for example. The first processing device 130 and the second processing device 132 may have a configuration including a ROM (Read Only Memory) in which a program is written, a RAM (Random Access Memory) for temporarily storing data, and the like. The first processing device 130 has a print control unit 140, a first event detection unit 142, and a first event recording unit 144 as functional elements (or functional units). Further, the second processing device 132 has a communication control unit 150, a second event detection unit 152, and an event log recording unit 154 as functional elements (or functional units).

第1処理装置130及び第2処理装置132が備えるこれらの機能要素は、それぞれ、コンピューターである第1処理装置130及び第2処理装置132がプログラムを実行することにより実現される。 These functional elements included in the first processing device 130 and the second processing device 132 are realized by executing a program by the first processing device 130 and the second processing device 132, which are computers, respectively.

図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 first processing device 130. The first processing device 130 includes a first operating system 200 that manages the operation of hardware such as a CPU, RAM, and ROM. Further, the first processing device 130 is executed on the first operating system 200 and realizes each functional element of the print control unit 140, the first event detection unit 142, and the first event recording unit 144. Application programs 202, 204, 206 To be equipped. In the present embodiment, the first operating system 200 is a real-time operating system (real-time OS) such as T-Kernel, for example, from the viewpoint of ensuring efficient operation of the print control unit 140 that controls the print mechanism unit 102 in real time. ..

図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 second processing device 132. The second processing device 132 includes a second operating system 300 that manages the operation of hardware such as a CPU, RAM, and ROM. Further, the second processing device 132 executes application programs 302, 304, and 306 on the second operating system 300 to realize the functional elements of the communication control unit 150, the second event detection unit 152, and the event log recording unit 154. Be prepared. In the present embodiment, the second operating system 300 is, for example, Linux from the viewpoint of performing communication control and various other processes that do not require real-time processing for general purposes.

ここで、一般に、リアルタイムオペレーティングシステムでは、制御動作の効率性が重視されており、日本標準時等の時刻情報の保持は、基本機能としてはサポートされていない。このため、リアルタイムオペレーティングシステムを用いる場合には、時間に関する情報は、例えば、装置起動後の経過時間等が用いられる。これに対し、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 first processing device 130 and the second processing device 132 each have an individual processor (CPU), but the present invention is not limited to this. For example, the first processing device 130 and the second processing device 132 may be composed of individual processors (or processor cores) in a multi-core processor having a plurality of processors (or processor cores). can.

第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 first storage unit 108 has a plurality of (n) storage areas 122-1, 122-2, 122-3, 122-4, which have predetermined storage capacities ordered to form a data sequence 120. .. .. , 122-n. These storage areas 122-1, 122-2, 122-3, 122-4 ,. .. .. , 122-n are provided, for example, in the order of storage addresses in the first storage unit 108. First event information is stored in each of the storage areas 122 by the first processing device 130 of the processing device 106, which will be described later. Further, the first event information stored in the storage area 122 is read out by the second processing device 132 of the processing device 106. That is, the first event information is transferred in one direction from the first processing device 130 to the second processing device 132 via the first storage unit 108.

以下、記憶領域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 storage area 122. Further, in the following, the head of the data array 120 means a storage area 122 (for example, 122-1) provided at the position of the storage address having the smallest address value in the storage area 122. Further, the end of the data array 120 means a storage area 122 (for example, 122-n) provided at the position of the storage address having the largest address value in the storage area 122.

第1記憶部108には、また、第1処理装置130が第1イベント情報を次に保存すべき記憶領域122の場所を示す書込みポインター124が保存される。さらに、第1記憶部108には、第2処理装置132が第1イベント情報を次に読み出すべき記憶領域122の場所を示す読出しポインター126が保存される。書込みポインター124及び読出しポインター126は、印刷装置100の起動時に実行される初期化処理の際に、データ配列の先頭の記憶領域122を示す値に設定される。 The first storage unit 108 also stores a write pointer 124 indicating the location of the storage area 122 in which the first processing device 130 should store the first event information next. Further, the first storage unit 108 stores a read pointer 126 indicating the location of the storage area 122 in which the second processing device 132 should read the first event information next. The write pointer 124 and the read pointer 126 are set to values indicating the storage area 122 at the beginning of the data array during the initialization process executed when the printing device 100 is started.

図4は、データ配列120を構成する記憶領域122におけるデータ構造を示す図である。記憶領域122に記憶されるデータは、所定サイズのビット長を持つデータ列であり、その先頭から順に、ステイタス領域400、破棄数領域402、及びイベント情報領域404を有する。また、イベント情報領域404は、さらに、時刻領域406とメッセージ領域408で構成されている。 FIG. 4 is a diagram showing a data structure in the storage area 122 constituting the data array 120. The data stored in the storage area 122 is a data string having a bit length of a predetermined size, and has a status area 400, a discard number area 402, and an event information area 404 in order from the beginning. Further, the event information area 404 is further composed of a time area 406 and a message area 408.

ステイタス領域400には、その記憶領域122に第1イベント情報が書き込まれているか否かを示すステイタスが記憶される。ステイタスは、イベント情報領域404に第1イベント情報が書き込まれていないことを示す「空き領域」、又はイベント情報領域404に第1イベント情報が書き込まれていることを示す「占有領域」のいずれかである。以下において、記憶領域122を「空き領域に設定する」又は「占有領域に設定する」とは、その記憶領域122のステイタス領域400に「空き領域」であることを示す値又は「占有領域」であることを示す値を保存することをいうものとする。なお、第1記憶部108の記憶領域122は、印刷装置100の起動時に実行される初期化処理の際に、全て「空き領域」に設定される。その他の領域に保存されるデータの詳細については後述する。 In the status area 400, a status indicating whether or not the first event information is written in the storage area 122 is stored. The status is either a "free area" indicating that the first event information is not written in the event information area 404, or an "occupied area" indicating that the first event information is written in the event information area 404. Is. In the following, "setting the storage area 122 as a free area" or "setting as an occupied area" is a value indicating that the status area 400 of the storage area 122 is a "free area" or an "occupied area". It is meant to store a value that indicates that there is. The storage areas 122 of the first storage unit 108 are all set to "free areas" during the initialization process executed when the printing device 100 is started. Details of the data stored in other areas will be described later.

第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 second storage unit 110 stores an event log 128 which is a history of the first event (described later) and the second event (described later) that have occurred. The event log 128 is composed of event log information stored in the second storage unit 110 by the second processing device 132 of the processing device 106.

第1処理装置130の印刷制御部140は、印刷機構部102の動作をリアルタイム制御して、用紙への印刷を実行する。第1イベント検出部142は、印刷機構部102の動作に関連する第1イベントの発生を検出する。第1イベントには、例えば、印刷機構部102におけるインクの枯渇、用紙切れ等の、正常な印刷動作に伴って生ずるイベントのほか、印刷ヘッドの移動異常や用紙の紙詰まり等の異常動作に関するイベントが含まれる。 The print control unit 140 of the first processing device 130 controls the operation of the print mechanism unit 102 in real time to execute printing on paper. The first event detection unit 142 detects the occurrence of the first event related to the operation of the printing mechanism unit 102. The first event includes, for example, events that occur with normal printing operations such as ink depletion and paper shortage in the printing mechanism unit 102, as well as events related to abnormal operations such as abnormal movement of the print head and paper jam. Is included.

また、第1イベント検出部142は、第1イベントを検出したときに、印刷機構部102の起動後の経過時間を第1時間計測部134から取得し、取得した経過時間と上記検出した第1イベントの内容を表す情報とを第1イベント記録部144へ送る。 Further, when the first event detection unit 142 detects the first event, the first event detection unit 142 acquires the elapsed time after the start of the printing mechanism unit 102 from the first time measurement unit 134, and the acquired elapsed time and the detected first first event. Information indicating the content of the event is sent to the first event recording unit 144.

第1イベント記録部144は、第1イベント検出部142から受信した経過時間と第1イベントの内容を表す情報とに基づき、第1イベント情報を生成する。より具体的には、第1イベント記録部144は、受信した第1イベントの内容を記述するメッセージに、受信した経過時間を第1時刻情報として付加して、第1イベント情報を生成する。ここで、第1イベントの内容を記述する上記メッセージは、本実施形態では、例えば、第1イベントの種類毎に予め定められたコードで表される。ただし、これに限らず、第1イベントの内容を記述する上記メッセージを、テキストメッセージで構成するものとすることもできる。 The first event recording unit 144 generates the first event information based on the elapsed time received from the first event detection unit 142 and the information representing the content of the first event. More specifically, the first event recording unit 144 adds the received elapsed time as the first time information to the message describing the contents of the received first event to generate the first event information. Here, in the present embodiment, the above message describing the content of the first event is represented by, for example, a predetermined code for each type of the first event. However, the present invention is not limited to this, and the above message describing the content of the first event may be composed of a text message.

第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 event recording unit 144 stores the generated first event information in the storage area 122 of the first storage unit 108. At that time, the first event recording unit 144 sets the first event information in the free area in the order in which the first event occurs, in the order from the beginning to the end of the data array 120 configured by the storage area 122. Save to 122. That is, each time the first event recording unit 144 writes the first event information in order from the first storage area 122 of the data array 120, the first event recording unit 144 points the write pointer 124 stored by the first storage unit 108 toward the end of the data array 120. The value is set to indicate the next storage area 122. More specifically, each time the first event recording unit 144 writes the first event information to the storage area 122, the value of the write pointer 124 is increased (incremented) by the size of one storage area 122. .. Further, after the write pointer 124 becomes a value indicating the storage area 122 at the end of the data array 120, the first event recording unit 144 sets the write pointer 124 to the initial value (that is, the storage area 122 at the beginning of the data array 120). Set to (address value indicating).

第1イベント情報は、図4に示すデータ構造のイベント情報領域404に保存される。より詳細には、第1イベント情報のうち、第1イベントの内容を記述するメッセージはメッセージ領域408に保存され、第1時刻情報は時刻領域406に保存される。また、第1イベント記録部144は、記憶領域122に第1イベント情報を保存したときは、その記憶領域122を占有領域に設定する。 The first event information is stored in the event information area 404 of the data structure shown in FIG. More specifically, among the first event information, the message describing the content of the first event is stored in the message area 408, and the first time information is stored in the time area 406. Further, when the first event information is stored in the storage area 122, the first event recording unit 144 sets the storage area 122 as the occupied area.

第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 event recording unit 144 discards the generated first event information while the first storage unit 108 does not have the storage area 122 set as the free area. , Count the cumulative number of first event information that was continuously discarded. After that, when a new first event occurs after any storage area 122 is set in the free area, the first event recording unit 144 sets the first event information related to the first event in the free area. It is stored in the stored storage area 122.

また、その際、第1イベント記録部144は、その第1イベント情報を保存する記憶領域122の破棄数領域402に、それまでに破棄した第1イベント情報の累積数(累積破棄数)を保存する。第1イベント記録部144は、累積破棄数を破棄数領域402に保存した後は、累積破棄数のカウントをゼロにリセットし、新たに第1イベント情報を破棄したときに、累積破棄数のカウントを開始する。なお、第1イベント記録部144は、第1イベント情報を記憶領域122に記憶する際に、累積破棄数がゼロであるときは、その記憶領域122の破棄数領域402に値ゼロを保存する。 At that time, the first event recording unit 144 saves the cumulative number (cumulative number of discards) of the first event information discarded so far in the discard number area 402 of the storage area 122 that stores the first event information. do. The first event recording unit 144 resets the cumulative discard count to zero after saving the cumulative discard count in the discard count area 402, and when the first event information is newly discarded, the cumulative discard count is counted. To start. When the first event recording unit 144 stores the first event information in the storage area 122 and the cumulative number of discards is zero, the first event recording unit 144 stores the value zero in the discard number area 402 of the storage area 122.

なお、上述において、第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 first storage unit 108 has a storage area 122 set as an empty area is determined by, for example, the storage area 122 indicated by the write pointer 124 stored by the first storage unit 108 as an occupied area. It can be judged by whether or not there is. That is, if the storage area 122 indicated by the write pointer 124 is an occupied area, it can be determined that the first storage unit 108 does not have the storage area 122 set as the free area. When the storage area 122 of the data array 120 is set to the occupied area one after another and the write pointer 124 is incremented, the storage area 122 indicated by the write pointer 124 after the storage area 122 of the last free area is set to the occupied area Is always an occupied area.

第2処理装置132の通信制御部150(図1)は、通信部104を制御して、周辺機器やサーバー等の外部装置と通信を行う。 The communication control unit 150 (FIG. 1) of the second processing device 132 controls the communication unit 104 to communicate with an external device such as a peripheral device or a server.

第2処理装置132の第2イベント検出部152は、印刷機構部102以外の部分の動作に関連する第2イベントの発生を検出する。第2イベントには、例えば、通信部104における通信動作の異常、通信部104を介して行われるサーバー等の外部装置との間の定期通信の発生、通信部104を介して受信される印刷装置100の周辺機器におけるイベント等が含まれ得る。 The second event detection unit 152 of the second processing device 132 detects the occurrence of a second event related to the operation of a portion other than the printing mechanism unit 102. The second event includes, for example, an abnormality in the communication operation in the communication unit 104, the occurrence of periodic communication with an external device such as a server performed via the communication unit 104, and the printing device received via the communication unit 104. Events and the like in 100 peripherals may be included.

また、第2イベント検出部152は、第2イベントを検出したときに、第2時間計測部136から現在時刻を取得し、取得した現在時刻と上記検出した第2イベントの内容を表す情報とをイベントログ記録部154へ送る。 Further, the second event detection unit 152 acquires the current time from the second time measurement unit 136 when the second event is detected, and obtains the acquired current time and information indicating the content of the detected second event. Send to the event log recording unit 154.

イベントログ記録部154は、第2イベント検出部152から受信した現在時刻と第2イベントの内容を表す情報とに基づき、第2イベント情報を生成する。より具体的には、イベントログ記録部154は、受信した第2イベントの内容を記述するメッセージに、受信した現在時刻を第2時刻情報として付加して、第2イベント情報を生成する。そして、イベントログ記録部154は、上記生成した第2イベント情報を、イベントログ情報として、第2記憶部110が記憶するイベントログ128に追加して記憶する。ここで、第2イベントの内容を記述する上記メッセージは、本実施形態では、例えば、テキストメッセージで構成される。ただし、これに限らず、第2イベントの内容を記述する上記メッセージを、第2イベントの種類毎に予め定められたコードで表すものとすることもできる。 The event log recording unit 154 generates the second event information based on the current time received from the second event detection unit 152 and the information representing the contents of the second event. More specifically, the event log recording unit 154 adds the received current time as the second time information to the message describing the contents of the received second event to generate the second event information. Then, the event log recording unit 154 adds and stores the generated second event information as the event log information to the event log 128 stored in the second storage unit 110. Here, the above message describing the content of the second event is composed of, for example, a text message in the present embodiment. However, the present invention is not limited to this, and the above message describing the content of the second event may be represented by a code predetermined for each type of the second 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 time area 502 and a message area 504 in this order from the beginning. The second time information of the second event information is stored in the time area 502, and a message describing the content of the second event is stored in the message area 504.

イベントログ記録部154は、また、例えば所定の時間間隔で第1記憶部108にアクセスし、第1記憶部108の記憶領域122から累積破棄数及び第1イベント情報を読み出して、その記憶領域122を空き領域に設定する。すなわち、イベントログ記録部154は、所定の時間間隔で第1記憶部108内に占有領域に設定された記憶領域122があるか否かを判断する。そして、占有領域に設定された記憶領域122があるときは、その記憶領域122から累積破棄数及び第1イベント情報(以下、「第1イベント情報等」ともいう)を読み出す。その際、占有領域に設定された記憶領域122が複数あるときは、イベントログ記録部154は、記憶領域122が構成するデータ配列120の先頭から末尾に向かう順に読み出しを行う。 The event log recording unit 154 also accesses the first storage unit 108 at predetermined time intervals, reads the cumulative number of discards and the first event information from the storage area 122 of the first storage unit 108, and stores the storage area 122. To free space. That is, the event log recording unit 154 determines whether or not there is a storage area 122 set as an occupied area in the first storage unit 108 at predetermined time intervals. Then, when there is a storage area 122 set in the occupied area, the cumulative number of discarded items and the first event information (hereinafter, also referred to as "first event information") are read from the storage area 122. At that time, when there are a plurality of storage areas 122 set in the occupied area, the event log recording unit 154 reads the data array 120 configured by the storage area 122 in the order from the beginning to the end.

より具体的には、イベントログ記録部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 storage area 122 at the position indicated by the read pointer 126 stored by the first storage unit 108 is an occupied area, the event log recording unit 154 reads out the first event information or the like from the storage area 122. .. Then, the event log recording unit 154 sets the storage area 122 as a free area, and sets the read pointer 126 to a value indicating the next storage area 122 toward the end of the data array 120. That is, the event log recording unit 154 increases (increments) the value of the read pointer 126 by the size of one storage area 122. Further, after the read pointer 126 becomes a value indicating the storage area 122 at the end of the data array 120, the event log recording unit 154 sets the read pointer 126 to the initial value (that is, the storage area 122 at the beginning of the data array 120). Set to the indicated address value).

上記において、読出しポインター126が示す記憶領域122が空き領域に設定されていれば、第1記憶部108内には占有領域に設定されている記憶領域122はないものと判断することができる。データ配列120の記憶領域122が次々に空き領域に設定されて読出しポインター126がインクリメントされると、最後の占有領域の記憶領域122が空き領域に設定された後の読出しポインター126が示す記憶領域122は必ず空き領域であるためである。 In the above, if the storage area 122 indicated by the read pointer 126 is set as an empty area, it can be determined that there is no storage area 122 set as the occupied area in the first storage unit 108. When the storage area 122 of the data array 120 is set to the free area one after another and the read pointer 126 is incremented, the storage area 122 indicated by the read pointer 126 after the storage area 122 of the last occupied area is set to the free area. Is always free space.

なお、所定の時間間隔ごとにイベントログ記録部154が読み出し対象とする記憶領域122は、必ずしも占有領域に設定されている記憶領域122の全てである必要はなく、予め定められた数を上限とする数の記憶領域122であるものとすることができる。 The storage area 122 to be read by the event log recording unit 154 at predetermined time intervals does not necessarily have to be all of the storage areas 122 set in the occupied area, and the upper limit is a predetermined number. It can be assumed that there are a number of storage areas 122.

さらに、イベントログ記録部154は、読み出した第1イベント情報に含まれる第1時刻情報を、第2イベント情報に含まれる第2時刻情報と共通の形式に変換する。具体的には、イベントログ記録部154は、印刷装置100の電源投入時に記憶した印刷機構部102の起動時の時刻に第1時刻情報が示す印刷機構部102の起動後の経過時間を加算して、第1時刻情報を第2時刻情報と同様の日本標準時に従う時刻に変換する。すなわち、イベントログ記録部154は、第1時刻情報を、第2時刻情報と同一の時刻系に従う時刻に変換する。そして、イベントログ記録部154は、上記変換した第1時刻情報を含む第1イベント情報を、イベントログ情報として第2記憶部110のイベントログ128に追加して記憶する。 Further, the event log recording unit 154 converts the first time information included in the read first event information into a format common to the second time information included in the second event information. Specifically, the event log recording unit 154 adds the elapsed time after the start of the print mechanism unit 102 indicated by the first time information to the start time of the print mechanism unit 102 stored when the power of the printing device 100 is turned on. Then, the first time information is converted into a time according to Japan Standard Time, which is the same as the second time information. That is, the event log recording unit 154 converts the first time information into a time that follows the same time system as the second time information. Then, the event log recording unit 154 adds the first event information including the converted first time information to the event log 128 of the second storage unit 110 as event log information and stores it.

すなわち、イベントログ記録部154は、共通形式のデータとしての第1時刻情報と第2時刻情報とをそれぞれ含む第1イベント情報と第2イベント情報とを、イベントログ情報として第2記憶部110に保存する。なお、イベントログ記録部154は、共通形式のデータである第1時刻情報及び第2時刻情報に基づいて、第1イベント情報と第2イベント情報とをそれらの発生順にソートして、イベントログ128に保存するものとすることができる。 That is, the event log recording unit 154 stores the first event information and the second event information including the first time information and the second time information as common format data in the second storage unit 110 as event log information. save. The event log recording unit 154 sorts the first event information and the second event information in the order of their occurrence based on the first time information and the second time information which are common format data, and the event log 128 Can be stored in.

また、イベントログ記録部154は、第1記憶部108の記憶領域122から読み込んだ累積破棄数がゼロでないときは、まず、読み込んだ累積破棄数の情報をイベントログ情報としてイベントログ128に追加して記憶する。そして、その後に、イベントログ記録部154は、その累積破棄数と同時に読み込んだ第1イベント情報を、第1時刻情報についての上記変換を行った後、イベントログ128に追加して記憶する。 When the cumulative number of discarded items read from the storage area 122 of the first storage unit 108 is not zero, the event log recording unit 154 first adds the information on the cumulative number of discarded items read to the event log 128 as event log information. And remember. Then, after that, the event log recording unit 154 adds the first event information read at the same time as the cumulative number of discards to the event log 128 after performing the above conversion of the first time information and stores it.

さらに、イベントログ記録部154は、例えば所定の時間間隔で、第2記憶部110に保存されたイベントログ128のイベントログ情報を、通信制御部150及び通信部104を介して、例えば外部のサーバーへ送信する。また、イベントログ記録部154は、イベントログ128のうち上記送信したイベントログ情報の部分を第2記憶部110から消去する。これにより、イベントログ128に新たに追加されるイベントログ情報の保存に用いることのできる第2記憶部110内の記憶領域が確保される。 Further, the event log recording unit 154 transmits the event log information of the event log 128 stored in the second storage unit 110, for example, at predetermined time intervals, via the communication control unit 150 and the communication unit 104, for example, to an external server. Send to. Further, the event log recording unit 154 deletes the transmitted event log information portion of the event log 128 from the second storage unit 110. As a result, a storage area in the second storage unit 110 that can be used for storing the event log information newly added to the event log 128 is secured.

図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 first processing device 130 writes the first event information and the second processing device 132 reads out the second event information in the data array 120 stored in the first storage unit 108. be. In the illustrated example, the data sequence 120 is composed of 512 storage areas 122, and each storage area 122 is 122-1, 122-2, ... From the beginning of the data sequence 120. .. .. It is indicated by the reference numerals 122-512. The first event information is written in the storage areas 122-6 to 122-509, and the value 11 indicating that it is an occupied area is written in the status area 400 of these storage areas 122. In addition, a value 00 indicating that the storage area 122 is a free area is written in the status area 400 of the storage area 122 other than these.

さらに、占有領域に設定された記憶領域122−6〜122−509の破棄数領域402には、一例として、すべて0が書き込まれている。これにより、記憶領域122−6〜122−509のそれぞれに第1イベント情報を保存する直前において、破棄された第1イベント情報は無かったことがわかる。 Further, as an example, all 0s are written in the discard number area 402 of the storage areas 122-6 to 122-509 set in the occupied area. From this, it can be seen that there was no discarded first event information immediately before the first event information was stored in each of the storage areas 122-6 to 122-509.

また、占有領域に設定された記憶領域122−6〜122−509の、イベント情報領域404の時刻領域406には、印刷機構部102の起動後の経過時間を表す秒数が保存されている。 Further, in the time area 406 of the event information area 404 of the storage areas 122-6 to 122-509 set in the occupied area, the number of seconds representing the elapsed time after the start of the printing mechanism unit 102 is stored.

第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 event recording unit 144 of the first processing device 130 vacates the first event information in the order in which the first event occurs, in the order from the beginning to the end of the data array 120 formed by the storage area 122. It is saved in the storage area 122 set in the area. That is, the first event recording unit 144 writes the first event information related to the first event that occurs next to the storage area 122-510 at the position indicated by the left-pointing arrow in FIG. 6, which is indicated by the write pointer 124. After that, while incrementing the write pointer 124, each time the first event is detected, the first event information of the detected first event is sequentially stored in the storage areas 122-511 and 122-512 in the order of occurrence. I will write.

なお、第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 event recording unit 144 writes the first event information to the last (end) storage area 122-512 that constitutes the data array 120, the first event recording unit 144 uses the write pointer 124 as the first one that constitutes the data array 120. Set to a value indicating the storage area 122-1. As a result, the first event recording unit 144 returns to the first storage area 122-1 constituting the data array 120 and stores the first event information generated next. After that, as described above, the first event recording unit 144 stores the first event information in the storage area 122 in the order of occurrence of the first event, in the order from the beginning to the end of the data array 120.

また、第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 log recording unit 154 of the second processing device 132 reads out the first event information and the like in the order from the beginning to the end of the data array 120 formed by the storage area 122. That is, when the event log recording unit 154 next reads the first event information from the first storage unit 108, the storage area at the position indicated by the start point of the right-pointing arrow in FIG. 6 indicated by the read pointer 126. The first event information is read from 122-6. Then, after that, while incrementing the read pointer 126, the storage areas 122-7, 122-8, ... .. .. The first event information stored in is read out.

なお、イベントログ記録部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 log recording unit 154 is a case where the last storage area 122-512 of the data array 120 is occupied, and when the first event information or the like is read from the last storage area 122-512. , Read pointer 126 is set to the initial value. That is, the read pointer 126 is set to a value indicating the first storage area 122-1 that constitutes the data array 120. As a result, the event log recording unit 154 reads the first event information and the like from the last storage area 122-512, and then returns to the first storage area 122-1 of the data array 120 to read the first event information and the like. It will be. After that, as described above, the event log recording unit 154 reads out the first event information and the like in the order from the beginning to the end of the data array 120 configured by the storage area 122.

図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 second storage unit 110. In the illustrated example, the event log 128 is composed of event log information 700-1 to 700-12. Hereinafter, when the event log information 700-1 to 700-12 are collectively referred to, the event log information 700 is referred to.

イベントログ情報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 time information area 710 in the format of "hour: minute month.day year", and the content of the second event is stored in the subsequent message area 712. The second event message indicating is stored.

また、イベントログ情報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 time information area 710 in the same format of "hour: minute month.day year" as the second time information, and the subsequent message area. A first event message indicating the content of the first event is stored in 712. That is, the first time information and the second time information included in the event log information 700 are stored in the event log 128 as data in a common format according to the same time system (Japan Standard Time in this embodiment).

イベントログ情報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 storage area 122 in which the first event information related to the event log information 700-11 is stored. .. The same time information as the event log information 700-11 may be stored in the time information area 710 of the event log information 700-10.

上述の構成を有する印刷装置100は、第1イベント情報が、第1記憶部108のデータ配列120を介して、第1処理装置130から第2処理装置132へ一方向に転送される。このため、データ配列120には、第1処理装置130における第1オペレーティングシステム200の基本機能がサポートする表現形式に従う情報のみが保存される。従って、第2処理装置132では、第1記憶部108のデータ配列120から読み出した情報(例えば、第1時刻情報)を他の表現形式へ一律に変換することができ、変換処理が容易となる。 In the printing apparatus 100 having the above-described configuration, the first event information is transferred in one direction from the first processing apparatus 130 to the second processing apparatus 132 via the data array 120 of the first storage unit 108. Therefore, in the data array 120, only the information according to the representation format supported by the basic functions of the first operating system 200 in the first processing device 130 is stored. Therefore, in the second processing device 132, the information read from the data array 120 of the first storage unit 108 (for example, the first time information) can be uniformly converted into another expression format, and the conversion processing becomes easy. ..

また、転送された第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 second processing device 132. It is saved in the event log 128. Therefore, the mutual relationship between the first event information and the second event information stored in the event log 128 with respect to their occurrence times is clarified by the first time information and the second time information described in the common format data. Will be expressed in.

その結果、発生したイベントの履歴を統一されたフォーマット、統一された時系列で保持し及び管理することが可能となる。また、イベントを時系列に分析することができるので、不具合解析やユーザーからの問い合わせ対応時にイベントログ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 event log 128 when analyzing a defect or responding to an inquiry from a user. Furthermore, when developing the product, such as customizing the printing device 100 or adding functions, it is possible to efficiently measure and evaluate the performance of the firmware by utilizing the data of the event log 128 in the design scene. ..

次に、第1処理装置130の第1イベント検出部142及び第1イベント記録部144における処理の手順、及び第2処理装置132の第2イベント検出部152及びイベントログ記録部154の処理の手順について説明する。 Next, the processing procedure in the first event detection unit 142 and the first event recording unit 144 of the first processing device 130, and the processing procedure in the second event detection unit 152 and the event log recording unit 154 of the second processing device 132. Will be described.

第1処理装置130の第1イベント検出部142及び第1イベント記録部144は、第1イベント情報保存処理を実行する。第1イベント情報保存処理は、第1イベントの発生を検出して、検出した第1イベントの内容及び発生時刻を示す第1イベント情報を、第1記憶部108のデータ配列120に保存する処理である。 The first event detection unit 142 and the first event recording unit 144 of the first processing device 130 execute the first event information storage process. The first event information saving process is a process of detecting the occurrence of the first event and saving the first event information indicating the content and the occurrence time of the detected first event in the data array 120 of the first storage unit 108. be.

第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 event detection unit 152 and the event log recording unit 154 of the second processing device 132 execute the second event log storage process, the first event log storage process, and the event log transmission process. The second event log saving process detects the occurrence of the second event, and stores the second event information indicating the content and occurrence time of the detected second event as the event log information in the second storage unit 110. It is a process of saving in 128. Further, in the first event log storage process, the first event information is read from the data array 120 stored in the first storage unit 108, the first time information is converted into a common format, and then the second storage unit is used as the event log information. This is a process of saving in the event log 128 stored in the 110. The event log transmission process is a process of reading the event log information constituting the event log 128 from the second storage unit 110 and transmitting it to an external server or the like.

以下、第1処理装置130が実行する第1イベント情報保存処理、並びに、第2処理装置132が実行する第2イベントログ保存処理、第1イベントログ保存処理、及びイベントログ送信処理の手順について説明する。 Hereinafter, the procedures of the first event information storage process executed by the first processing device 130, the second event log storage process, the first event log storage process, and the event log transmission process executed by the second processing device 132 will be described. do.

<第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 first processing device 130 will be described with reference to the flowchart shown in FIG. The first event information storage process shown in FIG. 8 starts when the power of the printing device 100 is turned on, and ends when the power of the printing device 100 is turned off.

処理を開始すると、まず、第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 event recording unit 144 of the first processing device 130 sets all the storage areas 122 of the data array 120 stored in the first storage unit 108 as free areas (S100), and cumulatively discards them. The number count is reset to zero (S102). Further, the first event recording unit 144 sets the values of the write pointer 124 and the read pointer 126 to the initial values (S104). Here, the initial values of the write pointer 124 and the read pointer 126 are address values indicating the positions of the storage areas 122 at the beginning of the data array 120.

続いて、第1処理装置130の第1イベント検出部142は、印刷機構部102の動作に係る所定の第1イベントの発生を検出したか否かを判断する(S106)。第1イベント検出部142は、例えば、印刷機構部102に設けられた各種のセンサー(不図示)からの信号を用いて、第1イベントの発生を検出することができる。 Subsequently, the first event detection unit 142 of the first processing device 130 determines whether or not the occurrence of a predetermined first event related to the operation of the printing mechanism unit 102 has been detected (S106). The first event detection unit 142 can detect the occurrence of the first event by using, for example, signals from various sensors (not shown) provided in the printing mechanism unit 102.

そして、第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 event detection unit 142 returns to step S106 and waits for the occurrence of the first event to be detected. On the other hand, when any occurrence of a predetermined first event is detected (S106, YES), the first event detection unit 142 determines the elapsed time after the start of the printing mechanism unit 102 from the first time measurement unit 134. Acquire (S108). In addition, the first event detection unit 142 sends the information indicating the content of the detected first event and the acquired elapsed time to the first event recording unit 144.

次に、第1イベント記録部144は、第1イベント検出部142から受信した上記第1イベントの内容を示す情報に、上記経過時間を第1時刻情報として付加して、第1イベント情報を生成する(S110)。続いて、第1イベント記録部144は、データ配列120に、空き領域に設定されている記憶領域122があるか否かを判断する(S112)。上述したように、この判断は、書込みポインター124が示す記憶領域122が空き領域に設定されているか否かを判断することにより行われる。 Next, the first event recording unit 144 adds the elapsed time as the first time information to the information indicating the content of the first event received from the first event detection unit 142 to generate the first event information. (S110). Subsequently, the first event recording unit 144 determines whether or not the data array 120 has the storage area 122 set in the free area (S112). As described above, this determination is made by determining whether or not the storage area 122 indicated by the write pointer 124 is set as a free area.

そして、書込みポインター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 storage area 122 indicated by the write pointer 124 is set as a free area (S112, YES), the generated first event information and the cumulative number of discards (that is, the first event information) are stored in the storage area 122. Etc.) (S114). Further, the first event recording unit 144 sets the storage area 122 in which the first event information and the like are stored as the occupied area (S116), and increments the write pointer 124 by the size of the storage area 122 (S118). As a result, the first event information is stored in the storage area 122 in the order in which the first event occurs, in the order from the beginning to the end of the data array 120. When the storage area 122 in which the first event information or the like is stored in step S114 is the end of the data array, the first event recording unit 144 sets the write pointer 124 to the initial value (the storage area 122 at the beginning of the data array 120). Address).

続いて、第1イベント記録部144は、累積破棄数をゼロにリセットした後(S120)、ステップS106に戻って処理を繰り返す。 Subsequently, the first event recording unit 144 resets the cumulative number of discarded items to zero (S120), and then returns to step S106 to repeat the process.

一方、ステップS112において空き領域に設定されている記憶領域122がないときは(S112、NO)、第1イベント記録部144は、累積破棄数に1を加算する(S122)。そして、第1イベント記録部144は、生成した第1イベント情報を記憶領域122に保存することなく、ステップS106に戻って処理を繰り返す。 On the other hand, when there is no storage area 122 set in the free area in step S112 (S112, NO), the first event recording unit 144 adds 1 to the cumulative number of discarded items (S122). Then, the first event recording unit 144 returns to step S106 and repeats the process without storing the generated first event information in the storage area 122.

<第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 second processing device 132 will be described with reference to the flowchart shown in FIG. The second event log storage process is processed in parallel in the second processing device 132 together with the first event log storage process and the event log transmission process described later. Further, the second event log saving process starts when the power of the printing device 100 is turned on, and ends when the power of the printing device 100 is turned off.

印刷装置100の電源がオンされて印刷機構部102が起動されると、まず、第2処理装置132のイベントログ記録部154は、第1時間計測部134に印刷機構部102の起動後の経過時間の計測を開始させる(S200)。続いて、イベントログ記録部154は、第2時間計測部136から、印刷機構部102の起動時の時刻を取得して記憶する(S202)。なお、第2時間計測部136から取得される時刻は、上述したように、所定の時刻系(本実施形態では日本標準時)に従う時刻である。 When the power of the printing device 100 is turned on and the printing mechanism 102 is started, first, the event log recording unit 154 of the second processing device 132 tells the first time measuring unit 134 the elapsed time after the printing mechanism 102 is started. The time measurement is started (S200). Subsequently, the event log recording unit 154 acquires and stores the start-up time of the printing mechanism unit 102 from the second time measurement unit 136 (S202). As described above, the time acquired from the second time measurement unit 136 is a time according to a predetermined time system (Japan Standard Time in this embodiment).

次に、第2イベント検出部152は、印刷機構部102の動作以外の、印刷装置100の動作に係る所定の第2イベントの発生を検出したか否かを判断する(S204)。第2イベント検出部152は、例えば、通信制御部150からの通信異常通知を受信すること等により、第2イベントの発生を検出することができる。 Next, the second event detection unit 152 determines whether or not the occurrence of a predetermined second event related to the operation of the printing device 100 other than the operation of the printing mechanism unit 102 has been detected (S204). The second event detection unit 152 can detect the occurrence of the second event, for example, by receiving a communication abnormality notification from the communication control unit 150.

そして、第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 event detection unit 152 returns to step S204 and waits for the occurrence of the second event to be detected. On the other hand, when any occurrence of a predetermined second event is detected (S204, YES), the second event detection unit 152 acquires the occurrence time of the detected second event from the second time measurement unit 136. (S206). The second event detection unit 152 sends the information indicating the content of the detected second event and the acquired occurrence time to the event log recording unit 154.

次に、イベントログ記録部154は、第2イベント検出部152から受信した上記第2イベントの内容を示す情報に、上記発生時刻を第2時刻情報として付加して、第2イベント情報を生成する(S208)。そして、イベントログ記録部154は、生成した第2イベント情報を、イベントログ情報として、第2記憶部110が記憶するイベントログ128に追加して保存した後(S210)、ステップS204に戻って処理を繰り返す。 Next, the event log recording unit 154 adds the occurrence time as the second time information to the information indicating the content of the second event received from the second event detection unit 152 to generate the second event information. (S208). Then, the event log recording unit 154 adds the generated second event information as event log information to the event log 128 stored in the second storage unit 110 and saves it (S210), and then returns to step S204 for processing. repeat.

<第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 second processing device 132 will be described with reference to the flowchart shown in FIG. The first event log storage process is processed in parallel in the second processing device 132 together with the second event log storage process described above and the event log transmission process described later. Further, the first event log saving process is repeatedly executed at predetermined time intervals after the power of the printing apparatus 100 is turned on.

第1イベントログ保存処理を開始すると、まず、イベントログ記録部154は、データ配列120に占有領域に設定されている記憶領域220があるか否かを判断する(S300)。上述したように、この判断は、読出しポインター126が示す記憶領域122が占有領域に設定されているか否かを判断することにより行われる。 When the first event log storage process is started, the event log recording unit 154 first determines whether or not the data array 120 has a storage area 220 set as an occupied area (S300). As described above, this determination is made by determining whether or not the storage area 122 indicated by the read pointer 126 is set as the occupied area.

そして、読出しポインター126が示す記憶領域122が占有領域に設定されていないときは(S300、NO)、そのまま処理を終了する。一方、読出しポインター126が示す記憶領域122が占有領域であるときは(S300、YES)、イベントログ記録部154は、読出しポインター126が示す占有領域である記憶領域122から第1イベント情報及び累積破棄数を読み込む(S302)。 Then, when the storage area 122 indicated by the read pointer 126 is not set as the occupied area (S300, NO), the process ends as it is. On the other hand, when the storage area 122 indicated by the read pointer 126 is an occupied area (S300, YES), the event log recording unit 154 receives the first event information and cumulative discard from the storage area 122 which is the occupied area indicated by the read pointer 126. Read the number (S302).

次に、イベントログ記録部154は、読出しポインター126を記憶領域122のサイズ分インクリメントする(S304)。これにより、イベントログ記録部154は、データ配列120の先頭から末尾に向かう順に、従って第1イベントの発生順に、記憶領域122から第1イベント情報を読み出すことができる。なお、ステップS304において第1イベント情報等を読み出した記憶領域122がデータ配列の末尾であるときは、イベントログ記録部154は、読出しポインター126を初期値(データ配列120の先頭の記憶領域122のアドレス)に設定する。 Next, the event log recording unit 154 increments the read pointer 126 by the size of the storage area 122 (S304). As a result, the event log recording unit 154 can read the first event information from the storage area 122 in the order from the beginning to the end of the data array 120, and thus in the order in which the first event occurs. When the storage area 122 from which the first event information or the like is read in step S304 is the end of the data array, the event log recording unit 154 sets the read pointer 126 to the initial value (the storage area 122 at the beginning of the data array 120). Address).

次に、イベントログ記録部154は、読み出した累積破棄数がゼロか否かを判断する(S306)。そして、読み出した累積破棄数がゼロであるときは(S306、YES)、読み出した第1イベント情報が含む第1時刻情報を、第2時刻情報と同じ共通形式データに変換する(S308)。すなわち、イベントログ記録部154は、第2イベントログ保存処理(図9)のステップS202において取得した、印刷機構部102の起動時の時刻に、第1時刻情報が示す印刷機構部102の起動後の経過時間を加算する。 Next, the event log recording unit 154 determines whether or not the cumulative number of discarded items read is zero (S306). Then, when the cumulative number of discarded items read is zero (S306, YES), the first time information included in the read first event information is converted into the same common format data as the second time information (S308). That is, the event log recording unit 154 starts the printing mechanism unit 102 indicated by the first time information at the time when the printing mechanism unit 102 is started, which was acquired in step S202 of the second event log saving process (FIG. 9). Add the elapsed time of.

続いて、イベントログ記録部154は、第1時刻情報を変換した第1イベント情報を、イベントログ情報としてイベントログ128に追加して保存して(S310)、処理を終了する。 Subsequently, the event log recording unit 154 adds the first event information converted from the first time information to the event log 128 as the event log information and saves it (S310), and ends the process.

一方、ステップS306において、記憶領域122から読み出した累積破棄数がゼロでないときは(S306、NO)、読み出した累積破棄数の情報を、イベントログ情報としてイベントログ128に保存した後(S312)、ステップS308に処理を移す。 On the other hand, in step S306, when the cumulative number of discarded items read from the storage area 122 is not zero (S306, NO), the information on the cumulative number of discarded items read out is stored in the event log 128 as event log information (S312). The process is transferred to step S308.

なお、上記実施形態では、イベントログ記録部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 log recording unit 154 converts the first time information included in the first event information into the format of the second time information, but the present invention is not limited to this. One of the first time information and the second time information as long as the first event information and the second event information are stored in the event log 128 in a state including the first time information and the second time information in a common format, respectively. Alternatively, both may be converted into a predetermined common format. For example, another time expression format according to a predetermined time system, which is different from both the format of the first time information and the format of the second time information, can be used as the common format. In this case, the event log recording unit 154 converts both the first time information and the second time information into the other time expression expressions described above, and then converts the first event information and the second event information including the time information into the other time expression expressions. , It can be saved in the event log 128 as the event log information.

<イベントログ送信処理>
次に、第2処理装置132が行うイベントログ送信処理の手順について図11に示すフローチャートに従って説明する。イベントログ送信処理は、上述の第2イベントログ保存処理及び第1イベントログ保存処理と共に、第2処理装置132において並列に処理される。また、イベントログ送信処理は、印刷装置100の電源がオンされた後、所定の時間間隔で繰り返し実行される。
<Event log transmission process>
Next, the procedure of the event log transmission processing performed by the second processing device 132 will be described with reference to the flowchart shown in FIG. The event log transmission process is processed in parallel in the second processing device 132 together with the above-mentioned second event log storage process and the first event log storage process. Further, the event log transmission process is repeatedly executed at predetermined time intervals after the power of the printing apparatus 100 is turned on.

処理を開始すると、第2処理装置132のイベントログ記録部154は、第2記憶部110にイベントログ128を構成するイベントログ情報が保存されているか否かを判断する(S400)。そして、イベントログ情報が保存されていないときは(S400、NO)、そのまま処理を終了する。一方、イベントログ情報が保存されているときは(S400、YES)、イベントログ記録部154は、イベントログ128のイベントログ情報を読み出す(S402)。そして、読み出したイベントログ情報を通信部104を介して外部サーバー等へ送信して(S404)、処理を終了する。 When the processing is started, the event log recording unit 154 of the second processing device 132 determines whether or not the event log information constituting the event log 128 is stored in the second storage unit 110 (S400). Then, when the event log information is not saved (S400, NO), the process ends as it is. On the other hand, when the event log information is saved (S400, YES), the event log recording unit 154 reads out the event log information of the event log 128 (S402). Then, the read event log information is transmitted to an external server or the like via the communication unit 104 (S404), and the process ends.

以上、説明したように、本実施形態の印刷装置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 printing device 100 of the present embodiment includes the first processing device 130 on which the application program 202 that controls the printing mechanism unit 102 operates on the first operating system 200. Further, the printing device 100 includes a second processing device 132 in which an application program 302 that controls a communication unit 104 that communicates with an external device operates on a second operating system 300 that is different from the first operating system 200. Further, the printing device 100 has a first storage unit 108 accessed from the first processing device 130 and the second processing device 132, and a second storage unit 110 accessed by the second processing device 132. Then, the first processing device 130 writes the first event information related to the first event generated in the printing mechanism unit 102 to the first storage unit 108. Further, the second processing device 132 includes data in a predetermined common format for the second event information related to the second event generated in the communication unit 104 and the first event information read from the first storage unit 108, respectively. It is stored in the second storage unit 110 as event log information.

本発明の印刷装置、及び、印刷装置の制御方法を適用した印刷装置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 printing device 100 to which the control method of the printing device is applied, the transfer of information via the first storage unit 108 is directed from the first processing device 130 to the second processing device 132. Limited to directions. Then, only the information according to the expression format supported by the basic functions of the first operating system 200 is stored in the first storage unit 108. Therefore, the information read from the first storage unit 108 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 132, the mutual relationship between the first event information and the second event information is converted into the common format data portion. It becomes possible to judge based on.

詳細には、印刷装置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 printing apparatus 100, the data in the predetermined common format is data relating to the occurrence time of the first event and the second event. Then, the second processing device 132 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. However, the conversion is performed so that the time follows the same time system. That is, the second processing device 132 stores the first time information and the second time information as data in a common format in the second storage unit 110. As a result, 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 each event information with reference to the event log 128 stored in the second storage unit 110. can.

より詳細には、印刷装置100では、第1時刻情報は、印刷機構部102の起動後の経過時間を示す情報であり、第2時刻情報は、所定の時刻系に従う時刻を示す情報である。そして、第2処理装置132は、印刷機構部102の起動時の時刻に第1時刻情報が示す上記起動後の経過時間を加算して、第1時刻情報を、所定の時刻系に従う時刻に変換する。これにより、第1オペレーティングシステム200の基本機能が時刻そのものを直接的に表す時刻情報をサポートしない場合でも、第1イベント情報と第2イベント情報の時間的な前後関係を明確にしてイベントログ128を生成し、保存しておくことができる。 More specifically, in the printing apparatus 100, the first time information is information indicating the elapsed time after the start of the printing mechanism unit 102, and the second time information is information indicating the time according to a predetermined time system. Then, the second processing device 132 adds the elapsed time after the activation indicated by the first time information to the time when the printing mechanism unit 102 is activated, and converts the first time information into a time according to a predetermined time system. do. As a result, even if the basic function of the first operating system 200 does not support the time information that directly represents the time itself, the time context of the first event information and the second event information is clarified and the event log 128 is displayed. It can be generated and saved.

また、印刷装置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 printing apparatus 100, the first storage unit 108 is divided into a plurality of storage areas 122 having a predetermined storage capacity ordered so as to form a data array 120. Further, the first processing device 130 fills the storage area 122 constituting the data array 120 with the first event information related to the first event in the order of occurrence of the first event and from the beginning to the end of the data array 120. It is stored in the storage area 122 set in the area. Then, the second processing device 132 reads the first event information from the storage area 122 in the order from the beginning to the end of the data array 120, and sets the read storage area 122 as a free area. As a result, the second processing device 132 can read the first event information from the first storage unit 108 while clarifying the temporal context between the first event information. Therefore, the event log 128 that records the first event information and the second event information in chronological order can be easily created.

また、印刷装置100では、第1処理装置130は、第1イベント情報を第1記憶部108に保存しようとする際に、データ配列120内に空き領域に設定されている記憶領域122がないときは、保存しようとする第1イベント情報を破棄する。また、第1処理装置130は、一つ以上の第1イベント情報を破棄した後は、その後に空き領域に設定された記憶領域122に、上記破棄した第1イベント情報の数と、その後に発生した第1イベントに係る第1イベント情報とを保存する。これにより、例えば、第1イベント情報が異常発生を表す場合に、その異常の根本原因を表現している可能性のある最も古い異常発生イベントの情報を失うことなく、且つ最近における異常発生イベントの件数を保持することができる。このため、例えばイベントログ128に基づく故障解析が容易となる。 Further, in the printing device 100, when the first processing device 130 tries to store the first event information in the first storage unit 108, when there is no storage area 122 set as a free area in the data array 120. Discards the first event information to be saved. Further, after the first processing device 130 discards one or more first event information, the number of the discarded first event information and the subsequent occurrence in the storage area 122 set in the free area thereafter. The first event information related to the first event is saved. As a result, for example, when the first event information indicates 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 latest abnormality occurrence event is performed. The number of cases can be retained. Therefore, for example, failure analysis based on the event log 128 becomes easy.

また、印刷装置100は、複数のプロセッサーを備えたマルチコア・プロセッサーを備え、第1処理装置130及び第2処理装置132は、それぞれ相異なるプロセッサーで構成され得る。この構成によれば、第1オペレーティングシステム200及び第2オペレーティングシステム300を用いて動作する印刷装置100を、小型かつ安価に構成することができる。 Further, the printing apparatus 100 includes a multi-core processor including a plurality of processors, and the first processing apparatus 130 and the second processing apparatus 132 may be configured by different processors. According to this configuration, the printing device 100 that operates using the first operating system 200 and the second operating system 300 can be configured in a small size and at low cost.

また、印刷装置100では、第1処理装置130は、第1オペレーティングシステム200として、印刷機構部102をリアルタイム制御するためのリアルタイムオペレーティングシステムを備える。このため、第1オペレーティングシステム200により印刷機構部102を効率的にリアルタイム制御しつつ、例えば印刷機構部102の異常イベントを示す第1イベント情報を収集して、時系列に構成されたイベントログ128を生成することができる。これにより、イベントログ128を用いて、例えば印刷機構部102の故障解析を容易に行うことができる。 Further, in the printing device 100, the first processing device 130 includes a real-time operating system for controlling the printing mechanism unit 102 in real time as the first operating system 200. Therefore, while the printing mechanism unit 102 is efficiently controlled in real time by the first operating system 200, for example, the first event information indicating an abnormal event of the printing mechanism unit 102 is collected, and the event log 128 configured in chronological order. Can be generated. Thereby, for example, the failure analysis of the printing mechanism unit 102 can be easily performed by using the event log 128.

また、印刷装置100は、第2処理装置132が、第2記憶部110に記憶したイベントログ情報を、通信部104を介して外部装置へ送信する。これにより、第2記憶部110に蓄積されたイベントログ情報を外部装置において解析することができる。また、第2記憶部110に保存されているイベントログ128を外部装置に退避することができるので、第2記憶部110の記憶容量不足による第1イベント情報及び又は第2イベント情報の保存漏れを防止することができる。 Further, the printing device 100 transmits the event log information stored in the second storage unit 110 by the second processing device 132 to the external device via the communication unit 104. As a result, the event log information stored in the second storage unit 110 can be analyzed by the external device. Further, since the event log 128 stored in the second storage unit 110 can be saved in the external device, the first event information and / or the second event information may not be saved due to insufficient storage capacity of the second storage unit 110. Can be prevented.

なお、上記実施形態は本発明を適用した一具体例を示すものであり、本発明はこれに限定されるものではない。 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 first processing device 130 and / or the second processing device 132 is not limited to the program stored in the ROM or the like included in the printing device 100. For example, the program may be stored in a storage medium of another storage device, a storage medium, or an external device, and may be read out and executed by the first processing device 130 and / or the second processing device 132.

また、上記実施形態では、第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 first processing device 130 to the second processing device 132 in one direction via the data array 120 stored in the first storage unit 108. It is not limited to this. For example, the first storage unit 108 is assumed to store an additional data array different from the data array 120, and stores the second event information from the second processing device 132 to the first processing device 130 via the additional data array. It may be transferred.

より具体的には、通信部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 printing device 100 via the communication unit 104 is set as a second event, and second event information related to the event is transmitted via the first storage unit 108. 2 It may be transferred from the processing device 132 to the first processing device 130. In this case, the second processing device 132 includes, for example, the time when the second event occurs as time information (time information in the same format as the first time information) represented by the elapsed time after the start of the printing mechanism unit 102. The second event information is stored in the additional data array of the first storage unit 108. The first processing device 130 can read the second event information from the additional data array of the first storage unit 108 and perform appropriate processing according to the second event information. As a result, the first processing device 130 can more appropriately control the cooperative operation between the printing mechanism unit 102 and the peripheral device. Peripheral devices connected to the printing device 100 include, for example, input devices such as an MSR (Magnetic Stripe Reader) and a bar code reader (not shown).

また、上記実施形態では、第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 event detection unit 142 detects the first event, the first event recording unit 144 stores the first event information in the first storage unit 108, and the second event detection unit 152 When the second event is detected, the event log recording unit 154 stores the second event information in the second storage unit 110, but the present invention is not limited to this. That is, the application program 202 that controls the printing mechanism unit 102 or the application program 302 that controls the communication unit 104 can arbitrarily store the event information in the first storage unit 108 or the second storage unit 110. For example, an event recording unit 144 is instructed that the application program 202 has been started (operation started) and stored in the storage unit 108 as first event information, and an event that the application program 302 has been started (operation started) has been started. It is also possible to instruct the recording unit 154 and store it in the storage unit 110 as the second event information.

また、上記実施形態では、印刷装置100は、第1処理装置130と第2処理装置132の2つの処理装置を備えるものとしたが、これには限られない。例えば、3つ以上の処理装置を備え、一の処理装置から他の処理装置への一方向のデータの転送が、それぞれ、第1記憶部108に記憶された複数のデータ配列の一つを介して行われるものとすることができる。 Further, in the above embodiment, the printing device 100 includes two processing devices, a first processing device 130 and a second processing device 132, but the printing device 100 is not limited to this. For example, three or more processing devices are provided, and one-way data transfer from one processing device to another processing device is performed via one of a plurality of data sequences stored in the first storage unit 108, respectively. Can be done.

また、上記実施形態では、第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 Event detection unit 144 ... 1st event recording unit, 150 ... Communication control unit, 152 ... 2nd event detection unit, 154 ... Event log recording unit, 200 ... 1st operating system, 202, 204, 206, 302, 304, 306 ... application program, 300 ... second operating system.

Claims (9)

第1オペレーティングシステム上で印刷機構部を制御するプログラムが動作する第1処理装置と、
第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.
前記所定の共通形式のデータは、前記第1イベント及び前記第2イベントの発生時刻に関するデータであって、
前記第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.
前記第1時刻情報は、前記印刷機構部の起動後の経過時間を示す情報であり、
前記第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イベント情報を、前記第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処理装置は、空き領域に設定されている前記記憶領域がないことにより一つ以上の前記第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から6のいずれか一項に記載の印刷装置。 The printing apparatus according to any one of claims 1 to 6, wherein the first processing apparatus includes, as a first operating system, a real-time operating system for controlling the printing mechanism unit in real time. 前記第2処理装置は、前記第2記憶部に記憶した前記イベントログ情報を、前記通信部を介して外部装置へ送信する請求項1から7のいずれか一項に記載の印刷装置。 The printing device according to any one of claims 1 to 7, wherein the second processing device transmits the event log information stored in the second storage unit to an external device via the communication unit. 第1オペレーティングシステム上で印刷機構部を制御するプログラムが動作する第1処理装置と、第1オペレーティングシステムとは異なる第2オペレーティングシステム上で外部装置と通信する通信部を制御するプログラムが動作する第2処理装置と、前記第1処理装置及び前記第2処理装置からアクセスされる第1記憶部と、前記第2処理装置によりアクセスされる第2記憶部と、を備える印刷装置の制御方法であって、
前記第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.
JP2017204544A 2017-10-23 2017-10-23 Printing device and control method of printing device Active JP6926938B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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