JP7134030B2 - Communication system and slave device - Google Patents

Communication system and slave device Download PDF

Info

Publication number
JP7134030B2
JP7134030B2 JP2018165894A JP2018165894A JP7134030B2 JP 7134030 B2 JP7134030 B2 JP 7134030B2 JP 2018165894 A JP2018165894 A JP 2018165894A JP 2018165894 A JP2018165894 A JP 2018165894A JP 7134030 B2 JP7134030 B2 JP 7134030B2
Authority
JP
Japan
Prior art keywords
time
unit
information
log
occurrence
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
JP2018165894A
Other languages
Japanese (ja)
Other versions
JP2020038539A (en
Inventor
雄三 藤田
啓介 釣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP2018165894A priority Critical patent/JP7134030B2/en
Publication of JP2020038539A publication Critical patent/JP2020038539A/en
Application granted granted Critical
Publication of JP7134030B2 publication Critical patent/JP7134030B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Description

この発明は、スレーブ装置に関する動作変化を示すログを記録する通信システム及びスレーブ装置に関する。 The present invention relates to a communication system and a slave device that record a log indicating changes in behavior of the slave device.

計測機器等の電子機器では、従来から一般的に、自機の動作状態を把握可能とするため、エラーログを不揮発性メモリ等に記録している。エラーログには、エラーの内容及び当該エラーの発生時刻を示す情報が含まれる。また、電子機器が有する内部時計は、電源とは別にバッテリ(二次電池)を有している(例えば特許文献1参照)。これにより、電子機器は、電源供給が停止して復帰した場合でも、時刻情報を確保でき、自機の動作状態を把握可能となる。一方で、内部時計がバッテリを有していない場合、電源供給が停止して復帰した場合には、時刻情報が確保できずにリセットされてしまう。 2. Description of the Related Art Conventionally, electronic devices such as measuring devices generally record an error log in a non-volatile memory or the like so as to be able to grasp the operating state of the device itself. The error log contains information indicating the content of the error and the time at which the error occurred. Further, an internal clock included in an electronic device has a battery (secondary battery) in addition to a power source (see, for example, Patent Document 1). As a result, even when the power supply is stopped and then restored, the electronic device can secure the time information and can grasp the operating state of the device itself. On the other hand, if the internal clock does not have a battery, when the power supply is stopped and then restored, the time information cannot be secured and the internal clock is reset.

特開平7-219673号公報JP-A-7-219673

このように従来の電子機器は、バッテリを有し、電源供給が停止して復帰した場合でも、時刻情報を確保可能としている。しかしながら、電子機器がバッテリを有する場合、バッテリ交換のための複雑なケース構造が必要となるため製品コストが増大し、また、バッテリ交換によるメンテナンスコストが増大する。また、バッテリとして用いられることが多いリチウム電池は、近年輸送等の取扱いが複雑化している。これらの理由から、バッテリを用いない構成が望まれている。 As described above, the conventional electronic device has a battery, and can secure time information even when the power supply is stopped and then restored. However, when an electronic device has a battery, a complicated case structure is required for battery replacement, which increases the product cost and also increases the maintenance cost due to the battery replacement. Lithium batteries, which are often used as batteries, have recently become complicated to handle in transportation and the like. For these reasons, a configuration that does not use a battery is desired.

この発明は、上記のような課題を解決するためになされたもので、バッテリを搭載せずに、スレーブ装置の動作状態を把握可能とする通信システムを提供することを目的としている。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a communication system capable of grasping the operating state of a slave device without installing a battery.

この発明に係る通信システムは、マスタ装置及びスレーブ装置を備え、マスタ装置は、通信情報に時刻情報を付加してスレーブ装置に随時送信する送信部を備え、スレーブ装置は、不揮発性メモリと、送信部により送信された通信情報及び時刻情報を受信する受信部と、自機に関する動作変化を検出する動作変化検出部と、動作変化検出部により動作変化が検出された場合に、当該動作変化の内容及び受信部により受信された時刻情報に基づく当該動作変化の発生時刻を示すログを、不揮発性メモリに記録するログ記録部と、受信部による時刻情報の受信が停止してからの経過時間又は経過時刻を計時する計時部とを備え、ログ記録部は、受信部による時刻情報の受信が停止している間、受信部により受信された時刻情報に基づく動作変化の発生時刻に代えて、計時部により計時された経過時間又は経過時刻に基づく動作変化の発生時間又は発生時刻を用いることを特徴とする。 A communication system according to the present invention includes a master device and a slave device. The master device includes a transmission unit that adds time information to communication information and transmits it to the slave device as needed. a receiving unit for receiving communication information and time information transmitted by a unit; a motion change detecting unit for detecting a change in motion relating to the device itself; and a log recording unit that records in a non-volatile memory a log indicating the time at which the change in behavior occurred based on the time information received by the receiving unit; a timer for keeping time, wherein the log recording unit records the time when the reception of the time information by the receiver is stopped, instead of the time at which the operation change occurs based on the time information received by the receiver. It is characterized by using the occurrence time or occurrence time of the action change based on the elapsed time or elapsed time measured by .

この発明によれば、上記のように構成したので、バッテリを搭載せず、スレーブ装置の動作状態を把握可能となる。 According to the present invention, since it is configured as described above, it is possible to grasp the operating state of the slave device without installing a battery.

この発明の実施の形態1に係る通信システムの構成例を示す図である。BRIEF DESCRIPTION OF THE DRAWINGS It is a figure which shows the structural example of the communication system which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るマスタ装置の構成例を示す図である。1 is a diagram showing a configuration example of a master device according to Embodiment 1 of the present invention; FIG. この発明の実施の形態1に係るスレーブ装置の構成例を示す図である。It is a figure which shows the structural example of the slave apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1における不揮発性メモリに記録される情報の一例を示す図である。It is a figure which shows an example of the information recorded on the non-volatile memory in Embodiment 1 of this invention.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1はこの発明の実施の形態1に係る通信システムの構成例を示す図である。
通信システムは、図1に示すように、マスタ装置1及び1つ以上のスレーブ装置2を備えている。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a communication system according to Embodiment 1 of the present invention.
The communication system comprises a master device 1 and one or more slave devices 2, as shown in FIG.

マスタ装置1は、図2に示すように、通信情報生成部11、送信部12及び受信部13を備えている。なお、マスタ装置1は、システムLSI(Large Scale Integration)等の処理回路、又はメモリ等に記憶されたプログラムを実行するCPU(Central Processing Unit)等により実現される。 The master device 1 includes a communication information generator 11, a transmitter 12 and a receiver 13, as shown in FIG. The master device 1 is implemented by a processing circuit such as a system LSI (Large Scale Integration) or a CPU (Central Processing Unit) that executes programs stored in a memory or the like.

通信情報生成部11は、通信情報を生成する。通信情報は、例えば、スレーブ装置2に対して温度情報の送信を要求する情報である。
送信部12は、通信情報生成部11により生成された通信情報に時刻情報を付加してスレーブ装置2に随時(例えば数秒毎に)送信する。
受信部13は、送信部24により送信された応答情報を受信する。
The communication information generator 11 generates communication information. The communication information is, for example, information requesting the slave device 2 to transmit temperature information.
The transmission unit 12 adds time information to the communication information generated by the communication information generation unit 11 and transmits the communication information to the slave device 2 at any time (for example, every few seconds).
The receiving section 13 receives the response information transmitted by the transmitting section 24 .

スレーブ装置2は、図3に示すように、不揮発性メモリ21、受信部22、応答情報生成部23、送信部24、計時部25、定期記録部26、動作変化検出部27及びログ記録部28を備えている。なお、スレーブ装置2は、システムLSI等の処理回路、又はメモリ等に記憶されたプログラムを実行するCPU等により実現される。 As shown in FIG. 3, the slave device 2 includes a non-volatile memory 21, a receiver 22, a response information generator 23, a transmitter 24, a timer 25, a regular recorder 26, an operation change detector 27, and a log recorder 28. It has The slave device 2 is implemented by a processing circuit such as a system LSI, or a CPU or the like that executes a program stored in a memory or the like.

不揮発性メモリ21は、定期記録部26及びログ記録部28による制御に従い、各種情報を記録する。
受信部22は、送信部12により送信された通信情報及び時刻情報を受信する。
The nonvolatile memory 21 records various information under the control of the regular recording unit 26 and the log recording unit 28 .
The receiving unit 22 receives the communication information and time information transmitted by the transmitting unit 12 .

応答情報生成部23は、受信部22により受信された通信情報に対する応答情報を生成する。応答情報は、例えば、通信情報が温度情報の送信を要求する情報である場合には、温度情報である。
送信部24は、応答情報生成部23により生成された応答情報をマスタ装置1に送信する。
The response information generator 23 generates response information for the communication information received by the receiver 22 . The response information is, for example, temperature information when the communication information is information requesting transmission of temperature information.
The transmitter 24 transmits the response information generated by the response information generator 23 to the master device 1 .

計時部25は、受信部22による時刻情報の受信が停止してからの経過時間又は経過時刻を計時する。なお、スレーブ装置2への電源供給が停止して復帰した場合には、計時部25により計時されている経過時間又は経過時刻はリセットされて初期値に戻る。この計時部25としては、例えば、バッテリを有していないRTC(リアルタイムクロック)を用いることができる。RTCは、経過時間をカウントして時刻の形式に変換する機能を有する。また、計時部25として、例えば、クロックにより動作するカウンタを用いてもよい。カウンタは、経過時間をカウントする機能を有する。 The clock unit 25 clocks the elapsed time or the elapsed time after the receiving unit 22 stops receiving the time information. When the power supply to the slave device 2 is stopped and restored, the elapsed time or elapsed time clocked by the timer 25 is reset and returns to the initial value. As the timer 25, for example, an RTC (real time clock) that does not have a battery can be used. The RTC has a function of counting elapsed time and converting it into time format. Further, as the timer 25, for example, a counter operated by a clock may be used. The counter has the function of counting elapsed time.

定期記録部26は、定期的(例えば1秒毎)に、計時部25により計時された経過時間又は経過時刻を示す情報を、不揮発性メモリ21の特定のアドレスに記録する。
なお図1では、定期記録部26がスレーブ装置2に設けられている場合を示している。しかしながら、この定期記録部26は、スレーブ装置2に必須の構成ではなく、スレーブ装置2に設けられていなくてもよい。
The regular recording unit 26 periodically (for example, every second) records the elapsed time or information indicating the elapsed time measured by the clock unit 25 at a specific address of the nonvolatile memory 21 .
Note that FIG. 1 shows a case where the regular recording unit 26 is provided in the slave device 2 . However, the periodic recording unit 26 is not an essential component of the slave device 2 and may not be provided in the slave device 2 .

動作変化検出部27は、スレーブ装置2に関する動作変化を検出する。以下では、動作変化検出部27は、スレーブ装置2に関する動作変化として、スレーブ装置2のエラー及びスレーブ装置2への電源供給の開始を検出する。また、動作変化検出部27は、スレーブ装置2に関する動作変化として、スレーブ装置2への電源供給における電圧異常(電圧低下)を検出するPF(パワーフェール)機能を有していてもよい。スレーブ装置2は、PF機能により電圧異常が検出された場合、電源が落ちるまでの数msの間に不揮発性メモリ21に必要情報をバックアップする。 The motion change detector 27 detects a motion change regarding the slave device 2 . Below, the operation change detection unit 27 detects an error in the slave device 2 and the start of power supply to the slave device 2 as an operation change related to the slave device 2 . Further, the operation change detection unit 27 may have a PF (power fail) function that detects a voltage abnormality (voltage drop) in power supply to the slave device 2 as an operation change regarding the slave device 2 . When a voltage abnormality is detected by the PF function, the slave device 2 backs up necessary information in the nonvolatile memory 21 for several milliseconds until the power is turned off.

ログ記録部28は、動作変化検出部27により動作変化が検出された場合に、当該動作変化を示すログを不揮発性メモリ21に記録する。このログには、動作変化の内容及び動作変化の発生時間又は発生時刻を示す情報が含まれる。また、ログ記録部28は、受信部22により時刻情報が受信されている場合には、動作変化の発生時刻を当該時刻情報から得る。一方、ログ記録部28は、受信部22による時刻情報の受信が停止している場合には、動作変化の発生時間又は発生時刻を、計時部25により計時されている経過時間又は経過時刻から得る。また、ログ記録部28は、ログを、動作変化の発生順に不揮発性メモリ21に記録する。 The log recording unit 28 records, in the non-volatile memory 21 , a log indicating the change in behavior when the change in behavior is detected by the change detection unit 27 . This log includes information indicating the content of the behavior change and the occurrence time or occurrence time of the behavior change. Further, when the time information is received by the receiving unit 22, the log recording unit 28 obtains the time when the motion change occurred from the time information. On the other hand, when the receiving unit 22 has stopped receiving the time information, the log recording unit 28 obtains the occurrence time of the behavior change from the elapsed time measured by the clock unit 25. . Further, the log recording unit 28 records the log in the non-volatile memory 21 in order of occurrence of changes in operation.

また、動作変化検出部27がPF機能を有している場合、ログ記録部28は、ログとして、スレーブ装置2への電源供給における電圧低下及び当該電圧低下の発生時間又は発生時刻を示す情報を含むログを、不揮発性メモリ21に記録可能である。 Further, when the behavior change detection unit 27 has the PF function, the log recording unit 28 stores information indicating the voltage drop in the power supply to the slave device 2 and the occurrence time or occurrence time of the voltage drop as a log. A log containing the data can be recorded in the non-volatile memory 21 .

また、ログ記録部28は、受信部22による時刻情報の受信が停止し且つスレーブ装置2に対する電源供給が停止していない間に不揮発性メモリ21に記録されたログに対し、当該ログが示す発生時間又は発生時刻を、当該受信部22による時刻情報の受信が停止する直前の時刻情報に基づく発生時刻に算出し直してもよい。
また、ログ記録部28は、スレーブ装置2に対する電源供給が復帰してから受信部22による時刻情報の受信が再開するまでの間に不揮発性メモリ21に記録されたログに対し、当該ログが示す発生時間又は発生時刻を、受信部22による時刻情報の受信が再開した際に不揮発性メモリ21の特定のアドレスに記録されている経過時間又は経過時刻を示す情報及び当該受信部22による時刻情報の受信が再開した際の時刻情報に基づく発生時刻に算出し直してもよい。
In addition, the log recording unit 28 records the occurrence indicated by the log recorded in the nonvolatile memory 21 while the receiving unit 22 has stopped receiving the time information and the power supply to the slave device 2 has not stopped. The time or the occurrence time may be recalculated to the occurrence time based on the time information immediately before the receiving unit 22 stops receiving the time information.
In addition, the log recording unit 28 records the log recorded in the nonvolatile memory 21 after the power supply to the slave device 2 is restored until the receiving unit 22 resumes receiving the time information. Information indicating the elapsed time or elapsed time recorded at a specific address of the nonvolatile memory 21 when the reception of the time information by the receiving unit 22 is resumed and the time information by the receiving unit 22 It may be recalculated to the occurrence time based on the time information when reception resumes.

次に、図3に示すスレーブ装置2の動作例について、図4を参照しながら説明する。なお、マスタ装置1は、通信情報に時刻情報を付加してスレーブ装置2に随時送信している。また、計時部25は、バッテリを有していないRTCであるとする。 Next, an operation example of the slave device 2 shown in FIG. 3 will be described with reference to FIG. Note that the master device 1 adds time information to the communication information and transmits it to the slave device 2 at any time. It is also assumed that the clock unit 25 is an RTC that does not have a battery.

受信部22は、送信部12により送信された通信情報及び時刻情報を受信している(通信状態)。また、動作変化検出部27は、スレーブ装置2に関する動作変化の検出を行う。そして、動作変化検出部27により動作変化が検出されると、ログ記録部28は、当該動作変化を示すログを不揮発性メモリ21に記録する。なお、ログ記録部28は、動作変化の発生時刻を、受信部22により受信された時刻情報から得る。 The receiving unit 22 receives the communication information and the time information transmitted by the transmitting unit 12 (communication state). Also, the behavior change detection unit 27 detects a behavior change regarding the slave device 2 . Then, when the behavior change detection unit 27 detects a behavior change, the log recording unit 28 records a log indicating the behavior change in the nonvolatile memory 21 . Note that the log recording unit 28 obtains the time at which the behavior change occurred from the time information received by the receiving unit 22 .

図4では、アドレス「1002」~「1004」に、スレーブ装置2のエラーを示すログが記録されている。また、図4では、アドレス「1005」に、マスタ装置1とスレーブ装置2との間での通信エラーを示すログが記録されている。 In FIG. 4, logs indicating errors of the slave device 2 are recorded at addresses "1002" to "1004". Also, in FIG. 4, a log indicating a communication error between the master device 1 and the slave device 2 is recorded at the address "1005".

そして、この通信エラーにより、受信部22による時刻情報の受信が停止すると(通信断状態)、計時部25は経過時刻の計時を開始する。また、定期記録部26は、定期的(例えば1秒毎)に、計時部25により計時された経過時刻を示す情報を、不揮発性メモリ21の特定のアドレス(図4ではアドレス「1001」)に記録する。すなわち、アドレス「1001」に記録される経過時刻を示す情報は、定期的に更新される。図4では、計時部25により計時される経過時刻の初期値は、「2001/01/01 00:00:00」である。 When the receiving unit 22 stops receiving the time information due to this communication error (communication interruption state), the clock unit 25 starts counting the elapsed time. In addition, the regular recording unit 26 periodically (for example, every second) stores information indicating the elapsed time measured by the timer unit 25 at a specific address (address "1001" in FIG. 4) of the nonvolatile memory 21. Record. That is, the information indicating the elapsed time recorded at the address "1001" is updated periodically. In FIG. 4, the initial value of the elapsed time clocked by the timer 25 is "2001/01/01 00:00:00".

また、動作変化検出部27は、スレーブ装置2に関する動作変化の検出を継続する。そして、動作変化検出部27により動作変化が検出されると、ログ記録部28は、当該動作変化のログを不揮発性メモリ21に記録する。なお、ログ記録部28は、動作変化の発生時刻を、計時部25により計時された経過時刻から得る。 In addition, the behavior change detection unit 27 continues detection of behavior changes regarding the slave device 2 . Then, when a behavior change is detected by the behavior change detection unit 27 , the log recording unit 28 records a log of the behavior change in the nonvolatile memory 21 . Note that the log recording unit 28 obtains the time at which the behavior change occurred from the elapsed time measured by the clock unit 25 .

図4では、アドレス「1006」に、スレーブ装置2のエラーを示すログが記録されている。このログが示す発生時刻は、受信部22による時刻情報の受信が停止してからの経過時刻となっている。 In FIG. 4, a log indicating an error of slave device 2 is recorded at address "1006". The time of occurrence indicated by this log is the elapsed time after the receiving unit 22 stopped receiving the time information.

また、ログ記録部28は、受信部22による時刻情報の受信が停止し且つスレーブ装置2に対する電源供給が停止していない間に不揮発性メモリ21に記録されたログに対し、当該ログが示す発生時刻を、当該受信部22による時刻情報の受信が停止する直前の時刻情報に基づいて算出し直してもよい。
アドレス「1006」に記録されているログが示すエラーの発生時刻は、「2001/01/01 00:20:30」である。すなわち、このログが示すエラーは、1つ前の通信エラーが発生してから20分30秒後に発生している。そこで、ログ記録部28は、アドレス「1005」に記録されているログが示す通信エラーの発生時刻「2019/03/02 02:15:04」に「00:20:30」を加算することで、アドレス「1006」に記録されているログが示すエラーの発生時刻として「2019/03/02 02:35:34」を得ることができる。
In addition, the log recording unit 28 records the occurrence indicated by the log recorded in the nonvolatile memory 21 while the receiving unit 22 has stopped receiving the time information and the power supply to the slave device 2 has not stopped. The time may be recalculated based on the time information immediately before the receiving unit 22 stops receiving the time information.
The error occurrence time indicated by the log recorded at address "1006" is "2001/01/01 00:20:30". That is, the error indicated by this log occurred 20 minutes and 30 seconds after the previous communication error occurred. Therefore, the log recording unit 28 adds "00:20:30" to the communication error occurrence time "2019/03/02 02:15:04" indicated by the log recorded at the address "1005". , "2019/03/02 02:35:34" can be obtained as the time of occurrence of the error indicated by the log recorded at the address "1006".

また、図4では、アドレス「1007」に、マスタ装置1とスレーブ装置2との間での通信復活を示すログが記録されている。 Further, in FIG. 4, a log indicating that the communication between the master device 1 and the slave device 2 has been restored is recorded at the address "1007".

そして、この通信復活により、受信部22による時刻情報の受信が再開すると(通信状態)、計時部25は経過時刻の計時を停止する。
また、動作変化検出部27は、スレーブ装置2に関する動作変化の検出を継続する。そして、動作変化検出部27により動作変化が検出されると、ログ記録部28は、当該動作変化のログを不揮発性メモリ21に記録する。なお、ログ記録部28は、動作変化の発生時刻を、受信部22により受信された時刻情報から得る。
Then, when the reception of the time information by the receiver 22 resumes due to the resumption of communication (communication state), the timer 25 stops counting the elapsed time.
In addition, the behavior change detection unit 27 continues detection of behavior changes regarding the slave device 2 . Then, when a behavior change is detected by the behavior change detection unit 27 , the log recording unit 28 records a log of the behavior change in the nonvolatile memory 21 . Note that the log recording unit 28 obtains the time at which the behavior change occurred from the time information received by the receiving unit 22 .

図4では、アドレス「1008」に、スレーブ装置2のエラーを示すログが記録されている。また、図4では、アドレス「1009」に、マスタ装置1とスレーブ装置2との間での通信エラーを示すログが記録されている。 In FIG. 4, a log indicating an error of the slave device 2 is recorded at address "1008". Also, in FIG. 4, a log indicating a communication error between the master device 1 and the slave device 2 is recorded at the address "1009".

そして、この通信エラーにより、受信部22による時刻情報の受信が停止すると(通信断状態)、計時部25は経過時刻の計時を開始する。また、定期記録部26は、定期的(例えば1秒毎)に、計時部25により計時された経過時刻を示す情報を、不揮発性メモリ21の特定のアドレス(図4ではアドレス「1001」)に記録する。 When the receiving unit 22 stops receiving the time information due to this communication error (communication interruption state), the clock unit 25 starts counting the elapsed time. In addition, the regular recording unit 26 periodically (for example, every second) stores information indicating the elapsed time measured by the timer unit 25 at a specific address (address "1001" in FIG. 4) of the nonvolatile memory 21. Record.

また、動作変化検出部27は、スレーブ装置2に関する動作変化の検出を継続する。そして、動作変化検出部27により動作変化が検出されると、ログ記録部28は、当該動作変化のログを不揮発性メモリ21に記録する。なお、ログ記録部28は、動作変化の発生時刻を、計時部25により計時された経過時刻から得る。 In addition, the behavior change detection unit 27 continues detection of behavior changes regarding the slave device 2 . Then, when a behavior change is detected by the behavior change detection unit 27 , the log recording unit 28 records a log of the behavior change in the nonvolatile memory 21 . Note that the log recording unit 28 obtains the time at which the behavior change occurred from the elapsed time measured by the clock unit 25 .

図4では、アドレス「1010」に、電源低下(スレーブ装置2への電源供給における電圧低下)を示すログが記録されている。このログが示す発生時刻は、受信部22による時刻情報の受信が停止してからの経過時刻となっている。 In FIG. 4, a log indicating a power drop (voltage drop in the power supply to the slave device 2) is recorded at address "1010". The time of occurrence indicated by this log is the elapsed time after the receiving unit 22 stopped receiving the time information.

また、ログ記録部28は、受信部22による時刻情報の受信が停止し且つスレーブ装置2に対する電源供給が停止していない間に不揮発性メモリ21に記録されたログに対し、当該ログが示す発生時刻を、当該受信部22による時刻情報の受信が停止する直前の時刻情報に基づいて算出し直してもよい。
アドレス「1010」に記録されているログが示す電源低下の発生時刻は、「2001/01/01 01:23:00」である。すなわち、このログが示す電源低下は、1つ前の通信エラーが発生してから1時間23分後に発生している。そこで、ログ記録部28は、アドレス「1009」に記録されているログが示す通信エラーの発生時刻「2019/03/03 02:15:04」に「01:23:00」を加算することで、アドレス「1010」に記録されているログが示す電源低下の発生時刻として「2019/03/03 03:38:04」を得ることができる。
In addition, the log recording unit 28 records the occurrence indicated by the log recorded in the nonvolatile memory 21 while the receiving unit 22 has stopped receiving the time information and the power supply to the slave device 2 has not stopped. The time may be recalculated based on the time information immediately before the receiving unit 22 stops receiving the time information.
The power failure occurrence time indicated by the log recorded at address "1010" is "2001/01/01 01:23:00". That is, the power drop indicated by this log occurred 1 hour and 23 minutes after the previous communication error occurred. Therefore, the log recording unit 28 adds "01:23:00" to the communication error occurrence time "2019/03/03 02:15:04" indicated by the log recorded at the address "1009". , “2019/03/03 03:38:04” can be obtained as the power failure occurrence time indicated by the log recorded at the address “1010”.

また、図4では、アドレス「1011」に、電源オンを示すログが記録されている。すなわち、このアドレス「1011」に記録されているログが示す電源オンの発生時刻と、1つ前のアドレス「1010」に記録されているログが示す電源低下の発生時刻との間の期間に、電源オフ(スレーブ装置2への電源供給の停止)が発生していることがわかる。
なお、スレーブ装置2への電源供給が停止して復帰した場合には計時部25により計時されている経過時刻がリセットされて初期値に戻る。そのため、アドレス「1011」に記録されているログが示す電源オンの発生時刻は、上記初期値となっている。
In FIG. 4, a log indicating power-on is recorded at address "1011". That is, during the period between the power-on occurrence time indicated by the log recorded at this address "1011" and the power-down occurrence time indicated by the log recorded at the previous address "1010", It can be seen that power off (stop of power supply to the slave device 2) has occurred.
When the power supply to the slave device 2 is stopped and then restored, the elapsed time clocked by the timer 25 is reset and returns to the initial value. Therefore, the power-on occurrence time indicated by the log recorded at address "1011" is the initial value.

また、図4では、アドレス「1012」に、スレーブ装置2のエラーを示すログが記録されている。また、図4では、アドレス「1013」に、マスタ装置1とスレーブ装置2との間での通信復活を示すログが記録されている。 Also, in FIG. 4, a log indicating an error of the slave device 2 is recorded at address "1012". Further, in FIG. 4, a log indicating that the communication between the master device 1 and the slave device 2 has been restored is recorded at the address "1013".

そして、この通信復活により、受信部22による時刻情報の受信が再開すると(通信状態)、計時部25は経過時刻の計時を停止する。 Then, when the reception of the time information by the receiver 22 resumes due to the resumption of communication (communication state), the timer 25 stops counting the elapsed time.

また、ログ記録部28は、スレーブ装置2に対する電源供給が復帰してから受信部22による時刻情報の受信が再開するまでの間に不揮発性メモリ21に記録されたログに対し、当該ログが示す発生時刻を、受信部22による時刻情報の受信が再開した際に不揮発性メモリ21の特定のアドレスに記録されている経過時刻を示す情報及び当該受信部22による時刻情報の受信が再開した際の時刻情報に基づいて算出し直してもよい。 In addition, the log recording unit 28 records the log recorded in the nonvolatile memory 21 after the power supply to the slave device 2 is restored until the receiving unit 22 resumes receiving the time information. The occurrence time is information indicating the elapsed time recorded at a specific address of the nonvolatile memory 21 when the reception of the time information by the reception unit 22 is resumed, and the time when the reception of the time information by the reception unit 22 is resumed. It may be recalculated based on the time information.

この際、ログ記録部28は、まず、受信部22による時刻情報の受信が再開した際に、アドレス「1013」に記録したログが示す発生時刻「2019/03/04 2:15:00」に対応する、アドレス「1001」に記録した情報が示す経過時刻「2001/01/01 01:15:00」を読込む。
そして、ログ記録部28は、上記経過時刻「2001/01/01 01:15:00」からアドレス「1012」に記録されたログが示す発生時刻「2001/01/01 00:15:00」を差し引くことで、差分値「01:00:00」を得る。そして、アドレス「1013」に記録したログが示す発生時刻「2019/03/04 2:15:00」から「01:00:00」を差し引く。これにより、アドレス「1012」に記録されたログが示す発生時刻として、「2019/03/04 01:15:00」を得ることができる。
同様に、ログ記録部28は、上記経過時刻「2001/01/01 01:15:00」からアドレス「1011」に記録されたログが示す発生時刻「2001/01/01 00:00:00」を差し引くことで、差分値「01:15:00」を得る。そして、アドレス「1013」に記録したログが示す発生時刻「2019/03/04 2:15:00」から「01:15:00」を差し引く。これにより、アドレス「1011」に記録されたログが示す発生時刻として、「2019/03/04 01:00:00」を得ることができる。
At this time, when the reception of the time information by the receiving unit 22 is resumed, the log recording unit 28 first records at the time of occurrence “2019/03/04 2:15:00” indicated by the log recorded at the address “1013”. The corresponding elapsed time "2001/01/01 01:15:00" indicated by the information recorded in the address "1001" is read.
Then, the log recording unit 28 records the occurrence time "2001/01/01 00:15:00" indicated by the log recorded at the address "1012" from the elapsed time "2001/01/01 01:15:00". By subtracting, the difference value "01:00:00" is obtained. Then, "01:00:00" is subtracted from the occurrence time "2019/03/04 2:15:00" indicated by the log recorded at the address "1013". As a result, it is possible to obtain "2019/03/04 01:15:00" as the occurrence time indicated by the log recorded at the address "1012".
Similarly, the log recording unit 28 records the occurrence time "2001/01/01 00:00:00" indicated by the log recorded at the address "1011" from the elapsed time "2001/01/01 01:15:00". is subtracted to obtain the difference value "01:15:00". Then, "01:15:00" is subtracted from the occurrence time "2019/03/04 2:15:00" indicated by the log recorded at the address "1013". As a result, it is possible to obtain "2019/03/04 01:00:00" as the occurrence time indicated by the log recorded at the address "1011".

ここで、従来の電子機器においてバッテリを搭載しない場合、電子機器への電源供給が停止して復帰した場合には、時刻情報が確保できない。また、従来の電子機器では、エラーログのみを不揮発性メモリ等に記録している。よって、この場合には、電子機器の動作状態を把握できない。
これに対し、実施の形態1に係るスレーブ装置2は、バッテリを搭載しない点は同じであるが、マスタ装置1から通知される時刻情報を受信する。これにより、実施の形態1に係るスレーブ装置2は、バッテリを搭載せずとも、電源供給が停止して復帰した後、最新の時刻情報を確保できる。よって、スレーブ装置2の現場導入後からの経過時刻及び発生したエラーの内容を把握可能となり、自機の動作状態を把握可能となる。その結果、実施の形態1に係るスレーブ装置2は、自機の動作状態の解析を、低コスト及び低メンテナンスコストで実現可能となる。
Here, if a battery is not installed in a conventional electronic device, or if the power supply to the electronic device is stopped and restored, the time information cannot be secured. Further, in conventional electronic devices, only error logs are recorded in a non-volatile memory or the like. Therefore, in this case, the operating state of the electronic device cannot be grasped.
On the other hand, the slave device 2 according to the first embodiment receives time information notified from the master device 1, although it does not have a battery. As a result, the slave device 2 according to the first embodiment can secure the latest time information after the power supply is stopped and restored without mounting a battery. Therefore, it is possible to grasp the elapsed time since the introduction of the slave device 2 to the site and the content of the error that occurred, and it is possible to grasp the operating state of the device itself. As a result, the slave device 2 according to the first embodiment can analyze its operating state at low cost and low maintenance cost.

また、実施の形態1に係るスレーブ装置2は、マスタ装置1との間での通信が途絶えた場合でも、時刻情報を確保するため、自身が保持している計時部25により計時された経過時間又は経過時刻を管理する。これにより、スレーブ装置2は、マスタ装置1との間での通信が途絶える直前のマスタ装置1からの時刻情報又は通信が復活した際のマスタ装置1からの時刻情報によって、通信が途絶えた期間でのログが示す発生時刻を設定し直すことができる。 Further, even when communication with the master device 1 is interrupted, the slave device 2 according to the first embodiment maintains the elapsed time measured by the timer unit 25 in order to secure the time information. Or manage the elapsed time. As a result, the slave device 2 receives the time information from the master device 1 immediately before communication with the master device 1 is interrupted or the time information from the master device 1 when communication is restored. You can reset the time of occurrence indicated by the log.

また上記では、動作変化検出部27がスレーブ装置2に関する動作変化としてスレーブ装置2のエラーを検出する場合について示した。しかしながら、これに限らず、動作変化検出部27がスレーブ装置2に関する動作変化としてスレーブ装置2に対する設定又は操作を検出してもよく、同様の効果が得られる。 In the above, the case where the motion change detection unit 27 detects an error in the slave device 2 as a motion change related to the slave device 2 has been described. However, without being limited to this, the motion change detection unit 27 may detect a setting or operation on the slave device 2 as a motion change regarding the slave device 2, and similar effects can be obtained.

以上のように、この実施の形態1によれば、通信システムは、マスタ装置1及びスレーブ装置2を備え、マスタ装置1は、通信情報に時刻情報を付加してスレーブ装置2に随時送信する送信部12を備え、スレーブ装置2は、不揮発性メモリ21と、送信部12により送信された通信情報及び時刻情報を受信する受信部22と、自機に関する動作変化を検出する動作変化検出部27と、動作変化検出部27により動作変化が検出された場合に、当該動作変化の内容及び受信部22により受信された時刻情報に基づく当該動作変化の発生時刻を示すログを、不揮発性メモリ21に記録するログ記録部28とを備えた。これにより、実施の形態1に係る通信システムは、バッテリを搭載せず、スレーブ装置2の動作状態を把握可能となる。 As described above, according to the first embodiment, the communication system includes the master device 1 and the slave device 2, and the master device 1 adds time information to communication information and transmits it to the slave device 2 at any time. The slave device 2 includes a non-volatile memory 21, a receiving unit 22 for receiving communication information and time information transmitted by the transmitting unit 12, and an operation change detection unit 27 for detecting a change in operation of the slave device 2. , when a behavior change is detected by the behavior change detection unit 27, a log indicating the content of the behavior change and the time at which the behavior change occurred based on the time information received by the reception unit 22 is recorded in the nonvolatile memory 21. and a log recording unit 28 for recording. As a result, the communication system according to the first embodiment can grasp the operating state of the slave device 2 without mounting a battery.

なお、本願発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。 It should be noted that, within the scope of the present invention, any component of the embodiment can be modified or any component of the embodiment can be omitted.

1 マスタ装置
2 スレーブ装置
11 通信情報生成部
12 送信部
13 受信部
21 不揮発性メモリ
22 受信部
23 応答情報生成部
24 送信部
25 計時部
26 定期記録部
27 動作変化検出部
28 ログ記録部
1 Master device 2 Slave device 11 Communication information generation unit 12 Transmission unit 13 Reception unit 21 Non-volatile memory 22 Reception unit 23 Response information generation unit 24 Transmission unit 25 Clock unit 26 Regular recording unit 27 Operation change detection unit 28 Log recording unit

Claims (6)

マスタ装置及びスレーブ装置を備え、
前記マスタ装置は、
通信情報に時刻情報を付加して前記スレーブ装置に随時送信する送信部を備え、
前記スレーブ装置は、
不揮発性メモリと、
前記送信部により送信された通信情報及び時刻情報を受信する受信部と、
自機に関する動作変化を検出する動作変化検出部と、
前記動作変化検出部により動作変化が検出された場合に、当該動作変化の内容及び前記受信部により受信された時刻情報に基づく当該動作変化の発生時刻を示すログを、前記不揮発性メモリに記録するログ記録部と、
前記受信部による時刻情報の受信が停止してからの経過時間又は経過時刻を計時する計時部を備え、
前記ログ記録部は、前記受信部による時刻情報の受信が停止している間、前記受信部により受信された時刻情報に基づく動作変化の発生時刻に代えて、前記計時部により計時された経過時間又は経過時刻に基づく動作変化の発生時間又は発生時刻を用いる
ことを特徴とする通信システム。
comprising a master device and a slave device,
The master device
A transmission unit that adds time information to communication information and transmits it to the slave device at any time,
The slave device
non-volatile memory;
a receiving unit that receives the communication information and time information transmitted by the transmitting unit;
a motion change detection unit that detects a motion change related to the self-machine;
When a behavior change is detected by the behavior change detection unit, a log indicating the content of the behavior change and the time of occurrence of the behavior change based on the time information received by the reception unit is recorded in the nonvolatile memory. a log recorder;
A timer that measures the elapsed time or the elapsed time after the reception of the time information by the reception unit is stopped,
The log recording unit stores the elapsed time measured by the time measuring unit instead of the time at which the change in behavior occurs based on the time information received by the receiving unit while the reception of the time information by the receiving unit is stopped. or a communication system characterized by using an occurrence time or an occurrence time of an action change based on an elapsed time.
前記ログ記録部は、前記受信部による時刻情報の受信が停止し且つ前記スレーブ装置に対する電源供給が停止していない間に前記不揮発性メモリに記録されたログに対し、当該ログが示す発生時間又は発生時刻を、当該受信部による時刻情報の受信が停止する直前の時刻情報に基づく発生時刻に算出し直す
ことを特徴とする請求項記載の通信システム。
The log recording unit records the time of occurrence indicated by the log or 2. The communication system according to claim 1 , wherein the occurrence time is recalculated to the occurrence time based on the time information immediately before the reception of the time information by the receiving unit is stopped.
定期的に、前記計時部により計時された経過時間又は経過時刻を示す情報を、前記不揮発性メモリの特定のアドレスに記録する定期記録部を備え、
前記ログ記録部は、前記スレーブ装置に対する電源供給が復帰してから前記受信部による時刻情報の受信が再開するまでの間に前記不揮発性メモリに記録されたログに対し、当該ログが示す発生時間又は発生時刻を、前記受信部による時刻情報の受信が再開した際に前記不揮発性メモリの特定のアドレスに記録されている経過時間又は経過時刻を示す情報及び当該受信部による時刻情報の受信が再開した際の時刻情報に基づく発生時刻に算出し直す
ことを特徴とする請求項又は請求項記載の通信システム。
A regular recording unit that periodically records the elapsed time or information indicating the elapsed time measured by the time measuring unit at a specific address of the nonvolatile memory,
The log recording unit records the occurrence time indicated by the log recorded in the nonvolatile memory after the power supply to the slave device is restored and before the receiving unit resumes receiving the time information. or information indicating the elapsed time or elapsed time recorded at a specific address of the non-volatile memory when the reception of the time information by the reception unit is resumed and the reception of the time information by the reception unit is resumed. 3. The communication system according to claim 1 , wherein the calculation is recalculated to the time of occurrence based on the time information at the time of occurrence.
前記計時部は、バッテリを有していないリアルタイムクロックである
ことを特徴とする請求項から請求項のうちの何れか1項記載の通信システム。
The communication system according to any one of claims 1 to 3 , wherein the timer is a real-time clock that does not have a battery.
前記計時部は、クロックにより動作するカウンタである
ことを特徴とする請求項から請求項のうちの何れか1項記載の通信システム。
The communication system according to any one of claims 1 to 3 , wherein the timer is a counter operated by a clock.
不揮発性メモリと、
通信情報に時刻情報を付加してスレーブ装置に随時送信する送信部を備えたマスタ装置における前記送信部により送信された通信情報及び時刻情報を受信する受信部と、
自機に関する動作変化を検出する動作変化検出部と、
前記動作変化検出部により動作変化が検出された場合に、当該動作変化の内容及び前記受信部により受信された時刻情報に基づく当該動作変化の発生時刻を示すログを、前記不揮発性メモリに記録するログ記録部と
前記受信部による時刻情報の受信が停止してからの経過時間又は経過時刻を計時する計時部を備え、
前記ログ記録部は、前記受信部による時刻情報の受信が停止している間、前記受信部により受信された時刻情報に基づく動作変化の発生時刻に代えて、前記計時部により計時された経過時間又は経過時刻に基づく動作変化の発生時間又は発生時刻を用いる
ことを特徴とするスレーブ装置。
non-volatile memory;
a receiving unit for receiving communication information and time information transmitted by the transmitting unit in a master device having a transmitting unit that adds time information to communication information and transmits it to a slave device as needed;
a motion change detection unit that detects a motion change related to the self-machine;
When a behavior change is detected by the behavior change detection unit, a log indicating the content of the behavior change and the time of occurrence of the behavior change based on the time information received by the reception unit is recorded in the nonvolatile memory. A log recording unit and a clock unit that measures the elapsed time or the elapsed time after the reception of time information by the receiving unit is stopped,
The log recording unit stores the elapsed time measured by the time measuring unit instead of the time at which the change in behavior occurs based on the time information received by the receiving unit while the reception of the time information by the receiving unit is stopped. Or use the occurrence time or occurrence time of the behavior change based on the elapsed time
A slave device characterized by:
JP2018165894A 2018-09-05 2018-09-05 Communication system and slave device Active JP7134030B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018165894A JP7134030B2 (en) 2018-09-05 2018-09-05 Communication system and slave device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018165894A JP7134030B2 (en) 2018-09-05 2018-09-05 Communication system and slave device

Publications (2)

Publication Number Publication Date
JP2020038539A JP2020038539A (en) 2020-03-12
JP7134030B2 true JP7134030B2 (en) 2022-09-09

Family

ID=69738552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018165894A Active JP7134030B2 (en) 2018-09-05 2018-09-05 Communication system and slave device

Country Status (1)

Country Link
JP (1) JP7134030B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155367A (en) 2004-11-30 2006-06-15 Canon Inc Image forming apparatus, data processing method, image forming method, and program
JP2007078351A (en) 2005-09-09 2007-03-29 Oki Electric Ind Co Ltd Information processing apparatus and method therefor, and computer program
JP2008170205A (en) 2007-01-10 2008-07-24 Yamatake Corp History recording device
JP2012171361A (en) 2011-02-17 2012-09-10 Denso Corp Onboard system, master ecu and diagnostic tool
JP2017032525A (en) 2015-08-06 2017-02-09 アズビル株式会社 Converter of electromagnetic flow meter and history recording method
JP2017151936A (en) 2016-02-26 2017-08-31 オムロン株式会社 Master device, slave device, information processing device, event log collection system, master device control method, slave device control method, and control program
JP2018124241A (en) 2017-02-03 2018-08-09 富士通株式会社 Information processing device, method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155367A (en) 2004-11-30 2006-06-15 Canon Inc Image forming apparatus, data processing method, image forming method, and program
JP2007078351A (en) 2005-09-09 2007-03-29 Oki Electric Ind Co Ltd Information processing apparatus and method therefor, and computer program
JP2008170205A (en) 2007-01-10 2008-07-24 Yamatake Corp History recording device
JP2012171361A (en) 2011-02-17 2012-09-10 Denso Corp Onboard system, master ecu and diagnostic tool
JP2017032525A (en) 2015-08-06 2017-02-09 アズビル株式会社 Converter of electromagnetic flow meter and history recording method
JP2017151936A (en) 2016-02-26 2017-08-31 オムロン株式会社 Master device, slave device, information processing device, event log collection system, master device control method, slave device control method, and control program
JP2018124241A (en) 2017-02-03 2018-08-09 富士通株式会社 Information processing device, method, and program

Also Published As

Publication number Publication date
JP2020038539A (en) 2020-03-12

Similar Documents

Publication Publication Date Title
US9251689B2 (en) Status monitoring, storage and reporting for optical transceivers by tracking operating parameter variations
US8547564B2 (en) Image processing apparatus connectable to a plurality of host devices and having a receiver
US20080229125A1 (en) Power managing method of a scheduling system and related scheduling system
RU2483471C2 (en) Transmitter with relative time timer
CN103718122A (en) Field apparatus
JP2008210234A (en) Information processor, time correction processing method, and time correction processing program, and program recording medium
JP7134030B2 (en) Communication system and slave device
JP2010071737A (en) Recording device
JP7117948B2 (en) Electronics
CN104349001A (en) Information processing apparatus, method for controlling the same, and program
JP2012128552A (en) Information processing apparatus and time synchronizing method of information processing apparatus
JP2005337990A (en) Wireless system, wireless device, and computer program
US8555045B2 (en) Electronic meter for concurrently updating firmware and collecting meter usage with a micro controller calculates the usage when a reset time is longer than a predetermined period of storing time
JP2015014904A (en) Information processing system
JP4662842B2 (en) Time correction system
JP2010003132A (en) Information processor, and fault detection method of input/output device thereof, and program thereof
KR102512489B1 (en) System and method for updating firmware of remote meter terminal
JP7251081B2 (en) Information processing device and program
JP2005351634A (en) Wireless system, wireless device, and computer program
JP2008304335A (en) Measurement control system and measuring quantity receiver
JP2010123216A (en) Magnetic disk device
JP2008217105A (en) Program runaway prevention device of microcomputer, and electronic equipment
JP2010225104A (en) Electronic device
JP2000270114A (en) Automatic meter reading terminal transmitter
JP2022161488A (en) Building management system and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210728

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220524

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220701

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20220701

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220830

R150 Certificate of patent or registration of utility model

Ref document number: 7134030

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150