JP5797579B2 - Log recording apparatus and log recording method of log recording apparatus - Google Patents

Log recording apparatus and log recording method of log recording apparatus Download PDF

Info

Publication number
JP5797579B2
JP5797579B2 JP2012031589A JP2012031589A JP5797579B2 JP 5797579 B2 JP5797579 B2 JP 5797579B2 JP 2012031589 A JP2012031589 A JP 2012031589A JP 2012031589 A JP2012031589 A JP 2012031589A JP 5797579 B2 JP5797579 B2 JP 5797579B2
Authority
JP
Japan
Prior art keywords
log
time
time information
processing device
rtc
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
JP2012031589A
Other languages
Japanese (ja)
Other versions
JP2013168058A (en
Inventor
郷司 陽一
陽一 郷司
Original Assignee
東芝シュネデール・インバータ株式会社
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 東芝シュネデール・インバータ株式会社 filed Critical 東芝シュネデール・インバータ株式会社
Priority to JP2012031589A priority Critical patent/JP5797579B2/en
Publication of JP2013168058A publication Critical patent/JP2013168058A/en
Application granted granted Critical
Publication of JP5797579B2 publication Critical patent/JP5797579B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明の実施形態は、ログ記録装置およびログ記録装置のログ記録方法に関する。   Embodiments described herein relate generally to a log recording apparatus and a log recording method of the log recording apparatus.

従来、様々な分野において環境情報等や機器の動作状況などに関するログを記録する要求がある。例えば、物品の輸送の分野においては、特許文献1に記載のように、輸送中の物品の傾きなどの環境情報を経時的に記録することが要求されている。また、例えばモータ駆動用のインバータ装置に関する分野では、モータの稼動状況を把握してシステム全体の健全性を確認したり、モータの負荷や稼働時間からメンテナンス計画を立ててシステム全体の稼働率の向上を図ったりするために、インバータ装置の運転に関するログを記録する要求がある。   2. Description of the Related Art Conventionally, there is a demand for recording logs related to environmental information and the like and the operation status of devices in various fields. For example, in the field of article transportation, as described in Patent Document 1, it is required to record environmental information such as the inclination of the article being transported over time. Also, for example, in the field of motor drive inverter devices, the operating status of the motor can be ascertained to check the soundness of the entire system, and a maintenance plan can be made based on the motor load and operating time to improve the operating rate of the entire system. There is a request to record a log related to the operation of the inverter device.

このような要求に応えるため、例えば各種センサやインバータ装置などのログ取得対象にパーソナルコンピュータなどを直接接続してログを取得したり、ログ取得対象に時計および記憶装置を設けて、その記憶装置にログを記録させたりすることは容易である。しかし、前者の場合は、ログを取得する前に、パーソナルコンピュータなどをその都度ログ取得対象に接続する必要がある。また、後者の場合は、ログを取得する前に、ログ取得対象に設けられた時計をその都度校正する必要がある。そのため、このような構成の場合、ログを取得する際の作業が煩わしく、作業性の低下を招くことにもなる。   In order to respond to such a request, for example, a personal computer or the like is directly connected to a log acquisition target such as various sensors or an inverter device, or a log is acquired, or a clock and a storage device are provided for the log acquisition target. It is easy to record logs. However, in the former case, it is necessary to connect a personal computer or the like to the log acquisition target each time before acquiring the log. In the latter case, it is necessary to calibrate the clock provided for the log acquisition target each time before acquiring the log. Therefore, in the case of such a configuration, the work for acquiring the log is troublesome and the workability is also lowered.

特開2011−53071号公報JP 2011-53071 A

そこで、平易な作業で、ログ取得対象から取得したログをログ処理装置へ渡すことができるログ記録装置およびログ記録装置のログ記録方法を提供する。   Therefore, a log recording device and a log recording method for the log recording device that can pass a log acquired from a log acquisition target to a log processing device by simple work are provided.

本実施形態のログ記録装置は、ログ取得対象およびログ処理装置に着脱可能に構成され、前記ログ取得対象から取得したログを前記ログ処理装置へ渡すためのログ記録装置である。このログ記録装置は、前記ログが記憶される記憶手段と、前記ログ取得対象または前記ログ処理装置に接続されて充電される電源と、前記電源から給電されて相対時刻を計時する相対時刻計時手段と、前記ログ取得対象または前記ログ処理装置から給電されて駆動し、前記ログ取得対象から前記ログを取得する際に、前記ログに前記相対時刻計時手段の時刻に基づく取得時刻情報を付加し、前記ログを前記ログ処理装置へ渡す際に、前記ログに前記相対時刻計時手段の時刻に基づく送信時刻情報を付加する制御手段と、を備える。   The log recording apparatus according to the present embodiment is configured to be detachable from a log acquisition target and a log processing apparatus, and is a log recording apparatus for passing a log acquired from the log acquisition target to the log processing apparatus. The log recording device includes a storage unit that stores the log, a power source that is connected to the log acquisition target or the log processing device and is charged, and a relative time counting unit that is fed from the power source and counts a relative time. And when the log acquisition target or the log processing device is powered and driven to acquire the log from the log acquisition target, the acquisition time information based on the time of the relative time measuring means is added to the log, Control means for adding transmission time information based on the time of the relative time measuring means to the log when passing the log to the log processing device.

また、本実施形態のログ記録装置のログ記録方法は、ログ取得対象およびログ処理装置に着脱可能に構成され、前記ログ取得対象から取得したログを前記ログ処理装置へ渡すためのログ記録装置におけるログ記録方法である。前記ログ処理装置は、基準時刻を計時する基準時刻計時手段を備える。前記ログ記録装置は、前記ログを記憶する記憶手段と、前記ログ取得対象または前記ログ処理装置に接続されて充電される電源と、前記電源から給電されて相対時刻を計時する相対時刻計時手段と、を備える。このログ記録装置のログ記録方法は、前記ログ記録装置が前記ログ取得対象から取得した前記ログを前記記憶手段に記憶させる際に、前記ログに前記相対時刻計時手段の時刻に基づく取得時刻情報を付加し、前記ログ記録装置が前記ログ処理装置に接続された状態で、前記基準時刻計時手段の時刻に基づく基準時刻情報および前記相対時刻計時手段の時刻に基づく送信時刻情報を同時期に取得し、前記基準時刻情報と前記送信時刻情報との差に基づいて前記取得時刻情報を補正する。   Further, the log recording method of the log recording apparatus of the present embodiment is configured to be detachable from the log acquisition target and the log processing apparatus, and in the log recording apparatus for passing the log acquired from the log acquisition target to the log processing apparatus Log recording method. The log processing device includes a reference time measuring means for measuring a reference time. The log recording device includes a storage unit that stores the log, a power source that is connected to the log acquisition target or the log processing device and is charged, and a relative time counting unit that receives power from the power source and counts a relative time. . In this log recording method of the log recording device, when the log recording device stores the log acquired from the log acquisition target in the storage unit, the log includes acquisition time information based on the time of the relative time measuring unit. In addition, in a state where the log recording device is connected to the log processing device, reference time information based on the time of the reference time counting unit and transmission time information based on the time of the relative time counting unit are acquired at the same time. The acquisition time information is corrected based on the difference between the reference time information and the transmission time information.

第一実施形態によるログ記録システムの概略構成を示す図The figure which shows schematic structure of the log recording system by 1st embodiment. ログ記録装置の概略構成を示す図Diagram showing schematic configuration of log recording device ログの内容を示すものであって、(a)は取得時刻情報の補正前、(b)は取得時刻情報の補正後を示す図It shows the contents of the log, (a) before correction of the acquisition time information, (b) is a diagram showing after correction of the acquisition time information RTC校正処理の制御内容を示すフローチャートFlow chart showing control contents of RTC calibration processing RTC校正処理において、RTCの校正前にログ処理装置のディスプレイに表示されるログの内容を示す図The figure which shows the contents of the log displayed on the display of a log processing apparatus before RTC calibration in RTC calibration processing RTC校正処理において、RTCの校正後にログ処理装置のディスプレイに表示されるログの内容を示す図The figure which shows the content of the log displayed on the display of a log processing apparatus after RTC calibration in RTC calibration processing ログ受け処理の制御内容を示すフローチャートFlow chart showing control details of log receiving process ログ渡し処理の制御内容を示すフローチャートFlow chart showing the control details of log passing processing ログ渡し処理において、ログ受け処理とログ渡し処理の間にRTCが停止していなかった場合にログ処理装置のディスプレイに表示される内容を示す図The figure which shows the content displayed on the display of a log processing apparatus, when RTC is not stopped between log receiving processing and log passing processing in log passing processing ログ渡し処理において、ログ受け処理とログ渡し処理の間にRTCが停止していた場合にログ処理装置のディスプレイに表示される内容を示す図The figure which shows the content displayed on the display of a log processing apparatus when RTC has stopped between log receiving processing and log passing processing in log passing processing ログ補正処理の制御内容を示すフローチャートFlow chart showing control details of log correction processing 第二実施形態による図9相当図FIG. 9 equivalent diagram according to the second embodiment 第三実施形態による図2相当図FIG. 2 equivalent diagram according to the third embodiment 第四実施形態による図2相当図FIG. 2 equivalent diagram according to the fourth embodiment

以下、複数の実施形態について図面を参照して説明する。なお、各実施形態において実質的に同一の構成部位には同一の符号を付し、説明を省略する。   Hereinafter, a plurality of embodiments will be described with reference to the drawings. In addition, in each embodiment, the same code | symbol is attached | subjected to the substantially same component, and description is abbreviate | omitted.

(第一実施形態)
まず、第一実施形態について、図1から図11を参照して説明する。
図1に示すログ記録システム10は、ログ取得対象11と、ログ処理装置12と、ログ記録装置13とから構成されている。このログ記録システム10は、ログ記録装置13を介してログ取得対象11から取得したログDをログ処理装置12へ渡すように構成されている。なお、本明細書において、ログとは、ログ取得対象11の過去の稼働状況を経時的に表す情報自体を意味するものとし、ログのデータファイルとは、前記ログを記憶したファイルを意味するものとする。
(First embodiment)
First, a first embodiment will be described with reference to FIGS.
A log recording system 10 illustrated in FIG. 1 includes a log acquisition target 11, a log processing device 12, and a log recording device 13. The log recording system 10 is configured to pass the log D acquired from the log acquisition target 11 via the log recording device 13 to the log processing device 12. In this specification, the log means the information itself representing the past operation status of the log acquisition target 11 over time, and the log data file means a file storing the log. And

ログ取得対象11は、本実施形態の場合、インバータ装置を対象としているが、これに限られず、例えば各種センサを備えた環境記録装置などでもよい。また、ログ処理装置12は、電源、制御装置、および記憶装置等を備えるとともに、システムクロック(System Clock、以下SC)121を内部に備え、さらにはディスプレイ122などの表示手段や、マウス、キーボードなどの入力手段を備えた一般的な汎用のパーソナルコンピュータを想定している。本実施形態の場合、システムクロック121は、現実の時刻とほぼ同じ時刻を示し、ログ記録システム10における基準時刻を計時する基準時刻計時手段として機能する。なお、ログ処理装置12は、電源や制御装置などを備えてデータ処理が行えるものであれば、一般的なパーソナルコンピュータに限られない。   In the case of this embodiment, the log acquisition target 11 is an inverter device, but is not limited thereto, and may be an environment recording device including various sensors, for example. In addition, the log processing device 12 includes a power source, a control device, a storage device, and the like, and also includes a system clock (hereinafter referred to as SC) 121. Further, a display unit such as a display 122, a mouse, a keyboard, and the like A general-purpose personal computer equipped with the input means is assumed. In the case of the present embodiment, the system clock 121 indicates substantially the same time as the actual time, and functions as a reference time measuring means for measuring the reference time in the log recording system 10. The log processing device 12 is not limited to a general personal computer as long as the log processing device 12 includes a power source, a control device, and the like and can perform data processing.

ログ記録装置13は、ログ取得対象11またはログ処理装置12に接続された状態で、USB(Universal Serial Bus)規格に基づいて通信を行ういわゆるUSBドングルで構成されている。なお、ログ記録装置13は、USBドングルに限られず、例えばSD規格に基づいて通信されるメモリーカードや、その他の規格に基づいて通信されるPCカードまたは基板などで構成してもよい。   The log recording device 13 is configured by a so-called USB dongle that performs communication based on the USB (Universal Serial Bus) standard while being connected to the log acquisition target 11 or the log processing device 12. Note that the log recording device 13 is not limited to the USB dongle, and may be constituted by, for example, a memory card that is communicated based on the SD standard, a PC card that is communicated based on other standards, a board, or the like.

ログ記録装置13は、具体的には図2に示すように、主に、中央処理装置(Central Processing Unit、以下CPU)14、リアルタイムクロック(Real Time Clock、以下RTC)15、不揮発性メモリ16、電源17、コネクタ18、およびダイオード19などをプリント配線基板に実装して構成されている。コネクタ18は、例えばUSB規格に基づくコネクタで構成され、給電端子181、データ端子182、およびグランド端子183を有している。給電端子181は、CPU14および不揮発性メモリ16に接続されるとともに、ダイオード19を介して、RTC15および電源17に接続されている。この場合、ダイオード19は、電源17から不揮発性メモリ16およびCPU14側への給電を阻止している。   Specifically, as shown in FIG. 2, the log recording device 13 mainly includes a central processing unit (CPU) 14, a real time clock (RTC) 15, a non-volatile memory 16, A power supply 17, a connector 18, a diode 19 and the like are mounted on a printed wiring board. The connector 18 is configured by a connector based on the USB standard, for example, and includes a power supply terminal 181, a data terminal 182, and a ground terminal 183. The power supply terminal 181 is connected to the CPU 14 and the nonvolatile memory 16, and is connected to the RTC 15 and the power supply 17 via the diode 19. In this case, the diode 19 prevents power supply from the power supply 17 to the nonvolatile memory 16 and the CPU 14 side.

データ端子182は、CPU14に接続されている。グランド端子183は、ログ記録装置13がログ取得対象11またはログ処理装置12に接続された状態で、これらログ取得対象11またはログ処理装置12を介して接地される。RTC15および不揮発性メモリ16は、CPU14にデータラインで接続されている。このコネクタ18は、ログ取得対象11およびログ処理装置12に対して差し込みまたは引き抜かれる。これにより、ログ記録装置13は、ログ取得対象11およびログ処理装置12に対して着脱可能に構成されている。   The data terminal 182 is connected to the CPU 14. The ground terminal 183 is grounded via the log acquisition target 11 or the log processing device 12 in a state where the log recording device 13 is connected to the log acquisition target 11 or the log processing device 12. The RTC 15 and the nonvolatile memory 16 are connected to the CPU 14 via a data line. The connector 18 is inserted into or extracted from the log acquisition target 11 and the log processing device 12. Thereby, the log recording device 13 is configured to be detachable from the log acquisition target 11 and the log processing device 12.

CPU14は、ログ記録装置13がログ取得対象11またはログ処理装置12に接続されると、コネクタ18を介して、ログ取得対象11またはログ処理装置12から給電されて駆動する。このCPU14は、ログ取得対象11およびログ処理装置12との通信を制御するとともに、不揮発性メモリ16に対するデータの読み書きを制御する。この場合、CPU14は、制御手段として機能する。   When the log recording device 13 is connected to the log acquisition target 11 or the log processing device 12, the CPU 14 is driven by being supplied with power from the log acquisition target 11 or the log processing device 12 via the connector 18. The CPU 14 controls communication with the log acquisition target 11 and the log processing device 12 and controls reading and writing of data with respect to the nonvolatile memory 16. In this case, the CPU 14 functions as a control unit.

不揮発性メモリ16は、例えばフラッシュメモリなどの書き換え可能な半導体メモリで構成されている。この不揮発性メモリ16には、CPU14の制御によってログ取得対象11から取得したログのデータが書き込まれる。これにより、不揮発性メモリ16は、ログ取得対象11から取得したログを記憶する。この場合、不揮発性メモリ16は、記憶手段として機能する。   The nonvolatile memory 16 is composed of a rewritable semiconductor memory such as a flash memory. In the nonvolatile memory 16, log data acquired from the log acquisition target 11 under the control of the CPU 14 is written. Thereby, the nonvolatile memory 16 stores the log acquired from the log acquisition target 11. In this case, the nonvolatile memory 16 functions as a storage unit.

電源17は、電荷を蓄積することのできる電荷蓄積手段、例えば大容量コンデンサ、スーパーキャパシタなどで構成されている。この電源17は、外部からの給電により充電される。本実施形態の場合、ログ記録装置13がログ取得対象11またはログ処理装置12に接続されると、電源17は、これらログ取得対象11またはログ処理装置12からの給電により充電される。   The power source 17 is constituted by charge storage means capable of storing charges, for example, a large-capacity capacitor, a super capacitor, or the like. The power source 17 is charged by external power feeding. In the case of the present embodiment, when the log recording device 13 is connected to the log acquisition target 11 or the log processing device 12, the power supply 17 is charged by power supply from the log acquisition target 11 or the log processing device 12.

RTC15は、電源17またはコネクタ18から給電されて計時動作を実行する、いわゆるカレンダークロックで構成されている。RTC15は、ログ記録装置13がログ取得対象11またはログ処理装置12に接続されてコネクタ18から給電されている場合には、主にコネクタ18からの給電によって駆動する。この場合、電源17はコネクタ18からの給電により充電される。そして、コネクタ18からの給電が停止すると、電源17から給電されて駆動する。   The RTC 15 is configured by a so-called calendar clock that is fed with power from the power supply 17 or the connector 18 and executes a time measuring operation. The RTC 15 is driven mainly by power supplied from the connector 18 when the log recording device 13 is connected to the log acquisition target 11 or the log processing device 12 and is supplied with power from the connector 18. In this case, the power source 17 is charged by power feeding from the connector 18. When power supply from the connector 18 is stopped, power is supplied from the power source 17 to drive.

このRTC15は、給電が開始されると、予め設定された計時開始時刻を基準に計時を開始し、CPU14に対して計時開始時刻に対する現在の計時時刻を「年」、「月」、「日」、「時」、「分」、「秒」のデータで相対的な時刻情報として提供する。例えば、RTC15の計時開始時刻が2000年1月1日0時0分0秒に設定されていた場合、RTC15は、コネクタ18から給電されて起動すると、この2000年1月1日0時0分0秒を基準として計時を開始し、CPU14に対して2000年1月1日0時0分0秒を基準とした現在の相対時刻情報を提供する。そして、RTC15は、コネクタ18からの給電が停止すると電源17からの給電によって駆動し、その後、電源17からの給電が停止するのに伴って動作を停止する。さらにその後、コネクタ18からの給電が再開すると初期化された状態で計時を再開する。この場合、RTC15は、計時開始時刻2000年1月1日0時0分0秒を基準として再び計時を開始する。このRTC15は、相対時刻計時手段として機能する。   When power supply is started, the RTC 15 starts timing based on a preset timing start time, and sets the current timing time with respect to the timing start time to the CPU 14 as “year”, “month”, “day”. , “Hour”, “minute”, and “second” data are provided as relative time information. For example, if the timing start time of the RTC 15 is set to 1:00:00 on January 1, 2000, the RTC 15 is powered on from the connector 18 and started up at 00:00 on January 1, 2000. Time measurement is started with 0 second as a reference, and current relative time information is provided to the CPU 14 with reference to 0:00:00 on January 1, 2000. The RTC 15 is driven by the power supply from the power supply 17 when the power supply from the connector 18 is stopped, and then stops operating as the power supply from the power supply 17 is stopped. Thereafter, when the power supply from the connector 18 is resumed, the time measurement is resumed in the initialized state. In this case, the RTC 15 starts counting again on the basis of the clock start time January 1, 2000, 0: 0: 0. The RTC 15 functions as a relative time measuring means.

また、ログ記録装置13は、図示しないROM、RAMを備え、このROM、RAMには、各種の処理を実行するためのプログラムが記録されている。
この構成において、ログ記録装置13は、ログ取得対象11に接続されてログ取得対象11のログDを取得する。本実施形態の場合、ログ取得対象11から取得するログDは、図3に示すように、ログ取得対象11の例えば入力電圧、出力電流、および出力電力などの稼働情報Daと、これら稼働情報Daの取得時刻を示す取得時刻情報Tとから構成されている。この取得時刻情報Tは、稼働情報Daを取得する際のRTC15の現在時刻となる。ここで、例えば電源17の電圧低下などによりRTC15が動作を停止し、その後給電が再開してRTC15が初期化された場合、取得時刻情報Tは、実際にログ記録装置13が稼働情報Daを取得した時刻と大きく異なるものとなる。そのため、本実施形態では、RTC校正処理およびログ補正処理によって、ログDの取得時刻情報Tを適切なものとしている。
The log recording device 13 includes a ROM and a RAM (not shown), and programs for executing various processes are recorded in the ROM and the RAM.
In this configuration, the log recording device 13 is connected to the log acquisition target 11 and acquires the log D of the log acquisition target 11. In the case of the present embodiment, the log D acquired from the log acquisition target 11 includes, as shown in FIG. 3, operation information Da of the log acquisition target 11 such as input voltage, output current, and output power, and these operation information Da. It is comprised from the acquisition time information T which shows the acquisition time of. This acquisition time information T is the current time of the RTC 15 when the operation information Da is acquired. Here, for example, when the RTC 15 stops operating due to a voltage drop of the power source 17 and the like, and then the power supply is resumed and the RTC 15 is initialized, the log recording device 13 actually acquires the operation information Da. The time will be very different. For this reason, in the present embodiment, the acquisition time information T of the log D is made appropriate by the RTC calibration process and the log correction process.

具体的には、このログ記録システム10では、図7および図8に示すログ受け渡し処理によって、ログ取得対象11から取得したログDを、ログ記録装置13を介してログ処理装置へ渡す。また、このログ受け渡し処理の前に、必要に応じて図4に示すRTC校正処理によるRTC15の校正つまり時刻合わせが行われる。そして、ログ受け渡し処理の後に、図10に示すログ補正処理が行われ、必要に応じてログDが有する取得時刻情報Tの補正が行われる。このうち、まずRTC校正処理について、図4〜図6を参照して説明する。   Specifically, in the log recording system 10, the log D acquired from the log acquisition target 11 is transferred to the log processing device via the log recording device 13 by the log transfer processing shown in FIGS. 7 and 8. Further, before the log delivery process, the RTC 15 is calibrated by the RTC calibration process shown in FIG. Then, after the log delivery process, the log correction process shown in FIG. 10 is performed, and the acquisition time information T included in the log D is corrected as necessary. Of these, the RTC calibration process will be described first with reference to FIGS.

なお、以下の説明において、ログDが複数回に分けて取得される場合、取得時期の古いものから順にログD(n−1)、ログD(n)、ログD(n+1)とする。この場合、ログD(n−1)は、単にログD(n)よりも前に取得されたものであることを示し、ログD(n+1)は、単にログD(n)よりも後に取得されたものであることを示している。また、ログ記録装置13がログ取得対象11に接続されている場合における各処理の主体はログ記録装置13のCPU14となる。これに対し、ログ記録装置13がログ処理装置12に接続されている場合おける各処理の主体は、ログ記録装置13のCPU14またはログ処理装置12が備える制御装置となる。   In the following description, when the log D is acquired in a plurality of times, it is assumed that the log D (n−1), the log D (n), and the log D (n + 1) are in order from the oldest acquisition time. In this case, log D (n−1) simply indicates that it was acquired before log D (n), and log D (n + 1) is only acquired after log D (n). It shows that it is. In addition, when the log recording device 13 is connected to the log acquisition target 11, the subject of each process is the CPU 14 of the log recording device 13. On the other hand, when the log recording device 13 is connected to the log processing device 12, the subject of each processing is the CPU 14 of the log recording device 13 or the control device provided in the log processing device 12.

図4に示すRTC校正処理では、ログ記録装置13がログ取得対象11からログD(n)を取得する前であってログ処理装置12に接続された場合に、ログ処理装置12のSC121の時刻に基づいてRTC15の時刻を校正する。具体的には、使用者がログ記録装置13をログ処理装置12に接続すると、ログ処理装置12からの給電により、ログ記録装置13のCPU14が駆動してRTC校正処理を開始する。また、ログ記録装置13がログ処理装置12に接続されると、電源17にも給電されて、電源17が充電される。このとき、電源17の電力喪失によりRTC15が停止していれば、RTC15は初期化された状態で再起動、つまり2000年1月1日0時0分0秒を基準に計時が開始される。なお、RTC15は、電源17の電力が回復した直後から再起動する構成でもよいし、電源17の電力が回復した状態で外部から所定の指示が入力されることによって再起動する構成でもよい。   In the RTC calibration process shown in FIG. 4, the time of the SC 121 of the log processing device 12 when the log recording device 13 is connected to the log processing device 12 before acquiring the log D (n) from the log acquisition target 11. Based on the above, the time of the RTC 15 is calibrated. Specifically, when the user connects the log recording device 13 to the log processing device 12, the CPU 14 of the log recording device 13 is driven by the power supply from the log processing device 12 to start the RTC calibration process. When the log recording device 13 is connected to the log processing device 12, the power source 17 is also supplied with power and the power source 17 is charged. At this time, if the RTC 15 is stopped due to the power loss of the power supply 17, the RTC 15 is restarted in an initialized state, that is, time measurement is started on the basis of 0:00 on January 1, 2000. The RTC 15 may be configured to restart immediately after the power of the power source 17 is recovered, or may be configured to restart when a predetermined instruction is input from the outside while the power of the power source 17 is recovered.

ログ処理装置12は、ログ記録装置13が接続されると、ログ記録装置13の不揮発性メモリ16に記憶されている内容を読み出し、図5に示すように、ログ処理装置12が備えるファイル閲覧用のソフトウェアによって、読み出した不揮発性メモリ16の内容をディスプレイ122に表示する。この場合、ディスプレイ122には、例えばログ処理装置12に接続されている機器を表示する機器表示部123や、機器表示部123で選択した機器の内容を示す内容表示部124が表示される。また、このディスプレイ122には、SC121が計時する現在時刻が基準時刻情報Tbとして表示されるとともに、RTC15が計時する現在時刻が相対時刻情報Tcとして表示される。この場合、ログ記録装置13は、機器表示部123に「USB DONGLE」という名前で表示されている。また、内容表示部124には、不揮発性メモリ16に何も記憶されていないことが表示されている。   When the log recording device 13 is connected, the log processing device 12 reads the contents stored in the nonvolatile memory 16 of the log recording device 13 and, as shown in FIG. The contents of the read nonvolatile memory 16 are displayed on the display 122. In this case, on the display 122, for example, a device display unit 123 that displays devices connected to the log processing device 12 and a content display unit 124 that indicates the content of the device selected by the device display unit 123 are displayed. Further, the display 122 displays the current time measured by the SC 121 as the reference time information Tb and the current time measured by the RTC 15 as the relative time information Tc. In this case, the log recording device 13 is displayed on the device display unit 123 with the name “USB DONGLE”. The content display section 124 displays that nothing is stored in the nonvolatile memory 16.

CPU14は、図4に示すRTC校正処理を開始すると、まず、ステップS11において、不揮発性メモリ16にログD(n−1)が記憶されているか否かを検出する。これにより、ログ記録装置13がログ取得対象11からログDを取得する前であるか否かを判断する。ステップS11において、不揮発性メモリ16にログD(n−1)が記憶されていなければ(ステップS11でNO)、ログDの取得前と判断してステップS13へ移行する。一方、ステップS11において、不揮発性メモリ16にログD(n−1)が記憶されていれば(ステップS11でYES)、ログDの取得後と判断してステップS12へ移行する。   When the CPU 14 starts the RTC calibration process shown in FIG. 4, first, in step S <b> 11, the CPU 14 detects whether or not the log D (n−1) is stored in the nonvolatile memory 16. Thereby, it is determined whether or not the log recording device 13 is before acquiring the log D from the log acquisition target 11. In step S11, if the log D (n-1) is not stored in the nonvolatile memory 16 (NO in step S11), it is determined that the log D has not been acquired, and the process proceeds to step S13. On the other hand, if the log D (n−1) is stored in the nonvolatile memory 16 in step S11 (YES in step S11), it is determined that the log D has been acquired, and the process proceeds to step S12.

ステップS12では、使用者によって校正指示が入力されたか否かを判断する。これは、ログDの取得時刻情報TはRTC15の時刻情報を基準としているため、前回ログD(n−1)が存在する場合にRTC15を校正しその後ログD(n)を取得すると、ログD(n−1)とログD(n)との取得時刻情報Tの基準が異なってしまうことを防ぐためである。この様な場合においては、使用者から入力される校正指示の有無によって、RTC15を校正するか否かを判断し、校正指示が入力された場合には、ログD(n−1)の有無にかかわらず強制的にRTC15を校正するようにしている。この場合、校正指示は、例えばログ処理装置12が備えるマウスやキーボードなどの入力手段を使用者が操作することによって入力される。これにより、使用者は、ログ処理装置12を介してログ記録装置13に校正指示を与えることができる。   In step S12, it is determined whether a calibration instruction has been input by the user. This is because the acquisition time information T of the log D is based on the time information of the RTC 15, so that if the RTC 15 is calibrated and the log D (n) is subsequently acquired when the previous log D (n-1) exists, the log D This is to prevent the reference of the acquisition time information T between (n-1) and the log D (n) from being different. In such a case, it is determined whether or not the RTC 15 is to be calibrated based on the presence / absence of a calibration instruction input from the user. If the calibration instruction is input, the presence / absence of the log D (n−1) is determined. Regardless, the RTC 15 is forcibly calibrated. In this case, the calibration instruction is input by the user operating input means such as a mouse or a keyboard provided in the log processing device 12, for example. Thereby, the user can give a calibration instruction to the log recording device 13 via the log processing device 12.

ステップS12において、校正指示の入力が無い場合(ステップS12でNO)は、ステップS16へ移行し、校正情報FをOFFに設定し、RTC校正処理を終了する。この校正情報Fは、ログDの取得前にRTC15の校正が行われたか否かを示している。この場合、校正情報FがONであれば、RTC15の校正が行われたことを示し、校正情報FがOFFであれば、RTC15の校正が行われなかったことを示している。   If no calibration instruction is input in step S12 (NO in step S12), the process proceeds to step S16, the calibration information F is set to OFF, and the RTC calibration process is terminated. This calibration information F indicates whether or not the RTC 15 has been calibrated before the log D is acquired. In this case, if the calibration information F is ON, it indicates that the RTC 15 has been calibrated, and if the calibration information F is OFF, it indicates that the RTC 15 has not been calibrated.

一方、ステップS12で校正指示が有った場合(ステップS12でYES)は、ステップS13へ移行する。ステップS13では、図6に示すように、不揮発性メモリ16内に、校正用のファイル例えば「RTC CHECK」と名前を付した空のデータファイルAを作成する。そして、このデータファイルAのタイムスタンプPをSC121の基準時刻情報Tbに基づいて設定する。この場合、タイムスタンプPとは、データファイルAが作成または更新された日時を示す情報のことを意味する。例えばデータファイルAの作成時にSC121の基準時刻情報Tbが2012年1月1日9時0分0秒であれば、タイムスタンプPは基準時刻情報Tbに基づいて2012年1月1日9時0分0秒に設定される。   On the other hand, if there is a calibration instruction in step S12 (YES in step S12), the process proceeds to step S13. In step S13, as shown in FIG. 6, a calibration data file, for example, an empty data file A named “RTC CHECK” is created in the nonvolatile memory 16. Then, the time stamp P of the data file A is set based on the reference time information Tb of the SC 121. In this case, the time stamp P means information indicating the date and time when the data file A was created or updated. For example, if the reference time information Tb of the SC 121 is 1 January 2012 09: 00: 0 when the data file A is created, the time stamp P is 1 January 2012 09:00 based on the reference time information Tb. Set to minute 0 seconds.

その後、ステップS14へ移行すると、CPU14は、ステップS13で設定されたタイムスタンプPを読み取り、このタイムスタンプPに基づいてRTC15の時刻を校正する。これにより、図6に示すように、RTC15が計時する相対時刻情報Tcは、基準時刻情報Tbと同じ値となる。
ステップS14でRTC15の校正が行われると、ステップS15において校正情報FをONに設定し、RTC校正処理を終了する。その後、ログ記録装置13は、使用者によってログ処理装置12から取り外される。
Thereafter, when proceeding to step S14, the CPU 14 reads the time stamp P set in step S13, and calibrates the time of the RTC 15 based on the time stamp P. Thereby, as shown in FIG. 6, the relative time information Tc timed by the RTC 15 becomes the same value as the reference time information Tb.
When the RTC 15 is calibrated in step S14, the calibration information F is set to ON in step S15, and the RTC calibration process is terminated. Thereafter, the log recording device 13 is removed from the log processing device 12 by the user.

次に、ログ受け渡し処理について、図7に示すログ受け処理と図8に示すログ渡し処理とに分けて説明する。まず、ログ受け処理において、ログ記録装置13は、ログ取得対象11に接続されると、稼働情報Daのみから構成されるログDを取得する。そして、ログ記録装置13がログ取得対象11から取得したログDを不揮発性メモリ16に記憶させる際に、稼働情報Daのみから構成されるログDに対して取得時刻情報Tを付加するとともに、このログDに対して、校正情報F、停止回数情報M、および連番Nを付加する。この場合、取得時刻情報Tは、稼働情報Daを取得したときにRTC15が計時している時刻情報に基づいて決定される。   Next, the log delivery process will be described separately for the log delivery process shown in FIG. 7 and the log delivery process shown in FIG. First, in the log receiving process, when connected to the log acquisition target 11, the log recording device 13 acquires the log D composed only of the operation information Da. When the log recording device 13 stores the log D acquired from the log acquisition target 11 in the nonvolatile memory 16, the acquisition time information T is added to the log D composed only of the operation information Da, and this Calibration information F, stop count information M, and serial number N are added to the log D. In this case, the acquisition time information T is determined based on the time information that the RTC 15 measures when the operation information Da is acquired.

ここで、停止回数情報Mは、初期状態のログ記録装置13がログ取得対象11に最初に接続されてから現在に至るまでにRTC15が初期化されて再起動した回数を示している。例えば、停止回数情報Mが0であれば、初期状態のログ記録装置13がログ取得対象11に接続された際にRTC15が再起動していないことを表す。つまり、RTC15が駆動している状態でログ記録装置13がログ取得対象11に接続された場合、停止回数情報Mは0となる。ちなみに、ログ記録装置13の初期状態とは、RTC15が駆動しているか否かによらず、不揮発性メモリ16内にログDが記憶されていない状態を意味する。   Here, the stop count information M indicates the number of times that the RTC 15 has been initialized and restarted from when the log recording device 13 in the initial state is first connected to the log acquisition target 11 until now. For example, if the stop count information M is 0, it indicates that the RTC 15 is not restarted when the log recording device 13 in the initial state is connected to the log acquisition target 11. That is, when the log recording device 13 is connected to the log acquisition target 11 while the RTC 15 is driven, the stop count information M is zero. Incidentally, the initial state of the log recording device 13 means a state in which the log D is not stored in the nonvolatile memory 16 regardless of whether or not the RTC 15 is driven.

そして、RTC15が再起動してから停止するまでの同一期間内に取得された複数のログDは、同じ値の停止回数情報Mが付されて、一群のログDを構成する。連番Nは、この一群のログDの中における取得時期の前後を示す。例えば、停止回数情報Mの値が同じであれば、連番Nが大きいほど取得時期が新しいものとなる。   A plurality of logs D acquired within the same period from when the RTC 15 is restarted until it is stopped are added with the stop count information M having the same value to form a group of logs D. The serial number N indicates before and after the acquisition time in the group of logs D. For example, if the value of the stop count information M is the same, the acquisition time becomes new as the serial number N increases.

具体的には、まず、使用者がログ記録装置13をログ取得対象11に接続すると、ログ取得対象11からの給電により、ログ記録装置13のCPU14が駆動するとともに電源17が充電される。すると、CPU14は、ログ取得対象11に接続されたことを認識し、ログ受け処理を開始する。このとき、電源17の電力喪失によりRTC15が停止していれば、RTC15は初期化された状態で再起動つまり2000年1月1日0時0分0秒を基準に計時が開始される。   Specifically, first, when the user connects the log recording device 13 to the log acquisition target 11, the CPU 14 of the log recording device 13 is driven and the power supply 17 is charged by the power supply from the log acquisition target 11. Then, the CPU 14 recognizes that it is connected to the log acquisition target 11 and starts log receiving processing. At this time, if the RTC 15 is stopped due to the power loss of the power supply 17, the RTC 15 is restarted in the initialized state, that is, time measurement is started on the basis of 0:00 on January 1, 2000.

図7に示すログ受け処理を開始すると、CPU14は、まず、ステップS21において、ログ記録装置13が初期状態であるか、つまり不揮発性メモリ16のログD(n−1)が記憶されているか否かを検出する。不揮発性メモリ16にログD(n−1)が記憶されていなければ(ステップS21でNO)、ステップS22へ移行する。ステップS22では、停止回数情報Mを0に設定し、その後ステップS23へ移行する。一方、ステップS21において、ログ記録装置13が初期状態でなければ、すなわち、不揮発性メモリ16にログD(n−1)が記憶されていれば(ステップS21でYES)、ステップS23へ移行する。   When the log receiving process shown in FIG. 7 is started, first, in step S21, the CPU 14 determines whether or not the log recording device 13 is in an initial state, that is, whether or not the log D (n−1) of the nonvolatile memory 16 is stored. To detect. If the log D (n−1) is not stored in the nonvolatile memory 16 (NO in step S21), the process proceeds to step S22. In step S22, the stop count information M is set to 0, and then the process proceeds to step S23. On the other hand, if the log recording device 13 is not in the initial state in step S21, that is, if the log D (n-1) is stored in the nonvolatile memory 16 (YES in step S21), the process proceeds to step S23.

ステップS23では、このログ受け処理が行われる前にRTC15が電源17の電力喪失によって停止したか否か、つまり、ログ記録装置13がログ処理装置12に接続された際に、RTC15が再起動により初期化されたか否かを判断する。この場合、RTC15が初期化されたか否かの判断は、RTC15が2000年1月1日0時0分0秒から再開されたことを以って判断してもよいし、RTC15が持っている電源喪失フラグや電源17の電圧を検出することによって判断してもよい。ステップS23において、RTC15の初期化が無いと判断した場合(ステップS23でNO)は、ステップS24へ移行する。ステップS24では、前回の停止回数情報Mの値を維持するとともに、前回の連番Nに1を加算する。その後、ステップS27へ移行する。   In step S23, whether or not the RTC 15 is stopped due to the power loss of the power supply 17 before the log receiving process is performed, that is, when the log recording device 13 is connected to the log processing device 12, the RTC 15 is restarted. It is determined whether or not it has been initialized. In this case, the determination as to whether or not the RTC 15 has been initialized may be based on the fact that the RTC 15 has been restarted on January 1, 2000 from 0: 0: 0, or the RTC 15 has the determination. The determination may be made by detecting the power loss flag or the voltage of the power source 17. If it is determined in step S23 that the RTC 15 has not been initialized (NO in step S23), the process proceeds to step S24. In step S24, the value of the previous stop count information M is maintained, and 1 is added to the previous serial number N. Thereafter, the process proceeds to step S27.

一方、ステップS23において、RTC15の初期化が有りと判断した場合(ステップS23でYES)は、ステップS25へ移行し、校正情報FをOFFに設定する。これは、その後取得するログDの取得時刻情報Tは、校正されたRTC15の時刻に基づいていないことを表す。その後、ステップS26へ移行し、前回の停止回数情報Mに1を加算するとともに、前回の連番Nの値を維持する。その後、ステップS27へ移行する。   On the other hand, if it is determined in step S23 that the RTC 15 has been initialized (YES in step S23), the process proceeds to step S25, and the calibration information F is set to OFF. This indicates that the acquisition time information T of the log D acquired thereafter is not based on the calibrated RTC 15 time. Thereafter, the process proceeds to step S26, where 1 is added to the previous stop count information M and the previous serial number N is maintained. Thereafter, the process proceeds to step S27.

ステップS27では、ログ取得対象11から、ログD(n)を構成する稼働情報Daを取得する。その後、ステップS28において、稼働情報Daのみで構成されるログD(n)に対し、取得時刻情報T、停止回数情報M、校正情報F、および連番Nを付加し、ログ受け処理を終了する。この場合、取得時刻情報Tは、RTC15の現在時刻に基づいて決定される。その後、ログ記録装置13は、使用者によってログ取得対象11から取り外される。   In step S27, the operation information Da constituting the log D (n) is acquired from the log acquisition target 11. Thereafter, in step S28, the acquisition time information T, the stop count information M, the calibration information F, and the serial number N are added to the log D (n) composed only of the operation information Da, and the log receiving process is terminated. . In this case, the acquisition time information T is determined based on the current time of the RTC 15. Thereafter, the log recording device 13 is removed from the log acquisition target 11 by the user.

ここで、ログ受け処理が終了してログ記録装置13がログ取得対象11から取り外された後、次にログ処理装置12またはログ取得対象11に接続されるまでは、電源17に給電されない。そのため、RTC15は、電源17に蓄積された電荷を消費することによって駆動する。本実施形態の場合、充電可能な電源17は、外部から給電されない状態でRTC15を所定期間、例えば一週間程度駆動することができる容量を有している。
その後、使用者は、さらに次のログD(n+1)を取得するか否かを判断し、次のログD(n+1)を取得する場合は、ログ記録装置13をログ取得対象11に接続する。これにより、CPU14は、再度ログ受け処理を実行する。
Here, after the log receiving process is completed and the log recording device 13 is removed from the log acquisition target 11, power is not supplied to the power supply 17 until the log processing device 12 or the log acquisition target 11 is next connected. Therefore, the RTC 15 is driven by consuming the electric charge accumulated in the power source 17. In the case of the present embodiment, the rechargeable power source 17 has a capacity capable of driving the RTC 15 for a predetermined period, for example, about one week without being supplied with power from the outside.
Thereafter, the user further determines whether or not to acquire the next log D (n + 1), and connects the log recording device 13 to the log acquisition target 11 when acquiring the next log D (n + 1). As a result, the CPU 14 executes the log receiving process again.

次に、使用者がログ記録装置13をログ処理装置12に接続すると、ログ処理装置12からの給電により、ログ記録装置13のCPU14が駆動するとともに電源17が充電され、図8に示すログ渡し処理が開始される。このとき、電源17の電力喪失によりRTC15が停止していれば、RTC15は初期化された状態で再起動つまり2000年1月1日0時0分0秒を基準に計時が開始される。また、CPU14が駆動することにより、ログ記録装置13およびログ処理装置12は互いに接続されたことを認識する。すると、ログ記録装置13の不揮発性メモリ16に記憶されている内容は、図9に示すように、ログ処理装置12が備えるファイル閲覧用のソフトウェアによってログ処理装置12のディスプレイ122に表示される。   Next, when the user connects the log recording device 13 to the log processing device 12, the CPU 14 of the log recording device 13 is driven and the power source 17 is charged by the power supply from the log processing device 12, and the log delivery shown in FIG. Processing begins. At this time, if the RTC 15 is stopped due to the power loss of the power supply 17, the RTC 15 is restarted in the initialized state, that is, time measurement is started on the basis of 0:00 on January 1, 2000. Further, when the CPU 14 is driven, the log recording device 13 and the log processing device 12 recognize that they are connected to each other. Then, the content stored in the non-volatile memory 16 of the log recording device 13 is displayed on the display 122 of the log processing device 12 by the file browsing software provided in the log processing device 12, as shown in FIG.

ログ渡し処理が開始されると、図8に示すように、ステップS31において、CPU14は、電源17の電力喪失によってRTC15が初期化されたか否かを判断する。RTC15が初期化されたか否かの判断は、RTC15が2000年1月1日0時0分0秒から再開されたことを以って判断してもよいし、RTC15が持っている電源喪失フラグや電源17の電圧を検出することによって判断してもよい。ステップS31において、RTC15の初期化が無いと判断した場合(ステップS31でNO)は、ステップS33へ移行する。   When the log passing process is started, as shown in FIG. 8, in step S <b> 31, the CPU 14 determines whether or not the RTC 15 is initialized due to the power loss of the power supply 17. The determination as to whether or not the RTC 15 has been initialized may be made based on the fact that the RTC 15 has been restarted at 0:00:00 on January 1, 2000, or a power loss flag that the RTC 15 has. Alternatively, it may be determined by detecting the voltage of the power source 17. If it is determined in step S31 that the RTC 15 has not been initialized (NO in step S31), the process proceeds to step S33.

一方、ステップS31においてRTC15の初期化が有りと判断した場合(ステップS31でYES)は、ステップS32へ移行し、RTC初期化情報Qを作成する。このRTC初期化情報Qは、ログ記録装置13がログ処理装置12に接続された際にRTC15が初期化されていたことを示すものである。本実施形態では、図10に示すように、RTC初期化情報Qとして、例えば「RTC RESET」と名前を付した空のデータファイルが不揮発性メモリ16内に作成される。ログ処理装置12および使用者は、「RTC RESET」と名前が付された空のデータファイルの存在の有無により、ログDがログ処理装置12に渡される前にRTC15が初期化されたか否かを識別することができる。   On the other hand, if it is determined in step S31 that the RTC 15 has been initialized (YES in step S31), the process proceeds to step S32 to create RTC initialization information Q. The RTC initialization information Q indicates that the RTC 15 has been initialized when the log recording device 13 is connected to the log processing device 12. In the present embodiment, as shown in FIG. 10, an empty data file named “RTC RESET”, for example, is created in the nonvolatile memory 16 as the RTC initialization information Q. The log processor 12 and the user determine whether or not the RTC 15 has been initialized before the log D is passed to the log processor 12 due to the presence or absence of an empty data file named “RTC RESET”. Can be identified.

その後、図8に示すように、ステップS33において、不揮発性メモリ16内に記憶されている全てのログDに対して送信時刻情報Taを付加する。この送信時刻情報Taは、RTC15の現在時刻すなわち相対時刻情報Tcに基づいて決定される。この場合、ログDに対する送信時刻情報Taの付加は、ログDのデータファイルのタイムスタンプPをRTC15の相対時刻情報Tcに設定することで行なわれる。例えば、図9に示すように、RTC15の現在時刻すなわち相対時刻情報Tcが2000年1月1日1時0分0秒であれば、ログD1〜ログD5のタイムスタンプPすなわち送信時刻情報Taを、それぞれ2000年1月1日1時0分0秒に設定する。なお、このタイムスタンプPは、RTC15の計時に伴って逐次更新される。
その後、ステップS34へ移行し、ログDは、取得時刻情報T、送信時刻情報Ta、停止回数情報M、停止回数情報M、および校正情報Fを有した状態で、ログ処理装置12へ送信され、ログ受け渡し処理が終了する。
Thereafter, as shown in FIG. 8, in step S33, transmission time information Ta is added to all the logs D stored in the nonvolatile memory 16. The transmission time information Ta is determined based on the current time of the RTC 15, that is, relative time information Tc. In this case, the transmission time information Ta is added to the log D by setting the time stamp P of the data file of the log D to the relative time information Tc of the RTC 15. For example, as shown in FIG. 9, if the current time of the RTC 15, that is, the relative time information Tc is January 1, 2000, 1:00:00 , Respectively, set to 1:00:00 on January 1, 2000. The time stamp P is sequentially updated as the RTC 15 measures time.
Thereafter, the process proceeds to step S34, and the log D is transmitted to the log processing device 12 in a state having the acquisition time information T, the transmission time information Ta, the stop count information M, the stop count information M, and the calibration information F. The log delivery process ends.

このログ受け渡し処理において、ログ取得対象11から複数回に分けてログDを取得した場合、つまり、図7に示すログ受け処理を複数回繰り返した場合、これら複数のログDは、校正情報F、停止回数情報M、および連番Nによって相互に関連付けられる。これにより、複数のログDは、その属性毎、つまり、RTC15の校正状況や停止回数毎に分類される。   In this log delivery process, when the log D is acquired from the log acquisition target 11 in a plurality of times, that is, when the log delivery process shown in FIG. 7 is repeated a plurality of times, the plurality of logs D are stored in the calibration information F, They are associated with each other by the stop count information M and the serial number N. As a result, the plurality of logs D are classified for each attribute, that is, for each RTC 15 calibration status and number of stops.

具体的には、不揮発性メモリ16にログDを記憶させる際に、ログDのデータファイル名を、例えば「任意の名前_校正情報F_停止回数情報M_連番N」と設定する。本実施形態の場合、例えば図9に示すように、不揮発性メモリ16に複数のログD1〜D5が記憶されており、そのうちログD1のファイル名は、「LOG Data_ON_00_01」に設定されている。このログD1において、校正情報FはON、停止回数情報Mは1、連番Nは1を示している。この場合、校正情報FがONであることから、ログD1を取得する際、RTC15は校正されていたことがわかる。また、停止回数情報Mが0であることから、ログD1は、ログ記録装置13が初期化状態となった後、最初に取得された一群のログDのうちの一つであることがわかる。また、ログD1とログD2とは、停止回数情報Mがともに0である。そのため、ログD1およびログD2は、RTC15が停止するまでの同一期間内に取得されたものであることがわかる。さらに、連番Nが1であることから、ログD1は、停止回数情報Mの値が1である一群のログD、この場合、ログD1およびログD2の中で1番目に記憶されたものであることがわかる。   Specifically, when the log D is stored in the nonvolatile memory 16, the data file name of the log D is set to, for example, “arbitrary name_calibration information F_stop count information M_serial number N”. In the case of this embodiment, for example, as shown in FIG. 9, a plurality of logs D1 to D5 are stored in the nonvolatile memory 16, and the file name of the log D1 is set to “LOG Data_ON_00_01”. In this log D1, the calibration information F is ON, the stop count information M is 1, and the serial number N is 1. In this case, since the calibration information F is ON, it is understood that the RTC 15 has been calibrated when the log D1 is acquired. Further, since the stop count information M is 0, it can be seen that the log D1 is one of the group of logs D acquired first after the log recording device 13 is in the initialized state. The log D1 and the log D2 both have stop count information M of zero. Therefore, it is understood that the log D1 and the log D2 are acquired within the same period until the RTC 15 stops. Furthermore, since the serial number N is 1, the log D1 is a group of logs D having a stop count information M value of 1, in this case, the log D1 stored first in the logs D1 and D2. I know that there is.

同様に、ログD5のファイル名は、「LOG Data_OFF_02_02」に設定されている。ログD5において、校正情報FはOFF、停止回数情報Mは3、連番Nは2を示している。この場合、校正情報FがOFFであることから、ログD5を取得する際、RTC15は校正されていなかったことがわかる。また、停止回数情報Mが3であることから、ログD5は、最初の一群のログD1、D2が記憶されてからログD5が記憶されるまでの間に、RTC15が2回初期化されていることがわかる。そして、連番Nが2であることから、ログD5は、停止回数情報Mの値が2である一群のログD、この場合、ログD4およびログD5の中で2番目に記憶されたものであることがわかる。このようにして、複数のログDが、その属性毎に分類される。   Similarly, the file name of the log D5 is set to “LOG Data_OFF — 02 — 02”. In the log D5, the calibration information F is OFF, the stop count information M is 3, and the serial number N is 2. In this case, since the calibration information F is OFF, it is understood that the RTC 15 has not been calibrated when the log D5 is acquired. Further, since the stop count information M is 3, the log D5 is initialized twice with the RTC 15 between the time when the first group of logs D1 and D2 is stored and the time when the log D5 is stored. I understand that. Since the serial number N is 2, the log D5 is a second group of logs D in which the value of the stop count information M is 2, in this case, the log D4 and the log D5. I know that there is. In this way, the plurality of logs D are classified for each attribute.

ログ記録装置13からログDを受信したログ処理装置12は、図11に示すログ補正処理を行う。このログ補正処理では、ログDが有する送信時刻情報Taと、SC121が示す基準時刻情報Tbとの差によって、ログDが有する取得時刻情報Tを補正する。具体的には、ステップS41において、ログ処理装置12は、ログ記録装置13からログDを受信するのとほぼ同時に、送信時刻情報Taおよび基準時刻情報Tbを取得する。この場合、ログ処理装置12は、ログDのデータファイルのタイムスタンプPを読み取ることで、送信時刻情報Taを取得する。またこの場合、取得した送信時刻情報Taおよび基準時刻情報Tbは、ログ処理装置12が有する記憶装置に、取得したログDと関連付けて記憶させておいてもよい。   The log processing device 12 that has received the log D from the log recording device 13 performs the log correction processing shown in FIG. In this log correction process, the acquisition time information T included in the log D is corrected based on the difference between the transmission time information Ta included in the log D and the reference time information Tb indicated in the SC 121. Specifically, in step S41, the log processing device 12 acquires the transmission time information Ta and the reference time information Tb almost simultaneously with receiving the log D from the log recording device 13. In this case, the log processing device 12 acquires the transmission time information Ta by reading the time stamp P of the data file of the log D. In this case, the acquired transmission time information Ta and reference time information Tb may be stored in association with the acquired log D in a storage device included in the log processing device 12.

その後、ステップS42に移行し、取得した各ログDが有する校正情報FがONであるか否かを判断する。ステップS42において、対象とするログDの校正情報FがONであれば(ステップS42でYES)、対象とするログDが有する取得時刻情報Tは、校正されたRTC15に基づいて決定されていることを表す。この場合、ログ処理装置12は、ログDの取得時刻情報Tの補正の必要は無いと判断し、取得時刻情報Tの補正を行わずにログ補正処理を終了する。   Thereafter, the process proceeds to step S42, and it is determined whether or not the calibration information F included in each acquired log D is ON. In step S42, if the calibration information F of the target log D is ON (YES in step S42), the acquisition time information T included in the target log D is determined based on the calibrated RTC 15. Represents. In this case, the log processing device 12 determines that there is no need to correct the acquisition time information T of the log D, and ends the log correction processing without correcting the acquisition time information T.

一方、ステップS42において、対象とするログDの校正情報FがOFFであれば(ステップS42でNO)、ステップS43へ移行する。このステップS43では、ステップS41で取得した送信時刻情報Taと基準時刻情報Tbとの差が所定以上、例えば5分以上であるか否かを判断する。ステップS43において、送信時刻情報Taと基準時刻情報Tbとの差が5分未満であれば(ステップS43でNO)、ログDの取得時刻情報Tは、実際の時刻、この場合SC121の時刻に対して5分以上の差は無い。この場合、ログ処理装置12は、ログDの取得時刻情報Tの補正は必要ないと判断し、取得時刻情報Tの補正を行わずにログ補正処理を終了する。   On the other hand, if the calibration information F of the target log D is OFF in step S42 (NO in step S42), the process proceeds to step S43. In this step S43, it is determined whether or not the difference between the transmission time information Ta acquired in step S41 and the reference time information Tb is a predetermined value or more, for example, 5 minutes or more. In step S43, if the difference between the transmission time information Ta and the reference time information Tb is less than 5 minutes (NO in step S43), the acquisition time information T of the log D is the actual time, in this case, the time of SC121. There is no difference of more than 5 minutes. In this case, the log processing device 12 determines that correction of the acquisition time information T of the log D is not necessary, and ends the log correction processing without correcting the acquisition time information T.

これに対し、ステップS43において、送信時刻情報Taと基準時刻情報Tbとの差が5分以上であれば(ステップS43でYES)、ログDの取得時刻情報Tは、実際の時刻、この場合SC121の時刻に対して5分以上の差を有することになる。この場合、ログ処理装置12は、ログDの取得時刻情報Tの補正は必要であると判断し、ステップS44へ移行してログDの取得時刻情報Tを補正する。なお、ステップS43における補正の要否の判断となる所定値は、5分以上であるか否かに限られず、任意に設定することができる。   On the other hand, if the difference between the transmission time information Ta and the reference time information Tb is 5 minutes or more in step S43 (YES in step S43), the acquisition time information T of the log D is the actual time, in this case SC121. There will be a difference of 5 minutes or more with respect to the time. In this case, the log processing device 12 determines that correction of the acquisition time information T of the log D is necessary, and proceeds to step S44 to correct the acquisition time information T of the log D. Note that the predetermined value for determining whether or not correction is necessary in step S43 is not limited to whether or not it is 5 minutes or longer, and can be arbitrarily set.

ステップS44では、基準時刻情報Tbから送信時刻情報Taを減算した値を、取得時刻情報Tに加算することにより、取得時刻情報Tを補正している。すなわち、取得時刻情報Tは、下記の(1)式によって補正される。
補正後のT=補正前のT+(Tb−Ta) …(1)
In step S44, the acquisition time information T is corrected by adding a value obtained by subtracting the transmission time information Ta from the reference time information Tb to the acquisition time information T. That is, the acquisition time information T is corrected by the following equation (1).
T after correction = T + (Tb−Ta) before correction (1)

次に、補正前後の取得時刻情報Tの具体的な内容について、図3および図9を参照して説明する。ログDは、図3に示すように、稼働情報Daと取得時刻情報Tとが関連付けられて取得時刻情報Tの時系列順に記録されている。この図3においては、RTC15は、SC121に対して「12年0月0日10時0分0秒」遅れているものとする。また、ログ記録装置13がログDをログ取得対象11から取得開始したときのSC121の時刻は「2012年1月1日10時0分0秒」とする。さらに、ログ記録装置13がログDをログ取得対象11から取得開始した1時間後に、つまりSC121の時刻すなわち基準時刻情報Tbが「2012年1月1日11時0分0秒」のときに、ログ記録装置13がログDをログ処理装置12へ送信したものとする。そして、ログ記録装置13がログDをログ取得対象11から取得開始する際、RTC15は再起動しているものとする。   Next, specific contents of the acquisition time information T before and after correction will be described with reference to FIGS. As shown in FIG. 3, the log D is recorded in order of the acquisition time information T in association with the operation information Da and the acquisition time information T. In FIG. 3, it is assumed that the RTC 15 is behind the SC 121 by “00:00, 00:00, 00:00”. Further, the time of the SC 121 when the log recording device 13 starts to acquire the log D from the log acquisition target 11 is assumed to be “January 1, 2012 10:00:00”. Further, one hour after the log recording device 13 starts to acquire the log D from the log acquisition target 11, that is, when the time of the SC 121, that is, the reference time information Tb is “January 1, 2012 11:00:00” It is assumed that the log recording device 13 has transmitted the log D to the log processing device 12. When the log recording device 13 starts acquiring the log D from the log acquisition target 11, the RTC 15 is restarted.

この場合、補正前のログDを示す図3(a)について第一行目を見ると、RTC15の再起動直後にログ取得対象11からのログDの取得が開始されているため、取得時刻情報Tは「2000年1月1日0時0分0秒」となる。また、図9に示すように、ログ記録装置13は、ログ取得対象11からログDを取得した1時間後に、ログDをログ処理装置12へ送信しているため、RTC15に基づく送信時刻情報Taは「2000年1月1日1時0分0秒」となる。ここで、基準時刻情報Tbから送信時刻情報Taを減算すると、「12年0月0日1時0分0秒」となり、SC121に対するRTC15の遅れが算出される。そして、この算出したRTC15の遅れを、図3(a)に示すRTC15に基づく取得時刻情報Tに対して加算する。これにより、取得時刻情報Tは、図3(b)に示すように、SC121に対するRTC15の遅れを反映させた値、この場合「2012年1月1日10時0分0秒」に補正される。すなわち、補正後の取得時刻情報Tは、実際の時間つまりSC121の時刻に基づくものとなる。   In this case, when looking at the first line in FIG. 3A showing the log D before correction, acquisition of the log D from the log acquisition target 11 is started immediately after the RTC 15 is restarted. T is “2000, January 1, 00:00:00”. Further, as shown in FIG. 9, since the log recording device 13 transmits the log D to the log processing device 12 one hour after acquiring the log D from the log acquisition target 11, the transmission time information Ta based on the RTC 15 is transmitted. Will be "1 January 2000 1:00:00". Here, when the transmission time information Ta is subtracted from the reference time information Tb, it becomes “2012: 00: 00: 00: 00”, and the delay of the RTC 15 with respect to the SC 121 is calculated. Then, the calculated delay of the RTC 15 is added to the acquisition time information T based on the RTC 15 shown in FIG. Thereby, as shown in FIG. 3B, the acquisition time information T is corrected to a value reflecting the delay of the RTC 15 with respect to the SC 121, in this case, “January 1, 2012 10: 00: 0”. . That is, the corrected acquisition time information T is based on the actual time, that is, the time of SC121.

この構成によれば、ログ記録装置13は、ログ取得対象11およびログ処理装置12に対して取り外し可能に構成されている。そのため、ログDを取得する際に、ログ取得対象11とログ処理装置12とを直接接続する必要がない。したがって、ログDを取得するためにわざわざログ取得対象11とログ処理装置12とを接続する煩わしさが低減され、作業を平易なものとすることができ、その結果、作業性の向上が図られる。   According to this configuration, the log recording device 13 is configured to be removable from the log acquisition target 11 and the log processing device 12. Therefore, when the log D is acquired, there is no need to directly connect the log acquisition target 11 and the log processing device 12. Therefore, the troublesomeness of connecting the log acquisition target 11 and the log processing device 12 in order to acquire the log D can be reduced, and the work can be simplified. As a result, the workability can be improved. .

また、ログ記録装置13は、SC121に基づく基準時刻情報Tbと送信時刻情報Taとの差から、SC121とRTC15との誤差を算出し、その結果に基づいて取得時刻情報Tを補正する。これにより、例えばログ取得対象11がSCやRTCなどの計時手段を備えていなくても、現実の時刻、この場合SC121の時刻に基づいてログDを記録することができる。そのため、ログDの取得前に、ログ取得対象11に設けられた時計をその都度校正する必要もない。これにより、ログDを取得する際の作業を平易なものとすることができ、その結果、作業の煩わしさが減り、作業性の向上が図られる。   Further, the log recording device 13 calculates an error between the SC 121 and the RTC 15 from the difference between the reference time information Tb based on the SC 121 and the transmission time information Ta, and corrects the acquisition time information T based on the result. Thereby, for example, even if the log acquisition target 11 does not include a timekeeping means such as SC or RTC, the log D can be recorded based on the actual time, in this case, the time of SC121. Therefore, it is not necessary to calibrate the clock provided in the log acquisition target 11 each time before acquiring the log D. Thereby, the work at the time of acquiring the log D can be simplified, and as a result, the troublesomeness of the work is reduced and the workability is improved.

また、本実施形態によれば、ログ取得対象11からログDを取得する前にログ記録装置13をログ処理装置12に接続することで、ログ記録装置13のRTC15をSC121の時刻に校正することができる。これによれば、RTC15の校正後に取得するログDの取得時刻情報Tを正確なものとすることができる。   Further, according to the present embodiment, the RTC 15 of the log recording device 13 is calibrated to the time of the SC 121 by connecting the log recording device 13 to the log processing device 12 before acquiring the log D from the log acquisition target 11. Can do. According to this, the acquisition time information T of the log D acquired after calibration of the RTC 15 can be made accurate.

また、本実施形態では、ログDを不揮発性メモリ16に記憶させる際に、ログDに対してRTC15が停止した回数を示す停止回数情報Mをファイル名の一部に付加する。そして、各ログDの有する停止回数情報Mが同じ値であれば、これらログDは、それぞれRTC15が起動してから初期化されるまでの同一期間内に取得されたことを表す。ここで、例えば複数のログDを間欠的に取得する際にRTC15の初期化が複数回行われると、RTC15が停止せずに駆動していた期間が複数存在することになる。つまり、RTC15が再起動した回数分だけログDの取得時刻情報Tが基準としたRTC15の時刻が存在することになる。通常このような場合、取得時刻情報TだけではどのRTC15の時刻を基準としたか区別することができないが、本実施形態によれば、ログDの有する停止回数情報Mによって、各ログDがどの期間内に取得されたものであるか、すなわち、どのRTC15の時刻を基準としたかを容易に識別することができる。   In the present embodiment, when the log D is stored in the nonvolatile memory 16, stop count information M indicating the number of times the RTC 15 has stopped for the log D is added to a part of the file name. If the stop count information M included in each log D has the same value, it indicates that these logs D have been acquired within the same period from when the RTC 15 is started to when it is initialized. Here, for example, when the RTC 15 is initialized a plurality of times when a plurality of logs D are acquired intermittently, there are a plurality of periods during which the RTC 15 was driven without stopping. That is, the time of the RTC 15 based on the acquisition time information T of the log D exists as many times as the number of times the RTC 15 is restarted. Normally, in such a case, it is impossible to distinguish which RTC 15 time is based on the acquisition time information T alone. However, according to the present embodiment, which log D is determined by the stop count information M included in the log D. It is possible to easily identify whether the RTC 15 was acquired within the period, that is, which RTC 15 time was used as a reference.

さらに、ログ記録装置13は、ログ受け処理において、ログDを不揮発性メモリ16に記憶する際に、そのログDの取得前にRTC15の校正が行われたか否かを示す校正情報Fを付加する。これによれば、ログDの取得時刻情報Tが信頼性を有しているものであるか否かを容易に判別することができる。   Further, when storing the log D in the non-volatile memory 16 in the log receiving process, the log recording device 13 adds calibration information F indicating whether or not the RTC 15 has been calibrated before obtaining the log D. . According to this, it is possible to easily determine whether or not the acquisition time information T of the log D is reliable.

そして、本実施形態では、RTC15の校正が行われなかった場合、または、RTC15とSC121との差が所定以上である場合に、ログDの取得時刻情報Tの補正が行われる。そのため、RTC15が校正され、またはRTC15とSC121との誤差が小さく、ログDの取得時刻情報Tが信頼性を有している場合には、不要に取得時刻情報Tの補正を行うことがなく、ログ処理装置12やログ記録装置13の負担を無駄に増加させることがない。   In the present embodiment, the correction of the acquisition time information T of the log D is performed when the RTC 15 is not calibrated or when the difference between the RTC 15 and the SC 121 is greater than or equal to a predetermined value. Therefore, when the RTC 15 is calibrated or the error between the RTC 15 and the SC 121 is small and the acquisition time information T of the log D is reliable, the acquisition time information T is not unnecessarily corrected. The burden on the log processing device 12 and the log recording device 13 is not increased unnecessarily.

また、本実施形態では、相対時刻計時手段をRTC15としたので、ログDの取得前にRTC15を校正しておけば、その後ログDの取得時刻情報Tについて補正をする必要がない。その結果、ログDを取得する際の作業をより平易なものとすることができる。   In the present embodiment, since the relative time measuring means is RTC 15, if the RTC 15 is calibrated before the log D is acquired, it is not necessary to correct the acquisition time information T of the log D thereafter. As a result, the work for obtaining the log D can be made simpler.

さらに、ログ記録装置13とログ処理装置12との間において、基準時刻情報Tbおよび送信時刻情報Taの授受は、不揮発性メモリ16内に作成された特定のデータファイル、例えばデータファイルAやログDのデータファイルなどのタイムスタンプPを介して行われる。この場合、ログ記録装置13のCPU14は、基準時刻情報Tbを取得するために、ログ処理装置12のSC121に対して直接通信する必要がない。同様に、ログ処理装置12の制御手段は、送信時刻情報Taを取得するために、ログ記録装置13のRTC15に対して直接通信する必要がない。すなわち、タイムスタンプPの作成、更新、および読み取りは、パーソナルコンピュータが標準的に備える機能であることから、ログ記録装置13とログ処理装置12との間で、送信時刻情報Taおよび基準時刻情報Tbを受け渡すために特別な処理を行う必要がなく、その結果、平易な構成とすることができる。   Further, the transfer of the reference time information Tb and the transmission time information Ta between the log recording device 13 and the log processing device 12 is performed by a specific data file created in the non-volatile memory 16, such as the data file A or the log D. This is performed via the time stamp P of the data file. In this case, the CPU 14 of the log recording device 13 does not need to communicate directly with the SC 121 of the log processing device 12 in order to acquire the reference time information Tb. Similarly, the control means of the log processing device 12 does not need to communicate directly with the RTC 15 of the log recording device 13 in order to acquire the transmission time information Ta. That is, since the creation, update, and reading of the time stamp P are functions that a personal computer has as standard, the transmission time information Ta and the reference time information Tb are transmitted between the log recording device 13 and the log processing device 12. There is no need to perform a special process for delivery, and as a result, a simple configuration can be achieved.

なお、ログDに対する送信時刻情報Taの付加は、ログDのデータファイルのタイムスタンプPを設定するものに限られず、次のような処理で行ってもよい。すなわち、ログ記録装置13がログ処理装置12に接続されると、ログ記録装置13のCPU14は、不揮発性メモリ16内にログDのデータファイルとは異なる空のデータファイル、いわゆるダミーファイルを、送信時刻情報用ファイルとして作成する。そして、CPU14は、そのダミーファイルに対して送信時刻情報Taを付加する。つまり、CPU14は、タイムスタンプPを、RTC15の現在時刻に基づいて決定し、さらにRTC15の計時に伴って逐次更新する。ログ処理装置12は、ログ記録装置13からログDを取得する際に、ダミーファイルのタイムスタンプPも同時に読み取ることで、送信時刻情報Taを取得する。これにより、ダミーファイルのタイムスタンプPを介して、ログDに送信時刻情報Taが付加される。   The addition of the transmission time information Ta to the log D is not limited to setting the time stamp P of the data file of the log D, and may be performed by the following process. That is, when the log recording device 13 is connected to the log processing device 12, the CPU 14 of the log recording device 13 transmits an empty data file different from the data file of the log D, a so-called dummy file, into the nonvolatile memory 16. Create as a time information file. Then, the CPU 14 adds transmission time information Ta to the dummy file. That is, the CPU 14 determines the time stamp P based on the current time of the RTC 15 and further updates the time stamp P sequentially as the RTC 15 measures time. When the log processing apparatus 12 acquires the log D from the log recording apparatus 13, the log processing apparatus 12 also acquires the transmission time information Ta by simultaneously reading the time stamp P of the dummy file. As a result, the transmission time information Ta is added to the log D via the time stamp P of the dummy file.

さらに、送信時刻情報Taおよび基準時刻情報Tbを受け渡すために用いるタイムスタンプPは、上記のように特定のファイルに関するものだけでなく、例えば特定のフォルダ、ディレクトリ、またはログ記録装置13自体のドライブのタイムスタンプとすることもできる。
また、RTC15に給電する電源17は、大容量コンデンサ、スーパーキャパシタなどの電荷を蓄積することのできる電荷蓄積手段で構成されている。これによれば、電源17を、乾電池等で構成した場合に比べて電池交換の手間が省け、その結果、作業性の向上が図られる。
Furthermore, the time stamp P used for delivering the transmission time information Ta and the reference time information Tb is not only related to a specific file as described above, but also a specific folder, directory, or drive of the log recording device 13 itself, for example. It can also be a time stamp.
The power supply 17 that supplies power to the RTC 15 is constituted by charge storage means that can store charges such as a large-capacitance capacitor and a supercapacitor. According to this, compared with the case where the power supply 17 is comprised with a dry cell etc., the effort of battery replacement is saved, As a result, workability | operativity is improved.

なお、上記構成において、ログ補正処理は、ログ処理装置12の制御手段を主体にして行われる。しかしこれに限られず、ログ記録装置13のCPU16を主体にして、ログ補正処理を行うように構成してもよい。この場合、図8のステップS34においてログDがログ処理装置12へ送信される前に、ログ記録装置13のCPU16によって図11に示されるログ補正処理を行うようにすればよい。   In the above configuration, the log correction process is performed mainly by the control unit of the log processing device 12. However, the present invention is not limited to this, and the log correction process may be performed mainly by the CPU 16 of the log recording device 13. In this case, the log correction processing shown in FIG. 11 may be performed by the CPU 16 of the log recording device 13 before the log D is transmitted to the log processing device 12 in step S34 of FIG.

また、相対時刻計時手段は、RTC15に換えて、例えば、任意の基準時からの経過時間を計時するタイマなどで構成することもできる。この場合、ログ記録装置13がログ取得対象11からログDを取得してからログDをログ処理装置12へ送信するまでの経過時間をタイマで計時し、その経過時間を送信時刻情報Taとする。そして、SC121に基づく基準時刻情報Tbから送信時刻情報Taを減算することで、SC121に基づく取得時刻情報Tに補正することができる。   Further, the relative time measuring means can be constituted by, for example, a timer for measuring an elapsed time from an arbitrary reference time instead of the RTC 15. In this case, an elapsed time from when the log recording device 13 acquires the log D from the log acquisition target 11 to when the log D is transmitted to the log processing device 12 is counted by a timer, and the elapsed time is set as transmission time information Ta. . Then, by subtracting the transmission time information Ta from the reference time information Tb based on the SC 121, the acquisition time information T based on the SC 121 can be corrected.

(第二実施形態)
次に、第二実施形態について、図12を参照して説明する。
第一実施形態では、図7のステップS28において、ログDに対して停止回数情報Mを付加するために、ログDのデータのファイル名の一部に停止回数情報Mを設定していた。これに対し、この第二実施形態では、値の異なる停止回数情報M毎に、名前の異なるフォルダを作成し、そのフォルダ内にログDを格納する。具体的には、フォルダ名「任意の名前_校正情報F_停止回数情報M」と設定する。また、ファイル名「任意の名前_校正情報F_停止回数情報M_連番N」と設定する。例えば図12では、停止回数情報M=0、1、2となる三つのフォルダG0、G1、G2が作成されている。このうち、停止回数情報Mが2であるフォルダG2は、そのフォルダ名が「LOG Data_OFF_02」と設定されている。そして、フォルダG2内には、停止回数情報Mが2であるログDのファイルこの場合ログD4およびログD5が格納される。
この構成によれば、停止回数情報M毎にログDが分けられるため、停止回数情報Mの識別がし易くなり、利便性が向上する。なお、この場合、校正情報F毎にフォルダを作成してもよい。
(Second embodiment)
Next, a second embodiment will be described with reference to FIG.
In the first embodiment, the stop count information M is set in a part of the file name of the data of the log D in order to add the stop count information M to the log D in step S28 of FIG. On the other hand, in the second embodiment, a folder having a different name is created for each stop count information M having a different value, and the log D is stored in the folder. Specifically, the folder name “arbitrary name_calibration information F_stop count information M” is set. Also, the file name “arbitrary name_calibration information F_stop count information M_serial number N” is set. For example, in FIG. 12, three folders G0, G1, and G2 with the stop count information M = 0, 1, and 2 are created. Among these, for the folder G2 whose stop count information M is 2, the folder name is set as “LOG Data_OFF — 02”. In the folder G2, files of the log D whose stop count information M is 2, in this case, the log D4 and the log D5 are stored.
According to this configuration, since the log D is divided for each stop count information M, the stop count information M can be easily identified, and convenience is improved. In this case, a folder may be created for each calibration information F.

(第三実施形態)
次に、第三実施形態について、図13を参照して説明する。
この第三実施形態において、ログ記録装置13は、第一実施形態の構成に加えて、太陽電池20およびダイオード21を備えている。太陽電池20は、ダイオード21を介して電源17およびRTC15に接続されている。この太陽電池20は、光を受けて発電し、外部との接続を要さずに電源17を無接点で充電するとともに、RTC15に給電する。この場合、太陽電池20は、無接点の充電手段として機能する。ダイオード21は、電源17から太陽電池20側への給電を防止している。これによれば、ログ記録装置13がログ取得対象11またはログ処理装置12から取り外されて、電源17への給電が断たれた後も、RTC15は太陽電池20からの給電によって駆動することができるため、より長時間RTC15を駆動させることができる。
(Third embodiment)
Next, a third embodiment will be described with reference to FIG.
In the third embodiment, the log recording device 13 includes a solar cell 20 and a diode 21 in addition to the configuration of the first embodiment. The solar cell 20 is connected to the power source 17 and the RTC 15 via the diode 21. The solar cell 20 generates light by receiving light, charges the power supply 17 in a contactless manner without requiring connection to the outside, and supplies power to the RTC 15. In this case, the solar cell 20 functions as a contactless charging unit. The diode 21 prevents power supply from the power source 17 to the solar cell 20 side. According to this, even after the log recording device 13 is removed from the log acquisition target 11 or the log processing device 12 and the power supply to the power supply 17 is cut off, the RTC 15 can be driven by the power supply from the solar cell 20. Therefore, the RTC 15 can be driven for a longer time.

(第四実施形態)
次に、第四実施形態について、図14を参照して説明する。
この第四実施形態において、ログ記録装置13は、第三実施形態における太陽電池20に換えて、非接触給電装置22を備えている。非接触給電装置22は、ダイオード21を介して電源17およびRTC15に接続されている。この非接触給電装置22は、外部の装置から電磁波を受けることによって、外部との接続を要さずに電源17を充電する。ダイオード21は、電源17から太陽電池20側への給電を阻止するとともに、非接触給電装置22から供給される交流電力を直流電力に整流する。この場合、非接触給電装置22は、無接点の充電手段として機能する。これによれば、ログ記録装置13をログ取得対象11またはログ処理装置12に接続することなく、無接点で電源17を充電することができるため、作業性がより向上する。
(Fourth embodiment)
Next, a fourth embodiment will be described with reference to FIG.
In the fourth embodiment, the log recording device 13 includes a non-contact power feeding device 22 instead of the solar cell 20 in the third embodiment. The non-contact power feeding device 22 is connected to the power source 17 and the RTC 15 via the diode 21. The non-contact power feeding device 22 receives electromagnetic waves from an external device to charge the power source 17 without requiring connection with the outside. The diode 21 prevents power supply from the power supply 17 to the solar battery 20 side, and rectifies AC power supplied from the non-contact power supply device 22 into DC power. In this case, the non-contact power supply device 22 functions as a contactless charging unit. According to this, since the power supply 17 can be charged without contact without connecting the log recording device 13 to the log acquisition target 11 or the log processing device 12, workability is further improved.

以上説明した実施形態のログ記録装置、およびログ記録装置を用いたログ記録方法によれば、基準時刻情報と送信時刻情報との差に基づいてログの取得時刻情報を補正するため、ログ取得対象が時計を有さないものであっても、ログの取得時刻情報を正確なものとすることができる。そして、ログを取得する際、ログ取得対象とログ処理装置とを直接接続する必要がないため、平易な作業でログ取得対象から取得したログをログ処理装置へ渡すことができる。   According to the log recording device of the embodiment described above and the log recording method using the log recording device, the log acquisition time information is corrected based on the difference between the reference time information and the transmission time information. Even if it does not have a clock, the log acquisition time information can be made accurate. And when acquiring a log, since it is not necessary to connect a log acquisition object and a log processing apparatus directly, the log acquired from the log acquisition object by a simple operation | work can be passed to a log processing apparatus.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変更は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and equivalents thereof.

図面中、10はログ記録システム、11はログ取得対象、12はログ処理装置、121はシステムクロック(SC、基準時刻計時手段)、13はログ記録装置、14は中央処理装置(CPU、制御手段)、15はリアルタイムクロック(RTC、相対時刻計時手段)、16は不揮発性メモリ(記憶手段)、17は電源(電荷蓄積手段)、20は太陽電池(充電手段)、22は非接触給電装置(充電手段)、Dはログ、Fは校正情報、Mは停止回数情報、Pはタイムスタンプ、Tは取得時刻情報、Taは送信時刻情報、Tbは基準時刻情報、Tcは相対時刻情報を示す。   In the drawings, 10 is a log recording system, 11 is a log acquisition target, 12 is a log processing device, 121 is a system clock (SC, reference time measuring means), 13 is a log recording device, and 14 is a central processing unit (CPU, control means). ), 15 is a real time clock (RTC, relative time measuring means), 16 is a non-volatile memory (storage means), 17 is a power source (charge storage means), 20 is a solar cell (charging means), and 22 is a non-contact power feeding device ( Charging means), D is a log, F is calibration information, M is stop count information, P is a time stamp, T is acquisition time information, Ta is transmission time information, Tb is reference time information, and Tc is relative time information.

Claims (13)

ログ取得対象およびログ処理装置に着脱可能に構成され、前記ログ取得対象から取得したログを前記ログ処理装置へ渡すためのログ記録装置であって、
前記ログが記憶される記憶手段と、
前記ログ取得対象または前記ログ処理装置に接続されて充電される電源と、
前記電源から給電されて相対時刻を計時する相対時刻計時手段と、
前記ログ取得対象または前記ログ処理装置から給電されて駆動し、前記ログ取得対象から前記ログを取得する際に、前記ログに前記相対時刻計時手段の時刻に基づく取得時刻情報を付加し、前記ログを前記ログ処理装置へ渡す際に、前記ログに前記相対時刻計時手段の時刻に基づく送信時刻情報を付加する制御手段と、
を備えるログ記録装置。
A log recording device configured to be attachable to and detachable from a log acquisition target and a log processing device, and for passing a log acquired from the log acquisition target to the log processing device,
Storage means for storing the log;
A power source connected to the log acquisition target or the log processing device and charged;
A relative time measuring means for measuring the relative time supplied by the power source;
When the log acquisition target or the log processing device is powered and driven to acquire the log from the log acquisition target, acquisition time information based on the time of the relative time measuring means is added to the log, and the log Control means for adding transmission time information based on the time of the relative timekeeping means to the log when passing to the log processing device,
A log recording device comprising:
前記制御手段は、前記ログ取得対象から前記ログを取得する際に、前記ログに、前記電源の電力喪失によって前記相対時刻計時手段が停止した回数を示す停止回数情報を付加する請求項1記載のログ記録装置。   The said control means adds the stop frequency information which shows the frequency | count that the said relative time measuring means stopped to the said log at the time of acquiring the said log from the said log acquisition object by the power loss of the said power supply. Logging device. 前記制御手段は、前記ログ記録装置が前記ログ取得対象から前記ログを取得する前に前記ログ処理装置に接続された場合に、前記ログ処理装置が有する基準時刻計時手段の時刻に基づいて前記相対時刻計時手段の時刻を校正する請求項1または2記載のログ記録装置。   The control means, when the log recording device is connected to the log processing device before acquiring the log from the log acquisition target, the relative time based on the time of the reference time counting means possessed by the log processing device The log recording apparatus according to claim 1 or 2, wherein the time of the time measuring means is calibrated. 前記相対時刻計時手段は、リアルタイムクロックである請求項1から3いずれか一項記載のログ記録装置。   4. The log recording apparatus according to claim 1, wherein the relative time measuring means is a real time clock. 前記制御手段は、前記ログのタイムスタンプを前記相対時刻計時手段の時刻に基づいて設定することによって、前記ログに対して前記送信時刻情報を付加する請求項1から4いずれか一項記載のログ記録装置。   The log according to any one of claims 1 to 4, wherein the control unit adds the transmission time information to the log by setting a time stamp of the log based on a time of the relative time measuring unit. Recording device. 前記制御手段は、前記送信時刻情報が付加される送信時刻情報用ファイルを作成し、前記送信時刻情報用ファイルのタイムスタンプを前記相対時刻計時手段の時刻に基づいて設定することによって、前記ログに対して前記送信時刻情報を付加する請求項1から4いずれか一項記載のログ記録装置。   The control unit creates a transmission time information file to which the transmission time information is added, and sets the time stamp of the transmission time information file based on the time of the relative time measuring unit, thereby adding to the log. 5. The log recording apparatus according to claim 1, wherein the transmission time information is added to the log recording apparatus. 前記電源は、電荷を蓄積する電荷蓄積手段である請求項1から6いずれか一項記載のログ記録装置。   The log recording apparatus according to claim 1, wherein the power source is a charge storage unit that stores a charge. 前記電源を無接点で充電する充電手段をさらに備えている請求項1から7いずれか一項記載のログ記録装置。   The log recording apparatus according to claim 1, further comprising a charging unit that charges the power source in a contactless manner. ログ取得対象およびログ処理装置に着脱可能に構成され、前記ログ取得対象から取得したログを前記ログ処理装置へ渡すためのログ記録装置におけるログ記録方法であって、
前記ログ処理装置は、基準時刻を計時する基準時刻計時手段を備え、
前記ログ記録装置は、前記ログを記憶する記憶手段と、前記ログ取得対象または前記ログ処理装置に接続されて充電される電源と、前記電源から給電されて相対時刻を計時する相対時刻計時手段と、を備え、
前記ログ記録装置が前記ログ取得対象から取得した前記ログを前記記憶手段に記憶させる際に、前記ログに前記相対時刻計時手段の時刻に基づく取得時刻情報を付加し、
前記ログ記録装置が前記ログ処理装置に接続された状態で、前記基準時刻計時手段の時刻に基づく基準時刻情報および前記相対時刻計時手段の時刻に基づく送信時刻情報を同時期に取得し、
前記基準時刻情報と前記送信時刻情報との差に基づいて前記取得時刻情報を補正するログ記録装置のログ記録方法。
A log recording method in a log recording device configured to be detachable from a log acquisition target and a log processing device, and for passing a log acquired from the log acquisition target to the log processing device,
The log processing device includes a reference time measuring means for measuring a reference time,
The log recording device includes a storage unit that stores the log, a power source that is connected to the log acquisition target or the log processing device and is charged, and a relative time counting unit that receives power from the power source and counts a relative time. With
When the log recording device stores the log acquired from the log acquisition target in the storage unit, the acquisition time information based on the time of the relative time measuring unit is added to the log,
With the log recording device connected to the log processing device, the reference time information based on the time of the reference time clock means and the transmission time information based on the time of the relative time clock means are acquired at the same time,
A log recording method for a log recording apparatus, wherein the acquisition time information is corrected based on a difference between the reference time information and the transmission time information.
前記基準時刻情報と前記送信時刻情報との差が所定以上である場合に、前記取得時刻情報を補正する請求項9記載のログ記録装置のログ記録方法。   The log recording method of the log recording apparatus according to claim 9, wherein the acquisition time information is corrected when a difference between the reference time information and the transmission time information is a predetermined value or more. 前記ログ取得対象から前記ログを取得する際に、前記ログに、前記電源の電力喪失によって前記相対時刻計時手段が停止した回数を示す停止回数情報を付加する請求項9または10記載のログ記録装置のログ記録方法。   The log recording device according to claim 9 or 10, wherein when the log is acquired from the log acquisition target, stop count information indicating the number of times the relative time measuring means has stopped due to power loss of the power source is added to the log. Logging method. 前記ログ記録装置が前記ログ取得対象から前記ログを取得する前であって前記ログ処理装置に接続された場合に、前記基準時刻計時手段の時刻に基づいて前記相対時刻計時手段の時刻を校正する請求項9から11いずれか一項記載のログ記録装置のログ記録方法。   When the log recording device is connected to the log processing device before acquiring the log from the log acquisition target, the time of the relative time measuring means is calibrated based on the time of the reference time measuring means. The log recording method of the log recording device according to claim 9. 前記相対時刻計時手段の校正がされずに前記ログ記録装置が前記ログ取得対象から前記ログを取得した場合に、前記ログの前記取得時刻情報を補正する請求項12記載のログ記録装置のログ記録方法。   13. The log recording of the log recording device according to claim 12, wherein the log recording device corrects the acquisition time information of the log when the log recording device acquires the log from the log acquisition target without calibration of the relative time measuring means. Method.
JP2012031589A 2012-02-16 2012-02-16 Log recording apparatus and log recording method of log recording apparatus Active JP5797579B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012031589A JP5797579B2 (en) 2012-02-16 2012-02-16 Log recording apparatus and log recording method of log recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012031589A JP5797579B2 (en) 2012-02-16 2012-02-16 Log recording apparatus and log recording method of log recording apparatus

Publications (2)

Publication Number Publication Date
JP2013168058A JP2013168058A (en) 2013-08-29
JP5797579B2 true JP5797579B2 (en) 2015-10-21

Family

ID=49178405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012031589A Active JP5797579B2 (en) 2012-02-16 2012-02-16 Log recording apparatus and log recording method of log recording apparatus

Country Status (1)

Country Link
JP (1) JP5797579B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5552191B1 (en) * 2013-12-16 2014-07-16 エンベデッドソリューション株式会社 Electronic device management system and dongle device with phone jack
CN113176973B (en) * 2021-05-14 2023-04-25 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium

Also Published As

Publication number Publication date
JP2013168058A (en) 2013-08-29

Similar Documents

Publication Publication Date Title
CN101770557B (en) Method for calculating service time of software in system
EP3376364A1 (en) Charge calculation apparatus, method, and system
CN104749947A (en) Electronic Device And Date And Time Information Obtaining Method
EP3096284A1 (en) Remote server
JP5797579B2 (en) Log recording apparatus and log recording method of log recording apparatus
CN105334383A (en) Electric quantity data storage method for electric energy meter
JP2008154323A (en) Charger and method for detecting charged state
CN109470918B (en) Electric quantity data processing method of IR46 electric energy meter and IR46 electric energy meter
CN103647877A (en) Method of increasing electric quantity display precision at the time of starting up of mobile terminal and the mobile terminal
US20190019136A1 (en) Tank delivery planning device for lp gas and tank delivery planning method for lp gas
JP5568850B2 (en) Recording device
CN114236461B (en) Electric quantity calibration method, electronic equipment and storage medium
JP2009020784A (en) Transportation service support system, server device, and data processing method of server device
US20100223510A1 (en) Nonvolatile memory device, nonvolatile memory system, and defect management method for nonvolatile memory device
CN114093489B (en) Method for confirming blood glucose detection time of non-intelligent blood glucose meter and related equipment
CN102538824A (en) Method suitable for MEMS IMU repeated multiple calibrating
JP2007298411A (en) Weighing device
WO2014103201A1 (en) Vital signs measuring device, vital signs measuring system using same vital signs measuring device, and method using same vital signs measuring device
CN111042932B (en) Method and device for obtaining downtime and electronic control unit
JP2011179856A5 (en)
CN218567868U (en) Garbage truck management device based on Internet of things
KR101087646B1 (en) Electronic watt hour meter to facilitate data restore and method for data restore using the same
JP6137659B2 (en) Weighing device and weighing data recording method
JP7359256B2 (en) Electronic equipment, judgment system, judgment method and program
JP5666273B2 (en) Data storage device and data storage method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150713

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150819

R150 Certificate of patent or registration of utility model

Ref document number: 5797579

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250