JP2016158200A - Information processor, control program, control method for information processor, and information processing system - Google Patents

Information processor, control program, control method for information processor, and information processing system Download PDF

Info

Publication number
JP2016158200A
JP2016158200A JP2015036263A JP2015036263A JP2016158200A JP 2016158200 A JP2016158200 A JP 2016158200A JP 2015036263 A JP2015036263 A JP 2015036263A JP 2015036263 A JP2015036263 A JP 2015036263A JP 2016158200 A JP2016158200 A JP 2016158200A
Authority
JP
Japan
Prior art keywords
information
devices
remaining amount
control
relay
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.)
Granted
Application number
JP2015036263A
Other languages
Japanese (ja)
Other versions
JP6531426B2 (en
Inventor
佐野 健
Takeshi Sano
健 佐野
菜美 長田
Nami Osada
菜美 長田
佐々木 和雄
Kazuo Sasaki
和雄 佐々木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015036263A priority Critical patent/JP6531426B2/en
Publication of JP2016158200A publication Critical patent/JP2016158200A/en
Application granted granted Critical
Publication of JP6531426B2 publication Critical patent/JP6531426B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

PROBLEM TO BE SOLVED: To provide an information processor, control program, control method for the information processor, and information processing system that elongate the system's life based on a residual battery amount of a device.SOLUTION: An information processor includes: a processing unit for receiving, from a plurality of devices through a relay device, acquisition information acquired by the devices and residual amount information indicating the devices' battery residual amounts; and a storage unit for storing the received acquisition information and residual information. The processing unit, when any device's residual amount information shows a value lower than a predetermined value, performs switching from a first mode of receiving the acquisition information and residual amount information through a relay device selected by the device to a second mode of further receiving, from the plurality of devices, communication information indicating states of communication with one or a plurality of relay devices, determining a relay device for the plurality of devices on the basis of the residual amount information and the communication information, notifying the plurality of devices of the determined relay device, and receiving the acquisition information and the residual amount information through the determined relay device.SELECTED DRAWING: Figure 3

Description

本発明は、情報処理装置、制御プログラム、情報処理装置の制御方法、及び、情報処理システムに関する。   The present invention relates to an information processing apparatus, a control program, a control method for the information processing apparatus, and an information processing system.

情報処理装置が、センサを備える複数のデバイスのそれぞれが取得したデータを、ゲートウェイ等の中継装置を経由して収集し、収集したデータに基づいて所定の処理を行う情報処理システムがある。それぞれのデバイスは、データを取得する場所に固定して設置され、近距離無線通信を介して、ゲートウェイにデータを送信する。また、ゲートウェイは、有線または無線を介して、デバイスから受信したデータを、情報処理装置に送信する。   There is an information processing system in which an information processing apparatus collects data acquired by each of a plurality of devices including sensors via a relay apparatus such as a gateway and performs a predetermined process based on the collected data. Each device is fixedly installed at a location from which data is acquired, and transmits data to the gateway via short-range wireless communication. In addition, the gateway transmits data received from the device to the information processing apparatus via wired or wireless.

また、各デバイスは電池を備え、電池によって駆動する。したがって、デバイスの電池が切れた場合、作業員はデバイスが設置された場所に訪問し、電池の交換や充電等のメンテナンスを行う。   Each device includes a battery and is driven by the battery. Therefore, when the battery of the device runs out, the worker visits the place where the device is installed and performs maintenance such as battery replacement and charging.

情報処理システムは、1つのデバイスに対して、1つまたは複数のゲートウェイを配置する。各デバイスは、例えば、接続するゲートウェイをそれぞれ選択し、選択したゲートウェイを介して、データを情報処理装置に送信する。   In the information processing system, one or more gateways are arranged for one device. For example, each device selects a gateway to be connected to, and transmits data to the information processing apparatus via the selected gateway.

電池を備えるデバイスの通信経路に関する技術については、特許文献1、2に記載される。   The technologies related to the communication path of a device including a battery are described in Patent Documents 1 and 2.

特表2005−526416号公報JP 2005-526416 A 特開2006−211389号公報JP 2006-211389 A

しかしながら、デバイスが接続先のゲートウェイを選択する場合、電池残量の少ないデバイスの、ゲートウェイへの再送回数が多くなり、電力消費が増加してしまう場合がある。これにより、電池残量の少ないデバイスの寿命が短くなり、各デバイスの電池残量に基づく情報処理システムの寿命が短くなってしまう。情報処理システムの寿命が短くなることにより、メンテナンスにかかるコストが増加してしまう。   However, when a device selects a gateway as a connection destination, the number of retransmissions to a gateway of a device with a small remaining battery level increases, and power consumption may increase. This shortens the life of a device with a small remaining battery capacity, and shortens the life of an information processing system based on the remaining battery capacity of each device. As the life of the information processing system is shortened, the cost for maintenance increases.

1つの側面は、本発明は、デバイスの電池残量に基づくシステムの寿命を長期化する情報処理装置、制御プログラム、情報処理装置の制御方法、及び、情報処理システムを提供することを目的とする。   One aspect of the present invention is to provide an information processing apparatus, a control program, a control method for the information processing apparatus, and an information processing system that extend the life of the system based on the remaining battery level of the device. .

第1の側面によれば、複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、中継装置を経由して受信する処理部と、受信した前記取得情報と前記残量情報とを記憶する記憶部と、を有し、前記処理部は、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える。   According to the first aspect, the processing unit that receives the acquisition information acquired by the device and the remaining amount information indicating the remaining amount of the battery of the device from a plurality of devices via the relay device, and received A storage unit that stores the acquired information and the remaining amount information, and the processing unit selects a relay device that the device selects when the remaining amount information of any device falls below a predetermined value. From the first mode in which the acquisition information and the remaining amount information are received via, communication information indicating a communication state with one or a plurality of the relay devices is further received from the plurality of devices, and the remaining amount The relay device for the plurality of devices is determined based on the information and the communication information, the determined relay device is notified to the plurality of devices, and the acquired information and the remaining amount information are determined for the relay device. Receive via That is switched to the second mode.

第1の側面によれば、デバイスの電池残量に基づくシステムの寿命を長期化できる。   According to the first aspect, the life of the system based on the remaining battery level of the device can be extended.

図1は、本実施の形態における情報処理システム100のネットワーク構成を説明する図である。FIG. 1 is a diagram illustrating a network configuration of an information processing system 100 according to the present embodiment. 図1に示した情報処理システム100のデバイス間の電池残量の偏りを説明する図である。It is a figure explaining the deviation of the battery remaining amount between the devices of the information processing system 100 shown in FIG. 本実施の形態のセンタサーバ10の制御の態様を模式的に説明する図である。It is a figure which illustrates typically the mode of control of center server 10 of this embodiment. 図1に示したセンタサーバ10のハードウェア構成図である。It is a hardware block diagram of the center server 10 shown in FIG. 図4に示したセンタサーバ10のデータ収集プログラム210のソフトウェアブロックの構成図である。FIG. 5 is a configuration diagram of software blocks of a data collection program 210 of the center server 10 shown in FIG. 4. 図4、図5に示した、デバイス情報テーブル310の一例を説明する図である。FIG. 6 is a diagram illustrating an example of a device information table 310 illustrated in FIGS. 4 and 5. 図4、図5に示した、デバイス接続先制御情報テーブル311の一例を説明する図である。6 is a diagram illustrating an example of a device connection destination control information table 311 illustrated in FIGS. 4 and 5. FIG. 図1〜図3に示したデバイス30aのハードウェア構成図である。It is a hardware block diagram of the device 30a shown in FIGS. 図8に示したデバイス30aのソフトウェアブロックの構成図である。It is a block diagram of the software block of the device 30a shown in FIG. 図8、図9に示した制御情報テーブル411の一例を説明する図である。It is a figure explaining an example of the control information table 411 shown in FIG. 8, FIG. 自律制御から集中制御への切り替え処理の流れを説明するシーケンス図である。It is a sequence diagram explaining the flow of the switching process from autonomous control to centralized control. 集中制御から自律制御への切り替え処理の流れを説明するシーケンス図である。It is a sequence diagram explaining the flow of the switching process from centralized control to autonomous control. 集中制御に切り替えた後のデバイス情報テーブル310−1を示す図である。It is a figure which shows the device information table 310-1 after switching to centralized control. 図11、図12で説明した、送信センサデータ、制御情報通知要求、送信制御データ、及び、接続先制御通知のフォーマットの一例を示す図である。It is a figure which shows an example of the format of the transmission sensor data demonstrated in FIG. 11, FIG. 12, the control information notification request, transmission control data, and a connection destination control notification. 図5に示したセンタサーバ10のデータ収集プログラム210の、制御の切り替え判定処理の流れを説明するフローチャート図である。FIG. 6 is a flowchart illustrating a flow of control switching determination processing of the data collection program 210 of the center server 10 illustrated in FIG. 5. 図5に示したデータ収集プログラム210の、送信センサデータ及び送信制御データの受信処理の流れを説明するフローチャート図である。FIG. 6 is a flowchart illustrating a flow of reception processing of transmission sensor data and transmission control data of the data collection program 210 illustrated in FIG. 5. 図9に示したデバイス30のデータ送信プログラム410の、センサデータの送信処理の流れを説明するフローチャート図である。FIG. 10 is a flowchart illustrating a flow of sensor data transmission processing of the data transmission program 410 of the device 30 illustrated in FIG. 9. 図9に示したデバイス30のデータ送信プログラム410の、接続先制御通知の受信に応答した制御切り替え処理の流れを説明するフローチャート図である。FIG. 10 is a flowchart illustrating a flow of control switching processing in response to reception of a connection destination control notification in the data transmission program 410 of the device 30 illustrated in FIG. 9. 図9に示したデバイス30のデータ送信プログラム410の、制御情報通知要求受信時の処理の流れを説明するフローチャート図である。FIG. 10 is a flowchart illustrating a process flow when a control information notification request is received by the data transmission program 410 of the device 30 illustrated in FIG. 9. 図9に示したデバイス30のデータ送信プログラム410の、接続先切り替え処理の流れを説明するフローチャート図である。FIG. 10 is a flowchart for explaining a flow of connection destination switching processing of the data transmission program 410 of the device 30 shown in FIG. 9. 図1〜図3に示したゲートウェイ20のハードウェア構成図である。It is a hardware block diagram of the gateway 20 shown in FIGS. 1-3. 図21に示したゲートウェイ20のソフトウェアブロックの構成図である。It is a block diagram of the software block of the gateway 20 shown in FIG.

以下、図面にしたがって本発明の実施の形態について説明する。ただし、本発明の技術的範囲はこれらの実施の形態に限定されず、特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

[情報処理システム]
図1は、本実施の形態における情報処理システム100のネットワーク構成を説明する図である。図1の情報処理システム100は、M2M(Machine to Machine:M2M)に基づくシステムである。M2Mは、機械同士がネットワークを介して互いに情報をやり取りすることにより、高度な制御や動作を行うシステムを示す。
[Information processing system]
FIG. 1 is a diagram illustrating a network configuration of an information processing system 100 according to the present embodiment. The information processing system 100 in FIG. 1 is a system based on M2M (Machine to Machine: M2M). M2M indicates a system that performs advanced control and operation by machines exchanging information with each other via a network.

図1の情報処理システム100は、センタサーバ(情報処理装置)10と、複数のゲートウェイ(中継装置)20−1〜20−3と、複数のデバイス30a〜30fとを有する。図1に示すセンタサーバ10は、例えば、クラウドコンピューティング等によって実現されるサーバを示す。ゲートウェイ20は、デバイス30とセンタサーバ10との通信を中継する装置である。   The information processing system 100 in FIG. 1 includes a center server (information processing apparatus) 10, a plurality of gateways (relay apparatuses) 20-1 to 20-3, and a plurality of devices 30a to 30f. A center server 10 illustrated in FIG. 1 is a server realized by, for example, cloud computing. The gateway 20 is a device that relays communication between the device 30 and the center server 10.

各デバイス30a〜30fは、近距離無線通信を介して、ゲートウェイ20−1〜20−3(ゲートウェイ20ともいう)と接続する(図中の点線)。近距離通信は、例えば、数十メートル程度の通信エリアの無線通信を示し、ジグビー(ZigBee(登録商標))、ブルートゥース(Bluetooth(登録商標))等に基づく無線通信を示す。また、ゲートウェイ20は、無線通信または有線通信を介して、センタサーバ10と接続する(図中の直線)。無線通信に基づく場合、ゲートウェイ20は、例えば、LTE(Long Term Evolution:LTE)や3G(3rd Generation)等の規格にしたがって、センタサーバ10と接続する。   Each device 30a-30f is connected to gateways 20-1 to 20-3 (also referred to as gateway 20) via short-range wireless communication (dotted line in the figure). The short-range communication indicates, for example, wireless communication in a communication area of about several tens of meters, and indicates wireless communication based on ZigBee (registered trademark), Bluetooth (registered trademark), or the like. The gateway 20 is connected to the center server 10 via a wireless communication or a wired communication (straight line in the figure). When based on wireless communication, the gateway 20 is connected to the center server 10 according to a standard such as LTE (Long Term Evolution: LTE) or 3G (3rd Generation).

図1に示す、各デバイス30は、センシングする場所に固定的に位置する。また、各デバイス30は、それぞれセンサを備え、センサが検出したデータを取得する。各デバイス30は、定期的に、データを取得し、ゲートウェイ20を経由して取得データ(センサデータともいう)をセンタサーバ10に送信する。   Each device 30 shown in FIG. 1 is fixedly located at a sensing location. Each device 30 includes a sensor, and acquires data detected by the sensor. Each device 30 periodically acquires data and transmits the acquired data (also referred to as sensor data) to the center server 10 via the gateway 20.

なお、各デバイス30は、必ずしもセンサを備えている必要はない。取得データは、デバイス30が備える、別の機器やプログラム等が検出したデータであってもよい。また、図1の例では、6つのデバイス30a〜30f(デバイス30ともいう)を例示しているが、情報処理システム100は、実際は、多量のデバイス30を有する。   Each device 30 is not necessarily provided with a sensor. The acquired data may be data detected by another device or program provided in the device 30. In the example of FIG. 1, six devices 30 a to 30 f (also referred to as devices 30) are illustrated, but the information processing system 100 actually includes a large number of devices 30.

センタサーバ10は、複数のデバイス30から収集した取得データに基づいて、所定の処理を行う。例えば、図1に示す情報処理システム100がマンホールの下水管理システムである場合、センタサーバ10は、マンホールに設置された水位センサが観測した水位データ(取得データ)を各デバイス30から収集する。そして、センタサーバ10は、収集した水位データのうち、閾値を超える水位データがある場合に、当該水位データのデバイス30の近隣の住民への警告通知等を行う。または、センタサーバ10は、収集した水位データを、作業員のための情報として出力する。   The center server 10 performs predetermined processing based on acquired data collected from the plurality of devices 30. For example, when the information processing system 100 illustrated in FIG. 1 is a manhole sewage management system, the center server 10 collects water level data (acquired data) observed by a water level sensor installed in the manhole from each device 30. Then, when there is water level data that exceeds the threshold among the collected water level data, the center server 10 performs a warning notification to the residents in the vicinity of the device 30 of the water level data. Alternatively, the center server 10 outputs the collected water level data as information for the worker.

なお、情報処理システム100は、下水管理システムに限定されるものではない。情報処理システム100は、橋梁やトンネル等の振動管理システムであってもよい。振動管理システムのセンタサーバ10は、各デバイス30から振動データを収集し、収集した振動データに基づいて、点検業務や補修業務等を行う。   The information processing system 100 is not limited to a sewage management system. The information processing system 100 may be a vibration management system such as a bridge or a tunnel. The center server 10 of the vibration management system collects vibration data from each device 30, and performs inspection work, repair work, and the like based on the collected vibration data.

また、デバイス30のそれぞれは電池を備え、電池によって駆動する。デバイス30の電力消費は、データの送信処理による電力消費の割合が大きい。また、デバイス30の電池が切れると、作業員は、デバイス30が設置された場所に訪問し、電池の交換や充電等のメンテナンスを行う。デバイス30は、遠隔地や作業性の困難な場所に設置されている場合があり、作業員による電池の交換や充電等の作業の負荷に応じて、メンテナンスにかかるコストが増加する。   Each device 30 includes a battery and is driven by the battery. As for the power consumption of the device 30, the ratio of the power consumption by the data transmission process is large. When the battery of the device 30 runs out, the worker visits the place where the device 30 is installed and performs maintenance such as battery replacement and charging. The device 30 may be installed in a remote place or a place where workability is difficult, and the cost for maintenance increases according to the work load such as battery replacement or charging by the worker.

また、図1に示す情報処理システム100は、1つのデバイス30に対して、複数のゲートウェイ20を冗長して配置する。デバイス30とゲートウェイ20との無線環境は、設置環境の変化に応じて変動する。したがって、無線環境が悪化すると、ゲートウェイ20はデバイス30からデータを受信できないことがある。また、ゲートウェイ20が処理するデータ量が許容量を超えた場合、パケットの衝突が多発し、データの送信エラーが生じ易い。   In addition, the information processing system 100 illustrated in FIG. 1 redundantly arranges a plurality of gateways 20 for one device 30. The wireless environment between the device 30 and the gateway 20 varies according to changes in the installation environment. Therefore, when the wireless environment deteriorates, the gateway 20 may not be able to receive data from the device 30. Further, when the amount of data processed by the gateway 20 exceeds the allowable amount, packet collisions frequently occur and data transmission errors are likely to occur.

したがって、情報処理システム100は、デバイス30からのデータの受信の信頼性を高め、各ゲートウェイ20が処理するデータ量を許容量に収めるために、1つのデバイス30に対して、複数のゲートウェイ20を冗長に配置する。複数のゲートウェイ20は、互いに異なる周波数チャンネル(CH)の設定を有する。   Therefore, the information processing system 100 increases the reliability of data reception from the device 30 and sets a plurality of gateways 20 for one device 30 in order to keep the amount of data processed by each gateway 20 within an allowable amount. Place redundantly. The plurality of gateways 20 have different frequency channel (CH) settings.

[自律制御]
それぞれのデバイス30は、例えば、接続可能な複数のゲートウェイ20から、最適なゲートウェイ20を選択する。各デバイス30は、例えば、電波強度や再送回数等に基づいて、接続先のゲートウェイ20を選択する。電波強度は、デバイス30とゲートウェイ20との無線通信の電波の強さを示す。電波強度が高いほど、送信エラーが発生する確率は低い。再送回数は、ゲートウェイ20へのデータの送信エラーに伴う再送の回数を示す。
[Autonomous control]
Each device 30 selects the optimum gateway 20 from a plurality of gateways 20 that can be connected, for example. Each device 30 selects the gateway 20 to be connected based on, for example, the radio wave intensity, the number of retransmissions, and the like. The radio wave intensity indicates the radio wave intensity of wireless communication between the device 30 and the gateway 20. The higher the radio field intensity, the lower the probability that a transmission error will occur. The number of retransmissions indicates the number of retransmissions due to a data transmission error to the gateway 20.

各デバイス30は、接続中のゲートウェイ20との無線環境が悪化した場合に、無線環境の良い他のゲートウェイ20と接続する。これにより、デバイス30は、センサデータの再送回数を抑制する。デバイス30は、例えば、接続中のゲートウェイ20の電波強度が所定の閾値を下回ると、ゲートウェイ20との接続を切断し、周囲のゲートウェイ20の中から、電波強度が所定の閾値以上のゲートウェイ20を選択する。そして、デバイス30は、選択したゲートウェイと同一の周波数チャンネルを設定して接続する。または、各デバイス30は、再送回数の小さいゲートウェイ20を接続先として選択してもよい。   Each device 30 connects to another gateway 20 having a good wireless environment when the wireless environment with the connected gateway 20 deteriorates. Thereby, the device 30 suppresses the number of retransmissions of the sensor data. For example, when the radio wave intensity of the connected gateway 20 falls below a predetermined threshold value, the device 30 disconnects the connection with the gateway 20, and selects a gateway 20 whose radio wave intensity is equal to or higher than the predetermined threshold value from the surrounding gateways 20. select. Then, the device 30 sets and connects the same frequency channel as the selected gateway. Alternatively, each device 30 may select the gateway 20 with a small number of retransmissions as a connection destination.

このように、デバイス30は、当該デバイス30にとって最適なゲートウェイ20を選択する。各デバイス30が自律的にゲートウェイ20を選択できることにより、センタサーバ10は、各デバイス30とゲートウェイ20との間の経路を制御しなくてもよい。これにより、センタサーバ10の処理の負荷を抑制可能になるとともに、経路の制御にかかる通信処理が発生しない。   Thus, the device 30 selects the gateway 20 that is most suitable for the device 30. Since each device 30 can autonomously select the gateway 20, the center server 10 may not control the path between each device 30 and the gateway 20. As a result, the processing load of the center server 10 can be suppressed, and communication processing related to path control does not occur.

一方、各デバイス30は、他のデバイス30を考慮せずに、接続先のゲートウェイ20を選択する。したがって、電池残量の少ないデバイス30の、接続するゲートウェイ20へのセンサデータの再送回数が多くなることがある。データの送信処理の増加に応じて電力消費が増加することにより、電池残量の少ないデバイス30の電池残量がさらに減少する。これにより、デバイス間で、電池残量の偏りが生じ易くなる。   On the other hand, each device 30 selects the gateway 20 to be connected without considering other devices 30. Therefore, the number of times of retransmitting the sensor data to the gateway 20 to be connected by the device 30 with a small remaining battery capacity may increase. As the power consumption increases in accordance with the increase in the data transmission process, the remaining battery level of the device 30 with a low remaining battery level further decreases. As a result, the remaining amount of the battery tends to be uneven between the devices.

図2は、図1に示した情報処理システム100のデバイス間の電池残量の偏りを説明する図である。図2において、図1で示したものと同一のものは、同一の記号で示す。図2は、図1に示したゲートウェイ20−1〜20−3のうち、ゲートウェイ20−1、20−2を示す。また、図2は、図1に示したデバイス30a〜30fに加えて、さらにデバイス30g、30hを示す。また、図2は、センタサーバ10の図示を省略している。   FIG. 2 is a diagram for explaining a deviation in the remaining battery level between devices of the information processing system 100 illustrated in FIG. 1. 2 that are the same as those shown in FIG. 1 are denoted by the same symbols. FIG. 2 shows gateways 20-1 and 20-2 among the gateways 20-1 to 20-3 shown in FIG. FIG. 2 shows devices 30g and 30h in addition to the devices 30a to 30f shown in FIG. In FIG. 2, the center server 10 is not shown.

図2の例において、デバイス30a〜30fとゲートウェイ20−1との間の電波強度は高く、デバイス30a〜30fとゲートウェイ20−2との間の電波強度は低い。したがって、デバイス30a〜30fのそれぞれは、例えば、接続先のゲートウェイ20として、ゲートウェイ20−1を選択する。これにより、ゲートウェイ20−1に、複数のデバイス30a〜30fの接続が集中し、データ量が、ゲートウェイ20−1の処理能力及び無線容量の許容量を超える場合がある。これにより、パケットの衝突が多発し、センサデータの再送回数が増加することにより、通信のデータ量がさらに増加する。再送回数の増加が継続することにより、デバイス30a〜30fの電力消費が増加する。   In the example of FIG. 2, the radio field intensity between the devices 30a to 30f and the gateway 20-1 is high, and the radio field intensity between the devices 30a to 30f and the gateway 20-2 is low. Accordingly, each of the devices 30 a to 30 f selects the gateway 20-1 as the connection destination gateway 20, for example. Thereby, the connections of the plurality of devices 30a to 30f are concentrated on the gateway 20-1, and the data amount may exceed the processing capacity and the radio capacity allowable amount of the gateway 20-1. As a result, packet collisions occur frequently, and the number of retransmissions of sensor data increases, further increasing the amount of communication data. As the number of retransmissions continues to increase, the power consumption of the devices 30a to 30f increases.

また、例えば、デバイス30fは、再送回数を抑えるために、ゲートウェイ20−1より電波強度は弱いものの、再送回数が少ないゲートウェイ20−2を接続先に選択し直す。図2の例によると、デバイス30fの電池残量BPfは、デバイス30a〜30eの電池残量BPa〜BPeに対して少ない。したがって、電池残量BPa〜BPeが多いデバイス30a〜30eが、電波強度の高いゲートウェイ20−1と接続し、電池残量BPfが少ないデバイス30fが、電波強度の低いゲートウェイ20−2と接続する状態が発生する。   In addition, for example, in order to suppress the number of retransmissions, the device 30f reselects the gateway 20-2 with a smaller number of retransmissions as a connection destination although the radio wave intensity is weaker than the gateway 20-1. According to the example of FIG. 2, the remaining battery level BPf of the device 30f is smaller than the remaining battery levels BPa to BPe of the devices 30a to 30e. Accordingly, the devices 30a to 30e having a large remaining battery level BPa to BPe are connected to the gateway 20-1 having a high radio wave intensity, and the device 30f having a low battery level BPf is connected to the gateway 20-2 having a low radio wave intensity. Will occur.

これにより、電池残量BPfが少ないデバイス30fの電力消費が増加し、デバイス30fの電池残量BPfがさらに減少することにより、デバイス間の電池残量に偏りが生じる。情報処理システム100は、デバイス30fの電池が切れた場合、全てのデバイス30a〜30h(デバイス30ともいう)のセンサデータを収集できなくなる。即ち、デバイス30fの電池残量が少なくなることにより、情報処理システム100の寿命が短くなる。   As a result, the power consumption of the device 30f with a small remaining battery level BPf is increased, and the remaining battery level BPf of the device 30f is further reduced, thereby causing a bias in the remaining battery level between devices. When the battery of the device 30f runs out, the information processing system 100 cannot collect sensor data of all the devices 30a to 30h (also referred to as device 30). That is, the life of the information processing system 100 is shortened by reducing the remaining battery level of the device 30f.

なお、デバイス30が備える電池の特性に応じて、送信処理にかかる電力消費が異なることがある。また、温度等のデバイス30の環境要因に応じて、電池の劣化度合いがデバイス間で異なることにより、送信処理による電力消費も異なる。このように、デバイス間の再送回数が同様であっても、デバイス間の電池残量に偏りが生じることがある。   Note that the power consumption for the transmission process may vary depending on the characteristics of the battery included in the device 30. Further, depending on the environmental factors of the device 30 such as temperature, the power consumption due to the transmission processing varies depending on the degree of deterioration of the battery between the devices. Thus, even if the number of retransmissions between devices is the same, there may be a bias in the remaining battery power between devices.

[本実施の形態]
したがって、本実施の形態のセンタサーバ10は、いずれかのデバイス30の電池残量(残量情報)が、所定値を下回るか否かを判定し、下回ると判定した場合に、第1のモードから、第2のモードに切り替える。
[This embodiment]
Therefore, the center server 10 according to the present embodiment determines whether or not the remaining battery level (remaining capacity information) of any of the devices 30 is lower than a predetermined value. To switch to the second mode.

センタサーバ10は、第1のモードでは、デバイス30が選択するゲートウェイ20を経由して、センサデータ(取得情報)と残量情報とを受信する。以下、各デバイス30が接続先のゲートウェイ20を選択する態様を自律制御と称する。センタサーバ10は、第2のモードでは、各デバイス30から、ゲートウェイ20との通信状態を示す通信情報(制御データ)をさらに受信し、残量情報と通信情報とに基づいて各デバイス30のゲートウェイ20を決定する。そして、センタサーバ10は、決定したゲートウェイ20を各デバイス30に通知し、センサデータと残量情報とを決定したゲートウェイ20を経由して受信する。以下、センタサーバ10が全てのデバイス30の接続先のゲートウェイ20を決定する態様を集中制御と称する。   In the first mode, the center server 10 receives sensor data (acquisition information) and remaining amount information via the gateway 20 selected by the device 30. Hereinafter, an aspect in which each device 30 selects the gateway 20 to be connected is referred to as autonomous control. In the second mode, the center server 10 further receives communication information (control data) indicating a communication state with the gateway 20 from each device 30, and the gateway of each device 30 based on the remaining amount information and the communication information. 20 is determined. Then, the center server 10 notifies each device 30 of the determined gateway 20 and receives the sensor data and the remaining amount information via the determined gateway 20. Hereinafter, a mode in which the center server 10 determines gateways 20 to which all devices 30 are connected is referred to as centralized control.

集中制御によると、センタサーバ10は、電池残量BPfの少ないデバイス30fのみに、電波強度の強いゲートウェイ20−1を割り当てることができる。つまり、センタサーバ10は、デバイス30fの接続先をゲートウェイ20−1に決定し、電池残量BPa〜BPeが多いデバイス30a〜30eの接続先を、別のゲートウェイ20−2に決定する。   According to the centralized control, the center server 10 can assign the gateway 20-1 having a high radio wave intensity only to the device 30f with a small remaining battery level BPf. That is, the center server 10 determines the connection destination of the device 30f as the gateway 20-1, and determines the connection destination of the devices 30a to 30e having the remaining battery levels BPa to BPe as another gateway 20-2.

これにより、デバイス30fの再送回数を低減させ、データの送信処理にかかる電力消費を抑えることができる。電池残量BPfの少ないデバイス30fの電力消費が低減することにより、デバイス30fの寿命が長くなる。これにより、各デバイス30a〜30hの電池残量に基づく、情報処理システム100の寿命が長期化する。   As a result, the number of retransmissions of the device 30f can be reduced, and power consumption for data transmission processing can be suppressed. By reducing the power consumption of the device 30f with a small remaining battery level BPf, the life of the device 30f is extended. Thereby, the lifetime of the information processing system 100 based on the battery remaining amount of each device 30a-30h prolongs.

図3は、本実施の形態のセンタサーバ10の制御の態様を模式的に説明する図である。図3において、図1、図2で示したものと同一のものは、同一の記号で示す。図3は、情報処理システム100が、図1に示したゲートウェイ20−1〜20−3に加えて、ゲートウェイ20−4〜20−8を有する場合を示す。   FIG. 3 is a diagram schematically illustrating a control mode of the center server 10 according to the present embodiment. In FIG. 3, the same components as those shown in FIGS. 1 and 2 are denoted by the same symbols. FIG. 3 illustrates a case where the information processing system 100 includes gateways 20-4 to 20-8 in addition to the gateways 20-1 to 20-3 illustrated in FIG.

図3の上の模式図MD1は、自律制御(第1のモード)の態様を示す。模式図MD1によると、いずれのデバイス30a〜30hの電池残量BPa〜BPh(電池残量BPともいう)も十分である。つまり、模式図MD1によると、いずれのデバイス30a〜30hの電池残量BPa〜BPhも、所定値を下回っていない。したがって、センタサーバ10は、自律制御にしたがって、各デバイス30a〜30hが選択したゲートウェイ20−1〜20−8を経由して、センサデータを収集する。   An upper schematic diagram MD1 of FIG. 3 shows an aspect of autonomous control (first mode). According to the schematic diagram MD1, the remaining battery levels BPa to BPh (also referred to as the remaining battery level BP) of any of the devices 30a to 30h are sufficient. That is, according to the schematic diagram MD1, the remaining battery levels BPa to BPh of any of the devices 30a to 30h are not less than the predetermined value. Therefore, the center server 10 collects sensor data via the gateways 20-1 to 20-8 selected by the devices 30a to 30h according to autonomous control.

各デバイス30は、例えば、接続可能なゲートウェイ20のうち、電波強度、再送回数のいずれかまたは両方に基づいて、デバイス30にとって最適な接続先のゲートウェイ20を選択する。これにより、デバイス30は、データ送信時のエラーの発生率を抑え、再送処理に伴う電力消費を抑えることができる。図3の模式図MD1の例によると、デバイス30aは、接続可能なゲートウェイ20−1、20−2から最適なゲートウェイ20を選択し、当該ゲートウェイ20を介してセンサデータを送信する。   For example, each device 30 selects the gateway 20 that is the best connection destination for the device 30 based on either or both of the radio wave intensity and the number of retransmissions among the connectable gateways 20. As a result, the device 30 can suppress the error occurrence rate at the time of data transmission and suppress the power consumption associated with the retransmission process. According to the example of the schematic diagram MD1 in FIG. 3, the device 30a selects the optimum gateway 20 from the connectable gateways 20-1 and 20-2, and transmits the sensor data via the gateway 20.

図3の下の模式図MD2は、集中制御(第2のモード)の態様を示す。図2で説明したとおり、自律制御を採用する場合、デバイス間の電池残量BPの偏りが生じ易い。図3の模式図MD2は、自律制御を継続することにより、デバイス間の電池残量BPの偏りが生じた状態を示す。デバイス30bの電池残量BPb、及び、デバイス30gの電池残量BPgは、所定値を下回っているため、センタサーバ10は、自律制御から集中制御に切り替える。   A schematic diagram MD2 below FIG. 3 shows a mode of centralized control (second mode). As described with reference to FIG. 2, when adopting the autonomous control, the battery remaining amount BP between devices tends to be biased. Schematic diagram MD2 in FIG. 3 shows a state in which a deviation in the remaining battery level BP between the devices has occurred by continuing the autonomous control. Since the remaining battery level BPb of the device 30b and the remaining battery level BPg of the device 30g are below a predetermined value, the center server 10 switches from autonomous control to centralized control.

集中制御によると、センタサーバ10は、全てのデバイス30a〜30hの接続先のゲートウェイ20−1〜20−8を決定する。センタサーバ10は、各デバイス30a〜30hから、接続可能なゲートウェイ20との通信状態を示す通信情報(制御データともいう)をさらに受信し、電池残量BPと制御データとに基づいて各デバイス30a〜30hの接続先のゲートウェイ20を決定する。通信状態を示す通信情報は、デバイス30が接続可能な1つまたは複数のゲートウェイ20との通信の状態を示す。通信情報は、例えば、再送回数等を含む。   According to the centralized control, the center server 10 determines gateways 20-1 to 20-8 to which all devices 30a to 30h are connected. The center server 10 further receives communication information (also referred to as control data) indicating a communication state with the connectable gateway 20 from each device 30a to 30h, and each device 30a based on the remaining battery level BP and the control data. The gateway 20 to be connected to ˜30h is determined. The communication information indicating the communication state indicates the state of communication with one or a plurality of gateways 20 to which the device 30 can be connected. The communication information includes, for example, the number of retransmissions.

図3の模式図MD2の例によると、センタサーバ10は、電池残量BPb、BPgの少ないデバイス30b、30gの接続先を、通信情報に基づいて通信状態の良いゲートウェイ20−2、20−7にそれぞれ優先的に決定する。また、センタサーバ10は、電池残量BPa、BPhの多いデバイス30a、30hの接続先を、ゲートウェイ20−2、20−7とは異なるゲートウェイ20−1、20−8にそれぞれ決定する。   According to the example of the schematic diagram MD2 of FIG. 3, the center server 10 determines the connection destinations of the devices 30b and 30g having a small remaining battery level BPb and BPg as gateways 20-2 and 20-7 having good communication status based on the communication information. Each will be prioritized. Further, the center server 10 determines the connection destinations of the devices 30a and 30h having a large remaining battery level BPa and BPh as gateways 20-1 and 20-8 different from the gateways 20-2 and 20-7, respectively.

これにより、センタサーバ10は、電池残量BPb、BPgが少ないデバイス30b、30gの電力消費を減少させることができる。したがって、センタサーバ10は、デバイス間の電池残量BPを平滑化し、デバイス30b、30gの寿命を長期化することができる。これにより、センタサーバ10は、デバイス30a〜30hの電池残量BPa〜BPhに基づく情報処理システム100の寿命を長期化することができる。   Thereby, the center server 10 can reduce the power consumption of the devices 30b and 30g having a small remaining battery capacity BPb and BPg. Therefore, the center server 10 can smooth the remaining battery level BP between the devices and prolong the lifetime of the devices 30b and 30g. Thereby, the center server 10 can prolong the lifetime of the information processing system 100 based on the remaining battery levels BPa to BPh of the devices 30a to 30h.

このように、センタサーバ10は、情報処理システム100の寿命が短くなってしまった場合に、集中制御に切り替えることによってデバイス間の電池残量BPの偏りを平滑化し、情報処理システム100の寿命を長期化できる。または、センタサーバ10は、情報処理システム100の寿命が短くなる傾向にある場合に、集中制御に切り替えることによってデバイス間の電池残量BPの偏りを平滑化し、情報処理システム100の寿命を長期化することができる。寿命の長期化により、電池のメンテナンスにかかるコストを抑えることが可能になる。   As described above, when the life of the information processing system 100 is shortened, the center server 10 smoothes the bias of the remaining battery level BP between the devices by switching to the centralized control, thereby reducing the life of the information processing system 100. Can be extended. Alternatively, when the life of the information processing system 100 tends to be shortened, the center server 10 smoothes the deviation of the remaining battery power BP between the devices by switching to the centralized control, and extends the life of the information processing system 100. can do. By extending the service life, it is possible to reduce the cost of battery maintenance.

なお、集中制御に切り替えることにより、各デバイス30からの制御データの収集処理が生じ、通信のデータ量が増加する。ゲートウェイ20とセンタサーバ10との通信に、データ量の増加に応じて課金が生じる無線回線を採用する場合、通信のデータ量の増加に伴い、通信にかかるコストが増加する。   By switching to centralized control, control data collection processing from each device 30 occurs, and the amount of communication data increases. When a wireless line that charges for the increase in the amount of data is adopted for communication between the gateway 20 and the center server 10, the cost for communication increases as the amount of communication data increases.

また、制御データの送信処理によって各デバイス30の電力消費が増加する。また、情報処理システム100が、例えば、膨大な量のゲートウェイ20を有する場合、各デバイス30から制御データの収集処理が生じることに伴う、センタサーバ10の通信処理の負荷は大きい。さらに、センタサーバ10が、デバイス30とゲートウェイ20との全ての組み合わせから最適な組み合わせを算出する処理の負荷も大きい。   Further, the power consumption of each device 30 is increased by the control data transmission process. For example, when the information processing system 100 includes an enormous amount of gateways 20, the load of the communication processing of the center server 10 accompanying the collection of control data from each device 30 is large. Furthermore, the processing load for the center server 10 to calculate the optimum combination from all the combinations of the device 30 and the gateway 20 is also large.

これに対し、本実施の形態におけるセンタサーバ10は、いずれかのデバイス30の電池残量BPが所定値を下回った場合にのみ、集中制御に切り替える。これにより、センタサーバ10は、情報処理システム100の寿命を長期化する際の、通信コスト、センタサーバ10の通信処理や算出処理の負荷、及び、電力消費を抑えることができる。また、集中制御に基づくことにより、通信のコストが増加するものの、寿命の長期化により電池のメンテナンスにかかるコストが低減するため、総合的なコストを抑えることが可能になる。   On the other hand, the center server 10 in the present embodiment switches to the centralized control only when the remaining battery level BP of any device 30 falls below a predetermined value. Thereby, the center server 10 can suppress the communication cost, the load of the communication process and the calculation process of the center server 10, and the power consumption when extending the life of the information processing system 100. In addition, although the cost of communication increases due to the centralized control, the cost for maintenance of the battery is reduced due to the extension of the lifetime, so that the overall cost can be suppressed.

次に、図4、図5にしたがって、本実施の形態におけるセンタサーバ10のハードウェア構成及びソフトウェアブロック図を説明する。また、図8、図9にしたがって、本実施の形態におけるデバイス30のハードウェア構成及びソフトウェアブロック図を説明する。   Next, the hardware configuration and software block diagram of the center server 10 in the present embodiment will be described with reference to FIGS. The hardware configuration and software block diagram of the device 30 according to the present embodiment will be described with reference to FIGS.

[センタサーバのハードウェア構成]
図4は、図1に示したセンタサーバ10のハードウェア構成図である。図4に示すセンタサーバ10は、例えば、CPU101、メモリ102、補助記憶装置103、通信インタフェース部104、入力装置105、出力装置106を有する。各部は、バス107を介して相互に接続する。メモリ102は、RAM(Random Access Memory:RAM)201や不揮発性メモリ202等を備える。入力装置105は、例えば、キーボードやマウス等を示し、出力装置106は、例えば、ディスプレイである。
[Hardware configuration of center server]
FIG. 4 is a hardware configuration diagram of the center server 10 shown in FIG. The center server 10 illustrated in FIG. 4 includes, for example, a CPU 101, a memory 102, an auxiliary storage device 103, a communication interface unit 104, an input device 105, and an output device 106. Each unit is connected to each other via a bus 107. The memory 102 includes a RAM (Random Access Memory: RAM) 201, a nonvolatile memory 202, and the like. The input device 105 indicates, for example, a keyboard and a mouse, and the output device 106 is, for example, a display.

CPU101は、バス107を介してメモリ102等と接続するとともに、センタサーバ10全体の制御を行う。通信インタフェース部104は、アンテナ108を介して、ゲートウェイ20や他の装置(図示せず)と無線通信にしたがってデータの送受信等を行う。アンテナ108は、無線電波による各種データの送受信を行う。なお、通信インタフェース部104は、有線通信にしたがって、ゲートウェイ20や他の装置(図示せず)と接続してもよい。メモリ102のRAM201は、CPU101が処理を行うデータ等を記憶する。補助記憶装置103は、例えば、各種情報を記憶するハードディスク(Hard disk drive:HDD)である。   The CPU 101 is connected to the memory 102 and the like via the bus 107 and controls the center server 10 as a whole. The communication interface unit 104 transmits and receives data and the like via the antenna 108 according to wireless communication with the gateway 20 and other devices (not shown). The antenna 108 transmits and receives various data using radio waves. The communication interface unit 104 may be connected to the gateway 20 or another device (not shown) according to wired communication. A RAM 201 of the memory 102 stores data to be processed by the CPU 101. The auxiliary storage device 103 is, for example, a hard disk (Hard disk drive: HDD) that stores various types of information.

メモリ102の不揮発性メモリ202は、CPU101が実行するOS(Operating System:OS)のプログラムを格納する領域(図示せず)を備える。また、不揮発性メモリ202は、データ収集プログラム格納領域210と、アプリケーションプログラム格納領域211とを備える。不揮発性メモリ202は、例えば、不揮発性半導体メモリ等を示す。   The nonvolatile memory 202 of the memory 102 includes an area (not shown) for storing an OS (Operating System: OS) program executed by the CPU 101. The nonvolatile memory 202 includes a data collection program storage area 210 and an application program storage area 211. The nonvolatile memory 202 indicates, for example, a nonvolatile semiconductor memory.

データ収集プログラム格納領域210のデータ収集プログラム(以下、データ収集プログラム210と称する)は、CPU101の実行によって、各デバイス30からデータを収集する。データ収集プログラム210の処理の詳細は、図5にしたがって説明する。アプリケーションプログラム格納領域211のアプリケーションプログラム(以下、アプリケーションプログラム211と称する)は、CPU101の実行によって、データ収集プログラム210が収集したデータの集計や分析処理を行う。   A data collection program (hereinafter referred to as a data collection program 210) in the data collection program storage area 210 collects data from each device 30 by the execution of the CPU 101. Details of the processing of the data collection program 210 will be described with reference to FIG. An application program (hereinafter referred to as application program 211) in the application program storage area 211 performs aggregation and analysis processing of data collected by the data collection program 210 by the execution of the CPU 101.

また、補助記憶装置103は、デバイス情報格納領域310(以下、デバイス情報テーブル310と称する)と、デバイス接続先制御情報格納領域311(以下、デバイス接続先制御情報テーブル311と称する)とを有する。デバイス情報テーブル310は、データ収集プログラム210が収集した各デバイス30のデータを記憶するテーブルである。デバイス情報テーブル310の詳細は、図6にしたがって後述する。デバイス接続先制御情報テーブル311は、各デバイス30の接続指定のゲートウェイ20の情報を記憶するテーブルである。デバイス接続先制御情報テーブル311の詳細は、図7にしたがって後述する。   The auxiliary storage device 103 also has a device information storage area 310 (hereinafter referred to as a device information table 310) and a device connection destination control information storage area 311 (hereinafter referred to as a device connection destination control information table 311). The device information table 310 is a table that stores data of each device 30 collected by the data collection program 210. Details of the device information table 310 will be described later with reference to FIG. The device connection destination control information table 311 is a table that stores information on the gateway 20 for specifying the connection of each device 30. Details of the device connection destination control information table 311 will be described later with reference to FIG.

[センタサーバのソフトウェアブロック]
図5は、図4に示したセンタサーバ10のデータ収集プログラム210のソフトウェアブロックの構成図である。図5において、図4で示したものと同一のものは、同一の記号で示す。
[Center Server Software Block]
FIG. 5 is a configuration diagram of software blocks of the data collection program 210 of the center server 10 shown in FIG. 5 that are the same as those shown in FIG. 4 are indicated by the same symbols.

図5に示すように、図4に示したデータ収集プログラム210は、制御モジュール221、接続制御切り替えモジュール222、接続先最適化モジュール223を有する。各モジュール221〜223の処理の詳細は、図15、図16のフローチャート図で後述する。   As illustrated in FIG. 5, the data collection program 210 illustrated in FIG. 4 includes a control module 221, a connection control switching module 222, and a connection destination optimization module 223. Details of processing of each module 221 to 223 will be described later with reference to flowcharts of FIGS. 15 and 16.

制御モジュール221は、各モジュール222、223を制御するとともに、各デバイス30からゲートウェイ20を中継して受信するデータをデバイス情報テーブル310(図4)に記憶する。   The control module 221 controls the modules 222 and 223, and stores data received from each device 30 through the gateway 20 in the device information table 310 (FIG. 4).

接続制御切り替えモジュール222は、デバイス情報テーブル310を参照して、自律制御と集中制御との切り替えの有無を判定するとともに、各制御に応じた処理を行う。また、接続制御切り替えモジュール222は、自律制御から集中制御に切り替える場合に、接続先最適化モジュール223に、全てのデバイス30の接続先のゲートウェイ20の最適化を指示する。また、接続制御切り替えモジュール222は、決定した、各デバイス30の接続先のゲートウェイ20の情報を、デバイス接続先制御情報テーブル311(図4)に記憶する。   The connection control switching module 222 refers to the device information table 310 to determine whether or not to switch between autonomous control and centralized control, and performs processing according to each control. The connection control switching module 222 instructs the connection destination optimization module 223 to optimize the connection destination gateways 20 of all devices 30 when switching from autonomous control to centralized control. Further, the connection control switching module 222 stores the determined information of the connection destination gateway 20 of each device 30 in the device connection destination control information table 311 (FIG. 4).

接続先最適化モジュール223は、接続制御切り替えモジュール222の指示に応答して、デバイス情報テーブル310を参照し、計算処理にしたがって、全てのデバイス30の接続先に指定するゲートウェイ20を決定する。   In response to the instruction from the connection control switching module 222, the connection destination optimization module 223 refers to the device information table 310 and determines the gateway 20 to be specified as the connection destination of all the devices 30 according to the calculation process.

[デバイス情報テーブル]
図6は、図4、図5に示した、デバイス情報テーブル310の一例を説明する図である。デバイス情報テーブル310は、例えば、デバイス30のMAC(Media Access Control:MAC)アドレスを識別情報として、電池残量、送信頻度、再送回数、及び、電波強度の項目を有する。電池残量は、デバイス30を駆動する電池の残量情報を示す。送信頻度(回/sec)は、1秒当たりのセンサデータの送信回数を示す。再送回数は、所定の期間における、各ゲートウェイ20へのセンサデータの送信エラーに伴う再送回数を示す。電波強度(dBm(decibel-milliwatts))は、各ゲートウェイ20との間の電波強度を示す。
[Device information table]
FIG. 6 is a diagram illustrating an example of the device information table 310 illustrated in FIGS. 4 and 5. The device information table 310 includes items such as a remaining battery level, a transmission frequency, the number of retransmissions, and a radio wave intensity, using, for example, a MAC (Media Access Control: MAC) address of the device 30 as identification information. The battery remaining amount indicates remaining amount information of a battery that drives the device 30. The transmission frequency (times / sec) indicates the number of transmissions of sensor data per second. The number of retransmissions indicates the number of retransmissions accompanying a transmission error of sensor data to each gateway 20 in a predetermined period. The radio wave intensity (dBm (decibel-milliwatts)) indicates the radio wave intensity between each gateway 20.

図6に示す、デバイスアドレス「aaaa」のデバイス30は、図1〜図3に示したデバイス30aを示す。また、デバイスアドレス「bbbb」のデバイス30は、デバイス30bを示し、デバイスアドレス「cccc」のデバイス30は、デバイス30cを示す。また、図6に示す、ゲートウェイ「GW1」〜「GW4」は、図3に示したゲートウェイ20−1〜20−4に対応する。図7で後述するデバイス接続先制御情報テーブル311についても同様である。   The device 30 having the device address “aaaa” illustrated in FIG. 6 is the device 30a illustrated in FIGS. The device 30 with the device address “bbbb” indicates the device 30b, and the device 30 with the device address “cccc” indicates the device 30c. Further, gateways “GW1” to “GW4” illustrated in FIG. 6 correspond to the gateways 20-1 to 20-4 illustrated in FIG. The same applies to the device connection destination control information table 311 described later with reference to FIG.

図6に示すデバイス情報テーブル310によると、デバイス30aの電池残量は90%であって、送信頻度は「0.1」である。即ち、デバイス30aは、10秒に1回、センサデータをセンタサーバ10に送信する。また、デバイス情報テーブル310によると、デバイス30aは、ゲートウェイ「GW1」20−1、ゲートウェイ「GW2」20−2、及びゲートウェイ「GW4」20−4と接続可能である。   According to the device information table 310 shown in FIG. 6, the remaining battery level of the device 30a is 90%, and the transmission frequency is “0.1”. That is, the device 30a transmits the sensor data to the center server 10 once every 10 seconds. Further, according to the device information table 310, the device 30a can be connected to the gateway “GW1” 20-1, the gateway “GW2” 20-2, and the gateway “GW4” 20-4.

また、図6に示すデバイス情報テーブル310によると、デバイス30aからゲートウェイ「GW1」20−1への再送回数は5回、ゲートウェイ「GW2」20−2への再送回数は1回、ゲートウェイ「GW4」20−4への再送回数は10回である。つまり、デバイス30aと接続可能なゲートウェイ20のうち、ゲートウェイ「GW2」20−2への再送回数が一番少ない。   Further, according to the device information table 310 shown in FIG. 6, the number of retransmissions from the device 30a to the gateway “GW1” 20-1 is 5, the number of retransmissions to the gateway “GW2” 20-2 is 1, and the gateway “GW4”. The number of retransmissions to 20-4 is 10 times. That is, among the gateways 20 that can be connected to the device 30a, the number of retransmissions to the gateway “GW2” 20-2 is the smallest.

また、図6に示すデバイス情報テーブル310によると、デバイス30aとゲートウェイ「GW1」20−1との電波強度は「−70dBm」である。また、デバイス30aとゲートウェイ「GW2」20−2との電波強度は「−45dBm」、ゲートウェイ「GW4」20−4との電波強度は「−88dBm」である。つまり、デバイス30aと接続可能なゲートウェイ20のうち、ゲートウェイ「GW2」20−2との電波強度が一番高い。   Further, according to the device information table 310 illustrated in FIG. 6, the radio field intensity between the device 30a and the gateway “GW1” 20-1 is “−70 dBm”. The radio field intensity between the device 30a and the gateway “GW2” 20-2 is “−45 dBm”, and the radio field intensity between the gateway “GW4” 20-4 is “−88 dBm”. That is, of the gateways 20 that can be connected to the device 30a, the radio field intensity with the gateway “GW2” 20-2 is the highest.

図6に示す、デバイス情報テーブル310は、他のデバイス30b、30cについても、同様にして、電池残量、送信頻度、再送回数、及び、電波強度の情報を有する。図6に示すデバイス情報テーブル310によると、デバイス30毎に、送信頻度が異なる。このように、各デバイス30は、異なる送信頻度にしたがって、異なる種類のセンサデータを送信してもよい。   The device information table 310 illustrated in FIG. 6 similarly includes information on the remaining battery level, the transmission frequency, the number of retransmissions, and the radio wave intensity for the other devices 30b and 30c. According to the device information table 310 illustrated in FIG. 6, the transmission frequency is different for each device 30. Thus, each device 30 may transmit different types of sensor data according to different transmission frequencies.

[デバイス接続先制御情報テーブル]
図7は、図4、図5に示した、デバイス接続先制御情報テーブル311の一例を説明する図である。図7の(A)は、自律制御におけるデバイス接続先制御情報テーブル311aの一例を示し、図7の(B)は、集中制御におけるデバイス接続先制御情報テーブル311bの一例を示す。
[Device connection destination control information table]
FIG. 7 is a diagram illustrating an example of the device connection destination control information table 311 illustrated in FIGS. 4 and 5. FIG. 7A shows an example of the device connection destination control information table 311a in autonomous control, and FIG. 7B shows an example of the device connection destination control information table 311b in centralized control.

デバイス接続先制御情報テーブル311a、311bは、各デバイス30の接続指定のゲートウェイ20の項目を有する。接続指定のゲートウェイ20は、センタサーバ10が決定した、各デバイス30の接続先のゲートウェイ20を示す。   The device connection destination control information tables 311 a and 311 b have an item of the gateway 20 for specifying the connection of each device 30. The connection-designated gateway 20 indicates the gateway 20 to which each device 30 is connected, determined by the center server 10.

図7の(A)に示すデバイス接続先制御情報テーブル311aは、自律制御を採用する場合のテーブルであるため、接続指定のゲートウェイ20の項目に情報を有しない。一方、図7の(B)に示すデバイス接続先制御情報テーブル311bは、集中制御を採用する場合のテーブルであるため、接続指定のゲートウェイ20の項目に情報を有する。具体的に、デバイス30aの接続指定のゲートウェイ20は、ゲートウェイ「GW1」20−1である。また、デバイス30bの接続指定のゲートウェイ20はゲートウェイ「GW2」20−2、デバイス30cの接続指定のゲートウェイ20はゲートウェイ「GW3」20−3である。   Since the device connection destination control information table 311a shown in FIG. 7A is a table in the case of adopting autonomous control, there is no information in the item of the gateway 20 designated for connection. On the other hand, the device connection destination control information table 311b shown in FIG. 7B is a table in the case where centralized control is employed, and therefore has information in the item of the gateway 20 designated for connection. Specifically, the gateway 20 for specifying the connection of the device 30a is the gateway “GW1” 20-1. Further, the gateway 20 for specifying the connection of the device 30b is the gateway “GW2” 20-2, and the gateway 20 for specifying the connection of the device 30c is the gateway “GW3” 20-3.

次に、図21、図22にしたがって、本実施の形態におけるゲートウェイ20のハードウェア構成及びソフトウェアブロック図を説明する。   Next, the hardware configuration and software block diagram of the gateway 20 in the present embodiment will be described with reference to FIGS.

[ゲートウェイのハードウェア構成図]
図21は、図1〜図3に示したゲートウェイ20のハードウェア構成図である。図21に示すゲートウェイ20は、例えば、CPU501、メモリ502、通信インタフェース部503を有する。各部は、バス505を介して相互に接続する。メモリ502は、RAM520や不揮発性メモリ521等を備える。
[Gateway hardware configuration diagram]
FIG. 21 is a hardware configuration diagram of the gateway 20 illustrated in FIGS. 1 to 3. The gateway 20 illustrated in FIG. 21 includes, for example, a CPU 501, a memory 502, and a communication interface unit 503. Each unit is connected to each other via a bus 505. The memory 502 includes a RAM 520, a nonvolatile memory 521, and the like.

CPU501は、バス505を介してメモリ502等と接続するとともに、ゲートウェイ20全体の制御を行う。通信インタフェース部503は、アンテナ504を介して、デバイス30やセンタサーバ10とデータの送受信等を行う。アンテナ504は、無線電波による各種データの送受信を行う。なお、通信インタフェース部503は、有線通信にしたがって、センタサーバ10とデータの送受信等を行ってもよい。   The CPU 501 is connected to the memory 502 and the like via the bus 505 and controls the entire gateway 20. The communication interface unit 503 transmits and receives data to and from the device 30 and the center server 10 via the antenna 504. The antenna 504 transmits and receives various data using radio waves. Note that the communication interface unit 503 may transmit / receive data to / from the center server 10 according to wired communication.

メモリ502のRAM520は、CPU501が処理を行うデータ等を記憶する。メモリ502の不揮発性メモリ521は、CPU501が実行するOSのプログラムを格納する領域(図示せず)を備える。また、不揮発性メモリ521は、データ中継プログラム格納領域510を備える。不揮発性メモリ521は、例えば、不揮発性半導体メモリ等を示す。データ中継プログラム格納領域510のデータ中継プログラム(以下、データ中継プログラム510と称する)は、CPU101の実行によって、センサデータの中継処理を実現する。データ中継プログラム510の処理の詳細については、図22にしたがって説明する。   A RAM 520 of the memory 502 stores data to be processed by the CPU 501. The nonvolatile memory 521 of the memory 502 includes an area (not shown) for storing an OS program executed by the CPU 501. The nonvolatile memory 521 includes a data relay program storage area 510. The nonvolatile memory 521 indicates, for example, a nonvolatile semiconductor memory. The data relay program (hereinafter referred to as the data relay program 510) in the data relay program storage area 510 implements sensor data relay processing by execution of the CPU 101. Details of the processing of the data relay program 510 will be described with reference to FIG.

[ゲートウェイのソフトウェアブロック]
図22は、図21に示したゲートウェイ20のソフトウェアブロックの構成図である。図22に示すように、図21に示したデータ中継プログラム510は、制御モジュール511と中継モジュール512を有する。
[Gateway Software Block]
FIG. 22 is a block diagram of software blocks of the gateway 20 shown in FIG. As illustrated in FIG. 22, the data relay program 510 illustrated in FIG. 21 includes a control module 511 and a relay module 512.

制御モジュール511は、中継モジュール512の処理を管理する。また、中継モジュール512は、デバイス30からセンタサーバ10を宛先とするデータを受信すると、受信したデータを無線通信または有線通信にしたがってセンタサーバ10に送信する。また、中継モジュール512は、センタサーバ10からデバイス30を宛先とするデータを受信すると、受信したデータを近距離無線通信にしたがってデバイス30に送信する。   The control module 511 manages the processing of the relay module 512. Further, when receiving data destined for the center server 10 from the device 30, the relay module 512 transmits the received data to the center server 10 according to wireless communication or wired communication. Further, when the relay module 512 receives data destined for the device 30 from the center server 10, the relay module 512 transmits the received data to the device 30 according to short-range wireless communication.

次に、デバイス30のハードウェア構成、及び、ソフトウェアブロック図を説明する。図8、図9は、図3に示した複数のデバイス30a〜30hのうち、デバイス30aの例を示すが、他のデバイス30b〜30hについても同様である。   Next, the hardware configuration and software block diagram of the device 30 will be described. 8 and FIG. 9 show an example of the device 30a among the plurality of devices 30a to 30h shown in FIG. 3, but the same applies to the other devices 30b to 30h.

[デバイスのハードウェア構成図]
図8は、図1〜図3に示したデバイス30aのハードウェア構成図である。図8に示すデバイス30aは、例えば、CPU301、メモリ302、センサ303、通信インタフェース部304、バッテリ305を有する。各部は、バス306を介して相互に接続する。メモリ302は、RAM401や不揮発性メモリ402等を備える。
[Device hardware configuration diagram]
FIG. 8 is a hardware configuration diagram of the device 30a shown in FIGS. The device 30a illustrated in FIG. 8 includes, for example, a CPU 301, a memory 302, a sensor 303, a communication interface unit 304, and a battery 305. Each unit is connected to each other via a bus 306. The memory 302 includes a RAM 401, a nonvolatile memory 402, and the like.

CPU301は、バス306を介してメモリ302等と接続するとともに、デバイス30a全体の制御を行う。センサ303は、水位や、温度、振動等の計測情報を検出する検出手段である。センサ303は、例えば、水位センサ、温度センサ、振動センサ等である。通信インタフェース部304は、アンテナ307を介して、ゲートウェイ20と近距離無線通信にしたがってデータの送受信等を行う。アンテナ307は、無線電波による各種データの送受信を行う。バッテリ305は、デバイス30aを稼働させるための電力を供給する電源手段である。バッテリ305は、例えば、乾電池やリチウムイオン等の充電式電池を示すが、これに限定されるものではない。   The CPU 301 is connected to the memory 302 and the like via the bus 306 and controls the entire device 30a. The sensor 303 is a detection unit that detects measurement information such as a water level, temperature, and vibration. The sensor 303 is, for example, a water level sensor, a temperature sensor, a vibration sensor, or the like. The communication interface unit 304 performs data transmission / reception and the like via the antenna 307 according to the short-range wireless communication with the gateway 20. The antenna 307 transmits and receives various data using radio waves. The battery 305 is power supply means for supplying power for operating the device 30a. For example, the battery 305 is a rechargeable battery such as a dry battery or a lithium ion, but is not limited thereto.

メモリ302のRAM401は、CPU301が処理を行うデータ等を記憶する。メモリ302の不揮発性メモリ402は、CPU301が実行するOSのプログラムを格納する領域(図示せず)を備える。また、不揮発性メモリ402は、データ送信プログラム格納領域410、制御情報格納領域411を備える。不揮発性メモリ402は、例えば、不揮発性半導体メモリ等を示す。   A RAM 401 of the memory 302 stores data to be processed by the CPU 301. The nonvolatile memory 402 of the memory 302 includes an area (not shown) for storing an OS program executed by the CPU 301. The nonvolatile memory 402 includes a data transmission program storage area 410 and a control information storage area 411. The nonvolatile memory 402 represents, for example, a nonvolatile semiconductor memory.

データ送信プログラム格納領域410のデータ送信プログラム(以下、データ送信プログラム410と称する)は、CPU101の実行によって、センサデータの取得処理、及び、送信処理を実現する。データ送信プログラム410の処理の詳細については、図9にしたがって説明する。制御情報格納領域411(以下、制御情報テーブル411と称する)は、電池残量、制御データ(送信頻度、再送回数、電波強度)、及び、接続指定のゲートウェイ20の情報を記憶する。制御情報テーブル411の詳細は、図10にしたがって後述する。   A data transmission program in the data transmission program storage area 410 (hereinafter referred to as a data transmission program 410) implements sensor data acquisition processing and transmission processing by execution of the CPU 101. Details of the processing of the data transmission program 410 will be described with reference to FIG. The control information storage area 411 (hereinafter referred to as the control information table 411) stores the remaining battery capacity, control data (transmission frequency, number of retransmissions, radio wave intensity), and information on the connection-designated gateway 20. Details of the control information table 411 will be described later with reference to FIG.

[デバイスのソフトウェアブロック]
図9は、図8に示したデバイス30aのソフトウェアブロックの構成図である。図9において、図8で示したものと同一のものは、同一の記号で示す。図9に示すように、図8に示したデータ送信プログラム410は、制御モジュール421、センシングモジュール422、電池残量取得モジュール423、接続先制御切り替えモジュール424、接続先切り替えモジュール425を有する。各モジュール421〜425の処理の詳細については、図17〜図20にしたがって後述する。
[Device Software Block]
FIG. 9 is a block diagram of software blocks of the device 30a shown in FIG. 9, the same components as those shown in FIG. 8 are indicated by the same symbols. As illustrated in FIG. 9, the data transmission program 410 illustrated in FIG. 8 includes a control module 421, a sensing module 422, a battery remaining amount acquisition module 423, a connection destination control switching module 424, and a connection destination switching module 425. Details of the processes of the modules 421 to 425 will be described later with reference to FIGS.

制御モジュール421は、各モジュール422〜425を制御する。また、制御モジュール421は、定期的に、センシングモジュール422に対するセンサデータの取得指示や、電池残量取得モジュール423に対する電池の残量情報の取得指示を行う。また、制御モジュール421は、取得したセンサデータ及び残量情報の送信処理を制御し、送信処理の再送回数や残量情報を制御情報テーブル411(図8)に記憶する。   The control module 421 controls each module 422-425. In addition, the control module 421 periodically gives an instruction to acquire sensor data to the sensing module 422 and an instruction to acquire battery remaining amount information to the battery remaining amount acquiring module 423. Further, the control module 421 controls the transmission process of the acquired sensor data and remaining amount information, and stores the number of retransmissions and remaining amount information of the transmission process in the control information table 411 (FIG. 8).

センシングモジュール422は、制御モジュール421の指示に応じて、センサ303(図8)が検出したセンサデータを取得する。電池残量取得モジュール423は、制御モジュール421の指示に応じて、バッテリ305(図8)の電池の残量情報(電池残量ともいう)を取得する。   The sensing module 422 acquires sensor data detected by the sensor 303 (FIG. 8) in response to an instruction from the control module 421. The battery remaining amount acquisition module 423 acquires battery remaining amount information (also referred to as battery remaining amount) of the battery 305 (FIG. 8) in response to an instruction from the control module 421.

接続先制御切り替えモジュール424は、センタサーバ10による自律制御と集中制御との切り替え指示に応答して、制御情報テーブル411を更新する。また、接続先制御切り替えモジュール424は、センタサーバ10からの要求に応じて、制御データをセンタサーバ10に送信する。接続先切り替えモジュール425は、制御情報テーブル411を更新するとともに、自律制御の場合に、ゲートウェイ20を選択する。   The connection destination control switching module 424 updates the control information table 411 in response to an instruction for switching between autonomous control and centralized control by the center server 10. Further, the connection destination control switching module 424 transmits control data to the center server 10 in response to a request from the center server 10. The connection destination switching module 425 updates the control information table 411 and selects the gateway 20 in the case of autonomous control.

[制御情報テーブル]
図10は、図8、図9に示した制御情報テーブル411の一例を説明する図である。図10の(A)は、自律制御における制御情報テーブル411aの一例を示し、図10の(B)は、集中制御における制御情報テーブル411bの一例を示す。
[Control information table]
FIG. 10 is a diagram illustrating an example of the control information table 411 illustrated in FIGS. 8 and 9. 10A shows an example of the control information table 411a in autonomous control, and FIG. 10B shows an example of the control information table 411b in centralized control.

制御情報テーブル411a、411bは、電池残量、送信頻度、再送回数、電波強度の情報及び、接続指定のゲートウェイ20の項目を有する。各項目は、図6のデバイス情報テーブル310及び図7のデバイス接続先制御情報テーブル311a、311bで説明したとおりである。   The control information tables 411a and 411b have items of remaining battery capacity, transmission frequency, number of retransmissions, radio wave intensity information, and connection designation gateway 20 items. Each item is as described in the device information table 310 of FIG. 6 and the device connection destination control information tables 311a and 311b of FIG.

図10の(A)(B)に示す制御情報テーブル411a、411bは、デバイス30aの制御情報テーブル411であるため、図6に示したデバイス情報テーブル310が含むデバイス30aの情報と同様の情報を有する。   Since the control information tables 411a and 411b shown in FIGS. 10A and 10B are the control information table 411 of the device 30a, the same information as the information of the device 30a included in the device information table 310 shown in FIG. Have.

また、図10の(A)に示す、自律制御における制御情報テーブル411aは、図7の(A)で説明したデバイス接続先制御情報テーブル311aと同様にして、接続指定のゲートウェイ20の項目に情報を有しない。また、図10の(B)に示す、集中制御における制御情報テーブル411bは、図7の(B)で説明したデバイス接続先制御情報テーブル311bと同様にして、接続指定のゲートウェイ20の項目に情報を有する。   Further, the control information table 411a in the autonomous control shown in FIG. 10A is similar to the device connection destination control information table 311a described in FIG. Does not have. Further, the control information table 411b in the centralized control shown in FIG. 10B is similar to the device connection destination control information table 311b described in FIG. Have

次に、図11にしたがって自律制御から集中制御への切り替え処理の流れを、図12にしたがって集中制御から自律制御への切り替え処理の流れを説明する。   Next, the flow of switching processing from autonomous control to centralized control will be described according to FIG. 11, and the flow of switching processing from centralized control to autonomous control will be described according to FIG.

[自律制御から集中制御への切り替え]
図11は、自律制御から集中制御への切り替え処理の流れを説明するシーケンス図である。図11において、図3で示したものと同一のものは、同一の記号で示す。図11は、複数のデバイス30a〜30h(デバイス群30、各デバイス30ともいう)とセンタサーバ10と間の信号の送受信の流れにしたがって、自律制御から集中制御への切り替え処理の流れを説明する。また、各デバイス30はゲートウェイ20を介してセンタサーバ10に情報を送信するが、説明を簡易にするために、図11はゲートウェイ20の図示を省略する。
[Switching from autonomous control to centralized control]
FIG. 11 is a sequence diagram illustrating the flow of switching processing from autonomous control to centralized control. 11, the same components as those shown in FIG. 3 are indicated by the same symbols. FIG. 11 illustrates the flow of switching processing from autonomous control to centralized control according to the flow of signal transmission / reception between the plurality of devices 30a to 30h (device group 30 and each device 30) and the center server 10. . Each device 30 transmits information to the center server 10 via the gateway 20, but FIG. 11 omits the illustration of the gateway 20 in order to simplify the description.

デバイス群30は、10秒等の所定の時間毎に、センサデータ及び残量情報を取得して送信センサデータを生成し、当該デバイス30が選択したゲートウェイ(図11に図示せず)20を介して、センタサーバ10に送信する(a1)。送信センサデータのフォーマットは、図14にしたがって後述する。   The device group 30 acquires sensor data and remaining amount information every predetermined time such as 10 seconds, generates transmission sensor data, and passes through a gateway (not shown in FIG. 11) 20 selected by the device 30. To the center server 10 (a1). The format of the transmission sensor data will be described later according to FIG.

センタサーバ10は、デバイス群30から送信センサデータを受信し、各デバイス30のセンサデータ及び残量情報を取得する(a2)。なお、各デバイス30は、センタサーバ10や他の装置(図示せず)から受信した取得指示に応答して、センサデータ及び残量情報を取得し、センタサーバ10に送信してもよい。   The center server 10 receives the transmission sensor data from the device group 30, and acquires the sensor data and remaining amount information of each device 30 (a2). Each device 30 may acquire sensor data and remaining amount information in response to an acquisition instruction received from the center server 10 or another device (not shown), and may transmit it to the center server 10.

センタサーバ10は、受信したデバイス群30の残量情報に基づいて、電池残量の平均(以下、平均電池残量と称する)を算出する(a3)。そして、センタサーバ10は、いずれかのデバイス30の電池残量が、所定値を下回るか否かを判定し、下回ると判定した場合に自律制御から集中制御に切り替える。所定値は、閾値、または、平均電池残量から所定の度合いを減じた値を示す。つまり、センタサーバ10は、いずれかのデバイス30の電池残量が、閾値を下回るか否か、または、平均電池残量から所定の度合い以上、下回るか否かを判定し、下回ると判定した場合に自律制御から集中制御に切り替える。閾値、及び、所定の度合いは、例えば、予め、検証等にしたがって設定される値を示す。   The center server 10 calculates the average remaining battery level (hereinafter referred to as the average remaining battery level) based on the received remaining level information of the device group 30 (a3). Then, the center server 10 determines whether or not the remaining battery level of any one of the devices 30 is lower than a predetermined value, and switches from autonomous control to centralized control when it is determined that it is lower. The predetermined value indicates a threshold value or a value obtained by subtracting a predetermined degree from the average remaining battery level. That is, the center server 10 determines whether or not the remaining battery level of any of the devices 30 is lower than the threshold value, or whether or not it is lower than the average battery level by a predetermined degree or more. Switch from autonomous control to centralized control. The threshold and the predetermined degree indicate values set in advance according to verification or the like, for example.

いずれかのデバイス30の電池残量が閾値を下回る状態は、少なくとも1つのデバイス30の寿命が短くなることにより、情報処理システム100の寿命が所定の期間以下に短くなった場合を示す。また、いずれかのデバイス30の電池残量が、平均電池残量から所定の度合いを減じた値を下回る状態は、少なくとも1つのデバイス30の電池残量が他のデバイス30の電池残量に対して乖離して減少している場合を示す。または、デバイス群30の電池残量の標準偏差が大きい場合を示す。つまり、デバイス間の電池残量に偏りが生じ、情報処理システム100の寿命が短くなる傾向にあることを示す。   The state in which the remaining battery level of any one of the devices 30 is lower than the threshold value indicates a case where the life of the information processing system 100 is shortened to a predetermined period or less by shortening the life of at least one device 30. In addition, when the remaining battery level of any device 30 falls below a value obtained by subtracting a predetermined degree from the average remaining battery level, the remaining battery level of at least one device 30 is smaller than the remaining battery level of other devices 30. This shows the case where there is a divergence and decrease. Or the case where the standard deviation of the battery remaining charge of the device group 30 is large is shown. That is, the battery remaining amount between the devices is biased, and the life of the information processing system 100 tends to be shortened.

したがって、センタサーバ10は、情報処理システム100の寿命が短くなった場合、または、情報処理システム100の寿命が短くなる傾向にある場合に、自律制御から集中制御に切り替える。これにより、センタサーバ10は、電池残量の少ないデバイス30の電力消費を抑制してデバイス間の電池残量を平滑化し、情報処理システム100の寿命を長期化する。なお、センタサーバ10は、いずれかのデバイス30の電池残量が、閾値を下回り、かつ、平均電池残量から所定の度合いを減じた値を下回る場合に、自律制御から集中制御に切り替えてもよい。   Therefore, the center server 10 switches from autonomous control to centralized control when the life of the information processing system 100 is shortened or when the life of the information processing system 100 tends to be shortened. Thereby, the center server 10 suppresses the power consumption of the device 30 with a small remaining battery level, smoothes the remaining battery level between devices, and extends the life of the information processing system 100. The center server 10 may switch from autonomous control to centralized control when the remaining battery level of any device 30 falls below a threshold and falls below a value obtained by subtracting a predetermined degree from the average remaining battery level. Good.

本実施の形態における閾値は、「20%」である。また、本実施の形態における所定の度合いは、「25%」である。図6で説明したデバイス情報テーブル310によると、デバイス30aの電池残量は「90%」、デバイス30bの電池残量は「40%」、デバイス30cの電池残量は「80%」である。したがって、いずれのデバイス30a〜30cの電池残量も、閾値「20%」を下回っていない。一方、デバイス30a〜30cの平均電池残量は、「70%(=(90%+40%+80%)÷3)」であって、デバイス30bの電池残量「40%」は、平均電池残量「70%」から所定の度合い「25%」を減算した値「45%」を下回っている。したがって、センタサーバ10は、集中制御に切り替える。   The threshold value in the present embodiment is “20%”. The predetermined degree in the present embodiment is “25%”. According to the device information table 310 described in FIG. 6, the remaining battery level of the device 30a is “90%”, the remaining battery level of the device 30b is “40%”, and the remaining battery level of the device 30c is “80%”. Accordingly, the remaining battery level of any of the devices 30a to 30c does not fall below the threshold “20%”. On the other hand, the average remaining battery level of the devices 30a to 30c is “70% (= (90% + 40% + 80%) ÷ 3)”, and the remaining battery level “40%” of the device 30b is the average remaining battery level. It is below the value “45%” obtained by subtracting the predetermined degree “25%” from “70%”. Therefore, the center server 10 switches to centralized control.

集中制御に切り替える場合、センタサーバ10は、集中制御への切り替えを指示する制御情報通知要求を、ゲートウェイ20を介してデバイス群30に送信する(a4)。制御情報通知要求のフォーマットは、図14にしたがって後述する。デバイス群30は、制御情報通知要求の受信に応答して、制御データ(送信頻度、再送回数、電波強度)を取得する(a5)。そして、各デバイス30は、制御データを含む送信制御データを生成し、各デバイス30が選択したゲートウェイ20を介して、センタサーバ10に送信する(a6)。送信制御データのフォーマットについては、図14にしたがって後述する。   When switching to the central control, the center server 10 transmits a control information notification request instructing the switch to the central control to the device group 30 via the gateway 20 (a4). The format of the control information notification request will be described later with reference to FIG. In response to receiving the control information notification request, the device group 30 acquires control data (transmission frequency, number of retransmissions, radio wave intensity) (a5). Each device 30 generates transmission control data including control data, and transmits the transmission control data to the center server 10 via the gateway 20 selected by each device 30 (a6). The format of the transmission control data will be described later according to FIG.

センタサーバ10は、デバイス群の送信制御データを受信すると(a7)、デバイス群30の残量情報と制御データとに基づいて、全てのデバイス30の接続先のゲートウェイ20を最適化し、決定する(a8)。   Upon receiving the transmission control data of the device group (a7), the center server 10 optimizes and determines the gateways 20 to which all the devices 30 are connected based on the remaining amount information and control data of the device group 30 ( a8).

本実施の形態のセンタサーバ10は、電池残量が他のデバイス(第1のデバイス)30より少ないデバイス(第2のデバイス)30の接続先を、接続可能なゲートウェイ20のうち再送回数が少ないゲートウェイ20に決定する。つまり、センタサーバ10は、電池残量の少ないデバイス30に、再送回数が少ないゲートウェイ20を優先的に割り当てる。これにより、センタサーバ10は、電力残量の少ないデバイス30の電力消費を抑制し、デバイス間の電力残量を平滑化できる。全てのデバイス30の接続先のゲートウェイ20の最適化処理の詳細は、図15で後述する。   The center server 10 of the present embodiment has a smaller number of retransmissions among the gateways 20 that can connect the connection destination of the device (second device) 30 having a remaining battery level less than that of the other device (first device) 30. The gateway 20 is determined. That is, the center server 10 preferentially assigns the gateway 20 with a small number of retransmissions to the device 30 with a small remaining battery level. Thereby, the center server 10 can suppress the power consumption of the device 30 with a small amount of remaining power, and can smooth the remaining power between devices. Details of the optimization processing of the gateways 20 to which all the devices 30 are connected will be described later with reference to FIG.

なお、センタサーバ10は、電池残量の少ないデバイス30に、距離が近く電波環境の良いゲートウェイ20を優先的に割り当ててもよい。または、センタサーバ10は、電池残量の少ないデバイス30に、再送回数が少ないゲートウェイ20か、距離が近く電波環境の良いゲートウェイ20のいずれかまたは両方を優先的に割り当ててもよい。   Note that the center server 10 may preferentially assign the gateway 20 that is close in distance and has a good radio wave environment to the device 30 that has a low remaining battery level. Alternatively, the center server 10 may preferentially assign either or both of the gateway 20 having a small number of retransmissions and the gateway 20 having a short distance and a good radio wave environment to the device 30 having a small remaining battery level.

センタサーバ10は、決定した各デバイス30の接続先のゲートウェイ20の情報を、デバイス接続先制御情報テーブル311(図7)に記憶し、接続先のゲートウェイ20の情報を含む接続先制御通知をそれぞれデバイス30に送信する(a9)。接続先制御通知のフォーマットについては、図14にしたがって後述する。各デバイス30は、接続先制御通知の受信に応答して、接続先制御通知が含む接続指定のゲートウェイ20の情報を、制御情報テーブル411b(図10)に記憶し、接続先のゲートウェイ20を変更する(a10)。   The center server 10 stores the determined information of the connection destination gateway 20 of each device 30 in the device connection destination control information table 311 (FIG. 7), and sends a connection destination control notification including the information of the connection destination gateway 20 respectively. It transmits to the device 30 (a9). The format of the connection destination control notification will be described later with reference to FIG. In response to the reception of the connection destination control notification, each device 30 stores information on the connection-designated gateway 20 included in the connection destination control notification in the control information table 411b (FIG. 10), and changes the connection destination gateway 20 (A10).

このように、本実施の形態におけるセンタサーバ10は、いずれかのデバイス30の電池残量が所定値を下回った場合に、自律制御から集中制御に切り替える。これにより、センタサーバ10は、情報処理システム100の寿命の終盤に集中制御に切り替え、寿命を長期化することができる。これにより、電池のメンテナンスにかかるコストを抑えることが可能になる。   As described above, the center server 10 according to the present embodiment switches from autonomous control to centralized control when the remaining battery level of any device 30 falls below a predetermined value. As a result, the center server 10 can switch to centralized control at the end of the life of the information processing system 100 and extend the life. Thereby, it becomes possible to hold down the cost concerning the maintenance of a battery.

また、センタサーバ10は、いずれかのデバイス30の電池残量が、閾値を下回るか否か、または、平均電池残量から所定の度合い以上、下回るか否かを判定し、下回ると判定した場合に自律制御から集中制御に切り替える。これにより、センタサーバ10は、情報処理システム100の寿命が短くなった場合、または、短くなる傾向がある場合を検知し、寿命を長期化することができる。   Further, the center server 10 determines whether or not the remaining battery level of any of the devices 30 is lower than the threshold value, or whether or not it is lower than the average battery level by a predetermined degree or more. Switch from autonomous control to centralized control. Thereby, the center server 10 can detect when the life of the information processing system 100 is shortened or tends to be shortened, and can extend the life.

また、センタサーバ10は、いずれかのデバイス30の電池残量が所定値を下回った場合にのみ、集中制御に切り替える。これにより、寿命の長期化を実現しながら、制御データの収集による通信のコストや電力消費、センタサーバ10の負荷等の増加度合いを抑制可能になる。また、メンテナンスにかかるコストを抑制できることにより、通信及びメンテナンスのコストを含む、総合的なコストを抑えることが可能になる。   Further, the center server 10 switches to centralized control only when the remaining battery level of any device 30 falls below a predetermined value. As a result, it is possible to suppress the degree of increase in communication cost, power consumption, load on the center server 10 and the like due to collection of control data while realizing a long life. Further, since the cost for maintenance can be suppressed, it is possible to suppress the total cost including the communication and maintenance costs.

[集中制御から自律制御への切り替え]
センタサーバ10は、自律制御から集中制御に切り替えた後、さらに、判定処理を行い、下回っていないと判定した場合、集中制御から自律制御に切り替えてもよい。図11で説明したとおり、いずれかのデバイス30の電池残量が、平均電池残量から所定の度合い以上、下回る状態は、デバイス間の電池残量に偏りが生じ、情報処理システム100の寿命が短くなる傾向にあることを示す。
[Switching from centralized control to autonomous control]
The center server 10 may further perform a determination process after switching from autonomous control to centralized control, and may switch from centralized control to autonomous control when it is determined that it is not below. As described with reference to FIG. 11, when the remaining battery level of any device 30 is lower than the average remaining battery level by a predetermined level or more, the remaining battery level between devices is biased, and the life of the information processing system 100 is shortened. Indicates that it tends to be shorter.

したがって、平均電池残量から所定の度合い以上下回ったことにより集中制御に切り替えた場合、集中制御を継続することによってデバイス間の電池残量が平滑化され、いずれのデバイス30の電池残量も所定値を下回っていない状態に遷移する場合がある。即ち、平均電池残量から所定の度合い以上、下回っていない状態に遷移する場合がある。したがって、センタサーバ10は、集中制御から自律制御に戻し、集中制御による消費リソース(通信のコストやセンタサーバ10の負荷、デバイス30の電力消費等)を抑制する。   Therefore, when switching to the centralized control because the average battery level is lower than a predetermined degree, the battery level between devices is smoothed by continuing the centralized control, and the battery level of any device 30 is also predetermined. There may be a transition to a state that is not less than the value. That is, there is a case where the average battery remaining amount makes a transition to a state that is not lower than a predetermined degree. Therefore, the center server 10 returns from the centralized control to the autonomous control, and suppresses the resources consumed by the centralized control (communication cost, load on the center server 10, power consumption of the device 30, etc.).

集中制御に基づく消費リソースの増加と、情報処理システム100の寿命の長期化とは、トレードオフの関係にある。つまり、自律制御に基づくことにより、通信コストやセンタサーバ10の負荷、制御データの収集に基づくデバイス30の電力消費等を抑えることができるものの、デバイス間の電池残量の偏りが生じ易く、電池残量に基づく情報処理システム100の寿命が短くなる。   There is a trade-off between an increase in consumption resources based on centralized control and an increase in the lifetime of the information processing system 100. In other words, the communication control, the load on the center server 10, the power consumption of the device 30 based on the collection of control data, and the like can be suppressed by being based on the autonomous control. The lifetime of the information processing system 100 based on the remaining amount is shortened.

一方、集中制御に基づくことにより、情報処理システム100の寿命を長期化できるものの、通信コストやセンタサーバ10の負荷、電力消費等が増加する。なお、デバイス30とゲートウェイ20との間の無線環境の変化に追従するために、高頻度に、全てのデバイス30の接続先のゲートウェイ20を決定する場合がある。これにより、さらに、集中制御に基づく消費リソースが増加する。   On the other hand, based on the centralized control, although the life of the information processing system 100 can be extended, the communication cost, the load on the center server 10, power consumption, and the like increase. In addition, in order to follow a change in the wireless environment between the device 30 and the gateway 20, the gateways 20 to which all the devices 30 are connected may be determined frequently. This further increases resource consumption based on centralized control.

したがって、本実施の形態におけるセンタサーバ10は、デバイス群30の電池残量の変化に応じて、さらに、集中制御から自律制御に切り替える。つまり、センタサーバ10は、電池残量の変化に応じて、自律制御と集中制御とを適宜、切り替える。これにより、センタサーバ10は、効率的に、情報処理システム100の寿命と、通信コスト等との最適化を実現できる。   Therefore, the center server 10 in the present embodiment further switches from the centralized control to the autonomous control in accordance with the change in the remaining battery level of the device group 30. That is, the center server 10 appropriately switches between autonomous control and centralized control according to the change in the remaining battery level. Thereby, the center server 10 can efficiently optimize the life of the information processing system 100 and the communication cost.

図12は、集中制御から自律制御への切り替え処理の流れを説明するシーケンス図である。図12において、図11で示したものと同一のものは、同一の記号で示す。図11と同様にして、図12はゲートウェイ20の図示を省略する。   FIG. 12 is a sequence diagram illustrating the flow of switching processing from centralized control to autonomous control. 12, the same components as those shown in FIG. 11 are denoted by the same symbols. Similarly to FIG. 11, FIG. 12 omits the gateway 20.

デバイス群30は、定期的に、センサデータ及び残量情報を取得して送信センサデータを生成し、センタサーバ10が決定したゲートウェイ(図12に図示せず)20を介して、センタサーバ10に送信する(a11)。   The device group 30 periodically acquires sensor data and remaining amount information, generates transmission sensor data, and transmits to the center server 10 via a gateway (not shown in FIG. 12) 20 determined by the center server 10. Transmit (a11).

センタサーバ10は、デバイス群30から送信センサデータを受信し、各デバイス30のセンサデータ及び残量情報を取得する(a12)。センタサーバ10は、受信したデバイス群30の残量情報に基づいて、平均電池残量を算出する(a13)。そして、図11で説明したとおり、センタサーバ10は、いずれかのデバイス30の電池残量が、閾値を下回るか否か、または、平均電池残量から所定の度合い以上下回るか否かを判定し、下回ると判定した場合は継続して、集中制御を採用する。一方、下回っていないと判定した場合、センタサーバ10は、集中制御から自律制御に切り替える。   The center server 10 receives the transmission sensor data from the device group 30, and acquires the sensor data and remaining amount information of each device 30 (a12). The center server 10 calculates the average battery remaining amount based on the received remaining amount information of the device group 30 (a13). Then, as described with reference to FIG. 11, the center server 10 determines whether or not the remaining battery level of any of the devices 30 is lower than a threshold value or lower than a predetermined degree from the average remaining battery level. If it is determined that the value is below, the centralized control is continued. On the other hand, when it determines with it not being below, the center server 10 switches from centralized control to autonomous control.

図13は、集中制御に切り替えた後のデバイス情報テーブル310−1を示す図である。図13に示すデバイス情報テーブル310−1は、図6に示したデバイス情報テーブル310の、ある期間経過後のテーブルを示す。   FIG. 13 is a diagram illustrating the device information table 310-1 after switching to the centralized control. A device information table 310-1 illustrated in FIG. 13 is a table after a certain period of time has elapsed from the device information table 310 illustrated in FIG.

デバイス30aの電池残量は、図6のデバイス情報テーブル310では「90%」であるのに対し、図13のデバイス情報テーブル310−1では「70%」に減少している。また、デバイス30bの電池残量は、図6のデバイス情報テーブル310では「40%」であるのに対し、図13のデバイス情報テーブル310−1では「30%」に減少している。また、デバイス30cの電池残量は、図6のデバイス情報テーブル310では「80%」であるのに対し、図13のデバイス情報テーブル310−1では「50%」に減少している。   The remaining battery level of the device 30a is “90%” in the device information table 310 of FIG. 6, whereas it is reduced to “70%” in the device information table 310-1 of FIG. Further, the remaining battery level of the device 30b is “40%” in the device information table 310 of FIG. 6, whereas it is reduced to “30%” in the device information table 310-1 of FIG. Further, the remaining battery level of the device 30c is “80%” in the device information table 310 of FIG. 6, but is reduced to “50%” in the device information table 310-1 of FIG.

図13のデバイス情報テーブル310−1に示すように、集中制御に基づくことにより、電池残量の少ないデバイス30bの電池の減少度合いが小さく、デバイス間の電池残量が平滑化している。したがって、いずれのデバイス30a〜30cの電池残量も、平均電池残量「50%(=(70%+30%+50%)÷3)」から所定の度合い「25%」以上、下回っていない。また、いずれのデバイス30a〜30cの電池残量も、閾値「20%」を下回っていない。したがって、センタサーバ10は、集中制御から自律制御に切り替える。   As shown in the device information table 310-1 of FIG. 13, based on the centralized control, the degree of decrease of the battery of the device 30b with a small remaining battery level is small, and the remaining battery level between the devices is smoothed. Therefore, the remaining battery level of any of the devices 30a to 30c is not lower than the average remaining battery level “50% (= (70% + 30% + 50%) ÷ 3)” by a predetermined degree “25%” or more. Further, the remaining battery level of any of the devices 30a to 30c does not fall below the threshold “20%”. Therefore, the center server 10 switches from centralized control to autonomous control.

図12に戻り、自律制御に切り替える場合、センタサーバ10は、自律制御への切り替えを指示する接続先制御通知を、各デバイス30に送信する(a14)。接続先制御通知のフォーマットについては、図14にしたがって後述する。各デバイス30は、接続先制御通知の受信に応答して、制御情報テーブル411b(図10)に記憶した、接続指定のゲートウェイ20の情報を削除する(a15)。これにより、各デバイス30は、デバイス30が選択したゲートウェイ20を介して、センサデータ及び残量情報をセンタサーバ10に送信する。   Returning to FIG. 12, when switching to autonomous control, the center server 10 transmits a connection destination control notification instructing switching to autonomous control to each device 30 (a14). The format of the connection destination control notification will be described later with reference to FIG. In response to the reception of the connection destination control notification, each device 30 deletes the information of the connection-designated gateway 20 stored in the control information table 411b (FIG. 10) (a15). Thereby, each device 30 transmits the sensor data and the remaining amount information to the center server 10 via the gateway 20 selected by the device 30.

なお、センタサーバ10は、集中制御から自律制御に戻した後、再び、いずれかのデバイス30の電池残量が所定値を下回った場合には、図11で説明したように、自律制御から集中制御に再度、切り替える。このように、センタサーバ10は、情報処理システム100と、通信のコストやセンタサーバ10の負荷、電力消費等とを、容易に最適化できる。   In addition, after returning from centralized control to autonomous control, when the remaining battery level of any device 30 falls below a predetermined value, the center server 10 concentrates from autonomous control as described with reference to FIG. Switch back to control. In this way, the center server 10 can easily optimize the information processing system 100, the communication cost, the load on the center server 10, the power consumption, and the like.

[データのフォーマット]
図14は、図11、図12で説明した、送信センサデータ、制御情報通知要求、送信制御データ、及び、接続先制御通知のフォーマットの一例を示す図である。
[Data format]
FIG. 14 is a diagram illustrating an example of the formats of the transmission sensor data, the control information notification request, the transmission control data, and the connection destination control notification described with reference to FIGS. 11 and 12.

図14の(A)は、送信センサデータのフォーマットの一例を示す。図14の(A)に示す送信センサデータは、ヘッダ部(図示せず)に、送信元アドレスMa1、宛先アドレスMa2、及び、残量情報Ma3を有し、ボディ部(図示せず)にセンサデータMa4を有する。送信元アドレスMa1はデバイス30のアドレスを示し、宛先アドレスMa2はセンタサーバ10のアドレスを示す。残量情報Ma3及びセンサデータMa4は、前述したとおりである。   FIG. 14A shows an example of the format of transmission sensor data. The transmission sensor data shown in FIG. 14A has a transmission source address Ma1, a destination address Ma2, and remaining amount information Ma3 in a header part (not shown), and a sensor in a body part (not shown). It has data Ma4. The transmission source address Ma1 indicates the address of the device 30, and the destination address Ma2 indicates the address of the center server 10. The remaining amount information Ma3 and the sensor data Ma4 are as described above.

図14の(B)は、制御情報通知要求のフォーマットの一例を示す。制御情報通知要求は、ヘッダ部(図示せず)に、送信元アドレスMb1、宛先アドレスMb2を有し、ボディ部(図示せず)に制御情報通知要求指示Mb3を有する。送信元アドレスMb1はセンタサーバ10のアドレスを示し、宛先アドレスMb2はデバイス30のアドレスを示す。制御情報通知要求指示Mb3は、制御データのセンタサーバ10への送信指示を示す。   FIG. 14B shows an example of the format of the control information notification request. The control information notification request has a transmission source address Mb1 and a destination address Mb2 in a header portion (not shown), and a control information notification request instruction Mb3 in a body portion (not shown). The source address Mb1 indicates the address of the center server 10, and the destination address Mb2 indicates the address of the device 30. The control information notification request instruction Mb3 indicates an instruction to transmit control data to the center server 10.

図14の(C)は、送信制御データのフォーマットの一例を示す。送信制御データは、ヘッダ部(図示せず)に、送信元アドレスMc1、宛先アドレスMc2を有し、ボディ部(図示せず)に、送信頻度Mc3、再送回数Mc4、電波強度Mc5を有する。送信元アドレスMc1はデバイス30のアドレスを示し、宛先アドレスMc2はセンタサーバ10のアドレスを示す。送信頻度Mc3、再送回数Mc4、電波強度Mc5は、図6で説明したとおりである。   FIG. 14C shows an example of the format of transmission control data. The transmission control data includes a transmission source address Mc1 and a destination address Mc2 in a header part (not shown), and a transmission frequency Mc3, the number of retransmissions Mc4, and a radio wave intensity Mc5 in a body part (not shown). The source address Mc1 indicates the address of the device 30, and the destination address Mc2 indicates the address of the center server 10. The transmission frequency Mc3, the number of retransmissions Mc4, and the radio wave intensity Mc5 are as described in FIG.

図14の(D)は、接続先制御通知のフォーマットの一例を示す。接続先制御通知は、ヘッダ部(図示せず)に、送信元アドレスMd1、宛先アドレスMd2を有し、ボディ部(図示せず)に接続先制御指示Md3を有する。送信元アドレスMd1はセンタサーバ10のアドレスを示し、宛先アドレスMd2はデバイス30のアドレスを示す。接続先制御指示Md3は、自律制御から集中制御への切り替え時は、接続指定のゲートウェイ20の情報を有し、集中制御から自律制御への切り替え時は、接続指定のゲートウェイ20の情報を有しない。   FIG. 14D shows an example of the format of the connection destination control notification. The connection destination control notification has a transmission source address Md1 and a destination address Md2 in a header portion (not shown), and a connection destination control instruction Md3 in a body portion (not shown). The source address Md1 indicates the address of the center server 10, and the destination address Md2 indicates the address of the device 30. The connection destination control instruction Md3 has information on the connection-designated gateway 20 at the time of switching from autonomous control to centralized control, and does not have information on the connection-designated gateway 20 at the time of switching from centralized control to autonomous control. .

次に、センタサーバ10の処理の詳細を、図15〜図16のフローチャート図にしたがって説明する。また、デバイス30の処理の詳細を図17〜図20のフローチャート図にしたがって説明する。図15〜図16では、図6、図13に示したデバイス情報テーブル310、及び、図7に示したデバイス接続先制御情報テーブル311にしたがって説明する。   Next, details of the processing of the center server 10 will be described with reference to the flowcharts of FIGS. Details of the process of the device 30 will be described with reference to the flowcharts of FIGS. 15 to 16, description will be made according to the device information table 310 shown in FIGS. 6 and 13 and the device connection destination control information table 311 shown in FIG.

[センタサーバ:制御の切り替え処理]
図15は、図5に示したセンタサーバ10のデータ収集プログラム210の、制御の切り替え判定処理の流れを説明するフローチャート図である。
[Center server: Control switching process]
FIG. 15 is a flowchart for explaining the flow of control switching determination processing of the data collection program 210 of the center server 10 shown in FIG.

S11:データ収集プログラム210の接続制御切り替えモジュール222は、制御モジュール221の指示に応答して、デバイス情報テーブル310(図6)から、全てのデバイス30の電池残量を取得する。また、接続制御切り替えモジュール222は、全てのデバイス30の電池残量の平均値を、平均電池残量として算出する。   S11: The connection control switching module 222 of the data collection program 210 acquires the remaining battery levels of all the devices 30 from the device information table 310 (FIG. 6) in response to an instruction from the control module 221. Further, the connection control switching module 222 calculates the average value of the remaining battery levels of all the devices 30 as the average remaining battery level.

S12:接続制御切り替えモジュール222は、いずれかのデバイス30の電池残量が所定値を下回ったか否かを判定する。具体的に、接続制御切り替えモジュール222は、いずれかのデバイス30の電池残量が閾値を下回る、または、工程S11で算出した平均電池残量から所定の度合い以上下回るか否かを判定する。   S12: The connection control switching module 222 determines whether or not the remaining battery level of any device 30 has fallen below a predetermined value. Specifically, the connection control switching module 222 determines whether the remaining battery level of any one of the devices 30 is lower than a threshold value or lower than a predetermined degree from the average remaining battery level calculated in step S11.

S13:工程S12の判定の結果、下回ると判定した場合(S12のYes)、接続制御切り替えモジュール222は、全てのデバイス30に、制御情報通知要求(図14の(B))を送信する。接続制御切り替えモジュール222は、自律制御を採用していた場合は、自律制御から集中制御に切り替え、既に集中制御を採用している場合は、継続して集中制御を採用する。   S13: As a result of the determination in step S12, when it is determined that the value is lower (Yes in S12), the connection control switching module 222 transmits a control information notification request ((B) in FIG. 14) to all the devices 30. The connection control switching module 222 switches from autonomous control to centralized control when autonomous control is employed, and continuously employs centralized control when centralized control is already employed.

図11で説明したとおり、図6で説明したデバイス情報テーブル310によると、デバイス30bの電池残量「40%」は、平均電池残量「70%」から所定の度合い「25%」を減算した値「45%」を下回る(S12のYes)。したがって、接続制御切り替えモジュール222は、全てのデバイス30a〜30cに、制御情報通知要求(図14の(B))を送信する(S13)。各デバイス30a〜30cは、制御情報通知要求の受信に応答して、送信制御データ(図14の(C))をセンタサーバ10に送信する。デバイス30a〜30cの処理の詳細は、図19のフローチャート図にしたがって後述する。   As described in FIG. 11, according to the device information table 310 described in FIG. 6, the battery remaining amount “40%” of the device 30b is obtained by subtracting a predetermined degree “25%” from the average remaining battery amount “70%”. Below the value “45%” (Yes in S12). Therefore, the connection control switching module 222 transmits a control information notification request ((B) in FIG. 14) to all the devices 30a to 30c (S13). Each device 30a to 30c transmits transmission control data ((C) in FIG. 14) to the center server 10 in response to receiving the control information notification request. Details of the processing of the devices 30a to 30c will be described later according to the flowchart of FIG.

S14:接続制御切り替えモジュール222は、デバイス30から、送信制御データ(図14の(C))を受信し、送信制御データが含む制御データをデバイス情報テーブル310(図6)に格納する。そして、接続制御切り替えモジュール222は、全てのデバイス30の接続先のゲートウェイ20の最適化処理を、接続先最適化モジュール223に指示する。   S14: The connection control switching module 222 receives transmission control data ((C) in FIG. 14) from the device 30, and stores the control data included in the transmission control data in the device information table 310 (FIG. 6). Then, the connection control switching module 222 instructs the connection destination optimization module 223 to optimize the connection destination gateways 20 of all the devices 30.

継続して集中制御を採用する場合、接続制御切り替えモジュール222は、再び、全てのデバイス30の接続先のゲートウェイ20の最適化処理を、接続先最適化モジュール223に指示する。これにより、定期的に、各デバイス30の接続先のゲートウェイ20を、電波環境の変化に応じた最適なゲートウェイ20に更新することが可能になる。   When the centralized control is continuously employed, the connection control switching module 222 again instructs the connection destination optimization module 223 to perform the optimization process of the connection destination gateways 20 of all the devices 30. This makes it possible to periodically update the gateway 20 to which each device 30 is connected to the optimal gateway 20 according to changes in the radio wave environment.

接続先最適化モジュール223は、デバイス情報テーブル310(図6)を参照して、各デバイス30の電池残量及び制御データを取得し、計算処理にしたがって、全てのデバイス30の接続先のゲートウェイ20を決定する。接続先最適化モジュール223は、電池残量が少ないデバイス30の接続先のゲートウェイ20を再送回数の少ないゲートウェイ20に優先的に決定することにより、全てのデバイス30の接続先のゲートウェイ20を最適化する。   The connection destination optimization module 223 refers to the device information table 310 (FIG. 6), acquires the remaining battery level and control data of each device 30, and connects the gateways 20 of the connection destinations of all the devices 30 according to the calculation process. To decide. The connection destination optimization module 223 optimizes the connection destination gateways 20 of all the devices 30 by preferentially determining the gateway 20 of the connection destination of the device 30 with a small remaining battery power as the gateway 20 with a small number of retransmissions. To do.

(最適化処理)
具体的に、本実施の形態では、接続先最適化モジュール223は、デバイス30とゲートウェイ20の組み合わせパターンを複数、抽出する。次に、接続先最適化モジュール223は、電池残量、送信頻度、再送回数に基づいて、各組み合わせパターンにおける、各デバイス30の稼働時間を算出する。そして、接続先最適化モジュール223は、電池残量の少ないデバイス30の稼働時間が長くなる組み合わせパターンを選択し、各デバイス30の接続先のゲートウェイ20を決定する。
(Optimization process)
Specifically, in the present embodiment, the connection destination optimization module 223 extracts a plurality of combination patterns of the device 30 and the gateway 20. Next, the connection destination optimization module 223 calculates the operating time of each device 30 in each combination pattern based on the remaining battery level, the transmission frequency, and the number of retransmissions. Then, the connection destination optimization module 223 selects a combination pattern in which the operation time of the device 30 with a small remaining battery capacity becomes long, and determines the gateway 20 to which each device 30 is connected.

再送回数が大きくなるほど、稼働時間は短くなる。したがって、電池残量の少ないデバイス30の稼働時間が長くなる組み合わせパターンは、電池残量の少ないデバイス30の再送回数が少なくなる組み合わせパターンを示す。接続先最適化モジュール223は、例えば、式1「b/p/(t+r)」にしたがって、各デバイス30の稼働時間(秒)を算出する。   The larger the number of retransmissions, the shorter the operating time. Therefore, the combination pattern in which the operation time of the device 30 with a small remaining battery amount is long indicates a combination pattern in which the number of retransmissions of the device 30 with a small remaining battery amount is decreased. The connection destination optimization module 223 calculates the operating time (seconds) of each device 30 according to, for example, Expression 1 “b / p / (t + r)”.

式1における値「b%」は、バッテリ305の蓄電可能容量における、1回のセンサデータの送信処理の電力消費の割合を示し、値「p%」は、バッテリ305の電池残量を示す。したがって、部分式「b/p」は、電池残量が「0%」になるまでの所要送信回数を示す。また、式1における値「t(回/sec)」は、データの収集頻度を示し、値「r(回/sec)」は、1秒当たりの、送信処理に伴う再送頻度を示す。したがって、部分式「(t+r)」は、再送を含む、1秒当たりの送信頻度を示す。   The value “b%” in Equation 1 indicates the ratio of the power consumption of one sensor data transmission process in the accumulative capacity of the battery 305, and the value “p%” indicates the remaining battery level of the battery 305. Therefore, the sub-expression “b / p” indicates the required number of transmissions until the remaining battery level becomes “0%”. Further, the value “t (times / sec)” in Equation 1 indicates the data collection frequency, and the value “r (times / sec)” indicates the retransmission frequency associated with the transmission process per second. Therefore, the sub-expression “(t + r)” indicates the transmission frequency per second including retransmission.

つまり、式1は、電池残量が「0%」になるまでの所要送信回数「b/p」を、1秒当たりの再送を含む送信頻度「(t+r)」にしたがって除算することにより、電池残量が「0%」になるまでの所要時間、即ち、稼働時間(秒)を算出する式である。   That is, Equation 1 is obtained by dividing the required number of transmissions “b / p” until the remaining battery level becomes “0%” according to the transmission frequency “(t + r)” including retransmission per second. This is a formula for calculating the time required until the remaining amount becomes “0%”, that is, the operating time (seconds).

接続先最適化モジュール223は、例えば、式2「同時接続数×(再送回数/最大同時接続数)」にしたがって、1回の送信処理当たりの再送頻度「r(回/sec)」を算出する。式2は、同時接続数が複数の場合における再送頻度の算出式を示し、同時接続数に応じて、再送回数を線形増加させることにより、再送頻度を算出する式である。   For example, the connection destination optimization module 223 calculates the retransmission frequency “r (times / sec)” per one transmission process according to the formula 2 “number of simultaneous connections × (number of retransmissions / maximum number of simultaneous connections)”. . Expression 2 shows an equation for calculating the retransmission frequency when the number of simultaneous connections is plural, and is an expression for calculating the retransmission frequency by linearly increasing the number of retransmissions according to the number of simultaneous connections.

式2における最大同時接続数は、デバイス30の接続候補のゲートウェイ20が接続可能なデバイス30の総数を示す。また、式2における同時接続数は、組み合わせパターンにおける、接続候補のゲートウェイ20と接続するデバイス30の総数を示す。再送回数は、最大同時接続数の状況下の再送回数を示す。   The maximum number of simultaneous connections in Expression 2 indicates the total number of devices 30 that can be connected to the gateway 20 as a connection candidate of the device 30. The number of simultaneous connections in Expression 2 indicates the total number of devices 30 connected to the connection candidate gateway 20 in the combination pattern. The number of retransmissions indicates the number of retransmissions under the condition of the maximum number of simultaneous connections.

例えば、接続候補のゲートウェイ20の最大同時接続数が値「10」、同時接続数が値「3」、再送回数が「5」回の場合、接続先最適化モジュール223は、再送頻度「1.5{=3×(5/10)}(回/sec)」を算出する。再送頻度「1.5(回/sec)」は、1秒当たり1.5回の再送が生じ得ることを示す。また、接続候補のゲートウェイ20の最大同時接続数が値「10」、同時接続数が値「8」、再送回数が「5」回の場合、接続先最適化モジュール223は、再送頻度「4{=8×(5/10)}(回/sec)」を算出する。   For example, when the maximum number of simultaneous connections of the connection candidate gateway 20 is “10”, the number of simultaneous connections is “3”, and the number of retransmissions is “5”, the connection destination optimization module 223 determines the retransmission frequency “1. 5 {= 3 × (5/10)} (times / sec) ”is calculated. The retransmission frequency “1.5 (times / sec)” indicates that 1.5 retransmissions can occur per second. When the maximum number of simultaneous connections of the connection candidate gateway 20 is “10”, the number of simultaneous connections is “8”, and the number of retransmissions is “5”, the connection destination optimization module 223 transmits the retransmission frequency “4 { = 8 × (5/10)} (times / sec) ”is calculated.

なお、接続候補のゲートウェイ20と未接続であるため再送回数が不明の場合、接続先最適化モジュール223は、接続候補のゲートウェイ20との電波強度が同程度のゲートウェイ20への再送回数を、再送回数として取得する。   When the number of retransmissions is unknown because the connection candidate gateway 20 is not connected, the connection destination optimization module 223 retransmits the number of retransmissions to the gateway 20 having the same radio field strength as that of the connection candidate gateway 20. Get as number of times.

なお、最適化処理の方法は、上記の方法に限定されるものではない。接続先最適化モジュール223は、デバイス間の稼働時間のばらつきが少なくなるように、各デバイス30の接続先のゲートウェイ20を決定してもよい。また、接続先最適化モジュール223は、稼働時間に基づくことなく、電池残量の少ないデバイス30に再送回数が少ないゲートウェイ20を割り当てることによって、最適化処理を行ってもよい。または、接続先最適化モジュール223は、電池残量の少ないデバイス30に再送回数が少なく電波強度の高いゲートウェイ20を割り当てることによって、最適化処理を行ってもよい。   Note that the optimization processing method is not limited to the above-described method. The connection destination optimization module 223 may determine the gateway 20 of the connection destination of each device 30 so that the variation in operation time between devices is reduced. Further, the connection destination optimization module 223 may perform the optimization process by allocating the gateway 20 with a small number of retransmissions to the device 30 with a small remaining battery capacity without being based on the operation time. Alternatively, the connection destination optimization module 223 may perform the optimization process by assigning the gateway 20 with a small number of retransmissions and a high radio wave intensity to the device 30 with a small remaining battery level.

S15:工程S14の後、接続制御切り替えモジュール222は、デバイス接続先制御情報テーブル311(図7)を参照し、自律制御を採用しているか否かを判定する。接続制御切り替えモジュール222は、デバイス接続先制御情報テーブル311が接続指定のゲートウェイ20の情報を有する場合、集中制御を採用している旨、判定し、有していない場合、自律制御を採用している旨、判定する。   S15: After step S14, the connection control switching module 222 refers to the device connection destination control information table 311 (FIG. 7) and determines whether or not autonomous control is adopted. The connection control switching module 222 determines that the centralized control is adopted when the device connection destination control information table 311 has the information of the gateway 20 designated for connection, and adopts the autonomous control when it does not have. Judge that there is.

S16:集中制御を採用していると判定した場合(S15のNo)、接続制御切り替えモジュール222は、接続先のゲートウェイ20が変更になるデバイス30を抽出する。即ち、接続制御切り替えモジュール222は、継続して集中制御を採用する場合、接続指定のゲートウェイ20が変化したデバイス30を抽出する。   S16: When it is determined that centralized control is employed (No in S15), the connection control switching module 222 extracts the device 30 whose connection destination gateway 20 is changed. That is, the connection control switching module 222 extracts the device 30 in which the connection-designated gateway 20 has changed when the centralized control is continuously employed.

S17:接続制御切り替えモジュール222は、工程S16で抽出したデバイス30を対象として、接続指定のゲートウェイ20の情報を含む接続先制御通知(図14の(D))を送信する。これにより、通信のデータ量を抑制することが可能になる。一方、自律制御を採用していると判定した場合(S15のYes)、接続制御切り替えモジュール222は、全てのデバイス30を対象として、工程S14で決定した、接続指定のゲートウェイ20の情報を含む接続先制御通知(図14の(D))を送信する。   S17: The connection control switching module 222 transmits a connection destination control notification ((D) in FIG. 14) including information on the connection-designated gateway 20 for the device 30 extracted in step S16. Thereby, it becomes possible to suppress the data amount of communication. On the other hand, when it is determined that the autonomous control is adopted (Yes in S15), the connection control switching module 222 targets all the devices 30 and includes the connection specified gateway 20 information determined in Step S14. A destination control notification ((D) in FIG. 14) is transmitted.

接続制御切り替えモジュール222は、決定した、全てのデバイス30の接続先のゲートウェイ20を、デバイス接続先制御情報テーブル311b(図7)に更新する。図7の(B)のデバイス接続先制御情報テーブル311bによると、電池残量の少ないデバイス30bの接続先は、再送回数の少ないゲートウェイ「GW2」20−2である。また、他のデバイス30a、30cの接続先は、ゲートウェイ「GW2」20−2以外のゲートウェイ20である。つまり、デバイス30bのみが、再送回数の少ないゲートウェイ「GW2」20−2と接続する。   The connection control switching module 222 updates the determined connection destination gateways 20 of all the devices 30 to the device connection destination control information table 311b (FIG. 7). According to the device connection destination control information table 311b of FIG. 7B, the connection destination of the device 30b with a small remaining battery level is the gateway “GW2” 20-2 with a small number of retransmissions. The connection destination of the other devices 30a and 30c is the gateway 20 other than the gateway “GW2” 20-2. That is, only the device 30b is connected to the gateway “GW2” 20-2 with a small number of retransmissions.

これにより、接続制御切り替えモジュール222は、デバイス30bの電力消費を抑え、デバイス30bの寿命を長期化できる。つまり、デバイス間の電池残量を平滑化し、情報処理システム100の寿命を長期化することが可能になる。なお、図7の例では、デバイス30bのみが、再送回数の少ないゲートウェイ「GW2」20−2と接続するがこの例に限定されるものではない。例えば、デバイス30bの再送回数が増加しないのであれば、他のデバイス30a、30cがゲートウェイ「GW2」20−2と接続してもよい。   Thereby, the connection control switching module 222 can suppress the power consumption of the device 30b and prolong the life of the device 30b. That is, it is possible to smooth the battery remaining amount between the devices and extend the life of the information processing system 100. In the example of FIG. 7, only the device 30b is connected to the gateway “GW2” 20-2 with a small number of retransmissions, but is not limited to this example. For example, if the number of retransmissions of the device 30b does not increase, the other devices 30a and 30c may connect to the gateway “GW2” 20-2.

S18:工程S12の判定によって、いずれのデバイス30の残量情報も閾値を下回っていない、かつ、平均電池残量から所定の度合い以上下回っていないと判定した場合(S12のNo)、接続制御切り替えモジュール222は、自律制御を採用する。接続制御切り替えモジュール222は、デバイス接続先制御情報テーブル311(図7)を参照し、自律制御を採用していたか否かを判定する。   S18: When it is determined by the determination in step S12 that the remaining amount information of any device 30 is not lower than the threshold and is not lower than the average battery remaining amount by a predetermined degree or more (No in S12), connection control switching Module 222 employs autonomous control. The connection control switching module 222 refers to the device connection destination control information table 311 (FIG. 7) and determines whether or not autonomous control has been adopted.

S19:自律制御を採用していなかった場合(S18のNo)、即ち、集中制御を採用していた場合、接続制御切り替えモジュール222は、集中制御から自律制御に切り替える。図13で説明したデバイス情報テーブル310によると、前述したとおり、いずれのデバイス30a〜30cの電池残量も、閾値「20%」、及び、平均電池残量「50%」から所定の度合い「25%」を減算した値「25%」を下回っていない(S12のNo)。したがって、接続制御切り替えモジュール222は、集中制御から自律制御に切り替える旨、判定する。   S19: When autonomous control is not employed (No in S18), that is, when centralized control is employed, the connection control switching module 222 switches from centralized control to autonomous control. According to the device information table 310 described with reference to FIG. 13, as described above, the remaining battery level of any of the devices 30 a to 30 c is a predetermined degree “25” from the threshold “20%” and the average remaining battery level “50%”. The value obtained by subtracting “%” is not less than “25%” (No in S12). Therefore, the connection control switching module 222 determines to switch from centralized control to autonomous control.

具体的に、接続制御切り替えモジュール222は、全てのデバイス30に、接続指定のゲートウェイ20の情報を有してない接続先制御通知(図14の(D))を送信する。各デバイス30は、接続先制御通知に応答して、図10に示す制御情報テーブル411の接続指定のゲートウェイ20の情報を削除する。   Specifically, the connection control switching module 222 transmits to all the devices 30 a connection destination control notification (FIG. 14D) that does not have information on the gateway 20 designated for connection. In response to the connection destination control notification, each device 30 deletes the information of the gateway 20 designated for connection in the control information table 411 shown in FIG.

一方、自律制御を採用していた場合(S18のYes)、即ち、自律制御を継続して採用する場合、接続制御切り替えモジュール222は、工程S19の処理を行わない。   On the other hand, when the autonomous control is adopted (Yes in S18), that is, when the autonomous control is continuously adopted, the connection control switching module 222 does not perform the process of step S19.

[センタサーバ:送信センサデータ、送信制御データの受信処理]
図16は、図5に示したデータ収集プログラム210の、送信センサデータ及び送信制御データの受信処理の流れを説明するフローチャート図である。図16の(A)は、送信センサデータの受信処理を説明するフローチャート図である。
[Center server: Reception processing of transmission sensor data and transmission control data]
FIG. 16 is a flowchart for explaining the flow of reception processing of transmission sensor data and transmission control data of the data collection program 210 shown in FIG. FIG. 16A is a flowchart illustrating a reception process of transmission sensor data.

S21:制御モジュール221は、送信センサデータ(図14の(A))を受信すると、ヘッダ部が含む残量情報を取得する。そして、制御モジュール221は、残量情報を、送信元のデバイス30のMACアドレスを識別情報として、デバイス情報テーブル310(図6)に記憶する。   S21: When receiving the transmission sensor data ((A) in FIG. 14), the control module 221 acquires the remaining amount information included in the header part. Then, the control module 221 stores the remaining amount information in the device information table 310 (FIG. 6) using the MAC address of the transmission source device 30 as identification information.

S22:制御モジュール221は、送信センサデータのボディ部が含むセンサデータを取得し、アプリケーションプログラム211に送信する。アプリケーションプログラム211は、センサデータの処理を開始する。アプリケーションプログラム211は、センサデータに基づいて分析や集計処理を行う。   S 22: The control module 221 acquires the sensor data included in the body part of the transmission sensor data, and transmits it to the application program 211. The application program 211 starts processing sensor data. The application program 211 performs analysis and aggregation processing based on the sensor data.

なお、送信センサデータ(図14の(A))は、ヘッダ部に残量情報を有するが、ボディ部に残量情報を有していてもよい。制御モジュール221は、ボディ部が含む残量情報を取得し、残量情報を除外したボディ部のデータをアプリケーションプログラム211に送信してもよい。   In addition, although transmission sensor data ((A) of FIG. 14) has residual amount information in a header part, you may have residual amount information in a body part. The control module 221 may acquire the remaining amount information included in the body portion and transmit the data of the body portion excluding the remaining amount information to the application program 211.

図16の(B)は、送信制御データの受信処理を説明するフローチャート図である。   FIG. 16B is a flowchart for explaining the reception process of the transmission control data.

S31:制御モジュール221は、送信制御データ(図14の(C))を受信すると、送信制御データが含む制御データ(送信頻度、再送回数、電波強度)を取得する。そして、制御モジュール221は、制御データを、送信元のデバイス30のMACアドレスを識別情報として、デバイス情報テーブル310(図6)に記憶する。   S31: Upon receiving the transmission control data ((C) in FIG. 14), the control module 221 acquires control data (transmission frequency, number of retransmissions, radio wave intensity) included in the transmission control data. Then, the control module 221 stores the control data in the device information table 310 (FIG. 6) using the MAC address of the transmission source device 30 as identification information.

[デバイス:センサデータの送信処理]
図17は、図9に示したデバイス30のデータ送信プログラム410の、センサデータの送信処理の流れを説明するフローチャート図である。
[Device: Sensor data transmission process]
FIG. 17 is a flowchart for explaining the flow of sensor data transmission processing of the data transmission program 410 of the device 30 shown in FIG.

S41:データ送信プログラム410の制御モジュール421は、送信頻度に応じた所定の時間毎に、センシングモジュール422に指示し、センサ303が観測したセンサデータを取得する。   S41: The control module 421 of the data transmission program 410 instructs the sensing module 422 at every predetermined time according to the transmission frequency, and acquires the sensor data observed by the sensor 303.

S42:データ送信プログラム410の制御モジュール421は、送信頻度に応じた所定の時間毎に、電池残量取得モジュール423に指示し、バッテリ305の残量情報を取得する。   S42: The control module 421 of the data transmission program 410 instructs the battery remaining amount acquisition module 423 every predetermined time corresponding to the transmission frequency, and acquires the remaining amount information of the battery 305.

S43:制御モジュール421は、工程S41で取得したセンサデータ、及び、工程S42で取得した残量情報を含む、送信センサデータ(図14の(A))を生成する。   S43: The control module 421 generates transmission sensor data ((A) in FIG. 14) including the sensor data acquired in step S41 and the remaining amount information acquired in step S42.

S44:制御モジュール421は、生成した送信センサデータを、センタサーバ10に送信する。制御情報テーブル411(図10)が接続指定のゲートウェイ20の情報を有する場合、制御モジュール421は、接続指定のゲートウェイ20を介して、送信データをセンタサーバ10に送信する。一方、制御情報テーブル411が接続指定のゲートウェイ20の情報を有していない場合、制御モジュール421は、接続先のゲートウェイ20を選択し、当該ゲートウェイ20を介して送信データをセンタサーバ10に送信する。   S44: The control module 421 transmits the generated transmission sensor data to the center server 10. When the control information table 411 (FIG. 10) has information on the connection-designated gateway 20, the control module 421 transmits the transmission data to the center server 10 via the connection-designated gateway 20. On the other hand, when the control information table 411 does not have the information of the gateway 20 designated for connection, the control module 421 selects the connection destination gateway 20 and transmits the transmission data to the center server 10 via the gateway 20. .

S45:制御モジュール421は、送信時のMAC層における再送回数を、制御情報テーブル411(図10)に再送回数として記憶する。また、制御モジュール421は、送信頻度を制御情報テーブル411に記憶する。   S45: The control module 421 stores the number of retransmissions in the MAC layer at the time of transmission as the number of retransmissions in the control information table 411 (FIG. 10). Further, the control module 421 stores the transmission frequency in the control information table 411.

[デバイス:接続先制御通知の受信時の処理]
図18は、図9に示したデバイス30のデータ送信プログラム410の、接続先制御通知の受信に応答した制御切り替え処理の流れを説明するフローチャート図である。
[Device: Processing when receiving connection destination control notification]
FIG. 18 is a flowchart for explaining the flow of the control switching process in response to the reception of the connection destination control notification in the data transmission program 410 of the device 30 shown in FIG.

S51:制御モジュール421は、接続先制御通知(図14の(D))の受信に応答して、接続先制御切り替えモジュール424に、接続先制御の切り替えを指示する。接続先制御切り替えモジュール424は、接続先制御通知の接続先制御指示が、接続先のゲートウェイ20の情報を有するか否かに基づいて、自律制御への切り替えを指示する通知であるか否かを判定する。   S51: The control module 421 instructs the connection destination control switching module 424 to switch the connection destination control in response to reception of the connection destination control notification ((D) in FIG. 14). The connection destination control switching module 424 determines whether or not the connection destination control instruction of the connection destination control notification is a notification instructing switching to autonomous control based on whether or not the connection destination control instruction includes information on the gateway 20 of the connection destination. judge.

S52:自律制御への切り替えを指示する通知である場合(S51のYes)、接続先制御切り替えモジュール424は、制御情報テーブル411(図10)が有する接続指定のゲートウェイ20の情報を削除する。   S52: When it is a notification instructing switching to autonomous control (Yes in S51), the connection destination control switching module 424 deletes the information of the connection-designated gateway 20 included in the control information table 411 (FIG. 10).

S53:一方、集中制御を指示する通知である場合(S51のNo)、接続先制御切り替えモジュール424は、接続先制御通知が含む接続指定のゲートウェイ20の情報を制御情報テーブル411(図10)に記憶(更新)する。   S53: On the other hand, if it is a notification instructing centralized control (No in S51), the connection destination control switching module 424 stores information on the connection-designated gateway 20 included in the connection destination control notification in the control information table 411 (FIG. 10). Remember (update).

S54:制御情報テーブル411の更新に応じて、接続先制御切り替えモジュール424は、接続先を更新後の接続指定のゲートウェイ20に切り替える。   S54: In response to the update of the control information table 411, the connection destination control switching module 424 switches the connection destination to the updated connection-designated gateway 20.

[デバイス:制御情報通知要求受信時の処理]
図19は、図9に示したデバイス30のデータ送信プログラム410の、制御情報通知要求受信時の処理の流れを説明するフローチャート図である。
[Device: Processing when a control information notification request is received]
FIG. 19 is a flowchart for explaining the flow of processing when the data transmission program 410 of the device 30 shown in FIG. 9 receives a control information notification request.

S61:接続先制御切り替えモジュール424は、制御情報通知要求(図14の(B))の受信に応答して、制御情報テーブル411(図10)を参照し、周囲のゲートウェイ20との電波強度を取得する。   S61: In response to receiving the control information notification request (FIG. 14B), the connection destination control switching module 424 refers to the control information table 411 (FIG. 10), and determines the radio field intensity with the surrounding gateways 20. get.

S62:接続先制御切り替えモジュール424は、制御情報テーブル411(図10)を参照し、周囲のゲートウェイ20への再送回数を取得する。   S62: The connection destination control switching module 424 refers to the control information table 411 (FIG. 10) and acquires the number of retransmissions to the surrounding gateways 20.

S63:接続先制御切り替えモジュール424は、制御情報テーブル411(図10)を参照し、ゲートウェイ20へのセンサデータの送信頻度を取得する。   S63: The connection destination control switching module 424 refers to the control information table 411 (FIG. 10) and acquires the transmission frequency of the sensor data to the gateway 20.

S64:接続先制御切り替えモジュール424は、工程S61〜S63で取得した制御データ(電波強度、再送回数、送信頻度)を含む送信制御データ(図14の(C))を生成する。   S64: The connection destination control switching module 424 generates transmission control data ((C) in FIG. 14) including the control data (radio wave intensity, number of retransmissions, transmission frequency) acquired in steps S61 to S63.

S65:接続先制御切り替えモジュール424は、制御情報テーブル411(図10)が接続指定のゲートウェイ20の情報を有する場合、当該ゲートウェイ20の情報を取得し、ゲートウェイ20の情報を有していない場合、ゲートウェイ20を選択する。   S65: The connection destination control switching module 424 acquires the information of the gateway 20 when the control information table 411 (FIG. 10) has the information of the gateway 20 designated for connection, and does not have the information of the gateway 20, The gateway 20 is selected.

S66:接続先制御切り替えモジュール424は、工程S65で取得または選択したゲートウェイ20を介して、工程S64で生成した送信制御データ(図14の(C))を、センタサーバ10に送信する。   S66: The connection destination control switching module 424 transmits the transmission control data generated in step S64 ((C) in FIG. 14) to the center server 10 via the gateway 20 acquired or selected in step S65.

[デバイス:接続先切り替え処理]
図20は、図9に示したデバイス30のデータ送信プログラム410の、接続先切り替え処理の流れを説明するフローチャート図である。
[Device: Connection destination switching process]
FIG. 20 is a flowchart for explaining the flow of the connection destination switching process of the data transmission program 410 of the device 30 shown in FIG.

S71:データ送信プログラム410の接続先切り替えモジュール425は、定期的に、制御情報テーブル411(図10)が接続指定のゲートウェイ20の情報を記憶していないかを判定する。   S71: The connection destination switching module 425 of the data transmission program 410 periodically determines whether the control information table 411 (FIG. 10) stores information on the gateway 20 designated for connection.

S72:接続先のゲートウェイ20を記憶していない場合(S71のYes)、即ち、自律制御に基づく場合、接続先切り替えモジュール425は、接続中のゲートウェイ20との電波環境が悪化したか否かを判定する。例えば、接続先切り替えモジュール425は、電波強度に基づいて、電波環境が悪化したか否かを判定する。   S72: When the connection destination gateway 20 is not stored (Yes in S71), that is, based on autonomous control, the connection destination switching module 425 determines whether or not the radio wave environment with the connected gateway 20 has deteriorated. judge. For example, the connection destination switching module 425 determines whether the radio wave environment has deteriorated based on the radio wave intensity.

S73:接続中のゲートウェイ20の電波環境が悪化した場合(S72のYes)、接続先切り替えモジュール425は、周囲のゲートウェイ20との電波強度等の電波環境を測定し、制御情報テーブル411a(図10)に記憶する。なお、接続先切り替えモジュール425は、電波環境を制御情報テーブル411aに記憶せずに、センタサーバ10からの制御情報通知要求の受信時に、電波環境を測定してもよい。   S73: When the radio wave environment of the gateway 20 being connected has deteriorated (Yes in S72), the connection destination switching module 425 measures the radio wave environment such as the radio wave intensity with the surrounding gateway 20 and controls the control information table 411a (FIG. 10). ). The connection destination switching module 425 may measure the radio wave environment when receiving the control information notification request from the center server 10 without storing the radio wave environment in the control information table 411a.

S74:接続先切り替えモジュール425は、電波環境の良いゲートウェイ20を接続先のゲートウェイ20として選択し、接続する。例えば、接続先切り替えモジュール425は、電波強度、再送回数のいずれかまたは両方に基づいてゲートウェイ20を選択する。   S74: The connection destination switching module 425 selects and connects the gateway 20 having a good radio wave environment as the connection destination gateway 20. For example, the connection destination switching module 425 selects the gateway 20 based on either or both of the radio wave intensity and the number of retransmissions.

S75:工程S71の判定の結果、接続指定のゲートウェイ20の情報を記憶している場合(S71のNo)、即ち、集中制御に基づく場合、接続先切り替えモジュール425は、周囲のゲートウェイ20との電波環境を測定する。そして、接続先切り替えモジュール425は、測定した電波環境を制御情報テーブル411b(図10)に記憶する。   S75: As a result of the determination in step S71, when the information of the connection-designated gateway 20 is stored (No in S71), that is, based on the centralized control, the connection destination switching module 425 receives radio waves from the surrounding gateways 20 Measure the environment. Then, the connection destination switching module 425 stores the measured radio wave environment in the control information table 411b (FIG. 10).

なお、工程S72の判定の結果、接続中のゲートウェイ20との電波環境が悪化していない場合(S72のNo)、接続先切り替えモジュール425は、工程S73、S74の処理を行わない。   If the radio wave environment with the connected gateway 20 has not deteriorated as a result of the determination in step S72 (No in S72), the connection destination switching module 425 does not perform the processes in steps S73 and S74.

[他の実施の形態]
図15のフローチャート図によると、接続制御切り替えモジュール222は、いずれかのデバイス30の電池残量が所定値を下回ると判定する都度(S12のYes)、全てのデバイス30の接続先のゲートウェイ20の最適化処理を行う(S13、S14)。即ち、接続制御切り替えモジュール222は、集中制御を継続する場合、デバイス群30の送信センサデータを受信する間隔毎に、最適化処理を行う。
[Other embodiments]
According to the flowchart of FIG. 15, each time the connection control switching module 222 determines that the remaining battery level of any device 30 falls below a predetermined value (Yes in S12), the connection destination gateway 20 of all devices 30 is connected. Optimization processing is performed (S13, S14). That is, when continuing the centralized control, the connection control switching module 222 performs an optimization process for each interval at which the transmission sensor data of the device group 30 is received.

したがって、特に、デバイス群30の送信センサデータの送信間隔が短い場合、通信コストやセンタサーバ10の負荷が高くなる。したがって、接続制御切り替えモジュール222は、送信センサデータの受信頻度よりも、少ない頻度にしたがって、最適化処理を行ってもよい。例えば、接続制御切り替えモジュール222は、下回ると判定した場合に、前回の最適化処理から所定の期間、経過している場合にのみ、各デバイス30に制御情報通知要求を送信し、最適化処理を行う。   Therefore, especially when the transmission interval of the transmission sensor data of the device group 30 is short, the communication cost and the load on the center server 10 increase. Therefore, the connection control switching module 222 may perform the optimization process according to a frequency less than the reception frequency of the transmission sensor data. For example, when it is determined that the connection control switching module 222 falls below, the control information notification request is transmitted to each device 30 only when a predetermined period has elapsed since the previous optimization process, and the optimization process is performed. Do.

これにより、集中制御に伴う、通信コストやセンタサーバ10の負荷等の増加度合いを抑制することが可能になる。したがって、センタサーバ10は、より効果的に、各デバイス30の制御データの送信処理によるコストの増加を抑えながら、情報処理システム100の寿命を長期化することができる。   Thereby, it becomes possible to suppress the increase degree of the communication cost, the load of the center server 10, etc. accompanying the centralized control. Therefore, the center server 10 can prolong the life of the information processing system 100 more effectively while suppressing an increase in cost due to the control data transmission process of each device 30.

なお、本実施の形態は、複数のデバイス30を経由する経路を含むマルチホップ環境における経路生成にも適用可能である。センタサーバ10は、経路のうち、ゲートウェイ20と、当該ゲートウェイ20と直接、接続するデバイス30との部分経路の生成処理に、本実施の形態の処理を適用する。これにより、デバイス30の電力消費を抑えながら、情報処理システム100を長寿命化する、マルチホップ環境の部分経路を生成可能になる。   Note that the present embodiment can also be applied to route generation in a multi-hop environment including routes via a plurality of devices 30. The center server 10 applies the process of the present embodiment to the generation process of the partial path between the gateway 20 and the device 30 directly connected to the gateway 20 in the path. As a result, it is possible to generate a partial path of a multi-hop environment that extends the life of the information processing system 100 while suppressing the power consumption of the device 30.

以上の実施の形態をまとめると、次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)
複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、中継装置を経由して受信する処理部と、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、を有し、
前記処理部は、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
情報処理装置。
(Appendix 1)
A processing unit that receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining battery level of the device via a relay device;
A storage unit for storing the received acquisition information and the remaining amount information;
From the first mode, the processing unit receives the acquisition information and the remaining amount information via a relay device selected by the device when the remaining amount information of any device is lower than a predetermined value. , Further receiving communication information indicating a communication state with one or a plurality of the relay devices from the plurality of devices, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, Notifying the determined relay device to the plurality of devices, and receiving the acquired information and the remaining amount information via the determined relay device, and switching to a second mode.
Information processing device.

(付記2)
付記1において、
前記処理部は、いずれかのデバイスの前記残量情報が前記所定値を示す閾値を下回るか、または、いずれかのデバイスの前記残量情報が、前記複数のデバイスの残量情報の平均から所定の度合いを減じた前記所定値を下回る場合に、前記第1のモードから前記第2のモードに切り替える、
情報処理装置。
(Appendix 2)
In Appendix 1,
The processing unit is configured such that the remaining amount information of any device falls below a threshold indicating the predetermined value, or the remaining amount information of any device is predetermined from an average of the remaining amount information of the plurality of devices. Switching from the first mode to the second mode when the degree is less than the predetermined value,
Information processing device.

(付記3)
付記1または2において、
前記処理部は、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理装置。
(Appendix 3)
In Appendix 1 or 2,
The processing unit switches from the second mode to the first mode when the remaining amount information no longer falls below the predetermined value after switching to the second mode.
Information processing device.

(付記4)
付記1乃至3のいずれかにおいて、
前記処理部は前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、
情報処理装置。
(Appendix 4)
In any one of supplementary notes 1 to 3,
In the second mode, the processing unit further receives the communication information including the number of retransmissions of wireless communication from the device to the relay apparatus, and the remaining amount information of the second device is smaller than that of the first device. The relay device is determined as the relay device with a small number of retransmissions among the plurality of relay devices connected to the second device.
Information processing device.

(付記5)
付記1乃至4のいずれかにおいて、
前記処理部は前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
情報処理装置。
(Appendix 5)
In any one of supplementary notes 1 to 4,
In the first mode, the processing unit determines whether the device has one or both of radio field intensity of wireless communication with one or a plurality of the relay devices and the number of retransmissions of wireless communication from the device to the relay device. Receiving the acquired information and the remaining amount information via the relay device to be selected based on;
Information processing device.

(付記6)
付記3において、
前記処理部は、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回る場合に前記第2のモードの処理を行う、
情報処理装置。
(Appendix 6)
In Appendix 3,
The processing unit performs the processing in the second mode when the remaining amount information is lower than the predetermined value after switching to the second mode.
Information processing device.

(付記7)
複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
処理をコンピュータに実行させる制御プログラム。
(Appendix 7)
Executing a first mode of receiving, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining battery level of the device via a relay device selected by the device;
When the remaining amount information of any device is below a predetermined value, further receiving communication information indicating a communication state with one or more relay devices from the plurality of devices from the first mode, The relay device of the plurality of devices is determined based on the remaining amount information and the communication information, the determined relay device is notified to the plurality of devices, and the acquired information and the remaining amount information are determined. Receiving via the relay device, switching to the second mode,
A control program that causes a computer to execute processing.

(付記8)
付記7において、
前記切り替えは、いずれかのデバイスの前記残量情報が前記所定値を示す閾値を下回るか、または、いずれかのデバイスの前記残量情報が、前記複数のデバイスの残量情報の平均から所定の度合いを減じた前記所定値を下回る場合に、前記第1のモードから前記第2のモードに切り替える、
制御プログラム。
(Appendix 8)
In Appendix 7,
In the switching, the remaining amount information of any device falls below a threshold value indicating the predetermined value, or the remaining amount information of any device is predetermined from an average of the remaining amount information of the plurality of devices. When the degree is less than the predetermined value, the first mode is switched to the second mode.
Control program.

(付記9)
付記7または8において、
前記切り替えは、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
制御プログラム。
(Appendix 9)
In Appendix 7 or 8,
The switching is performed by switching from the second mode to the first mode when the remaining amount information no longer falls below the predetermined value after switching to the second mode.
Control program.

(付記10)
付記7乃至9のいずれかにおいて、
前記切り替えは、前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、
制御プログラム。
(Appendix 10)
In any one of appendixes 7 to 9,
In the second mode, the switching further receives the communication information including the number of retransmissions of wireless communication from the device to the relay apparatus, and the second device has less remaining information than the first device. The relay device is determined as the relay device with a small number of retransmissions among the plurality of relay devices connected to the second device.
Control program.

(付記11)
付記7乃至10のいずれかにおいて、
前記切り替えは、前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
制御プログラム。
(Appendix 11)
In any one of appendixes 7 to 10,
In the switching in the first mode, the switching is performed by either or both of the radio field intensity of wireless communication with one or a plurality of the relay apparatuses and the number of retransmissions of wireless communication from the device to the relay apparatus. Receiving the acquired information and the remaining amount information via the relay device to be selected based on;
Control program.

(付記12)
付記9において、
前記切り替えは、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回る場合に前記第2のモードの処理を行う、
制御プログラム。
(Appendix 12)
In Appendix 9,
The switching is performed in the second mode when the remaining amount information falls below the predetermined value after switching to the second mode.
Control program.

(付記13)
処理部が、複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
処理部が、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
情報処理装置の制御方法。
(Appendix 13)
A first mode in which a processing unit receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining amount of the battery of the device via a relay device selected by the device; Run,
When the processing unit has the remaining amount information of any device below a predetermined value, communication information indicating a communication state from the plurality of devices to one or a plurality of the relay devices is obtained from the first mode. Further, receiving, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, notifying the determined relay devices to the plurality of devices, the acquisition information and the remaining amount information, Is received via the determined relay device and switched to the second mode,
A method for controlling an information processing apparatus.

(付記14)
付記13において、
前記切り替えは、いずれかのデバイスの前記残量情報が前記所定値を示す閾値を下回るか、または、いずれかのデバイスの前記残量情報が、前記複数のデバイスの残量情報の平均から所定の度合いを減じた前記所定値を下回る場合に、前記第1のモードから前記第2のモードに切り替える、
情報処理装置の制御方法。
(Appendix 14)
In Appendix 13,
In the switching, the remaining amount information of any device falls below a threshold value indicating the predetermined value, or the remaining amount information of any device is predetermined from an average of the remaining amount information of the plurality of devices. When the degree is less than the predetermined value, the first mode is switched to the second mode.
A method for controlling an information processing apparatus.

(付記15)
付記13または14において、
前記切り替えは、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理装置の制御方法。
(Appendix 15)
In Appendix 13 or 14,
The switching is performed by switching from the second mode to the first mode when the remaining amount information no longer falls below the predetermined value after switching to the second mode.
A method for controlling an information processing apparatus.

(付記16)
付記13乃至15のいずれかにおいて、
前記切り替えは、前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、
情報処理装置の制御方法。
(Appendix 16)
In any one of Supplementary Notes 13 to 15,
In the second mode, the switching further receives the communication information including the number of retransmissions of wireless communication from the device to the relay apparatus, and the second device has less remaining information than the first device. The relay device is determined as the relay device with a small number of retransmissions among the plurality of relay devices connected to the second device.
A method for controlling an information processing apparatus.

(付記17)
付記13乃至16のいずれかにおいて、
前記切り替えは、前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
情報処理装置の制御方法。
(Appendix 17)
In any of Supplementary Notes 13 to 16,
In the switching in the first mode, the switching is performed by either or both of the radio field intensity of wireless communication with one or a plurality of the relay apparatuses and the number of retransmissions of wireless communication from the device to the relay apparatus. Receiving the acquired information and the remaining amount information via the relay device to be selected based on;
A method for controlling an information processing apparatus.

(付記18)
付記15において、
前記切り替えは、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回る場合に前記第2のモードの処理を行う、
情報処理装置の制御方法。
(Appendix 18)
In Appendix 15,
The switching is performed in the second mode when the remaining amount information falls below the predetermined value after switching to the second mode.
A method for controlling an information processing apparatus.

(付記19)
取得情報と電池の残量を示す残量情報とをそれぞれ送信する複数のデバイスと、
前記複数のデバイス受信した前記取得情報と前記残量情報を、中継して情報処理装置に送信する複数の中継装置と、
前記取得情報と前記残量情報とを受信する前記情報処理装置と、を有し
前記情報処理装置は、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える処理部と、を有する、
情報処理システム。
(Appendix 19)
A plurality of devices each transmitting acquisition information and battery level information indicating the remaining battery level,
A plurality of relay devices that relay the acquired information and the remaining amount information received by the plurality of devices to an information processing device;
The information processing device that receives the acquired information and the remaining amount information, and the information processing device includes:
A storage unit for storing the received acquisition information and the remaining amount information;
The plurality of devices from a first mode that receives the acquired information and the remaining amount information via a relay device selected by the device when the remaining amount information of any device is lower than a predetermined value Further receiving communication information indicating a communication state with one or a plurality of the relay devices, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, and determining the determined relay devices A processing unit that switches to a second mode that receives the acquired information and the remaining amount information via the determined relay device.
Information processing system.

(付記20)
付記19において、
前記情報処理装置の前記処理部は、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理システム。
(Appendix 20)
In Appendix 19,
The processing unit of the information processing device switches from the second mode to the first mode when the remaining amount information no longer falls below the predetermined value after switching to the second mode.
Information processing system.

100:情報処理システム、10:センタサーバ、101:CPU、102:メモリ、103:補助記憶装置、104:通信インタフェース部、105:入力装置、106:出力装置、108:アンテナ、20(20−1〜20−8):ゲートウェイ、30(30a〜30h):デバイス、301:CPU、302:メモリ、303:センサ、304:通信インタフェース部、305:バッテリ、307:アンテナ 100: Information processing system, 10: Center server, 101: CPU, 102: Memory, 103: Auxiliary storage device, 104: Communication interface unit, 105: Input device, 106: Output device, 108: Antenna, 20 (20-1) -20-8): Gateway, 30 (30a-30h): Device, 301: CPU, 302: Memory, 303: Sensor, 304: Communication interface unit, 305: Battery, 307: Antenna

Claims (7)

複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、中継装置を経由して受信する処理部と、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、を有し、
前記処理部は、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
情報処理装置。
A processing unit that receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining battery level of the device via a relay device;
A storage unit for storing the received acquisition information and the remaining amount information;
From the first mode, the processing unit receives the acquisition information and the remaining amount information via a relay device selected by the device when the remaining amount information of any device is lower than a predetermined value. , Further receiving communication information indicating a communication state with one or a plurality of the relay devices from the plurality of devices, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, Notifying the determined relay device to the plurality of devices, and receiving the acquired information and the remaining amount information via the determined relay device, and switching to a second mode.
Information processing device.
請求項1において、
前記処理部は、いずれかのデバイスの前記残量情報が前記所定値を示す閾値を下回るか、または、いずれかのデバイスの前記残量情報が、前記複数のデバイスの残量情報の平均から所定の度合いを減じた前記所定値を下回る場合に、前記第1のモードから前記第2のモードに切り替える、
情報処理装置。
In claim 1,
The processing unit is configured such that the remaining amount information of any device falls below a threshold indicating the predetermined value, or the remaining amount information of any device is predetermined from an average of the remaining amount information of the plurality of devices. Switching from the first mode to the second mode when the degree is less than the predetermined value,
Information processing device.
請求項1または2において、
前記処理部は、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理装置。
In claim 1 or 2,
The processing unit switches from the second mode to the first mode when the remaining amount information no longer falls below the predetermined value after switching to the second mode.
Information processing device.
請求項1乃至3のいずれかにおいて、
前記処理部は前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、
情報処理装置。
In any one of Claims 1 thru | or 3,
In the second mode, the processing unit further receives the communication information including the number of retransmissions of wireless communication from the device to the relay apparatus, and the remaining amount information of the second device is smaller than that of the first device. The relay device is determined as the relay device with a small number of retransmissions among the plurality of relay devices connected to the second device.
Information processing device.
複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
処理をコンピュータに実行させる制御プログラム。
Executing a first mode of receiving, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining battery level of the device via a relay device selected by the device;
When the remaining amount information of any device is below a predetermined value, further receiving communication information indicating a communication state with one or more relay devices from the plurality of devices from the first mode, The relay device of the plurality of devices is determined based on the remaining amount information and the communication information, the determined relay device is notified to the plurality of devices, and the acquired information and the remaining amount information are determined. Receiving via the relay device, switching to the second mode,
A control program that causes a computer to execute processing.
処理部が、複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
処理部が、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える、
情報処理装置の制御方法。
A first mode in which a processing unit receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating a remaining amount of the battery of the device via a relay device selected by the device; Run,
When the processing unit has the remaining amount information of any device below a predetermined value, communication information indicating a communication state from the plurality of devices to one or a plurality of the relay devices is obtained from the first mode. Further, receiving, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, notifying the determined relay devices to the plurality of devices, the acquisition information and the remaining amount information, Is received via the determined relay device and switched to the second mode,
A method for controlling an information processing apparatus.
取得情報と電池の残量を示す残量情報とをそれぞれ送信する複数のデバイスと、
前記複数のデバイス受信した前記取得情報と前記残量情報を、中継して情報処理装置に送信する複数の中継装置と、
前記取得情報と前記残量情報とを受信する前記情報処理装置と、を有し
前記情報処理装置は、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替える処理部と、を有する、
情報処理システム。
A plurality of devices each transmitting acquisition information and battery level information indicating the remaining battery level,
A plurality of relay devices that relay the acquired information and the remaining amount information received by the plurality of devices to an information processing device;
The information processing device that receives the acquired information and the remaining amount information, and the information processing device includes:
A storage unit for storing the received acquisition information and the remaining amount information;
The plurality of devices from a first mode that receives the acquired information and the remaining amount information via a relay device selected by the device when the remaining amount information of any device is lower than a predetermined value Further receiving communication information indicating a communication state with one or a plurality of the relay devices, determining relay devices of the plurality of devices based on the remaining amount information and the communication information, and determining the determined relay devices A processing unit that switches to a second mode that receives the acquired information and the remaining amount information via the determined relay device.
Information processing system.
JP2015036263A 2015-02-26 2015-02-26 INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM Expired - Fee Related JP6531426B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015036263A JP6531426B2 (en) 2015-02-26 2015-02-26 INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015036263A JP6531426B2 (en) 2015-02-26 2015-02-26 INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM

Publications (2)

Publication Number Publication Date
JP2016158200A true JP2016158200A (en) 2016-09-01
JP6531426B2 JP6531426B2 (en) 2019-06-19

Family

ID=56826704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015036263A Expired - Fee Related JP6531426B2 (en) 2015-02-26 2015-02-26 INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM

Country Status (1)

Country Link
JP (1) JP6531426B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018096634A1 (en) * 2016-11-24 2018-05-31 オリンパス株式会社 Data processing device, computer readable medium, data processing method, and program
US10172564B2 (en) 2016-11-24 2019-01-08 Olympus Corporation Apparatus, computer-readable medium, and method for detecting biological data of target patient from attachable sensor attached to target patient
JP2019004386A (en) * 2017-06-16 2019-01-10 富士ゼロックス株式会社 Information processing device, program, and information processing system
JP2019220772A (en) * 2018-06-15 2019-12-26 ソフトバンク株式会社 Communication system, control method of communication system, radio communication master unit, control method of radio communication master unit, information processing unit, control method of information processing unit, radio communication apparatus, control method of radio communication apparatus, and control program of communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009065449A (en) * 2007-09-06 2009-03-26 Olympus Corp Radio communication system
JP2014171106A (en) * 2013-03-04 2014-09-18 Sumitomo Electric Ind Ltd Management device, radio communication system, radio terminal devices, and communication control program
US20140349663A1 (en) * 2012-01-17 2014-11-27 Huawei Device Co., Ltd. Wireless transmission method, access point, and station
JP2015177216A (en) * 2014-03-13 2015-10-05 日本電気株式会社 radio system and relay communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009065449A (en) * 2007-09-06 2009-03-26 Olympus Corp Radio communication system
US20140349663A1 (en) * 2012-01-17 2014-11-27 Huawei Device Co., Ltd. Wireless transmission method, access point, and station
JP2014171106A (en) * 2013-03-04 2014-09-18 Sumitomo Electric Ind Ltd Management device, radio communication system, radio terminal devices, and communication control program
JP2015177216A (en) * 2014-03-13 2015-10-05 日本電気株式会社 radio system and relay communication method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018096634A1 (en) * 2016-11-24 2018-05-31 オリンパス株式会社 Data processing device, computer readable medium, data processing method, and program
US10172564B2 (en) 2016-11-24 2019-01-08 Olympus Corporation Apparatus, computer-readable medium, and method for detecting biological data of target patient from attachable sensor attached to target patient
JP2019004386A (en) * 2017-06-16 2019-01-10 富士ゼロックス株式会社 Information processing device, program, and information processing system
JP2019220772A (en) * 2018-06-15 2019-12-26 ソフトバンク株式会社 Communication system, control method of communication system, radio communication master unit, control method of radio communication master unit, information processing unit, control method of information processing unit, radio communication apparatus, control method of radio communication apparatus, and control program of communication system

Also Published As

Publication number Publication date
JP6531426B2 (en) 2019-06-19

Similar Documents

Publication Publication Date Title
US10959112B2 (en) Systems and methods for networking and wirelessly routing communications
US11095713B2 (en) Edge computing system
CN103262481B (en) Dynamic heavy-route scheduling in directed acyclic graph (DAG)
JP6531426B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM
KR102292990B1 (en) Method and apparatus of sharing information related to status
US8983491B2 (en) Adaptive location tracking system
US20150109926A1 (en) Content centric and load-balancing aware dynamic data aggregation
US10433182B2 (en) Communication system and wireless network engineering support method
JP6045703B2 (en) Bandwidth management in advanced metrology infrastructure
CN102804696A (en) Dynamic directed acyclic graph (DAG) topology reporting
CN106161234B (en) Routing message delivery method, network node and communication system using the same
CN104244277A (en) Apparatus and method for maintaining reliability of wireless network having asymmetric or other low quality wireless links
JP2020043483A (en) Data management device, data management method, wireless communication device, wireless communication method, wireless multi-hop network, and computer program
JPWO2016056156A1 (en) Communication aggregation system, control device, processing load control method, and program
US9967170B2 (en) Dynamic capacity-based routing domain load balancing
JP2016144087A (en) Access point position optimization device and method
JP4796014B2 (en) COMMUNICATION CONTROL SUPPORT DEVICE, COMMUNICATION CONTROL SUPPORT METHOD, AND PROGRAM
Zhou et al. Device clustering for fault monitoring in Internet of Things systems
Wang et al. Traffic-aware relay node deployment for data collection in wireless sensor networks
JP5484865B2 (en) Communications system
JP6385125B2 (en) Cause identification method, cause identification device, and cause identification program for wireless sensor network failure
KR20110030163A (en) Wireless network system and method for processing routing path setup in wireless network system
JP5057287B2 (en) Communication system, center device and terminal device used in the communication system
Szczytowski et al. TOM: Topology oriented maintenance in sparse Wireless Sensor Networks
Materukhin et al. An efficient method for collecting spatio-temporal data in the WSN using mobile sinks

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190506

R150 Certificate of patent or registration of utility model

Ref document number: 6531426

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees