JP2022080557A - Information collection system, collection device, and control method - Google Patents

Information collection system, collection device, and control method Download PDF

Info

Publication number
JP2022080557A
JP2022080557A JP2020191692A JP2020191692A JP2022080557A JP 2022080557 A JP2022080557 A JP 2022080557A JP 2020191692 A JP2020191692 A JP 2020191692A JP 2020191692 A JP2020191692 A JP 2020191692A JP 2022080557 A JP2022080557 A JP 2022080557A
Authority
JP
Japan
Prior art keywords
time
sensor
acquired
measurement information
measurement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020191692A
Other languages
Japanese (ja)
Inventor
俊光 幣之内
Toshimitsu Shidenouchi
剛弘 上野
Takehiro Ueno
清行 西腋
Kiyoyuki Nishiwaki
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.)
Shimadzu Corp
Original Assignee
Shimadzu 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 Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP2020191692A priority Critical patent/JP2022080557A/en
Publication of JP2022080557A publication Critical patent/JP2022080557A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

To provide an information collection system capable of correcting time at which a sensor device has acquired a measurement value while reducing the total amount of data to be received by a collection device.SOLUTION: A sensor device 421 transmits, to a repeating device 400, measurement information including a measurement period, first measurement time, and second to tenth measurement time. The measurement information includes RTC time that is acquired from an RTC 436 when the measurement information is transmitted by the sensor device 421. The repeating device 400 transmits the measurement information and NTP time to a collection device 200. The collection device 200 corrects the first measurement time on the basis of a difference between the NTP time and the RTC time received from the repeating device 400. On the basis of the corrected RTC time and the measurement period received from the repeating device 400, the collection device 200 calculates time at which each of a plurality of measurement values have been acquired by sensors 411, 412.SELECTED DRAWING: Figure 4

Description

本開示は、情報収集システム、収集装置および制御方法に関する。 The present disclosure relates to information collection systems, collection devices and control methods.

IoT(Internet of Things)を活用して、さまざまな装置が収集したセンサの計測値をサーバやクラウド上に展開する技術が開発されている。取得したセンサの計測値を遠隔地からサーバが収集することで、装置の各種状態を監視することができる。たとえば、特開2009-171497号公報(特許文献1)には、複数のセンサノードからの観測値がセンサネットサーバにおいて受信されるセンサネットシステムが開示されている。 Techniques have been developed that utilize IoT (Internet of Things) to deploy sensor measurements collected by various devices on servers and the cloud. By collecting the acquired sensor measurements from a remote location, the server can monitor various states of the device. For example, Japanese Patent Application Laid-Open No. 2009-171497 (Patent Document 1) discloses a sensor net system in which observation values from a plurality of sensor nodes are received by a sensor net server.

特開2009-171497号公報Japanese Unexamined Patent Publication No. 2009-171497

しかしながら、センサが接続されるセンサ装置において、センサの計測値を取得する計測周期が非常に短い(たとえば、数ミリ秒~数百ミリ秒間隔)ことがある。この場合、計測周期ごとに、計測値に加えて計測値を取得した時刻を付加したデータを生成すると、サーバのような収集装置に対して送信するデータの総量が多くなってしまう。データの総量が多くなると、通信負荷が増え、通信に課されるパケット通信費が増加するといった問題が発生する。このため、収集装置に対して送信される(収集装置が受信する)データの総量をいかに軽減するかが課題となる。 However, in the sensor device to which the sensor is connected, the measurement cycle for acquiring the measured value of the sensor may be very short (for example, at intervals of several milliseconds to several hundred milliseconds). In this case, if data is generated by adding the time when the measured value is acquired in addition to the measured value for each measurement cycle, the total amount of data transmitted to the collecting device such as a server becomes large. When the total amount of data increases, the communication load increases and the packet communication cost charged for communication increases. Therefore, how to reduce the total amount of data transmitted to the collecting device (received by the collecting device) becomes an issue.

また、センサ装置は、RTC(real-time clock)のような時刻を計時する計時部を備える。計時部には機差(個体差)があり、長時間の使用によって徐々に実際の時刻とのずれが生じる可能性がある。時刻のずれが生じ、センサ装置が計時した時刻が不正確な値を示すと、計測時刻と実際の時刻との間の整合性が取れなくなる。これにより、センサ装置の状態が変化した時刻や異常が発生した時刻を、収集装置側で正確に把握できなくなってしまう。このため、時刻補正用のレジスタ等により計測時刻を正確な時刻に補正する、あるいは、正確な時刻を取得する必要がある。しかしながら、センサ装置に時刻の補正機能を搭載した場合、センサ装置に搭載する部品が増え、部品を制御するプログラムも必要となることから、開発コストが増え、センサ装置の保守性が低下してしまう。また、センサ装置のハードウェアに制約(たとえば、CPUやROMの容量、制御線の数など)があり、時刻の補正機能を追加できないケースもある。このため、センサ装置に時刻の補正機能を搭載することなく(ハードウェアの追加や制御プログラムの追加を行うことなく)、いかにしてセンサ装置が計測値を取得した時刻を正確な時刻に補正するかが課題となる。 Further, the sensor device includes a time measuring unit such as an RTC (real-time clock) that measures the time. There is a machine difference (individual difference) in the timekeeping part, and there is a possibility that the time may gradually deviate from the actual time due to long-term use. If the time shift occurs and the time measured by the sensor device shows an inaccurate value, the measured time and the actual time become inconsistent. As a result, the time when the state of the sensor device changes or the time when the abnormality occurs cannot be accurately grasped on the collecting device side. Therefore, it is necessary to correct the measured time to an accurate time by using a time correction register or the like, or to acquire an accurate time. However, if the sensor device is equipped with a time correction function, the number of parts mounted on the sensor device increases, and a program for controlling the parts is also required, which increases the development cost and reduces the maintainability of the sensor device. .. In addition, there are cases where the time correction function cannot be added due to restrictions on the hardware of the sensor device (for example, the capacity of the CPU or ROM, the number of control lines, etc.). Therefore, how to correct the time when the sensor device acquired the measured value to the correct time without installing the time correction function in the sensor device (without adding hardware or adding a control program). Is the issue.

本開示は、係る実情に鑑みてなされたものであり、収集装置が受信するデータの総量を削減するとともに、センサ装置が計測値を取得した時刻を補正することができる情報収集システムを提供することを一つの目的とする。 This disclosure is made in view of the actual situation, and provides an information collection system capable of reducing the total amount of data received by the collection device and correcting the time when the sensor device acquires the measured value. Is one purpose.

本開示のある局面に従う情報収集システムは、少なくとも1つのセンサと接続されるセンサ装置と、センサの計測値を収集する収集装置と、センサ装置と収集装置との間の通信を中継する中継装置とを備える。センサ装置は、時刻を計時する計時部を含む。センサ装置は、所定周期ごとに前記センサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値をセンサから取得する。センサ装置は、第1計測値を取得したときに計時部から第1時刻を取得する。センサ装置は、計測周期と第1時刻と複数の計測値とを含む計測情報を中継装置に送信する。計測情報には、センサ装置が計測情報を送信するときに計時部から取得した第2時刻が含まれる。中継装置は、計測情報を受信したときに、計時部とは異なる外部装置から第3時刻を取得する。中継装置は、計測情報と第3時刻とを収集装置に送信する。収集装置は、中継装置から受信した第2時刻と第3時刻との差分に基づいて第1時刻を補正する。収集装置は、補正した第1時刻と中継装置から受信した計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出する。 An information gathering system according to an aspect of the present disclosure includes a sensor device connected to at least one sensor, a collecting device that collects measured values of the sensor, and a relay device that relays communication between the sensor device and the collecting device. To prepare for. The sensor device includes a timekeeping unit that measures the time. The sensor device acquires a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals. The sensor device acquires the first time from the timekeeping unit when the first measured value is acquired. The sensor device transmits measurement information including the measurement cycle, the first time, and a plurality of measured values to the relay device. The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information. When the relay device receives the measurement information, it acquires the third time from an external device different from the timekeeping unit. The relay device transmits the measurement information and the third time to the collection device. The collecting device corrects the first time based on the difference between the second time and the third time received from the relay device. The collecting device calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the measurement cycle received from the relay device.

本開示の別の局面に従う収集装置は、少なくとも1つのセンサの計測値を収集する収集装置である。センサは、センサ装置と接続される。センサ装置が取得したセンサの計測値は、中継装置によって中継されて収集装置へ送信される。センサ装置は、時刻を計時する計時部を含む。センサ装置は、時刻を計時する計時部を含む。センサ装置は、所定周期ごとにセンサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値をセンサから取得する。センサ装置は、第1計測値を取得したときに計時部から第1時刻を取得する。センサ装置は、計測周期と第1時刻と複数の計測値とを含む計測情報を中継装置に送信する。計測情報には、センサ装置が計測情報を送信するときに計時部から取得した第2時刻が含まれる。中継装置は、計測情報を受信したときに、外部装置から第3時刻を取得する。中継装置は、計測情報と第3時刻とを収集装置に送信する。収集装置は、中継装置から受信した第2時刻と第3時刻との差分に基づいて第1時刻を補正する。収集装置は、補正した第1時刻と中継装置から受信した計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出する。 A collector according to another aspect of the present disclosure is a collector that collects measurements from at least one sensor. The sensor is connected to the sensor device. The measured value of the sensor acquired by the sensor device is relayed by the relay device and transmitted to the collection device. The sensor device includes a timekeeping unit that measures the time. The sensor device includes a timekeeping unit that measures the time. The sensor device acquires a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals. The sensor device acquires the first time from the timekeeping unit when the first measured value is acquired. The sensor device transmits measurement information including the measurement cycle, the first time, and a plurality of measured values to the relay device. The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information. When the relay device receives the measurement information, it acquires the third time from the external device. The relay device transmits the measurement information and the third time to the collection device. The collecting device corrects the first time based on the difference between the second time and the third time received from the relay device. The collecting device calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the measurement cycle received from the relay device.

本開示の別の局面に従う制御方法は、情報収集システムを制御する。情報収集システムは、時刻を計時する計時部を備える。制御方法は、所定周期ごとにセンサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値を前記センサから取得するステップと、第1計測値を取得したときに計時部から第1時刻を取得するステップと、計測周期と第1時刻と複数の計測値とを含む計測情報を送信するステップとを含む。計測情報には、計測情報を送信するステップが計測情報を送信するときに計時部から取得した第2時刻が含まれる。制御方法は、送信された計測情報を受信したときに、計時部とは異なる外部装置から第3時刻を取得するステップと、第2時刻と第3時刻との差分に基づいて第1時刻を補正するステップと、補正した第1時刻と計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出するステップとをさらに含む。 A control method according to another aspect of the present disclosure controls an information gathering system. The information gathering system includes a timekeeping unit that measures the time. The control method is a step of acquiring a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals, and acquiring the first measured value. Occasionally, it includes a step of acquiring the first time from the timekeeping unit and a step of transmitting measurement information including the measurement cycle, the first time, and a plurality of measured values. The measurement information includes a second time acquired from the timekeeping unit when the step of transmitting the measurement information transmits the measurement information. The control method corrects the first time based on the step of acquiring the third time from an external device different from the timekeeping unit and the difference between the second time and the third time when the transmitted measurement information is received. Further includes a step of calculating a time for each of the plurality of measured values to be acquired by the sensor based on the corrected first time and the measurement cycle.

本開示によれば、第1計測値を取得したときに計時部から取得した第1時刻と、第1計測値と第2計測値とを含む複数の計測値とを含む計測情報を中継装置に送信するため、収集装置が受信するデータの総量を削減することができる。また、センサ装置が計測情報を送信するときに計時部から取得した第2時刻と、外部装置から取得した第3時刻との差分に基づいて第1時刻を補正するため、センサ装置が計測値を取得した時刻を正確な時刻に補正することができる。 According to the present disclosure, measurement information including the first time acquired from the timekeeping unit when the first measured value is acquired and a plurality of measured values including the first measured value and the second measured value is used as a relay device. Since it is transmitted, the total amount of data received by the collecting device can be reduced. Further, since the sensor device corrects the first time based on the difference between the second time acquired from the timekeeping unit and the third time acquired from the external device when the sensor device transmits the measurement information, the sensor device corrects the measured value. The acquired time can be corrected to an accurate time.

情報収集システムの全体構成を示す図である。It is a figure which shows the whole structure of an information gathering system. 情報収集システムの機能構成を示すブロック図である。It is a block diagram which shows the functional structure of an information gathering system. センサ装置が行う送信データの削減方法について説明する図である。It is a figure explaining the reduction method of transmission data performed by a sensor device. 収集装置が行う時刻の補正方法について説明する図である。It is a figure explaining the time correction method performed by a collecting device. センサ装置処理を示すフローチャートである。It is a flowchart which shows the sensor device processing. 中継装置処理を示すフローチャートである。It is a flowchart which shows the relay device processing. 収集装置処理を示すフローチャートである。It is a flowchart which shows the collecting apparatus processing. 変形例に係る情報収集システムの構成例を示す図である。It is a figure which shows the configuration example of the information gathering system which concerns on the modification.

以下、各実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一又は相当部分については、同一符号を付してその説明は繰り返さない。 Hereinafter, each embodiment will be described in detail with reference to the drawings. The same or corresponding parts in the drawings are designated by the same reference numerals and the description thereof will not be repeated.

IoT(Internet of Things)を活用して、さまざまなセンサ装置が収集したセンサの計測値をサーバやクラウド上に展開する技術が開発されている。センサ装置が取得した装置の状態などの計測値を遠隔地からサーバが収集することで、装置の経時変化、寿命診断、異常検知、装置の計測対象となる人やモノの状態変化を監視することができる。 Techniques have been developed that utilize IoT (Internet of Things) to deploy sensor measurements collected by various sensor devices on servers and the cloud. By collecting measured values such as the state of the device acquired by the sensor device from a remote location, the server monitors changes over time of the device, life diagnosis, abnormality detection, and changes in the state of people and things to be measured by the device. Can be done.

IoTとは、さまざまなものをインターネットに接続し、使えるようにするための概念や仕組み、技術を指している。IoTを活用したシステムである「IoTシステム」は、これまでの携帯電話網(3G/LTE/4G/5G)や無線LANを利用した実証実験の段階から、ビジネスへの本格展開へと実用的な段階に移行しており、一部ではビジネス現場への展開も始まっている。 IoT refers to the concepts, mechanisms, and technologies for connecting various things to the Internet and making them usable. The "IoT system," which is a system that utilizes IoT, is practical for full-scale expansion into business from the stage of demonstration experiments using the mobile phone network (3G / LTE / 4G / 5G) and wireless LAN. It has moved to the stage, and some have begun to expand to business sites.

IoTシステムはデータを収集し、蓄積、可視化、分析を行い、必要に応じてフィードバックを行うことから、多数の構成要素が必要となる。IoTシステムを適用している例を挙げると、以下のような分野で利用されている。 Since the IoT system collects data, accumulates, visualizes, analyzes it, and provides feedback as needed, a large number of components are required. To give an example of applying the IoT system, it is used in the following fields.

自動車分野:センサを搭載した自動車は「走る」「曲がる」「止まる」などの動作を自動で行うことができる。また、交通機関と通信をすることで、リアルタイムな運行状況を把握することができる。物流分野:倉庫の在庫管理や配送状況の監視などに活用されている。医療分野:着用型のウェアラブルデバイスによる自分の健康状態の記憶や管理、医師との共有による健康管理を行う。医療機器をネットワークに接続し遠隔地にいる医師による手術なども可能になる。農業分野:ハウス栽培における水やりや肥料の自動散布などは、農地に設置したセンサが取得した情報をもとに、農作物にとって最適な栽培を可能とする。このように、IoTシステムの利用範囲は多岐に及んでいる。 Automotive field: Automobiles equipped with sensors can automatically perform actions such as "running," "turning," and "stopping." In addition, by communicating with transportation, it is possible to grasp the operation status in real time. Logistics field: Used for warehouse inventory management and delivery status monitoring. Medical field: Memory and management of one's health condition with a wearable device, and health management by sharing with a doctor. It will also be possible to connect medical devices to a network and perform surgery by a doctor at a remote location. Agricultural field: Watering and automatic fertilizer spraying in house cultivation enable optimal cultivation for crops based on the information acquired by sensors installed on the farmland. In this way, the range of use of the IoT system is wide-ranging.

IoTシステムでは、センサが接続されたセンサ装置をネットワークに接続し、センサ装置が持つ値やセンサ装置の状態をクラウドに送信することで遠隔地からインターネットを経由してクラウドに登録されている装置の状態を監視することが可能となる。 In the IoT system, the sensor device to which the sensor is connected is connected to the network, and the value of the sensor device and the state of the sensor device are transmitted to the cloud, so that the device registered in the cloud from a remote location via the Internet. It becomes possible to monitor the status.

[情報収集システム10]
本実施の形態において、上述したIoTシステムの一例として、情報収集システム10を例に挙げて説明する。図1は、情報収集システム10の全体構成を示す図である。図1に示すように、情報収集システム10は、センサ装置421と、収集装置200(「サーバ装置」とも称する)と、中継装置400(「ゲートウェイ」とも称する)とを備える。
[Information collection system 10]
In the present embodiment, the information collection system 10 will be described as an example of the above-mentioned IoT system. FIG. 1 is a diagram showing an overall configuration of the information collection system 10. As shown in FIG. 1, the information collection system 10 includes a sensor device 421, a collection device 200 (also referred to as a “server device”), and a relay device 400 (also referred to as a “gateway”).

センサ装置421は、少なくとも1つのセンサと接続される装置である。本実施の形態では、センサ装置421は、2つのセンサ411、412と接続している。収集装置200は、センサ411、412の計測値を収集する装置である。中継装置400は、センサ装置421が取得したセンサ411、412の計測値を中継して収集装置200へ送信する装置である。つまり、中継装置400は、センサ装置421と収集装置200との間の通信を中継する。 The sensor device 421 is a device connected to at least one sensor. In this embodiment, the sensor device 421 is connected to two sensors 411 and 412. The collecting device 200 is a device that collects the measured values of the sensors 411 and 412. The relay device 400 is a device that relays the measured values of the sensors 411 and 412 acquired by the sensor device 421 and transmits them to the collection device 200. That is, the relay device 400 relays the communication between the sensor device 421 and the collection device 200.

センサ装置421と中継装置400とは、LAN(Local Area Network)を介して無線あるいは有線で接続する。あるい、Wi-Fi(Wireless Fidelity)を用いてセンサ装置421と中継装置400とを接続してもよい。中継装置400と収集装置200とは、インターネット100を介して接続可能である。 The sensor device 421 and the relay device 400 are connected wirelessly or by wire via a LAN (Local Area Network). Alternatively, the sensor device 421 and the relay device 400 may be connected using Wi-Fi (Wireless Fidelity). The relay device 400 and the collection device 200 can be connected to each other via the Internet 100.

このように、センサ装置421にて取得されたセンサ411、412の計測値は、中継装置400を経由し、最終的に収集装置200にて収集される。たとえば、センサ装置421および中継装置400はある工場内に設置されており、収集装置200は遠隔地に設置されたサーバ装置であるようなシステムが想定される。 In this way, the measured values of the sensors 411 and 412 acquired by the sensor device 421 pass through the relay device 400 and are finally collected by the collecting device 200. For example, it is assumed that the sensor device 421 and the relay device 400 are installed in a certain factory, and the collection device 200 is a server device installed in a remote place.

さらに、端末300は、収集装置200と接続可能である。端末300は、収集装置200が収集した計測値を監視したり、センサやセンサ装置421の異常診断を行うことが可能である。端末300は、収集装置200と同じエリア内に設置するものであってもよいし、異なるエリアに設置するものであってもよいし、センサ装置421および中継装置400が設置された工場内に設置されるものであってもよい。 Further, the terminal 300 can be connected to the collecting device 200. The terminal 300 can monitor the measured values collected by the collecting device 200 and perform abnormality diagnosis of the sensor and the sensor device 421. The terminal 300 may be installed in the same area as the collection device 200, may be installed in a different area, or may be installed in the factory where the sensor device 421 and the relay device 400 are installed. It may be something that is done.

図2は、情報収集システム10の機能構成を示すブロック図である。図2に示すように、センサ装置421は、CPU(Central Processing Unit)431と、ROM(Read Only Memory)432と、RAM(Random Access Memory)433と、記憶部434と、通信インターフェイス435、RTC(real-time clock)436と、I/O(Input/Output)インターフェイス437とを備える。 FIG. 2 is a block diagram showing a functional configuration of the information collection system 10. As shown in FIG. 2, the sensor device 421 includes a CPU (Central Processing Unit) 431, a ROM (Read Only Memory) 432, a RAM (Random Access Memory) 433, a storage unit 434, a communication interface 435, and an RTC (RTC). It includes a real-time clock) 436 and an I / O (Input / Output) interface 437.

CPU431は、センサ装置421全体を総括的に制御する。CPU431は、ROM432に格納されているプログラムをRAM433に展開して実行する。ROM432は、センサ装置421の処理手順が記されたプログラムを格納する。 The CPU 431 comprehensively controls the entire sensor device 421. The CPU 431 expands the program stored in the ROM 432 into the RAM 433 and executes it. The ROM 432 stores a program in which the processing procedure of the sensor device 421 is described.

RAM433は、CPU431がプログラムを実行する際の作業領域となるものであり、プログラムやプログラムを実行する際のデータ等を一時的に記憶する。通信インターフェイス435は、中継装置400と通信するためのインターフェイスである。記憶部434は、不揮発性の記憶装置である。記憶部434は、たとえば、HDD(Hard Disk Drive)である。 The RAM 433 is a work area when the CPU 431 executes a program, and temporarily stores the program, data when the program is executed, and the like. The communication interface 435 is an interface for communicating with the relay device 400. The storage unit 434 is a non-volatile storage device. The storage unit 434 is, for example, an HDD (Hard Disk Drive).

I/Oインターフェイス437は、センサ装置421への入力またはセンサ装置421からの出力のインターフェイスである。センサ装置421は、I/Oインターフェイス437を介してセンサ411、412と接続されている。センサ411、412には、それぞれを識別する識別情報として、センサIDが付されている。センサ411のセンサIDは01であり、センサ412のセンサIDは02である。 The I / O interface 437 is an interface for input to the sensor device 421 or output from the sensor device 421. The sensor device 421 is connected to the sensors 411 and 412 via the I / O interface 437. Sensor IDs are attached to the sensors 411 and 412 as identification information for identifying each of them. The sensor ID of the sensor 411 is 01, and the sensor ID of the sensor 412 is 02.

RTC436は、時刻を計時する。センサ411、412からの計測値を取得したときに、RTC436から時刻を取得することで、センサ411、412の計測値の取得時刻を得ることができる。 The RTC436 measures the time. By acquiring the time from the RTC 436 when the measured values from the sensors 411 and 412 are acquired, the acquisition time of the measured values of the sensors 411 and 412 can be obtained.

中継装置400は、CPU401と、ROM402と、RAM403と、記憶部404と、通信インターフェイス405とを備える。通信インターフェイス205は、中継装置400や収集装置200と通信するためのインターフェイスである。 The relay device 400 includes a CPU 401, a ROM 402, a RAM 403, a storage unit 404, and a communication interface 405. The communication interface 205 is an interface for communicating with the relay device 400 and the collection device 200.

CPU401は、中継装置400全体を総括的に制御する。CPU401は、ROM402に格納されているプログラムをRAM403に展開して実行する。ROM402は、中継装置400の処理手順が記されたプログラムを格納する。 The CPU 401 comprehensively controls the entire relay device 400. The CPU 401 expands the program stored in the ROM 402 into the RAM 403 and executes it. The ROM 402 stores a program in which the processing procedure of the relay device 400 is described.

RAM403は、CPU401がプログラムを実行する際の作業領域となるものであり、プログラムやプログラムを実行する際のデータ等を一時的に記憶する。記憶部404は、不揮発性の記憶装置である。 The RAM 403 is a work area when the CPU 401 executes a program, and temporarily stores the program, data when the program is executed, and the like. The storage unit 404 is a non-volatile storage device.

また、中継装置400は、NTP(Network Time Protocol)サーバ220と接続可能である。中継装置400は、インターネット100を介してNTPサーバ220と接続することで、NTPサーバ220が提供する正確な時刻情報を取得することができる。 Further, the relay device 400 can be connected to the NTP (Network Time Protocol) server 220. The relay device 400 can acquire accurate time information provided by the NTP server 220 by connecting to the NTP server 220 via the Internet 100.

収集装置200は、CPU201と、ROM202と、RAM203と、記憶部204と、通信インターフェイス205とを備える。通信インターフェイス205は、中継装置400と通信するためのインターフェイスである。 The collecting device 200 includes a CPU 201, a ROM 202, a RAM 203, a storage unit 204, and a communication interface 205. The communication interface 205 is an interface for communicating with the relay device 400.

CPU201は、収集装置200全体を総括的に制御する。CPU201は、ROM202に格納されているプログラムをRAM203に展開して実行する。ROM202は、収集装置200の処理手順が記されたプログラムを格納する。 The CPU 201 comprehensively controls the entire collection device 200. The CPU 201 expands the program stored in the ROM 202 into the RAM 203 and executes it. The ROM 202 stores a program in which the processing procedure of the collecting device 200 is described.

RAM203は、CPU201がプログラムを実行する際の作業領域となるものであり、プログラムやプログラムを実行する際のデータ等を一時的に記憶する。記憶部204は、不揮発性の記憶装置である。 The RAM 203 is a work area when the CPU 201 executes a program, and temporarily stores the program, data when the program is executed, and the like. The storage unit 204 is a non-volatile storage device.

なお、収集装置200は、各種画面を表示する表示装置や、ユーザからの指示を含む入力を受け付ける入力装置を備えてもよい。入力装置は、キーボード、マウスおよびタッチパネルなどである。 The collecting device 200 may include a display device for displaying various screens and an input device for receiving an input including an instruction from a user. The input device is a keyboard, a mouse, a touch panel, and the like.

[送信データの削減方法]
図3は、センサ装置421が行う送信データの削減方法について説明する図である。
[How to reduce transmitted data]
FIG. 3 is a diagram illustrating a method of reducing transmission data performed by the sensor device 421.

センサ装置421は、予め定められた計測周期(「所定周期」とも称する)ごとにセンサ411、412にアクセスすることにより、計測値をセンサ411、412から取得する。たとえば、センサ411は温度計であり、センサ412は圧力計である。センサ装置421は、計測値をセンサ411、412から取得したときに、RTC436から時刻(現在時刻)を取得する。ここで、センサ411およびセンサ412の計測周期は、いずれも60秒である。計測周期は、これに限らず、さらに短いもの(たとえば、数ミリ秒~数百ミリ秒)であってもよい。 The sensor device 421 acquires measured values from the sensors 411 and 412 by accessing the sensors 411 and 412 at predetermined measurement cycles (also referred to as “predetermined cycles”). For example, the sensor 411 is a thermometer and the sensor 412 is a pressure gauge. When the sensor device 421 acquires the measured value from the sensors 411 and 412, the sensor device 421 acquires the time (current time) from the RTC 436. Here, the measurement cycle of the sensor 411 and the sensor 412 is 60 seconds. The measurement cycle is not limited to this, and may be shorter (for example, several milliseconds to several hundred milliseconds).

図3に示すように、センサ装置421がセンサ411(センサID=01)から1回目に取得した計測値が「25.5」であったとする。そして、このときにRTC436から取得した時刻(1回目の計測時刻)が、2020年1月31日12時34分56秒であったとする。次に、センサ装置421がセンサ412(センサID=02)から1回目に取得した計測値が「760.3」であったとする。そして、このときにRTC436から取得した時刻(1回目の計測時刻)が、2020年1月31日12時34分57秒であったとする。 As shown in FIG. 3, it is assumed that the first measured value acquired by the sensor device 421 from the sensor 411 (sensor ID = 01) is "25.5". Then, it is assumed that the time (first measurement time) acquired from RTC436 at this time is 12:34:56 on January 31, 2020. Next, it is assumed that the first measured value acquired by the sensor device 421 from the sensor 412 (sensor ID = 02) is "760.3". Then, it is assumed that the time (first measurement time) acquired from RTC436 at this time is 12:34:57 on January 31, 2020.

さらに、センサ411の計測周期60秒が経過したとき(2020年1月31日12時35分56秒)に、センサ装置421がセンサ411(センサIDは01)から2回目に取得した計測値が「25.4」であったとする。センサ412の計測周期60秒が経過したとき(2020年1月31日12時35分57秒)に、センサ装置421がセンサ412(センサIDは02)から2回目に取得した計測値が「760.1」であったとする。 Further, when the measurement cycle of the sensor 411 has elapsed (12:35:56 on January 31, 2020), the second measurement value acquired by the sensor device 421 from the sensor 411 (sensor ID is 01) is obtained. It is assumed that it was "25.4". When the measurement cycle of the sensor 412 has elapsed (January 31, 2020, 12:35:57), the second measurement value acquired by the sensor device 421 from the sensor 412 (sensor ID is 02) is "760". It is assumed that it was "1.1".

このようにして、センサ411、412の計測周期ごとに計測値が取得される。そして、センサ装置421がセンサ411から9回目に取得した計測値が「25.4」であり、10回目に取得した計測値が「25.6」であったとする。センサ装置421がセンサ412から9回目に取得した計測値が「760.3」であり、10回目に取得した計測値が「759.8」であったとする。 In this way, the measured value is acquired for each measurement cycle of the sensors 411 and 412. Then, it is assumed that the measured value acquired by the sensor device 421 from the sensor 411 at the 9th time is "25.4" and the measured value acquired at the 10th time is "25.6". It is assumed that the measured value acquired by the sensor device 421 from the sensor 412 for the 9th time is "760.3" and the measured value acquired for the 10th time is "759.8".

記憶部434には、センサごとに、センサIDおよび計測周期とともに、計測周期ごとの計測値の取得時刻(計測時刻)と計測値が記録される。センサ411では、センサIDが01であり計測周期が60秒であることを示す[ID = 01, Freq = 60]が記憶部434に記憶され、1回目の時刻と計測値のデータ{2020/01/31 12:34:56 25.5}、2回目の時刻と計測値のデータ{2020/01/31 12:35:56 25.4}、・・・10回目の時刻と計測値のデータ{2020/01/31 12:42:56 25.6}が記憶部434に記憶される。 In the storage unit 434, the acquisition time (measurement time) and the measurement value of the measurement value for each measurement cycle are recorded together with the sensor ID and the measurement cycle for each sensor. In the sensor 411, [ID = 01, Freq = 60] indicating that the sensor ID is 01 and the measurement cycle is 60 seconds is stored in the storage unit 434, and the data of the first time and the measured value {2020/01 /31 12:34:56 25.5}, 2nd time and measurement data {2020/01/31 12:35:56 25.4}, ... 10th time and measurement data {2020/01/31 31 12:42:56 25.6} is stored in the storage unit 434.

センサ412では、センサIDが02であり計測周期が60秒であることを示す[ID = 02, Freq = 60]が記憶部434に記憶され、1回目の時刻と計測値のデータ{2020/01/31 12:34:57 760.3}、2回目の時刻と計測値のデータ{2020/01/31 12:35:57 760.1}、・・・10回目の時刻と計測値のデータ{2020/01/31 12:42:57 759.8}が記憶部434に記憶される。このようにして、記憶部434は、複数の計測値と、複数の計測値のそれぞれを取得したときにRTC436から取得した時刻とを記憶する。 In the sensor 412, [ID = 02, Freq = 60] indicating that the sensor ID is 02 and the measurement cycle is 60 seconds is stored in the storage unit 434, and the data of the first time and the measured value {2020/01 /31 12:34:57 760.3}, 2nd time and measurement data {2020/01/31 12:35:57 760.1}, ... 10th time and measurement data {2020/01/31 31 12:42:57 759.8} is stored in the storage unit 434. In this way, the storage unit 434 stores the plurality of measured values and the time acquired from the RTC 436 when each of the plurality of measured values is acquired.

次に、センサ装置421は、計測情報を送信データとして中継装置400に送信する。計測情報は、記憶部434に記憶されたデータを加工したデータである。先の例では、記憶部434に記憶されたデータは、10回分の時刻情報と計測値とがセットになったデータである。これに対して、送信データ(計測情報)は、1回分の時刻情報と10回分の計測値とがセットになったデータである。 Next, the sensor device 421 transmits the measurement information as transmission data to the relay device 400. The measurement information is data obtained by processing the data stored in the storage unit 434. In the previous example, the data stored in the storage unit 434 is data in which time information for 10 times and measured values are set. On the other hand, the transmission data (measurement information) is data in which one time information and ten measurement values are set.

具体的には、センサ411においては、1回目の時刻情報「Time = 2020/01/31 12:34:56」と1~10回目の計測値「Val = 25.5,25.4,・・・,25.4,25.6」がセットになったデータが生成される。センサ411においては、さらに、計測情報のセンサIDが01であり計測周期が60秒であることを示す「ID = 01, Freq = 60」と、データが10個あることを示す「Data = 10」という情報が付加される。 Specifically, in the sensor 411, the first time information "Time = 2020/01/31 12:34:56" and the first to tenth measured values "Val = 25.5,25.4, ..., 25.4," 25.6 "is generated as a set of data. In the sensor 411, further, "ID = 01, Freq = 60" indicating that the sensor ID of the measurement information is 01 and the measurement cycle is 60 seconds, and "Data = 10" indicating that there are 10 data. Information is added.

センサ412においては、1回目の時刻情報「Time = 2020/01/31 12:34:57」と1~10回目の計測値「Val = 760.3,760.1,・・・,760.3,759.8」がセットになったデータが生成される。センサ412においては、さらに、計測情報のセンサIDが02であり計測周期が60秒であることを示す「ID = 02, Freq = 60」と、データが10個あることを示す「Data = 10」という情報が付加される。 In the sensor 412, the first time information "Time = 2020/01/31 12:34:57" and the first to tenth measurement values "Val = 760.3,760.1, ..., 760.3,759.8" are included in the set. The data is generated. In the sensor 412, further, "ID = 02, Freq = 60" indicating that the sensor ID of the measurement information is 02 and the measurement cycle is 60 seconds, and "Data = 10" indicating that there are 10 data. Information is added.

加えて、センサ装置421の識別情報として、センサ装置421のIDが「01」であることを示す「Board = 01」という情報が付加される。さらに、センサ装置421は、計測情報を送信データとして送信する際に、RTC436から時刻(以下、この時刻を「RTC時刻」とも称する)を取得し、これを付加して中継装置400に送信する。たとえば、送信時刻が2020年1月31日12時44分55秒である場合は、送信データに「Send = 2020/01/31 12:44:55」という情報が付加される。 In addition, as the identification information of the sensor device 421, the information "Board = 01" indicating that the ID of the sensor device 421 is "01" is added. Further, the sensor device 421 acquires a time (hereinafter, this time is also referred to as “RTC time”) from the RTC 436 when transmitting the measurement information as transmission data, adds the time, and transmits the time to the relay device 400. For example, if the transmission time is 12:44:55 on January 31, 2020, the information "Send = 2020/01/31 12:44:55" is added to the transmission data.

このように、センサ装置421は、1~10回目の計測値をセンサ411、412から取得する。センサ装置421は、1回目の計測値を取得したときにRTC436から1回目の計測時刻を取得する。 In this way, the sensor device 421 acquires the measured values of the 1st to 10th times from the sensors 411 and 412. The sensor device 421 acquires the first measurement time from the RTC 436 when the first measurement value is acquired.

センサ装置421は、計測周期と1回目の計測時刻と1~10回目の計測値とを含む計測情報を中継装置400に送信する。計測情報は、センサ411、412のそれぞれを識別する識別情報を含む。計測情報には、センサ装置421が計測情報を送信するときにRTC436から取得したRTC時刻が含まれる。 The sensor device 421 transmits measurement information including the measurement cycle, the first measurement time, and the 1st to 10th measurement values to the relay device 400. The measurement information includes identification information that identifies each of the sensors 411 and 412. The measurement information includes the RTC time acquired from the RTC 436 when the sensor device 421 transmits the measurement information.

また、センサ装置421が送信するデータ量を削減する方法としては、データを圧縮する方法や、2回目以降の値は前回の計測値との差分のみを保存するような方法が考えられる。計測時刻についても差分を保存することでデータ量を削減することができる。 Further, as a method of reducing the amount of data transmitted by the sensor device 421, a method of compressing the data or a method of storing only the difference between the second and subsequent values and the previously measured value can be considered. The amount of data can be reduced by saving the difference in the measurement time.

以上説明したように、1回目の計測値を取得したときにRTC436から取得した時刻(1回目の計測時刻)と、1回目の計測値と2~10回目の計測値とを含む複数の計測値とを含む計測情報を中継装置400に送信する。2~10回目の計測時刻を送信しないため、結果として、収集装置200が受信するデータの総量を削減することができる。 As described above, a plurality of measured values including the time acquired from the RTC436 when the first measured value is acquired (the first measured time), the first measured value, and the 2nd to 10th measured values. The measurement information including and is transmitted to the relay device 400. Since the 2nd to 10th measurement times are not transmitted, as a result, the total amount of data received by the collecting device 200 can be reduced.

[時刻の補正方法]
図4は、収集装置200が行う時刻の補正方法について説明する図である。
[Time correction method]
FIG. 4 is a diagram illustrating a time correction method performed by the collecting device 200.

図4に示すように、センサ装置421は、生成した送信データを中継装置400に送信する。中継装置400は、センサ装置421から受信したデータに基づき送信データを生成する。中継装置400は、生成した送信データを収集装置200に送信する。収集装置200は、中継装置400から受信した時刻データを補正する。以下、具体的に説明する。 As shown in FIG. 4, the sensor device 421 transmits the generated transmission data to the relay device 400. The relay device 400 generates transmission data based on the data received from the sensor device 421. The relay device 400 transmits the generated transmission data to the collection device 200. The collecting device 200 corrects the time data received from the relay device 400. Hereinafter, a specific description will be given.

図3の例においては、記憶部434に記憶されたセンサ411、412のデータに基づき、センサ411、412の送信データを生成している。図4の例においては、記憶部434に記憶されたセンサ411のデータに基づき、センサ411の送信データを生成したものとする。ここでは、図3の例と類似するため、詳細な説明は省略する。 In the example of FIG. 3, the transmission data of the sensors 411 and 412 are generated based on the data of the sensors 411 and 412 stored in the storage unit 434. In the example of FIG. 4, it is assumed that the transmission data of the sensor 411 is generated based on the data of the sensor 411 stored in the storage unit 434. Here, since it is similar to the example of FIG. 3, detailed description will be omitted.

中継装置400は、センサ装置421が送信したデータを受信する。中継装置400は、センサ装置421からデータを受信したとき、NTPサーバ220から時刻を取得する。中継装置400は、NTPサーバ220から取得した時刻(以下、「NTP時刻」とも称する)をデータ受信時刻と判断する。 The relay device 400 receives the data transmitted by the sensor device 421. When the relay device 400 receives data from the sensor device 421, the relay device 400 acquires the time from the NTP server 220. The relay device 400 determines that the time acquired from the NTP server 220 (hereinafter, also referred to as “NTP time”) is the data reception time.

このように、中継装置400は、計測情報を受信したときに、RTC436とは異なる外部装置から現在時刻を取得するようにしている。たとえば、外部装置は、時刻を計時する機能を備えた装置である。本実施の形態では、外部装置として、NTPサーバ220を利用している。なお、これに限らず、外部から中継装置400が現在時刻を取得できるものであれば、どのような方法を用いてもよい。 As described above, when the relay device 400 receives the measurement information, the relay device 400 acquires the current time from an external device different from the RTC436. For example, an external device is a device having a function of measuring time. In this embodiment, the NTP server 220 is used as an external device. Not limited to this, any method may be used as long as the relay device 400 can acquire the current time from the outside.

中継装置400は、計測情報とNTP時刻とを収集装置200に送信する。たとえば、送信時刻が2020年2月5日12時44分58秒である場合は、センサ装置421の送信データに、「NTP = 2020/02/05 12:44:58」という情報が付加されて、収集装置200に送信される。 The relay device 400 transmits the measurement information and the NTP time to the collection device 200. For example, if the transmission time is 12:44:58 on February 5, 2020, the information "NTP = 2020/02/05 12:44:58" is added to the transmission data of the sensor device 421. , Sent to the collector 200.

本実施の形態においては、センサ装置421の送信時刻(RTC時刻)と、中継装置400の受信時刻(NTP時刻)とのタイムラグがほぼ存在しないものとする。本実施の形態においては、センサ装置421と中継装置400との間は、接続されるセンサ装置421の台数やセンサ装置421から中継装置400までの通信経路が限定(固定)されたネットワークで構成され、通信経路を通るデータの送受信に関する応答時間(レスポンス)は、センサ装置421が計測値を取得した時刻を(現在時刻に対して)補正する精度よりも短い時間で完結できることを前提とする。 In the present embodiment, it is assumed that there is almost no time lag between the transmission time (RTC time) of the sensor device 421 and the reception time (NTP time) of the relay device 400. In the present embodiment, the sensor device 421 and the relay device 400 are configured by a network in which the number of connected sensor devices 421 and the communication path from the sensor device 421 to the relay device 400 are limited (fixed). It is assumed that the response time for sending and receiving data through the communication path can be completed in a time shorter than the accuracy of correcting the time when the sensor device 421 acquires the measured value (relative to the current time).

NTP時刻は正確な現在時刻であるため、NTP時刻とRTC時刻とに差分が発生した場合は、RTC436が計時する時刻は、実際の現在時刻とは異なると判断することができる。 Since the NTP time is an accurate current time, if a difference occurs between the NTP time and the RTC time, it can be determined that the time measured by the RTC436 is different from the actual current time.

なお、本実施の形態では、センサ装置421と中継装置400の通信を1対1として記載しているが、同一のローカルな環境(例えば社内LAN)に複数台のセンサ装置を接続することも可能である。その際、各センサ装置と中継装置400の通信には、接続されるすべてのセンサ装置が補正する最小単位時間以内に中継装置400との通信を終えるだけのスループットが必要となる。 In this embodiment, the communication between the sensor device 421 and the relay device 400 is described as one-to-one, but it is also possible to connect a plurality of sensor devices to the same local environment (for example, an in-house LAN). Is. At that time, the communication between each sensor device and the relay device 400 requires a throughput sufficient to complete the communication with the relay device 400 within the minimum unit time corrected by all the connected sensor devices.

収集装置200は、中継装置400から受信したRTC時刻とNTP時刻との差分に基づいて1回目の計測時刻を補正する。本例では、NTP時刻は、「2020/02/05 12:44:58」であり、RTC時刻は、「2020/01/31 12:44:55」である。その差分(NTP時刻-RTC時刻)は、「0000/00/05 00:00:03」である。つまり、RTC時刻は、正しい時刻であるNTP時刻よりも5日と3秒遅れている。 The collecting device 200 corrects the first measurement time based on the difference between the RTC time and the NTP time received from the relay device 400. In this example, the NTP time is "2020/02/05 12:44:58" and the RTC time is "2020/01/31 12:44:55". The difference (NTP time-RTC time) is "0000/00/05 00:00:03". That is, the RTC time is 5 days and 3 seconds behind the correct NTP time.

1回目の計測時刻「2020/01/31 12:34:56」に差分「0000/00/05 00:00:03」を加えたもの(2020/02/05 12:34:59)が正しい1回目の計測時刻(補正後の1回目の計測時刻)となる。また、センサ411の計測周期は60秒(Freq = 60)であるため、2回目の計測時刻は、補正後の1回目の計測時刻に60秒を足したもの(2020/02/05 12:35:59)となり、3回目の計測時刻は、補正後の2回目の計測時刻に60秒を足したもの(2020/02/05 12:36:59)となる。以下同様にして、10回目の計測時刻は、9回目の計測時刻に60秒を足したもの(2020/02/05 12:45:59)となる。 The correct 1 is the first measurement time "2020/01/31 12:34:56" plus the difference "0000/00/05 00:00:03" (2020/02/05 12:34:59). It is the first measurement time (the first measurement time after correction). Moreover, since the measurement cycle of the sensor 411 is 60 seconds (Freq = 60), the second measurement time is the corrected first measurement time plus 60 seconds (2020/02/05 12:35). : 59), and the third measurement time is the corrected second measurement time plus 60 seconds (2020/02/05 12:36:59). Similarly, the 10th measurement time is the 9th measurement time plus 60 seconds (2020/02/05 12:45:59).

センサ412のデータがセンサ装置421から送信された場合においても、同様の方法により時刻補正が行われた上で、1回目~10回目の計測時刻が算出される。 Even when the data of the sensor 412 is transmitted from the sensor device 421, the time is corrected by the same method, and then the first to tenth measurement times are calculated.

このように、収集装置200は、補正した1回目の計測時刻と中継装置400から受信した計測周期とに基づいて、複数の計測値のそれぞれがセンサ411、412によって取得された時刻を算出する。 As described above, the collecting device 200 calculates the time obtained by the sensors 411 and 412 for each of the plurality of measured values based on the corrected first measurement time and the measurement cycle received from the relay device 400.

さらに、収集装置200は、RTC時刻とNTP時刻との差分が規定値(たとえば、10秒)を超えた場合、RTC436が計時する時刻が異常であると判定する。たとえば、上述の例のように、RTC時刻とNTP時刻とが約5日も差がある場合、RTC436が正確な現在時刻を計時しているとは言いがたい。このような場合、収集装置200は、RTC436が計時する時刻が異常であると判定して、時刻異常フラグをセットする。時刻異常フラグをセットされた場合、たとえば、収集装置200は、RTC436が計時する時刻が異常である旨を報知するようにしてもよい。 Further, the collecting device 200 determines that the time measured by the RTC 436 is abnormal when the difference between the RTC time and the NTP time exceeds a specified value (for example, 10 seconds). For example, if there is a difference of about 5 days between the RTC time and the NTP time as in the above example, it is hard to say that the RTC436 is timing the exact current time. In such a case, the collecting device 200 determines that the time measured by the RTC 436 is abnormal, and sets the time abnormality flag. When the time abnormality flag is set, for example, the collecting device 200 may notify that the time measured by the RTC 436 is abnormal.

以上説明したように、センサ装置421が計測情報を送信するときにRTC436から取得したRTC時刻(送信時刻)と、NTPサーバから取得したNTP時刻との差分に基づいて1回目の計測時刻を補正するため、センサ装置421が計測値を取得した時刻を正確な時刻に補正することができる。 As described above, the first measurement time is corrected based on the difference between the RTC time (transmission time) acquired from the RTC 436 and the NTP time acquired from the NTP server when the sensor device 421 transmits the measurement information. Therefore, the time when the sensor device 421 acquires the measured value can be corrected to an accurate time.

[センサ装置処理]
以下、センサ装置421、中継装置400および収集装置200が実行する処理を図5~図7のフローチャートを用いて説明する。
[Sensor device processing]
Hereinafter, the processes executed by the sensor device 421, the relay device 400, and the collection device 200 will be described with reference to the flowcharts of FIGS. 5 to 7.

図5は、センサ装置処理を示すフローチャートである。センサ装置処理は、センサ装置421がセンサ411、412の計測値を取得して、中継装置400へデータを送信する処理である。センサ装置処理は、CPU431がROM432に格納されているプログラムを実行することにより実現される。以下では、ステップを単にSと記載する。 FIG. 5 is a flowchart showing the sensor device processing. The sensor device process is a process in which the sensor device 421 acquires the measured values of the sensors 411 and 412 and transmits the data to the relay device 400. The sensor device processing is realized by the CPU 431 executing a program stored in the ROM 432. In the following, the step is simply referred to as S.

図5に示すように、センサ装置処理を開始すると、センサ装置421は、センサ411、412の計測値と計測時刻とを取得して記憶する(S11)。具体的には、予め定められた計測周期ごとに計測値をセンサ411、412から取得する。センサ装置421は、計測値をセンサ411、412から取得したときに、RTC436から計測時刻(現在時刻)を取得する。そして、計測値および計測時刻を記憶部434に記憶する。 As shown in FIG. 5, when the sensor device processing is started, the sensor device 421 acquires and stores the measured values and the measured times of the sensors 411 and 412 (S11). Specifically, the measured values are acquired from the sensors 411 and 412 at each predetermined measurement cycle. When the sensor device 421 acquires the measured value from the sensors 411 and 412, the sensor device 421 acquires the measurement time (current time) from the RTC 436. Then, the measured value and the measured time are stored in the storage unit 434.

次いで、センサ装置421は、センサ411またはセンサ412について、記憶部434に10回分の計測値が記憶されたか否かを判定する(S12)。センサ411またはセンサ412について、記憶部434に10回分の計測値が記憶されたと判定されなかった場合は(S12でNO)、S11の処理に戻る。 Next, the sensor device 421 determines whether or not the measured values for 10 times have been stored in the storage unit 434 for the sensor 411 or the sensor 412 (S12). If it is not determined that the measured values for 10 times have been stored in the storage unit 434 for the sensor 411 or the sensor 412 (NO in S12), the process returns to the process of S11.

センサ411またはセンサ412について、記憶部434に10回分の計測値が記憶されたと判定された場合は(S12でYES)、処理をS13に進める。たとえば、センサ411(センサID=01)において、10回分の計測値が記憶された場合は、図4に示したようなセンサ装置における記憶部データが記憶部434に記憶されている。 If it is determined that the measurement values for 10 times have been stored in the storage unit 434 for the sensor 411 or the sensor 412 (YES in S12), the process proceeds to S13. For example, when the measured values for 10 times are stored in the sensor 411 (sensor ID = 01), the storage unit data in the sensor device as shown in FIG. 4 is stored in the storage unit 434.

S13~17は、図4のセンサ装置における送信データを生成する処理である。S13において、センサ装置421は、装置ID、センサID、計測周期を取得する。図4の例では、装置ID=01、センサID=01、計測周期=60秒である。 S13 to 17 are processes for generating transmission data in the sensor device of FIG. In S13, the sensor device 421 acquires the device ID, the sensor ID, and the measurement cycle. In the example of FIG. 4, the device ID = 01, the sensor ID = 01, and the measurement cycle = 60 seconds.

次いで、センサ装置421は、1回目の計測時刻を取得する(S14)。図4の例では、1回目の計測時刻=「2020年1月31日12時34分56秒」である。次いで、センサ装置421は、1~10回目の計測値を取得する(S15)。図4の例では、1~10回目の計測値=「25.5」、「25.4」・・・「25.4」、「25.6」である。 Next, the sensor device 421 acquires the first measurement time (S14). In the example of FIG. 4, the first measurement time = "January 31, 2020 12:34:56". Next, the sensor device 421 acquires the measured values for the 1st to 10th times (S15). In the example of FIG. 4, the measured values of the 1st to 10th times = "25.5", "25.4" ... "25.4", "25.6".

次いで、センサ装置421は、RTC436から送信時刻(RTC時刻)を取得する(S16)。図4の例では、送信時刻=「2020年1月31日12時44分55秒」である。次いで、センサ装置421は、送信データ(計測情報)を生成する(S18)。たとえば、図4のセンサ装置における送信データのようなデータが生成される。 Next, the sensor device 421 acquires the transmission time (RTC time) from the RTC436 (S16). In the example of FIG. 4, the transmission time = "January 31, 2020 12:44:55". Next, the sensor device 421 generates transmission data (measurement information) (S18). For example, data such as transmission data in the sensor device of FIG. 4 is generated.

最後に、センサ装置421は、送信データを中継装置400へ送信して(S18)、センサ装置処理を終了する。 Finally, the sensor device 421 transmits the transmission data to the relay device 400 (S18), and ends the sensor device processing.

[中継装置処理]
図6は、中継装置処理を示すフローチャートである。中継装置処理は、中継装置400がセンサ装置421から受信したデータに基づき生成したデータを収集装置200に送信する処理である。中継装置処理は、CPU401がROM402に格納されているプログラムを実行することにより実現される。
[Relay device processing]
FIG. 6 is a flowchart showing the relay device processing. The relay device process is a process of transmitting data generated by the relay device 400 based on the data received from the sensor device 421 to the collection device 200. The relay device processing is realized by the CPU 401 executing the program stored in the ROM 402.

図6に示すように、中継装置処理を開始すると、中継装置400は、センサ装置421が送信したデータを受信したか否かを判定する(S21)。中継装置400は、センサ装置421が送信したデータを受信していない場合(S21でNO)は、センサ装置421が送信したデータを受信する(S21でYES)まで待機する。 As shown in FIG. 6, when the relay device process is started, the relay device 400 determines whether or not the data transmitted by the sensor device 421 has been received (S21). When the relay device 400 has not received the data transmitted by the sensor device 421 (NO in S21), the relay device 400 waits until the data transmitted by the sensor device 421 is received (YES in S21).

中継装置400は、センサ装置421が送信したデータを受信すると、受信データから計測情報を取得する(S22)。図4の例においては、センサ装置における送信データ(計測情報)を、中継装置400が取得する。 When the relay device 400 receives the data transmitted by the sensor device 421, the relay device 400 acquires measurement information from the received data (S22). In the example of FIG. 4, the relay device 400 acquires the transmission data (measurement information) in the sensor device.

次いで、中継装置400は、NTPサーバ220から現在時刻(NTP時刻)を取得する(S23)。図4の例では、NTP時刻=「2020年2月5日12時44分58秒」である。次いで、中継装置400は、送信データを生成する(S24)。図4の例では、中継装置における送信データのようなデータを生成する。送信データは、センサ装置421から受信したデータにNTP時刻を付加したものである。 Next, the relay device 400 acquires the current time (NTP time) from the NTP server 220 (S23). In the example of FIG. 4, the NTP time = "February 5, 2020 12:44:58". Next, the relay device 400 generates transmission data (S24). In the example of FIG. 4, data such as transmission data in the relay device is generated. The transmission data is the data received from the sensor device 421 with the NTP time added.

最後に、中継装置400は、送信データを収集装置200へ送信して(S25)、中継装置処理を終了する。 Finally, the relay device 400 transmits the transmission data to the collection device 200 (S25), and ends the relay device process.

[収集装置処理]
図7は、収集装置処理を示すフローチャートである。収集装置処理は、収集装置200が中継装置400から受信したデータ補正する処理である。収集装置処理は、CPU201がROM202に格納されているプログラムを実行することにより実現される。
[Collection device processing]
FIG. 7 is a flowchart showing the collection device processing. The collecting device processing is a processing for correcting data received from the relay device 400 by the collecting device 200. The collection device processing is realized by the CPU 201 executing a program stored in the ROM 202.

図7に示すように、収集装置処理を開始すると、収集装置200は、中継装置400が送信したデータを受信したか否かを判定する(S31)。収集装置200は、中継装置400が送信したデータを受信していない場合(S31でNO)は、中継装置400が送信したデータを受信する(S31でYES)まで待機する。 As shown in FIG. 7, when the collection device processing is started, the collection device 200 determines whether or not the data transmitted by the relay device 400 has been received (S31). When the collecting device 200 has not received the data transmitted by the relay device 400 (NO in S31), the collecting device 200 waits until the data transmitted by the relay device 400 is received (YES in S31).

収集装置200は、中継装置400が送信したデータを受信すると、受信データから計測情報およびNTP時刻を取得する(S32)。次いで、収集装置200は、差分値(NTP時刻-RTC時刻)を算出する(S33)。たとえば、図4の例においては、NTP時刻「2020/02/05 12:44:58」、RTC時刻「2020/01/31 12:44:55」に対して、差分値は「0000/00/05 00:00:03」である。 When the collecting device 200 receives the data transmitted by the relay device 400, the collecting device 200 acquires the measurement information and the NTP time from the received data (S32). Next, the collecting device 200 calculates the difference value (NTP time-RTC time) (S33). For example, in the example of FIG. 4, the difference value is "0000/00 /" for the NTP time "2020/02/05 12:44:58" and the RTC time "2020/01/31 12:44:55". 05 00:00:03 ".

次いで、収集装置200は、差分値が規定値を超えたか否かを判定する(S34)。たとえば、規定値は「10秒」である。図4の例においては、RTC時刻は、NTP時刻よりも5日と3秒遅れているため、規定値を超えている。 Next, the collecting device 200 determines whether or not the difference value exceeds the specified value (S34). For example, the default value is "10 seconds". In the example of FIG. 4, the RTC time is 5 days and 3 seconds behind the NTP time, and therefore exceeds the specified value.

差分値が規定値を超えている場合は(S34でYES)、時刻異常フラグをセットして(S35)、S36に処理を進める。差分値が規定値を超えていない場合は(S34でNO)、時刻異常フラグをセットすることなく、S36に処理を進める。 If the difference value exceeds the specified value (YES in S34), the time abnormality flag is set (S35), and the process proceeds to S36. If the difference value does not exceed the specified value (NO in S34), the process proceeds to S36 without setting the time abnormality flag.

S36において、収集装置200は、1回目の計測時刻+差分値により、補正後の1回目の計測時刻を算出する(S36)。図4の例においては、1回目の計測時刻「2020/01/31 12:34:56」に差分「0000/00/05 00:00:03」を加えた「2020/02/05 12:34:59」が補正後の1回目の計測時刻となる。 In S36, the collecting device 200 calculates the corrected first measurement time from the first measurement time + the difference value (S36). In the example of FIG. 4, "2020/02/05 12:34" is obtained by adding the difference "0000/00/05 00:00:03" to the first measurement time "2020/01/31 12:34:56". : 59 "is the first measurement time after correction.

次いで、収集装置200は、補正後の1回目の計測時刻と計測周期から2~10回目の計測時刻を算出し(S37)、収集装置処理を終了する。図4の例においては、センサ411の計測周期は60秒であるため、2回目の計測時刻は、補正後の1回目の計測時刻に60秒を足したもの(2020/02/05 12:35:59)となる。3回目~10回目の計測時刻も同様に算出できる。 Next, the collecting device 200 calculates the 2nd to 10th measurement times from the corrected first measurement time and the measurement cycle (S37), and ends the collection device process. In the example of FIG. 4, since the measurement cycle of the sensor 411 is 60 seconds, the second measurement time is the corrected first measurement time plus 60 seconds (2020/02/05 12:35). : 59). The third to tenth measurement times can be calculated in the same manner.

[変形例]
上記実施の形態では、図1に示した情報収集システム10のように、センサ装置421に2つのセンサ411、412が接続され、中継装置400を介して収集装置200に接続される例について説明した。
[Modification example]
In the above embodiment, as in the information collection system 10 shown in FIG. 1, an example in which two sensors 411 and 412 are connected to the sensor device 421 and connected to the collection device 200 via the relay device 400 has been described. ..

しかし、これに限らず、図8のように情報収集システム11を構成してもよい。図8は、変形例に係る情報収集システムの構成例を示す図である。図8に示すように、情報収集システム11は、1つの収集装置200に対して、複数の中継装置400、500、600を備える。 However, the present invention is not limited to this, and the information collection system 11 may be configured as shown in FIG. FIG. 8 is a diagram showing a configuration example of an information collection system according to a modified example. As shown in FIG. 8, the information collection system 11 includes a plurality of relay devices 400, 500, and 600 for one collection device 200.

たとえば、複数の中継装置400、500、600は、それぞれ別の工場に備えるようにしてもよい。また、複数の端末300、301が収集装置200に接続可能であるようにしてもよい。 For example, the plurality of relay devices 400, 500, 600 may be provided in different factories. Further, a plurality of terminals 300 and 301 may be connected to the collecting device 200.

中継装置400は、図1の例と同様に、1つのセンサ装置421と接続し、センサ装置421は2つのセンサ411、412と接続する。 The relay device 400 is connected to one sensor device 421, and the sensor device 421 is connected to two sensors 411 and 412, as in the example of FIG.

これに対して、中継装置500は、2つのセンサ装置521、522と接続する。センサ装置521は2つのセンサ511、512と接続する。センサ装置522は2つのセンサ513、514と接続する。 On the other hand, the relay device 500 is connected to two sensor devices 521 and 522. The sensor device 521 is connected to two sensors 511 and 512. The sensor device 522 is connected to two sensors 513 and 514.

中継装置600は、2つのセンサ装置621、622と接続する。センサ装置621は1つのセンサ611と接続する。センサ装置622は1つのセンサ612と接続する。 The relay device 600 is connected to two sensor devices 621 and 622. The sensor device 621 is connected to one sensor 611. The sensor device 622 is connected to one sensor 612.

このように、中継装置は1つまたは複数備えるようにしてもよいし、センサ装置も1つまたは複数備えるようにしてもよい。また、1つのセンサ装置に対して1つのセンサを接続するようにしてもよいし、1つのセンサ装置に対して複数のセンサを接続するようにしてもよい。 As described above, one or a plurality of relay devices may be provided, and one or a plurality of sensor devices may be provided. Further, one sensor may be connected to one sensor device, or a plurality of sensors may be connected to one sensor device.

なお、本実施の形態においては、センサ装置421の記憶部434に10回分のセンサの計測データとそれぞれの計測データに対応する10回分の計測時刻を記憶するようにした。しかし、これに限らず、記憶部434に10回分のセンサの計測データと1回分の計測時刻を記憶するようにしてもよい。 In this embodiment, the storage unit 434 of the sensor device 421 stores the measurement data of the sensor for 10 times and the measurement time for 10 times corresponding to each measurement data. However, the present invention is not limited to this, and the storage unit 434 may store the measurement data of the sensor for 10 times and the measurement time for one time.

また、センサ装置421の送信データとして、10回分のセンサの計測データとそれぞれの計測データに対応する10回分の計測時刻から、10回分のセンサの計測データと1回分の計測時刻を生成するようにした。このように、本実施の形態においては、センサ装置421において、計測時刻のデータを10回分から1回分に削減して、送信データ容量を削減するようにしている。しかし、これに限らず、中継装置400側において、10回分の計測時刻を1回分の計測時刻に削減するようにしてもよい。また、1回分の計測時刻は、1回目の計測時刻であるものに限らず、2~10回目のいずれかの計測時刻であってもよい。 Further, as the transmission data of the sensor device 421, the measurement data of the sensor for 10 times and the measurement time for one time are generated from the measurement data of the sensor for 10 times and the measurement time for 10 times corresponding to each measurement data. did. As described above, in the present embodiment, the sensor device 421 reduces the measurement time data from 10 times to 1 time to reduce the transmission data capacity. However, the present invention is not limited to this, and the relay device 400 may reduce the measurement time for 10 times to the measurement time for one time. Further, the measurement time for one time is not limited to the time of the first measurement, and may be any of the measurement times of the 2nd to 10th times.

また、本実施の形態においては、収集装置200において、NTP時刻とRTC時刻との差分に基づいて時刻の補正処理を行うようにした。しかし、これに限らず、中継装置400において時刻の補正処理を行うようにしてもよい。また、時刻の補正処理を含む収集装置処理(図7)を収集装置200で実行するものに限らず、このような処理を、端末300側で実行させるようにしてもよい。 Further, in the present embodiment, the collecting device 200 performs the time correction process based on the difference between the NTP time and the RTC time. However, the present invention is not limited to this, and the relay device 400 may perform the time correction process. Further, the collection device processing (FIG. 7) including the time correction process is not limited to the one executed by the collection device 200, and such processing may be executed on the terminal 300 side.

本実施の形態において開示した構成を適用することにより、携帯電話などの通信機器、炊飯器、洗濯機、エアコンなどの家電機器、自動車などの車載機器や航空宇宙機器、医療機器、農業機器、信号機やエレベータ、自動販売機などの設備機器、工場などで稼働する産業機器と言った幅広い分野での利用が見込まれる。 By applying the configuration disclosed in this embodiment, communication equipment such as mobile phones, rice cookers, washing machines, home appliances such as air conditioners, in-vehicle equipment such as automobiles, aerospace equipment, medical equipment, agricultural equipment, and signal equipment It is expected to be used in a wide range of fields such as equipment such as elevators, vending machines, and industrial equipment operating in factories.

[態様]
上述した例示的な実施の形態は、以下の態様の具体例であることが当業者により理解される。
[Aspect]
It will be understood by those skilled in the art that the above-described exemplary embodiments are specific examples of the following embodiments.

(第1項)一態様に係る情報収集システムは、少なくとも1つのセンサと接続されるセンサ装置と、センサの計測値を収集する収集装置と、センサ装置と収集装置との間の通信を中継する中継装置とを備える。センサ装置は、時刻を計時する計時部を含む。センサ装置は、所定周期ごとに前記センサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値をセンサから取得する。センサ装置は、第1計測値を取得したときに計時部から第1時刻を取得する。センサ装置は、計測周期と第1時刻と複数の計測値とを含む計測情報を中継装置に送信する。計測情報には、センサ装置が計測情報を送信するときに計時部から取得した第2時刻が含まれる。中継装置は、計測情報を受信したときに、計時部とは異なる外部装置から第3時刻を取得する。中継装置は、計測情報と第3時刻とを収集装置に送信する。収集装置は、中継装置から受信した第2時刻と第3時刻との差分に基づいて第1時刻を補正する。収集装置は、補正した第1時刻と中継装置から受信した計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出する。 (Clause 1) The information collection system according to one aspect relays communication between a sensor device connected to at least one sensor, a collection device that collects measured values of the sensors, and the sensor device and the collection device. It is equipped with a relay device. The sensor device includes a timekeeping unit that measures the time. The sensor device acquires a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals. The sensor device acquires the first time from the timekeeping unit when the first measured value is acquired. The sensor device transmits measurement information including the measurement cycle, the first time, and a plurality of measured values to the relay device. The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information. When the relay device receives the measurement information, it acquires the third time from an external device different from the timekeeping unit. The relay device transmits the measurement information and the third time to the collection device. The collecting device corrects the first time based on the difference between the second time and the third time received from the relay device. The collecting device calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the measurement cycle received from the relay device.

第1項に記載の情報収集システムによれば、第1計測値を取得したときに計時部から取得した第1時刻と、第1計測値と第2計測値とを含む複数の計測値とを含む計測情報を中継装置に送信するため、収集装置が受信するデータの総量を削減することができる。また、センサ装置が計測情報を送信するときに計時部から取得した第2時刻と、外部装置から取得した第3時刻との差分に基づいて第1時刻を補正するため、センサ装置が計測値を取得した時刻を正確な時刻に補正することができる。 According to the information gathering system described in Section 1, the first time acquired from the timekeeping unit when the first measured value is acquired, and a plurality of measured values including the first measured value and the second measured value are obtained. Since the measurement information including the measurement information is transmitted to the relay device, the total amount of data received by the collection device can be reduced. Further, since the sensor device corrects the first time based on the difference between the second time acquired from the timekeeping unit and the third time acquired from the external device when the sensor device transmits the measurement information, the sensor device corrects the measured value. The acquired time can be corrected to an accurate time.

(第2項)第1項に記載の情報収集システムでは、センサ装置は、複数の計測値と、複数の計測値のそれぞれを取得したときに計時部から取得した時刻とを記憶する記憶部をさらに備える。 (Clause 2) In the information collection system described in paragraph 1, the sensor device stores a plurality of measured values and a storage unit that stores the time acquired from the timekeeping unit when each of the plurality of measured values is acquired. Further prepare.

第2項に記載の情報収集システムによれば、記憶部には、第2計測値を取得したときに計時部から取得した時刻が記憶される一方で、中継装置に対して計測情報を送信する際には、第2計測値を取得したときに計時部から取得した時刻を送信しないため、収集装置が受信するデータの総量を削減することができる。 According to the information collection system described in Section 2, the storage unit stores the time acquired from the timekeeping unit when the second measured value is acquired, while transmitting the measurement information to the relay device. In this case, since the time acquired from the timekeeping unit is not transmitted when the second measured value is acquired, the total amount of data received by the collecting device can be reduced.

(第3項)第1項または第2項に記載の情報収集システムでは、センサ装置は、複数のセンサと接続する。計測情報は、複数のセンサのそれぞれを識別する識別情報を含む。 (Clause 3) In the information gathering system according to the first or second paragraph, the sensor device is connected to a plurality of sensors. The measurement information includes identification information that identifies each of the plurality of sensors.

第3項に記載の情報収集システムによれば、センサ装置が複数のセンサと接続される場合において、収集装置側で複数のセンサを識別することができる。 According to the information collecting system according to the third item, when the sensor device is connected to a plurality of sensors, the collecting device can identify the plurality of sensors.

(第4項)第1項~第3項のいずれか1項に記載の情報収集システムでは、外部装置は、NTPサーバである。 (Clause 4) In the information collection system according to any one of paragraphs 1 to 3, the external device is an NTP server.

第4項に記載の情報収集システムによれば、センサ装置が計測情報を送信するときに計時部から取得した第2時刻と、NTPサーバから取得した第3時刻との差分に基づいて第1時刻を補正するため、センサ装置が計測値を取得した時刻を正確な時刻に補正することができる。 According to the information collection system described in Section 4, the first time is based on the difference between the second time acquired from the timekeeping unit when the sensor device transmits the measurement information and the third time acquired from the NTP server. Therefore, the time when the sensor device acquired the measured value can be corrected to an accurate time.

(第5項)第1項~第4項のいずれか1項に記載の情報収集システムでは、収集装置は、第2時刻と第3時刻との差分が規定値を超えた場合、計時部が計時する時刻が異常であると判定する。 (Clause 5) In the information gathering system according to any one of paragraphs 1 to 4, when the difference between the second time and the third time exceeds the specified value, the timekeeping unit of the collecting device is set. Judge that the time to be clocked is abnormal.

第5項に記載の情報収集システムによれば、計時部が計時する時刻が不正確である場合や、計時部に故障が発生した場合に、収集装置側で異常として認識することができる。 According to the information collecting system described in the fifth item, when the time measured by the time measuring unit is inaccurate, or when a failure occurs in the measuring unit, the collecting device can recognize it as an abnormality.

(第6項)一態様に係る収集装置は、少なくとも1つのセンサの計測値を収集する収集装置である。センサは、センサ装置と接続される。センサ装置が取得したセンサの計測値は、中継装置によって中継されて収集装置へ送信される。センサ装置は、時刻を計時する計時部を含む。センサ装置は、時刻を計時する計時部を含む。センサ装置は、所定周期ごとにセンサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値をセンサから取得する。センサ装置は、第1計測値を取得したときに計時部から第1時刻を取得する。センサ装置は、計測周期と第1時刻と複数の計測値とを含む計測情報を中継装置に送信する。計測情報には、センサ装置が計測情報を送信するときに計時部から取得した第2時刻が含まれる。中継装置は、計測情報を受信したときに、外部装置から第3時刻を取得する。中継装置は、計測情報と第3時刻とを収集装置に送信する。収集装置は、中継装置から受信した第2時刻と第3時刻との差分に基づいて第1時刻を補正する。収集装置は、補正した第1時刻と中継装置から受信した計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出する。 (Section 6) The collecting device according to one aspect is a collecting device that collects the measured values of at least one sensor. The sensor is connected to the sensor device. The measured value of the sensor acquired by the sensor device is relayed by the relay device and transmitted to the collection device. The sensor device includes a timekeeping unit that measures the time. The sensor device includes a timekeeping unit that measures the time. The sensor device acquires a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals. The sensor device acquires the first time from the timekeeping unit when the first measured value is acquired. The sensor device transmits measurement information including the measurement cycle, the first time, and a plurality of measured values to the relay device. The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information. When the relay device receives the measurement information, it acquires the third time from the external device. The relay device transmits the measurement information and the third time to the collection device. The collecting device corrects the first time based on the difference between the second time and the third time received from the relay device. The collecting device calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the measurement cycle received from the relay device.

第6項に記載の収集装置によれば、第1計測値を取得したときに計時部から取得した第1時刻と、第1計測値と第2計測値とを含む複数の計測値とを含む計測情報を中継装置に送信するため、収集装置が受信するデータの総量を削減することができる。また、センサ装置が計測情報を送信するときに計時部から取得した第2時刻と、外部装置から取得した第3時刻との差分に基づいて第1時刻を補正するため、センサ装置が計測値を取得した時刻を正確な時刻に補正することができる。 According to the collecting device according to the sixth item, the first time acquired from the timekeeping unit when the first measured value is acquired, and a plurality of measured values including the first measured value and the second measured value are included. Since the measurement information is transmitted to the relay device, the total amount of data received by the collection device can be reduced. Further, since the sensor device corrects the first time based on the difference between the second time acquired from the timekeeping unit and the third time acquired from the external device when the sensor device transmits the measurement information, the sensor device corrects the measured value. The acquired time can be corrected to an accurate time.

(第7項)一態様に係る制御方法は、情報収集システムを制御する。情報収集システムは、時刻を計時する計時部を備える。制御方法は、所定周期ごとにセンサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値を前記センサから取得するステップと、第1計測値を取得したときに計時部から第1時刻を取得するステップと、計測周期と第1時刻と複数の計測値とを含む計測情報を送信するステップとを含む。計測情報には、計測情報を送信するステップが計測情報を送信するときに計時部から取得した第2時刻が含まれる。制御方法は、送信された計測情報を受信したときに、計時部とは異なる外部装置から第3時刻を取得するステップと、第2時刻と第3時刻との差分に基づいて第1時刻を補正するステップと、補正した第1時刻と計測周期とに基づいて、複数の計測値のそれぞれがセンサによって取得された時刻を算出するステップとをさらに含む。 (Section 7) The control method according to one aspect controls an information collection system. The information gathering system includes a timekeeping unit that measures the time. The control method is a step of acquiring a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals, and acquiring the first measured value. Occasionally, it includes a step of acquiring the first time from the timekeeping unit and a step of transmitting measurement information including the measurement cycle, the first time, and a plurality of measured values. The measurement information includes a second time acquired from the timekeeping unit when the step of transmitting the measurement information transmits the measurement information. The control method corrects the first time based on the step of acquiring the third time from an external device different from the timekeeping unit and the difference between the second time and the third time when the transmitted measurement information is received. Further includes a step of calculating a time for each of the plurality of measured values to be acquired by the sensor based on the corrected first time and the measurement cycle.

第7項に記載の情報収集方法によれば、第1計測値を取得したときに計時部から取得した第1時刻と、第1計測値と第2計測値とを含む複数の計測値とを含む計測情報を送信するため、受信するデータの総量を削減することができる。また、計測情報を送信するときに計時部から取得した第2時刻と、外部装置から取得した第3時刻との差分に基づいて第1時刻を補正するため、計測値を取得した時刻を正確な時刻に補正することができる。 According to the information gathering method described in Section 7, the first time acquired from the timekeeping unit when the first measured value is acquired, and a plurality of measured values including the first measured value and the second measured value are obtained. Since the measurement information including the measurement information is transmitted, the total amount of data received can be reduced. In addition, since the first time is corrected based on the difference between the second time acquired from the timekeeping unit and the third time acquired from the external device when transmitting the measurement information, the time when the measured value is acquired is accurate. It can be corrected to the time.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 It should be considered that the embodiments disclosed this time are exemplary in all respects and not restrictive. The scope of the present invention is shown by the scope of claims rather than the above description, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.

10、11 情報収集システム、100 インターネット、200 収集装置、201 CPU、202 ROM、203 RAM、204 記憶部、205 通信インターフェイス、220 NTPサーバ、300、301 端末、400 中継装置、401 CPU、402 ROM、403 RAM、404 記憶部、405 通信インターフェイス、411、412 センサ、421 センサ装置、431 CPU、432 ROM、433 RAM、434 記憶部、435 通信インターフェイス、436 RTC、437 I/Oインターフェイス、500 中継装置、511、512、513、514 センサ、521、522 センサ装置、600 中継装置、611、612 センサ、621、622 センサ装置。 10, 11 Information collection system, 100 Internet, 200 collection device, 201 CPU, 202 ROM, 203 RAM, 204 storage, 205 communication interface, 220 NTP server, 300, 301 terminal, 400 relay device, 401 CPU, 402 ROM, 403 RAM, 404 storage, 405 communication interface, 411, 412 sensor, 421 sensor device, 431 CPU, 432 ROM, 433 RAM, 434 storage, 435 communication interface, 436 RTC, 437 I / O interface, 500 relay device, 511, 512, 513, 514 sensors, 521, 522 sensor devices, 600 relay devices, 611, 612 sensors, 621, 622 sensor devices.

Claims (7)

情報収集システムであって、
少なくとも1つのセンサと接続されるセンサ装置と、
前記センサの計測値を収集する収集装置と、
前記センサ装置と前記収集装置との間の通信を中継する中継装置とを備え、
前記センサ装置は、
時刻を計時する計時部を含み、
所定周期ごとに前記センサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値を前記センサから取得し、
前記第1計測値を取得したときに前記計時部から第1時刻を取得し、
前記所定周期と前記第1時刻と前記複数の計測値とを含む計測情報を前記中継装置に送信し、
前記計測情報には、前記センサ装置が前記計測情報を送信するときに前記計時部から取得した第2時刻が含まれ、
前記中継装置は、
前記計測情報を受信したときに、前記計時部とは異なる外部装置から第3時刻を取得し、
前記計測情報と前記第3時刻とを前記収集装置に送信し、
前記収集装置は、
前記中継装置から受信した前記第2時刻と前記第3時刻との差分に基づいて前記第1時刻を補正し、
補正した前記第1時刻と前記中継装置から受信した前記所定周期とに基づいて、前記複数の計測値のそれぞれが前記センサによって取得された時刻を算出する、情報収集システム。
It is an information gathering system
A sensor device connected to at least one sensor,
A collecting device that collects the measured values of the sensor, and
A relay device for relaying communication between the sensor device and the collection device is provided.
The sensor device is
Including the timekeeping part that measures the time
By acquiring the measured values of the sensor at predetermined intervals, a plurality of measured values including the first measured value and the second measured value are acquired from the sensor.
When the first measured value is acquired, the first time is acquired from the timekeeping unit, and the first time is acquired.
Measurement information including the predetermined cycle, the first time, and the plurality of measured values is transmitted to the relay device.
The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information.
The relay device is
When the measurement information is received, the third time is acquired from an external device different from the timekeeping unit, and the third time is acquired.
The measurement information and the third time are transmitted to the collection device, and the measurement information is transmitted to the collection device.
The collecting device is
The first time is corrected based on the difference between the second time and the third time received from the relay device.
An information collection system that calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the predetermined cycle received from the relay device.
前記センサ装置は、前記複数の計測値と、前記複数の計測値のそれぞれを取得したときに前記計時部から取得した時刻とを記憶する記憶部をさらに備える、請求項1に記載の情報収集システム。 The information collection system according to claim 1, wherein the sensor device further includes a storage unit that stores the plurality of measured values and the time acquired from the clock unit when each of the plurality of measured values is acquired. .. 前記センサ装置は、複数の前記センサと接続し、
前記計測情報は、複数の前記センサのそれぞれを識別する識別情報を含む、請求項1または請求項2に記載の情報収集システム。
The sensor device is connected to a plurality of the sensors.
The information collection system according to claim 1 or 2, wherein the measurement information includes identification information for identifying each of the plurality of sensors.
前記外部装置は、NTPサーバである、請求項1~請求項3のいずれか1項に記載の情報収集システム。 The information collection system according to any one of claims 1 to 3, wherein the external device is an NTP server. 前記収集装置は、前記第2時刻と前記第3時刻との差分が規定値を超えた場合、前記計時部が計時する時刻が異常であると判定する、請求項1~請求項4のいずれか1項に記載の情報収集システム。 Any one of claims 1 to 4, wherein the collecting device determines that the time measured by the time measuring unit is abnormal when the difference between the second time and the third time exceeds a specified value. The information collection system described in item 1. 少なくとも1つのセンサの計測値を収集する収集装置であって、
前記センサは、センサ装置と接続され、
前記センサ装置が取得した前記センサの計測値は、中継装置によって中継されて前記収集装置へ送信され、
前記センサ装置は、
時刻を計時する計時部を含み、
所定周期ごとに前記センサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値を前記センサから取得し、
前記第1計測値を取得したときに前記計時部から第1時刻を取得し、
前記所定周期と前記第1時刻と前記複数の計測値とを含む計測情報を前記中継装置に送信し、
前記計測情報には、前記センサ装置が前記計測情報を送信するときに前記計時部から取得した第2時刻が含まれ、
前記中継装置は、
前記計測情報を受信したときに、前記計時部とは異なる外部装置から第3時刻を取得し、
前記計測情報と前記第3時刻とを前記収集装置に送信し、
前記収集装置は、
前記中継装置から受信した前記第2時刻と前記第3時刻との差分に基づいて前記第1時刻を補正し、
補正した前記第1時刻と前記中継装置から受信した前記所定周期とに基づいて、前記複数の計測値のそれぞれが前記センサによって取得された時刻を算出する、収集装置。
A collection device that collects the measured values of at least one sensor.
The sensor is connected to the sensor device and
The measured value of the sensor acquired by the sensor device is relayed by the relay device and transmitted to the collection device.
The sensor device is
Including the timekeeping part that measures the time
By acquiring the measured values of the sensor at predetermined intervals, a plurality of measured values including the first measured value and the second measured value are acquired from the sensor.
When the first measured value is acquired, the first time is acquired from the timekeeping unit, and the first time is acquired.
Measurement information including the predetermined cycle, the first time, and the plurality of measured values is transmitted to the relay device.
The measurement information includes a second time acquired from the timekeeping unit when the sensor device transmits the measurement information.
The relay device is
When the measurement information is received, the third time is acquired from an external device different from the timekeeping unit, and the third time is acquired.
The measurement information and the third time are transmitted to the collection device, and the measurement information is transmitted to the collection device.
The collecting device is
The first time is corrected based on the difference between the second time and the third time received from the relay device.
A collecting device that calculates the time obtained by the sensor for each of the plurality of measured values based on the corrected first time and the predetermined cycle received from the relay device.
情報収集システムを制御する制御方法であって、
前記情報収集システムは、時刻を計時する計時部を備え、
前記制御方法は、
所定周期ごとにセンサの計測値を取得することにより、第1計測値と第2計測値とを含む複数の計測値を前記センサから取得するステップと、
前記第1計測値を取得したときに前記計時部から第1時刻を取得するステップと、
前記所定周期と前記第1時刻と前記複数の計測値とを含む計測情報を送信するステップとを含み、
前記計測情報には、前記計測情報を送信するステップが前記計測情報を送信するときに前記計時部から取得した第2時刻が含まれ、
前記制御方法は、
送信された前記計測情報を受信するステップと、
前記計測情報を受信するステップが前記計測情報を受信したときに、前記計時部とは異なる外部装置から第3時刻を取得するステップと、
前記第2時刻と前記第3時刻との差分に基づいて前記第1時刻を補正するステップと、
補正した前記第1時刻と前記所定周期とに基づいて、前記複数の計測値のそれぞれが前記センサによって取得された時刻を算出するステップとをさらに含む、制御方法。
It is a control method that controls the information collection system.
The information gathering system is provided with a timekeeping unit for measuring time.
The control method is
A step of acquiring a plurality of measured values including the first measured value and the second measured value from the sensor by acquiring the measured values of the sensor at predetermined intervals, and
The step of acquiring the first time from the timekeeping unit when the first measured value is acquired, and
A step of transmitting measurement information including the predetermined cycle, the first time, and the plurality of measured values is included.
The measurement information includes a second time acquired from the timekeeping unit when the step of transmitting the measurement information transmits the measurement information.
The control method is
The step of receiving the transmitted measurement information and
When the step of receiving the measurement information receives the measurement information, the step of acquiring the third time from an external device different from the timekeeping unit, and the step of acquiring the third time.
A step of correcting the first time based on the difference between the second time and the third time, and
A control method further comprising a step of calculating a time in which each of the plurality of measured values is acquired by the sensor based on the corrected first time and the predetermined period.
JP2020191692A 2020-11-18 2020-11-18 Information collection system, collection device, and control method Pending JP2022080557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020191692A JP2022080557A (en) 2020-11-18 2020-11-18 Information collection system, collection device, and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020191692A JP2022080557A (en) 2020-11-18 2020-11-18 Information collection system, collection device, and control method

Publications (1)

Publication Number Publication Date
JP2022080557A true JP2022080557A (en) 2022-05-30

Family

ID=81756949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020191692A Pending JP2022080557A (en) 2020-11-18 2020-11-18 Information collection system, collection device, and control method

Country Status (1)

Country Link
JP (1) JP2022080557A (en)

Similar Documents

Publication Publication Date Title
US20230262443A1 (en) System, Method and Apparatus for Building Operations Management
US8165699B2 (en) Programmable controller system
US20210126814A1 (en) System, Method and Apparatus for Integrated Building Operations Management
US20190097903A1 (en) System, Method and Apparatus for Bridge Interface Communication
US20070083294A1 (en) Wireless data acquisition system
US10841125B2 (en) Method for transmitting data from a sensor
JP2015516562A (en) Cloud-based building automation system
WO2009048275A2 (en) Apparatus of analizing the construction productivity using rfid based on the wireless communication and method thereof
JP5207378B2 (en) Sensor network system and sensor node management method
JP2010049584A (en) Sensor node and sensor network system
US9693174B2 (en) Wireless device, wireless communication system, wireless module, interface module, and communication method
JP2007087385A (en) System and method for managing test probe
JP2010282269A (en) Radio network process monitoring system
KR101178669B1 (en) APPARATUS AND METHOD FOR ASSET TRACKING BASED ON Ubiquitous Sensor Network USING MOTION SENSING
JP2022080557A (en) Information collection system, collection device, and control method
EP2455677A1 (en) Air-conditioning control monitoring device and air-conditioning control monitoring system
Giannopoulos et al. Design guidelines for building a wireless sensor network for environmental monitoring
EP3602212B1 (en) Automatic calibration of a measuring circuit
EP3499928B1 (en) Determining signal quality in a low-power wide-area network
CN215817653U (en) Electric power monitoring system
US20140052302A1 (en) Method and sensor node for managing power consumption and power consumption information collection apparatus using the same
JP5060142B2 (en) Control system with auto-configuration function for wireless sensor
JP2012185528A (en) State monitoring device for field apparatus
JP6768496B2 (en) Wireless terminal device and wireless terminal system
CN116266845B (en) Data transmission method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240213

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20240410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240515

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240625