JP2010244185A - Device for recording and management of log data - Google Patents

Device for recording and management of log data Download PDF

Info

Publication number
JP2010244185A
JP2010244185A JP2009090103A JP2009090103A JP2010244185A JP 2010244185 A JP2010244185 A JP 2010244185A JP 2009090103 A JP2009090103 A JP 2009090103A JP 2009090103 A JP2009090103 A JP 2009090103A JP 2010244185 A JP2010244185 A JP 2010244185A
Authority
JP
Japan
Prior art keywords
log data
processing device
specific information
processing
data recording
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.)
Pending
Application number
JP2009090103A
Other languages
Japanese (ja)
Inventor
Sunao Yamamoto
直 山本
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009090103A priority Critical patent/JP2010244185A/en
Publication of JP2010244185A publication Critical patent/JP2010244185A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automate log data acquisition when any failure occurs without compressing the capacity of a recording medium. <P>SOLUTION: A log data recording management device includes a first processor (main CPU 11) to which a log data recording device (recording medium 19) is connected and one or more second processor (sub CPU 12 to 14) communicatively connected to the first processor. The first or one or more second processors include a means for collecting log data related with a set value to hardware installed in each of them in executing a program, and for temporarily storing the log data in storage devices (memory 15 and memories 16 to 18) each of which can be referred to. The second processors are respectively configured to stop the collection of the log data when the occurrence of the failure is detected, and to transfer the log data stored in the storage devices (memories 16 to 18) by inter-processor communication to a first processor, and for storing a log data in the log data recording device. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、複数の処理装置(CPU)で製品が構築される、例えば、車載情報機器の組み立て検査工程に用いて好適な、ログデータ記録管理装置に関する。   The present invention relates to a log data recording management apparatus suitable for use in, for example, an assembly inspection process of an in-vehicle information device, in which a product is constructed by a plurality of processing devices (CPUs).

現場製造ラインにおいて、製品検査は、ハードウェアを組み立て後、ソフトウェアをインストールして動作可能になった状態で実施される。ところで、ソフトウェアがインストールされた状態ではじめて動作が可能になる部位で不具合が発生した場合、製品で取得可能なログデータが解析に必要になる場合がある。   In the on-site production line, product inspection is performed in a state in which software is installed and operable after hardware is assembled. By the way, when a problem occurs at a site where the operation is possible only after the software is installed, log data that can be acquired by the product may be required for analysis.

現状、ログデータは人為的操作によって取得可能であるが、不具合が発生した製品に対して再現確認を実施してからログデータを取得するしかなく、この場合、再現確認の手間や未再現時の対応等について工数が増える。また、検査は半自動的に行われるため、ログデータの取得忘れ、あるいは取得できたとしても必要な情報が既に消去されていることが多々あり、この場合いたずらに時間が費やされることがある。   At present, log data can be obtained by human operation, but there is no choice but to obtain log data after confirming the reproduction of the product in which the problem has occurred. The number of man-hours for handling etc. increases. In addition, since the inspection is performed semi-automatically, forgetting to acquire log data, or even if it can be acquired, necessary information is often deleted, and in this case, time may be spent unnecessarily.

一方で、特許文献1には、プログラムデバッグ機能を有しないCPUの不具合が発生した瞬間の状態を捉えるために、製品に搭載された他のCPUがプロセッサ間通信によりそのプログラムデバッグを代替する技術が開示されている。   On the other hand, Patent Document 1 discloses a technique in which another CPU mounted on a product substitutes program debugging by inter-processor communication in order to capture the state at the moment when a malfunction of a CPU having no program debugging function occurs. It is disclosed.

特開2007−141138号公報JP 2007-141138 A

特許文献1には、上記した不具合が発生した瞬間の情報を記録する手段が開示されているが、結果のみ記録されただけでは、不具合発生までに至る経緯や要因を特定することが困難な場合もある。また、常時、ログデータを保存することは可能であるが、このとき不具合に関係のないデータまで保存することになるため、記録媒体の容量の圧迫や検査に対して悪影響が出ることがある。   Patent Document 1 discloses means for recording information at the moment when the above-described failure occurs, but it is difficult to specify the circumstances and factors leading to the occurrence of the failure only by recording the result. There is also. In addition, it is possible to save log data at all times, but at this time, even data that is not related to a failure is saved, which may adversely affect the compression and inspection of the capacity of the recording medium.

本発明は上記した課題を解決するためになされたものであり、記録媒体の容量を圧迫することなく不具合発生時のログデータ取得の自動化を行い製品検査時における作業者の負担軽減をはかった、ログデータ記録管理装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and automating the acquisition of log data at the time of failure without reducing the capacity of the recording medium to reduce the burden on the operator at the time of product inspection. It is an object to provide a log data recording management device.

上記した課題を解決するために本発明のログデータ記録管理装置は、ログデータ記録装置が接続される第1の処理装置と、第1の処理装置とは通信可能に接続される1以上の第2の処理装置とを含むログデータ記録管理装置であって、前記第1および第2の処理装置は、プログラム実行時、それぞれが有するハードウェアへの設定値に関するログデータを収集し、それぞれが参照可能な記憶装置に一時保存する手段を備え、前記第2の処理装置は、動作に不具合が発生したことを検出した場合、前記ログデータの収集を停止し、前記記憶装置に保存されたログデータをプロセッサ間通信により前記第1の処理装置に転送して前記ログデータ記録装置に保存するものである。   In order to solve the above-described problems, a log data recording management device according to the present invention includes a first processing device to which a log data recording device is connected and one or more first processing devices that are communicably connected to the first processing device. Log data recording management device including two processing devices, wherein each of the first and second processing devices collects log data related to a set value to each hardware at the time of program execution, and each of the log data is referred to Log data stored in the storage device, wherein the second processing device stops collecting the log data when detecting that a malfunction has occurred in the operation, Is transferred to the first processing device by inter-processor communication and stored in the log data recording device.

本発明のログデータ記録管理装置によれば、記録媒体の容量を圧迫することなく不具合発生時のログデータ取得の自動化を行うことで製品検査時における作業者の負担軽減がはかれる。   According to the log data recording management apparatus of the present invention, it is possible to reduce the burden on the operator at the time of product inspection by automating the acquisition of log data when a failure occurs without reducing the capacity of the recording medium.

本発明の実施の形態1に係るログデータ記録管理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the log data recording management apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るログデータ記録管理装置が有する記憶装置へのログデータ格納方法について模式的に示した図である。It is the figure which showed typically about the log data storage method to the memory | storage device which the log data recording management apparatus which concerns on Embodiment 1 of this invention has. 本発明の実施の形態1に係るログデータ記録管理装置の第1の処理装置が実行するプログラムの構造を機能展開して示したブロック図である。It is the block diagram which expanded the function and showed the structure of the program which the 1st processing apparatus of the log data recording management apparatus concerning Embodiment 1 of this invention performs. 本発明の実施の形態1に係るログデータ記録管理装置の第2の処理装置が実行するプログラムの構造を機能展開して示したブロック図である。It is the block diagram which expanded the function and showed the structure of the program which the 2nd processing apparatus of the log data recording management apparatus concerning Embodiment 1 of this invention performs. 本発明の実施の形態1に係るログデータ記録管理装置の第1の処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the 1st processing apparatus of the log data recording management apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るログデータ記録管理装置の第2の処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the 2nd processing apparatus of the log data recording management apparatus which concerns on Embodiment 1 of this invention.

以下、本発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1は、本発明の実施の形態1に係るログデータ記録管理装置の構成を示すブロック図である。ここでは、本発明の実施の形態1に係るログデータ記録管理装置がログデータ記録管理装置に適用される例が示されている。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a log data recording management apparatus according to Embodiment 1 of the present invention. Here, an example is shown in which the log data recording management device according to Embodiment 1 of the present invention is applied to a log data recording management device.

図1に示されるように、ログデータ記録管理装置は、記録媒体19が接続される第1の処理装置(以下、メインCPU11という)と、このメインCPU11に対し、バス経由でプロセッサ間通信可能に接続される1以上の第2の処理装置としてのサブCPU12〜14を含む。なお、記録媒体19は、ログデータ記録装置として用いられる大容量ハードディスク等により構成されるものとし、サブCPU12〜14とは直接的には接続されていないものとする。   As shown in FIG. 1, the log data recording management apparatus can communicate with a first processing apparatus (hereinafter referred to as a main CPU 11) to which a recording medium 19 is connected, and the main CPU 11 via a bus. It includes sub CPUs 12 to 14 as one or more second processing devices to be connected. The recording medium 19 is assumed to be constituted by a large-capacity hard disk or the like used as a log data recording device, and is not directly connected to the sub CPUs 12 to 14.

ここでは、メインCPU11は、例えば、ログデータ記録管理装置の本体部に実装され、サブCPU12〜14は、ナビゲーション装置、チューナ装置、通信デバイス等、周辺装置を制御するために実装されることを想定して説明する。   Here, it is assumed that, for example, the main CPU 11 is mounted on the main body of the log data recording management device, and the sub CPUs 12 to 14 are mounted to control peripheral devices such as a navigation device, a tuner device, and a communication device. To explain.

メインCPU11にはランダムアクセス可能な素子で構成されるメモリ15が、サブCPU12〜14には、同じくランダムアクセス可能な素子で構成されるメモリ16〜18がそれぞれ接続されている。
メモリ16〜18には、例えば、図2に示されるように、メモリ15同様、所定の領域にログデータ記憶領域(H/W設定データ格納領域)が割り当てられており、この領域は、最終番地n+n番地までログデータの書き込みが終了すると先頭のn番地に戻るリングバッファとして使用される。また、図示省略しているが、メモリ15、および16〜18の一部領域には通信バッファも割り当てられ、プロセッサ間通信を実現する構成になっている。通信バッファが割り当てられる領域は、上記したログデータとは異なり、通常のRAMとして使用される。
The main CPU 11 is connected to a memory 15 made up of randomly accessible elements, and the sub CPUs 12 to 14 are connected to memories 16 to 18 made up of similarly accessible random elements.
For example, as shown in FIG. 2, a log data storage area (H / W setting data storage area) is assigned to a predetermined area in the memories 16 to 18, as in the memory 15. When log data has been written up to address n + n, it is used as a ring buffer that returns to the first address n. Although not shown in the drawing, a communication buffer is also assigned to a partial area of the memories 15 and 16 to 18 so that communication between processors is realized. Unlike the log data described above, the area to which the communication buffer is allocated is used as a normal RAM.

なお、符号20は、操作用キースイッチであり、サブCPU12〜14が、プロセッサ間通信により収集したログデータを手動でメインCPU11に転送するにあたり、特定の情報(後述する記録用キーコード)を入力する操作入力装置としても使用される。
また、符号30a〜30cは、上記した周辺装置に接続される、例えば、各種センサ類やモータ等の外部接続機器を示すものとする。
Reference numeral 20 denotes an operation key switch. When the sub CPUs 12 to 14 manually transfer log data collected by inter-processor communication to the main CPU 11, specific information (recording key code to be described later) is input. It is also used as an operation input device.
Reference numerals 30a to 30c indicate externally connected devices such as various sensors and motors connected to the peripheral devices described above.

図3は、本発明の実施の形態1に係るログデータ記録管理装置の第1の処理装置(メインCPU11)が実行するプログラムの構造を機能展開して示したブロック図である。
図3に示されるように、メインCPU11が実行するプログラムを機能毎に大別すれば、主制御部110と、ログデータ収集部112と、動作状態判定部111と、プロセッサ間通信部113と、ログデータ取得部114とを含む。
FIG. 3 is a functional block diagram showing the structure of a program executed by the first processing device (main CPU 11) of the log data recording management device according to the first embodiment of the present invention.
As shown in FIG. 3, if the program executed by the main CPU 11 is roughly classified for each function, the main control unit 110, the log data collection unit 112, the operation state determination unit 111, the inter-processor communication unit 113, Log data acquisition unit 114.

主制御部110は、メインCPU11としての本来の機能を実行する他、後述するログデータ収集部112、動作状態判定部111、プロセッサ間通信部113、ログデータ取得部114の間のシーケンス制御を行う。
ログデータ収集部112は、プログラムが起動されてからログデータの収集停止が指示されるまでの間、CPUが内蔵するレジスタ等のハードウェア(不図示)に設定された値の履歴を収集し、メモリ15に保存する機能を有する。
The main control unit 110 performs an original function as the main CPU 11 and performs sequence control among a log data collection unit 112, an operation state determination unit 111, an inter-processor communication unit 113, and a log data acquisition unit 114, which will be described later. .
The log data collection unit 112 collects a history of values set in hardware (not shown) such as a register built in the CPU from when the program is started until the log data collection is instructed. It has a function of saving in the memory 15.

動作状態判定部111は、メインCPU11による不具合発生を検出して、ログデータ収集部112とログデータ取得部114を制御する機能を有する。なお、動作状態判定部111は、後述するようにDTC(故障診断)検出プログラムで代替してもよい。   The operation state determination unit 111 has a function of detecting occurrence of a malfunction by the main CPU 11 and controlling the log data collection unit 112 and the log data acquisition unit 114. The operation state determination unit 111 may be replaced with a DTC (failure diagnosis) detection program as will be described later.

プロセッサ間通信部113は、主制御部110による制御の下でメモリ15に通信バッファを割当て、その通信バッファを使用してサブCPU12〜14との間で情報交換を行う機能を有する。ここで、交換される情報としては、ログデータの他に、後述する記録用キーコードも含む。
ログデータ取得部114は、プロセッサ間通信部113を介して送信されるサブCPU12〜14のログデータを取得して記録媒体19へ保存するためのデータ転送を行う機能を有する。
The inter-processor communication unit 113 has a function of allocating a communication buffer to the memory 15 under the control of the main control unit 110 and exchanging information with the sub CPUs 12 to 14 using the communication buffer. Here, the exchanged information includes a recording key code to be described later in addition to the log data.
The log data acquisition unit 114 has a function of performing data transfer for acquiring log data of the sub CPUs 12 to 14 transmitted via the inter-processor communication unit 113 and storing it in the recording medium 19.

図4は、本発明の実施の形態1に係るログデータ記録管理装置の第2の処理装置(サブCPU12)が実行するプログラムの構造を機能展開して示したブロック図である。
図4に示されるように、サブCPU12が実行するプログラムは、機能的に大別すると、主制御部120と、ログデータ収集部122と、動作状態判定部121と、プロセッサ間通信部123と、特定情報通知部124とを含む。
FIG. 4 is a functional block diagram showing the structure of a program executed by the second processing device (sub CPU 12) of the log data recording management device according to the first embodiment of the present invention.
As shown in FIG. 4, the programs executed by the sub CPU 12 can be broadly classified into functions. The main control unit 120, the log data collection unit 122, the operation state determination unit 121, the inter-processor communication unit 123, A specific information notification unit 124.

主制御部120は、例えば、チューナを制御するためのサブCPU12としての本来の機能を実行する他、後述するログデータ収集部122、動作状態判定部121、プロセッサ間通信部123、特定情報通知部124のシーケンス制御を行う。
ログデータ収集部122は、プログラムが起動されてからログデータ収集停止が指示されるまでの間、CPU内レジスタ等ハードウェア(不図示)に設定された値の履歴を収集し、メモリ16に保存する機能を有する。動作状態判定部121は、サブCPU12による不具合発生を検出してログデータ収集部122と特定情報通知部124とを制御する機能を有する。
The main control unit 120 executes, for example, an original function as the sub CPU 12 for controlling the tuner, a log data collection unit 122, an operation state determination unit 121, an inter-processor communication unit 123, and a specific information notification unit which will be described later. 124 sequence control is performed.
The log data collection unit 122 collects a history of values set in hardware (not shown) such as a register in the CPU until the log data collection stop is instructed after the program is started and stored in the memory 16. It has the function to do. The operation state determination unit 121 has a function of controlling the log data collection unit 122 and the specific information notification unit 124 by detecting the occurrence of a malfunction by the sub CPU 12.

プロセッサ間通信部123は、主制御部120による制御の下、メモリ16に通信バッファを割当て、その通信バッファを使用してメインCPU11との間で情報交換を行う機能を有する。ここで交換される情報の中には、ログデータの他に後述する記録用キーコードを含むものとする。
特定情報通知部124は、収集したログデータをプロセッサ間通信によりメインCPU11へ転送するにあたり、そのための契機となる操作用キースイッチ20から入力される特定の情報(記録用キーコード)をプロセッサ間通信部123経由でメインCPU11へ通知する機能を有する。
The inter-processor communication unit 123 has a function of allocating a communication buffer to the memory 16 under the control of the main control unit 120 and exchanging information with the main CPU 11 using the communication buffer. The information exchanged here includes a recording key code to be described later in addition to the log data.
When the collected log data is transferred to the main CPU 11 by inter-processor communication, the specific information notifying unit 124 transmits inter-processor communication with specific information (recording key code) input from the operation key switch 20 as a trigger. A function of notifying the main CPU 11 via the unit 123.

なお、サブCPU13、14についても上記したサブCPU12と同じ構成を有するものであり、重複を回避する意味で説明を省略してある。   The sub CPUs 13 and 14 have the same configuration as the sub CPU 12 described above, and are not described in the sense of avoiding duplication.

図5、図6は、本発明の実施の形態1に係るログデータ記録管理装置の動作を示すフローチャートであり、メインCPU11の動作(図5)、サブCPU12(13、14)の動作(図6)のそれぞれを示す。
以下、図5、図6のフローチャートを参照しながら、図3、図4に示すメインCPU11、サブCPU12(13、14)のログデータ記録動作について詳細に説明する。
5 and 6 are flowcharts showing the operation of the log data recording management apparatus according to the first embodiment of the present invention. The operation of the main CPU 11 (FIG. 5) and the operation of the sub CPU 12 (13, 14) (FIG. 6). ).
Hereinafter, the log data recording operation of the main CPU 11 and the sub CPU 12 (13, 14) shown in FIGS. 3 and 4 will be described in detail with reference to the flowcharts of FIGS.

まず、図5において、メインCPU11は、プログラムの起動を契機に(ステップST501“YES”)、ログデータ収集部112が、プログラム処理が進むにつれ遷移するログデータの収集を開始する(ステップST502)。ここで、ログデータは、メインCPU11が内蔵するレジスタへの設定値の履歴とし、ログデータ収集部112は、この設定値が変更される毎にその値を主制御部110がメモリ15内に確保したハードウェア設定データ領域に書き込む。ここで、確保した領域の最終番地までログデータの書込みが到達した場合は、確保した領域の先頭番地に戻り古いログデータを上書きすることは上記したとおりである。   First, in FIG. 5, the main CPU 11 starts collection of log data as the program process proceeds (step ST502) when the program is started (step ST501 “YES”). Here, the log data is a history of setting values in a register built in the main CPU 11, and the log data collection unit 112 secures the values in the memory 15 by the main control unit 110 every time the setting values are changed. To the hardware setting data area. Here, when the log data write reaches the final address of the secured area, it returns to the start address of the secured area and overwrites the old log data as described above.

ところで、動作状態判定部111は、DTC(故障診断)検出プログラムを実行することで外部接続機器30a〜30cの不具合検出を可能とする。
ここで使用されるDTC検出プログラムによれば、発生した不具合毎にIDが設けられる。例えば、外部接続機器30aとしての外気温度センサがGNDと短絡している場合のIDは1−2−1、運転席側ダンパーモータの差動が長すぎる場合のIDは3−2−1等である。動作状態判定部111は、このIDを参照することにより、製品内部の不具合か、あるいは外部接続機器30a〜30cの不具合かを特定することが可能である。
By the way, the operation state determination unit 111 can detect a defect in the externally connected devices 30a to 30c by executing a DTC (fault diagnosis) detection program.
According to the DTC detection program used here, an ID is provided for each problem that has occurred. For example, the ID when the outside temperature sensor as the external connection device 30a is short-circuited with GND is 1-2-1, the ID when the differential of the driver side damper motor is too long is 3-2-1, etc. is there. By referring to this ID, the operation state determination unit 111 can identify whether the defect is inside the product or the external connection devices 30a to 30c.

上記した動作状態判定部111によるDTC検出処理判定を経て(ステップST503)、製品内部での不具合、すなわちメインCPU11の不具合であると判定された場合(ステップST504“YES”)、動作状態判定部111は、主制御部110による制御の下でログデータ収集部112を制御してログデータ収集を停止させ、メモリ15へのログデータ書込みを停止させる(ステップST505)。この処理によって不具合発生前からの設定情報を確保することができる。   When the DTC detection process determination by the operation state determination unit 111 described above is performed (step ST503), when it is determined that the problem is in the product, that is, the main CPU 11 (step ST504 “YES”), the operation state determination unit 111. Controls the log data collection unit 112 under the control of the main control unit 110, stops log data collection, and stops writing log data to the memory 15 (step ST505). By this process, setting information from before the occurrence of the failure can be secured.

次に、主制御部110は、プロセッサ間通信部113によるプロセッサ間通信を起動し、記録用キーコードをそれぞれのサブCPU12〜14へ送信する(ステップST506)。ここで、「記録用キーコード」とは、サブCPU12〜14にログデータ記録を促す特定の情報をいう。続いてプロセッサ間通信部113は、サブCPU12〜14から順次送信されるログデータを受信し(ステップST511)、ログデータ取得部114はログデータ受信完了後、取得したログデータを記録媒体19へ保存する(ステップST512)。   Next, main controller 110 activates inter-processor communication by inter-processor communication unit 113, and transmits a recording key code to each of the sub CPUs 12 to 14 (step ST506). Here, the “recording key code” refers to specific information that prompts the sub CPUs 12 to 14 to record log data. Subsequently, the inter-processor communication unit 113 receives the log data sequentially transmitted from the sub CPUs 12 to 14 (step ST511), and the log data acquisition unit 114 stores the acquired log data in the recording medium 19 after the log data reception is completed. (Step ST512).

一方、ステップST504で外部接続機器30a〜30cの不具合でないと判定された場合(ステップST504“NO”)、主制御部110は、プロセッサ間通信のためにメモリ15に割り当てられている通信バッファを参照し(ステップST507)、その通信バッファ内に記録用キーコードにあるか否かを判定する(ステップST508)。
ここで参照される記録用キーコードは、後述するようにサブCPU12〜14により手動で生成されたものと同じものである。
On the other hand, when it is determined in step ST504 that the failure is not in the externally connected devices 30a to 30c (step ST504 "NO"), the main control unit 110 refers to the communication buffer allocated to the memory 15 for inter-processor communication. (Step ST507), it is determined whether or not the key code for recording is in the communication buffer (Step ST508).
The recording key code referred to here is the same as that manually generated by the sub CPUs 12 to 14 as will be described later.

ステップST508で記録用キーコードがあると判定されると(ステップST508“YES”)、引き続きサブCPU12〜14からログデータが送信されてくるため、主制御部110は、ログデータ収集部112を制御してログデータ収集を停止させてメモリ15へのログデータ書込みを停止させ(ステップST509)、プロセッサ間通信部113によるプロセッサ間通信を用いて記録用キーコードをそれぞれのサブCPU12〜14へ送信する(スップST510)
このことによりメインCPU11は受信準備が整い、プロセッサ間通信部113は、サブCPU12〜14から順次送信されるログデータを受信する(ステップST511)。そして、ログデータ取得部114はログデータ受信完了後、取得したログデータを記録媒体19へ保存し、メモリ15にある自身のログデータとともにサブCPU12〜14から送信されたログデータとを保存する(ステップST512)。
If it is determined in step ST508 that there is a recording key code (“YES” in step ST508), the main control unit 110 controls the log data collection unit 112 because log data is continuously transmitted from the sub CPUs 12 to 14. Then, log data collection is stopped, log data writing to the memory 15 is stopped (step ST509), and a recording key code is transmitted to each of the sub CPUs 12 to 14 using inter-processor communication by the inter-processor communication unit 113. (Sup ST510)
As a result, the main CPU 11 is ready for reception, and the inter-processor communication unit 113 receives log data sequentially transmitted from the sub CPUs 12 to 14 (step ST511). The log data acquisition unit 114 stores the acquired log data in the recording medium 19 after completion of the log data reception, and stores the log data transmitted from the sub CPUs 12 to 14 together with its own log data in the memory 15 ( Step ST512).

上記した処理によりメインCPU11は、自身のログデータと、サブCPU12〜14から送信されるログデータとを作業者に負担を強いることなく自動で記録媒体19に保存することができる。   Through the above-described processing, the main CPU 11 can automatically save its own log data and log data transmitted from the sub CPUs 12 to 14 in the recording medium 19 without imposing a burden on the operator.

次に、図6を参照しながらサブCPU12〜14のログデータ記録動作について説明する。図6において、まず、サブCPU12〜14は、プログラムの起動を契機に(ステップST601“YES”)、ログデータ収集部122が、プログラム処理が進むにつれ遷移するログデータの収集を開始する(ステップST602)。   Next, the log data recording operation of the sub CPUs 12 to 14 will be described with reference to FIG. In FIG. 6, first, the sub CPUs 12 to 14 start collection of log data as the program process proceeds (step ST602) when the program starts (step ST601 “YES”). ).

動作状態判定部121は、DTC(故障診断)検出プログラムを実行することにより外部接続機器30a〜30cの不具合検出が可能であることは上記したとおりである。
動作状態判定部121によるDTC検出処理判定を経て(ステップST603)、製品内部での不具合、すなわちサブCPU12〜14の不具合であると判定された場合(ステップST604“YES”)、主制御部120による制御の下、ログデータ収集部122は、ログデータ収集を停止し、メモリ16〜18へのログデータ書込みを停止させる(ステップST605)。この処理によって不具合発生前からの設定情報を確保することができる。
As described above, the operation state determination unit 121 can detect a failure of the externally connected devices 30a to 30c by executing a DTC (fault diagnosis) detection program.
After the DTC detection process determination by the operation state determination unit 121 (step ST603), when it is determined that the problem is inside the product, that is, the problem of the sub CPUs 12 to 14 (step ST604 "YES"), the main control unit 120 Under control, the log data collection unit 122 stops collecting log data and stops writing log data to the memories 16 to 18 (step ST605). By this process, setting information from before the occurrence of the failure can be secured.

ところで、サブCPU12〜14は、ログデータを保存する記録媒体19への直接的なリードライト制御機能を持たないため、メインCPU11にログデータを転送する際の契機になる記録用キーコードを送信する必要がある。
ここで、この記録用キーコードは、操作用キースイッチ20による手動入力により生成されるものと同じであり、例えば、あるキースイッチを同時押下することによりログデータ記録の際の契機として生成されるものであり、特定情報通知部124がこの記録用キーコードを取得し、プロセッサ間通信部123によりメインCPU11へ送信される(ステップST606)。続いて、プロセッサ間通信部123は、メモリ16〜18に一時保存したログデータをメインCPU11へ送信する(ステップST607)。
By the way, since the sub CPUs 12 to 14 do not have a direct read / write control function to the recording medium 19 for storing log data, the sub CPUs 12 to 14 transmit a recording key code to the main CPU 11 as a trigger when transferring the log data. There is a need.
Here, the recording key code is the same as that generated by manual input by the operation key switch 20, and is generated, for example, as a trigger for recording log data by simultaneously pressing a certain key switch. The specific information notification unit 124 acquires this recording key code and transmits it to the main CPU 11 by the inter-processor communication unit 123 (step ST606). Subsequently, the inter-processor communication unit 123 transmits the log data temporarily stored in the memories 16 to 18 to the main CPU 11 (step ST607).

一方、ステップST604で外部接続機器30a〜30cの不具合でないと判定された場合(ステップST604“NO”)、主制御部120は、プロセッサ間通信のためにメモリ16〜18に割り当てられている通信バッファを参照し(ステップST608)、その通信バッファ内に記録用キーコードがあるか否かを判定する(ステップST609)。
ここで、記録用キーコードがあると判定された場合(ステップST609“YES”)、主制御部120は、ログデータ収集部122を制御してログデータ収集を停止させてメモリ16〜18へのログデータ書込みを停止させる(ステップST610)。この処理により、不具合発生前からのCPU内部レジスタへの設定情報が確保される。
On the other hand, when it is determined in step ST604 that the externally connected devices 30a to 30c are not defective (step ST604 "NO"), the main control unit 120 communicates with the communication buffers allocated to the memories 16 to 18 for inter-processor communication. (Step ST608), it is determined whether or not there is a recording key code in the communication buffer (step ST609).
Here, when it is determined that there is a recording key code (step ST609 “YES”), the main control unit 120 controls the log data collection unit 122 to stop the log data collection and stores the log data in the memories 16 to 18. Log data writing is stopped (step ST610). By this processing, setting information to the CPU internal register before the occurrence of the trouble is secured.

最後に、プロセッサ間通信部123によりメモリ16〜18に一時保存したログデータをメインCPU11へ送信して上記した一連の処理を終了する。
上記によりメインCPU11は、サブCPU12〜14から順次送信されるログデータを受信し、ログデータ受信完了後、記録媒体19に保存することができる。
Finally, the log data temporarily stored in the memories 16 to 18 by the inter-processor communication unit 123 is transmitted to the main CPU 11 and the above-described series of processing ends.
As described above, the main CPU 11 can receive the log data sequentially transmitted from the sub CPUs 12 to 14 and store the log data in the recording medium 19 after the completion of the log data reception.

上記した処理によりサブCPU12〜14は、自身のログデータを作業者に負担を強いることなく自動で記録媒体19に保存することができる。   By the above processing, the sub CPUs 12 to 14 can automatically save their own log data in the recording medium 19 without imposing a burden on the operator.

以上説明のように本発明の実施の形態1に係るログデータ記録管理装置によれば、例えば、図1において、第1(メインCPU11)および1以上の第2の処理装置(サブCPU12〜14)は、プログラム実行時、ハードウェアへの設定値に関するログデータを収集し、それぞれが参照可能な記憶装置(メモリ15およびメモリ16〜18)に一時保存する手段を備え、第2の処理装置は、不具合発生を検出した場合、ログデータの収集を停止し、記憶装置(メモリ16〜18)に保存されたログデータをプロセッサ間通信により第1の処理装置に転送してログデータ記録装置(記録媒体19)に保存することで、不具合発生に至るまでのログデータを確実に取得することでき、したがって、再現確認を行う必要がなくなり解析までの時間短縮がはかれ、作業者の負担が軽減される。
なお、不具合検出については、DTC検出プログラムを流用すれば、再構築する必要が無くなるため、比較的安いコストでログデータ記録管理装置を提供できる。
As described above, according to the log data recording management device according to the first embodiment of the present invention, for example, in FIG. 1, the first (main CPU 11) and one or more second processing devices (sub CPUs 12 to 14). Includes means for collecting log data relating to setting values to the hardware during program execution and temporarily storing them in storage devices (memory 15 and memories 16 to 18) that can be referred to, and the second processing device includes: When the occurrence of a malfunction is detected, the collection of log data is stopped, and the log data stored in the storage device (memory 16 to 18) is transferred to the first processing device by inter-processor communication, and the log data recording device (recording medium) 19), it is possible to reliably acquire log data up to the occurrence of a defect, and therefore it is not necessary to perform reproduction confirmation, and the time until analysis. Shrinkage is Hakare, burden on the operator is reduced.
For malfunction detection, if the DTC detection program is diverted, there is no need to reconstruct the log data recording management apparatus at a relatively low cost.

なお、図3、図4に示す第1の処理装置(メインCPU11)、あるいは第2の処理装置(サブCPU12〜14)が有する機能は、全てをソフトウェアによって実現しても、あるいはその少なくとも一部をハードウェアで実現してもよい。
例えば、プログラム実行時、それぞれが有するハードウェアへの設定値に関するログデータを収集し、それぞれが参照可能な記憶装置に一時保存するデータ処理、あるいは、不具合発生を検出した場合、ログデータの収集を停止し、記憶装置に保存されたログデータをプロセッサ間通信により第1の処理装置に転送してログデータ記録装置に保存するデータ処理は、1または複数のプログラムによりコンピュータ上で実現してもよく、また、その少なくとも一部をハードウェアで実現してもよい。
The functions of the first processing device (main CPU 11) or the second processing device (sub CPUs 12 to 14) shown in FIGS. 3 and 4 may be realized entirely by software, or at least a part thereof. May be realized by hardware.
For example, at the time of program execution, log data related to the setting values for each hardware is collected, and when data processing is temporarily stored in a storage device that can be referred to, or when occurrence of a malfunction is detected, log data is collected. Data processing for stopping and transferring the log data stored in the storage device to the first processing device by inter-processor communication and storing it in the log data recording device may be realized on the computer by one or more programs. In addition, at least a part of it may be realized by hardware.

10 ログデータ記録管理装置、11 メインCPU(第1の処理装置)、12〜14 サブCPU(第2の処理装置)、15〜18 メモリ(記憶装置)、19 記録媒体、20 操作用キースイッチ(操作入力装置)、30a,30c 外部接続機器、110,120 主制御部、111,121 ログデータ収集部、112,122 動作状態判定部、113,123 プロセッサ間通信部、114 ログデータ取得部、124 特定情報通知部。   10 log data recording management device, 11 main CPU (first processing device), 12-14 sub CPU (second processing device), 15-18 memory (storage device), 19 recording medium, 20 key switch for operation ( Operation input device), 30a, 30c Externally connected device, 110, 120 Main control unit, 111, 121 Log data collection unit, 112, 122 Operation state determination unit, 113, 123 Inter-processor communication unit, 114 Log data acquisition unit, 124 Specific information notification unit.

Claims (5)

ログデータ記録装置が接続される第1の処理装置と、前記第1の処理装置とは通信可能に接続される1以上の第2の処理装置とを含むログデータ記録管理装置であって、
前記第1および第2の処理装置は、
プログラム実行時、それぞれが有するハードウェアへの設定値に関するログデータを収集し、それぞれが参照可能な記憶装置に一時保存する手段を備え、
前記第2の処理装置は、
不具合発生を検出した場合、前記ログデータの収集を停止し、前記記憶装置に保存されたログデータをプロセッサ間通信により前記第1の処理装置に転送して前記ログデータ記録装置に保存することを特徴とするログデータ記録管理装置。
A log data recording management device including a first processing device to which a log data recording device is connected, and one or more second processing devices that are communicably connected to the first processing device,
The first and second processing devices are:
At the time of program execution, it includes means for collecting log data related to setting values to the hardware of each, and temporarily storing them in a storage device that can be referred to.
The second processing device includes:
When the occurrence of a malfunction is detected, the collection of the log data is stopped, and the log data stored in the storage device is transferred to the first processing device by inter-processor communication and stored in the log data recording device. A log data recording management device characterized by the above.
特定の情報を入力する操作入力装置を備え、
前記第2の処理装置は、
前記収集したログデータを前記プロセッサ間通信により前記第1の処理装置に転送するにあたり、前記操作入力装置から取得される特定の情報を動作契機とすることを特徴とする請求項1記載のログデータ記録管理装置。
It has an operation input device that inputs specific information,
The second processing device includes:
2. The log data according to claim 1, wherein when the collected log data is transferred to the first processing device by the inter-processor communication, specific information acquired from the operation input device is used as an operation trigger. Record management device.
前記第1および第2の処理装置は、
動作に不具合が発生したことを検出した場合に、発生した不具合を示す情報を参照して自身の不具合であるか否かを判定することを特徴とする請求項1または請求項2記載のログデータ記録管理装置。
The first and second processing devices are:
3. The log data according to claim 1, wherein when it is detected that a malfunction has occurred in the operation, it is determined whether or not the malfunction has occurred by referring to information indicating the malfunction that has occurred. Record management device.
前記第1の処理装置は、
自身の不具合であった場合、
自身のログデータの収集を停止して前記1以上の第2の処理装置にログデータ記録を促す特定の情報を送信し、前記第2の処理装置から送信されるログデータを受信して前記ログデータ記録装置に保存し、
自身の不具合でなかった場合、
記憶装置に割り当てられる通信バッファに前記特定の情報があれば、前記ログデータの収集を停止して前記第2の処理装置にログデータ記録を促す特定の情報を送信し、前記第2の処理装置からのログデータの送信を待って前記ログデータ記録装置に保存することを特徴とする請求項3記載のログデータ記録管理装置。
The first processing device includes:
If it ’s your fault,
Stops collecting its own log data, transmits specific information for encouraging the one or more second processing devices to record log data, receives log data transmitted from the second processing device, and receives the log Save it in a data recorder,
If it ’s not your fault,
If there is the specific information in the communication buffer allocated to the storage device, the collection of the log data is stopped, and specific information that prompts the second processing device to record the log data is transmitted, and the second processing device 4. The log data recording management apparatus according to claim 3, wherein the log data recording management apparatus waits for transmission of log data from the log data and stores it in the log data recording apparatus.
前記第2の処理装置は、
自身の不具合であった場合、
自身のログデータの収集を停止して前記第1の処理装置に前記操作装置から入力される特定の情報を送信するとともに前記収集したログデータを送信し、
自身の不具合でなかった場合、
前記記憶装置に割り当てられる通信バッファに前記特定の情報があれば、前記ログデータの収集を停止して前記第1の処理装置に前記収集したログデータを送信することを特徴とする請求項3記載のログデータ記録管理装置。
The second processing device includes:
If it ’s your fault,
Stop collecting its own log data and send specific information input from the operating device to the first processing device and send the collected log data;
If it ’s not your fault,
4. The log data collection is stopped and the collected log data is transmitted to the first processing device if the specific information is present in a communication buffer allocated to the storage device. Log data record management device.
JP2009090103A 2009-04-02 2009-04-02 Device for recording and management of log data Pending JP2010244185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009090103A JP2010244185A (en) 2009-04-02 2009-04-02 Device for recording and management of log data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009090103A JP2010244185A (en) 2009-04-02 2009-04-02 Device for recording and management of log data

Publications (1)

Publication Number Publication Date
JP2010244185A true JP2010244185A (en) 2010-10-28

Family

ID=43097158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009090103A Pending JP2010244185A (en) 2009-04-02 2009-04-02 Device for recording and management of log data

Country Status (1)

Country Link
JP (1) JP2010244185A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019174973A (en) * 2018-03-27 2019-10-10 キヤノン株式会社 Electronic apparatus and method for detecting abnormality during start-up thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019174973A (en) * 2018-03-27 2019-10-10 キヤノン株式会社 Electronic apparatus and method for detecting abnormality during start-up thereof
US10728409B2 (en) 2018-03-27 2020-07-28 Canon Kabushiki Kaisha Electronic apparatus with a user interface module having a diagnosis unit to detect an abnormality of a display at the time of boot, and abnormality detection method

Similar Documents

Publication Publication Date Title
CN104143359A (en) On-Line Memory Testing System And Method
JP5906721B2 (en) External output device, log collection method for external output device, and program
JP2010033678A (en) Disk device, circuit board, and error log information recording method
CN102622188B (en) Signal conditioning package and control method
JP5026046B2 (en) Home door malfunction detection system
CN114385421A (en) Data storage method and device, electronic equipment and storage medium
US11023335B2 (en) Computer and control method thereof for diagnosing abnormality
JP7063445B2 (en) Fault information processing program, computer, fault notification method, computer system
JP2010244185A (en) Device for recording and management of log data
JP5726000B2 (en) Information processing apparatus, information processing method, and program
JP2020147249A (en) Electronic control device, server, and communication system
CN103645866B (en) Control device and image forming system
JP2006094174A (en) Image forming apparatus and log information collection method for image forming apparatus
JP4752755B2 (en) Failure diagnosis device, failure diagnosis system, and failure diagnosis program
JP2017201736A (en) Image processing apparatus, method for controlling the image processing apparatus, and program
CN101895656B (en) Image forming apparatus and control method thereof
JP5223996B1 (en) Print control apparatus, data management method and program
JP5057911B2 (en) Multiprocessor system
KR101207342B1 (en) Car digital tachograph apparatus having auto upgrade function
JP2014182676A (en) Log collection device, arithmetic unit, and log collection method
TW201928669A (en) Computer apparatus, diagnostic method and non-transitory computer-readable storage medium
JP2010139458A (en) Vehicle failure management system
JP2013191162A (en) Operation analysis device, image forming device, operation analysis method, and program
JP3203884B2 (en) Vehicle diagnostic system
JP2013084220A (en) Data storage medium and data collection device