JP2021022835A - Communication control unit, communication control program, communication control method, and communication control system - Google Patents

Communication control unit, communication control program, communication control method, and communication control system Download PDF

Info

Publication number
JP2021022835A
JP2021022835A JP2019138329A JP2019138329A JP2021022835A JP 2021022835 A JP2021022835 A JP 2021022835A JP 2019138329 A JP2019138329 A JP 2019138329A JP 2019138329 A JP2019138329 A JP 2019138329A JP 2021022835 A JP2021022835 A JP 2021022835A
Authority
JP
Japan
Prior art keywords
communication
channel
repeater
communication control
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019138329A
Other languages
Japanese (ja)
Inventor
大輔 新井
Daisuke Arai
大輔 新井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2019138329A priority Critical patent/JP2021022835A/en
Publication of JP2021022835A publication Critical patent/JP2021022835A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

To prevent communication interference between a plurality of relays.SOLUTION: A server device sets by communication, to relays owned by a user, model numbers (package numbers) different from each other in communication channel to be used. Thus, the communication channels used by the plurality of relays owned by the user can be communication channels different from each other, and communication interference between the plurality of relays can be easily prevented.SELECTED DRAWING: Figure 6

Description

本発明は、通信制御装置、通信制御プログラム、通信制御方法及び通信制御システムに関する。 The present invention relates to a communication control device, a communication control program, a communication control method, and a communication control system.

特許文献1(特開2013−120973号公報)に、利用する無線通信方式に応じて、所要の伝送特性を担保しながら、ネットワーク伝送路所要帯域を制御可能とした無線ゲートウェイ装置が開示されている。 Patent Document 1 (Japanese Unexamined Patent Publication No. 2013-120973) discloses a wireless gateway device capable of controlling the required band of a network transmission line while ensuring the required transmission characteristics according to the wireless communication method to be used. ..

この無線ゲートウェイ装置は、信号処理プログラムの書き換えが可能な可変信号処理部、自装置と信号処理サーバとの間の伝送帯域を制御する制御部、を備える。信号処理サーバは、記信号処理プログラムの書き換えが可能な可変信号処理部、無線ゲートウェイ装置と自装置との間の伝送帯域を制御する制御部とを備える。各制御部は、無線通信方式に基づいて、各可変信号処理部に実装可能なリソースの大きさ、利用可能なネットワーク伝送帯域、ネットワーク伝送遅延の情報を用いて、各可変信号処理部に無線通信機能ブロックを振り分ける。これにより、利用する無線通信方式に応じて、所要の伝送特性を担保しながら、ネットワーク伝送路所要帯域を制御可能とすることができる。 This wireless gateway device includes a variable signal processing unit capable of rewriting a signal processing program, and a control unit that controls a transmission band between the own device and the signal processing server. The signal processing server includes a variable signal processing unit capable of rewriting the signal processing program, and a control unit that controls the transmission band between the wireless gateway device and the own device. Based on the wireless communication method, each control unit wirelessly communicates with each variable signal processing unit using information on the size of resources that can be implemented in each variable signal processing unit, the available network transmission band, and the network transmission delay. Sort functional blocks. As a result, it is possible to control the required band of the network transmission line while ensuring the required transmission characteristics according to the wireless communication method to be used.

ここで、1台のゲートウェイ装置に割り当てられている通信チャンネルは、例えば4チャンネル等のように制限がある。また、1台のゲートウェイ装置で管理可能な通信端末も、最大で例えば400台等のように制限がある。このような状況下において、例えば500台等の、1台のゲートウェイ装置で管理可能な台数を大幅に超える台数の通信端末を管理することを考える。この場合、複数のゲートウェイ装置が必要となる。 Here, the communication channels assigned to one gateway device are limited, for example, four channels. Further, the number of communication terminals that can be managed by one gateway device is limited to 400, for example, at the maximum. Under such circumstances, it is considered to manage the number of communication terminals that greatly exceeds the number that can be managed by one gateway device, for example, 500 units. In this case, a plurality of gateway devices are required.

しかし、同じ通信チャンネルが設定された複数のゲートウェイ装置を用いると、各ゲートウェイ装置で管理している通信端末が、同じ通信チャンネルを用いて無線通信を行った場合に、通信干渉を生ずるおそれがある。このため、それぞれ異なる通信チャンネルが設定された複数のゲートウェイ装置を用いて多数の通信端末を管理する必要がある。 However, if a plurality of gateway devices in which the same communication channel is set are used, communication interference may occur when the communication terminals managed by each gateway device perform wireless communication using the same communication channel. .. Therefore, it is necessary to manage a large number of communication terminals by using a plurality of gateway devices in which different communication channels are set.

これは、ゲートウェイ装置のメーカ側において、通信チャンネルが異なる別の型番のゲートウェイ装置をそれぞれ製造し、出荷及び在庫管理を行う必要があることを意味する。具体的に説明すると、メーカ側は、第1番目の型番のゲートウェイ装置として、第1チャンネル、第10チャンネル、第19チャンネル及び第28チャンネルの計4チャンネルを割り当てたゲートウェイ装置を製造する。また、第2番目の型番のゲートウェイ装置として、第5チャンネル、第14チャンネル、第23チャンネル及び第32チャンネルの計4チャンネルを割り当てたゲートウェイ装置を製造する。このように、メーカ側は、それぞれ対応する通信チャンネルが異なるゲートウェイ装置を製造し、出荷及び在庫管理を行う必要がある。 This means that it is necessary for the gateway device manufacturer to manufacture gateway devices of different model numbers having different communication channels, and to carry out shipping and inventory management. Specifically, the manufacturer manufactures a gateway device to which a total of four channels, that is, the first channel, the tenth channel, the 19th channel, and the 28th channel, are assigned as the gateway device of the first model number. Further, as the gateway device of the second model number, a gateway device to which a total of 4 channels of 5th channel, 14th channel, 23rd channel and 32nd channel are assigned is manufactured. In this way, the manufacturer needs to manufacture gateway devices having different communication channels, and perform shipping and inventory management.

特許文献1に開示されている無線ゲートウェイ装置の場合も同様であり、使用する通信方式を切り替えるだけでは、各無線ゲートウェイ装置で管理している通信端末が同じ通信チャンネルを用いて無線通信を行った場合に、やはり、通信干渉を生ずる。 The same applies to the wireless gateway device disclosed in Patent Document 1, and the communication terminals managed by each wireless gateway device perform wireless communication using the same communication channel simply by switching the communication method to be used. In some cases, communication interference also occurs.

本発明は、上述の課題に鑑みてなされたものであり、複数の通信制御装置間で通信干渉を生じないように、各通信制御装置の通信チャンネルを設定可能とした通信制御装置、通信制御プログラム、通信制御方法及び通信制御システムの提供を目的とする。 The present invention has been made in view of the above problems, and is a communication control device and a communication control program capable of setting a communication channel of each communication control device so as not to cause communication interference between a plurality of communication control devices. , Communication control method and communication control system.

上述した課題を解決し、目的を達成するために、本発明は、グループ間の通信干渉を防止するように組み合わされた複数の通信チャンネルをグループ化した複数グループ分の通信チャンネル設定情報のうち、いずれか一つのグループの通信チャンネル設定情報を取得する取得部と、取得された通信チャンネル設定情報で示される通信チャンネルを用いて、子機との間で無線通信を行うように、無線通信部を制御する無線通信制御と、を有する。 In order to solve the above-mentioned problems and achieve the object, the present invention presents the communication channel setting information for a plurality of groups in which a plurality of communication channels combined so as to prevent communication interference between the groups are grouped. The wireless communication unit is set up so as to perform wireless communication with the slave unit using the acquisition unit that acquires the communication channel setting information of any one group and the communication channel indicated by the acquired communication channel setting information. It has wireless communication control to control.

本発明によれば、複数の通信制御装置間で通信干渉を生じないように、各通信制御装置の通信チャンネルを設定可能とすることができるという効果を奏する。 According to the present invention, there is an effect that the communication channel of each communication control device can be set so as not to cause communication interference between a plurality of communication control devices.

図1は、実施の形態の動物管理システムのシステム構成図である。FIG. 1 is a system configuration diagram of the animal management system of the embodiment. 図2は、実施の形態の動物管理システムのサーバ装置で管理されるユーザ情報の一例を示す図である。FIG. 2 is a diagram showing an example of user information managed by the server device of the animal management system of the embodiment. 図3は、実施の形態の動物管理システムのサーバ装置で管理される管理情報の一例を示す図である。FIG. 3 is a diagram showing an example of management information managed by the server device of the animal management system of the embodiment. 図4は、G/W応答フラグのフォーマットの一例を示す図である。FIG. 4 is a diagram showing an example of the format of the G / W response flag. 図5は、実施の形態の動物管理システムに設けられている中継器の機能を示す機能ブロック図である。FIG. 5 is a functional block diagram showing the function of the repeater provided in the animal management system of the embodiment. 図6は、中継器の初動時における動作の流れを示すフローチャートである。FIG. 6 is a flowchart showing the flow of operation at the time of initial operation of the repeater. 図7は、定常時(サーバ装置との連携時)における中継器の動作の流れを示すフローチャートである。FIG. 7 is a flowchart showing the operation flow of the repeater in the steady state (when cooperating with the server device). 図8は、各通信チャンネルに割り当てるセンサ装置の均等化処理を模式的に示す図である。FIG. 8 is a diagram schematically showing an equalization process of the sensor device assigned to each communication channel. 図9は、実施の形態の動物管理システムに設けられているセンサ装置の機能ブロック図である。FIG. 9 is a functional block diagram of a sensor device provided in the animal management system of the embodiment. 図10は、センサ装置における初動時の動作の流れを示すフローチャートである。FIG. 10 is a flowchart showing a flow of operation at the time of initial operation in the sensor device. 図11は、センサ装置における通信チャンネルの変更動作の流れを示すフローチャートである。FIG. 11 is a flowchart showing a flow of a communication channel changing operation in the sensor device. 図12は、センサ装置における省エネモードへの移行動作の詳細を説明するためのフローチャートである。FIG. 12 is a flowchart for explaining the details of the operation of shifting to the energy saving mode in the sensor device.

以下、添付図面を参照して、通信制御装置、通信制御プログラム、通信制御方法及び通信制御システムの実施の形態となる動物管理システムの説明をする。 Hereinafter, an animal management system that is an embodiment of a communication control device, a communication control program, a communication control method, and a communication control system will be described with reference to the attached drawings.

(システム構成)
図1は、実施の形態の動物管理システムのシステム構成図である。この図1に示すように、動物管理システムは、例えば牛等の産業動物に装着されるセンサ装置1(子機の一例)と、中継器(GW:ゲートウェイ:通信制御装置の一例)200と、サーバ装置300とを有している。
(System configuration)
FIG. 1 is a system configuration diagram of the animal management system of the embodiment. As shown in FIG. 1, the animal management system includes a sensor device 1 (an example of a slave unit) mounted on an industrial animal such as a cow, a repeater (GW: gateway: an example of a communication control device) 200, and the like. It has a server device 300.

センサ装置1は、メインマイクロコンピュータ(メインマイコン:無線通信制御部の一例)101、記憶部102、電源ボタン103、行動分析センサ104、無線通信モジュール105(無線通信部の一例)、報知部106及び電波強度検出部107を有している。 The sensor device 1 includes a main microcomputer (main microcomputer: an example of a wireless communication control unit) 101, a storage unit 102, a power button 103, a behavior analysis sensor 104, a wireless communication module 105 (an example of a wireless communication unit), a notification unit 106, and the like. It has a radio wave strength detection unit 107.

記憶部102は、例えばROM(Read Only Memory)、RAM(Random Access Memory)又はHDD(Hard Disk Drive)等を用いることができる。記憶部102には、通信制御プログラムが記憶されている。メインマイコン101は、この通信制御プログラムを実行することで、無線通信状態のインジケート動作を行う。また、メインマイコン101は、電源ボタン103の所定時間以上の長押し操作を、最初に検出した際に、「送信先検出モード」に移行して、中継器200との間の無線通信状態を検出する。なお、メインマイコン101は、電源ボタン103の所定時間以上の長押し操作を、次に検出した際に、「送信先検出モード」を終了し、通常の通信モードに復帰する。 As the storage unit 102, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), an HDD (Hard Disk Drive), or the like can be used. The communication control program is stored in the storage unit 102. By executing this communication control program, the main microcomputer 101 performs an indicating operation in a wireless communication state. Further, when the main microcomputer 101 first detects the operation of pressing and holding the power button 103 for a predetermined time or longer, it shifts to the "destination detection mode" and detects the wireless communication state with the repeater 200. To do. The next time the main microcomputer 101 detects a long press operation of the power button 103 for a predetermined time or longer, the main microcomputer 101 ends the "destination detection mode" and returns to the normal communication mode.

行動分析センサ104は、一例として3軸センサからの検出出力に基づいて、牛の上下左右及び前後方向の動作を検出する。無線通信モジュール105は、中継器200との間で、例えばLoRaWAN(登録商標)等のLPWA(Low Power Wide Area)と呼ばれる無線通信規格に準拠した通信を行う。なお、この例では、センサ装置1と中継器200との間で無線通信を行うこととして説明を進めるが、センサ装置1と中継器200との間で有線通信を行うようにしてもよい。 As an example, the behavior analysis sensor 104 detects the movement of the cow in the up / down / left / right and front / back directions based on the detection output from the three-axis sensor. The wireless communication module 105 communicates with the repeater 200 in accordance with a wireless communication standard called LPWA (Low Power Wide Area) such as LoRaWAN (registered trademark). In this example, the description will be made assuming that wireless communication is performed between the sensor device 1 and the repeater 200, but wired communication may be performed between the sensor device 1 and the repeater 200.

電波強度検出部107は、無線通信モジュール105で受信される中継器200からの電波の電波強度を検出し、メインマイコン101に通知する。メインマイコン101は、送信先検出モード時において、中継器200との間の通信状態を、報知部106を介して報知する。 The radio wave strength detection unit 107 detects the radio wave strength of the radio wave from the repeater 200 received by the wireless communication module 105 and notifies the main microcomputer 101 of it. In the transmission destination detection mode, the main microcomputer 101 notifies the communication state with the repeater 200 via the notification unit 106.

(中継器のハードウェア構成)
次に、中継器200は、メインマイクロコンピュータ(メインマイコン)201、無線通信モジュール202、通信モジュール203、及び、記憶部204を有している。メインマイコン201は、センサ装置1との間の無線通信制御、及び、サーバ装置300との間の有線通信制御(又は無線通信制御でもよい)を行う。無線通信モジュール202は、センサ装置1との間の無線通信を行う。通信モジュールは、例えばインターネット等の所定のネットワークを介してサーバ装置300との間で通信を行う。
(Hardware configuration of repeater)
Next, the repeater 200 has a main microcomputer (main microcomputer) 201, a wireless communication module 202, a communication module 203, and a storage unit 204. The main microcomputer 201 performs wireless communication control with the sensor device 1 and wired communication control (or wireless communication control may be possible) with the server device 300. The wireless communication module 202 performs wireless communication with the sensor device 1. The communication module communicates with the server device 300 via a predetermined network such as the Internet.

記憶部204には、中継器200用の通信制御プログラムが記憶されている。詳しくは後述するが、メインマイコン201は、この通信制御プログラムに基づいて動作することで、自機に対して、他の中継器とは異なる型番(パッケージ番号)を設定することで、複数の中継器200で管理する多数のセンサ装置1間における通信干渉を防止するようになっている。 The communication control program for the repeater 200 is stored in the storage unit 204. As will be described in detail later, the main microcomputer 201 operates based on this communication control program, and by setting a model number (package number) different from that of other repeaters for its own unit, a plurality of relays can be relayed. Communication interference between a large number of sensor devices 1 managed by the device 200 is prevented.

(サーバ装置のハードウェア構成)
サーバ装置300は、通信モジュール301、制御部302及び記憶部303を有している。記憶部303には、ユーザ情報、管理情報、及び、サーバ装置300用の通信制御プログラムが記憶されている。
(Hardware configuration of server device)
The server device 300 has a communication module 301, a control unit 302, and a storage unit 303. User information, management information, and a communication control program for the server device 300 are stored in the storage unit 303.

(ユーザ情報の例)
図2は、ユーザ情報の一例を示す図である。この図2に示すように、記憶部303には、ユーザ情報として、ユーザ名、ユーザが管理するセンサ装置1の数(センサ数)、ユーザが必要とする中継器200の数(必要G/W数)が記憶されている。また、記憶部303には、ユーザ情報として、各中継器200に対して割り当てている識別番号(割り当てG/WID)及び配布されているセンサ装置1の識別番号(配布センサID)が記憶されている。
(Example of user information)
FIG. 2 is a diagram showing an example of user information. As shown in FIG. 2, the storage unit 303 contains the user name, the number of sensor devices 1 managed by the user (the number of sensors), and the number of repeaters 200 required by the user (required G / W) as user information. Number) is remembered. Further, the storage unit 303 stores the identification number (assignment G / WID) assigned to each repeater 200 and the identification number (distribution sensor ID) of the distributed sensor device 1 as user information. There is.

すなわち、この図2の例の場合、ユーザAさんは、産業動物に装着した80台のセンサ装置1を有している例を示している。一例として、1台の中継器200で150台のセンサ装置1を管理可能である場合、Aさんが所有する80台のセンサ装置1の通信管理に必要な必要G/W数は、「1」であることを示している。この1台の中継器200には、「000000000000000」の割り当てG/WIDが割り当てられており、各センサ装置1に対して、「0×00000001〜0×00000050」の配布センサIDが配布されていることを示している。 That is, in the case of the example of FIG. 2, the user A shows an example of having 80 sensor devices 1 mounted on an industrial animal. As an example, when one repeater 200 can manage 150 sensor devices 1, the required number of G / Ws required for communication management of 80 sensor devices 1 owned by Mr. A is "1". It shows that. An allocation G / WID of "000000000000000000" is assigned to this one repeater 200, and a distribution sensor ID of "0x00000001 to 0x000000050" is distributed to each sensor device 1. It is shown that.

同様に、この図2の例の場合、ユーザBさんは、産業動物に装着した500台のセンサ装置1を有している例を示している。一例ではあるが、1台の中継器200で管理可能なセンサ装置1の台数は150台であるため、Aさんが所有する500台のセンサ装置1の通信管理に必要な必要G/W数は、「4」であることを示している(150台×4=600台以内)。この4台の中継器200には、「100000000000000〜100000000000003」の割り当てG/WIDが割り当てられている。また、各センサ装置1に対しては、「0×10000001〜0×100001F4」の配布センサIDが配布されていることを示している。 Similarly, in the case of the example of FIG. 2, the user B shows an example of having 500 sensor devices 1 mounted on an industrial animal. As an example, since the number of sensor devices 1 that can be managed by one repeater 200 is 150, the required number of G / Ws required for communication management of the 500 sensor devices 1 owned by Mr. A is , "4" (150 units x 4 = 600 units or less). The four repeaters 200 are assigned an allocation G / WID of "100000000000000 to 10000000000000003". Further, it is shown that the distribution sensor ID of "0 × 10000001 to 0 × 100001F4" is distributed to each sensor device 1.

(管理情報の例)
図3は、管理情報の一例を示す図である。この図3に示すように、記憶部303には、管理情報として、ユーザ名、ユーザが所有する中継器200に対して割り当てられた上述の割り当てG/WID、ユーザが所有する中継器200に対して割り当てられた型番(パッケージNo.)が記憶されている。また、記憶部303には、管理情報として、中継器200に対して接続可能なセンサ最大数(最大接続センサ情報)、各中継器200の応答フラグが記憶されている。
(Example of management information)
FIG. 3 is a diagram showing an example of management information. As shown in FIG. 3, the storage unit 303 contains management information such as a user name, the above-mentioned allocation G / WID assigned to the repeater 200 owned by the user, and the repeater 200 owned by the user. The model number (package No.) assigned to the above is stored. Further, the storage unit 303 stores the maximum number of sensors that can be connected to the repeater 200 (maximum connection sensor information) and the response flag of each repeater 200 as management information.

すなわち、この図3の例の場合、上述のユーザAさんが所有する1台の中継器200には、「000000000000000」の割り当てG/WIDが割り当てられており、「No.1」のパッケージNo.(型番)が設定されることを示している。また、ユーザAさんが所有する1台の中継器200には、「0x10010096」のG/W応答フラグが設定されていることを示している。なお、各中継器200の最大接続センサ数は、上述のように150台である。この「150台」の台数は、初期値であり、制御部302により、サーバ装置300上で変更可能となっている。 That is, in the case of the example of FIG. 3, the allocation G / WID of "000000000000000000" is assigned to the one repeater 200 owned by the user A described above, and the package No. 1 of "No. 1" is assigned. Indicates that (model number) is set. Further, it is shown that the G / W response flag of "0x10010096" is set in one repeater 200 owned by the user A. The maximum number of connected sensors for each repeater 200 is 150 as described above. The number of "150 units" is an initial value and can be changed on the server device 300 by the control unit 302.

同様に、この図3の例の場合、上述のユーザBさんが所有する4台の中継器200には、「100000000000000〜100000000000003」の割り当てG/WIDが割り当てられており、それぞれ「No.1〜No.4」のパッケージNo.(型番)が設定されることを示している。また、ユーザBさんが所有する4台の中継器200には、「0x100F0096」、「0x200F0096」、「0x300F0096」及び「0x400F0096」のG/W応答フラグが、それぞれ設定されていることを示している。 Similarly, in the case of the example of FIG. 3, the four repeaters 200 owned by the above-mentioned user B are assigned the allocation G / WID of "100000000000000 to 10000000000000003", and "No. 1 to 1 to" respectively. No. 4 ”package No. Indicates that (model number) is set. Further, it is shown that the G / W response flags of "0x100F00996", "0x200F00996", "0x300F00996" and "0x400F00996" are set in the four repeaters 200 owned by the user B, respectively. ..

(G/W応答フラグの例)
G/W応答フラグは、サーバ装置5から各中継器200に割り当てパッケージ番号及び接続可能なセンサ装置1の最大数等を通知する際に用いられる。また、G/W応答フラグは、定常時において、中継器200の数又はセンサ装置1の数が変更となった際に、制御部302により変更される。図4は、G/W応答フラグのフォーマットの一例を示す図である。この図4に示すように、G/W応答フラグは、4バイト(32ビット)の情報となっており、最下位ビット(LSB:00)〜15ビットで、接続可能なセンサ装置1の最大数等を示している。
(Example of G / W response flag)
The G / W response flag is used when the server device 5 notifies each repeater 200 of the assigned package number, the maximum number of connectable sensor devices 1, and the like. Further, the G / W response flag is changed by the control unit 302 when the number of repeaters 200 or the number of sensor devices 1 is changed in the steady state. FIG. 4 is a diagram showing an example of the format of the G / W response flag. As shown in FIG. 4, the G / W response flag is 4 bytes (32 bits) of information, and is the least significant bit (LSB: 00) to 15 bits, and is the maximum number of sensor devices 1 that can be connected. Etc. are shown.

また、16ビット目〜24ビット目で、中継器200に割り当てたパッケージ番号を示すようになっている。すなわち、16ビット目〜24ビット目は、それぞれパッケージNo.16〜パッケージNo.24に対応するビットとなっている。サーバ装置5の制御部302は、中継器200に割り当てたパッケージ番号に対応するビットを「1」とし、他のビットを「0」とする。 Further, the 16th to 24th bits indicate the package number assigned to the repeater 200. That is, the 16th to 24th bits are package numbers. 16-Package No. It is a bit corresponding to 24. The control unit 302 of the server device 5 sets the bit corresponding to the package number assigned to the repeater 200 to “1” and sets the other bits to “0”.

すなわち、制御部302は、中継器200に対してパッケージNo.1を割り当てた場合、パッケージNo.1に対応する16ビット目を「1」とし、17ビット目〜24ビット目をそれぞれ「0」とする。同様に、制御部302は、中継器200に対してパッケージNo.8を割り当てた場合、パッケージNo.8に対応する23ビット目を「1」とし、16ビット目〜22ビット目及び24ボット目をそれぞれ「0」とする。 That is, the control unit 302 refers to the repeater 200 with the package No. When 1 is assigned, the package No. The 16th bit corresponding to 1 is set to "1", and the 17th to 24th bits are set to "0" respectively. Similarly, the control unit 302 refers to the repeater 200 with the package No. When 8 is assigned, the package No. The 23rd bit corresponding to 8 is set to "1", and the 16th to 22nd bits and the 24th bit are set to "0", respectively.

また、図4に示すように、G/W応答フラグは、28ビット〜最上位ビット(MSB:31)の4ビットで、中継器200に割り当てたパッケージ番号を示すようになっている。なお、25ビット〜27ビットは、リザーブ(予約:0固定)となっている。 Further, as shown in FIG. 4, the G / W response flag is 4 bits from 28 bits to the most significant bit (MSB: 31), and indicates the package number assigned to the repeater 200. The 25 bits to 27 bits are reserved (reservation: fixed at 0).

(中継器の動作)
次に、中継器200の動作を説明する。中継器200のメインマイコン201は、記憶部204に記憶されている中継器200用の通信制御プログラムを実行することで、図5に示す各機能を実現する。すなわち、メインマイコン201は、通信制御プログラムを実行することで、電源制御部251、ID取得部252、POST(Power On Self Test:電源投入時自己診断テスト)実行部253、応答フラグ取得部254、センサ最大数取得部255、通信チャンネル割り当て部256及び起動制御部257として機能する。
(Operation of repeater)
Next, the operation of the repeater 200 will be described. The main microcomputer 201 of the repeater 200 realizes each function shown in FIG. 5 by executing the communication control program for the repeater 200 stored in the storage unit 204. That is, by executing the communication control program, the main microcomputer 201 has a power control unit 251 and an ID acquisition unit 252, a POST (Power On Self Test) execution unit 253, and a response flag acquisition unit 254. It functions as a maximum number of sensors acquisition unit 255, a communication channel allocation unit 256, and a start control unit 257.

なお、この例は、電源制御部251〜起動制御部257をソフトウェアで実現する例であるが、これらのうち、一部又は全部を、IC(Integrated Circuit)等のハードウェアで実現してもよい。また、電源制御部251〜起動制御部257は、通信制御プログラム単体で実現しても良いし、他のプログラムに処理の一部を実現させ、又は、他のプログラムを用いて間接的に実現させても良い。 In this example, the power supply control unit 251 to the start control unit 257 are realized by software, but some or all of them may be realized by hardware such as an IC (Integrated Circuit). .. Further, the power supply control unit 251 to the start control unit 257 may be realized by the communication control program alone, a part of the processing is realized by another program, or indirectly realized by using another program. You may.

また、中継器200用の通信制御プログラムは、インストール可能な形式または実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)などのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。また、中継器200用の通信制御プログラムは、CD−R、DVD(Digital Versatile Disk)、ブルーレイディスク(登録商標)、半導体メモリなどのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。また、中継器200用の通信制御プログラムは、インターネット等のネットワーク経由でインストールするかたちで提供してもよいし、機器内のROM等に予め組み込んで提供してもよい。 Further, the communication control program for the repeater 200 is provided by recording a file in an installable format or an executable format on a recording medium readable by a computer device such as a CD-ROM or a flexible disk (FD). May be good. Further, the communication control program for the repeater 200 may be provided by recording on a recording medium readable by a computer device such as a CD-R, a DVD (Digital Versatile Disk), a Blu-ray disc (registered trademark), or a semiconductor memory. Good. Further, the communication control program for the repeater 200 may be provided in the form of being installed via a network such as the Internet, or may be provided by being incorporated in a ROM or the like in the device in advance.

図6は、中継器200の初動時における動作の流れを示すフローチャートである。この図6のフローチャートにおいて、電源制御部241が、電源のオン操作を検出すると(ステップS1)、ID取得部252が、サーバ装置5から予め自機に対して割り当てられ、記憶部204に記憶しておいた割り当てG/WIDを取得する(ステップS2)。そして、POST実行部253が、電源投入時における自己診断テストを実行し(ステップS3)、ステップS4に処理が進む。 FIG. 6 is a flowchart showing an operation flow at the time of initial operation of the repeater 200. In the flowchart of FIG. 6, when the power supply control unit 241 detects the power-on operation (step S1), the ID acquisition unit 252 is assigned to the own machine in advance from the server device 5 and stored in the storage unit 204. Acquire the assigned G / WID (step S2). Then, the POST execution unit 253 executes the self-diagnosis test at the time of turning on the power (step S3), and the process proceeds to step S4.

ステップS4では、応答フラグ取得部254が、通信モジュール203を介してサーバ装置300に、自機の割り当てG/WIDを送信し、図4を用いて説明したG/W応答フラグの取得要求を行う。サーバ装置300は、中継器200から受信した割り当てG/WIDに対応するG/W応答フラグを、取得要求された中継器200に送信(通知)する。取得部の一例である応答フラグ取得部254は、サーバ装置300から送信された自機の割り当てG/WIDに対応するG/W応答フラグを取得する。 In step S4, the response flag acquisition unit 254 transmits the assigned G / WID of the own device to the server device 300 via the communication module 203, and requests the acquisition of the G / W response flag described with reference to FIG. .. The server device 300 transmits (notifies) the G / W response flag corresponding to the assigned G / WID received from the repeater 200 to the repeater 200 requested to be acquired. The response flag acquisition unit 254, which is an example of the acquisition unit, acquires the G / W response flag corresponding to the assigned G / WID of the own machine transmitted from the server device 300.

例えば、中継器200からサーバ装置300に送信された割り当てG/WIDが「200000000000001」であった場合、これは、図3に示すようにユーザCの2台目の中継器200のG/WIDであることを示す。このため、サーバ装置300は、このユーザCの2台目の中継器200に対して割り当てている「No.2」のパッケージ番号を示すG/W応答フラグを、中継器200に送信する。 For example, when the allocation G / WID transmitted from the repeater 200 to the server device 300 is "20000000000001", this is the G / WID of the second repeater 200 of the user C as shown in FIG. Indicates that there is. Therefore, the server device 300 transmits the G / W response flag indicating the package number of "No. 2" assigned to the second repeater 200 of the user C to the repeater 200.

次に、中継器200のセンサ最大数取得部255は、サーバ装置300から取得した図4に示すG/W応答フラグの最下位ビット〜15ビット目を参照することで、当該中継器200に接続可能なセンサ装置1の最大数を取得する(ステップS5)。この例の場合、図3に示すようにユーザCのG/W応答フラグが「0x20030096」であるため、接続可能なセンサ装置1の最大数は「150台」となる。なお、上述のように、各中継器200の最大接続センサ数は、サーバ装置300の制御部302が変更可能となっている。 Next, the sensor maximum number acquisition unit 255 of the repeater 200 connects to the repeater 200 by referring to the least significant bit to the 15th bit of the G / W response flag shown in FIG. 4 acquired from the server device 300. Acquire the maximum number of possible sensor devices 1 (step S5). In the case of this example, as shown in FIG. 3, since the G / W response flag of the user C is “0x2003006”, the maximum number of sensor devices 1 that can be connected is “150”. As described above, the maximum number of connected sensors of each repeater 200 can be changed by the control unit 302 of the server device 300.

次に、通信チャンネル割り当て部256が、G/W応答フラグの16ビット目〜24ビット目、及び、28ビット目〜最上位ビットから得られたパッケージ番号に基づいて、センサ装置1との間の無線通信に用いる通信チャンネルの振り直しを行う(ステップS6)。 Next, the communication channel allocation unit 256 communicates with the sensor device 1 based on the package number obtained from the 16th to 24th bits and the 28th to the most significant bit of the G / W response flag. The communication channel used for wireless communication is reassigned (step S6).

具体的には、各中継器200に対しては、例えば4つの通信チャンネルが割り当て可能となっている。また、「No.1」のパッケージ番号の場合、第1チャンネル、第10チャンネル、第19チャンネル、第28チャンネルを中継器200の通信チャンネルとして割り当てるようになっている。同様に、「No.2」のパッケージ番号の場合、第5チャンネル、第14チャンネル、第23チャンネル、第32チャンネルを通信チャンネルとして割り当て、「No.3」のパッケージ番号の場合、第7チャンネル、第16チャンネル、第25チャンネル、第34チャンネルを通信チャンネルとして割り当てるようになっている。 Specifically, for example, four communication channels can be assigned to each repeater 200. Further, in the case of the package number of "No. 1", the first channel, the tenth channel, the 19th channel, and the 28th channel are assigned as the communication channels of the repeater 200. Similarly, in the case of the package number of "No. 2", the 5th channel, the 14th channel, the 23rd channel, and the 32nd channel are assigned as communication channels, and in the case of the package number of "No. 3", the 7th channel, The 16th channel, the 25th channel, and the 34th channel are assigned as communication channels.

同様に、「No.4」のパッケージ番号の場合、第3チャンネル、第12チャンネル、第21チャンネル、第30チャンネルを通信チャンネルとして割り当て、「No.5」のパッケージ番号の場合、第9チャンネル、第18チャンネル、第27チャンネル、第36チャンネルを通信チャンネルとして割り当てるようになっている。 Similarly, in the case of the package number of "No. 4", the 3rd channel, the 12th channel, the 21st channel, and the 30th channel are assigned as communication channels, and in the case of the package number of "No. 5", the 9th channel, The 18th channel, the 27th channel, and the 36th channel are assigned as communication channels.

同様に、「No.6」のパッケージ番号の場合、第2チャンネル、第11チャンネル、第20チャンネル、第29チャンネルを通信チャンネルとして割り当て、「No.7」のパッケージ番号の場合、第4チャンネル、第13チャンネル、第22チャンネル、第31チャンネルを通信チャンネルとして割り当てるようになっている。 Similarly, in the case of the package number of "No. 6", the second channel, the eleventh channel, the twentieth channel, and the 29th channel are assigned as communication channels, and in the case of the package number of "No. 7", the fourth channel, The 13th channel, the 22nd channel, and the 31st channel are assigned as communication channels.

同様に、「No.8」のパッケージ番号の場合、第6チャンネル、第15チャンネル、第24チャンネル、第33チャンネルを通信チャンネルとして割り当て、「No.9」のパッケージ番号の場合、第8チャンネル、第17チャンネル、第26チャンネル、第35チャンネルを通信チャンネルとして割り当てるようになっている。なお、各パッケージ番号のパッケージはグループの一例である。 Similarly, in the case of the package number of "No. 8", the 6th channel, the 15th channel, the 24th channel, and the 33rd channel are assigned as communication channels, and in the case of the package number of "No. 9", the 8th channel, The 17th channel, the 26th channel, and the 35th channel are assigned as communication channels. The package of each package number is an example of a group.

このように、異なるパッケージ間においては、同じチャンネルの割り当てを行わないことで、パッケージ間の各チャンネルの干渉が防止可能となっている。さらに、パッケージ内の各チャンネル間は、例えば9チャンネル等のように、間のチャンネルを大きく空けてチャンネルの割り当てが行われている。これにより、パッケージ内の各チャンネル間の干渉を防止可能となっている。また、異なるパッケージ間においては、同じチャンネルの割り当てを行わず、かつ、各パッケージ間で少なくとも2チャンネルを空けてチャンネルの割り当てが行われている。これにより、さらに、パッケージ間の各チャンネルの干渉を防止可能となっている。ただし、2チャンネル空けていない場合にも、各チャンネルの干渉防止に対して一定の効果は奏する。 In this way, by not allocating the same channel between different packages, it is possible to prevent interference of each channel between the packages. Further, between the channels in the package, channels are assigned with a large space between the channels, for example, 9 channels. This makes it possible to prevent interference between each channel in the package. Further, the same channel is not assigned between different packages, and at least two channels are allocated between each package. This further makes it possible to prevent interference of each channel between packages. However, even when two channels are not open, a certain effect is exerted on the prevention of interference of each channel.

上述の例の場合、G/W応答フラグが「0x20030096」であるため、自機に割り当てられたパッケージ番号は「No.2」である。このため、通信チャンネル割り当て部256は、第5チャンネル、第14チャンネル、第23チャンネル、第32チャンネルを通信チャンネルとして割り当てる。 In the case of the above example, since the G / W response flag is "0x2003006", the package number assigned to the own machine is "No. 2". Therefore, the communication channel allocation unit 256 allocates the fifth channel, the 14th channel, the 23rd channel, and the 32nd channel as communication channels.

このように通信チャンネルの割り当てを行うと、起動制御部257が中継器200を再起動処理し(ステップS7)、定常処理へ移行する(ステップS8)。 When the communication channel is assigned in this way, the activation control unit 257 restarts the repeater 200 (step S7) and shifts to the steady processing (step S8).

(中継器の定常動作)
図7のフローチャートが、定常時(サーバ装置300との連携時)における中継器200の動作の流れである。図6のフローチャートのステップS7で再起動処理が行われることで、この図7のフローチャートの処理がスタートとなり、ステップS11から処理が実行される。すなわち、再起動処理により、図5に示したPOST実行部253が、電源投入時の自己診断テストを実行し(ステップS11)、応答フラグ取得部254が、割り当てG/WIDをサーバ装置300に送信し、サーバ装置300から図4に示した応答フラグを受信する(ステップS12)。
(Steady operation of repeater)
The flowchart of FIG. 7 shows the operation flow of the repeater 200 in the steady state (when cooperating with the server device 300). When the restart process is performed in step S7 of the flowchart of FIG. 6, the process of the flowchart of FIG. 7 starts, and the process is executed from step S11. That is, by the restart process, the POST execution unit 253 shown in FIG. 5 executes the self-diagnosis test at the time of turning on the power (step S11), and the response flag acquisition unit 254 transmits the assigned G / W ID to the server device 300. Then, the response flag shown in FIG. 4 is received from the server device 300 (step S12).

次に、例えばユーザAが所有する中継器200が、それまで1台であったが、新たに中継器200を導入することで、ユーザAが所有する中継器が計2台となる場合、又は、中継器200で管理しているセンサ装置1が、80台から130台になる場合がある。このように、所有する中継器200の数又は管理するセンサ装置1の数が変更となると、サーバ装置300は、この数の変更に対応するG/W応答フラグを形成して中継器200に送信する。 Next, for example, when the number of repeaters 200 owned by user A is one, but by introducing a new repeater 200, the number of repeaters owned by user A becomes two in total, or The number of sensor devices 1 managed by the repeater 200 may increase from 80 to 130. In this way, when the number of repeaters 200 owned or the number of sensor devices 1 to be managed is changed, the server device 300 forms a G / W response flag corresponding to the change in the number and transmits the G / W response flag to the repeater 200. To do.

応答フラグ取得部254は、前回取得したG/W応答フラグと、今回取得したG/W応答フラグとを比較することで、G/W応答フラグの変化の有無を検出する(ステップS13)。G/W応答フラグの変化が検出されない場合、G/W応答フラグを受信して前回のG/W応答フラグと比較する処理を繰り返し行う。 The response flag acquisition unit 254 detects whether or not the G / W response flag has changed by comparing the previously acquired G / W response flag with the G / W response flag acquired this time (step S13). If no change in the G / W response flag is detected, the process of receiving the G / W response flag and comparing it with the previous G / W response flag is repeated.

これに対して、G/W応答フラグの変化が検出された場合、中継器の数、又は、センサ装置1の数に基づいて、各通信チャンネルに対して均等にセンサ装置1を割り当てる、「割り当てセンサの均等化処理」を行う(ステップS14)。 On the other hand, when a change in the G / W response flag is detected, the sensor device 1 is evenly assigned to each communication channel based on the number of repeaters or the number of sensor devices 1, "assignment". "Sensor equalization processing" is performed (step S14).

(割り当てセンサの均等化処理)
次に、図3に示したユーザBの中継器200に基づいて、ステップS14における割り当てセンサの均等化処理を説明する。ユーザBの場合、4台の中継器200で500台のセンサ装置1を管理している。この500台のセンサ装置1には、図2に示したように「0x10000001〜0x100001F4」の配布センサIDが付されている。各センサ装置1は、起動時となると、中継器4の4つの通信チャンネルのうち、無作為に1つの通信チャンネルを選択し、中継器200から応答(ACK)があった通信チャンネルで定常状態に移行する。このため、ユーザBが所有する各中継器200の各通信チャンネルに対して、均等にセンサ装置1が関連付けされるわけではなく、偏りが発生する。この各通信チャンネルに対するセンサ装置1の関連付けの偏りの発生は、新規な中継器200の設置時又は新規なセンサ装置1の設置時に顕著となる。
(Equalization process of allocation sensor)
Next, the equalization process of the allocation sensor in step S14 will be described based on the repeater 200 of the user B shown in FIG. In the case of user B, four repeaters 200 manage 500 sensor devices 1. As shown in FIG. 2, the 500 sensor devices 1 are attached with distribution sensor IDs of "0x10000001 to 0x100001F4". At startup, each sensor device 1 randomly selects one of the four communication channels of the repeater 4, and enters a steady state with the communication channel that has been acknowledged by the repeater 200. Transition. Therefore, the sensor device 1 is not evenly associated with each communication channel of each repeater 200 owned by the user B, and a bias occurs. The bias of the association of the sensor device 1 with respect to each communication channel becomes remarkable when the new repeater 200 is installed or when the new sensor device 1 is installed.

図8は、割り当てセンサの均等化処理を模式的に示す図である。図8(a)は、各通信チャンネルに対するセンサ装置1の関連付けの偏りが発生した例を示している。この図8(a)の例は、ユーザBが所有する「100000000000000」の割り当てG/WIDの中継器200に対して、最大数が150台であるにも関わらず、300台のセンサ装置1が関連付けされた例を示している。 FIG. 8 is a diagram schematically showing the equalization process of the allocation sensor. FIG. 8A shows an example in which the association of the sensor device 1 with respect to each communication channel is biased. In the example of FIG. 8A, 300 sensor devices 1 are used for the repeater 200 of the assigned G / WID of “100000000000000” owned by the user B, although the maximum number is 150. Shows the associated example.

すなわち、各センサ装置1は、電源投入時に中継器200の通信チャンネルを無作為に選択して通信回線を確立した後は定常状態に移行し、以後、間欠的に中継器200との間で通信を行う。このため、通信回線が確立されてから次の通信までの間は、空きチャンネルとなるため、同じ通信チャンネルに、最大数以上(150台以上)のセンサ装置1が関連付けされる不都合を生ずることが多々ある。 That is, each sensor device 1 randomly selects the communication channel of the repeater 200 when the power is turned on, establishes a communication line, and then shifts to a steady state, and thereafter intermittently communicates with the repeater 200. I do. For this reason, since there are free channels between the establishment of the communication line and the next communication, there may be a problem that the maximum number or more (150 or more) of the sensor devices 1 are associated with the same communication channel. There are many.

図5に示す中継器200の通信チャンネル割り当て部256は、このように一つの通信チャンネルに過剰な台数のセンサ装置1が割り当てられていることを認識すると、他の中継器200との間で通信を行い、余剰となっている台数のセンサ装置1を、他の中継器200に割り当てる処理を行う。 When the communication channel allocation unit 256 of the repeater 200 shown in FIG. 5 recognizes that an excessive number of sensor devices 1 are assigned to one communication channel in this way, it communicates with another repeater 200. Is performed, and the surplus number of sensor devices 1 is assigned to another repeater 200.

すなわち、ユーザBの場合、図3に示したように「100000000000000」の割り当てG/WIDの中継器200の他、「100000000000001」、「100000000000002」、「100000000000003」の割り当てG/WIDの、3台の中継器200を有している。このため、「100000000000000」の割り当てG/WIDの中継器200は、「100000000000001」、「100000000000002」及び「100000000000003」の割り当てG/WIDの各中継器200と通信を行い、余剰となっている台数のセンサ装置1を、他の中継器200に割り当てる処理を行う。 That is, in the case of user B, as shown in FIG. 3, in addition to the repeater 200 of the assigned G / WID of "100000000000000", three units of the assigned G / WID of "100000000000000001", "100000000000000002", and "100000000000000003". It has a repeater 200. Therefore, the repeater 200 of the assigned G / WID of "100000000000000" communicates with each of the repeaters 200 of the assigned G / WID of "100000000000000001", "100000000000000002", and "100000000000000003", and the number of surplus repeaters is increased. A process of allocating the sensor device 1 to another repeater 200 is performed.

図8(a)の例の場合、「100000000000000」の割り当てG/WIDの中継器200に対して150台の余剰のセンサ装置1が割り当てられているため、「100000000000000」の割り当てG/WIDの中継器200は、図8(b)に示すように、他の中継器200のうち、割り当てセンサ数に余裕のある他の中継器200に対して、余剰150台を均等に振り分ける。 In the case of the example of FIG. 8A, since 150 surplus sensor devices 1 are assigned to the repeater 200 of the assigned G / WID of “100000000000000”, the relay of the assigned G / WID of “100000000000000” As shown in FIG. 8B, the device 200 evenly distributes the surplus 150 units to the other repeater 200 having a sufficient number of allocated sensors among the other repeaters 200.

図8(a)の例の場合、現在、それぞれ50台のセンサ装置1が割り当てられている「100000000000002」及び「100000000000003」の割り当てG/WIDの中継器200の割り当てセンサ数に余裕がある。このため、通信チャンネル割り当て部256は、「100000000000002」の割り当てG/WIDの中継器200に対して、余剰150台のうち、75台のセンサ装置1を振り分け、また、「100000000000003」の割り当てG/WIDの中継器200に対して、残り75台のセンサ装置1を振り分ける。 In the case of the example of FIG. 8A, there is a margin in the number of assigned sensors of the G / W ID repeater 200 of "100000000000000002" and "100000000000000003" to which 50 sensor devices 1 are currently assigned. Therefore, the communication channel allocation unit 256 distributes 75 sensor devices 1 out of the surplus 150 to the repeater 200 of the allocation G / WID of "100000000000000002", and allocates G / of "1000000000000003". The remaining 75 sensor devices 1 are distributed to the WID repeater 200.

これにより、図8(b)に示すように、「100000000000000」の割り当てG/WIDの中継器200は150台、「100000000000001」の割り当てG/WIDの中継器200は100台、「100000000000002」の割り当てG/WIDの中継器200は125台、「100000000000003」の割り当てG/WIDの中継器200は125台のセンサ装置1が割り当てられることとなる。 As a result, as shown in FIG. 8B, 150 units of the “100000000000000” allocation G / WID repeater 200 and 100 units of the “100000000000000001” allocation G / WID repeater 200 are assigned, and “100000000000000002” is allocated. 125 G / WID repeaters 200 are assigned, and 125 sensor devices 1 are assigned to the G / WID repeater 200.

このように余剰台数を管理している中継器200と、他の中継器200との間における余剰台数の振り分け処理を行うことで、余剰台数を管理している中継器200の余剰分となるセンサ装置1を、他の中継器200で通信管理する準備が整う。 By distributing the surplus number between the repeater 200 that manages the surplus number and the other repeater 200 in this way, the sensor that becomes the surplus portion of the repeater 200 that manages the surplus number. The device 1 is ready for communication management by another repeater 200.

次に、余剰台数を管理している中継器200の通信チャンネル割り当て部256は、余剰となっている各センサ装置1と通信を行い、余剰となっている各センサ装置1に設定されている通信チャンネルを、振り分けを行った他の中継器200で管理する通信チャンネルに変更制御する。 Next, the communication channel allocation unit 256 of the repeater 200 that manages the surplus number communicates with each surplus sensor device 1, and the communication set in each surplus sensor device 1. The channel is changed and controlled to a communication channel managed by another repeater 200 that has been distributed.

例えば、図8(c)に示すように、「100000000000000」の割り当てG/WIDの中継器200に設定されている型番(パッケージ番号)が「No.1」であり、第1チャンネルに100台、第10チャンネルに25台、第19チャンネルに50台、第28チャンネルに125台のセンサ装置1が割り当てられているとする。この割当により、100台が割り当てられている第1チャンネルの負荷が大きく、25台が割り当てられている第10チャンネルの負荷が小さく、50台が割り当てられている第19チャンネルの負荷が中程度であり、125台が割り当てられている第28チャンネルの負荷が大きくなる。 For example, as shown in FIG. 8C, the model number (package number) set in the repeater 200 of the assigned G / WID of "100000000000000" is "No. 1", and 100 units are set in the first channel. It is assumed that 25 sensor devices 1 are assigned to the 10th channel, 50 sensors are assigned to the 19th channel, and 125 sensor devices 1 are assigned to the 28th channel. Due to this allocation, the load on the 1st channel to which 100 units are assigned is large, the load on the 10th channel to which 25 units are assigned is small, and the load on the 19th channel to which 50 units are assigned is medium. There is, and the load of the 28th channel to which 125 units are assigned becomes large.

このため、「100000000000000」の割り当てG/WIDの中継器200の通信チャンネル割り当て部256は、自機で管理する150台のセンサ装置1と通信を行い、各通信チャンネルに割り当てられるセンサ装置1の数が均等となるように振り分け制御を行う。具体的には、自機で管理する150台のセンサ装置1を、各通信チャンネルに対して均等に割り当てようとすると、2つの通信チャンネルに対して38台、他2つの通信チャンネルに対して、それぞれ37台を割り当てることとなる。 Therefore, the communication channel allocation unit 256 of the repeater 200 of the allocation G / WID of "100000000000000" communicates with 150 sensor devices 1 managed by the own device, and the number of sensor devices 1 assigned to each communication channel. Distribution control is performed so that Specifically, when trying to evenly allocate 150 sensor devices 1 managed by the own device to each communication channel, 38 units are assigned to the two communication channels, and 38 units are assigned to the other two communication channels. 37 units will be assigned to each.

このため、通信チャンネル割り当て部256は、図8(d)に示すように、第1チャンネル及び第10チャンネルに対してそれぞれ38台のセンサ装置1を割り当て、第19チャンネル及び第28チャンネルに対してそれぞれ37台のセンサ装置1を割り当てるように、自機で管理する150台のセンサ装置1と通信を行い、各センサ装置1が通信で用いる通信チャンネルを変更制御する。これにより、各通信チャンネルの通信負荷を大幅に低減することができる。 Therefore, as shown in FIG. 8D, the communication channel allocation unit 256 allocates 38 sensor devices 1 to the 1st channel and the 10th channel, respectively, and allocates 38 sensor devices 1 to the 19th channel and the 28th channel, respectively. Communication is performed with 150 sensor devices 1 managed by the own device so that 37 sensor devices 1 are assigned to each, and the communication channel used by each sensor device 1 for communication is changed and controlled. As a result, the communication load of each communication channel can be significantly reduced.

次に、通信チャンネル割り当て部256は、余剰150台のセンサ装置1と通信を行い、75台のセンサ装置1の通信チャンネルを、「100000000000002」の割り当てG/WIDの中継器200で用いている通信チャンネルに変更制御する。また、通信チャンネル割り当て部256は、余剰分のうち、残り75台のセンサ装置1の通信チャンネルを、「100000000000003」の割り当てG/WIDの中継器200で用いている通信チャンネルに変更制御する。 Next, the communication channel allocation unit 256 communicates with the surplus 150 sensor devices 1, and uses the communication channels of the 75 sensor devices 1 in the repeater 200 of the assigned G / WID of "100000000000000002". Change control to channel. Further, the communication channel allocation unit 256 changes and controls the communication channels of the remaining 75 sensor devices 1 among the surplus to the communication channels used in the repeater 200 of the allocation G / WID of "100000000000000003".

「100000000000002」の割り当てG/WIDの中継器200に対しては、図3に示したように「No.3」のパッケージ番号が割り当てられている。上述のように、「No.3」のパッケージ番号が割り当てられた中継器200は、第7チャンネル、第16チャンネル、第25チャンネル及び第34チャンネルが、通信チャンネルとして割り当てられている。同様に、「100000000000003」の割り当てG/WIDの中継器200に対しては、図3に示したように「No.4」のパッケージ番号が割り当てられている。上述のように、「No.4」のパッケージ番号が割り当てられた中継器200は、第3チャンネル、第12チャンネル、第21チャンネル及び第30チャンネルが、通信チャンネルとして割り当てられている。 Assignment of "100000000000000002" A package number of "No. 3" is assigned to the repeater 200 of the G / W ID as shown in FIG. As described above, in the repeater 200 to which the package number of "No. 3" is assigned, the 7th channel, the 16th channel, the 25th channel and the 34th channel are assigned as communication channels. Similarly, the package number of "No. 4" is assigned to the repeater 200 of the assigned G / WID of "100000000000000003" as shown in FIG. As described above, in the repeater 200 to which the package number of "No. 4" is assigned, the third channel, the twelfth channel, the twenty-first channel and the thirtieth channel are assigned as communication channels.

このため、「100000000000000」の割り当てG/WIDの中継器200の通信チャンネル割り当て部256は、上述のように他の中継器200に対して振り分け処理を行った150台のセンサ装置1(余剰分となっていたセンサ装置1)と通信を行う。そして、余剰150台のうち、75台のセンサ装置1が使用する通信チャンネルを、図8(e)に示すように「No.3」のパッケージ番号の中継器200に合わせて、第7チャンネルを19台、第16チャンネルを19台、第25チャンネルを19台及び第34チャンネルを18台等のように、略均等となるように変更制御する。 Therefore, the communication channel allocation unit 256 of the repeater 200 of the allocation G / WID of "100000000000000" has 150 sensor devices 1 (surplus) that have been distributed to the other repeaters 200 as described above. Communicates with the sensor device 1). Then, out of the surplus 150 units, the communication channels used by the 75 sensor devices 1 are matched with the repeater 200 of the package number of "No. 3" as shown in FIG. 8 (e), and the seventh channel is set. 19 units, 16th channel is 19 units, 25th channel is 19 units, 34th channel is 18 units, and so on, so that they are changed and controlled so as to be substantially equal.

同様に、通信チャンネル割り当て部256は、残り75台のセンサ装置1が使用する通信チャンネルを、図8(e)に示すように「No.4」のパッケージ番号の中継器200に合わせて、第3チャンネルを19台、第12チャンネルを19台、第21チャンネルを19台及び第30チャンネルを18台等のように、略均等となるように変更制御する。 Similarly, the communication channel allocation unit 256 sets the communication channels used by the remaining 75 sensor devices 1 to match the repeater 200 having the package number of "No. 4" as shown in FIG. 8 (e). The 3 channels are 19 units, the 12th channel is 19 units, the 21st channel is 19 units, the 30th channel is 18 units, and so on.

図8(f)は、各中継器200の各通信チャンネルに。略均等に割り当てられた通信チャンネルを示している。この図8(f)からわかるように、中継器200が通信管理するセンサ装置1の余剰分を、他の中継器200に振り分ける。また、各中継器200において、各通信チャンネルを用いるセンサ装置1の数を、略均等に割り当てる。これにより、中継器200の通信負担を大幅に軽減できると共に、通信干渉を極力防止できる。 FIG. 8 (f) shows each communication channel of each repeater 200. Indicates communication channels that are allocated approximately evenly. As can be seen from FIG. 8 (f), the surplus of the sensor device 1 whose communication is managed by the repeater 200 is distributed to the other repeaters 200. Further, in each repeater 200, the number of sensor devices 1 using each communication channel is allocated substantially evenly. As a result, the communication load of the repeater 200 can be significantly reduced, and communication interference can be prevented as much as possible.

(センサ装置の動作)
次に、各センサ装置1の動作を説明する。図1に示すセンサ装置1のメインマイコン101は、記憶部102に記憶されている通信制御プログラムを実行することで、図9に示す通信制御部151、パッケージ番号決定部152、モジュール番号決定部153、モード制御部154、チャンネル番号判別部155及びチャンネル設定部156の各機能を実現する。
(Operation of sensor device)
Next, the operation of each sensor device 1 will be described. The main microcomputer 101 of the sensor device 1 shown in FIG. 1 executes the communication control program stored in the storage unit 102 to execute the communication control unit 151, the package number determination unit 152, and the module number determination unit 153 shown in FIG. , Mode control unit 154, channel number determination unit 155, and channel setting unit 156 are realized.

なお、この例は、通信制御部151〜チャンネル設定部156をソフトウェアで実現する例であるが、これらのうち、一部又は全部を、IC(Integrated Circuit)等のハードウェアで実現してもよい。また、通信制御部151〜チャンネル設定部156が実現する機能は、通信制御プログラム単体で実現しても良いし、他のプログラムに処理の一部を実行させる、又は他のプログラムを用いて間接的に処理を実行させても良い。 In this example, the communication control unit 151 to the channel setting unit 156 are realized by software, but some or all of them may be realized by hardware such as an IC (Integrated Circuit). .. Further, the functions realized by the communication control units 151 to the channel setting unit 156 may be realized by the communication control program alone, let another program execute a part of the processing, or indirectly by using another program. May execute the process.

また、通信制御プログラムは、インストール可能な形式または実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)などのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。また、通信制御プログラムは、CD−R、DVD(Digital Versatile Disk)、ブルーレイディスク(登録商標)、半導体メモリなどのコンピュータ装置で読み取り可能な記録媒体に記録して提供してもよい。また、通信制御プログラムは、インターネット等のネットワーク経由でインストールするかたちで提供してもよいし、機器内のROM等に予め組み込んで提供してもよい。 Further, the communication control program may be provided by recording a file in an installable format or an executable format on a recording medium readable by a computer device such as a CD-ROM or a flexible disk (FD). Further, the communication control program may be provided by recording on a recording medium readable by a computer device such as a CD-R, a DVD (Digital Versatile Disk), a Blu-ray disc (registered trademark), or a semiconductor memory. Further, the communication control program may be provided in the form of being installed via a network such as the Internet, or may be provided by being incorporated in advance in a ROM or the like in the device.

図10は、上述のユーザBが所有する計4台のセンサ装置1のうちの1台のセンサ装置1における初動時の動作の流れを示すフローチャートである。この図10のフローチャートは、センサ装置1の電源がオン操作されることでスタートとなり、ステップS21から処理を開始する。 FIG. 10 is a flowchart showing the flow of operation at the time of initial operation in one of the four sensor devices 1 owned by the user B described above. The flowchart of FIG. 10 starts when the power of the sensor device 1 is turned on, and the process starts from step S21.

すなわち、センサ装置1の電源がオン操作されると、図9に示す通信制御部151は、上述の4つの通信チャンネルのうち、1つの通信チャンネルを固定的に用いてダミーデータを中継器200に送信する(ステップS21)。次に、パッケージ番号決定部152が、「No.1〜No.9」のパッケージ番号のうち、過去に決定したことの無いパッケージ番号をランダムに決定する(ステップS22)。また、モジュール番号決定部153は、Bさんが計4台の中継器200を有しているため、1〜4のモジュール番号のうち、1つのモジュール番号をランダムに決定する(ステップS23)。 That is, when the power of the sensor device 1 is turned on, the communication control unit 151 shown in FIG. 9 fixedly uses one of the above four communication channels to send dummy data to the repeater 200. Transmit (step S21). Next, the package number determination unit 152 randomly determines a package number that has not been determined in the past among the package numbers of "No. 1 to No. 9" (step S22). Further, since Mr. B has a total of four repeaters 200, the module number determination unit 153 randomly determines one of the module numbers 1 to 4 (step S23).

次に、チャンネル設定部156が、「チャンネル番号=((モジュール番号−1)×9)+パッケージ番号」の演算を行うことで、チャンネル番号を設定する(ステップS24)。通信制御部151は、この設定されたチャンネル番号の通信チャンネルを用いて、中継器200に対してダミーデータを送信し(ステップS25)、中継器200からの返信(ACK)の有無を判別する(ステップS26)。モード制御部154は、中継器200から返信(ACK)を受信した場合(ステップS26:Yes)、センサ装置1の動作モードを、定常処理を行う動作モードに移行制御する(ステップS27)。 Next, the channel setting unit 156 sets the channel number by performing the calculation of “channel number = ((module number-1) × 9) + package number” (step S24). The communication control unit 151 transmits dummy data to the repeater 200 using the communication channel of the set channel number (step S25), and determines whether or not there is a reply (ACK) from the repeater 200 (step S25). Step S26). When the mode control unit 154 receives a reply (ACK) from the repeater 200 (step S26: Yes), the mode control unit 154 shifts and controls the operation mode of the sensor device 1 to the operation mode for performing steady processing (step S27).

これに対して、中継器200からの応答(ACK)を受信しない場合(ステップS26:No)、通信制御部151は、「No.1〜No.9」のパッケージ番号のうち、全てのパッケージ番号で、ステップS22〜ステップS26の処理を繰り返し行ったか否か(パッケージ番号を使い果たしたか否か)を判別する(ステップS28)。 On the other hand, when the response (ACK) from the repeater 200 is not received (step S26: No), the communication control unit 151 has all the package numbers among the package numbers of "No. 1 to No. 9". Then, it is determined whether or not the processes of steps S22 to S26 have been repeated (whether or not the package number has been exhausted) (step S28).

全てのパッケージ番号で、ステップS22〜ステップS26の処理を行っていない場合、すなわち、まだ割り当てていないパッケージ番号が存在する場合(ステップS28:No)、ステップS22に処理が戻り、パッケージ番号決定部152は、まだ割り当てていないパッケージ番号を決定し、上述のステップS23に処理が進む。 If the processes of steps S22 to S26 have not been performed for all the package numbers, that is, if there is a package number that has not been assigned yet (step S28: No), the process returns to step S22, and the package number determination unit 152 Determines a package number that has not yet been assigned, and proceeds to step S23 described above.

これに対して、全てのパッケージ番号で、ステップS22〜ステップS26の処理が行われた場合(ステップS28:Yes)、モード制御部154は、消費するエネルギーを節約するモードである省エネモードに、センサ装置1の動作モードを移行制御する(ステップS29)。この省エネモードは、後述する。 On the other hand, when the processes of steps S22 to S26 are performed for all the package numbers (step S28: Yes), the mode control unit 154 sets the sensor in the energy saving mode, which is a mode for saving energy consumption. The operation mode of the device 1 is transition-controlled (step S29). This energy saving mode will be described later.

(センサ装置における通信チャンネルの変更動作)
図11は、センサ装置1における通信チャンネルの変更動作の流れを示すフローチャートである。図8を用いて説明したが、中継器200は、余剰分となるセンサ装置1の通信チャンネルの振り分けを行うと、そのセンサ装置1が通信で用いる通信チャンネルを示す情報を、応答(ACK)に含めて通知する。すなわち、図11のフローチャートにおいて、通信制御部151が中継器200にECフォーマットを送信することで(ステップS31)、中継器200からの応答(ACK)を受信する(ステップS32)。
(Communication channel change operation in the sensor device)
FIG. 11 is a flowchart showing a flow of a communication channel changing operation in the sensor device 1. As described with reference to FIG. 8, when the repeater 200 distributes the communication channel of the sensor device 1 which is the surplus, the repeater 200 sends information indicating the communication channel used by the sensor device 1 for communication as an acknowledgment (ACK). Notify including. That is, in the flowchart of FIG. 11, the communication control unit 151 transmits the EC format to the repeater 200 (step S31), and receives the response (ACK) from the repeater 200 (step S32).

図9に示すチャンネル番号判別部155は、前回受信した中継器200からの応答(ACK)に含まれる通信チャンネルのチャンネル番号と、今回受信した応答(ACK)に含まれるチャンネル番号とを比較する(ステップS33)。この比較により、両者が同じチャンネル番号であると判別した場合(ステップS33:No)、ステップS31に処理が戻り、次回受信した応答(ACK)に基づいて、上述の比較動作を行う。 The channel number determination unit 155 shown in FIG. 9 compares the channel number of the communication channel included in the response (ACK) from the repeater 200 received last time with the channel number included in the response (ACK) received this time ( Step S33). When it is determined by this comparison that both have the same channel number (step S33: No), the process returns to step S31, and the above-mentioned comparison operation is performed based on the next received response (ACK).

これに対して、上述の比較処理により、両者が同じチャンネル番号ではないと判別した場合(ステップS33:Yes)、モード制御部154は、センサ装置1の通信リセット動作(LoRa(登録商標)モジュールリセット)を行う(ステップS34)。そして、チャンネル設定部156は、今回受信した応答(ACK)に含まれているチャンネル番号に、通信チャンネルを設定する(ステップS35)。これにより、各センサ装置1に割り当てている通信チャネルの変更処理が完了する。通信チャンネルの設定が完了すると、モード制御部154は、再度、中継器200との通信を行うまでの間、センサ装置1(LoRa(登録商標)モジュール)をスリープモードに移行制御する(ステップS36)。 On the other hand, when it is determined by the above-mentioned comparison process that they do not have the same channel number (step S33: Yes), the mode control unit 154 resets the communication of the sensor device 1 (LoRa (registered trademark) module reset). ) (Step S34). Then, the channel setting unit 156 sets the communication channel to the channel number included in the response (ACK) received this time (step S35). As a result, the process of changing the communication channel assigned to each sensor device 1 is completed. When the setting of the communication channel is completed, the mode control unit 154 controls the sensor device 1 (LoRa (registered trademark) module) to shift to the sleep mode until the communication with the repeater 200 is performed again (step S36). ..

(省エネモードへの移行動作の詳細)
次に、図12のフローチャートを用いて、図10のフローチャートのステップS29で説明した省エネモードへの移行動作の詳細を説明する。この図12のフローチャートは、センサ装置1の電源がオン操作されることでスタートとなり、ステップS31から処理を実行する。
(Details of transition operation to energy saving mode)
Next, using the flowchart of FIG. 12, the details of the operation for shifting to the energy saving mode described in step S29 of the flowchart of FIG. 10 will be described. The flowchart of FIG. 12 starts when the power of the sensor device 1 is turned on, and the process is executed from step S31.

すなわち、電源がオン操作されると、チャンネル番号設定部156等により、図10のフローチャートのステップS21〜ステップS26及びステップS28で説明したチャンネル探索処理が行われる(ステップS31)。このチャンネル探索処理で暫定的に決定した通信チャンネルで中継器200と通信を行ったが、通信を行うことができなかった場合、チャンネル設定部156が、電源のオン操作をトリガとしたチャンネル探索処理を、例えば3回等の所定回数分、実行したか否かを判別する(ステップS39、ステップS40)。 That is, when the power is turned on, the channel number setting unit 156 or the like performs the channel search process described in steps S21 to S26 and step S28 of the flowchart of FIG. 10 (step S31). When communication was performed with the repeater 200 using the communication channel tentatively determined in this channel search process, but communication could not be performed, the channel setting unit 156 performs the channel search process triggered by the power-on operation. Is determined for a predetermined number of times, for example, three times (step S39, step S40).

チャンネル設定部156により、電源のオン操作をトリガとしたチャンネル探索処理が所定回数分、実行されていないと判別された場合(ステップS40:No)、ステップS31に動作が戻り、図10のフローチャートのステップS21〜ステップS26及びステップS28で説明したチャンネル探索処理が繰り返し行われる。 When the channel setting unit 156 determines that the channel search process triggered by the power-on operation has not been executed for a predetermined number of times (step S40: No), the operation returns to step S31, and the flowchart of FIG. 10 shows. The channel search process described in steps S21 to S26 and step S28 is repeated.

これに対して、電源のオン操作をトリガとしたチャンネル探索処理を所定回数分、実行しても、中継器200と通信できない場合(ステップS40:Yes)、センサ装置1の通信系等が故障の可能性があるため、モード制御部154は、センサ装置1の動作モードを、一旦、通信を停止すると共に主要部に対する電源供給を停止する仮死モードへと移行制御する(ステップS41)。モード制御部154は、センサ装置1を仮死モードへ移行させてから経過する時間を、タイマでカウントされる時刻情報に基づいて計時しており、例えば6時間等の所定時間が経過したか否かを判別する(ステップS42)。 On the other hand, if communication with the repeater 200 cannot be performed even if the channel search process triggered by the power-on operation is executed a predetermined number of times (step S40: Yes), the communication system of the sensor device 1 or the like is out of order. Since there is a possibility, the mode control unit 154 controls the operation mode of the sensor device 1 to shift to the asphyxia mode in which the communication is temporarily stopped and the power supply to the main unit is stopped (step S41). The mode control unit 154 measures the time elapsed since the sensor device 1 shifts to the asphyxia mode based on the time information counted by the timer, and determines whether or not a predetermined time such as 6 hours has elapsed. (Step S42).

6時間等の所定時間経過すると(ステップS42:Yes)、モード制御部154は、通信チャンネル等を「リセット」してセンサ装置1を動作復帰させる。通信制御部151等は、この復帰後に、再度、ステップS31のチャンネル探索処理を実行する。 After a predetermined time such as 6 hours has elapsed (step S42: Yes), the mode control unit 154 "reset" the communication channel or the like to restore the operation of the sensor device 1. After this return, the communication control unit 151 and the like execute the channel search process of step S31 again.

ここで、この「リセット」によるチャンネル探索処理は、電源のオン操作に起因するチャンネル探索処理ではない。このため、「リセット」によるチャンネル探索処理を行っても、中継器200と通信ができない場合(ステップS39:No)、上述の3回等のリトライを行うことなく、モード制御部154は、センサ装置1の動作モードを、仮死モードへと移行制御する(ステップS41)。 Here, the channel search process by this "reset" is not the channel search process caused by the power-on operation. Therefore, if communication with the repeater 200 is not possible even if the channel search process by "reset" is performed (step S39: No), the mode control unit 154 is a sensor device without performing the above-mentioned three retries or the like. The operation mode of 1 is controlled to shift to the asphyxia mode (step S41).

なお、モード制御部154は、6時間経過後に、センサ装置1を仮死モードから復帰させる。これにより、再度、「リセット」によるチャンネル探索処理が行われるが、これは、電源のオン操作に起因するチャンネル探索処理ではないため、中継器200と通信できない場合、再度、仮死モードに移行制御される。 The mode control unit 154 returns the sensor device 1 from the asphyxia mode after 6 hours have elapsed. As a result, the channel search process by "reset" is performed again, but since this is not the channel search process caused by the power-on operation, if communication with the repeater 200 is not possible, the transition to the asphyxia mode is controlled again. To.

一方、ステップS31のチャンネル探索処理で暫定的に決定された通信チャンネルで、中継器200との間の通信を行うと、チャンネル設定部156は、中継器200が推奨する通信チャンネルである推奨チャンネルを取得し、取得した推奨チャンネルをセンサ装置1に設定する(ステップS33)。モード制御部154は、この推奨チャンネル設定後に、センサ装置1のモードを通常モードへ移行制御する(ステップS34)。通常モードへ移行すると、通信制御部151は、例えば5分に1回等のように間欠的に、中継器200に対して、産業動物の状態を示すデータを送信する(ステップS35)。 On the other hand, when the communication channel tentatively determined in the channel search process of step S31 is used for communication with the repeater 200, the channel setting unit 156 selects the recommended channel which is the communication channel recommended by the repeater 200. Acquired and set the acquired recommended channel in the sensor device 1 (step S33). After setting the recommended channel, the mode control unit 154 controls the mode of the sensor device 1 to shift to the normal mode (step S34). When the mode shifts to the normal mode, the communication control unit 151 intermittently transmits data indicating the state of the industrial animal to the repeater 200, for example, once every 5 minutes (step S35).

ここで、偶発的に、中継器200との間の通信が可能となる場合がある。この場合、ステップS34において、センサ装置1は通常モードに移行するのであるが、中継器200との間の通信は偶発的であったため、通常モードに移行後の中継器200との間のデータ送信は、通信不可状態(通信NG)が続くこととなる。 Here, it may happen that communication with the repeater 200 becomes possible. In this case, in step S34, the sensor device 1 shifts to the normal mode, but since the communication with the repeater 200 was accidental, data transmission with the repeater 200 after shifting to the normal mode Will continue to be in a communication disabled state (communication NG).

中継器200に対するデータ送信のリトライ回数は、例えば10回等の所定回数となっている。通信制御部151は、中継器200に対するデータ送信を5分置きに10回繰り返す。10回のリトライは、センサ装置1の蓄電池に蓄電されている電力を消費する。このため、モード制御部154は、中継器200に対してデータ送信できずに、例えば1時間の経過を計時すると、センサ装置1のモードを「エコアックモード(Eco Ackモード)」に移行制御する(ステップS36)。 The number of retries for data transmission to the repeater 200 is a predetermined number such as 10 times. The communication control unit 151 repeats data transmission to the repeater 200 10 times every 5 minutes. The 10 retries consume the electric power stored in the storage battery of the sensor device 1. Therefore, the mode control unit 154 cannot transmit data to the repeater 200, and when, for example, the passage of one hour is timed, the mode control unit 154 shifts and controls the mode of the sensor device 1 to the "eco-ac mode". (Step S36).

このエコアックモードは、5分に1回、中継器200に対してデータ送信を試みるがリトライは行わないモードである。通信制御部151は、この「エコアックモード」に移行してから例えば5分に1回のみ、中継器200にデータ送信を試みる。この通信制御により、中継器200に対してデータ送信できた場合(ステップS37:OK応答)、モード制御部154は、センサ装置1のモードを通常モードに移行制御する。 This eco-ac mode is a mode in which data transmission is attempted to the repeater 200 once every 5 minutes, but no retry is performed. The communication control unit 151 attempts to transmit data to the repeater 200 only once, for example, once every 5 minutes after shifting to this "eco-ac mode". When data can be transmitted to the repeater 200 by this communication control (step S37: OK response), the mode control unit 154 controls the mode of the sensor device 1 to shift to the normal mode.

これに対して、「エコアックモード」に移行してから、中継器200に対するデータ送信が行えない状態から例えば6時間が経過すると(ステップS38:Yes)、モード制御部154は、上述のように通信チャンネル等を「リセット」してセンサ装置1を動作復帰させる。通信制御部151等は、この復帰後に、再度、ステップS31のチャンネル探索処理を実行する。そして、中継器200と通信ができない場合、電源のオン操作に起因するチャンネル探索処理ではないため、再度、仮死モードに移行制御されることは、上述のとおりである。 On the other hand, when, for example, 6 hours have passed from the state in which data transmission to the repeater 200 cannot be performed after the transition to the "eco-ac mode" (step S38: Yes), the mode control unit 154 will perform as described above. The communication channel and the like are "reset" to restore the operation of the sensor device 1. After this return, the communication control unit 151 and the like execute the channel search process of step S31 again. Then, when communication with the repeater 200 is not possible, since the channel search process is not caused by the power-on operation, the transition control to the asphyxia mode is performed again, as described above.

(実施の形態の効果)
以上の説明から明らかなように、実施の形態の動物管理システムは、サーバ装置300が、ユーザが所有している各中継器200に対して、それぞれ使用する通信チャンネルが異なる型番(パッケージ番号)を、通信により設定する。これにより、ユーザが所有している複数の中継器200が使用する通信チャンネルを、それぞれ異なる通信チャンネルとすることができ、簡単に、複数の中継器200の間の通信干渉を防止することができる。また、各中継器200に対して所望の型番(パッケージ番号)を自由に設定できるため、中継器200のメーカ側は、それぞれ通信チャンネルが異なる中継器200を製造し、出荷及び在庫管理を行うという面倒な製造作業及び管理を不要とすることができる。
(Effect of embodiment)
As is clear from the above description, in the animal management system of the embodiment, the server device 300 assigns a model number (package number) for each repeater 200 owned by the user to a different communication channel. , Set by communication. As a result, the communication channels used by the plurality of repeaters 200 owned by the user can be set to different communication channels, and communication interference between the plurality of repeaters 200 can be easily prevented. .. Further, since a desired model number (package number) can be freely set for each repeater 200, the manufacturer of the repeater 200 manufactures the repeater 200 having a different communication channel, and performs shipping and inventory management. Troublesome manufacturing work and management can be eliminated.

また、パッケージ番号を変更するためには、強固な防塵及び防滴加工が施された中継器200を、一度、開封する必要があるが、再度、強固な防塵及び防滴加工を施すことは、面倒かつ困難である。しかし、実施の形態の動物管理システムの中継器200の場合、通信によりパッケージ番号を割り当て及び変更できるため、中継器200を開封することなく、簡単に、パッケージ番号の割り当て及び変更等を行うことができる。 Further, in order to change the package number, it is necessary to open the repeater 200 which has been subjected to strong dustproof and drip-proof processing once, but it is not possible to apply strong dust-proof and drip-proof processing again. It is troublesome and difficult. However, in the case of the repeater 200 of the animal management system of the embodiment, since the package number can be assigned and changed by communication, the package number can be easily assigned and changed without opening the repeater 200. it can.

また、各中継器200は、他の中継器200との間で通信を行うことで、自機の通信チャンネルに対して余剰に設定されているセンサ装置1を、他の中継器200の通信チャンネルに振り分ける。これにより、1つの中継器200に対して偏って割り付けられていたセンサ装置1を、他の中継器200に分散して割り付けることができ、1つの中継器200に掛かる通信負荷を軽減することができる。 Further, each repeater 200 communicates with the other repeater 200, so that the sensor device 1 that is excessively set for the communication channel of the own unit can be used as the communication channel of the other repeater 200. Sort to. As a result, the sensor device 1 that has been unevenly allocated to one repeater 200 can be distributed and allocated to other repeaters 200, and the communication load on one repeater 200 can be reduced. it can.

さらに、各中継器200は、自機の各通信チャンネルに割り当てられているセンサ装置1の数を、平均化した各通信チャンネルに割り当て直すことができる。これにより、各通信チャンネルの通信負荷を、各通信チャンネルで平均化することができる。 Further, each repeater 200 can reassign the number of sensor devices 1 assigned to each communication channel of its own unit to each averaged communication channel. As a result, the communication load of each communication channel can be averaged for each communication channel.

最後に、上述の実施の形態は、一例として提示したものであり、本発明の範囲を限定することは意図していない。この新規な実施の形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことも可能である。 Finally, the embodiments described above are presented as an example and are not intended to limit the scope of the invention. This novel embodiment can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the gist of the invention.

例えば、上述の実施の形態では、中継器200に対してサーバ装置300がパッケージ番号の割り当てを行うこととしたが、サーバ装置300以外の、例えばスマートフォン、タブレット端末等の通信機器でパッケージ番号の割り当てを行ってもよいし、中継器200の操作部を操作してパッケージ番号の入力を行うようにしてもよい。 For example, in the above-described embodiment, the server device 300 assigns the package number to the repeater 200, but the package number is assigned to a communication device other than the server device 300, for example, a smartphone or a tablet terminal. Alternatively, the operation unit of the repeater 200 may be operated to input the package number.

また、上述の実施の形態は、本発明を牛等の産業動物に子機を設置し、中継器200及びサーバ装置300で子機の管理(産業動物の管理)を行う動物管理システムに適用した例であった。しかし、本発明は、子機に相当する第1の通信機器と、中継器200に相当する第2の通信機器との間で通信を行う通信システムであれば、どのような通信システムにも適用可能である。また、本願発明は、例えば強固な防塵加工及び防滴加工が施された中継器200が必要な状況下において、より好適に機能する。 Further, the above-described embodiment is applied to an animal management system in which a slave unit is installed in an industrial animal such as a cow and the slave unit is managed (management of the industrial animal) by the repeater 200 and the server device 300. It was an example. However, the present invention is applicable to any communication system that communicates between the first communication device corresponding to the slave unit and the second communication device corresponding to the repeater 200. It is possible. Further, the present invention functions more preferably in a situation where, for example, a repeater 200 subjected to strong dustproof processing and drip-proof processing is required.

また、実施の形態及び実施の形態の変形は、発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。 Further, the embodiment and the modification of the embodiment are included in the scope and gist of the invention, and are included in the scope of the invention described in the claims and the equivalent scope thereof.

1 センサ装置
101 メインマイコン
102 記憶部
103 電源ボタン
104 行動分析センサ
105 無線通信モジュール
106 報知部
107 電波強度検出部
151 通信制御部
152 パッケージ番号決定部
153 モジュール番号決定部
154 モード制御部
155 チャンネル番号判別部
156 チャンネル設定部
200 中継器
201 メインマイコン
202 無線通信モジュール
203 通信モジュール
204 記憶部
251 電源制御部
252 ID取得部
253 POST実行部
254 応答フラグ取得部
255 センサ最大数取得部
256 通信チャンネル割り当て部
257 起動制御部
300 サーバ装置
301 通信モジュール
302 制御部
303 記憶部
1 Sensor device 101 Main microcomputer 102 Storage unit 103 Power button 104 Behavior analysis sensor 105 Wireless communication module 106 Notification unit 107 Radio strength detection unit 151 Communication control unit 152 Package number determination unit 153 Module number determination unit 154 Mode control unit 155 Channel number determination Unit 156 Channel setting unit 200 Repeater 201 Main microcomputer 202 Wireless communication module 203 Communication module 204 Storage unit 251 Power supply control unit 252 ID acquisition unit 253 POST execution unit 254 Response flag acquisition unit 255 Sensor maximum number acquisition unit 256 Communication channel allocation unit 257 Start control unit 300 Server device 301 Communication module 302 Control unit 303 Storage unit

特開2013−120973号公報Japanese Unexamined Patent Publication No. 2013-120973

Claims (8)

グループ間の通信干渉を防止するように組み合わされた複数の通信チャンネルをグループ化した複数グループ分の通信チャンネル設定情報のうち、いずれか一つのグループの通信チャンネル設定情報を取得する取得部と、
取得された通信チャンネル設定情報で示される通信チャンネルを用いて、子機との間で無線通信を行うように、無線通信部を制御する無線通信制御と、
を有する通信制御装置。
An acquisition unit that acquires the communication channel setting information of any one of the communication channel setting information for a plurality of groups in which a plurality of communication channels combined to prevent communication interference between the groups are grouped.
Wireless communication control that controls the wireless communication unit so that wireless communication is performed with the slave unit using the communication channel indicated by the acquired communication channel setting information.
Communication control device with.
自機に割り当てられている子機の数が余剰となる場合に、余剰となる子機を、他の通信制御装置に振り分けると共に、余剰となっていた子機が用いていた通信チャンネルを、振り分けを行った他の通信制御装置で管理する通信チャンネルに変更制御する通信チャンネル割り当て部を、さらに備えること
を特徴とする請求項1に記載の通信制御装置。
When the number of slave units assigned to the own unit becomes surplus, the surplus slave unit is distributed to other communication control devices, and the communication channel used by the surplus slave unit is distributed. The communication control device according to claim 1, further comprising a communication channel allocation unit that changes and controls a communication channel managed by another communication control device that has performed the above.
前記通信チャンネル割り当て部は、自機の各通信チャンネルに割り当てている前記子機の数を平均化して割り当て直す平均化処理を行うこと
を特徴とする請求項2に記載の通信制御装置。
The communication control device according to claim 2, wherein the communication channel allocating unit performs an averaging process of averaging and reallocating the number of slave units assigned to each communication channel of the own unit.
前記通信チャンネル設定情報において、グループ内の通信干渉を防止するように複数の通信チャンネルが割り当てられていること
を特徴とする請求項1から請求項3のうち、いずれか一項に記載の通信制御装置。
The communication control according to any one of claims 1 to 3, wherein a plurality of communication channels are assigned so as to prevent communication interference in the group in the communication channel setting information. apparatus.
コンピュータを、
グループ内及びグループ間の通信干渉を防止するように組み合わされた複数の通信チャンネルをグループ化した複数グループ分の通信チャンネル設定情報のうち、いずれか一つのグループの通信チャンネル設定情報を取得する取得部と、
取得された通信チャンネル設定情報で示される通信チャンネルを用いて、子機との間で無線通信を行うように、無線通信部を制御する無線通信制御として機能させること、
を特徴とする通信制御プログラム。
Computer,
Acquisition unit that acquires the communication channel setting information of any one of the communication channel setting information for a plurality of groups in which a plurality of communication channels combined to prevent communication interference within and between groups are grouped. When,
Using the communication channel indicated by the acquired communication channel setting information, it functions as a wireless communication control that controls the wireless communication unit so that wireless communication is performed with the slave unit.
A communication control program characterized by.
グループ内及びグループ間の通信干渉を防止するように組み合わされた複数の通信チャンネルをグループ化した複数グループ分の通信チャンネル設定情報のうち、いずれか一つのグループの通信チャンネル設定情報を取得する取得ステップと、
取得された通信チャンネル設定情報で示される通信チャンネルを用いて、子機との間で無線通信を行うように、無線通信部を制御する無線通信制御ステップと、
を有する通信制御方法。
Acquisition step to acquire the communication channel setting information of any one group among the communication channel setting information for a plurality of groups in which a plurality of communication channels combined to prevent communication interference within and between groups are grouped. When,
A wireless communication control step that controls the wireless communication unit so that wireless communication is performed with the slave unit using the communication channel indicated by the acquired communication channel setting information.
Communication control method having.
請求項1から請求項4のうち、いずれか一項に記載の通信制御装置と、
前記通信制御装置と通信を行い、前記通信制御装置に対して、いずれか一つのグループの前記通信チャンネル設定情報を設定するサーバ装置と、
を有する通信制御システム。
The communication control device according to any one of claims 1 to 4.
A server device that communicates with the communication control device and sets the communication channel setting information of any one group to the communication control device.
Communication control system with.
請求項1から請求項4のうち、いずれか一項に記載の通信制御装置と、
前記通信制御装置が取得した前記通信チャンネル設定情報で示される通信チャンネルを介して、前記通信制御装置と通信を行う少なくとも一つの子機と、
を有する通信制御システム。
The communication control device according to any one of claims 1 to 4.
At least one slave unit that communicates with the communication control device via the communication channel indicated by the communication channel setting information acquired by the communication control device.
Communication control system with.
JP2019138329A 2019-07-26 2019-07-26 Communication control unit, communication control program, communication control method, and communication control system Pending JP2021022835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019138329A JP2021022835A (en) 2019-07-26 2019-07-26 Communication control unit, communication control program, communication control method, and communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019138329A JP2021022835A (en) 2019-07-26 2019-07-26 Communication control unit, communication control program, communication control method, and communication control system

Publications (1)

Publication Number Publication Date
JP2021022835A true JP2021022835A (en) 2021-02-18

Family

ID=74574922

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019138329A Pending JP2021022835A (en) 2019-07-26 2019-07-26 Communication control unit, communication control program, communication control method, and communication control system

Country Status (1)

Country Link
JP (1) JP2021022835A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277833A (en) * 2004-03-25 2005-10-06 Matsushita Electric Ind Co Ltd Master communication unit, slave communication unit, communication system, and program
JP2015111809A (en) * 2013-11-11 2015-06-18 三菱電機株式会社 Radio channel allocation method, radio channel allocation device, and communication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277833A (en) * 2004-03-25 2005-10-06 Matsushita Electric Ind Co Ltd Master communication unit, slave communication unit, communication system, and program
JP2015111809A (en) * 2013-11-11 2015-06-18 三菱電機株式会社 Radio channel allocation method, radio channel allocation device, and communication system

Similar Documents

Publication Publication Date Title
JP4379516B2 (en) Power control system, power control apparatus, power control method, and program
US9313119B2 (en) Network routing based on resource availability
WO2010050335A1 (en) Resource management method and building-in device
JP6310547B2 (en) Wireless communication apparatus and wireless communication method
KR20010014059A (en) Management of functionality in a consumer electronics system
US20190132763A1 (en) Method and device for transmitting data
CN101120579B (en) Method for providing download and upload service in network control system
US9317098B2 (en) Server, power management system, power management method, and program
JP2021022835A (en) Communication control unit, communication control program, communication control method, and communication control system
JP2007019724A (en) Radio base station and base band signal processing allocation method
KR100643280B1 (en) Apparatus and method for managing sub channels dynamically
JP2020136745A (en) Gateway, communication system, and communication method
CN112311671B (en) Method, apparatus, medium and device for issuing aggregated link configuration to switch chip
US7738923B2 (en) Method for selecting a processing device
JP4584809B2 (en) Control device and controlled device
WO2018092372A1 (en) Communication terminal, communication method, program, and wireless system
JP5940566B2 (en) Network system, constant connection method, server, electronic device, program
CN108334359B (en) Server control method, system, equipment and computer storage medium
CN116483296A (en) Screen projection control method and device, storage medium and electronic equipment
KR20080096349A (en) System and method to improve symmetry in data transfer in llc layer of peer to peer nfc device
JP3791001B2 (en) Operation monitoring system
CN117098074A (en) Information sharing method, device, storage medium and sharing node in ad hoc network
JPWO2015107613A1 (en) Wide area management system, wide area management apparatus, building management apparatus, wide area management method, identifier information transmission method, identifier issuance method, and program
CN115297527A (en) Wireless hotspot management method and device
RU2019141667A (en) WIRELESS POWER DISPATCHING SYSTEM AND REMOTE CONTROL DEVICE, CONTROLLED DEVICE AND CORRESPONDING REMOTE CONTROL METHOD

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20230801