Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6531426B2 - INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM - Google Patents
[go: Go Back, main page]

JP6531426B2 - INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM - Google Patents

INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM Download PDF

Info

Publication number
JP6531426B2
JP6531426B2 JP2015036263A JP2015036263A JP6531426B2 JP 6531426 B2 JP6531426 B2 JP 6531426B2 JP 2015036263 A JP2015036263 A JP 2015036263A JP 2015036263 A JP2015036263 A JP 2015036263A JP 6531426 B2 JP6531426 B2 JP 6531426B2
Authority
JP
Japan
Prior art keywords
information
remaining amount
devices
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.)
Expired - Fee Related
Application number
JP2015036263A
Other languages
Japanese (ja)
Other versions
JP2016158200A (en
Inventor
佐野 健
健 佐野
菜美 長田
菜美 長田
佐々木 和雄
和雄 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

本発明は、情報処理装置、制御プログラム、情報処理装置の制御方法、及び、情報処理システムに関する。   The present invention relates to an information processing apparatus, a control program, a control method of 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 provided with sensors via a relay device such as a gateway and performs predetermined processing based on the collected data. Each device is fixedly installed at a place to acquire data, and transmits data to the gateway via near field communication. Also, the gateway transmits data received from the device to the information processing apparatus via wired or wireless.

また、各デバイスは電池を備え、電池によって駆動する。したがって、デバイスの電池が切れた場合、作業員はデバイスが設置された場所に訪問し、電池の交換や充電等のメンテナンスを行う。   In addition, each device has 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つまたは複数のゲートウェイを配置する。各デバイスは、例えば、接続するゲートウェイをそれぞれ選択し、選択したゲートウェイを介して、データを情報処理装置に送信する。   The information processing system arranges one or more gateways for one device. Each device, for example, selects a gateway to connect to, and transmits data to the information processing apparatus via the selected gateway.

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

特表2005−526416号公報Japanese Patent Publication No. 2005-526416 gazette 特開2006−211389号公報Unexamined-Japanese-Patent No. 2006-211389

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

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

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

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

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

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

図1の情報処理システム100は、センタサーバ(情報処理装置)10と、複数のゲートウェイ(中継装置)20−1〜20−3と、複数のデバイス30a〜30fとを有する。図1に示すセンタサーバ10は、例えば、クラウドコンピューティング等によって実現されるサーバを示す。ゲートウェイ20は、デバイス30とセンタサーバ10との通信を中継する装置である。   An information processing system 100 of 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. The center server 10 illustrated in FIG. 1 indicates, for example, a server realized by cloud computing or the like. 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 of the devices 30 a to 30 f is connected to the gateways 20-1 to 20-3 (also referred to as a gateway 20) via short-distance wireless communication (dotted line in the drawing). The short distance communication indicates, for example, wireless communication in a communication area of about several tens of meters, and indicates wireless communication based on ZigBee (ZigBee (registered trademark)), Bluetooth (registered trademark), or the like. Further, the gateway 20 is connected to the center server 10 via a wireless communication or a wired communication (straight line in the drawing). When based on wireless communication, the gateway 20 connects to the center server 10 according to a standard such as LTE (Long Term Evolution: LTE) or 3G (3rd Generation), for example.

図1に示す、各デバイス30は、センシングする場所に固定的に位置する。また、各デバイス30は、それぞれセンサを備え、センサが検出したデータを取得する。各デバイス30は、定期的に、データを取得し、ゲートウェイ20を経由して取得データ(センサデータともいう)をセンタサーバ10に送信する。   Each device 30 shown in FIG. 1 is fixedly located at the sensing location. Each device 30 also includes a sensor, and acquires data detected by the sensor. Each device 30 periodically acquires data, and transmits 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 does not necessarily have to include a sensor. The acquired data may be data detected by another device, program or the like included in the device 30. Further, although six devices 30 a to 30 f (also referred to as devices 30) are illustrated in the example of FIG. 1, 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 the acquired data collected from the plurality of devices 30. For example, when the information processing system 100 shown in FIG. 1 is a manhole sewage management system, the center server 10 collects water level data (acquisition data) observed by a water level sensor installed in the manhole from each device 30. Then, when there is water level data exceeding the threshold value among the collected water level data, the center server 10 performs alert notification or the like to the residents near the device 30 of the water level data. Alternatively, the center server 10 outputs the collected water level data as information for workers.

なお、情報処理システム100は、下水管理システムに限定されるものではない。情報処理システム100は、橋梁やトンネル等の振動管理システムであってもよい。振動管理システムのセンタサーバ10は、各デバイス30から振動データを収集し、収集した振動データに基づいて、点検業務や補修業務等を行う。   The information processing system 100 is not limited to the 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は、遠隔地や作業性の困難な場所に設置されている場合があり、作業員による電池の交換や充電等の作業の負荷に応じて、メンテナンスにかかるコストが増加する。   In addition, each of the devices 30 includes a battery and is driven by the battery. The power consumption of the device 30 is a large proportion of the power consumption due to the data transmission process. In addition, 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 at a remote place or a place where workability is difficult, and the cost for maintenance increases according to the load of work such as battery replacement and charging by workers.

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

したがって、情報処理システム100は、デバイス30からのデータの受信の信頼性を高め、各ゲートウェイ20が処理するデータ量を許容量に収めるために、1つのデバイス30に対して、複数のゲートウェイ20を冗長に配置する。複数のゲートウェイ20は、互いに異なる周波数チャンネル(CH)の設定を有する。   Therefore, the information processing system 100 increases the reliability of the reception of data from the device 30 and allows the plurality of gateways 20 to one device 30 in order to keep the amount of data processed by each gateway 20 within the allowable amount. Arrange 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 optimal gateway 20 from, for example, a plurality of connectable gateways 20. Each device 30 selects, for example, the gateway 20 of the connection destination based on the radio wave intensity, the number of retransmissions, and the like. The radio wave strength indicates the strength of the radio wave of wireless communication between the device 30 and the gateway 20. The higher the radio wave intensity, the lower the probability that a transmission error will occur. The number of retransmissions indicates the number of retransmissions associated with a transmission error of data to the gateway 20.

各デバイス30は、接続中のゲートウェイ20との無線環境が悪化した場合に、無線環境の良い他のゲートウェイ20と接続する。これにより、デバイス30は、センサデータの再送回数を抑制する。デバイス30は、例えば、接続中のゲートウェイ20の電波強度が所定の閾値を下回ると、ゲートウェイ20との接続を切断し、周囲のゲートウェイ20の中から、電波強度が所定の閾値以上のゲートウェイ20を選択する。そして、デバイス30は、選択したゲートウェイと同一の周波数チャンネルを設定して接続する。または、各デバイス30は、再送回数の小さいゲートウェイ20を接続先として選択してもよい。   Each device 30 connects with 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 sensor data. For example, when the radio wave intensity of the connected gateway 20 falls below a predetermined threshold, the device 30 disconnects the connection with the gateway 20, and from among the surrounding gateways 20, the gateway 20 whose radio wave intensity is equal to or higher than the predetermined threshold select. Then, the device 30 sets and connects the same frequency channel as the selected gateway. Alternatively, each device 30 may select a 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 optimal gateway 20 for the device 30. The center server 10 may not control the route between each device 30 and the gateway 20 because each device 30 can autonomously select the gateway 20. As a result, the processing load on the center server 10 can be reduced, and no communication processing for path control occurs.

一方、各デバイス30は、他のデバイス30を考慮せずに、接続先のゲートウェイ20を選択する。したがって、電池残量の少ないデバイス30の、接続するゲートウェイ20へのセンサデータの再送回数が多くなることがある。データの送信処理の増加に応じて電力消費が増加することにより、電池残量の少ないデバイス30の電池残量がさらに減少する。これにより、デバイス間で、電池残量の偏りが生じ易くなる。   On the other hand, each device 30 selects the connection destination gateway 20 without considering other devices 30. Therefore, the number of times of retransmission of sensor data to the connecting gateway 20 of the device 30 with a small battery level may increase. The increase in the power consumption according to the increase in the data transmission process further reduces the remaining battery power of the device 30 with a low remaining battery power. As a result, the remaining amount of battery tends to be uneven among 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 the bias of the battery remaining amount among the devices of the information processing system 100 shown in FIG. In FIG. 2, the same components as those shown in FIG. 1 are indicated by the same symbols. FIG. 2 shows the gateways 20-1 and 20-2 among the gateways 20-1 to 20-3 shown in FIG. FIG. 2 further shows devices 30g and 30h in addition to the devices 30a to 30f shown in FIG. Moreover, in FIG. 2, illustration of the center server 10 is omitted.

図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 wave strength between the devices 30a to 30f and the gateway 20-1 is high, and the radio wave strength between the devices 30a to 30f and the gateway 20-2 is low. Therefore, each of the devices 30a to 30f selects, for example, the gateway 20-1 as the connection destination gateway 20. As a result, the connections of the plurality of devices 30a to 30f concentrate on the gateway 20-1, and the amount of data may exceed the processing capacity of the gateway 20-1 and the capacity of the wireless capacity. As a result, packet collisions frequently occur, and the number of retransmissions of sensor data increases, and the amount of communication data further increases. As the number of retransmissions continues to increase, the power consumption of the devices 30a-30f increases.

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

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

なお、デバイス30が備える電池の特性に応じて、送信処理にかかる電力消費が異なることがある。また、温度等のデバイス30の環境要因に応じて、電池の劣化度合いがデバイス間で異なることにより、送信処理による電力消費も異なる。このように、デバイス間の再送回数が同様であっても、デバイス間の電池残量に偏りが生じることがある。   In addition, the power consumption concerning transmission processing may differ according to the characteristic of the battery with which the device 30 is provided. In addition, since the degree of deterioration of the battery differs among the devices according to environmental factors of the device 30 such as temperature, power consumption by the transmission processing also differs. As described above, even if the number of retransmissions between devices is the same, the battery remaining amount between devices may be biased.

[本実施の形態]
したがって、本実施の形態のセンタサーバ10は、いずれかのデバイス30の電池残量(残量情報)が、所定値を下回るか否かを判定し、下回ると判定した場合に、第1のモードから、第2のモードに切り替える。
This Embodiment
Therefore, the center server 10 according to the present embodiment determines whether the battery remaining amount (remaining amount information) of any of the devices 30 is less than a predetermined value, and determines that it is less than the first value. And 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 connection destination gateway 20 will be referred to as autonomous control. In the second mode, the center server 10 further receives communication information (control data) indicating the communication state with the gateway 20 from each device 30, and based on the remaining amount information and the communication information, the gateway of each device 30 Determine 20. Then, the center server 10 notifies each device 30 of the determined gateway 20, and receives sensor data and remaining amount information via the determined gateway 20. Hereinafter, an aspect in which the center server 10 determines the gateway 20 to which all the devices 30 are connected will be referred to as centralized control.

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

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

図3は、本実施の形態のセンタサーバ10の制御の態様を模式的に説明する図である。図3において、図1、図2で示したものと同一のものは、同一の記号で示す。図3は、情報処理システム100が、図1に示したゲートウェイ20−1〜20−3に加えて、ゲートウェイ20−4〜20−8を有する場合を示す。   FIG. 3 is a diagram schematically illustrating an aspect of control 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 indicated by the same symbols. FIG. 3 shows a case where the information processing system 100 has gateways 20-4 to 20-8 in addition to the gateways 20-1 to 20-3 shown in FIG.

図3の上の模式図MD1は、自律制御(第1のモード)の態様を示す。模式図MD1によると、いずれのデバイス30a〜30hの電池残量BPa〜BPh(電池残量BPともいう)も十分である。つまり、模式図MD1によると、いずれのデバイス30a〜30hの電池残量BPa〜BPhも、所定値を下回っていない。したがって、センタサーバ10は、自律制御にしたがって、各デバイス30a〜30hが選択したゲートウェイ20−1〜20−8を経由して、センサデータを収集する。   The upper schematic diagram MD1 in FIG. 3 shows an aspect of autonomous control (first mode). According to the schematic diagram MD1, the remaining battery power BPa to BPh (also referred to as the remaining battery power BP) of any of the devices 30a to 30 h is sufficient. That is, according to the schematic diagram MD1, the remaining battery amounts BPa to BPh of any of the devices 30a to 30h do not fall below 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 the autonomous control.

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

図3の下の模式図MD2は、集中制御(第2のモード)の態様を示す。図2で説明したとおり、自律制御を採用する場合、デバイス間の電池残量BPの偏りが生じ易い。図3の模式図MD2は、自律制御を継続することにより、デバイス間の電池残量BPの偏りが生じた状態を示す。デバイス30bの電池残量BPb、及び、デバイス30gの電池残量BPgは、所定値を下回っているため、センタサーバ10は、自律制御から集中制御に切り替える。   The lower schematic diagram MD2 of FIG. 3 shows an aspect of centralized control (second mode). As described with reference to FIG. 2, in the case of adopting autonomous control, a bias of the battery remaining amount BP between devices tends to occur. The schematic diagram MD2 of FIG. 3 shows a state in which bias of the battery remaining amount BP among the devices is generated by continuing the autonomous control. Since the battery remaining amount BPb of the device 30b and the battery remaining amount BPg of the device 30g are lower than 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 central control, the center server 10 determines gateways 20-1 to 20-8 to which all the devices 30a to 30h are connected. The center server 10 further receives, from each of the devices 30a to 30h, communication information (also referred to as control data) indicating a communication state with the connectable gateway 20, and based on the battery remaining amount BP and the control data, each device 30a. A destination gateway 20 to 30 h is determined. The communication information indicating the communication state indicates the state of communication with one or more gateways 20 to which the device 30 can connect. 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 connects the connection destinations of the devices 30b and 30g with less battery remaining amount BPb and BPg based on the communication information to the gateways 20-2 and 20-7 in good communication state. Each will be prioritized. Further, the center server 10 determines connection destinations of the devices 30a and 30h having a large amount of remaining battery power BPa and BPh as gateways 20-1 and 20-8 different from the gateways 20-2 and 20-7.

これにより、センタサーバ10は、電池残量BPb、BPgが少ないデバイス30b、30gの電力消費を減少させることができる。したがって、センタサーバ10は、デバイス間の電池残量BPを平滑化し、デバイス30b、30gの寿命を長期化することができる。これにより、センタサーバ10は、デバイス30a〜30hの電池残量BPa〜BPhに基づく情報処理システム100の寿命を長期化することができる。   As a result, the center server 10 can reduce the power consumption of the devices 30b and 30g having a small amount of remaining battery power BPb and BPg. Therefore, the center server 10 can smooth the remaining battery amount BP between the devices and extend the life of the devices 30b and 30g. Thus, the center server 10 can extend the life of the information processing system 100 based on the remaining battery amounts 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 has become short, the center server 10 smoothes the bias of the remaining battery amount BP between the devices by switching to centralized control, and the life of the information processing system 100 can be reduced. It can be prolonged. Alternatively, when there is a tendency for the life of the information processing system 100 to be shortened, the center server 10 smoothes the bias of the remaining battery amount BP between devices by switching to centralized control, and prolongs the life of the information processing system 100. can do. By prolonging the life, it is possible to reduce the cost of battery maintenance.

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

また、制御データの送信処理によって各デバイス30の電力消費が増加する。また、情報処理システム100が、例えば、膨大な量のゲートウェイ20を有する場合、各デバイス30から制御データの収集処理が生じることに伴う、センタサーバ10の通信処理の負荷は大きい。さらに、センタサーバ10が、デバイス30とゲートウェイ20との全ての組み合わせから最適な組み合わせを算出する処理の負荷も大きい。   In addition, the power consumption of each device 30 is increased by the transmission process of control data. Further, when the information processing system 100 has, for example, a huge amount of gateways 20, the load of communication processing of the center server 10 accompanying the generation of control data collection processing from each device 30 is large. Furthermore, the processing load on the center server 10 to calculate an optimal combination from all 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 centralized control only when the battery remaining amount BP of any of the devices 30 falls below a predetermined value. Thereby, the center server 10 can suppress the communication cost, the load of the communication processing and calculation processing of the center server 10, and the power consumption when extending the life of the information processing system 100. Moreover, although based on centralized control, although the cost of communication increases, since the cost concerning the maintenance of a battery is reduced by prolongation of lifetime, it becomes possible to hold down overall cost.

次に、図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 according to FIGS. 4 and 5. The hardware configuration and software block diagram of the device 30 according to the present embodiment will be described with reference to FIGS. 8 and 9.

[センタサーバのハードウェア構成]
図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. The respective parts are connected to one another via a bus 107. The memory 102 includes a RAM (Random Access Memory: RAM) 201, a non-volatile memory 202, and the like. The input device 105 indicates, for example, a keyboard or 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 entire center server 10. The communication interface unit 104 exchanges data with the gateway 20 or another device (not shown) via the antenna 108 according to wireless communication. The antenna 108 transmits and receives various data by radio waves. The communication interface unit 104 may be connected to the gateway 20 or another device (not shown) in accordance with wired communication. The RAM 201 of the memory 102 stores data and the like to be processed by the CPU 101. The auxiliary storage device 103 is, for example, a hard disk drive (HDD) that stores various information.

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

データ収集プログラム格納領域210のデータ収集プログラム(以下、データ収集プログラム210と称する)は、CPU101の実行によって、各デバイス30からデータを収集する。データ収集プログラム210の処理の詳細は、図5にしたがって説明する。アプリケーションプログラム格納領域211のアプリケーションプログラム(以下、アプリケーションプログラム211と称する)は、CPU101の実行によって、データ収集プログラム210が収集したデータの集計や分析処理を行う。   The data collection program of the data collection program storage area 210 (hereinafter referred to as the data collection program 210) collects data from each device 30 by execution of the CPU 101. Details of the processing of the data collection program 210 will be described according to FIG. The application program in the application program storage area 211 (hereinafter referred to as the application program 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にしたがって後述する。   Further, the auxiliary storage device 103 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 for storing data of each device 30 collected by the data collection program 210. The details of the device information table 310 will be described later according to FIG. The device connection destination control information table 311 is a table for storing information of the connection designation gateway 20 of each device 30. The details of the device connection destination control information table 311 will be described later according to FIG.

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

図5に示すように、図4に示したデータ収集プログラム210は、制御モジュール221、接続制御切り替えモジュール222、接続先最適化モジュール223を有する。各モジュール221〜223の処理の詳細は、図15、図16のフローチャート図で後述する。   As shown in FIG. 5, the data acquisition program 210 shown in FIG. 4 includes a control module 221, a connection control switching module 222, and a connection destination optimization module 223. Details of the processing of each of the modules 221 to 223 will be described later in the 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 by relaying the gateway 20 from each device 30 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. Further, when switching from autonomous control to centralized control, the connection control switching module 222 instructs the connection destination optimization module 223 to optimize the connection destination gateway 20 of all the devices 30. 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を決定する。   The connection destination optimization module 223 refers to the device information table 310 in response to the instruction of the connection control switching module 222, 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 view for explaining an example of the device information table 310 shown in FIG. 4 and FIG. The device information table 310 has items of a battery remaining amount, a transmission frequency, a number of retransmissions, and a radio wave strength, for example, using a MAC (Media Access Control: MAC) address of the device 30 as identification information. The battery remaining amount indicates the remaining amount information of the battery that drives the device 30. The transmission frequency (times / sec) indicates the number of times of sensor data transmission per second. The number of retransmissions indicates the number of retransmissions associated with 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 with the device address “aaaa” shown in FIG. 6 shows the device 30 a shown in FIGS. 1 to 3. The device 30 with the device address “bbbb” indicates the device 30 b, and the device 30 with the device address “cccc” indicates the device 30 c. Also, gateways “GW1” to “GW4” illustrated in FIG. 6 correspond to the gateways 20-1 to 20-4 illustrated in FIG. The same applies to a 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 battery remaining amount of the device 30a is 90%, and the transmission frequency is “0.1”. That is, the device 30a transmits 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への再送回数が一番少ない。   Also, 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 five, the number of retransmissions to the gateway "GW2" 20-2 is one, and the gateway "GW4" The number of retransmissions to 20-4 is ten. That is, among the gateways 20 connectable 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 shown in FIG. 6, the radio wave strength of the device 30a and the gateway “GW1” 20-1 is “−70 dBm”. The radio wave strength between the device 30a and the gateway "GW2" 20-2 is "-45 dBm", and the radio wave strength between the gateway "GW4" 20-4 is "-88 dBm". That is, of the gateways 20 that can be connected to the device 30a, the 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 has information on the remaining battery level, the transmission frequency, the number of retransmissions, and the radio wave strength for the other devices 30b and 30c. According to the device information table 310 shown in FIG. 6, the transmission frequency differs 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 control information table]
FIG. 7 is a view for explaining an example of the device connection destination control information table 311 shown in FIG. 4 and FIG. (A) of FIG. 7 shows an example of the device connection destination control information table 311 a in autonomous control, and (B) of FIG. 7 shows an example of the device connection destination control information table 311 b 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 of connection designation of each device 30. The connection designation gateway 20 indicates the gateway 20 to which each device 30 is connected as 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である。   The device connection destination control information table 311a shown in (A) of FIG. 7 is a table in the case of adopting autonomous control, and therefore has no information in the item of the connection designation gateway 20. On the other hand, since the device connection destination control information table 311 b shown in FIG. 7B is a table in the case of adopting centralized control, information is included in the item of the connection designation gateway 20. Specifically, the gateway 20 for connection designation of the device 30a is the gateway “GW1” 20-1. The gateway 20 for connection designation of the device 30b is a gateway "GW2" 20-2, and the gateway 20 for connection designation of the device 30c is a 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 according to FIG. 21 and FIG.

[ゲートウェイのハードウェア構成図]
図21は、図1〜図3に示したゲートウェイ20のハードウェア構成図である。図21に示すゲートウェイ20は、例えば、CPU501、メモリ502、通信インタフェース部503を有する。各部は、バス505を介して相互に接続する。メモリ502は、RAM520や不揮発性メモリ521等を備える。
[Hardware configuration of gateway]
FIG. 21 is a hardware configuration diagram of the gateway 20 shown 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. The respective parts are mutually connected via a bus 505. The memory 502 includes a RAM 520, a non-volatile 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 exchanges data with the device 30 or the center server 10 via the antenna 504. The antenna 504 transmits and receives various data by radio waves. The communication interface unit 503 may transmit and receive data with the center server 10 in accordance with wired communication.

メモリ502のRAM520は、CPU501が処理を行うデータ等を記憶する。メモリ502の不揮発性メモリ521は、CPU501が実行するOSのプログラムを格納する領域(図示せず)を備える。また、不揮発性メモリ521は、データ中継プログラム格納領域510を備える。不揮発性メモリ521は、例えば、不揮発性半導体メモリ等を示す。データ中継プログラム格納領域510のデータ中継プログラム(以下、データ中継プログラム510と称する)は、CPU101の実行によって、センサデータの中継処理を実現する。データ中継プログラム510の処理の詳細については、図22にしたがって説明する。   The RAM 520 of the memory 502 stores data and the like to be processed by the CPU 501. The non-volatile memory 521 of the memory 502 includes an area (not shown) for storing the program of the OS executed by the CPU 501. The non-volatile memory 521 further includes a data relay program storage area 510. The nonvolatile memory 521 represents, for example, a nonvolatile semiconductor memory or the like. The data relay program in the data relay program storage area 510 (hereinafter referred to as the data relay program 510) realizes relay processing of sensor data by execution of the CPU 101. Details of the processing of the data relay program 510 will be described according 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 shown in FIG. 22, the data relay program 510 shown in FIG. 21 has 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. When the relay module 512 receives 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. In addition, 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 the short distance wireless communication.

次に、デバイス30のハードウェア構成、及び、ソフトウェアブロック図を説明する。図8、図9は、図3に示した複数のデバイス30a〜30hのうち、デバイス30aの例を示すが、他のデバイス30b〜30hについても同様である。   Next, the hardware configuration of the device 30 and the software block diagram will be described. 8 and 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 30 a shown in FIGS. 1 to 3. 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. The respective parts are connected to one another via a bus 306. The memory 302 includes a RAM 401, a non-volatile 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 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 transmits and receives data in accordance with near-field wireless communication with the gateway 20 via the antenna 307. The antenna 307 transmits and receives various data by radio waves. The battery 305 is a power supply unit that supplies power for operating the device 30a. The battery 305 is, for example, a dry battery or a rechargeable battery such as lithium ion, but is not limited thereto.

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

データ送信プログラム格納領域410のデータ送信プログラム(以下、データ送信プログラム410と称する)は、CPU101の実行によって、センサデータの取得処理、及び、送信処理を実現する。データ送信プログラム410の処理の詳細については、図9にしたがって説明する。制御情報格納領域411(以下、制御情報テーブル411と称する)は、電池残量、制御データ(送信頻度、再送回数、電波強度)、及び、接続指定のゲートウェイ20の情報を記憶する。制御情報テーブル411の詳細は、図10にしたがって後述する。   The data transmission program of the data transmission program storage area 410 (hereinafter referred to as the data transmission program 410) realizes acquisition processing of sensor data and transmission processing by execution of the CPU 101. The details of the process of the data transmission program 410 will be described according to FIG. The control information storage area 411 (hereinafter referred to as a control information table 411) stores the remaining battery power, control data (transmission frequency, number of retransmissions, radio wave strength), and information of the gateway 20 for connection designation. The details of the control information table 411 will be described later according 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. 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 acquiring module 423, a connection destination control switching module 424, and a connection destination switching module 425. The details of the processing of each of the modules 421 to 425 will be described later according to FIGS.

制御モジュール421は、各モジュール422〜425を制御する。また、制御モジュール421は、定期的に、センシングモジュール422に対するセンサデータの取得指示や、電池残量取得モジュール423に対する電池の残量情報の取得指示を行う。また、制御モジュール421は、取得したセンサデータ及び残量情報の送信処理を制御し、送信処理の再送回数や残量情報を制御情報テーブル411(図8)に記憶する。   The control module 421 controls each of the modules 422-425. In addition, the control module 421 periodically instructs the sensing module 422 to acquire sensor data and instructs the battery residual amount acquisition module 423 to acquire battery residual amount information. The control module 421 also controls transmission processing of the acquired sensor data and remaining amount information, and stores the number of retransmissions of the transmission processing and the remaining amount information 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 accordance with an instruction of the control module 421. The battery remaining amount acquisition module 423 acquires the remaining amount information (also referred to as the battery remaining amount) of the battery of the battery 305 (FIG. 8) according to the instruction of 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 the switching instruction between the autonomous control and the central 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 for explaining an example of the control information table 411 shown in FIG. 8 and FIG. (A) of FIG. 10 shows an example of the control information table 411a in autonomous control, and (B) of FIG. 10 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 information on the remaining battery level, transmission frequency, number of retransmissions, radio wave strength, and the gateway 20 for connection designation. The respective items are as described in the device information table 310 of FIG. 6 and the device connection destination control information tables 311 a and 311 b of FIG. 7.

図10の(A)(B)に示す制御情報テーブル411a、411bは、デバイス30aの制御情報テーブル411であるため、図6に示したデバイス情報テーブル310が含むデバイス30aの情報と同様の情報を有する。   Since the control information tables 411a and 411b shown in (A) and (B) of FIG. 10 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. Do not have Further, the control information table 411b in the centralized control shown in (B) of FIG. 10 is similar to the device connection destination control information table 311b described in (B) of 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 for explaining the flow of switching processing from autonomous control to centralized control. In FIG. 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 transmission and reception of signals between a plurality of devices 30a to 30h (also referred to as device group 30 and devices 30) and the center server 10. . Further, each device 30 transmits information to the center server 10 via the gateway 20, but the illustration of the gateway 20 is omitted in FIG. 11 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 at predetermined time intervals such as 10 seconds to generate transmission sensor data, and via the gateway (not shown in FIG. 11) 20 selected by the device 30. To the center server 10 (a1). The format of transmission sensor data will be described later according to FIG.

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

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

いずれかのデバイス30の電池残量が閾値を下回る状態は、少なくとも1つのデバイス30の寿命が短くなることにより、情報処理システム100の寿命が所定の期間以下に短くなった場合を示す。また、いずれかのデバイス30の電池残量が、平均電池残量から所定の度合いを減じた値を下回る状態は、少なくとも1つのデバイス30の電池残量が他のデバイス30の電池残量に対して乖離して減少している場合を示す。または、デバイス群30の電池残量の標準偏差が大きい場合を示す。つまり、デバイス間の電池残量に偏りが生じ、情報処理システム100の寿命が短くなる傾向にあることを示す。   The state in which the battery remaining amount of any of the devices 30 is below the threshold indicates that the life of the information processing system 100 has become shorter than a predetermined period due to the shortening of the life of at least one device 30. Further, in a state where the battery remaining amount of any device 30 is less than a value obtained by subtracting a predetermined degree from the average battery remaining amount, the battery remaining amount of at least one device 30 is smaller than the battery remaining amount of the other device 30. It shows the case where it is decreasing and decreasing. Alternatively, the case where the standard deviation of the remaining battery level of the device group 30 is large is shown. In other words, this indicates that the remaining battery power between 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 becomes short or when the life of the information processing system 100 tends to become short. 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 the devices, and prolongs the life of the information processing system 100. The center server 10 switches from autonomous control to centralized control when the battery remaining amount of any of the devices 30 falls below a threshold and falls below a value obtained by subtracting a predetermined degree from the average battery remaining amount. 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 in the present embodiment is “20%”. Further, the predetermined degree in the present embodiment is “25%”. According to the device information table 310 described with reference to FIG. 6, the battery remaining amount of the device 30a is "90%", the battery remaining amount of the device 30b is "40%", and the battery remaining amount of the device 30c is "80%". Therefore, the battery remaining amount of none of the devices 30a to 30c is not lower than the threshold value "20%". On the other hand, the average battery remaining amount of the devices 30a to 30c is "70% (= (90% + 40% + 80%) / 3)", and the battery remaining amount "40%" of the device 30b is the average battery remaining amount It is less than 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 centralized control, the center server 10 transmits a control information notification request instructing switching to centralized control to the device group 30 via the gateway 20 (a4). The format of the control information notification request will be described later according to FIG. The device group 30 acquires control data (transmission frequency, number of retransmissions, radio wave strength) in response to the reception of the control information notification request (a5). Then, 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 transmission control data will be described later according to FIG.

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

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

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

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

このように、本実施の形態におけるセンタサーバ10は、いずれかのデバイス30の電池残量が所定値を下回った場合に、自律制御から集中制御に切り替える。これにより、センタサーバ10は、情報処理システム100の寿命の終盤に集中制御に切り替え、寿命を長期化することができる。これにより、電池のメンテナンスにかかるコストを抑えることが可能になる。   Thus, the center server 10 in the present embodiment switches from autonomous control to centralized control when the battery remaining amount 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. This makes it possible to reduce the cost of battery maintenance.

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

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

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

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

集中制御に基づく消費リソースの増加と、情報処理システム100の寿命の長期化とは、トレードオフの関係にある。つまり、自律制御に基づくことにより、通信コストやセンタサーバ10の負荷、制御データの収集に基づくデバイス30の電力消費等を抑えることができるものの、デバイス間の電池残量の偏りが生じ易く、電池残量に基づく情報処理システム100の寿命が短くなる。   The increase in consumption resources based on centralized control and the prolongation of the life of the information processing system 100 are in a trade-off relationship. That is, although based on the autonomous control, it is possible to suppress the communication cost, the load on the center server 10, the power consumption of the device 30 based on collection of control data, etc., the battery residual amount tends to be uneven among devices. 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, although the service life of the information processing system 100 can be extended by the centralized control, the communication cost, the load on the center server 10, the power consumption, and the like increase. In order to follow changes in the wireless environment between the device 30 and the gateway 20, the gateway 20 to which all the devices 30 are connected may be determined frequently. This further increases consumption resources based on centralized control.

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

図12は、集中制御から自律制御への切り替え処理の流れを説明するシーケンス図である。図12において、図11で示したものと同一のものは、同一の記号で示す。図11と同様にして、図12はゲートウェイ20の図示を省略する。   FIG. 12 is a sequence diagram for explaining the flow of switching processing from centralized control to autonomous control. In FIG. 12, the same components as those shown in FIG. 11 are indicated by the same symbols. Similarly to FIG. 11, FIG. 12 omits illustration of 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 sends the center server 10 to the center server 10 via a gateway (not shown in FIG. 12) determined by the center server 10. Send (a11).

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

図13は、集中制御に切り替えた後のデバイス情報テーブル310−1を示す図である。図13に示すデバイス情報テーブル310−1は、図6に示したデバイス情報テーブル310の、ある期間経過後のテーブルを示す。   FIG. 13 is a diagram showing the device information table 310-1 after switching to centralized control. The device information table 310-1 shown in FIG. 13 shows a table after a certain period of time of the device information table 310 shown 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%」に減少している。   While the battery remaining amount of the device 30a is "90%" in the device information table 310 of FIG. 6, it is reduced to "70%" in the device information table 310-1 of FIG. Further, the battery remaining amount of the device 30 b is reduced to “30%” in the device information table 310-1 of FIG. 13 while it is “40%” in the device information table 310 of FIG. 6. Further, the battery remaining amount of the device 30c is reduced to "50%" in the device information table 310-1 in FIG. 13 while it is "80%" in the device information table 310 in 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 30 b having a small battery remaining amount is small, and the battery remaining amount between devices is smoothed. Therefore, the battery remaining amount of any of the devices 30a to 30c is not lower than the average battery remaining amount "50% (= (70% + 30% + 50%) / 3)" by a predetermined degree "25%" or more. In addition, the remaining battery level of any of the devices 30a to 30c is not lower than the threshold value "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に送信する。   Referring back 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 according to FIG. Each device 30 deletes the information of the connection designated gateway 20 stored in the control information table 411b (FIG. 10) in response to the reception of the connection destination control notification (a15). Thus, each device 30 transmits sensor data and remaining amount information to the center server 10 via the gateway 20 selected by the device 30.

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

[データのフォーマット]
図14は、図11、図12で説明した、送信センサデータ、制御情報通知要求、送信制御データ、及び、接続先制御通知のフォーマットの一例を示す図である。
Data Format
FIG. 14 is a view showing an example of the format 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は、前述したとおりである。   (A) of FIG. 14 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 a remaining amount information Ma3 in a header portion (not shown), and a sensor in a body portion (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 has a control information notification request instruction Mb3 in a body portion (not shown). The transmission 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 a transmission instruction of 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 has a transmission source address Mc1 and a destination address Mc2 in a header portion (not shown), and has a transmission frequency Mc3, a number of retransmissions Mc4 and a radio wave strength Mc5 in a body portion (not shown). The transmission 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 strength Mc5 are as described in FIG.

図14の(D)は、接続先制御通知のフォーマットの一例を示す。接続先制御通知は、ヘッダ部(図示せず)に、送信元アドレスMd1、宛先アドレスMd2を有し、ボディ部(図示せず)に接続先制御指示Md3を有する。送信元アドレスMd1はセンタサーバ10のアドレスを示し、宛先アドレスMd2はデバイス30のアドレスを示す。接続先制御指示Md3は、自律制御から集中制御への切り替え時は、接続指定のゲートウェイ20の情報を有し、集中制御から自律制御への切り替え時は、接続指定のゲートウェイ20の情報を有しない。   (D) of FIG. 14 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 the header portion (not shown), and has a connection destination control instruction Md3 in the body portion (not shown). The transmission 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 of the connection-designated gateway 20 when switching from autonomous control to centralized control, and does not have information of the connection-designated gateway 20 when 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 according to the flowcharts of FIGS. Further, details of the processing of the device 30 will be described according to the flowcharts of FIGS. 15 to 16 will be described in accordance with the device information table 310 shown in FIG. 6 and FIG. 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 flow chart for explaining the flow of the control switching determination process of the data collection program 210 of the center server 10 shown in FIG.

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

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

S13:工程S12の判定の結果、下回ると判定した場合(S12のYes)、接続制御切り替えモジュール222は、全てのデバイス30に、制御情報通知要求(図14の(B))を送信する。接続制御切り替えモジュール222は、自律制御を採用していた場合は、自律制御から集中制御に切り替え、既に集中制御を採用している場合は、継続して集中制御を採用する。   S13: As a result of the determination in the step S12, when it is determined that the number falls below (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 the autonomous control to the centralized control when the autonomous control is adopted, and continuously adopts the centralized control when the centralized control is already adopted.

図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 30 b is obtained by subtracting a predetermined degree “25%” from the average battery remaining amount “70%” It falls 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 of the devices 30 a to 30 c transmits transmission control data ((C) in FIG. 14) to the center server 10 in response to the reception of the control information notification request. Details of the processing of the devices 30a to 30c will be described later according to the flow chart 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 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 gateway 20 of all the devices 30.

継続して集中制御を採用する場合、接続制御切り替えモジュール222は、再び、全てのデバイス30の接続先のゲートウェイ20の最適化処理を、接続先最適化モジュール223に指示する。これにより、定期的に、各デバイス30の接続先のゲートウェイ20を、電波環境の変化に応じた最適なゲートウェイ20に更新することが可能になる。   When the centralized control is continuously adopted, the connection control switching module 222 instructs the connection destination optimization module 223 to optimize the connection destination gateway 20 of all the devices 30 again. This makes it possible to periodically update the gateway 20 to which each device 30 is connected to the optimal gateway 20 according to the change 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) to obtain the battery remaining amount and control data of each device 30, and according to the calculation process, the gateway 20 of the connection destination of all the devices 30. Decide. The connection destination optimization module 223 optimizes the connection destination gateways 20 of all the devices 30 by preferentially determining the connection destination gateway 20 of the device 30 having a small battery level to the gateway 20 having a small number of retransmissions. Do.

(最適化処理)
具体的に、本実施の形態では、接続先最適化モジュール223は、デバイス30とゲートウェイ20の組み合わせパターンを複数、抽出する。次に、接続先最適化モジュール223は、電池残量、送信頻度、再送回数に基づいて、各組み合わせパターンにおける、各デバイス30の稼働時間を算出する。そして、接続先最適化モジュール223は、電池残量の少ないデバイス30の稼働時間が長くなる組み合わせパターンを選択し、各デバイス30の接続先のゲートウェイ20を決定する。
(Optimization processing)
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 operation time of each device 30 in each combination pattern based on the remaining battery power, 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 amount of remaining battery is 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 amount of remaining battery is long indicates the combination pattern in which the number of retransmissions of the device 30 with a small amount of remaining battery decreases. The connection destination optimization module 223 calculates the operation time (seconds) of each device 30 according to, for example, the equation 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 the transmission process of one sensor data in the storage capacity of the battery 305, and the value “p%” indicates the remaining battery capacity of the battery 305. Therefore, the sub-expression "b / p" indicates the required number of transmissions until the battery remaining amount reaches "0%". Further, a value “t (times / sec)” in the equation 1 indicates a data collection frequency, and a value “r (times / sec)” indicates a resend frequency associated with transmission processing per second. Thus, the subexpression "(t + r)" indicates the transmission frequency per second including retransmission.

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

接続先最適化モジュール223は、例えば、式2「同時接続数×(再送回数/最大同時接続数)」にしたがって、1回の送信処理当たりの再送頻度「r(回/sec)」を算出する。式2は、同時接続数が複数の場合における再送頻度の算出式を示し、同時接続数に応じて、再送回数を線形増加させることにより、再送頻度を算出する式である。   The connection destination optimization module 223 calculates, for example, the retransmission frequency “r (times / sec) per transmission process according to Equation 2“ the number of simultaneous connections × (the number of retransmissions / the maximum number of simultaneous connections) ”. . Formula 2 shows a formula 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 simultaneous connection number in Equation 2 indicates the total number of devices 30 to which the connection candidate gateway 20 of the device 30 can connect. Further, the number of simultaneous connections in Equation 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 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 the value “10”, the number of simultaneous connections is the value “3”, and the number of retransmissions is “5”, the connection destination optimization module 223 selects the retransmission frequency “1. Calculate 5 {= 3 × (5/10)} (times / sec). 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 the value “10”, the number of simultaneous connections is the value “8”, and the number of retransmissions is “5”, the connection destination optimization module 223 selects the retransmission frequency “4 { “8 × (5/10)} (times / sec)” is calculated.

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

なお、最適化処理の方法は、上記の方法に限定されるものではない。接続先最適化モジュール223は、デバイス間の稼働時間のばらつきが少なくなるように、各デバイス30の接続先のゲートウェイ20を決定してもよい。また、接続先最適化モジュール223は、稼働時間に基づくことなく、電池残量の少ないデバイス30に再送回数が少ないゲートウェイ20を割り当てることによって、最適化処理を行ってもよい。または、接続先最適化モジュール223は、電池残量の少ないデバイス30に再送回数が少なく電波強度の高いゲートウェイ20を割り当てることによって、最適化処理を行ってもよい。   Note that the method of optimization processing is not limited to the above method. The connection destination optimization module 223 may determine the connection destination gateway 20 of each device 30 so as to reduce variation in operation time between the devices. Further, the connection destination optimization module 223 may perform the optimization process by assigning the gateway 20 with a small number of retransmissions to the device 30 with a small amount of remaining battery power, not based on the operating 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 strength to the device 30 with a small 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 autonomous control is adopted. The connection control switching module 222 determines that centralized control is adopted when the device connection destination control information table 311 has information of the connection designation, and when it does not have it, autonomous control is adopted. It determines that it is.

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

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 the information of the connection designated gateway 20 for the device 30 extracted in step S16. This makes it possible to reduce the amount of communication data. On the other hand, when it is determined that the autonomous control is adopted (Yes in S15), the connection control switching module 222 is a connection including all the information of the gateway 20 for connection designation determined in step S14 for all devices 30. The prior 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 311 b (FIG. 7). According to the device connection destination control information table 311 b of (B) of FIG. 7, the connection destination of the device 30 b with a small battery remaining amount is the gateway “GW 2” 20-2 with a small number of retransmissions. The connection destinations of the other devices 30a and 30c are the gateways 20 other than the gateway "GW2" 20-2. That is, only the device 30b connects 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と接続してもよい。   As a result, the connection control switching module 222 can reduce the power consumption of the device 30 b and extend the life of the device 30 b. That is, it becomes possible to smooth the remaining battery level between devices and prolong the life of the information processing system 100. In the example of FIG. 7, only the device 30 b is connected to the gateway “GW 2” 20-2 with a small number of retransmissions, but the present invention 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 be connected 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 none of the devices 30 is not below the threshold and is not below the average battery remaining 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) to determine whether autonomous control has been adopted.

S19:自律制御を採用していなかった場合(S18のNo)、即ち、集中制御を採用していた場合、接続制御切り替えモジュール222は、集中制御から自律制御に切り替える。図13で説明したデバイス情報テーブル310によると、前述したとおり、いずれのデバイス30a〜30cの電池残量も、閾値「20%」、及び、平均電池残量「50%」から所定の度合い「25%」を減算した値「25%」を下回っていない(S12のNo)。したがって、接続制御切り替えモジュール222は、集中制御から自律制御に切り替える旨、判定する。   S19: If autonomous control is not adopted (No in S18), that is, if centralized control is adopted, the connection control switching module 222 switches from centralized control to autonomous control. According to the device information table 310 described in FIG. 13, as described above, the battery remaining amount of any of the devices 30a to 30c is set to a predetermined degree “25” from the threshold “20%” and the average battery remaining amount “50%”. It is not less than the value “25%” obtained by subtracting “%” (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 ((D) in FIG. 14) that does not have the information of the connection-specified gateway 20. Each device 30 deletes the information of the connection designated gateway 20 in the control information table 411 shown in FIG. 10 in response to the connection destination control notification.

一方、自律制御を採用していた場合(S18のYes)、即ち、自律制御を継続して採用する場合、接続制御切り替えモジュール222は、工程S19の処理を行わない。   On the other hand, when autonomous control is adopted (Yes in S18), that is, when 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 flow chart diagram for explaining the flow of reception processing of transmission sensor data and transmission control data of the data collection program 210 shown in FIG. (A) of FIG. 16 is a flowchart figure explaining the reception process of transmission sensor data.

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

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

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

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

[デバイス:センサデータの送信処理]
図17は、図9に示したデバイス30のデータ送信プログラム410の、センサデータの送信処理の流れを説明するフローチャート図である。
[Device: Transmission process of sensor data]
FIG. 17 is a flow chart for explaining the flow of transmission processing of sensor data 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 predetermined time intervals according to the transmission frequency, and acquires 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 acquiring module 423 to acquire the remaining amount information of the battery 305 every predetermined time according to the transmission frequency.

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 the information of 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 connection-designated gateway 20, the control module 421 selects the connection destination gateway 20 and transmits 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 in the control information table 411 (FIG. 10) as the number of retransmissions. The control module 421 also stores the transmission frequency in the control information table 411.

[デバイス:接続先制御通知の受信時の処理]
図18は、図9に示したデバイス30のデータ送信プログラム410の、接続先制御通知の受信に応答した制御切り替え処理の流れを説明するフローチャート図である。
[Device: Process when receiving connection destination control notification]
FIG. 18 is a flow chart for explaining the flow of control switching processing in response to the reception of the connection destination control notification of 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 the reception of the connection destination control notification ((D) in FIG. 14). The connection destination control switching module 424 determines whether the connection destination control instruction of the connection destination control notification is a notification instructing switching to the autonomous control based on whether or not the connection destination gateway 20 has information of the connection destination. judge.

S52:自律制御への切り替えを指示する通知である場合(S51のYes)、接続先制御切り替えモジュール424は、制御情報テーブル411(図10)が有する接続指定のゲートウェイ20の情報を削除する。   S52: In the case of 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 that the control information table 411 (FIG. 10) has.

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 sets the information of 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 accordance with the update of the control information table 411, the connection destination control switching module 424 switches the connection destination to the gateway 20 for connection designation after the update.

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

S61:接続先制御切り替えモジュール424は、制御情報通知要求(図14の(B))の受信に応答して、制御情報テーブル411(図10)を参照し、周囲のゲートウェイ20との電波強度を取得する。   S61: In response to the reception of the control information notification request ((B) in FIG. 14), the connection destination control switching module 424 refers to the control information table 411 (FIG. 10) and transmits the field strength with the surrounding gateway 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 gateway 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 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: When the control information table 411 (FIG. 10) has the information of the gateway 20 of the connection designation, the connection destination control switching module 424 acquires the information of the gateway 20 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 ((C) in FIG. 14) generated in step S64 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 connection destination switching processing 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 of the gateway 20 for connection designation.

S72:接続先のゲートウェイ20を記憶していない場合(S71のYes)、即ち、自律制御に基づく場合、接続先切り替えモジュール425は、接続中のゲートウェイ20との電波環境が悪化したか否かを判定する。例えば、接続先切り替えモジュール425は、電波強度に基づいて、電波環境が悪化したか否かを判定する。   S72: When the connection destination gateway 20 is not stored (Yes in S71), that is, based on the autonomous control, the connection destination switching module 425 determines whether 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 connected gateway 20 is 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). Store in). The connection destination switching module 425 may measure the radio wave environment at the time of 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 one 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 the 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 transmits the radio wave with the surrounding gateway 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 is not deteriorated as a result of the determination in step S72 (No in S72), the connection destination switching module 425 does not perform the processing 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, every time the connection control switching module 222 determines that the battery remaining amount of any of the devices 30 falls below the predetermined value (Yes in S12), the connection control gateway 20 of all the devices 30 is connected. An optimization process is performed (S13, S14). That is, when continuing the centralized control, the connection control switching module 222 performs optimization processing at intervals of receiving transmission sensor data of the device group 30.

したがって、特に、デバイス群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 become high. Therefore, the connection control switching module 222 may perform the optimization process according to a frequency that is less than the frequency with which the transmission sensor data is received. For example, the connection control switching module 222 transmits a control information notification request to each device 30 only when a predetermined period has elapsed since the previous optimization processing, when it is determined that the number is lower than the optimization processing. Do.

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

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

以上の実施の形態をまとめると、次の付記のとおりである。   The following is a summary of the above embodiment.

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

(付記2)
付記1において、
前記処理部は、いずれかのデバイスの前記残量情報が前記所定値を示す閾値を下回るか、または、いずれかのデバイスの前記残量情報が、前記複数のデバイスの残量情報の平均から所定の度合いを減じた前記所定値を下回る場合に、前記第1のモードから前記第2のモードに切り替える、
情報処理装置。
(Supplementary Note 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 determined from an average of remaining amount information of the plurality of devices. Switching from the first mode to the second mode when the value falls below the predetermined value obtained by subtracting the degree of
Information processing device.

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

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

(付記5)
付記1乃至4のいずれかにおいて、
前記処理部は前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
情報処理装置。
(Supplementary Note 5)
In any of Appendices 1 to 4,
In the processing unit, in the first mode, the device is configured to receive either the radio wave intensity of wireless communication with one or more relay devices or 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 selected based on the information;
Information processing device.

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

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

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

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

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

(付記11)
付記7乃至10のいずれかにおいて、
前記切り替えは、前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
制御プログラム。
(Supplementary Note 11)
In any of Appendices 7 to 10,
In the switching, in the first mode, the device transmits radio wave intensity of wireless communication with one or more relay devices, and / or 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 selected based on the information;
Control program.

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

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

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

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

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

(付記17)
付記13乃至16のいずれかにおいて、
前記切り替えは、前記第1のモードにおいて、前記デバイスが、1つまたは複数の前記中継装置との無線通信の電波強度、前記デバイスから前記中継装置への無線通信の再送回数のいずれかまたは両方に基づいて選択する前記中継装置を介して、前記取得情報と前記残量情報とを受信する、
情報処理装置の制御方法。
(Supplementary Note 17)
In any one of appendices 13 to 16,
In the switching, in the first mode, the device transmits radio wave intensity of wireless communication with one or more relay devices, and / or 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 selected based on the information;
Control method of information processing apparatus.

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

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

(付記20)
付記19において、
前記情報処理装置の前記処理部は、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理システム。
(Supplementary Note 20)
In appendix 19,
The processing unit of the information processing apparatus switches from the second mode to the first mode when the remaining amount information does not fall 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 To 20-8): gateway, 30 (30a to 30h): device, 301: CPU, 302: memory, 303: sensor, 304: communication interface unit, 305: battery, 307: antenna

Claims (7)

複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、中継装置を経由して受信する処理部と、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、を有し、
前記処理部は、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替え、
前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理装置。
A processing unit that receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating the remaining amount of the battery of the device via a relay device;
A storage unit that stores the received acquisition information and the remaining amount information;
The processing unit is configured to receive, from the first mode, the acquisition information and the remaining amount information via the relay device selected by the device, when the remaining amount information of any of the devices falls below a predetermined value. Further receiving from the plurality of devices communication information indicating a communication state with the one or more relay devices, and determining the relay devices of the plurality of devices based on the remaining amount information and the communication information; the determined the relay apparatus notifies the plurality of devices, and the acquisition information and the remaining amount information, received via the determined the relay device, you switch to the second mode,
Switching from the second mode to the first mode when the remaining amount information does not fall below the predetermined value after switching to the 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 determined from an average of remaining amount information of the plurality of devices. Switching from the first mode to the second mode when the value falls below the predetermined value obtained by subtracting the degree of
Information processing device.
請求項1において、
前記処理部は前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、
情報処理装置。
Oite to claim 1,
The processing unit further receives, in the second mode, the communication information including the number of retransmissions of wireless communication from the device to the relay device, and the second device having the remaining amount information smaller than that of the first device. The relay device is determined to be the relay device with the smaller number of retransmissions among the plurality of relay devices connected by the second device.
Information processing device.
複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、中継装置を経由して受信する処理部と、  A processing unit that receives, from a plurality of devices, acquired information acquired by the device and remaining amount information indicating the remaining amount of the battery of the device via a relay device;
受信した前記取得情報と前記残量情報とを記憶する記憶部と、を有し、  A storage unit that stores the received acquisition information and the remaining amount information;
前記処理部は、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替え、  The processing unit is configured to receive, from the first mode, the acquisition information and the remaining amount information via the relay device selected by the device, when the remaining amount information of any of the devices falls below a predetermined value. Further receiving from the plurality of devices communication information indicating a communication state with the one or more relay devices, and determining the relay devices of the plurality of devices based on the remaining amount information and the communication information; Switching to a second mode in which the determined relay device is notified to the plurality of devices, and the acquired information and the remaining amount information are received via the determined relay device;
前記第2のモードにおいて、前記デバイスから前記中継装置への無線通信の再送回数を含む前記通信情報をさらに受信し、前記残量情報が第1のデバイスより少ない第2のデバイスの前記中継装置を、前記第2のデバイスが接続する複数の前記中継装置のうち前記再送回数が少ない前記中継装置に決定する、  In the second mode, the relay apparatus of the second device further receiving the communication information including the number of retransmissions of wireless communication from the device to the relay apparatus, and the remaining amount information is smaller than the first device. Determining the relay device with the smaller number of retransmissions among the plurality of relay devices connected by the second device;
情報処理装置。  Information processing device.
複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替え、
前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
処理をコンピュータに実行させる制御プログラム。
A first mode is executed in which the acquired information acquired by the device and the remaining amount information indicating the remaining amount of the battery of the device are received from a plurality of devices via a relay apparatus selected by the device.
When the remaining amount information of any device falls below a predetermined value, communication information indicating the communication state with one or more relay devices from the plurality of devices is further received 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 said relay device, you switch to the second mode,
Switching from the second mode to the first mode when the remaining amount information does not fall below the predetermined value after switching to the second mode.
Control program that causes a computer to execute processing.
処理部が、複数のデバイスから、前記デバイスが取得した取得情報と前記デバイスの電池の残量を示す残量情報とを、前記デバイスが選択する中継装置を経由して受信する第1のモードを実行し、
処理部が、いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替え、
前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える、
情報処理装置の制御方法。
A first mode in which the processing unit receives the acquired information acquired by the device and the remaining amount information indicating the remaining amount of the battery of the device from the plurality of devices via the relay device selected by the device Run
When the processing unit determines that the remaining amount information of any device falls below a predetermined value, communication information indicating a communication state with the one or more relay devices from the plurality of devices from the first mode is used. Further, the relay device of the plurality of devices is determined based on the remaining amount information and the communication information, and the determined relay device is notified to the plurality of devices, and the acquired information and the remaining amount information the decision said received via a relay apparatus, you switch to the second mode,
Switching from the second mode to the first mode when the remaining amount information does not fall below the predetermined value after switching to the second mode.
Control method of information processing apparatus.
取得情報と電池の残量を示す残量情報とをそれぞれ送信する複数のデバイスと、
前記複数のデバイス受信した前記取得情報と前記残量情報を、中継して情報処理装置に送信する複数の中継装置と、
前記取得情報と前記残量情報とを受信する前記情報処理装置と、を有し
前記情報処理装置は、
受信した前記取得情報と前記残量情報とを記憶する記憶部と、
いずれかのデバイスの前記残量情報が所定値を下回る場合に、前記デバイスが選択する中継装置を経由して前記取得情報と前記残量情報とを受信する第1のモードから、前記複数のデバイスから1つまたは複数の前記中継装置との通信状態を示す通信情報をさらに受信し、前記残量情報と前記通信情報とに基づいて前記複数のデバイスの中継装置を決定し、決定した前記中継装置を前記複数のデバイスに通知し、前記取得情報と前記残量情報とを、決定した前記中継装置を経由して受信する、第2のモードに切り替え、前記第2のモードに切り替えた後、前記残量情報が前記所定値を下回らなくなった場合に、前記第2のモードから前記第1のモードに切り替える処理部と、を有する、
情報処理システム。
A plurality of devices for transmitting the acquired information and the remaining amount information indicating the remaining amount of the battery;
A plurality of relay devices that relay the plurality of devices received the acquired information and the remaining amount information and transmit the relayed information to the information processing device;
The information processing apparatus includes the information processing apparatus that receives the acquired information and the remaining amount information.
A storage unit that stores the received acquisition information and the remaining amount information;
The plurality of devices are received from the first mode in which the acquired information and the remaining amount information are received via the relay device selected by the device when the remaining amount information of any device falls below a predetermined value. The relay device of the plurality of devices is determined based on the remaining amount information and the communication information, and the relay device determined the notified to the plurality of devices, and the acquisition information and the remaining amount information, received via the determined the relay device, you switch to the second mode, after switching to the second mode, A processing unit configured to switch from the second mode to the first mode when the remaining amount information does not fall below the predetermined value ;
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 JP2016158200A (en) 2016-09-01
JP6531426B2 true 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)

Families Citing this family (6)

* 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
WO2018096631A1 (en) 2016-11-24 2018-05-31 オリンパス株式会社 Data processing device, computer readable medium, data processing method, and program
JP6776143B2 (en) * 2017-02-03 2020-10-28 横河電機株式会社 Water level measurement system
JP6904084B2 (en) * 2017-06-16 2021-07-14 富士フイルムビジネスイノベーション株式会社 Information processing equipment, programs and information processing systems
JP6770023B2 (en) * 2018-06-15 2020-10-14 ソフトバンク株式会社 Communication system, communication system control method, wireless communication master unit, wireless communication master unit control method, information processing device, information processing device control method, wireless communication device, wireless communication device control method, and communication system control program
JP7494720B2 (en) 2020-12-10 2024-06-04 トヨタ自動車株式会社 Information processing device, communication system, selection method and program

Family Cites Families (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
CN103209468B (en) * 2012-01-17 2016-05-18 华为终端有限公司 Method, access point and the website of wireless transmission
JP6518029B2 (en) * 2013-03-04 2019-05-22 住友電気工業株式会社 Management device, wireless communication system, wireless terminal device and communication control program
JP2015177216A (en) * 2014-03-13 2015-10-05 日本電気株式会社 radio system and relay communication method

Also Published As

Publication number Publication date
JP2016158200A (en) 2016-09-01

Similar Documents

Publication Publication Date Title
JP6531426B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL PROGRAM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND INFORMATION PROCESSING SYSTEM
US10959112B2 (en) Systems and methods for networking and wirelessly routing communications
US8983491B2 (en) Adaptive location tracking system
US10433182B2 (en) Communication system and wireless network engineering support method
CN102804696A (en) Dynamic directed acyclic graph (DAG) topology reporting
GB2557611A (en) Edge computing system
JP5376068B2 (en) Wireless communication device and detour route search method
US10779218B2 (en) Data management device, wireless communication device and wireless multihop network
JP6036841B2 (en) COMMUNICATION CONTROL METHOD, NETWORK SYSTEM, AND COMMUNICATION DEVICE
CN103609067A (en) Management of misbehaving nodes in a computer network
JP2015088807A (en) Wireless communication apparatus and wireless information collecting system
JP2016144087A (en) Access point location optimization apparatus and method
JP4552669B2 (en) Communication path setting method, communication path determination device, communication system, and communication path determination program
JP6385125B2 (en) Cause identification method, cause identification device, and cause identification program for wireless sensor network failure
Wang et al. Traffic-aware relay node deployment for data collection in wireless sensor networks
US9191846B2 (en) Monitoring method of multi-hop wireless network
JP2013109431A (en) Method for evaluation of costs for installation and operation of wireless sensor network for state monitoring of target structure
JP6053542B2 (en) Node device, wireless network, and channel switching method
US9712428B2 (en) Wireless terminal device, method for generating number of alternative paths, and wireless communication system
JP2010141805A (en) Method for arranging representative node and terminal node
JP6929795B2 (en) Sensor network system and center equipment
JP2015012427A (en) Communication reliability evaluation device and multi-hop radio communication network system using the same
Szczytowski et al. TOM: Topology oriented maintenance in sparse Wireless Sensor Networks
JP2023156584A (en) Communication device, communication method, and program
JP2007306280A (en) Retrieval and display system for node position on radio communication multi-hop network

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