JP7187849B2 - Data collection system and data collection method - Google Patents

Data collection system and data collection method Download PDF

Info

Publication number
JP7187849B2
JP7187849B2 JP2018129911A JP2018129911A JP7187849B2 JP 7187849 B2 JP7187849 B2 JP 7187849B2 JP 2018129911 A JP2018129911 A JP 2018129911A JP 2018129911 A JP2018129911 A JP 2018129911A JP 7187849 B2 JP7187849 B2 JP 7187849B2
Authority
JP
Japan
Prior art keywords
information
master
edge devices
detection information
edge
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
JP2018129911A
Other languages
Japanese (ja)
Other versions
JP2020009170A (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.)
Toppan Inc
Original Assignee
Toppan Inc
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 Toppan Inc filed Critical Toppan Inc
Priority to JP2018129911A priority Critical patent/JP7187849B2/en
Publication of JP2020009170A publication Critical patent/JP2020009170A/en
Application granted granted Critical
Publication of JP7187849B2 publication Critical patent/JP7187849B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Description

本発明は、データ収集システム及びデータ収集方法に関する。 The present invention relates to data collection systems and data collection methods.

IoT(Internet of Things)システムでは、各種のデータをセンサーで取得し、取得したデータをインターネットを経由してクラウドサーバで収集して、データ解析を行っている(例えば特許文献1)。このようなシステムでは、センサーからのデータをインターネット上のクラウドサーバに送るために、センサーを搭載したエッジデバイスと、エッジデバイスからのデータをインターネットを経由してクラウドサーバに送る中継機とが設けられる。エッジデバイスは中継機と接続するためのインターフェースを備える。中継機は、エッジデバイスと接続するためのインターフェースと、インターネットを介してクラウドサーバに接続するためのインターフェースを備える。 In an IoT (Internet of Things) system, various data are acquired by sensors, the acquired data are collected by a cloud server via the Internet, and data analysis is performed (for example, Patent Document 1). In such a system, in order to send data from the sensor to a cloud server on the Internet, an edge device equipped with the sensor and a repeater that sends data from the edge device to the cloud server via the Internet are provided. . The edge device has an interface for connecting with the repeater. The repeater has an interface for connecting to the edge device and an interface for connecting to the cloud server via the Internet.

特開2017-188767号公報JP 2017-188767 A

IoTシステムの普及とともに、各種のデータを検出するセンサーの数は増加し、これに伴い、エッジデバイスの数は増加している。エッジデバイスの数が増加すると、1台の中継機当たりに接続されるエッジデバイスの数が増加し、中継機の負荷が増大する。そこで、中継機の負荷の増大に対処できるように、高負荷処理に耐え得る中継機を導入することが考えられる。しかしながら、高負荷処理に耐え得る中継機は高額である。また、中継機の台数を増加させ、1台当たりの中継機の負荷を軽減させることが考えられる。しかしながら、中継機は高価であり、中継機の台数を増加させると、システム構築費が増大する。 With the spread of IoT systems, the number of sensors that detect various types of data has increased, and along with this, the number of edge devices has also increased. As the number of edge devices increases, the number of edge devices connected to one repeater increases, increasing the load on the repeater. Therefore, it is conceivable to introduce a repeater capable of withstanding high-load processing so as to cope with the increased load on the repeater. However, repeaters that can withstand high-load processing are expensive. It is also conceivable to increase the number of repeaters and reduce the load on each repeater. However, repeaters are expensive, and increasing the number of repeaters increases system construction costs.

上述の課題を鑑み、本発明は、中継機の負荷の増大を抑制できるデータ収集システム及びデータ収集方法を提供することを目的とする。 SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a data collection system and a data collection method capable of suppressing an increase in the load on a repeater.

上述の課題を鑑み、本発明の一態様に係るデータ収集システムは、複数のエッジデバイスにより検出された情報をサーバ装置へ集約するデータ収集システムであって、前記複数のエッジデバイス間の通信においてスレーブとして動作し、検出した検知情報に送信元を示す第1送信元情報を付加して送信するスレーブデバイスと、前記複数のエッジデバイス間の通信においてマスターとして動作し、所定期間に受信した一以上の前記検知情報に、前記第1送信元情報とは異なる送信元を示す第2送信元情報を付加して送信するマスターデバイスと、前記第1送信元情報が付加された前記検知情報を受信した場合は前記検知情報を取得する取得処理を行わず、前記第2送信元情報が付加された前記検知情報を受信した場合に前記取得処理を行い、受信した前記検知情報を前記サーバ装置に送信する中継機を有し、前記マスターデバイスは、前記複数のエッジデバイス間の通信においてマスターとして動作しない場合、前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記複数のエッジデバイス間の通信においてマスターとして動作している間に前記第1送信元情報が付加された前記検知情報を受信した場合、マスターとしての動作を継続させることを特徴とする。 In view of the above-described problems, a data collection system according to one aspect of the present invention is a data collection system that collects information detected by a plurality of edge devices in a server device, and includes slave devices in communication between the plurality of edge devices. and a slave device that adds first source information indicating the source to the detected detection information and transmits it; A master device that adds second source information indicating a source different from the first source information to the detection information and transmits the detection information, and when receiving the detection information to which the first source information is added, A relay device that does not perform acquisition processing for acquiring the detection information, performs the acquisition processing when receiving the detection information to which the second source information is added, and transmits the received detection information to the server device. and when the master device does not operate as a master in communication between the plurality of edge devices, the master device operates as a slave in communication among the plurality of edge devices and operates as a master in communication among the plurality of edge devices. If the detection information to which the first transmission source information is added is received while the detection information is being sent, the operation as the master is continued .

本発明の一態様に係るデータ収集方法は、複数のエッジデバイスにより検出された情報を集約するデータ収集方法であって、スレーブデバイスが、前記複数のエッジデバイス間の通信においてスレーブとして動作し、検出した検知情報に送信元を示す第1送信元情報を付加して送信する工程と、マスターデバイスが、前記複数のエッジデバイス間の通信においてマスターとして動作し、所定期間に受信した一以上の前記検知情報に、前記第1送信元情報とは異なる送信元を示す第2送信元情報を付加して送信する工程と、中継機が、前記第1送信元情報が付加された前記検知情報を受信した場合は前記検知情報を取得する取得処理を行わず、前記第2送信元情報が付加された前記検知情報を受信した場合に前記取得処理を行い、受信した前記検知情報を前記サーバ装置に送信する工程を含み、前記マスターデバイスは、前記複数のエッジデバイス間の通信においてマスターとして動作しない場合、前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記複数のエッジデバイス間の通信においてマスターとして動作している間に前記第1送信元情報が付加された前記検知情報を受信した場合、マスターとしての動作を継続させることを特徴とするデータ収集方法である。 A data collection method according to an aspect of the present invention is a data collection method for aggregating information detected by a plurality of edge devices, wherein a slave device operates as a slave in communication between the plurality of edge devices, detects a step of adding first transmission source information indicating a transmission source to the detection information obtained and transmitting the detected information, and a master device acting as a master in communication between the plurality of edge devices and receiving one or more pieces of the detection information during a predetermined period of time. a step of adding second transmission source information indicating a transmission source different from the first transmission source information to and transmitting the detection information to which the relay device has received the detection information to which the first transmission source information is added; does not perform acquisition processing for acquiring the detection information, performs the acquisition processing when the detection information to which the second source information is added is received, and transmits the received detection information to the server device wherein the master device operates as a slave in communication between the plurality of edge devices and operates as a master in communication among the plurality of edge devices when the master device does not operate as a master in communication among the plurality of edge devices. and continuing the operation as a master when the detection information to which the first source information is added is received while the data collection method is in progress.

本発明によれば、複数のエッジデバイスに、マスター機能を有するエッジデバイスを配置し、マスター機能を有するエッジデバイスを中継用デバイスとして用いる。このため、エッジデバイスの数が増加した場合でも、中継機と通信を行うエッジデバイスの数を増加させないようにすることができ、中継機の負荷の増大を抑制できる。 According to the present invention, an edge device with a master function is arranged in a plurality of edge devices, and the edge device with a master function is used as a relay device. Therefore, even if the number of edge devices increases, it is possible to prevent the number of edge devices communicating with the repeater from increasing, thereby suppressing an increase in the load on the repeater.

本発明の第1の実施形態に係るデータ収集システムの概要の説明図である。BRIEF DESCRIPTION OF THE DRAWINGS It is explanatory drawing of the outline|summary of the data collection system which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るデータ収集システムでの階層構造の説明図である。FIG. 2 is an explanatory diagram of a hierarchical structure in the data collection system according to the first embodiment of the present invention; FIG. 本発明の第1の実施形態に係るデータ収集システムにおける中継用デバイスとなるエッジデバイスの動作を示すフローチャートである。4 is a flow chart showing the operation of an edge device that serves as a relay device in the data collection system according to the first embodiment of the present invention; 本発明の第2の実施形態に係るデータ収集システムの概要の説明図である。It is an explanatory view of an outline of a data collection system concerning a 2nd embodiment of the present invention. 本発明の第3の実施形態に係るデータ収集システムにおける中継用デバイスとなるエッジデバイスの動作を示すフローチャートである。FIG. 12 is a flow chart showing the operation of an edge device, which is a relay device, in the data collection system according to the third embodiment of the present invention; FIG. 本発明の第4の実施形態に係るデータ収集システムで用いられるコードの説明図である。FIG. 11 is an explanatory diagram of codes used in the data collection system according to the fourth embodiment of the present invention; 本発明の第4の実施形態に係るデータ収集システムでのデータ通信のシーケンス図である。FIG. 11 is a sequence diagram of data communication in the data collection system according to the fourth embodiment of the present invention; 本発明の第5の実施形態に係るデータ収集システムでのデータ通信のシーケンス図である。FIG. 12 is a sequence diagram of data communication in the data collection system according to the fifth embodiment of the present invention;

以下、本発明の実施の形態について図面を参照しながら説明する。
<第1の実施形態>
図1は、本発明の第1の実施形態に係るデータ収集システム1の概要の説明図である。図1に示すように、本発明の第1の実施形態に係るデータ収集システム1は、複数のエッジデバイス10(10a-1~10a-4、10b-1~10b-4、10c-1~10c-4、10d-1~10d-4)と、中継機11と、クラウドサーバ12とから構成される。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<First embodiment>
FIG. 1 is an explanatory diagram of an overview of a data collection system 1 according to the first embodiment of the present invention. As shown in FIG. 1, the data collection system 1 according to the first embodiment of the present invention includes a plurality of edge devices 10 (10a-1 to 10a-4, 10b-1 to 10b-4, 10c-1 to 10c -4, 10d-1 to 10d-4), a repeater 11, and a cloud server 12.

エッジデバイス10(10a-1~10a-4、10b-1~10b-4、10c-1~10c-4、10d-1~10d-4)は、1個若しくはそれ以上の各種のセンサーを搭載している。ここで、センサーにより検知された情報は、「検知情報」の一例である。 Edge devices 10 (10a-1 to 10a-4, 10b-1 to 10b-4, 10c-1 to 10c-4, 10d-1 to 10d-4) are equipped with one or more various sensors. ing. Here, the information detected by the sensor is an example of "detection information".

センサーとしては、温度センサー、湿度センサー、加速度センサー、振動センサー、人感センサー等が考えられる。また、各種機器の設定状態、故障の発生等の検出を行うセンサーや、ICカードの読み取りセンサー、商品や製造ラインを撮影するカメラ等もセンサーに含まれる。なお、ここでは、16台のエッジデバイス10(10a-1~10a-4、10b-1~10b-4、10c-1~10c-4、10d-1~10d-4)が示されているが、エッジデバイスの数は任意である。なお、以下の説明では、エッジデバイスを特に限定しない場合、単に、エッジデバイス10と呼ぶこともある。 A temperature sensor, a humidity sensor, an acceleration sensor, a vibration sensor, a motion sensor, etc. can be considered as the sensor. Sensors also include sensors that detect the setting states of various devices and the occurrence of failures, sensors that read IC cards, and cameras that take pictures of products and production lines. Although 16 edge devices 10 (10a-1 to 10a-4, 10b-1 to 10b-4, 10c-1 to 10c-4, 10d-1 to 10d-4) are shown here, , the number of edge devices is arbitrary. In the following description, the edge device may be simply referred to as the edge device 10 when the edge device is not particularly limited.

各エッジデバイス10は、中継機11と接続するためのインターフェースを有している。中継機11と接続するためのインターフェースとしては、近距離無線通信(例えばBluetooth Low Energy(登録商標)、以下BLEと称する)が用いられる。すなわち、各エッジデバイス10は、BLEのスレーブ機能を有している。更に、各グループ中の少なくとも1台のエッジデバイス10は、BLEのマスター/スレーブ動作切替可能なエッジデバイスである。この例では、エッジデバイス10a-1、エッジデバイス10b-1、エッジデバイス10c-1、エッジデバイス10d-1は、BLEのマスター/スレーブ動作切替可能なエッジデバイスであるとする。なお、図では、「*」がマスター/スレーブ動作切替可能なエッジデバイスを示している。 Each edge device 10 has an interface for connecting with the repeater 11 . As an interface for connecting with the repeater 11, short-range wireless communication (for example, Bluetooth Low Energy (registered trademark), hereinafter referred to as BLE) is used. That is, each edge device 10 has a BLE slave function. Further, at least one edge device 10 in each group is a BLE master/slave switchable edge device. In this example, the edge device 10a-1, the edge device 10b-1, the edge device 10c-1, and the edge device 10d-1 are assumed to be edge devices capable of switching BLE master/slave operation. In the figure, "*" indicates an edge device capable of switching master/slave operation.

ここで、マスター/スレーブ動作切替可能なエッジデバイスは、「マスターデバイス」の一例である。また、マスター/スレーブ動作切替可能ではないエッジデバイスは、「スレーブデバイス」の一例である。 Here, an edge device capable of switching between master/slave operation is an example of a "master device." An edge device that is not switchable between master/slave operation is an example of a "slave device."

複数のエッジデバイス10は、複数のグループに分割されている。この例では、エッジデバイス10a-1~10a-4はグループAに属するエッジデバイスであり、エッジデバイス10b-1~10b-4はグループBに属するエッジデバイスであり、エッジデバイス10c-1~10c-4はグループCに属するエッジデバイスであり、エッジデバイス10d-1~10d-4はグループDに属するエッジデバイスである。 A plurality of edge devices 10 are divided into a plurality of groups. In this example, edge devices 10a-1 to 10a-4 belong to group A, edge devices 10b-1 to 10b-4 belong to group B, and edge devices 10c-1 to 10c- 4 is an edge device belonging to group C, and edge devices 10d-1 to 10d-4 are edge devices belonging to group D. FIG.

なお、この例では、16台のエッジデバイス10(10a-1~10a-4、10b-1~10b-4、10c-1~10c-4、10d-1~10d-4)を、グループA~Dの4つのグループに分割し、各グループ毎に4台のエッジデバイス10を配置しているが、エッジデバイスの数、グループの数、各グループ毎のエッジデバイスの配置数は、これに限定されるものではない。各グループの中に少なくとも1つのマスター/スレーブ動作切替可能なエッジデバイスが存在すれば、どのように分割しても良い。 In this example, 16 edge devices 10 (10a-1 to 10a-4, 10b-1 to 10b-4, 10c-1 to 10c-4, 10d-1 to 10d-4) are grouped into groups A to D is divided into four groups, and four edge devices 10 are arranged in each group, but the number of edge devices, the number of groups, and the number of edge devices arranged in each group are limited to this. not something. As long as each group has at least one edge device capable of switching between master/slave operation, any division may be made.

中継機11は、エッジデバイス10とクラウドサーバ12との間を中継する。中継機11は、エッジデバイス10と接続するためのインターフェースと、クラウドサーバ12と接続するためのインターフェースとを備えている。エッジデバイス10と接続するためのインターフェースは、BLE等の近距離無線通信のマスター機能である。クラウドサーバ12と接続するためのインターフェースは、有線LAN(Local Area Network)、無線LAN、3G又は4G携帯通信網等のインターネットへの接続インターフェースである。 The repeater 11 relays between the edge device 10 and the cloud server 12 . The repeater 11 has an interface for connecting with the edge device 10 and an interface for connecting with the cloud server 12 . An interface for connecting with the edge device 10 is a master function of short-range wireless communication such as BLE. The interface for connecting with the cloud server 12 is a connection interface to the Internet such as a wired LAN (Local Area Network), wireless LAN, 3G or 4G mobile communication network.

なお、中継機11とクラウドサーバ12との通信においては、中継機11とクラウドサーバ12とが直接通信を行ってもよいし、中継機11とクラウドサーバ12との間に、別の図示しない中継基地があり、その中継基地を介して中継機11とクラウドサーバ12とが通信を行ってもよい。つまり、中継機11は、クラウドサーバ12と通信可能なインターフェースを備える代わりに、中継機11とクラウドサーバ12との間にある中継基地と通信可能なインターフェースを備える構成であってもよい。
この場合、データ収集システム1を低減できる可能性がある。例えば、クラウドサーバ12が、3G又は4Gなどの携帯通信網に接続するサーバ装置である場合、当該携帯通信網による通信サービスを提供している携帯キャリアとの月額契約が必要となり、ランニング費用が増加してしまう。これに対し、中継機11とクラウドサーバ12との通信網の一部に、携帯通信網に比べて安価な通信網を用いることができれば、ランニング費用のかさむ携帯通信網を用いた通信回線の使用を減少させることができ、通信に係る費用を抑制することが可能となる。ここで携帯通信網に比べて安価な通信網としては、例えば、LPWA(Low Power Wide Area)が挙げられる。LPWAの一例としては、LoRa(登録商標)規格がある。LPWAでは、携帯通信網と比較して低消費電力、低ビットレートの通信を原則としていることから、回線の使用料が有料である場合でも、携帯通信網に比べれば安価である場合がほとんどであると考えられる。
上述したシステムの一部にLPWAの回線を使用する具体的な構成について説明する。データ収集システム1は、例えば、エッジデバイス10と、中継機11と、中継基地と、クラウドサーバ12とを備える。中継機11と中継基地とはLPWAにより接続される。中継基地とクラウドサーバ12とは携帯通信網により接続される。中継機11はエッジデバイス10から受信した情報を、LPWAにより中継基地に送信する。中継基地は、中継機11から受信した情報をクラウドサーバ12に送信する。
In the communication between the relay device 11 and the cloud server 12, the relay device 11 and the cloud server 12 may communicate directly, or another relay device (not shown) may be provided between the relay device 11 and the cloud server 12. There may be a base, and the relay machine 11 and the cloud server 12 may communicate via the relay base. That is, instead of having an interface capable of communicating with the cloud server 12 , the relay device 11 may be configured to have an interface capable of communicating with a relay base between the relay device 11 and the cloud server 12 .
In this case, there is a possibility that the data collection system 1 can be reduced. For example, if the cloud server 12 is a server device that connects to a mobile communication network such as 3G or 4G, a monthly contract with a mobile carrier that provides communication services via the mobile communication network is required, increasing running costs. Resulting in. On the other hand, if a communication network that is cheaper than a mobile communication network can be used as a part of the communication network between the repeater 11 and the cloud server 12, it would be possible to use a communication line using the mobile communication network, which has high running costs. can be reduced, and the costs related to communication can be suppressed. An example of a communication network that is cheaper than a mobile communication network is LPWA (Low Power Wide Area). An example of LPWA is the LoRa (registered trademark) standard. LPWA is based on the principle of low power consumption and low bit rate communication compared to mobile communication networks. It is believed that there is.
A specific configuration using an LPWA line for part of the system described above will now be described. The data collection system 1 includes, for example, an edge device 10, a relay machine 11, a relay base, and a cloud server 12. The repeater 11 and the repeater base are connected by LPWA. The relay station and the cloud server 12 are connected by a mobile communication network. The repeater 11 transmits the information received from the edge device 10 to the repeater base by LPWA. The relay station transmits the information received from the relay machine 11 to the cloud server 12 .

また、上記では、クラウドサーバ12が携帯通信網と接続する場合を例示して説明したが、クラウドサーバ12は、必ずしも携帯通信網と接続する必要はなく、固定通信網と接続してもよい。固定通信網は、例えば、有線LAN等である。この場合、固定通信網の契約費が携帯通信網のランニング費用と比較して安価であれは、コストを抑えることが可能である。クラウドサーバ12と接続する固定通信網は、外部ネットワークと接続してもよいし接続しなくともよい。また、外部ネットワークに代えて、工場などでよく使われるPLC(Power Line Communications)と接続してもよい。固定通信網が外部ネットワークに接続されていない場合には、クラウドサーバ12はローカルサーバとして機能する。
クラウドサーバ12が固定通信網と接続する場合、中継機11と中継基地とは、例えば、LPWAにより接続され、中継基地とクラウドサーバ12とは固定通信網(例えば、有線LAN)により接続される。
Moreover, although the case where the cloud server 12 connects with a mobile communication network was illustrated and demonstrated above, the cloud server 12 does not necessarily need to connect with a mobile communication network, and may connect with a fixed communication network. The fixed communication network is, for example, a wired LAN or the like. In this case, if the contract fee for the fixed communication network is lower than the running cost for the mobile communication network, it is possible to keep costs down. The fixed communication network connected to the cloud server 12 may or may not be connected to an external network. Also, instead of the external network, a PLC (Power Line Communications) that is often used in factories or the like may be connected. When the fixed communication network is not connected to an external network, cloud server 12 functions as a local server.
When the cloud server 12 is connected to a fixed communication network, the repeater 11 and the relay base are connected by, for example, LPWA, and the relay base and the cloud server 12 are connected by a fixed communication network (eg, wired LAN).

クラウドサーバ12は、インターネットを通じてアクセス可能なサーバ装置である。クラウドサーバ12には、エッジデバイス10により検出された各種のセンサーの情報が収集される。 The cloud server 12 is a server device accessible through the Internet. Information of various sensors detected by the edge device 10 is collected in the cloud server 12 .

次に、本発明の第1の実施形態に係るデータ収集システム1におけるデータ通信の概要について説明する。 Next, an outline of data communication in the data collection system 1 according to the first embodiment of the present invention will be described.

本実施形態では、中継機11の負荷を低減させるために、エッジデバイス10を複数のグループに分割し、各グループの中の1つのエッジデバイス10をグループ内の中継用デバイスとして機能させている。中継用デバイスとして機能させるエッジデバイスは、マスター/スレーブ動作切替可能なエッジデバイスが行う。前述したように、この例では、マスター/スレーブ動作切替可能なエッジデバイスは、エッジデバイス10a-1、10b-1、10c-1、10d-1である。
マスター/スレーブ動作切替可能なエッジデバイスは、通常は、スレーブとして動作し、定期的、又は不定期にマスター動作に切り替わる。マスター/スレーブ動作切替可能なエッジデバイスがマスター動作に切り替わった場合、例えば、グループAではエッジデバイス10a-1が中継用デバイスとなり、グループBではエッジデバイス10b-1が中継用デバイスとなり、グループCではエッジデバイス10c-1が中継用デバイスとなり、グループDではエッジデバイス10d-1が中継用デバイスとなる。このように、各グループの中の1つのエッジデバイス10を中継用デバイスとすることで、階層構造の通信システムとなる。
In this embodiment, in order to reduce the load on the repeater 11, the edge devices 10 are divided into a plurality of groups, and one edge device 10 in each group functions as a relay device within the group. An edge device capable of switching between master/slave operation functions as a relay device. As described above, edge devices capable of switching between master/slave operation are edge devices 10a-1, 10b-1, 10c-1, and 10d-1 in this example.
An edge device capable of switching master/slave operation normally operates as a slave and switches to master operation periodically or irregularly. When an edge device capable of switching master/slave operation switches to master operation, for example, in group A, the edge device 10a-1 becomes a relay device, in group B, the edge device 10b-1 becomes a relay device, and in group C, the edge device 10b-1 becomes a relay device. The edge device 10c-1 is the relay device, and in group D the edge device 10d-1 is the relay device. In this way, by using one edge device 10 in each group as a relay device, the communication system has a hierarchical structure.

図2は、本発明の第1の実施形態に係るデータ収集システム1での階層構造の説明図である。本発明の第1の実施形態に係るデータ収集システム1では、図2に示すように、中継機11の下の階層に、各グループの中継用デバイスとなるエッジデバイス10a-1、10b-1、10c-1、10d-1が来るような階層構造となる。 FIG. 2 is an explanatory diagram of the hierarchical structure in the data collection system 1 according to the first embodiment of the present invention. In the data collection system 1 according to the first embodiment of the present invention, as shown in FIG. The hierarchical structure is such that 10c-1 and 10d-1 come.

グループAにおいては、エッジデバイス10a-1が中継用デバイスとなる。中継用デバイスとなるエッジデバイス10a-1は、マスター動作とスレーブ動作とに切り替えられる。エッジデバイス10a-1がマスター動作となる間に、エッジデバイス10a-1とグループAに属する周辺のエッジデバイス10a-2~10a-4とが接続され、周辺のエッジデバイス10a-2~10a-4の情報がエッジデバイス10a-1に送られる。エッジデバイス10a-1が中継機11に対するスレーブになると、中継機11とエッジデバイス10a-1とが接続され、グループAに属するエッジデバイス10a-1~10a-4の情報は、エッジデバイス10a-1から中継機11に送られ、中継機11からインターネット上のクラウドサーバ12に送られる。 In group A, the edge device 10a-1 is the relay device. The edge device 10a-1 acting as a relay device is switched between master operation and slave operation. While the edge device 10a-1 is in master operation, the edge device 10a-1 is connected to the peripheral edge devices 10a-2 to 10a-4 belonging to group A, and the peripheral edge devices 10a-2 to 10a-4 are connected. is sent to the edge device 10a-1. When the edge device 10a-1 becomes a slave to the repeater 11, the repeater 11 and the edge device 10a-1 are connected, and the information of the edge devices 10a-1 to 10a-4 belonging to group A is stored in the edge device 10a-1. is sent from the relay machine 11 to the cloud server 12 on the Internet.

より具体的には、グループA内のエッジデバイス10a-1~10a-4は、同一のグループであることを示すグループコードを送信する。ここで、グループコードは、「第1送信元情報」の一例である。
エッジデバイス10a-1がマスター動作となると、周辺のエッジデバイスの情報を受信し、グループコードから、同一のグループに属するエッジデバイスからの情報であるか否かを判定する。エッジデバイス10a-1は、グループコードから、グループA内のエッジデバイスからの情報であると判定すると、その情報を取得する。
なお、このとき、他のグループにおいて中継用デバイスとなるエッジデバイス10b-1、10c-1、10d-1がマスター動作となっていても、グループコードが異なるので、エッジデバイス10a-2~10a-4からの情報は受信しない。また、中継機11は、グループコードが付加された情報は受信しない。
中継用デバイスとなるエッジデバイス10a-1は、スレーブ動作になると、中継機11への通信であることを示すコードを付加して、中継機11と接続する。ここで、中継機11への通信であることを示すコードは、「第2送信元情報」の一例である。
そして、エッジデバイス10a-1は、自身の情報と、グループA内のエッジデバイス10a-2~10a-4からの情報を中継機11に転送する。中継機11は、グループA内のエッジデバイス10a-1~10a-4からの情報をインターネット上のクラウドサーバ12に送る。
More specifically, the edge devices 10a-1 to 10a-4 in group A transmit group codes indicating that they are in the same group. Here, the group code is an example of "first source information".
When the edge device 10a-1 becomes the master operation, it receives information from peripheral edge devices and determines from the group code whether or not the information is from edge devices belonging to the same group. When the edge device 10a-1 determines from the group code that the information is from an edge device in group A, it acquires the information.
At this time, even if the edge devices 10b-1, 10c-1, and 10d-1, which are relay devices in other groups, are in master operation, the edge devices 10a-2 to 10a-1 have different group codes. No information from 4 is received. Also, the repeater 11 does not receive information to which a group code is added.
When the edge device 10a-1 acting as a relay device becomes a slave operation, it adds a code indicating communication to the relay device 11 and connects to the relay device 11. FIG. Here, the code indicating that the communication is to the repeater 11 is an example of the "second source information".
Then, the edge device 10a-1 transfers its own information and the information from the edge devices 10a-2 to 10a-4 in group A to the repeater 11. FIG. The repeater 11 sends information from the edge devices 10a-1 to 10a-4 in group A to the cloud server 12 on the Internet.

以上のようにして、グループAにおいては、グループAに属するエッジデバイス10a-2~10a-4の情報は、中継用デバイスとなるエッジデバイス10a-1で一旦中継される。そして、エッジデバイス10a-1~10a-4の情報は、中継機11を介して、クラウドサーバ12に送られる。グループB、C、Dにおいても同様に、グループB、C、Dに属する周辺のエッジデバイス10b-2~10b-4、10c-2~10c-4、10d-2~10d-4の情報は、中継用デバイスとなるエッジデバイス10b-1、10c-1、10d-1で一旦中継される。そして、エッジデバイス10b-1~10b-4、10c-1~10c-4、10d-1~10d-4の情報は、中継機11を介して、クラウドサーバ12に送られる。 As described above, in group A, the information of the edge devices 10a-2 to 10a-4 belonging to group A is once relayed by the edge device 10a-1 as a relay device. Information on the edge devices 10a-1 to 10a-4 is sent to the cloud server 12 via the repeater 11. FIG. Similarly, in groups B, C, and D, the information of peripheral edge devices 10b-2 to 10b-4, 10c-2 to 10c-4, and 10d-2 to 10d-4 belonging to groups B, C, and D are The edge devices 10b-1, 10c-1, and 10d-1 serving as relay devices temporarily relay. Information on the edge devices 10b-1 to 10b-4, 10c-1 to 10c-4, and 10d-1 to 10d-4 is sent to the cloud server 12 via the repeater 11. FIG.

図3は、本発明の第1の実施形態に係るデータ収集システムにおける中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)の動作を示すフローチャートである。ここでは、中継用デバイスとなるエッジデバイスとして、グループAのエッジデバイス10a-1での処理について説明する。他のグループの中継用デバイスとなるエッジデバイス10(10b-1、10c-1、10d-1)の処理も同様である。 FIG. 3 is a flow chart showing the operation of the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) that serve as relay devices in the data collection system according to the first embodiment of the present invention. . Here, processing in the edge device 10a-1 of group A, which is an edge device serving as a relay device, will be described. The same applies to edge devices 10 (10b-1, 10c-1, 10d-1) that are relay devices of other groups.

(ステップS1)エッジデバイス10a-1をスレーブ動作に設定する。このとき、周辺のエッジデバイス10a-2~10a-4は、識別IDを含む情報を周囲に発信している。また、この情報には、識別IDとともに、グループを示すコード(グループコード)と、グループ内の通信であることを示す情報(レイヤーコード)とが含まれている。ここで、識別IDは、「識別情報」の一例である。 (Step S1) Set the edge device 10a-1 to slave operation. At this time, peripheral edge devices 10a-2 to 10a-4 transmit information including identification IDs to the surroundings. In addition to the identification ID, this information includes a code indicating a group (group code) and information indicating communication within a group (layer code). Here, the identification ID is an example of "identification information".

(ステップS2)エッジデバイス10a-1は、所定時間経過したか否かを判定し、所定時間経過したら(ステップS2:Yes)、処理をステップS3に進める。 (Step S2) The edge device 10a-1 determines whether or not a predetermined period of time has elapsed, and when the predetermined period of time has elapsed (step S2: Yes), the process proceeds to step S3.

(ステップS3)エッジデバイス10aをマスター動作に設定する。エッジデバイス10aは、マスター動作になると、周囲のエッジデバイスからの情報をスキャンする。 (Step S3) Set the edge device 10a to master operation. When the edge device 10a becomes a master operation, it scans information from surrounding edge devices.

(ステップS4)エッジデバイス10a-1は、周辺のエッジデバイスの情報から、同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードが付加された情報が検出できたか否かを判定する。同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードの情報が検出できなければ(ステップS4:No)、ステップS5に処理を進める。同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードの情報が検出できれば(ステップS4:Yes)、処理をステップS6に進める。 (Step S4) The edge device 10a-1 determines whether or not information with a group code of the same group to which a layer code indicating intra-group communication is added can be detected from the information of peripheral edge devices. do. If layer code information indicating intra-group communication cannot be detected in the group code of the same group (step S4: No), the process proceeds to step S5. If layer code information indicating intra-group communication can be detected from the group code of the same group (step S4: Yes), the process proceeds to step S6.

(ステップS5)エッジデバイス10a-1は、所定時間経過したか否かを判定し、所定時間経過したら(ステップS5:Yes)、処理をステップS1にリターンする。所定時間経過していなければ(ステップS5:No)、ステップS3に戻り、周辺エッジデバイスのスキャンを続ける。つまり、エッジデバイス10a-1は、マスターとして動作している間に、グループ内の他の周辺エッジデバイスの検知情報を少なくとも1つ以上検知した場合にはマスター動作を継続させグループ内のエッジデバイスの情報を収集する。一方、エッジデバイス10a-1は、マスターとして動作している間、一定期間、グループ内のエッジデバイスの検知情報を検知できなければ、再度、スレーブ動作に切り替わる。 (Step S5) The edge device 10a-1 determines whether or not a predetermined period of time has passed, and when the predetermined period of time has passed (step S5: Yes), the process returns to step S1. If the predetermined time has not elapsed (step S5: No), the process returns to step S3 to continue scanning peripheral edge devices. In other words, when the edge device 10a-1 detects at least one piece of detection information about other peripheral edge devices in the group while operating as a master, it continues the master operation and continues the master operation. Collect information. On the other hand, if the edge device 10a-1 cannot detect the detection information of the edge devices in the group for a certain period of time while operating as the master, it switches to the slave operation again.

(ステップS6)エッジデバイス10a-1は、取得した情報の識別IDコードから、情報を送信した周辺エッジデバイス10(10a-2~10a-4)を特定し、そのエッジデバイス10から情報を収集して、処理をステップS7に進める。 (Step S6) The edge device 10a-1 identifies the peripheral edge devices 10 (10a-2 to 10a-4) that transmitted the information from the identification ID code of the acquired information, and collects the information from the edge devices 10. Then, the process proceeds to step S7.

(ステップS7)エッジデバイス10a-1は、中継機11と通信を行い、自身の情報及び周辺エッジデバイス10(10a-2~10a-4)の情報を中継機11に送信して、処理をステップS1にリターンする。 (Step S7) The edge device 10a-1 communicates with the repeater 11, transmits its own information and the information of the peripheral edge devices 10 (10a-2 to 10a-4) to the repeater 11, and proceeds to step S7. Return to S1.

以上説明したように、第1の実施形態では、複数のエッジデバイス10のうち、マスター/スレーブ動作切替可能なエッジデバイス10(10a-1、10b-1、10c-1、10d-1)を中継用デバイスとして機能させる。これにより、中継機11が全てのエッジデバイスと通信を行う必要がなく、エッジデバイスの数が増大した場合でも中継機11の負担の増大を抑制することができる。例えば、図1の例では、中継機11が全てのエッジデバイス10と通信を行うと、中継機11が通信を行うエッジデバイスの数は、全てのエッジデバイスの数に等しい16台となる。これに対して、本実施形態では、中継機11は各グループの中継用デバイスとなるエッジデバイス10a-1、10b-1、10c-1、10d-1とだけ通信を行えば良いので、中継機11が通信を行うエッジデバイスの数は、中継用デバイスとなるエッジデバイスの数に等しい4台となる。つまり、本実施形態では、エッジデバイスが4台から、その4倍の16台に増加した場合でも、中継機11が通信を行うエッジデバイスの数は変化しないようにでき、中継機11の負担の増大を抑制できる。 As described above, in the first embodiment, among the plurality of edge devices 10, the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) capable of switching master/slave operation are relayed. function as a device for This eliminates the need for the repeater 11 to communicate with all edge devices, and can suppress an increase in the burden on the repeater 11 even when the number of edge devices increases. For example, in the example of FIG. 1, if the repeater 11 communicates with all edge devices 10, the number of edge devices with which the repeater 11 communicates is 16, which is equal to the total number of edge devices. On the other hand, in this embodiment, the relay device 11 only needs to communicate with the edge devices 10a-1, 10b-1, 10c-1, and 10d-1, which are the relay devices of each group. The number of edge devices with which 11 communicates is four, which is equal to the number of edge devices serving as relay devices. In other words, in this embodiment, even if the number of edge devices increases from 4 to 16, which is four times the number, the number of edge devices with which the repeater 11 communicates can be kept unchanged. Increase can be suppressed.

また、各グループの中継用デバイスとなるエッジデバイス10a-1、10b-1、10c-1、10d-1が各グループの周辺エッジデバイス10の情報を取りまとめて通信を行うことで、その分の接続シーケンス等の通信も減少する。更に、中継用デバイスとなるエッジデバイス10a-1、10b-1、10c-1、10d-1を利用して、フィルターを簡易的に追加できる。中継機11のフィルターを変更する際は、フィルターの変更が他の様々な機能に影響する場合があるため、システム全体に影響を及ぼす可能性があるが、中継用デバイスとなるエッジデバイス10a-1、10b-1、10c-1、10d-1を利用したフィルター機能は、システム全体に影響を及ぼす可能性が少ない。
また、第1の実施形態では、複数のエッジデバイス10のうち、マスター/スレーブ動作切替可能なエッジデバイス10が中継用デバイスとして機能しない場合にはスレーブ動作を行う。これにより、中継機11が通信を行うエッジデバイス10の数が少なく、中継機11の負担が増大していない場合には、中継用デバイスとして機能せず、スレーブ動作を行うことで、従来のエッジデバイスとして動作することが可能である。
また、第1の実施形態では、マスター/スレーブ動作切替可能なエッジデバイス10が中継用デバイスとして機能している間、グループコードを付加した検知情報を受信した場合、中継用デバイスとしての動作を継続させる。これにより、スレーブ動作を行っているエッジデバイスから検知情報が送信された場合に、当該検知情報を中継することができる。
また、第1の実施形態では、マスター/スレーブ動作切替可能なエッジデバイス10が中継用デバイスとして機能している間、グループコードを付加した検知情報を所定の期間受信しなかった場合、中継用デバイスとしての動作を停止させる。これにより、所定の期間、スレーブ動作を行っているエッジデバイスから検知情報が送信されない場合に、スレーブ動作に戻ることで、従来のエッジデバイスとして動作できる。
Further, the edge devices 10a-1, 10b-1, 10c-1, and 10d-1, which are relay devices for each group, collect and communicate information about the peripheral edge devices 10 for each group, thereby enabling connections for that amount. Communications such as sequences are also reduced. Furthermore, filters can be easily added by using the edge devices 10a-1, 10b-1, 10c-1, and 10d-1, which are relay devices. When changing the filter of the repeater 11, the change of the filter may affect various other functions, which may affect the entire system. , 10b-1, 10c-1, 10d-1 are less likely to affect the entire system.
Further, in the first embodiment, when an edge device 10 capable of switching master/slave operation among the plurality of edge devices 10 does not function as a relay device, it performs a slave operation. As a result, when the number of edge devices 10 with which the repeater 11 communicates is small and the load on the repeater 11 does not increase, the conventional edge device does not function as a relay device and operates as a slave. It is possible to operate as a device.
Further, in the first embodiment, while the edge device 10 capable of switching between master/slave operation is functioning as a relay device, if it receives detection information with a group code added, it continues to operate as a relay device. Let As a result, when detection information is transmitted from an edge device that is performing a slave operation, the detection information can be relayed.
Further, in the first embodiment, while the edge device 10 capable of switching between master/slave operation is functioning as a relay device, if detection information to which a group code is added is not received for a predetermined period of time, the relay device cease to operate as As a result, when detection information is not transmitted from an edge device performing slave operation for a predetermined period of time, the edge device can operate as a conventional edge device by returning to slave operation.

<第2の実施形態>
次に、本発明の第2の実施形態について説明する。図4は、本発明の第2の実施形態に係るデータ収集システム101の概要の説明図である。図4に示すように、本発明の第2の実施形態に係るデータ収集システム101は、複数のエッジデバイス110(110a-1~110a-4、110b-1~110b-4、110c-1~110c-4、110d-1~110d-4)と、中継機111と、クラウドサーバ112とから構成される。
<Second embodiment>
Next, a second embodiment of the invention will be described. FIG. 4 is an explanatory diagram of the outline of the data collection system 101 according to the second embodiment of the present invention. As shown in FIG. 4, the data collection system 101 according to the second embodiment of the present invention includes a plurality of edge devices 110 (110a-1 to 110a-4, 110b-1 to 110b-4, 110c-1 to 110c -4, 110d-1 to 110d-4), a repeater 111, and a cloud server 112.

複数のエッジデバイス110(110a-1~110a-4、110b-1~110b-4、110c-1~110c-4、110d-1~110d-4)は、複数のグループに分割されている。この例では、エッジデバイス110a-1~110a-4はグループAに属するエッジデバイスであり、エッジデバイス110b-1~110b-4はグループBに属するエッジデバイスであり、エッジデバイス110c-1~110c-4はグループCに属するエッジデバイスであり、エッジデバイス110d-1~110d-4はグループDに属するエッジデバイスである。 A plurality of edge devices 110 (110a-1 to 110a-4, 110b-1 to 110b-4, 110c-1 to 110c-4, 110d-1 to 110d-4) are divided into a plurality of groups. In this example, edge devices 110a-1 to 110a-4 are edge devices belonging to group A, edge devices 110b-1 to 110b-4 are edge devices belonging to group B, and edge devices 110c-1 to 110c- 4 is an edge device belonging to group C, and edge devices 110d-1 to 110d-4 are edge devices belonging to group D. FIG.

各エッジデバイス110は、BLEのスレーブ機能を有する。更に、各グループ中には、複数のBLEのマスター/スレーブ動作切替可能なエッジデバイスがある。この例では、エッジデバイス110a-1及び110a-2、エッジデバイス110b-1及び110b-2、エッジデバイス110c-1及び110c-2、エッジデバイス110d-1及び110d-2は、BLEのマスター/スレーブ動作切替可能なエッジデバイスであるとする。なお、図では、「*」がマスター/スレーブ動作切替可能なエッジデバイスを示している。 Each edge device 110 has a BLE slave function. In addition, there are multiple BLE master/slave switchable edge devices in each group. In this example, edge devices 110a-1 and 110a-2, edge devices 110b-1 and 110b-2, edge devices 110c-1 and 110c-2, edge devices 110d-1 and 110d-2 are BLE master/slave Assume that it is an edge device that can switch operations. In the figure, "*" indicates an edge device capable of switching master/slave operation.

以上説明したように、第2の実施形態では、各グループ内でマスター/スレーブ動作切替可能なエッジデバイスが複数台あり、これらのマスター/スレーブ動作切替可能なエッジデバイスが中継用デバイスとなることができる。このため、マスター/スレーブ動作切替可能なエッジデバイスが1台である場合より、マスター/スレーブ動作切替可能なエッジデバイスの負担を軽減させることが可能である。つまり、また、中継用デバイスとなるエッジデバイスのバッテリーの消費量を分散できる。 As described above, in the second embodiment, each group includes a plurality of edge devices capable of switching master/slave operation, and these edge devices capable of switching master/slave operation may serve as relay devices. can. For this reason, it is possible to reduce the load on the edge device capable of switching master/slave operation compared to the case where there is only one edge device capable of switching master/slave operation. In other words, the consumption of the battery of the edge device, which is the relay device, can be distributed.

例えば、第1の実施形態では、各グループ内でマスター/スレーブ動作切替可能なエッジデバイスが1台であるため、中継用デバイスとなるエッジデバイスが固定されてしまう。このため、中継用デバイスとなるエッジデバイスに不具合が生じると、そのグループ全体のエッジデバイスの通信に影響が広がる可能性があった。これに対し、第2の実施形態では、複数台のマスター/スレーブ動作切替可能なエッジデバイスを、交代させながら中継用デバイスとして機能させることができるため、中継用デバイスの不具合によりエッジデバイスの通信に不具合が生じる可能性が少ない。 For example, in the first embodiment, each group has one edge device capable of switching master/slave operation, so the edge device serving as a relay device is fixed. For this reason, if an edge device acting as a relay device malfunctions, there is a possibility that the communication of edge devices in the entire group will be affected. On the other hand, in the second embodiment, a plurality of edge devices capable of switching between master/slave operation can be alternated to function as relay devices. Less likely to cause problems.

<第3の実施形態>
次に、本発明の第3の実施形態について説明する。本発明の第3の実施形態に係るデータ収集システムは、図4に示した第2の実施形態に係るデータ収集システムとその基本構成は同一である。
<Third Embodiment>
Next, a third embodiment of the invention will be described. The data collection system according to the third embodiment of the present invention has the same basic configuration as the data collection system according to the second embodiment shown in FIG.

前述の第2の実施形態では、各グループ内でマスター/スレーブ動作切替可能なエッジデバイス110(110a-1及び110a-2、110b-1及び110b-2、110c-1及び110c-2、110d-1及び110d-2)を複数台設けることで、中継用デバイスとなるエッジデバイスの不具合等に対処し、また、中継用デバイスのバッテリーの消費量を分散して、システムの運用におけるリスクを低減している。 In the second embodiment described above, the edge devices 110 (110a-1 and 110a-2, 110b-1 and 110b-2, 110c-1 and 110c-2, 110d- 1 and 110d-2), it is possible to cope with problems such as edge device failures that are relay devices, and to distribute the battery consumption of relay devices to reduce risks in system operation. ing.

しかしながら、グループ内にマスター/スレーブ動作切替可能なエッジデバイスを複数台設けても、最初にマスター動作となったマスター/スレーブ動作切替可能なエッジデバイスが中継用のデバイスとなるため、各機器間で、マスター動作とスレーブ動作との切り替えタイミングが一定であると、中継用デバイスとなるエッジデバイスが決まってしまう。このため、マスター/スレーブ動作切替可能なエッジデバイスをグループ内に複数台設ける利点が失われてしまう。 However, even if multiple edge devices capable of switching master/slave operation are provided in a group, the first edge device capable of switching master/slave operation becomes a relay device. If the switching timing between the master operation and the slave operation is constant, the edge device that becomes the relay device is determined. Therefore, the advantage of providing a plurality of edge devices capable of switching between master/slave operation in a group is lost.

そこで、本実施形態では、グループ内にマスター/スレーブ動作切替可能なエッジデバイスが複数台ある場合には、互いに異なるタイミングでマスター動作とスレーブ動作とに切り替わるように、例えば乱数により切り替えタイミングを設定するようにしている。 Therefore, in the present embodiment, when there are multiple edge devices capable of switching master/slave operation in a group, the switching timing is set by, for example, a random number so that the master operation and the slave operation are switched at different timings. I'm trying

図5は、本発明の第3の実施形態に係るデータ収集システムにおける中継用デバイスとなるエッジデバイスの動作を示すフローチャートである。ここでは、中継用デバイスとなるエッジデバイスとして、グループAのエッジデバイス110a-1及び110a-2での処理について説明する。エッジデバイス110a-1及び110a-2は、マスター/スレーブ動作切替可能なエッジデバイスである。他のグループの中継用デバイスとなるエッジデバイスの処理も同様である。 FIG. 5 is a flow chart showing the operation of an edge device which is a relay device in the data collection system according to the third embodiment of the present invention. Here, processing in the edge devices 110a-1 and 110a-2 of group A will be described as the edge devices serving as relay devices. The edge devices 110a-1 and 110a-2 are edge devices capable of switching master/slave operation. The processing of edge devices that are relay devices of other groups is the same.

(ステップS201)エッジデバイス110a-1及び110a-2をスレーブ動作に設定する。このとき、周辺のエッジデバイスは、識別IDコードを含む情報を周囲に発信している。また、この情報には、識別IDとともに、グループを示すコード(グループコード)と、グループ内の通信であることを示す情報(レイヤーコード)とが含まれている。 (Step S201) Set the edge devices 110a-1 and 110a-2 to slave operation. At this time, peripheral edge devices transmit information including an identification ID code to the surroundings. In addition to the identification ID, this information includes a code indicating a group (group code) and information indicating communication within a group (layer code).

(ステップS202)エッジデバイス110a-1及び110a-2は、乱数で求められる所定時間経過したか否かを判定し、所定時間経過したら(ステップS202:Yes)、処理をステップS203に進める。 (Step S202) The edge devices 110a-1 and 110a-2 determine whether or not a predetermined time determined by a random number has passed, and when the predetermined time has passed (step S202: Yes), the process proceeds to step S203.

(ステップS203)エッジデバイス110a-1及び110a-2をマスター動作に設定する。エッジデバイス110a-1及び110a-2は、マスター動作になると、周囲のエッジデバイスからの情報をスキャンする。 (Step S203) Set the edge devices 110a-1 and 110a-2 to master operation. When edge devices 110a-1 and 110a-2 become masters, they scan for information from surrounding edge devices.

(ステップS204)エッジデバイス110a-1及び110a-2は、周辺のエッジデバイスの情報から、同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードが付加された情報が検出できたか否かを判定する。同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードの情報が検出できなければ(ステップS204:No)、処理をステップS205に進める。同一のグループのグループコードで、グループ内通信であることを示すレイヤーコードの情報が検出できれば(ステップS204:Yes)、処理をステップS206に進める。 (Step S204) Whether the edge devices 110a-1 and 110a-2 have detected, from the information of the peripheral edge devices, the group code of the same group and the information added with the layer code indicating intra-group communication. determine whether or not If layer code information indicating intra-group communication cannot be detected in the group code of the same group (step S204: No), the process proceeds to step S205. If layer code information indicating intra-group communication can be detected from the group code of the same group (step S204: Yes), the process proceeds to step S206.

(ステップS205)エッジデバイス110a-1及び110a-2は、乱数で求められる所定時間経過したか否かを判定し、所定時間経過したら(ステップS205:Yes)、処理をステップS201にリターンする。所定時間経過していなければ(ステップS205:No)、ステップS203に処理を戻し、周辺エッジデバイスのスキャンを続ける。 (Step S205) The edge devices 110a-1 and 110a-2 determine whether or not a predetermined time determined by a random number has passed, and when the predetermined time has passed (step S205: Yes), the process returns to step S201. If the predetermined time has not elapsed (step S205: No), the process returns to step S203 to continue scanning peripheral edge devices.

(ステップS206)エッジデバイス110a-1及び110a-2は、取得した情報の識別IDコードから、情報を送信した周辺エッジデバイス10を特定し、そのエッジデバイス10からデータを収集して、処理をステップS207に進める。 (Step S206) The edge devices 110a-1 and 110a-2 identify the peripheral edge device 10 that transmitted the information from the identification ID code of the acquired information, collect data from the edge device 10, and perform processing. Proceed to S207.

(ステップS207)エッジデバイス110a-1及び110a-2は、中継機111と通信を行い、自身の情報及び周辺エッジデバイスの情報を中継機111に送信して、処理をステップS201にリターンする。 (Step S207) The edge devices 110a-1 and 110a-2 communicate with the repeater 111, transmit their own information and peripheral edge device information to the repeater 111, and return the process to step S201.

以上説明したように、第3の実施形態では、グループ内にマスター/スレーブ動作切替可能なエッジデバイスが複数ある場合には、同じタイミングでマスター動作及びスレーブ動作とならないように、マスター動作とスレーブ動作との切り替えタイミングを乱数で設定するようにしている。これにより、グループ内のマスター/スレーブ動作切替可能なエッジデバイスの負担を平均化できる。 As described above, in the third embodiment, when there are a plurality of edge devices capable of switching between master/slave operation in a group, master operation and slave operation are performed so that master operation and slave operation are not performed at the same timing. A random number is used to set the switching timing between . As a result, the load on the edge devices capable of switching between master/slave operation within the group can be averaged.

なお、上述の例では、マスター/スレーブ動作切替可能なエッジデバイスのマスター動作とスレーブ動作との切り替えタイミングを乱数で設定しているが、タイムスロット方式を用いて、タイミングが重複しにくいように設定しても良い。 In the above example, the switching timing between the master operation and the slave operation of the edge device capable of switching between master/slave operation is set by random numbers. You can

<第4の実施形態>
次に、本発明の第4の実施形態について説明する。本発明の第4の実施形態に係るデータ収集システムは、図1に示した第1の実施形態に係るデータ収集システムとその基本構成は同一である。すなわち、本発明の第4の実施形態に係るデータ収集システムは、第1の実施形態と同様に、複数のエッジデバイス10(10a-1~10a-4、10b-1~10b-4、10c-1~10c-4、10d-1~10d-4)と、中継機11と、クラウドサーバ12とから構成される。
<Fourth Embodiment>
Next, a fourth embodiment of the invention will be described. The data collection system according to the fourth embodiment of the present invention has the same basic configuration as the data collection system according to the first embodiment shown in FIG. That is, the data collection system according to the fourth embodiment of the present invention includes a plurality of edge devices 10 (10a-1 to 10a-4, 10b-1 to 10b-4, 10c- 1 to 10c-4, 10d-1 to 10d-4), a repeater 11, and a cloud server 12.

本実施形態では、このようなデータ収集システムにおいて、周辺のエッジデバイス10は、データ更新を示す情報を付加して中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)に情報を送信し、中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)は、周辺のエッジデバイス10からデータ更新を示す情報が付加されている情報を受信した場合に限り、周辺エッジデバイス10の情報を中継機11に送信するものである。これにより、データ通信量を大幅に減らすことができる。ここで、データ更新を示す情報は、「更新情報」の一例である。 In this embodiment, in such a data collection system, edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1), and edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) acting as relay devices add information indicating data update from peripheral edge devices 10. The information on the peripheral edge device 10 is transmitted to the repeater 11 only when the information on the peripheral edge device 10 is received. This can greatly reduce the amount of data communication. Here, the information indicating data update is an example of "update information".

図6は、本発明の第4の実施形態に係るデータ収集システムで用いられるコードの説明図である。図7は、本発明の第4の実施形態に係るデータ収集システムでのデータ通信のシーケンス図である。なお、このシーケンス図は、グループAに属するエッジデバイス10a-1~10a-4と、中継機11と、クラウドサーバ12でのデータ通信のシーケンス図である。 FIG. 6 is an explanatory diagram of codes used in the data collection system according to the fourth embodiment of the present invention. FIG. 7 is a sequence diagram of data communication in the data collection system according to the fourth embodiment of the present invention. This sequence diagram is a sequence diagram of data communication among the edge devices 10a-1 to 10a-4 belonging to Group A, the repeater 11, and the cloud server 12. FIG.

図6に示すように、本実施形態では、識別IDと、レイヤーコードと、グループコードと、オプションコードとが用いられる。識別IDは、各エッジデバイスで固有の識別子である。ここでは、図6(A)~図6(D)に示すように、エッジデバイス10a-1の識別IDは(0x0001)であるとし、エッジデバイス10a-2の識別IDは(0x0002)であるとし、エッジデバイス10a-3の識別IDは(0x0003)であるとし、エッジデバイス10a-4の識別IDは(0x0004)であるとする。 As shown in FIG. 6, this embodiment uses an identification ID, a layer code, a group code, and an option code. The identification ID is a unique identifier for each edge device. Here, as shown in FIGS. 6A to 6D, it is assumed that the identification ID of the edge device 10a-1 is (0x0001) and the identification ID of the edge device 10a-2 is (0x0002). , the identification ID of the edge device 10a-3 is (0x0003), and the identification ID of the edge device 10a-4 is (0x0004).

レイヤーコードは、どの階層のデータ通信を行うかを示している。ここでは、グループ内通信の階層ならレイヤーコードは(0x01)となり、中継機11との通信の階層ならレイヤーコードは(0x02)となる。 The layer code indicates which layer of data communication is to be performed. Here, the layer code is (0x01) for the layer of intra-group communication, and the layer code is (0x02) for the layer of communication with the repeater 11 .

グループコードは、そのエッジデバイスがどのグループに属するかを示している。例えば、グループAのグループコードは(0x0001)とする。エッジデバイス10a-1~10a-4はグループAに属しているので、図6(A)~図6(D)に示すように、エッジデバイス10a-1~10a-4のグループコードは(0x0001)となっている。 The group code indicates which group the edge device belongs to. For example, the group code of group A is (0x0001). Since the edge devices 10a-1 to 10a-4 belong to group A, the group code of the edge devices 10a-1 to 10a-4 is (0x0001) as shown in FIGS. It has become.

オプションコードは、データの更新があったか否かを示している。データの更新がなければ、オプションコードは(0x0000)であり、データの更新があれば、オプションコードは(0x0001)となる。 The option code indicates whether or not data has been updated. If there is no data update, the option code is (0x0000), and if there is data update, the option code is (0x0001).

図7において、時点t1では、エッジデバイス10a-1はスレーブ動作となっている。また、他の周辺エッジデバイス10a-2~10a-4は常にスレーブ動作となっている。このとき、図6(A)~図6(D)に示すように、エッジデバイス10a-1~10a-4は、識別コード(0x0001~0x0004)と、レイヤーコード(0x01)と、グループコード(0x0001)と、オプションコード(0x0000)とを付加して、アドバタイジングデータをブロードキャスト送信している。 In FIG. 7, at time t1, the edge device 10a-1 is in slave operation. Also, the other peripheral edge devices 10a-2 to 10a-4 are always in slave operation. At this time, as shown in FIGS. 6A to 6D, the edge devices 10a-1 to 10a-4 have identification codes (0x0001 to 0x0004), layer codes (0x01), and group codes (0x0001). ) and an option code (0x0000) are added to broadcast the advertising data.

時点t2で、中継用デバイスとなるエッジデバイス10a-1はマスター動作となり、周辺のエッジデバイス10a-2~10a-4からのアドバタイジングデータをスキャンする。ここで、図6(B)~図6(D)に示すように、周辺のエッジデバイス10a-2~10a-4からのアドバタイジングデータのグループコードは(0x0001)であり、中継用デバイスとなるエッジデバイス10a-1のグループコードと等しい。しかしながら、エッジデバイス10a-2~10a-4からのアドバタイジングデータのオプションコードは(0x0000)であり、データの更新は行われていない。本実施形態では、データ更新が行われていない場合には、このアドバタイジングデータを破棄する。 At time t2, the edge device 10a-1 acting as a relay device becomes a master operation and scans advertising data from peripheral edge devices 10a-2 to 10a-4. Here, as shown in FIGS. 6(B) to 6(D), the group code of the advertising data from the peripheral edge devices 10a-2 to 10a-4 is (0x0001). It is equal to the group code of device 10a-1. However, the option code of the advertising data from the edge devices 10a-2 to 10a-4 is (0x0000), and the data has not been updated. In this embodiment, the advertising data is discarded if the data has not been updated.

時点t3で、中継用デバイスとなるエッジデバイス10a-1はスレーブ動作となっている。このとき、前述したように、エッジデバイス10a-1~10a-4は、図6(A)~図6(D)に示したように、アドバタイジングデータをブロードキャスト送信している。 At time t3, the edge device 10a-1, which is a relay device, is in slave operation. At this time, as described above, the edge devices 10a-1 to 10a-4 broadcast advertising data as shown in FIGS. 6A to 6D.

時点t4で、エッジデバイス10a-3にデータの更新があったとする。これにより、図6(E)に示すように、エッジデバイス10a-3からのアドバタイジングデータのオプションコードが(0x0001)となる。このように、本実施形態では、データの更新があると、オプションコードが(0x0000)から(0x0001)となる。 Assume that the edge device 10a-3 updates data at time t4. As a result, the option code of the advertising data from the edge device 10a-3 becomes (0x0001), as shown in FIG. 6(E). Thus, in this embodiment, when data is updated, the option code changes from (0x0000) to (0x0001).

時点t5で、中継用デバイスとなるエッジデバイス10a-1はマスター動作となる。エッジデバイス10a-1は、マスター動作となると、周辺のエッジデバイス10a-2~10a-4からのアドバタイジングデータをスキャンする。ここで、図6(E)に示すように、エッジデバイス10a-3からのデータは、オプションコードが(0x0001)となっている。このため、エッジデバイス10a-1は、エッジデバイス10a-3からのアドバタイジングデータを取得する。エッジデバイス10a-1は、更新データを有するエッジデバイスが存在する場合には、マスター動作に維持する。 At time t5, the edge device 10a-1 acting as a relay device becomes a master operation. When the edge device 10a-1 becomes a master operation, it scans advertising data from the peripheral edge devices 10a-2 to 10a-4. Here, as shown in FIG. 6E, the data from the edge device 10a-3 has an option code of (0x0001). Therefore, the edge device 10a-1 acquires advertising data from the edge device 10a-3. The edge device 10a-1 remains in master operation if there is an edge device with updated data.

エッジデバイス10a-3からの情報に(0x001)のオプションコードが含まれているので、エッジデバイス10a-1は、時点t6では、マスター動作となっている。時点t6で、エッジデバイス10a-1は、識別IDから、データ更新があったエッジデバイス(エッジデバイス10a-3)を特定し、そのエッジデバイスと通信を行い、詳細情報を取得する。 Since the information from the edge device 10a-3 includes an option code (0x001), the edge device 10a-1 is in master operation at time t6. At time t6, the edge device 10a-1 identifies the edge device (edge device 10a-3) with which data has been updated from the identification ID, communicates with the edge device, and acquires detailed information.

時点t7で、エッジデバイス10a-1はスレーブ動作となる。そして、図6(F)に示すように、エッジデバイス10a-1は、レイヤーコードを(0x02)として、中継機11にデータを送信する。更に、エッジデバイス10a-1は、その他のデータとして、データ更新のあったエッジデバイスの情報を含めて送信する。中継機11は、レイヤーコードが(0x02)であることから、エッジデバイス10a-1からのデータを受信する。 At time t7, the edge device 10a-1 becomes a slave operation. Then, as shown in FIG. 6F, the edge device 10a-1 sets the layer code to (0x02) and transmits the data to the repeater 11. FIG. Further, the edge device 10a-1 transmits other data including information on edge devices that have updated data. Since the layer code is (0x02), the repeater 11 receives the data from the edge device 10a-1.

時点t8で、中継機11は、エッジデバイス10a-1を介して送られてきたエッジデバイス10a-3のデータ更新情報をクラウドサーバ12にアップロードする。 At time t8, the repeater 11 uploads to the cloud server 12 the data update information of the edge device 10a-3 sent via the edge device 10a-1.

以上説明したように、第4の実施形態では、中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)は、周辺のエッジデバイス10からのデータが更新データである場合に限り、この更新データを中継機11に送信している。これにより、データ通信量を大幅に減らすことができる。 As described above, in the fourth embodiment, the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) serving as relay devices update data from peripheral edge devices 10. This update data is transmitted to the repeater 11 only if it is data. This can greatly reduce the amount of data communication.

なお、本実施形態において、エッジデバイス10a-1は、マスターとして動作している間に、グループ内の他の周辺エッジデバイスの検知情報を少なくとも1つ以上検知した場合、その検知情報にデータ更新を示す情報が付加されている場合にマスター動作を継続させるようにしてもよい。一方、エッジデバイス10a-1は、マスターとして動作している間、一定期間、グループ内のエッジデバイスの検知情報を検知しないか、検知情報を少なくとも一つ以上検知したが、それらの検知情報にデータ更新を示す情報が付加されていない場合に、スレーブ動作に切り替わるようにしてもよい。 In this embodiment, when the edge device 10a-1 detects at least one detection information of other peripheral edge devices in the group while operating as a master, it updates the detection information. The master operation may be continued when the indicating information is added. On the other hand, while the edge device 10a-1 is operating as a master, the edge device 10a-1 does not detect detection information of edge devices in the group for a certain period of time, or detects at least one or more pieces of detection information, but the detection information contains data. If the information indicating the update is not added, the operation may be switched to the slave operation.

<第5の実施形態>
次に、本発明の第5の実施形態について説明する。前述の第4の実施形態では、図7に示したように、周辺エッジデバイス10a-3からの更新データを中継用デバイスとなるエッジデバイス10a-1が中継機11に中継して送信している。これに対して、この実施形態では、中継用デバイスとなるエッジデバイス10a-1は、更新データのあるエッジデバイス10a-3を指定し、中継機11が更新データのあるエッジデバイス10a-3と直接データ通信を行って、データ収集を行うようにしている。他の構成は、第4の実施形態と同様である。
<Fifth Embodiment>
Next, a fifth embodiment of the invention will be described. In the above-described fourth embodiment, as shown in FIG. 7, the edge device 10a-1 serving as a relay device relays the update data from the peripheral edge device 10a-3 to the relay device 11 and transmits the update data. . On the other hand, in this embodiment, the edge device 10a-1 acting as a relay device designates the edge device 10a-3 having the update data, and the relay device 11 directly communicates with the edge device 10a-3 having the update data. Data communication is performed and data collection is performed. Other configurations are similar to those of the fourth embodiment.

図8は、本発明の第5の実施形態に係るデータ収集システムでのデータ通信のシーケンス図である。なお、時点t1から時点t6までの処理は、図7に示した第4の実施形態と同様である。 FIG. 8 is a sequence diagram of data communication in the data collection system according to the fifth embodiment of the present invention. Note that the processing from time t1 to time t6 is the same as in the fourth embodiment shown in FIG.

この例では、時点t10で、中継用デバイスとなるエッジデバイス10a-1は、データ更新のあったエッジデバイスの識別IDの情報(0x003)を含め中継機11に送信する。時点t11で、中継機11は識別IDからデータ更新のあったエッジデバイスを識別し、データ更新のあったエッジデバイス10a-3と直接通信を行って更新データを取得し、時点t12で、中継機11は、この更新データをクラウドサーバ12にアップロードする。 In this example, at time t10, the edge device 10a-1, which is a relay device, transmits to the relay device 11 information including the identification ID information (0x003) of the edge device whose data has been updated. At time t11, the repeater 11 identifies the edge device whose data has been updated from the identification ID, directly communicates with the edge device 10a-3 whose data has been updated, and obtains updated data. 11 uploads this update data to the cloud server 12 .

本実施形態では、中継機11が詳細情報を更新データを有するエッジデバイス10a-3と直接通信を行うことで、中継機11は、更新データを有するエッジデバイス10a-3の詳細なデータをクラウドサーバ12に送ることができる。 In this embodiment, the repeater 11 directly communicates the detailed information with the edge device 10a-3 that has the update data, so that the repeater 11 sends the detailed data of the edge device 10a-3 that has the update data to the cloud server. 12 can be sent.

また、本実施形態は、中継用デバイスとなるエッジデバイス10a-1が持ちきれないデータを有している場合や、グループ内の周辺エッジデバイス10a-2~10a-4の数が多い場合など、又は、中継用デバイスとなるエッジデバイス10a-1が1つのフィルターとして機能する場合に、有効である。 Further, in this embodiment, when the edge device 10a-1 serving as a relay device has data that cannot be held, or when the number of peripheral edge devices 10a-2 to 10a-4 in the group is large. Alternatively, it is effective when the edge device 10a-1 acting as a relay device functions as one filter.

また、その他の例としては、複数の条件に応じて、中継機11が詳細情報をエッジデバイスと直接通信を行うことが考えられる。例えば、グループ内に温度を検出しているエッジデバイス10(例えばエッジデバイス10a-2)と、エアコンの使用状況を検出しているエッジデバイス10(例えばエッジデバイス10a-3)とがあるとする。そして、温度が閾値以上のときのエアコンの使用状況を知りたいとする。この場合、中継用デバイスとなるエッジデバイス10a-1は、温度を検出しているエッジデバイス10a-2からの情報を取得し、温度が閾値以上の場合に、エアコンの使用状況を検出しているエッジデバイス10a-3の識別IDを中継機11に送り、中継機11は、エアコンの使用状況を検出しているエッジデバイス10a-3と直接通信を行ってエアコンの使用状況を取得し、このエアコンの使用状況を示す情報をクラウドサーバ12に送ることが考えられる。 As another example, it is conceivable that the repeater 11 directly communicates detailed information with the edge device according to a plurality of conditions. For example, assume that the edge device 10 (for example, the edge device 10a-2) that detects the temperature and the edge device 10 (for example, the edge device 10a-3) that detects the usage status of the air conditioner are included in the group. Then, it is assumed that the user wants to know the usage status of the air conditioner when the temperature is equal to or higher than the threshold. In this case, the edge device 10a-1 acting as a relay device acquires information from the edge device 10a-2 that detects the temperature, and detects the usage status of the air conditioner when the temperature is equal to or higher than the threshold. The identification ID of the edge device 10a-3 is sent to the relay device 11, and the relay device 11 directly communicates with the edge device 10a-3 that detects the usage status of the air conditioner to acquire the usage status of the air conditioner. to the cloud server 12.

<第6の実施形態>
前述の第4及び第5の実施形態では、周辺のエッジデバイスは、更新データであるか否かを示す情報を付加し、中継用デバイスとなるエッジデバイスは、データ更新がある場合のみ、中継機11と通信を行うことで、データ通信量を削減している。
<Sixth Embodiment>
In the above-described fourth and fifth embodiments, peripheral edge devices add information indicating whether or not the data is updated data, and the edge device acting as a relay device adds data to the relay device only when data is updated. By communicating with 11, the amount of data communication is reduced.

本実施形態では、更に、中継機11が中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)と通信を行うとき、中継用デバイスとなるエッジデバイス10は、グループ内においてどれだけの数の更新情報があるかを示す情報を優先度を示す情報として付加する。ここで、優先度を示す情報は、「優先度情報」の一例である。 Further, in this embodiment, when the relay device 11 communicates with the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) serving as relay devices, the edge devices 10 serving as relay devices adds information indicating how many pieces of update information exist in a group as information indicating priority. Here, the information indicating priority is an example of "priority information".

これにより、中継機11は、通信を開始するエッジデバイス10(10a-1、10b-1、10c-1、10d-1)の中から、優先度の高いグループのエッジデバイスから先に通信できるようになる。 As a result, the repeater 11 is configured so that the edge device of the group with the highest priority among the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) that start communication can communicate first. become.

例えば、図1において、グループAではエッジデバイス10a-2とエッジデバイス10a-3とエッジデバイス10a-4との3台のエッジデバイスに更新データがあり、グループBではエッジデバイス10b-4のみに更新データがあるとする。この場合、グループAで中継用デバイスとなるエッジデバイス10a-1は、グループA内の更新データの数「3」を優先度情報として中継機11に送信し、グループBで中継用デバイスとなるエッジデバイス10b-1は、グループB内の更新データの数「1」を優先度情報として中継機11に送信する。中継機11は更新データの数から優先度を判定し、グループAのエッジデバイス10a-1から先にデータ通信を行う。 For example, in FIG. 1, in group A, three edge devices, edge device 10a-2, edge device 10a-3, and edge device 10a-4, have update data, and in group B, only edge device 10b-4 is updated. Suppose you have data. In this case, the edge device 10a-1, which is a relay device in group A, transmits the number of update data "3" in group A to the relay machine 11 as priority information, and the edge device 10a-1, which is a relay device in group B. Device 10b-1 transmits the number of update data "1" in group B to repeater 11 as priority information. The repeater 11 determines the priority from the number of update data, and performs data communication from the edge device 10a-1 of group A first.

<第7の実施形態>
上述までの実施形態では、周辺エッジデバイスからの情報を、クラウドサーバにアップロードする経路について説明したが、本発明は、クラウドサーバからエッジデバイスに情報をダウンロードする場合にも適用できる。
<Seventh Embodiment>
In the above-described embodiments, a path for uploading information from a peripheral edge device to a cloud server has been described, but the present invention can also be applied to downloading information from a cloud server to an edge device.

図1において、例えば、クラウドサーバ12からエッジデバイス10a-1~10a-4に情報をダウンロードする場合には、中継機11がグループAのエッジデバイス10a-1~10a-4から任意のエッジデバイスを選び、そのエッジデバイスを介して、グループAの各エッジデバイスに情報を送る。この時、中継機11が選ぶ任意のエッジデバイスは、マスター/スレーブ動作切替可能なエッジデバイス(エッジデバイス10a-1)とする。さらに、グループ内での情報共有においては、中継機11から情報を受信したエッジデバイス10a-1がマスターに切り替わり、グループ内の各エッジデバイス10a-1~10a-4に情報を受け渡す。 In FIG. 1, for example, when information is downloaded from the cloud server 12 to the edge devices 10a-1 to 10a-4, the repeater 11 downloads any edge device from the edge devices 10a-1 to 10a-4 of Group A. and send the information to each edge device in group A via that edge device. At this time, an arbitrary edge device selected by the repeater 11 is assumed to be an edge device (edge device 10a-1) capable of switching master/slave operation. Furthermore, in information sharing within the group, the edge device 10a-1 that has received information from the repeater 11 switches to the master and passes the information to each of the edge devices 10a-1 to 10a-4 within the group.

<第8の実施形態>
第1の実施形態では、図2に示したように、中継機11の階層と、中継用デバイスとなるエッジデバイス10(10a-1、10b-1、10c-1、10d-1)の階層と、周辺のエッジデバイス10(10a-2~10a-4、10b-2~10b-4、10c-2~10c-4、10d-2~10d-4)とからなる階層構造となっているが、エッジデバイスの数が更に多い場合には、各グループ内を更に複数のサブグループに分割して、より多層なシステムとしても良い。
<Eighth embodiment>
In the first embodiment, as shown in FIG. 2, the hierarchy of the repeater 11 and the hierarchy of the edge devices 10 (10a-1, 10b-1, 10c-1, 10d-1) serving as relay devices. , peripheral edge devices 10 (10a-2 to 10a-4, 10b-2 to 10b-4, 10c-2 to 10c-4, 10d-2 to 10d-4). If the number of edge devices is even greater, each group may be further divided into a plurality of subgroups to form a multi-layered system.

上述した実施形態におけるデータ収集システム1、101の全部または一部をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、FPGA等のプログラマブルロジックデバイスを用いて実現されるものであってもよい。 All or part of the data collection systems 1 and 101 in the above-described embodiments may be realized by a computer. In that case, a program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in this recording medium may be read into a computer system and executed. It should be noted that the "computer system" referred to here includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible discs, magneto-optical discs, ROMs and CD-ROMs, and storage devices such as hard discs incorporated in computer systems. Furthermore, "computer-readable recording medium" means a medium that dynamically retains a program for a short period of time, like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. It may also include something that holds the program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or client in that case. Further, the program may be for realizing a part of the functions described above, or may be capable of realizing the functions described above in combination with a program already recorded in the computer system. It may be implemented using a programmable logic device such as FPGA.

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 Although the embodiment of the present invention has been described in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and design and the like are included within the scope of the gist of the present invention.

10,110…エッジデバイス、11,111…中継機、12,112…クラウドサーバ DESCRIPTION OF SYMBOLS 10,110... Edge device, 11,111... Repeater, 12,112... Cloud server

Claims (7)

複数のエッジデバイスにより検出された検知情報をサーバ装置へ集約するデータ収集システムであって、
前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記検知情報に、送信元を示す第1送信元情報を付加して送信するスレーブデバイスと、
前記複数のエッジデバイス間の通信においてマスターとして動作し、所定期間に受信した一以上の前記検知情報に、前記第1送信元情報とは異なる送信元を示す第2送信元情報を付加して送信するマスターデバイスと、
前記第1送信元情報が付加された前記検知情報を受信した場合は前記検知情報を取得する取得処理を行わず、前記第2送信元情報が付加された前記検知情報を受信した場合に前記取得処理を行い、取得した前記検知情報を前記サーバ装置に送信する中継機
を有し、
前記マスターデバイスは、前記複数のエッジデバイス間の通信においてマスターとして動作しない場合、前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記複数のエッジデバイス間の通信においてマスターとして動作している間に前記第1送信元情報が付加された前記検知情報を受信した場合、マスターとしての動作を継続させる、
ことを特徴とするデータ収集システム。
A data collection system that aggregates detection information detected by a plurality of edge devices into a server device,
a slave device that operates as a slave in communication between the plurality of edge devices and transmits the detection information by adding first transmission source information indicating a transmission source;
Acts as a master in communication between the plurality of edge devices, and transmits one or more pieces of detection information received in a predetermined period by adding second transmission source information indicating a transmission source different from the first transmission source information. a master device that
When the detection information to which the first source information is added is received, acquisition processing for acquiring the detection information is not performed, and when the detection information to which the second source information is added is received, the acquisition is performed. a relay device that performs processing and transmits the acquired detection information to the server device ;
When the master device does not operate as a master in communication between the plurality of edge devices, the master device operates as a slave in communication among the plurality of edge devices, and while operating as a master in communication among the plurality of edge devices. If the detection information to which the first source information is added is received, the operation as a master is continued;
A data collection system characterized by:
前記複数のエッジデバイスは、少なくとも1つの前記マスターデバイスが含まれるように、複数のグループに分割され、
各グループでは、当該グループに含まれる前記マスターデバイスが、当該グループに含まれるエッジデバイス間の通信においてマスターとして動作し、当該グループに含まれる前記スレーブデバイスが、当該グループに含まれるエッジデバイス間の通信においてスレーブとして動作する
ことを特徴とする請求項1に記載のデータ収集システム。
the plurality of edge devices are divided into a plurality of groups to include at least one of the master devices;
In each group, the master device included in the group operates as a master in communication between the edge devices included in the group, and the slave device included in the group acts as a master in communication between the edge devices included in the group. 2. The data acquisition system of claim 1, operating as a slave.
前記複数のグループに、グループ内に前記マスターデバイスが複数含まれるグループがある場合、前記マスターデバイスが複数含まれるグループでは、前記マスターデバイスの各々が、互いに異なるタイミングによりマスターとして動作する
ことを特徴とする請求項に記載のデータ収集システム。
3. When the plurality of groups includes a group including a plurality of the master devices, each of the master devices in the group including the plurality of master devices operates as a master at different timings. 2. The data collection system according to 2.
前記スレーブデバイスは、前記検知情報が更新されている場合、前記検知情報に更新を示す更新情報を付加して送信し、
前記マスターデバイスは、前記検知情報に前記更新情報が付加されている場合に前記検知情報を前記中継機に送信し、前記検知情報に前記更新情報が付加されてない場合は前記検知情報を前記中継機に送信しない
ことを特徴とする請求項1から請求項の何れか一項に記載のデータ収集システム。
When the detection information is updated, the slave device adds update information indicating the update to the detection information and transmits the detection information;
The master device transmits the detection information to the relay device when the update information is added to the detection information, and transmits the detection information to the relay device when the update information is not added to the detection information. 4. The data collection system according to any one of claims 1 to 3 , wherein the data collection system does not transmit to
前記スレーブデバイスは、検知した情報が更新された場合に、更新を示す更新情報を送信し、
前記マスターデバイスは、前記更新情報を送信した前記スレーブデバイスを識別する識別情報を前記中継機に送信し、
前記中継機は、前記識別情報に示される前記スレーブデバイスと通信を行い、前記スレーブデバイスから前記更新情報に対応する情報を受信する
ことを特徴とする請求項1から請求項3のいずれか一項に記載のデータ収集システム。
When the detected information is updated, the slave device transmits update information indicating the update,
the master device transmits identification information identifying the slave device that transmitted the update information to the repeater;
4. The repeater communicates with the slave device indicated by the identification information, and receives information corresponding to the update information from the slave device . The data collection system described in .
前記マスターデバイスは、前記検知情報を送信した前記スレーブデバイスを識別する識別情報に、前記検知情報及び前記更新情報の少なくとも一方に基づいて判定した前記検知情報を取得する優先度を示す優先度情報を付加した情報を前記中継機に送信し、
前記中継機は、前記優先度情報に応じた順序で前記識別情報に示される前記スレーブデバイスと通信を行う
ことを特徴とする請求項4又は請求項5に記載のデータ収集システム。
The master device adds, to identification information identifying the slave device that transmitted the detection information, priority information indicating a priority for acquiring the detection information determined based on at least one of the detection information and the update information. transmitting the information obtained to the repeater,
6. The data collection system according to claim 4 , wherein said repeater communicates with said slave devices indicated by said identification information in an order according to said priority information.
複数のエッジデバイスにより検出された検知情報をサーバ装置へ集約するデータ収集方法であって、
スレーブデバイスが、前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記検知情報に、送信元を示す第1送信元情報を付加して送信する工程と、
マスターデバイスが、前記複数のエッジデバイス間の通信においてマスターとして動作し、所定期間に受信した一以上の前記検知情報に、前記第1送信元情報とは異なる送信元を示す第2送信元情報を付加して送信する工程と、
中継機が、前記第1送信元情報が付加された前記検知情報を受信した場合は前記検知情報を取得する取得処理を行わず、前記第2送信元情報が付加された前記検知情報を受信した場合に前記取得処理を行い、取得した前記検知情報を前記サーバ装置に送信する工程
を含み、
前記マスターデバイスは、前記複数のエッジデバイス間の通信においてマスターとして動作しない場合、前記複数のエッジデバイス間の通信においてスレーブとして動作し、前記複数のエッジデバイス間の通信においてマスターとして動作している間に前記第1送信元情報が付加された前記検知情報を受信した場合、マスターとしての動作を継続させる、
ことを特徴とするデータ収集方法。
A data collection method for collecting detection information detected by a plurality of edge devices into a server device,
a step of a slave device operating as a slave in communication between the plurality of edge devices, adding first transmission source information indicating a transmission source to the detection information and transmitting the detection information;
A master device acts as a master in communication between the plurality of edge devices, and adds second source information indicating a source different from the first source information to one or more of the detection information received during a predetermined period. and sending the
When the relay device receives the detection information to which the first transmission source information is added, the relay device does not perform acquisition processing for acquiring the detection information, and receives the detection information to which the second transmission source information is added. a step of performing the acquisition process and transmitting the acquired detection information to the server device ,
When the master device does not operate as a master in communication between the plurality of edge devices, the master device operates as a slave in communication among the plurality of edge devices, and while operating as a master in communication among the plurality of edge devices. If the detection information to which the first source information is added is received, the operation as a master is continued;
A data collection method characterized by:
JP2018129911A 2018-07-09 2018-07-09 Data collection system and data collection method Active JP7187849B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018129911A JP7187849B2 (en) 2018-07-09 2018-07-09 Data collection system and data collection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018129911A JP7187849B2 (en) 2018-07-09 2018-07-09 Data collection system and data collection method

Publications (2)

Publication Number Publication Date
JP2020009170A JP2020009170A (en) 2020-01-16
JP7187849B2 true JP7187849B2 (en) 2022-12-13

Family

ID=69151731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018129911A Active JP7187849B2 (en) 2018-07-09 2018-07-09 Data collection system and data collection method

Country Status (1)

Country Link
JP (1) JP7187849B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7175731B2 (en) 2018-12-06 2022-11-21 エヌ・ティ・ティ・コミュニケーションズ株式会社 Storage management device, method and program
JP7150585B2 (en) 2018-12-06 2022-10-11 エヌ・ティ・ティ・コミュニケーションズ株式会社 Data retrieval device, its data retrieval method and program, edge server and its program
JP7150584B2 (en) * 2018-12-06 2022-10-11 エヌ・ティ・ティ・コミュニケーションズ株式会社 Edge server and its program
JP7184108B2 (en) * 2021-03-05 2022-12-06 日本電気株式会社 Communication system, communication control method, and program
JP2023003883A (en) * 2021-06-24 2023-01-17 株式会社日立製作所 Device management system and device management device
CN114124764A (en) * 2021-09-13 2022-03-01 上海节卡机器人科技有限公司 Data acquisition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274303A (en) 2006-03-31 2007-10-18 Matsushita Electric Works Ltd Wireless system
JP2010041545A (en) 2008-08-07 2010-02-18 Hochiki Corp Wireless disaster prevention system
JP2013187615A (en) 2012-03-06 2013-09-19 Hitachi Ltd Ad hoc network system and method for collecting meter reading information
WO2014115185A1 (en) 2013-01-24 2014-07-31 富士通株式会社 Wireless communication method, wireless communication system, wireless base station, and wireless terminal
JP2014239402A (en) 2013-06-10 2014-12-18 株式会社ベイビッグ Radio terminal, radio communications system, and radio communication method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274303A (en) 2006-03-31 2007-10-18 Matsushita Electric Works Ltd Wireless system
JP2010041545A (en) 2008-08-07 2010-02-18 Hochiki Corp Wireless disaster prevention system
JP2013187615A (en) 2012-03-06 2013-09-19 Hitachi Ltd Ad hoc network system and method for collecting meter reading information
WO2014115185A1 (en) 2013-01-24 2014-07-31 富士通株式会社 Wireless communication method, wireless communication system, wireless base station, and wireless terminal
JP2014239402A (en) 2013-06-10 2014-12-18 株式会社ベイビッグ Radio terminal, radio communications system, and radio communication method

Also Published As

Publication number Publication date
JP2020009170A (en) 2020-01-16

Similar Documents

Publication Publication Date Title
JP7187849B2 (en) Data collection system and data collection method
US8732338B2 (en) Mesh network bridge routing
US9629112B2 (en) Masterless slot allocation
CN111263338B (en) Network distribution method of Bluetooth Mesh network, related network distribution equipment and system
JP2007142647A (en) Wireless apparatus and network system
US11930091B2 (en) List-based redundancy control in crowd-based IoT
KR100825735B1 (en) Method for Address Space Management about nodes incapable of communication over ZigBee Network
CN108900982B (en) Data forwarding method and device
US10116511B2 (en) Method and apparatus for controlling topology
JP2010074691A (en) Ad-hoc network wireless communication method
JP7046983B2 (en) Packet transmission method and equipment
CN104885559A (en) Wireless communication apparatus, communication system, wireless communication apparatus control method, and program
CN114039798A (en) Data transmission method and device and electronic equipment
JP5867236B2 (en) Data collection method, mobile terminal and data storage device
JP2018152758A (en) Information management system, on-vehicle device, server, and routing table changing method
JP5673303B2 (en) Wireless terminal device, wireless system, and wireless communication method
CN110365790B (en) Message transmission method and device, cascade networking equipment and readable storage medium
JP2009152995A (en) Communication system, transmission terminal used for communication system, relay terminal used for communication system, communication method in communication system and computer program used for communication system
KR20140125223A (en) Method for collecting information with management interface in contents network based on information centric networking, content network management system, and node apparatus
US20090157878A1 (en) Method and system for connecting lower nodes to one another to increase scalability in zigbee network
JP2009165070A (en) Ad hoc network communication system, method therefor, and communication terminal
US10512026B2 (en) Technique for mediation in a residential network
JP2015170970A (en) communication system
JP5397331B2 (en) Communication terminal, route selection method and communication method
JP2007221522A (en) Polling device, terminal device, polling method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210623

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220719

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220905

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221114

R150 Certificate of patent or registration of utility model

Ref document number: 7187849

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150