JP2020162101A - Slave connection switching device and slave connection switching method - Google Patents

Slave connection switching device and slave connection switching method Download PDF

Info

Publication number
JP2020162101A
JP2020162101A JP2019062999A JP2019062999A JP2020162101A JP 2020162101 A JP2020162101 A JP 2020162101A JP 2019062999 A JP2019062999 A JP 2019062999A JP 2019062999 A JP2019062999 A JP 2019062999A JP 2020162101 A JP2020162101 A JP 2020162101A
Authority
JP
Japan
Prior art keywords
slave
connection
priority
slaves
switching device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019062999A
Other languages
Japanese (ja)
Other versions
JP6745935B1 (en
Inventor
成太 宍戸
Seita Shishido
成太 宍戸
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.)
Mitsubishi Electric Information Systems Corp
Original Assignee
Mitsubishi Electric Information Systems Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Information Systems Corp filed Critical Mitsubishi Electric Information Systems Corp
Priority to JP2019062999A priority Critical patent/JP6745935B1/en
Application granted granted Critical
Publication of JP6745935B1 publication Critical patent/JP6745935B1/en
Publication of JP2020162101A publication Critical patent/JP2020162101A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a slave connection switching device that disconnects a connected slave with low slave connection priority and establishes connection with a new slave if it is determined that the number of connected slaves is an upper limit value when a connection request from the new slave is received.SOLUTION: A slave connection switching device 500 includes: a management unit 12 that manages a state of being able to connect to slaves 200 within an upper limit number range based on slave connection priority; and a slave connection control unit 11 that, when receiving a connection request from a new slave 200, disconnects a connected slave 200 with low slave connection priority and establishes connection with the new slave 200.SELECTED DRAWING: Figure 2

Description

本発明は、スレーブ接続切替装置およびスレーブ接続切替方法に関する。 The present invention relates to a slave connection switching device and a slave connection switching method.

工場では、工場作業員の労務管理のためウェアラブルデバイスを介した生体情報の取得や、工場内に設置された測定機器からのデータ収集がネットワーク経由で行われている。
さらに、自動車の整備状況を知りたいという要望から、RFID(Radio Frequency Identifier)タグが取り付けられた検査車両からの位置情報の取得や、整備品質の確認のため近年開発されたデジタル工具からのデータ取得も行われるようになってきている。
これらの各機器(以降スレーブと呼ぶ)からのデータ収集ではネットワーク規格としてBluetooth(登録商標)が広く使われている。Bluetooth(登録商標)は、近距離での通信を可能にするものであり、スレーブの周辺に配置される携帯情報端末(以降マスタと呼ぶ)等を介して収集したデータをサーバに送信する。
At the factory, biometric information is acquired via a wearable device and data is collected from the measuring equipment installed in the factory via a network for labor management of factory workers.
Furthermore, in response to the desire to know the maintenance status of automobiles, the acquisition of position information from inspection vehicles with RFID (Radio Frequency Identification) tags attached and the acquisition of data from digital tools developed in recent years to confirm maintenance quality. Is also being done.
Bluetooth (registered trademark) is widely used as a network standard for data collection from each of these devices (hereinafter referred to as slaves). Bluetooth (registered trademark) enables short-distance communication, and transmits data collected via a mobile information terminal (hereinafter referred to as a master) or the like located around a slave to a server.

Bluetooth(登録商標)の規格では、データ送信するための準備として、スレーブとマスタとの間で、ペアリングと接続という二つの手続きが必要となる。この手続きが完了すると、互いに通信を行うことが可能となるが、この手続きを人手で行う必要がある。
特許文献1では、あらかじめ人手によりペアリングしておくことで、接続を自動で行う技術が公開されている。この技術により、ペアリングされているスレーブは、自動でマスタに接続しデータ送信することが可能となる。
The Bluetooth® standard requires two procedures, pairing and connection, between the slave and the master in preparation for data transmission. Once this procedure is complete, it will be possible to communicate with each other, but this procedure must be done manually.
Patent Document 1 discloses a technique for automatically connecting by manually pairing in advance. With this technology, the paired slave can automatically connect to the master and transmit data.

特開2009−71664号公報JP-A-2009-71664

しかし、Bluetooth(登録商標)では、マスタに一度に接続できるスレーブは7台までという制約があり、8台以上のスレーブをマスタに接続するためには、マスタを複数台用意する必要がある。 However, in Bluetooth (registered trademark), there is a restriction that the number of slaves that can be connected to the master at one time is up to 7, and in order to connect 8 or more slaves to the master, it is necessary to prepare a plurality of masters.

本発明は、上述のような課題を解決するためになされたもので、新たなスレーブからの接続要求をマスタが受信したとき、既に接続済スレーブの数が上限数であると判定した場合、スレーブ接続優先順位が低い接続済スレーブとの接続を切断し、新たなスレーブとの接続を確立するスレーブ接続切替装置を得ることを目的とする。 The present invention has been made to solve the above-mentioned problems, and when the master receives a connection request from a new slave, if it is determined that the number of already connected slaves is the upper limit, the slaves The purpose is to obtain a slave connection switching device that disconnects from a connected slave having a low connection priority and establishes a connection with a new slave.

スレーブ接続切替装置は、スレーブ接続優先順位に基づき、上限数範囲内のスレーブと接続可能な状態を管理する管理部と、新たなスレーブからの接続要求を受信したとき、既に接続済スレーブの数が上限数であると判定した場合、管理部が管理する接続済スレーブのスレーブ接続優先順位を取得し、スレーブ接続優先順位が低い接続済スレーブとの接続を切断し、新たなスレーブとの接続を確立するスレーブ接続制御部とを備える。 The slave connection switching device has a management unit that manages the state of being able to connect to slaves within the upper limit number range based on the slave connection priority, and when a connection request from a new slave is received, the number of slaves already connected is increased. When it is determined that the number is the upper limit, the slave connection priority of the connected slave managed by the management unit is acquired, the connection with the connected slave with the lower slave connection priority is disconnected, and the connection with the new slave is established. It is provided with a slave connection control unit.

上限数のスレーブが既にマスタに接続されている場合においても、自動でスレーブの入れ替えを行うことで、新たなスレーブを接続することができる。 Even when the maximum number of slaves are already connected to the master, new slaves can be connected by automatically replacing the slaves.

スレーブ接続切替装置500の構成図。The block diagram of the slave connection switching device 500. スレーブ接続切替装置500を示す構成図。The block diagram which shows the slave connection switching apparatus 500. スレーブ接続切替装置500を示すH/W構成図。The H / W block diagram which shows the slave connection switching apparatus 500. 動作を示すフロー図(人手によるスレーブ200の接続)。Flow diagram showing operation (manual connection of slave 200). 動作を示すフロー図(人手によるスレーブ200の接続)。Flow diagram showing operation (manual connection of slave 200). 動作を示すフロー図(ペアリング)。Flow diagram (pairing) showing the operation. 動作を示すフロー図(スレーブ接続優先順位116aの設定)。Flow diagram showing operation (setting of slave connection priority 116a). 動作を示すフロー図(自動によるスレーブ200の接続)。Flow diagram showing operation (automatic connection of slave 200). 動作を示すフロー図(自動によるスレーブ200の接続)。Flow diagram showing operation (automatic connection of slave 200). 動作を示すフロー図(スケジューリングによるスレーブ200の接続)。Flow diagram showing operation (connection of slave 200 by scheduling). 動作を示すフロー図(スケジューリングによるスレーブ200の接続)。Flow diagram showing operation (connection of slave 200 by scheduling). ペアリング済スレーブ一覧情報113の例。An example of paired slave list information 113. スレーブ接続優先順位一覧情報116の例。Example of slave connection priority list information 116. 接続済スレーブ一覧情報114の例。Example of connected slave list information 114. スケジュール管理一覧情報118の例。Example of schedule management list information 118. スレーブ接続切替装置500の構成図(実施の形態2)。The block diagram of the slave connection switching device 500 (the second embodiment). スレーブ接続切替装置500を示す構成図(実施の形態2)。The block diagram which shows the slave connection switching device 500 (the second embodiment). スレーブ接続切替装置500を示すH/W構成図(実施の形態2)。FIG. 6 is an H / W configuration diagram showing a slave connection switching device 500 (Embodiment 2).

実施の形態および図面において、同じ要素および対応する要素には同じ符号を付している。同じ符号が付された要素の説明は適宜に省略または簡略化する。主なデータの流れ又は処理の流れを矢印で示している。 In embodiments and drawings, the same elements and corresponding elements are designated by the same reference numerals. The description of the elements with the same reference numerals will be omitted or simplified as appropriate. The main data flow or processing flow is indicated by arrows.

実施の形態1.
実施の形態1では、自動車整備工場における自動車の検査を例として説明する。
図1は、本実施の形態に係るスレーブ接続切替装置500が適用されるシステムの構成を示す構成図である。
Embodiment 1.
In the first embodiment, an inspection of an automobile in an automobile maintenance shop will be described as an example.
FIG. 1 is a configuration diagram showing a configuration of a system to which the slave connection switching device 500 according to the present embodiment is applied.

スレーブ接続切替装置500はマスタ100で構成され、スレーブ200から接続依頼をネットワーク400を介して受けると、接続済のスレーブ200との接続切替を行う。 The slave connection switching device 500 is composed of a master 100, and when a connection request is received from the slave 200 via the network 400, the connection is switched with the connected slave 200.

図2は、スレーブ接続切替装置500の詳細な構成を示す構成図であり、この図2では、図1で示したネットワーク400を省略している。
図2のスレーブ接続切替装置500において、スレーブ接続制御部11、管理部12、ペアリング済スレーブ一覧格納部13、接続済スレーブ一覧格納部14、スレーブ接続優先順位決定部15、スレーブ接続優先順位一覧格納部16、スケジュール管理部17、スケジュール管理一覧格納部18、データ送受信部19、取得データ格納部20、ログ格納部21は、マスタ100に設けられている。
FIG. 2 is a configuration diagram showing a detailed configuration of the slave connection switching device 500, and in FIG. 2, the network 400 shown in FIG. 1 is omitted.
In the slave connection switching device 500 of FIG. 2, the slave connection control unit 11, the management unit 12, the paired slave list storage unit 13, the connected slave list storage unit 14, the slave connection priority determination unit 15, and the slave connection priority list. The storage unit 16, the schedule management unit 17, the schedule management list storage unit 18, the data transmission / reception unit 19, the acquisition data storage unit 20, and the log storage unit 21 are provided in the master 100.

マスタ100に設けられたスレーブ接続制御部11は、新たなスレーブ200からの接続要求を受信し、既に接続済スレーブ200の数が上限数であると判定した場合、管理部12が管理する接続済スレーブ200のスレーブ接続優先順位116a(後述)を取得し、スレーブ接続優先順位116aが低い接続済スレーブ200との接続を切断し、新たなスレーブ200との接続を確立する機能を有する。 When the slave connection control unit 11 provided in the master 100 receives the connection request from the new slave 200 and determines that the number of already connected slaves 200 is the upper limit, the slave connection control unit 11 is managed by the management unit 12. It has a function of acquiring the slave connection priority 116a (described later) of the slave 200, disconnecting the connected slave 200 having a lower slave connection priority 116a, and establishing a connection with a new slave 200.

また、スレーブ接続制御部11は、あらかじめ設定されたスケジュールに従って、スレーブ接続優先順位116aが低い接続済スレーブ200との接続を切断し、新たなスレーブ200との接続を確立する機能を有する。
スレーブ接続制御部11は、さらに利用者から切断指示に基づき、接続済スレーブ200との接続を切断し、新たなスレーブ200との接続を確立する。
Further, the slave connection control unit 11 has a function of disconnecting the connection with the connected slave 200 having a low slave connection priority 116a and establishing a connection with a new slave 200 according to a preset schedule.
The slave connection control unit 11 further disconnects the connected slave 200 based on the disconnection instruction from the user, and establishes a connection with a new slave 200.

管理部12は、接続済スレーブ200の接続状態を表すスレーブ属性情報116bとスレーブ接続優先順位116aとを画面表示し、いずれかの接続済スレーブ200の接続の切断指示を利用者から受け付ける機能を有する。 The management unit 12 has a function of displaying the slave attribute information 116b indicating the connection status of the connected slave 200 and the slave connection priority 116a on the screen and receiving a disconnection instruction of the connection of any of the connected slaves 200 from the user. ..

スレーブ接続優先順位決定部15は、管理部12が管理する全てのスレーブ200のスレーブ属性情報116bからスレーブ接続優先順位116aを算出する機能を有する。 The slave connection priority determination unit 15 has a function of calculating the slave connection priority 116a from the slave attribute information 116b of all the slaves 200 managed by the management unit 12.

スケジュール管理部17は、利用者からスレーブ接続切替のスケジュールの入力を受け付け、受け付けたスレーブ接続切替のスケジュールをスケジュール管理一覧格納部18に格納する機能を有する。 The schedule management unit 17 has a function of receiving input of a slave connection switching schedule from the user and storing the received slave connection switching schedule in the schedule management list storage unit 18.

データ送受信部19は、スレーブ200からデータを受信し、受信データを取得データ格納部20に格納するとともに、取得成否、取得時間といった情報をログとしてログ格納部21に格納する機能を有する。
また、データ送受信部19は、必要に応じて取得した受信データとログをサーバ300に送信する機能を有する。
The data transmission / reception unit 19 has a function of receiving data from the slave 200, storing the received data in the acquisition data storage unit 20, and storing information such as acquisition success / failure and acquisition time in the log storage unit 21 as a log.
Further, the data transmission / reception unit 19 has a function of transmitting the acquired received data and the log to the server 300 as needed.

以上のような構成のスレーブ接続切替装置500の各機能は、図3に示したようなハードウェアにより実現される。このハードウェアは、CPU(Central Processing Unit)等の処理装置110と、ROM(Read Only Memory)やハードディスク装置等の記憶装置120、他のハードウェアとネットワーク400によって接続される通信装置130,140、キーボードやマウスといった入力装置150、スピーカーやディスプレイ等の出力装置160とがバス接続された構成となっている。なお、CPUは自身にメモリを備えていてもよい。
なお、図3における通信装置は、通信機器130と通信機器140の2つを記載しているが、1つの通信機器で構成してもよい。また、実施の形態1、実施の形態2では、スレーブ200との通信を行う通信規格は、Bluetooth(登録商標)について説明するが、Bluetooth(登録商標)以外の通信方式でも構わない。
Each function of the slave connection switching device 500 having the above configuration is realized by the hardware as shown in FIG. This hardware includes a processing device 110 such as a CPU (Central Processing Unit), a storage device 120 such as a ROM (Read Only Memory) and a hard disk device, and communication devices 130 and 140 connected to other hardware by a network 400. An input device 150 such as a keyboard and a mouse and an output device 160 such as a speaker and a display are connected by a bus. The CPU may have its own memory.
Although two communication devices, a communication device 130 and a communication device 140, are described as the communication device in FIG. 3, one communication device may be used. Further, in the first and second embodiments, the communication standard for communicating with the slave 200 will be described with Bluetooth (registered trademark), but a communication method other than Bluetooth (registered trademark) may be used.

ペアリング済スレーブ一覧格納部13、接続済スレーブ一覧格納部14、スレーブ接続優先順位一覧格納部16、スケジュール管理一覧格納部18、取得データ格納部20、ログ格納部21は、記憶装置120により実現される。
スレーブ接続制御部11、管理部12、スレーブ接続優先順位決定部15、スケジュール管理部17、データ送受信部19は、記憶装置120に記憶されたプログラムが処理装置110で実行されることにより実現される。
The paired slave list storage unit 13, the connected slave list storage unit 14, the slave connection priority list storage unit 16, the schedule management list storage unit 18, the acquisition data storage unit 20, and the log storage unit 21 are realized by the storage device 120. Will be done.
The slave connection control unit 11, the management unit 12, the slave connection priority determination unit 15, the schedule management unit 17, and the data transmission / reception unit 19 are realized by executing the program stored in the storage device 120 in the processing device 110. ..

なお、スレーブ接続切替装置500の各機能を実現する方法は、上記のような処理装置とプログラムの組み合わせに限らず、処理装置とプログラムをインプリメントしたシステムLSI(Large Scale Integrated Circuit)のようなハードウェア単体で実現するようにしてもよいし、一部の機能を専用のハードウェアで実現し、一部を処理装置とプログラムの組み合わせで実現するようにしてもよい。 The method for realizing each function of the slave connection switching device 500 is not limited to the combination of the processing device and the program as described above, and the hardware such as a system LSI (Large Scale Integrated Circuit) that implements the processing device and the program is used. It may be realized by itself, or some functions may be realized by dedicated hardware and some may be realized by a combination of a processing device and a program.

以上のような構成のスレーブ接続切替装置500における動作について、図4から図11のフロー図を用いて説明する。まず、人手によるスレーブ200の接続について、図4、図5を用いて説明する。次に、自動によるスレーブ200の接続について、図8、図9を用いて説明する。最後に、スケジューリングによるスレーブ200の接続について、図10、図11を用いて説明する。 The operation of the slave connection switching device 500 having the above configuration will be described with reference to the flow charts of FIGS. 4 to 11. First, the manual connection of the slave 200 will be described with reference to FIGS. 4 and 5. Next, the automatic connection of the slave 200 will be described with reference to FIGS. 8 and 9. Finally, the connection of the slave 200 by scheduling will be described with reference to FIGS. 10 and 11.

スレーブ200がマスタ100にデータを送信するためには、スレーブ200とマスタ100との間で、ペアリングと接続という二つの手続きが必要となる。この手続きが完了すると、互いに通信を行うことが可能となる。 In order for the slave 200 to transmit data to the master 100, two procedures, pairing and connection, are required between the slave 200 and the master 100. Once this procedure is complete, they will be able to communicate with each other.

ペアリングとは、スレーブ200とマスタ100が相互に通信するために、通信相手の宛先となるMACアドレスを互いに登録し、また通信するデータを暗号化する際の暗号鍵を交換し、以後の接続を許可する手続きを指す。交換する暗号鍵は共通鍵でも秘密鍵方式でも構わない。 In pairing, in order for the slave 200 and the master 100 to communicate with each other, the MAC addresses that are the destinations of the communication partners are registered with each other, and the encryption key for encrypting the data to be communicated is exchanged, and the subsequent connection is performed. Refers to the procedure for permitting. The encryption key to be exchanged may be a common key or a private key method.

接続とは、マスタ100がペアリング済のスレーブ200をデータの送受信対象と見なすことをいう。Bluetooth(登録商標)においては、マスタ100から指示がなければスレーブ200はデータの送受信を行うことができないため、マスタ100側で送受信対象と見なしていないスレーブ200とはデータの送受信は行えない。 The connection means that the master 100 considers the paired slave 200 as a data transmission / reception target. In Bluetooth (registered trademark), since the slave 200 cannot transmit / receive data unless instructed by the master 100, data cannot be transmitted / received to / from the slave 200 which is not regarded as a transmission / reception target on the master 100 side.

人手によりスレーブ200をマスタ100に接続するために、まず、スレーブ200をBluetooth(登録商標)通信できるエリア内で、接続可能状態とする(ステップS11)。
接続可能状態とする操作は、Bluetooth(登録商標)通信可能なスレーブ200に通常装備されている手続きにより行われる。
In order to manually connect the slave 200 to the master 100, first, the slave 200 is brought into a connectable state within an area where Bluetooth (registered trademark) communication is possible (step S11).
The operation of making the connectable state is performed by the procedure normally provided in the slave 200 capable of communicating with Bluetooth (registered trademark).

スレーブ200を接続可能状態とすると、スレーブ200はマスタ100に接続を要求する(ステップS12)。スレーブ200からの接続要求は、スレーブ200のMACアドレスをキーとして行われる。MACアドレスは、通信機器が持つ通信インタフェース毎に唯一に振られる識別子である。 When the slave 200 is in a connectable state, the slave 200 requests the master 100 to connect (step S12). The connection request from the slave 200 is made using the MAC address of the slave 200 as a key. The MAC address is an identifier that is uniquely assigned to each communication interface of the communication device.

マスタ100のスレーブ接続制御部11は、スレーブ200からの接続要求を受信する(ステップS13)。スレーブ200からの接続要求に含まれるMACアドレスから、接続要求元のスレーブ200を識別する。 The slave connection control unit 11 of the master 100 receives the connection request from the slave 200 (step S13). The slave 200 that is the source of the connection request is identified from the MAC address included in the connection request from the slave 200.

スレーブ接続制御部11は、ペアリング済スレーブ一覧格納部13からペアリング済スレーブ一覧情報113を取得する(ステップS14)。ペアリング済スレーブ一覧情報113の取得は、スレーブ200から受信したMACアドレスをキーとして、ペアリング済スレーブ一覧格納部13から取得することにより行う。
ペアリング済スレーブ一覧格納部13が格納するペアリング済スレーブ一覧情報113の例を図12で説明する。
The slave connection control unit 11 acquires the paired slave list information 113 from the paired slave list storage unit 13 (step S14). The paired slave list information 113 is acquired from the paired slave list storage unit 13 using the MAC address received from the slave 200 as a key.
An example of the paired slave list information 113 stored in the paired slave list storage unit 13 will be described with reference to FIG.

ペアリング済スレーブ一覧情報113は、デバイスNo、デバイス名称、MACアドレス、暗号鍵の情報を持つ。それ以外の情報を持つようにしても構わない。
デバイスNoは、スレーブ接続切替装置500において、スレーブ200を識別するために付与する識別子である。デバイス名称は、スレーブ200の名称を表示する。例えば、温度計や湿度計といった工場環境の情報を取得するスレーブ200やデジタル工具といったスレーブのデバイス名称が表示される。
The paired slave list information 113 has information on a device number, a device name, a MAC address, and an encryption key. You may have other information.
The device No. is an identifier given to identify the slave 200 in the slave connection switching device 500. The device name displays the name of the slave 200. For example, the device names of slaves such as slave 200 and digital tools that acquire information on the factory environment such as thermometers and hygrometers are displayed.

MACアドレスは、スレーブ200のMACアドレスである。暗号鍵は、スレーブ200との間の通信を暗号化する鍵である。デバイス名称、MACアドレス、暗号鍵の情報は、ペアリング時にスレーブから取得する情報で生成される。 The MAC address is the MAC address of the slave 200. The encryption key is a key that encrypts communication with the slave 200. The device name, MAC address, and encryption key information are generated from the information acquired from the slave during pairing.

対象のスレーブ200がペアリング済であると判定した場合はステップS16に進む(ステップS15でYes)。対象のスレーブ200がペアリング済でないと判定した場合はBに進む(ステップS15でNo)。
対象のスレーブ200がペアリング済であるか否かの判定は、スレーブ200から受信したMACアドレスをキーとして、ペアリング済スレーブ一覧情報113のMACアドレスを検索することで行われる。
検索されたスレーブ200は既にペアリング済のスレーブ200と判定し、登録されていないスレーブ200はペアリングがされていないスレーブ200と判定する。
If it is determined that the target slave 200 has been paired, the process proceeds to step S16 (Yes in step S15). If it is determined that the target slave 200 has not been paired, the process proceeds to B (No in step S15).
Whether or not the target slave 200 has been paired is determined by searching the MAC address of the paired slave list information 113 using the MAC address received from the slave 200 as a key.
The searched slave 200 is determined to be a slave 200 that has already been paired, and the unregistered slave 200 is determined to be a slave 200 that has not been paired.

対象のスレーブ200がペアリング済でない場合について、図6、図7にて説明する。
対象のスレーブ200がペアリング済でない場合、スレーブ接続制御部11はスレーブ200に対して、ペアリングに必要な情報を要求する(ステップS31)。ペアリングに必要な情報とは、具体的にはマスタ100とスレーブ200との間の通信を暗号化する鍵およびデバイス名称等の要求である。
A case where the target slave 200 has not been paired will be described with reference to FIGS. 6 and 7.
If the target slave 200 has not been paired, the slave connection control unit 11 requests the slave 200 for information necessary for pairing (step S31). The information required for pairing is specifically a request such as a key and a device name for encrypting communication between the master 100 and the slave 200.

スレーブ200はマスタ100からの要求を受信する(ステップS32)。スレーブ200は鍵の用意を行い、マスタ100の要求に回答する(ステップS33)。 The slave 200 receives the request from the master 100 (step S32). The slave 200 prepares the key and responds to the request of the master 100 (step S33).

マスタ100のスレーブ接続制御部11は、スレーブ200からの回答を受け付ける(ステップS34)。
管理部12は、スレーブ接続制御部11が受け付けたMACアドレスとデバイス名称と鍵情報とをペアリング済スレーブ一覧情報113に登録する(ステップS35)。
ペアリング情報の登録は、新たなデバイスNoをキーとして、スレーブ200から受信したMACアドレスとデバイス名称と鍵情報の登録をペアリング済スレーブ一覧格納部13に指示することにより行う。
The slave connection control unit 11 of the master 100 receives an answer from the slave 200 (step S34).
The management unit 12 registers the MAC address, the device name, and the key information received by the slave connection control unit 11 in the paired slave list information 113 (step S35).
The pairing information is registered by instructing the paired slave list storage unit 13 to register the MAC address, device name, and key information received from the slave 200 using the new device number as a key.

ペアリング済スレーブ一覧格納部13への登録が完了すると、管理部12は、スレーブ接続優先順位一覧情報116の登録画面を表示する(ステップS41)。
利用者は、画面に表示されたスレーブ接続優先順位一覧情報116の登録画面を確認し、対象のスレーブ200のスレーブ重要度116cを設定する。
スレーブ接続優先順位一覧格納部16が格納するスレーブ接続優先順位一覧情報116の例を図13で説明する。
When the registration to the paired slave list storage unit 13 is completed, the management unit 12 displays the registration screen of the slave connection priority list information 116 (step S41).
The user confirms the registration screen of the slave connection priority list information 116 displayed on the screen, and sets the slave importance 116c of the target slave 200.
An example of the slave connection priority list information 116 stored in the slave connection priority list storage unit 16 will be described with reference to FIG.

スレーブ接続優先順位一覧情報116は、デバイスNo、スレーブ接続優先順位116a、スレーブ属性情報116bから構成される。スレーブ属性情報116bは、スレーブ重要度116c、電源残量、通信状態、経過時間等を含む。
デバイスNoは、スレーブ接続切替装置500において、スレーブ200を識別するために付与する識別子である。デバイスNoによって、ペアリング済スレーブ一覧情報113と関連付けられる。
The slave connection priority list information 116 is composed of the device No., the slave connection priority 116a, and the slave attribute information 116b. The slave attribute information 116b includes the slave importance 116c, the remaining power supply, the communication state, the elapsed time, and the like.
The device No. is an identifier given to identify the slave 200 in the slave connection switching device 500. The device No is associated with the paired slave list information 113.

スレーブ接続優先順位116aは、ペアリング済スレーブ200の接続優先順位を表す。数値が高いほど優先順位が高く、数値が低いほど優先順位が低い。
スレーブ接続優先順位116aは、新たなスレーブ200からの接続要求を受信したときに、切断する対象のスレーブ200を選択する判定基準として参照される。
The slave connection priority 116a represents the connection priority of the paired slave 200. The higher the number, the higher the priority, and the lower the number, the lower the priority.
The slave connection priority 116a is referred to as a criterion for selecting the slave 200 to be disconnected when a connection request from the new slave 200 is received.

スレーブ重要度116cは、利用者が設定するスレーブ200の優先順位である。
重要度が高いスレーブ200には高い値を、重要度が低いスレーブ200には低い値を設定する。
例えば、優先順位が低いスレーブ200には10を設定し、優先順位の高いスレーブ200には30を設定し、普通の優先順位のスレーブ200には20を設定する。
優先順位に関係なく切断されては困るようなスレーブ200の場合には、特別な値、例えば0を設定し、入れ替え対象外と判定するようにスレーブ接続切替装置500を構成することも可能である。
The slave importance 116c is a priority of the slave 200 set by the user.
A high value is set for the slave 200 having a high importance, and a low value is set for the slave 200 having a low importance.
For example, a slave 200 having a low priority is set to 10, a slave 200 having a high priority is set to 30, and a slave 200 having a normal priority is set to 20.
In the case of the slave 200, which is difficult to be disconnected regardless of the priority, it is possible to set a special value, for example, 0, and configure the slave connection switching device 500 so as to determine that it is not subject to replacement. ..

電源残量は、スレーブ200の電源残量を表す値である。
電源残量が少ないスレーブ200は、電源節約の観点からスレーブ重要度116cを低くなるように構成することができる。
電源残量をスレーブ200から取得できる場合は、その値を最大容量からの割合で表示する。スレーブ200によっては、電源容量を取得できないスレーブ200もある。この場合は、−(ハイフン)を設定し、50%として算出することも可能である。
The power remaining amount is a value representing the power remaining amount of the slave 200.
The slave 200 having a low power remaining amount can be configured to have a low slave importance 116c from the viewpoint of power saving.
If the remaining power can be obtained from the slave 200, the value is displayed as a percentage from the maximum capacity. Depending on the slave 200, there is also a slave 200 that cannot acquire the power supply capacity. In this case, it is also possible to set − (hyphen) and calculate as 50%.

通信状態は、スレーブ200との通信成功の割合を表示する。
スレーブ200が移動し遠方に離れたような場合は、スレーブ重要度116cを低くなるように構成することができる。
例えば、10回通信を試みて、8回通信が成功した場合は80%と表示する。
The communication status displays the rate of successful communication with the slave 200.
When the slave 200 moves and is far away, the slave importance 116c can be configured to be low.
For example, if communication is attempted 10 times and communication is successful 8 times, 80% is displayed.

経過時間は、スレーブ200が接続状態となってからの経過時間を表す。接続時間が長いスレーブ200を、スレーブ重要度116cを低くなるように構成することができる。 The elapsed time represents the elapsed time since the slave 200 was connected. The slave 200 having a long connection time can be configured so that the slave importance 116c is low.

管理部12は、スレーブ接続優先順位一覧情報116の登録指示を利用者から受け付ける(ステップS42)。 The management unit 12 receives the registration instruction of the slave connection priority list information 116 from the user (step S42).

スレーブ接続優先順位決定部15は、管理部12からの指示により、スレーブ属性情報116bからスレーブ接続優先順位116aを算出する(ステップS43)。 The slave connection priority determination unit 15 calculates the slave connection priority 116a from the slave attribute information 116b according to the instruction from the management unit 12 (step S43).

スレーブ接続優先順位116aの算出方法は、例えば、スレーブ重要度116c×電源残量×通信状態/経過時間のように行う。スレーブ接続優先順位116aの算出方法について、図13の例で説明する。
図13のデバイスNoが3のスレーブ200のスレーブ重要度116c、電源残量、通信状態、経過時間はそれぞれ、30、80%、100%、24hである。よって、スレーブ重要度116c×電源残量×通信状態/経過時間を求めると、30×0.8×1/24=1となり、スレーブ接続優先順位116aは1となる。
スレーブ接続優先順位116aの算出方法は、これ以外の方法であっても構わない。また、電源残量、通信状態、経過時間の3つを使用する必要はない。
スレーブ属性情報116bとして、電源残量、通信状態、経過時間以外の項目を保管し、スレーブ接続優先順位116aの算出に利用してもよい。
The slave connection priority 116a is calculated as, for example, slave importance 116c × remaining power supply × communication state / elapsed time. The method of calculating the slave connection priority 116a will be described with reference to FIG.
The slave importance 116c, the remaining power supply, the communication state, and the elapsed time of the slave 200 having the device No. 3 in FIG. 13 are 30, 80%, 100%, and 24h, respectively. Therefore, when the slave importance 116c × power remaining amount × communication state / elapsed time is obtained, 30 × 0.8 × 1/24 = 1, and the slave connection priority 116a is 1.
The slave connection priority 116a may be calculated by any other method. In addition, it is not necessary to use the remaining power, the communication status, and the elapsed time.
Items other than the remaining power supply, communication status, and elapsed time may be stored as the slave attribute information 116b and used for calculating the slave connection priority 116a.

管理部12は、スレーブ接続優先順位116aをスレーブ接続優先順位一覧情報116に登録する(ステップS44)。
スレーブ接続優先順位一覧情報116の登録は、スレーブ接続優先順位一覧格納部16に指示することにより行う。
The management unit 12 registers the slave connection priority 116a in the slave connection priority list information 116 (step S44).
The slave connection priority list information 116 is registered by instructing the slave connection priority list storage unit 16.

図4に戻り、ステップS15から説明を続ける。
ステップS15で対象のスレーブ200がペアリング済であると判定した場合は、管理部12は接続済スレーブ数を取得する(ステップS16)。接続済スレーブ数の取得は、接続済スレーブ一覧格納部14から現在登録されている接続済スレーブ一覧情報114の件数を取得することにより行う。
接続済スレーブ一覧格納部14が格納する接続済スレーブ一覧情報114の例を図14で説明する。
Returning to FIG. 4, the description continues from step S15.
If it is determined in step S15 that the target slave 200 has been paired, the management unit 12 acquires the number of connected slaves (step S16). The number of connected slaves is acquired by acquiring the number of connected slave list information 114 currently registered from the connected slave list storage unit 14.
An example of the connected slave list information 114 stored in the connected slave list storage unit 14 will be described with reference to FIG.

接続済スレーブ一覧情報114は、デバイスNo、開始時間、終了予定時間の情報を持つ。デバイスNoによって、ペアリング済スレーブ一覧情報113、スレーブ接続優先順位一覧情報116と関連付けられる。
接続済スレーブ一覧情報114に登録されているスレーブ200はマスタ100と通信可能状態となっているスレーブ200である。
開始時間は、接続可能となった時間である。終了予定時間は、切断予定時間である。切断予定時間は、利用者によって適宜設定される。
The connected slave list information 114 has information on the device number, the start time, and the scheduled end time. The device number is associated with the paired slave list information 113 and the slave connection priority list information 116.
The slave 200 registered in the connected slave list information 114 is a slave 200 that is in a communicable state with the master 100.
The start time is the time when the connection becomes possible. The scheduled end time is the scheduled disconnection time. The scheduled disconnection time is appropriately set by the user.

接続済のスレーブ数が上限数であると判定した場合はAに進む(ステップS17でYes)。接続済のスレーブ数が上限数より少ないと判定した場合はステップS21に進む(ステップS17でNo)。
Bluetooth(登録商標)を利用するネットワーク400では、一つのマスタ100に接続できるスレーブ数の上限は7台までという制約がある。よって、ネットワーク400としてBluetooth(登録商標)を利用する環境では、一定数として例えば7を設定する利用が想定される。
図14の例では、7台のスレーブ200が登録され、マスタ100と通信可能接続状態となっていることを表している。
If it is determined that the number of connected slaves is the upper limit, the process proceeds to A (Yes in step S17). If it is determined that the number of connected slaves is less than the upper limit, the process proceeds to step S21 (No in step S17).
In the network 400 using Bluetooth (registered trademark), there is a restriction that the maximum number of slaves that can be connected to one master 100 is seven. Therefore, in an environment where Bluetooth (registered trademark) is used as the network 400, it is assumed that a fixed number of, for example, 7 is set.
In the example of FIG. 14, seven slaves 200 are registered and are in a communicable connection state with the master 100.

管理部12は、接続済スレーブ一覧情報114を画面表示する(ステップS18)。 The management unit 12 displays the connected slave list information 114 on the screen (step S18).

また、管理部12は、接続済スレーブ一覧情報114に表示されるデバイスNoと関連付けられるスレーブ接続優先順位一覧情報116を画面表示する(ステップS19)。
利用者は、画面に表示された接続済スレーブ一覧情報114とスレーブ接続優先順位一覧情報116の画面を確認し、新たに接続するスレーブ200の代わりに、切断するスレーブ200を画面から選択する。
利用者は、画面表示されるスレーブ200のスレーブ接続優先順位116aとスレーブ属性情報116bを基に、切断するスレーブ200を選択することが可能である。
Further, the management unit 12 displays the slave connection priority list information 116 associated with the device No. displayed in the connected slave list information 114 on the screen (step S19).
The user confirms the screens of the connected slave list information 114 and the slave connection priority list information 116 displayed on the screen, and selects the slave 200 to be disconnected from the screen instead of the newly connected slave 200.
The user can select the slave 200 to be disconnected based on the slave connection priority 116a and the slave attribute information 116b of the slave 200 displayed on the screen.

管理部12は、利用者が切断対象のスレーブ200を選択することにより、切断対象スレーブ200の指示を受け付ける(ステップS20)。
管理部12は、利用者が選択した切断対象スレーブ200との接続を切断する(ステップS21)。
具体的には、スレーブ接続優先順位一覧格納部16に対象のデバイスNoを持つスレーブ200の削除を指示することで行う。
The management unit 12 receives the instruction of the slave 200 to be disconnected by the user selecting the slave 200 to be disconnected (step S20).
The management unit 12 disconnects from the disconnection target slave 200 selected by the user (step S21).
Specifically, this is performed by instructing the slave connection priority list storage unit 16 to delete the slave 200 having the target device number.

なお、スレーブ200との接続の切断だけでなく、ステップS21のスレーブ200との接続の切断では、ペアリングの切断を併せて行うようにスレーブ接続切替装置500を構成することも可能である。
ペアリングの切断は、ペアリング済スレーブ一覧格納部13に対象のデバイスNoを持つスレーブ200の削除を指示することで行う。
ペアリングの切断が行われたスレーブ200をマスタ100に接続するためには、再度ペアリングから行う必要がある。
In addition to disconnecting the connection with the slave 200, it is also possible to configure the slave connection switching device 500 so as to disconnect the pairing at the disconnection of the connection with the slave 200 in step S21.
The pairing is disconnected by instructing the paired slave list storage unit 13 to delete the slave 200 having the target device number.
In order to connect the slave 200 to which the pairing has been disconnected to the master 100, it is necessary to perform the pairing again.

スレーブ接続制御部11は、管理部12から接続対象スレーブ200の指示を受け、接続対象スレーブ200に接続を指示する(ステップS22)。 The slave connection control unit 11 receives an instruction from the management unit 12 for the connection target slave 200, and instructs the connection target slave 200 to connect (step S22).

新たに接続するスレーブ200は、マスタ100から接続指示を受け付ける(ステップS23)。マスタ100から接続指示を受けたスレーブ200は、マスタ100からのデータ送受信の指示待ち状態となる。 The newly connected slave 200 receives a connection instruction from the master 100 (step S23). The slave 200 that has received the connection instruction from the master 100 is in a state of waiting for an instruction to send / receive data from the master 100.

管理部12は、スレーブ接続制御部11から接続完了の通知を受け、接続済スレーブ一覧情報114を更新する(ステップS24)。具体的には、接続済スレーブ一覧格納部14に対して、ステップ22で接続指示をしたスレーブ200の登録を指示し、接続済スレーブ一覧情報114を更新する。 The management unit 12 receives a notification of connection completion from the slave connection control unit 11 and updates the connected slave list information 114 (step S24). Specifically, the connected slave list storage unit 14 is instructed to register the slave 200 for which the connection instruction was given in step 22, and the connected slave list information 114 is updated.

ペアリング済のスレーブ200を人手により接続する動作を説明したが、環境によっては、ペアリング済のスレーブ200を自動により接続することも可能である。ここから、自動によるスレーブ200の接続について、図8、図9を用いて説明する。
スレーブ200がマスタ100にデータを送信するためには、スレーブ200とマスタ100との間で、ペアリングと接続という二つの手続きが必要となる。マスタ100とスレーブ200との間でペアリングが完了している場合には、自動での接続が可能となる。
なお、マスタ100とスレーブ200との間のペアリングは、人手によってあらかじめ実施しておく必要がある。
Although the operation of manually connecting the paired slave 200 has been described, it is also possible to automatically connect the paired slave 200 depending on the environment. From here, the automatic connection of the slave 200 will be described with reference to FIGS. 8 and 9.
In order for the slave 200 to transmit data to the master 100, two procedures, pairing and connection, are required between the slave 200 and the master 100. When pairing is completed between the master 100 and the slave 200, automatic connection is possible.
The pairing between the master 100 and the slave 200 needs to be performed manually in advance.

自動によりスレーブ200をマスタ100に接続するために、まず、スレーブ200を接続可能状態とする(ステップS51)。Bluetooth(登録商標)通信できるエリア内で行ってもよいし、通信できるエリア外で行うことでもよい。 In order to automatically connect the slave 200 to the master 100, first, the slave 200 is made connectable (step S51). Bluetooth (registered trademark) It may be performed within the communication area or outside the communication area.

スレーブ200を接続可能状態とすると、スレーブ200はマスタ100に接続を要求する(ステップS52)。ステップS52の処理はステップS12の処理と同じである。 When the slave 200 is in a connectable state, the slave 200 requests the master 100 to connect (step S52). The process of step S52 is the same as the process of step S12.

マスタ100のスレーブ接続制御部11は、スレーブ200からの接続要求を受信する(ステップS53)。
Bluetooth(登録商標)通信できるエリア外でステップS51とステップS52が行われた場合は、スレーブ200が通信できるエリア内に入ったところで、ステップS53が行われる。
具体的には、ウェアラブルデバイスを身に着けた人や、RFIDタグが取り付けられた検査車両が、通信エリア内に移動するようなケースを想定する。
The slave connection control unit 11 of the master 100 receives the connection request from the slave 200 (step S53).
When steps S51 and S52 are performed outside the area where Bluetooth (registered trademark) communication is possible, step S53 is performed when the slave 200 enters the communication area.
Specifically, it is assumed that a person wearing a wearable device or an inspection vehicle with an RFID tag attached moves within the communication area.

ステップS53とステップS54の処理は、人手によるスレーブ200の接続におけるステップS13とステップS14の処理と同じであるので省略する。 The processes of steps S53 and S54 are the same as the processes of steps S13 and S14 in the manual connection of the slave 200, and are therefore omitted.

対象のスレーブ200がペアリング済である場合はステップS56に進む(ステップS55でYes)。対象のスレーブ200がペアリング済でない場合は、エラー情報をログとして格納し終了する(ステップS55でNo)。 If the target slave 200 has already been paired, the process proceeds to step S56 (Yes in step S55). If the target slave 200 has not been paired, the error information is stored as a log and the process ends (No in step S55).

ステップS57の処理は、人手によるスレーブ200の接続におけるステップS17の処理と同じであるため説明を省略する。 Since the process of step S57 is the same as the process of step S17 in manually connecting the slave 200, the description thereof will be omitted.

スレーブ接続制御部11は、管理部12が管理する接続済スレーブ200のスレーブ接続優先順位116aが低いスレーブ200をスレーブ接続優先順位一覧格納部16から取得する(ステップS58)。 The slave connection control unit 11 acquires the slave 200 having a low slave connection priority 116a of the connected slave 200 managed by the management unit 12 from the slave connection priority list storage unit 16 (step S58).

管理部12は、スレーブ接続優先順位一覧格納部16によって取得されたスレーブ接続優先順位116aが低いスレーブ200との接続を切断する(ステップS59)。
取得されたスレーブ接続優先順位116aが最も低いスレーブ200を切断対象としてもよい。同じ値のスレーブ接続優先順位116aを持つスレーブ200が複数選択された場合は、複数のスレーブ200を切断対象としてもよいし、そのうちのいずれかを切断対象としてもよい。
The management unit 12 disconnects from the slave 200 having a low slave connection priority 116a acquired by the slave connection priority list storage unit 16 (step S59).
The slave 200 having the lowest acquired slave connection priority 116a may be the disconnection target. When a plurality of slaves 200 having the same value as the slave connection priority 116a are selected, the plurality of slaves 200 may be the disconnection targets, or any one of them may be the disconnection target.

また、新たなスレーブ200のスレーブ接続優先順位116aと比較し、接続済スレーブ一覧情報114に登録されているスレーブ200中に新たなスレーブ200のスレーブ接続優先順位116aより低いスレーブ接続優先順位116aを持つスレーブ200がなければ、入替対象はなしとすることも可能である。 Further, compared with the slave connection priority 116a of the new slave 200, the slave 200 registered in the connected slave list information 114 has a slave connection priority 116a lower than the slave connection priority 116a of the new slave 200. If there is no slave 200, it is possible that there is no replacement target.

ステップS60〜ステップS62までの処理は、人手によるスレーブ200の接続におけるステップS21〜ステップS23までの処理と同じであるため説明を省略する。このようにして、自動によるスレーブ200の切替が可能となる。 Since the processes from step S60 to step S62 are the same as the processes from steps S21 to S23 in the manual connection of the slave 200, the description thereof will be omitted. In this way, the slave 200 can be automatically switched.

なお、ここまでペアリング済のスレーブ200を自動により接続する動作を説明したが、ペアリング時にスレーブ200の接続を人手により接続するか、自動により接続するか、いずれの接続方法とするかを利用者があらかじめ指定しておくことで、指定した接続方法でスレーブ200を接続させることも可能である。
例えば、図7のステップS41で利用者に表示する登録画面の接続優先順位一覧情報116にスレーブ200のスレーブ重要度116cと併せて接続方法を表示し、利用者に接続方法を指定させる。
次に、ステップS17またはステップS57において、スレーブ接続制御部11によって、接続済スレーブ数が上限数であると判定されたとき、接続優先順位一覧情報116に設定された対象のスレーブ200の接続方法を参照することで、人手により接続するか、自動により接続するかを判定させ、判定した接続方法でスレーブ200を接続させるように動作させる。
このように動作させることで、利用者が指定した接続方法でスレーブ200を接続させることが可能となる。
In addition, although the operation of automatically connecting the paired slave 200 has been described so far, it is possible to use either the connection method of manually connecting the slave 200 or the automatic connection at the time of pairing. It is also possible to connect the slave 200 by the specified connection method by the person specifying in advance.
For example, the connection method is displayed together with the slave importance 116c of the slave 200 in the connection priority list information 116 of the registration screen displayed to the user in step S41 of FIG. 7, and the user is made to specify the connection method.
Next, in step S17 or step S57, when the slave connection control unit 11 determines that the number of connected slaves is the upper limit, the connection method of the target slave 200 set in the connection priority list information 116 is determined. By referring to it, it is determined whether to connect manually or automatically, and the slave 200 is operated so as to be connected by the determined connection method.
By operating in this way, the slave 200 can be connected by the connection method specified by the user.

自動によるスレーブ200の接続が実現できることから、あらかじめスケジュール設定しておくことによって、設定されたスケジュールに従って、スレーブ接続優先順位116aが低い接続済スレーブ200との接続を切断し、新たなスレーブ200との接続を確立することが可能となる。
スケジューリングによるスレーブ200の切替について、図10、図11を用いて説明する。
Since the slave 200 can be automatically connected, by setting the schedule in advance, the connection with the connected slave 200 having the lower slave connection priority 116a is disconnected according to the set schedule, and the connection with the new slave 200 is established. It is possible to establish a connection.
Switching of the slave 200 by scheduling will be described with reference to FIGS. 10 and 11.

スレーブ接続制御部11は、スケジュール管理一覧情報118を取得する(ステップS71)。スケジュール管理一覧情報118の取得は、スケジュール管理一覧格納部18から取得することにより行う。
スケジュール管理一覧格納部18が格納するスケジュール管理一覧情報118の例を図15で説明する。
The slave connection control unit 11 acquires the schedule management list information 118 (step S71). The schedule management list information 118 is acquired from the schedule management list storage unit 18.
An example of the schedule management list information 118 stored in the schedule management list storage unit 18 will be described with reference to FIG.

スケジュール管理一覧情報118は、リストNo、デバイスNo、開始時間、終了時間等から構成される。
リストNoは、複数のスレーブ200をまとめて設定する際に識別するために付与する識別子である。
デバイスNoは、スレーブ接続切替装置500において、スレーブ200を識別するために付与する識別子である。デバイスNoによって、ペアリング済スレーブ一覧情報113、接続済スレーブ一覧情報114、スレーブ接続優先順位一覧情報116と関連付けられる。
開始時間は、対象のスレーブ200を接続する時間を表す。
終了時間は、接続されたスレーブ200との接続を切断する時間を表す。
The schedule management list information 118 is composed of a list No., a device No., a start time, an end time, and the like.
The list No. is an identifier assigned to identify a plurality of slaves 200 when they are collectively set.
The device No. is an identifier given to identify the slave 200 in the slave connection switching device 500. The device number is associated with the paired slave list information 113, the connected slave list information 114, and the slave connection priority list information 116.
The start time represents the time to connect the target slave 200.
The end time represents the time to disconnect from the connected slave 200.

スケジュール管理一覧情報118は、スケジュール管理一覧情報118の開始時間、終了時間をキーとして、対象となるデバイスNoがあれば、スレーブ接続制御部11は、デバイスNoをスケジュール管理一覧情報118から取得する。 The schedule management list information 118 uses the start time and end time of the schedule management list information 118 as keys, and if there is a target device number, the slave connection control unit 11 acquires the device number from the schedule management list information 118.

対象スレーブ200がある場合はステップS74に進む(ステップS72でYes)。対象スレーブ200がない場合はステップS73に進む(ステップS72でNo)。 If there is a target slave 200, the process proceeds to step S74 (Yes in step S72). If there is no target slave 200, the process proceeds to step S73 (No in step S72).

接続/切断対象スレーブ200がない場合は一定時間待機する(ステップS73)。一定時間待機後、ステップS71に戻る。 If there is no slave 200 to be connected / disconnected, the device waits for a certain period of time (step S73). After waiting for a certain period of time, the process returns to step S71.

ステップS74〜ステップS82までの処理は、自動によるスレーブ200の接続におけるステップS54〜ステップS62までの処理と同じであるため、説明を省略する。
このようにして、スケジューリングによるスレーブ200の切替が可能となる。
Since the processes from step S74 to step S82 are the same as the processes from step S54 to step S62 in the automatic connection of the slave 200, the description thereof will be omitted.
In this way, the slave 200 can be switched by scheduling.

最後に、スレーブ接続優先順位一覧情報116の生成方法について、説明する。
Bluetooth(登録商標)通信におけるスレーブ200は、マスタ100からの指示によりデータをマスタ100に送信する。
マスタ100の送受信部は、スレーブ200から送信されたデータを受信し、受信したデータを取得データ格納部20に格納する。また、マスタ100からの指示に基づいて、スレーブ200の電源残量を取得し取得データ格納部20に格納する。
Finally, a method of generating the slave connection priority list information 116 will be described.
The slave 200 in Bluetooth (registered trademark) communication transmits data to the master 100 according to an instruction from the master 100.
The transmission / reception unit of the master 100 receives the data transmitted from the slave 200, and stores the received data in the acquisition data storage unit 20. Further, based on the instruction from the master 100, the remaining power remaining amount of the slave 200 is acquired and stored in the acquired data storage unit 20.

また、マスタ100の送受信部は、データの格納と併せて、スレーブ200とのデータのログをログ格納部21に格納する。
ログ管理情報には、接続日時、通信結果等から構成される。
Further, the transmission / reception unit of the master 100 stores the data log with the slave 200 in the log storage unit 21 together with the data storage.
The log management information is composed of connection date and time, communication result, and the like.

取得したデータは必要に応じてデータ送受信部19によって、サーバ300に送信される。
スレーブ接続優先順位一覧情報116の電源残量、通信状態、経過時間の値は、ログ管理情報に格納された電源残量と通信結果を集計することによって生成される。
The acquired data is transmitted to the server 300 by the data transmission / reception unit 19 as needed.
The values of the remaining power, the communication status, and the elapsed time of the slave connection priority list information 116 are generated by aggregating the remaining power and the communication result stored in the log management information.

本実施の形態1におけるスレーブ接続切替装置500では、スレーブ接続優先順位116aに基づき、常時一定数のスレーブ200と接続可能な状態を管理する管理部12と、新たなスレーブ200からの接続要求を受信した後、既に接続済みスレーブ200が一定数を超えると判定した場合、管理部12が管理する接続済スレーブ200のスレーブ接続優先順位116aを取得し、スレーブ接続優先順位116aが低い接続済スレーブ200との接続を切断し、新たなスレーブ200との接続を確立することができる。 In the slave connection switching device 500 according to the first embodiment, based on the slave connection priority 116a, the management unit 12 that manages the state in which a certain number of slaves 200 can be connected at all times and the connection request from the new slave 200 are received. If it is determined that the number of already connected slaves 200 exceeds a certain number, the slave connection priority 116a of the connected slaves 200 managed by the management unit 12 is acquired, and the connected slaves 200 having a low slave connection priority 116a are obtained. Can be disconnected and a new connection with the slave 200 can be established.

ペアリング済スレーブ200のスレーブ属性情報116bからスレーブ接続優先順位116aを算出することができる。 The slave connection priority 116a can be calculated from the slave attribute information 116b of the paired slave 200.

接続済スレーブ一覧情報114をスレーブ接続優先順位一覧情報116と併せて画面表示し、スレーブ200の切断指示を受け付けることで、利用者に切断対象のスレーブ200を選択する示唆を与えることができる。 By displaying the connected slave list information 114 together with the slave connection priority list information 116 on the screen and accepting the disconnection instruction of the slave 200, it is possible to give the user a suggestion to select the slave 200 to be disconnected.

スレーブ200の接続と切断をスケジュールすることが可能となる。 It is possible to schedule the connection and disconnection of the slave 200.

スレーブ接続優先順位116aを利用者の設定するスレーブ重要度116cとスレーブ200の電源残量とスレーブ200の通信状態とスレーブ200の接続経過時間を加味した値とすることができる。 The slave connection priority 116a can be a value that takes into account the slave importance 116c set by the user, the remaining power remaining amount of the slave 200, the communication state of the slave 200, and the elapsed connection time of the slave 200.

スレーブ重要度116cが切断不可の状態である前記スレーブ200を、スレーブ200切断対象外とすることができる。 The slave 200 in which the slave importance 116c cannot be disconnected can be excluded from the slave 200 disconnection target.

実施の形態2.
本発明の実施の形態2のスレーブ接続切替装置500について説明する。実施の形態1と同じものについては同一符号を付しており、重複する説明は省略する。
図16は、実施の形態2に係るスレーブ接続切替装置500が適用されるシステムの構成を示す構成図である。
Embodiment 2.
The slave connection switching device 500 according to the second embodiment of the present invention will be described. The same reference numerals are given to the same components as those in the first embodiment, and duplicate description will be omitted.
FIG. 16 is a configuration diagram showing a configuration of a system to which the slave connection switching device 500 according to the second embodiment is applied.

本実施の形態2のスレーブ接続切替装置500が実施の形態1のスレーブ接続切替装置500と異なる点は、実施の形態1のスレーブ接続切替装置500は、マスタ100で構成されていたが、実施の形態2のスレーブ接続切替装置500は、マスタ100とネットワーク400を介して接続されたサーバ300から構成される点が異なる。 The difference between the slave connection switching device 500 of the second embodiment and the slave connection switching device 500 of the first embodiment is that the slave connection switching device 500 of the first embodiment is composed of the master 100. The slave connection switching device 500 of the second embodiment is different in that it is composed of a master 100 and a server 300 connected via a network 400.

図17は、実施の形態2に係るスレーブ接続切替装置500の詳細な構成を示す構成図である。この図17では、図16で示したネットワーク400を省略している。
図17において、スレーブ接続切替装置500が実施の形態1のスレーブ接続切替装置500と異なる点は、マスタ100にあるペアリング済スレーブ一覧格納部13、接続済スレーブ一覧格納部14、スレーブ接続優先順位一覧格納部16、スケジュール管理一覧格納部18の機能がサーバ300に設けられている点である。
FIG. 17 is a configuration diagram showing a detailed configuration of the slave connection switching device 500 according to the second embodiment. In FIG. 17, the network 400 shown in FIG. 16 is omitted.
In FIG. 17, the slave connection switching device 500 differs from the slave connection switching device 500 of the first embodiment in that the paired slave list storage unit 13, the connected slave list storage unit 14, and the slave connection priority order in the master 100. The function of the list storage unit 16 and the schedule management list storage unit 18 is provided in the server 300.

ペアリング済スレーブ一覧格納部33、接続済スレーブ一覧格納部34、スレーブ接続優先順位一覧格納部36、スケジュール管理一覧格納部38がサーバ300に設けられていることから、マスタ100の各部とサーバ300のペアリング済スレーブ一覧格納部33、接続済スレーブ一覧格納部34、スレーブ接続優先順位一覧格納部36、スケジュール管理一覧格納部38とのデータの送受信は、マスタ100のデータ送受信部19からネットワーク400を介してサーバ300に設けられたデータ送受信部39を経由して行われる。
それ以外は、実施の形態1のスレーブ接続切替装置500と同じであるため、説明を省略する。
Since the paired slave list storage unit 33, the connected slave list storage unit 34, the slave connection priority list storage unit 36, and the schedule management list storage unit 38 are provided in the server 300, each unit of the master 100 and the server 300 are provided. Data transmission / reception from the paired slave list storage unit 33, the connected slave list storage unit 34, the slave connection priority list storage unit 36, and the schedule management list storage unit 38 is performed from the data transmission / reception unit 19 of the master 100 to the network 400. This is performed via the data transmission / reception unit 39 provided in the server 300.
Other than that, it is the same as the slave connection switching device 500 of the first embodiment, and thus the description thereof will be omitted.

以上のような構成のスレーブ接続切替装置500のマスタ100の各機能は、図18に示したようなハードウェアにより実現される。マスタ100については、図3と同じであるため、説明を省略する。 Each function of the master 100 of the slave connection switching device 500 having the above configuration is realized by the hardware as shown in FIG. Since the master 100 is the same as that in FIG. 3, the description thereof will be omitted.

スレーブ接続切替装置500のサーバ300の各機能は、図18に示したようなハードウェアにより実現される。このハードウェアは、CPU(Central Processing Unit)等の処理装置310と、ROM(Read Only Memory)やハードディスク装置等の記憶装置320、他のハードウェアとネットワーク400によって接続される通信装置330、キーボードやマウスといった入力装置350、スピーカーやディスプレイ等の出力装置360とがバス接続された構成となっている。なお、CPUは自身にメモリを備えていてもよい。 Each function of the server 300 of the slave connection switching device 500 is realized by the hardware as shown in FIG. This hardware includes a processing device 310 such as a CPU (Central Processing Unit), a storage device 320 such as a ROM (Read Only Memory) and a hard disk device, a communication device 330 connected to other hardware by a network 400, a keyboard, and the like. An input device 350 such as a mouse and an output device 360 such as a speaker and a display are connected by a bus. The CPU may have its own memory.

ペアリング済スレーブ一覧格納部33、接続済スレーブ一覧格納部34、スレーブ接続優先順位一覧格納部36、スケジュール管理一覧格納部38は、記憶装置320により実現される。
データ送受信部39は、記憶装置320に記憶されたプログラムが処理装置310で実行されることにより実現される。
The paired slave list storage unit 33, the connected slave list storage unit 34, the slave connection priority list storage unit 36, and the schedule management list storage unit 38 are realized by the storage device 320.
The data transmission / reception unit 39 is realized by executing the program stored in the storage device 320 in the processing device 310.

なお、スレーブ接続切替装置500の各機能を実現する方法は、上記のような処理装置とプログラムの組み合わせに限らず、処理装置プログラムをインプリメントしたシステムLSI(Large Scale Integrated Circuit)のようなハードウェア単体で実現するようにしてもよいし、一部の機能を専用のハードウェアで実現し、一部を処理装置とプログラムの組み合わせで実現するようにしてもよい。 The method of realizing each function of the slave connection switching device 500 is not limited to the combination of the processing device and the program as described above, and is a single piece of hardware such as a system LSI (Large Scale Integrated Circuit) that implements the processing device program. Alternatively, some functions may be realized by dedicated hardware and some may be realized by a combination of a processing device and a program.

以上のような構成のスレーブ接続切替装置500における動作は、実施の形態1と同じであるため、説明を省略する。 Since the operation of the slave connection switching device 500 having the above configuration is the same as that of the first embodiment, the description thereof will be omitted.

以上のような本実施の形態2によれば、ペアリング済スレーブ一覧格納部33、接続済スレーブ一覧格納部34、スレーブ接続優先順位一覧格納部36、スケジュール管理一覧格納部38をサーバ300内に格納することから、複数のマスタ100が構成される環境においては、ペアリング済スレーブ一覧格納部33、接続済スレーブ一覧格納部34、スレーブ接続優先順位一覧格納部36、スケジュール管理一覧格納部38に格納される情報を複数マスタ間で共有することが可能となる。 According to the second embodiment as described above, the paired slave list storage unit 33, the connected slave list storage unit 34, the slave connection priority list storage unit 36, and the schedule management list storage unit 38 are housed in the server 300. Since it is stored, in an environment in which a plurality of masters 100 are configured, the paired slave list storage unit 33, the connected slave list storage unit 34, the slave connection priority list storage unit 36, and the schedule management list storage unit 38 The stored information can be shared among a plurality of masters.

11 スレーブ接続制御部、12 管理部、15 スレーブ接続優先順位決定部、116a スレーブ接続優先順位、116b スレーブ属性情報、116c スレーブ重要度、500 スレーブ接続切替装置。 11 Slave connection control unit, 12 Management unit, 15 Slave connection priority determination unit, 116a Slave connection priority, 116b Slave attribute information, 116c Slave importance, 500 Slave connection switching device.

Claims (6)

スレーブ接続優先順位に基づき、上限数範囲内のスレーブと接続可能な状態を管理する管理部と、
新たなスレーブからの接続要求を受信したとき、既に接続済スレーブの数が上限数であると判定した場合、
前記管理部が管理する前記接続済スレーブの前記スレーブ接続優先順位を取得し、前記スレーブ接続優先順位が低い前記接続済スレーブとの接続を切断し、前記新たなスレーブとの接続を確立するスレーブ接続制御部と、
を備えるスレーブ接続切替装置。
A management unit that manages the status of being able to connect to slaves within the upper limit based on the slave connection priority,
When it is determined that the number of already connected slaves is the upper limit when receiving a connection request from a new slave,
A slave connection that acquires the slave connection priority of the connected slave managed by the management unit, disconnects the connection with the connected slave having a lower slave connection priority, and establishes a connection with the new slave. Control unit and
Slave connection switching device equipped with.
前記スレーブ接続制御部は、あらかじめ設定されたスケジュールに従って、前記新たなスレーブとの接続を確立するとき、既に接続済スレーブの数が上限数であると判定した場合、前記スレーブ接続優先順位が低い前記接続済スレーブとの接続を切断し、前記新たなスレーブとの接続を確立することを特徴とする
請求項1に記載のスレーブ接続切替装置。
When the slave connection control unit determines that the number of slaves already connected is the upper limit when establishing a connection with the new slave according to a preset schedule, the slave connection priority is low. The slave connection switching device according to claim 1, wherein the connection with the connected slave is disconnected and the connection with the new slave is established.
前記管理部が管理する前記接続済スレーブの接続状態を表すスレーブ属性情報から前記スレーブ接続優先順位を算出するスレーブ接続優先順位決定部
を備える請求項1に記載のスレーブ接続切替装置。
The slave connection switching device according to claim 1, further comprising a slave connection priority determination unit that calculates the slave connection priority from slave attribute information representing the connection state of the connected slave managed by the management unit.
前記管理部は、前記スレーブ属性情報と前記スレーブ接続優先順位決定部が算出した前記スレーブ接続優先順位とを画面表示し、いずれかの前記接続済スレーブの切断指示を利用者から受け付け、
前記スレーブ接続制御部は、利用者からの切断指示に基づき、前記接続済スレーブとの接続を切断し、前記新たなスレーブとの接続を確立することを特徴とする
請求項3に記載のスレーブ接続切替装置。
The management unit displays the slave attribute information and the slave connection priority calculated by the slave connection priority determination unit on the screen, and receives a disconnection instruction of any of the connected slaves from the user.
The slave connection according to claim 3, wherein the slave connection control unit disconnects the connection with the connected slave and establishes a connection with the new slave based on the disconnection instruction from the user. Switching device.
前記スレーブ属性情報は、利用者によって設定されるスレーブ重要度と電源残量と通信状態と経過時間とからなることを特徴とする請求項3または4のいずれか1項に記載のスレーブ接続切替装置。 The slave connection switching device according to any one of claims 3 or 4, wherein the slave attribute information includes a slave importance set by a user, a remaining power supply, a communication state, and an elapsed time. .. スレーブ接続優先順位に基づき、上限数範囲内のスレーブと接続可能な状態を管理する管理工程と、
新たなスレーブからの接続要求を受信したとき、既に接続済スレーブの数が上限数であると判定した場合、
前記管理工程により管理する前記接続済スレーブの前記スレーブ接続優先順位を取得し、前記スレーブ接続優先順位が低い前記接続済スレーブとの接続を切断し、前記新たなスレーブとの接続を確立するスレーブ接続制御工程と、
を備えるスレーブ接続切替方法。
A management process that manages the status of being able to connect to slaves within the upper limit based on the slave connection priority, and
When it is determined that the number of already connected slaves is the upper limit when receiving a connection request from a new slave,
A slave connection that acquires the slave connection priority of the connected slave managed by the management process, disconnects the connection with the connected slave having a lower slave connection priority, and establishes a connection with the new slave. Control process and
Slave connection switching method including.
JP2019062999A 2019-03-28 2019-03-28 Slave connection switching device and slave connection switching method Active JP6745935B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019062999A JP6745935B1 (en) 2019-03-28 2019-03-28 Slave connection switching device and slave connection switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019062999A JP6745935B1 (en) 2019-03-28 2019-03-28 Slave connection switching device and slave connection switching method

Publications (2)

Publication Number Publication Date
JP6745935B1 JP6745935B1 (en) 2020-08-26
JP2020162101A true JP2020162101A (en) 2020-10-01

Family

ID=72146137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019062999A Active JP6745935B1 (en) 2019-03-28 2019-03-28 Slave connection switching device and slave connection switching method

Country Status (1)

Country Link
JP (1) JP6745935B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007243557A (en) * 2006-03-08 2007-09-20 Oki Electric Ind Co Ltd Ip telephone system for accommodating wireless terminal
JP2010524346A (en) * 2007-04-06 2010-07-15 インテル コーポレイション System and method for scheduling transmissions for coexistence of different radio protocols
JP2015070556A (en) * 2013-09-30 2015-04-13 ブラザー工業株式会社 Radio communication apparatus
JP2015523823A (en) * 2012-07-31 2015-08-13 華為技術有限公司Huawei Technologies Co.,Ltd. Terminal selection method, system based on self-organizing network, and network entity
JP2017175295A (en) * 2016-03-22 2017-09-28 キヤノン株式会社 Information processing apparatus, control method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007243557A (en) * 2006-03-08 2007-09-20 Oki Electric Ind Co Ltd Ip telephone system for accommodating wireless terminal
JP2010524346A (en) * 2007-04-06 2010-07-15 インテル コーポレイション System and method for scheduling transmissions for coexistence of different radio protocols
JP2015523823A (en) * 2012-07-31 2015-08-13 華為技術有限公司Huawei Technologies Co.,Ltd. Terminal selection method, system based on self-organizing network, and network entity
JP2015070556A (en) * 2013-09-30 2015-04-13 ブラザー工業株式会社 Radio communication apparatus
JP2017175295A (en) * 2016-03-22 2017-09-28 キヤノン株式会社 Information processing apparatus, control method, and program

Also Published As

Publication number Publication date
JP6745935B1 (en) 2020-08-26

Similar Documents

Publication Publication Date Title
WO2018161873A1 (en) Method, device and system for controlling bluetooth networking between physical devices
EP3232732A1 (en) Communication device, communication device control method, and program
JPWO2006018898A1 (en) Wireless network system
CN106453021A (en) Internet of things device control method and device
EP2874465B1 (en) Method and system for remote equipment data installation
CN107211358A (en) The control method and program of communication equipment, communication equipment
JP5171392B2 (en) Communication system, information holding device, and management device
JP6745935B1 (en) Slave connection switching device and slave connection switching method
CN111034126A (en) Station number setting device for network device
JP2021132374A (en) Method for monitoring apparatus
JP6990144B2 (en) Server device, pairing system
JP6898148B2 (en) System and group communication control program for group communication
JP2017163381A (en) Information output server, information output method, and information output program
JP2015045975A (en) Management server, management system, control method and program
JP2019071005A (en) Managing terminal, control device, control system, firmware updating method and program
US11800583B1 (en) Communication system and device
JP2015226178A (en) Wireless lan communication system and wireless lan communication method
JP2012175160A (en) Wireless communication device, wireless communication method, program, and wireless communication system
JP5958901B2 (en) COMMUNICATION INFORMATION PROVIDING SYSTEM, INFORMATION PROVIDING DEVICE, TERMINAL, AND METHOD FOR SELECTING RADIO ACCESS POINT
CN111602408B (en) Candidate extraction device, candidate extraction method, and program
DK181360B1 (en) Communication system with accessory device configuration
JP2008263279A (en) Communication network system and inter-terminal communication method
US11586720B2 (en) Display system, reception device, display device and communication connection method
JP5640793B2 (en) Service provision system
JP2018169642A (en) Image forming system and display method of explanatory document data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190405

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200512

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200623

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200804

R150 Certificate of patent or registration of utility model

Ref document number: 6745935

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150