JP7072231B2 - Communication devices, communication systems, communication methods, and programs - Google Patents

Communication devices, communication systems, communication methods, and programs Download PDF

Info

Publication number
JP7072231B2
JP7072231B2 JP2019035518A JP2019035518A JP7072231B2 JP 7072231 B2 JP7072231 B2 JP 7072231B2 JP 2019035518 A JP2019035518 A JP 2019035518A JP 2019035518 A JP2019035518 A JP 2019035518A JP 7072231 B2 JP7072231 B2 JP 7072231B2
Authority
JP
Japan
Prior art keywords
unit
communication
data
packet
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019035518A
Other languages
Japanese (ja)
Other versions
JP2020141262A (en
JP2020141262A5 (en
Inventor
健太郎 東
哲也 桑名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Silex Technology Inc
Original Assignee
Silex Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Silex Technology Inc filed Critical Silex Technology Inc
Priority to JP2019035518A priority Critical patent/JP7072231B2/en
Publication of JP2020141262A publication Critical patent/JP2020141262A/en
Publication of JP2020141262A5 publication Critical patent/JP2020141262A5/ja
Application granted granted Critical
Publication of JP7072231B2 publication Critical patent/JP7072231B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、無線通信を行う通信装置、通信システム、通信方法、及び、プログラムに関する。 The present invention relates to a communication device, a communication system, a communication method, and a program for performing wireless communication.

従来、アクセスポイント等の親機と、当該親機と通信する複数の子機等の通信装置とが無線ネットワークに接続された通信システムがある(例えば、特許文献1参照)。 Conventionally, there is a communication system in which a master unit such as an access point and a communication device such as a plurality of slave units communicating with the master unit are connected to a wireless network (see, for example, Patent Document 1).

特許文献1に開示されている通信装置は、第1の通信プロトコルに基づいてアクセスポイントと通信する第1の通信手段と、第2の通信プロトコルに基づいて他の通信装置と通信する第2の通信手段と、を備える。第1の通信手段は、例えば、無線LAN(Local Aria Network)に基づいて無線通信を行い、第2の通信手段は、例えば、Bluetooth(登録商標)に基づいて無線通信を行う。 The communication device disclosed in Patent Document 1 is a first communication means that communicates with an access point based on a first communication protocol, and a second communication device that communicates with another communication device based on a second communication protocol. It is equipped with a communication means. The first communication means performs wireless communication based on, for example, a wireless LAN (Local Area Network), and the second communication means performs wireless communication based on, for example, Bluetooth (registered trademark).

特開2018-191256号公報JP-A-2018-191256

しかしながら、特許文献1に記載の通信装置を複数台設置し、複数の当該通信装置が相互に無線通信する通信システムでは、送信時にパケットの衝突が起こり、当該通信システムが破綻し得る。具体的には、当該通信システムの場合、無線LANに基づいて行われる無線通信では、CSMA/CA(Carrier Sense Multiple Access/Collision Avoidance)方式などの仕組みによりパケット同士の衝突を回避できる。 However, in a communication system in which a plurality of communication devices described in Patent Document 1 are installed and the plurality of communication devices communicate wirelessly with each other, packet collision may occur at the time of transmission, and the communication system may break down. Specifically, in the case of the communication system, in wireless communication performed based on a wireless LAN, collisions between packets can be avoided by a mechanism such as a CSMA / CA (Carrier Sense Multiple Access / Collection Avoidance) method.

一方、Bluetoothに基づく無線通信では、当該仕組みがなく、自装置の送信すべきタイミングでパケットを送信してしまい、他の通信装置は自装置からパケットが送信されたことを知るすべがない。このように、無線LANおよびBluetoothに基づく無線通信を併用する通信システムでは、その両方にパケット同士を回避する仕組みが必要となる。 On the other hand, in wireless communication based on Bluetooth, there is no such mechanism, and a packet is transmitted at a timing to be transmitted by the own device, and other communication devices have no way of knowing that the packet has been transmitted from the own device. As described above, in a communication system in which wireless LAN and wireless communication based on Bluetooth are used together, a mechanism for avoiding packets is required for both of them.

本発明は、かかる通信システムにおけるBluetoothに基づく無線通信で、パケットの衝突を抑制できる通信装置等を提供する。 The present invention provides a communication device and the like capable of suppressing packet collision in wireless communication based on Bluetooth in such a communication system.

本発明の一態様に係る通信装置は、親機、及び、それぞれが前記親機と通信する子機として機能する複数の通信装置を備えるシステムにおける前記複数の通信装置のうちの1つの通信装置であって、前記親機と無線通信するための第1通信部と、Bluetooth(登録商標)に基づいて他の通信装置と無線通信するための第2通信部と、前記他の通信装置から前記第2通信部を介して第1データを含むパケットを受信した場合に、前記第1データを含むパケットを受信した時刻に基づいて、自装置がパケットを送信する送信タイミングを算出する算出部と、前記算出部が算出した前記送信タイミングで、前記第1データ及び第2データを含むパケットを、前記第1通信部を介して送信する制御部と、を備える。 The communication device according to one aspect of the present invention is one of the plurality of communication devices in a system including a master unit and a plurality of communication devices each functioning as a slave unit that communicates with the master unit. Therefore, a first communication unit for wireless communication with the master unit, a second communication unit for wireless communication with another communication device based on Bluetooth (registered trademark), and the first communication unit from the other communication device. 2 A calculation unit that calculates the transmission timing at which the own device transmits a packet based on the time when the packet containing the first data is received when the packet containing the first data is received via the communication unit, and the above. It includes a control unit that transmits a packet containing the first data and the second data via the first communication unit at the transmission timing calculated by the calculation unit.

本態様によれば、他の通信装置が送信したBluetoothに基づくパケットを受信した時刻から、自装置がパケットを送信するタイミングである送信タイミングを算出して送信する。そのため、例えば、複数の通信装置が算出する送信タイミングを異なるように設定しておくことで、複数の通信装置のそれぞれは、互いに異なる送信タイミングでパケットを送信する。これにより、本態様によれば、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。例えば、本態様によれば、Bluetoothに基づく無線通信で親機と複数の通信装置のそれぞれとがパケットを送信する場合において、パケットの衝突を抑制できる。 According to this aspect, the transmission timing, which is the timing at which the own device transmits the packet, is calculated and transmitted from the time when the packet based on Bluetooth transmitted by another communication device is received. Therefore, for example, by setting the transmission timings calculated by the plurality of communication devices to be different, each of the plurality of communication devices transmits packets at different transmission timings. Thereby, according to this aspect, the collision of packets can be suppressed in the wireless communication based on Bluetooth. For example, according to this aspect, when a master unit and each of a plurality of communication devices transmit a packet in wireless communication based on Bluetooth, it is possible to suppress a packet collision.

また、例えば、前記制御部は、前記算出部が算出した前記送信タイミングで、さらに、前記第2データを含むパケットを、前記第2通信部を介して送信する。 Further, for example, the control unit further transmits a packet containing the second data via the second communication unit at the transmission timing calculated by the calculation unit.

本態様によれば、複数の通信装置のそれぞれがBluetoothに基づく無線通信でパケットを送信する場合において、パケットの衝突を抑制できる。 According to this aspect, when each of the plurality of communication devices transmits a packet by wireless communication based on Bluetooth, the collision of the packet can be suppressed.

また、例えば、上記通信装置は、さらに、パケットの送信を許可する時間を示す時間情報を記憶する記憶部を備え、前記算出部は、前記第1データを含むパケットを受信した時刻及び前記時間情報に基づいて前記送信タイミングを算出し、前記制御部は、前記送信タイミングから前記時間情報が示す時間内に、前記第1データ及び前記第2データを含むパケットを、前記第1通信部を介して送信し、且つ、前記第2データを含むパケットを、前記第2通信部を介して送信する。 Further, for example, the communication device further includes a storage unit for storing time information indicating a time for permitting transmission of the packet, and the calculation unit includes a time when the packet including the first data is received and the time information. The transmission timing is calculated based on the above, and the control unit sends a packet containing the first data and the second data within the time indicated by the time information from the transmission timing via the first communication unit. The packet to be transmitted and containing the second data is transmitted via the second communication unit.

本態様によれば、複数の通信装置のそれぞれの通信に係る時刻を算出する送信タイミングに反映することができる。そのため、算出部は、パケットの衝突を回避するための送信タイミングをさらに精度よく算出できる。 According to this aspect, it can be reflected in the transmission timing for calculating the time related to the communication of each of the plurality of communication devices. Therefore, the calculation unit can more accurately calculate the transmission timing for avoiding packet collision.

また、例えば、前記記憶部は、さらに、前記複数の通信装置がパケットを送信する順序を示す順序情報を記憶し、前記算出部は、前記第1データを含むパケットを受信した時刻、前記時間情報、及び、前記順序情報に基づいて前記送信タイミングを算出する。 Further, for example, the storage unit further stores order information indicating the order in which the plurality of communication devices transmit packets, and the calculation unit further stores the time when the packet including the first data is received and the time information. , And the transmission timing is calculated based on the order information.

本態様によれば、複数の通信装置のそれぞれがパケットを送信する時間を算出する送信タイミングに反映することができる。そのため、算出部は、パケットの衝突を回避するための送信タイミングをさらに精度よく算出できる。 According to this aspect, it can be reflected in the transmission timing for calculating the time for each of the plurality of communication devices to transmit the packet. Therefore, the calculation unit can more accurately calculate the transmission timing for avoiding packet collision.

また、本発明の一態様に係る通信システムは、上記通信装置を複数備える。 Further, the communication system according to one aspect of the present invention includes a plurality of the above communication devices.

本態様によれば、他の通信装置が送信したBluetoothに基づくパケットを受信した時刻から、自装置がパケットを送信する送信タイミングを算出して送信する。そのため、例えば、複数の通信装置が算出する送信タイミングを異なるように設定しておくことで、複数の通信装置のそれぞれは、互いに異なる送信タイミングでパケットを送信する。これにより、本態様によれば、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。 According to this aspect, the transmission timing at which the own device transmits the packet is calculated and transmitted from the time when the packet based on Bluetooth transmitted by another communication device is received. Therefore, for example, by setting the transmission timings calculated by the plurality of communication devices to be different, each of the plurality of communication devices transmits packets at different transmission timings. Thereby, according to this aspect, the collision of packets can be suppressed in the wireless communication based on Bluetooth.

また、本発明の一態様に係る通信方法は、親機、及び、それぞれが前記親機と通信する子機として機能する複数の通信装置を備えるシステムにおける前記複数の通信装置のうちの1つの通信装置が実行する通信方法であって、Bluetooth(登録商標)に基づいて他の通信装置から第1データを含むパケットを受信する受信ステップと、前記受信ステップで前記第1データを含むパケットを受信した時刻に基づいて、自装置がパケットを送信する送信タイミングを算出する算出ステップと、前記算出ステップで算出した前記送信タイミングで、前記第1データ及び第2データを含むパケットを無線通信で前記親機に送信する送信ステップと、を含む。 Further, the communication method according to one aspect of the present invention is communication of one of the plurality of communication devices in a system including a master unit and a plurality of communication devices each functioning as a slave unit for communicating with the master unit. A communication method executed by the device, the receiving step of receiving a packet containing the first data from another communication device based on Bluetooth®, and the receiving step of receiving the packet containing the first data. At the calculation step of calculating the transmission timing at which the own device transmits a packet based on the time and the transmission timing calculated in the calculation step, the packet containing the first data and the second data is wirelessly transmitted to the master unit. Includes a send step to send to.

本態様によれば、Bluetoothに基づくパケットを受信した時刻から、パケットを送信する送信タイミングを算出して送信する。そのため、例えば、それぞれが本態様を実行する複数の通信装置が算出する送信タイミングを異なるように設定しておくことで、複数の通信装置のそれぞれは、互いに異なる送信タイミングでパケットを送信する。これにより、本態様によれば、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。例えば、本態様によれば、Bluetoothに基づく無線通信で親機とそれぞれが本態様に係る通信方法を実行する複数の通信装置のそれぞれとがパケットを送受信する場合において、パケットの衝突を抑制できる。 According to this aspect, the transmission timing for transmitting the packet is calculated from the time when the packet based on Bluetooth is received and transmitted. Therefore, for example, by setting the transmission timings calculated by the plurality of communication devices each executing the present embodiment to be different, each of the plurality of communication devices transmits packets at different transmission timings. Thereby, according to this aspect, the collision of packets can be suppressed in the wireless communication based on Bluetooth. For example, according to this aspect, when a master unit and each of a plurality of communication devices each executing the communication method according to this aspect transmit and receive packets in wireless communication based on Bluetooth, packet collision can be suppressed.

なお、本発明は、上記通信方法に含まれるステップをコンピュータに実行させるプログラムとして実現されてもよい。また、本発明は、そのプログラムを記録したコンピュータによって読み取り可能なCD-ROM等の記録媒体として実現されてもよい。また、本発明は、そのプログラムを示す情報、データ又は信号として実現されてもよい。そして、それらプログラム、情報、データ及び信号は、インターネット等の通信ネットワークを介して配信されてもよい。 The present invention may be realized as a program for causing a computer to execute the steps included in the above communication method. Further, the present invention may be realized as a recording medium such as a CD-ROM that can be read by a computer that records the program. Further, the present invention may be realized as information, data or a signal indicating the program. The programs, information, data and signals may be distributed via a communication network such as the Internet.

本発明の一態様に係る通信装置等によれば、アクセスポイントは、第2のステーションからのデータを確実に取得することができる。 According to the communication device or the like according to one aspect of the present invention, the access point can surely acquire the data from the second station.

図1は、実施の形態に係る通信システムの概要を説明するための模式図である。FIG. 1 is a schematic diagram for explaining an outline of a communication system according to an embodiment. 図2は、実施の形態に係る通信装置の特徴的な機能構成を示すブロック図である。FIG. 2 is a block diagram showing a characteristic functional configuration of the communication device according to the embodiment. 図3は、順序情報の具体例を示す図である。FIG. 3 is a diagram showing a specific example of order information. 図4は、実施の形態に係る通信装置がデータを送信する処理手順を説明するためのフローチャートである。FIG. 4 is a flowchart for explaining a processing procedure for transmitting data by the communication device according to the embodiment. 図5は、実施の形態に係る通信システムが備える各装置の処理手順の第1例を説明するためのシーケンス図である。FIG. 5 is a sequence diagram for explaining a first example of a processing procedure of each device included in the communication system according to the embodiment. 図6は、実施の形態に係る通信システムが備える各装置の処理手順の第2例を説明するためのシーケンス図である。FIG. 6 is a sequence diagram for explaining a second example of the processing procedure of each device included in the communication system according to the embodiment.

以下、本発明の実施の形態について、図面を用いて詳細に説明する。なお、以下で説明する実施の形態は、いずれも包括的又は具体的な例を示すものである。以下の実施の形態で示される数値、形状、材料、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序等は、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、独立請求項に記載されていない構成要素については、任意の構成要素として説明される。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. It should be noted that all of the embodiments described below show comprehensive or specific examples. The numerical values, shapes, materials, components, arrangement positions and connection forms of the components, steps, the order of steps, etc. shown in the following embodiments are examples, and are not intended to limit the present invention. Further, among the components in the following embodiments, the components not described in the independent claims are described as arbitrary components.

(実施の形態)
[構成]
<概要>
まず、図1~図3を参照しながら、実施の形態に係る通信装置及び当該通信装置を複数備える通信システムについて説明する。
(Embodiment)
[Constitution]
<Overview>
First, with reference to FIGS. 1 to 3, a communication device according to an embodiment and a communication system including a plurality of the communication devices will be described.

図1は、実施の形態に係る通信システム500の概要を説明するための模式図である。図2は、実施の形態に係る通信装置100の特徴的な機能構成を示すブロック図である。 FIG. 1 is a schematic diagram for explaining an outline of the communication system 500 according to the embodiment. FIG. 2 is a block diagram showing a characteristic functional configuration of the communication device 100 according to the embodiment.

なお、以下の説明では、子機101~104を特に区別しない場合、子機101~104を一般化して子機100と呼称して説明する場合がある。 In the following description, when the slave units 101 to 104 are not particularly distinguished, the slave units 101 to 104 may be generalized and referred to as the slave unit 100.

また、以下の説明では、センサ401~404を特に区別しない場合、センサ401~404を一般化してセンサ400と呼称して説明する場合がある。 Further, in the following description, when the sensors 401 to 404 are not particularly distinguished, the sensors 401 to 404 may be generalized and described as the sensor 400.

通信システム500は、例えば、複数のセンサ400によって検出されたデータを、そのそれぞれに接続された複数の子機(通信装置)100、及び、複数の子機100それぞれと無線通信可能な親機200を介して端末装置300に集めるシステムである。 The communication system 500 is, for example, a master unit 200 capable of wirelessly communicating data detected by a plurality of sensors 400 with a plurality of slave units (communication devices) 100 connected to each of the plurality of sensors 400 and each of the plurality of slave units 100. It is a system that collects data in the terminal device 300 via the above.

本実施の形態では、通信システム500は、複数の子機100と、親機200と、端末装置300と、複数のセンサ400と、を備える。 In the present embodiment, the communication system 500 includes a plurality of slave units 100, a master unit 200, a terminal device 300, and a plurality of sensors 400.

本実施の形態では、通信システム500は、4個の子機100と、4個の子機100に1つずつ通信可能に接続された4個のセンサ400と、4個の子機100と通信可能に接続された1つの親機200と、親機200と通信可能に接続された端末装置300と、を備える。なお、通信システム500が備える子機100及びセンサ400の数は、特に限定されない。通信システム500は、N(Nは2以上の整数)個の子機100と、N個の子機100に1つずつ通信可能に接続されたN個のセンサ400と、を備えていればよい。 In the present embodiment, the communication system 500 communicates with four slave units 100, four sensors 400 connected to the four slave units 100 so as to be able to communicate with each other, and four slave units 100. It includes one master unit 200 that is connectable to the master unit 200, and a terminal device 300 that is communicably connected to the master unit 200. The number of slave units 100 and sensors 400 included in the communication system 500 is not particularly limited. The communication system 500 may include N (N is an integer of 2 or more) slave units 100 and N sensors 400 connected to each of the N slave units 100 so as to be able to communicate with each other. ..

子機100は、通信システム500において、センサ400、及び、親機200と通信する複数の通信装置である。具体的には、子機100は、センサ400で検出されたデータ(センサデータ)を取得し、親機200に無線通信によって送信する。子機100は、センサ400が検出したセンサデータを親機200に送信する中継機として機能する。 The slave unit 100 is a plurality of communication devices that communicate with the sensor 400 and the master unit 200 in the communication system 500. Specifically, the slave unit 100 acquires the data (sensor data) detected by the sensor 400 and transmits it to the master unit 200 by wireless communication. The slave unit 100 functions as a repeater for transmitting the sensor data detected by the sensor 400 to the master unit 200.

親機200は、複数の子機100と無線通信可能に接続されており、且つ、端末装置300と通信可能に接続されている通信装置である。親機200は、例えば、アクセスポイントである。なお、親機200は、端末装置300と無線通信可能に接続されていてもよいし、有線通信可能に接続されていてもよい。 The master unit 200 is a communication device that is connected to a plurality of slave units 100 in a wireless communication manner and is also connected to a terminal device 300 in a communicable manner. The master unit 200 is, for example, an access point. The master unit 200 may be connected to the terminal device 300 so as to be capable of wireless communication, or may be connected so as to be capable of wire communication.

端末装置300は、複数のセンサ400で検出された温度を示すセンサデータを収集する装置である。端末装置300は、例えば、パーソナルコンピュータ、サーバ装置等のコンピュータ、タブレット端末、スマートフォン等である。 The terminal device 300 is a device that collects sensor data indicating the temperature detected by the plurality of sensors 400. The terminal device 300 is, for example, a personal computer, a computer such as a server device, a tablet terminal, a smartphone, or the like.

センサ400は、任意の情報を検出することができるセンサである。センサ400は、例えば、産業機器に設置され当該産業機器の稼働状態(温度や可動部品の座標位置情報など)を検出するセンサであって、本実施の形態では、温度を検出するための温度センサとする。センサ400は、例えば、検出した温度を示すセンサデータ(温度データ)を、センサ400と通信可能に接続された子機100に送信する。子機100は、センサ400が送信した温度データを受信することで、当該温度データであるセンサデータを取得する。例えば、センサ400は、予め定められた時刻に、温度を検出して、検出した温度を示すセンサデータを子機100に送信する。 The sensor 400 is a sensor capable of detecting arbitrary information. The sensor 400 is, for example, a sensor installed in an industrial device and detecting an operating state (temperature, coordinate position information of moving parts, etc.) of the industrial device, and in the present embodiment, a temperature sensor for detecting the temperature. And. For example, the sensor 400 transmits sensor data (temperature data) indicating the detected temperature to the slave unit 100 communicably connected to the sensor 400. The slave unit 100 acquires the sensor data, which is the temperature data, by receiving the temperature data transmitted by the sensor 400. For example, the sensor 400 detects the temperature at a predetermined time and transmits the sensor data indicating the detected temperature to the slave unit 100.

また、子機100は、センサ400から取得したセンサデータを、Bluetooth(登録商標)に基づく無線通信で他の子機105に送信する。 Further, the slave unit 100 transmits the sensor data acquired from the sensor 400 to the other slave unit 105 by wireless communication based on Bluetooth (registered trademark).

なお、他の子機105とは、例えば、図1に示す子機101を図2における通信装置100とする場合、子機102~104である。 The other handset 105 is, for example, the handset 102 to 104 when the handset 101 shown in FIG. 1 is the communication device 100 in FIG.

ここで、本実施の形態では、子機100のそれぞれと他の子機105のそれぞれの間で行う無線通信は、例えば、BLE(Bluetooth Low Energy)に準拠したアドバタイズ通信によって行われる。より具体的には、子機100のそれぞれはセンサ400のそれぞれから取得したデータをBLEの通信パケットであるアドバタイジングパケットに格納し、他の子機105との間で送受信を行う。なお、アドバタイズ通信は、ブロードキャスト方式で通信される。 Here, in the present embodiment, the wireless communication performed between each of the slave units 100 and each of the other slave units 105 is performed by, for example, advertisement communication compliant with BLE (Bluetooth Low Energy). More specifically, each of the slave units 100 stores the data acquired from each of the sensors 400 in an advertising packet which is a communication packet of BLE, and transmits / receives the data to / from the other slave units 105. The advertised communication is carried out by a broadcast method.

また、子機100は、他の子機105から送信されてきたセンサデータ(以下、第1データという)を含むパケットを受信した場合、自装置に接続するセンサ400から取得したセンサデータ(以下、第2データという)、及び、他の子機105から受信したパケットに含まれる第1データを含むパケットを親機200に無線通信で送信する。より具体的には、子機100は、自装置に接続するセンサ400から取得したセンサデータである第2データ、及び、他の子機105から受信したパケットに含まれるセンサデータである第1データを、それぞれのセンサデータを検出したセンサ400と接続されている子機を識別できる情報(例えば、後述する識別子情報163やMAC(Media Access Control)アドレス等)と紐づけて、当該情報と紐付けられたこれらのセンサデータを親機200に無線通信で送信する。 Further, when the slave unit 100 receives a packet including sensor data (hereinafter referred to as first data) transmitted from another slave unit 105, the slave unit 100 acquires sensor data (hereinafter referred to as “first data”) from a sensor 400 connected to its own device. A packet containing the first data included in the packet received from the other slave unit 105 (referred to as the second data) is transmitted to the master unit 200 by wireless communication. More specifically, the slave unit 100 has the second data which is the sensor data acquired from the sensor 400 connected to the own device and the first data which is the sensor data included in the packet received from the other slave unit 105. Is associated with information that can identify the slave unit connected to the sensor 400 that has detected each sensor data (for example, identifier information 163 described later, MAC (Media Access Control) address, etc.), and is associated with the information. These sensor data are transmitted to the master unit 200 by wireless communication.

例えば、子機101が、センサ401から取得した第1センサデータである第2データを含むパケットを無線通信で親機200に送信し、且つ、センサ401から取得した第1センサデータを含むパケットをBluetoothに基づく無線通信で子機102~104へ送信したとする。この場合、子機102は、子機101から送信された第1センサデータである第1データを含むパケットを受信した場合に、第1データ(子機101がセンサ401から取得した第1センサデータ)及び第2データ(センサ402から取得した第2センサデータ)を含むパケットを送信する時刻である送信タイミングを算出し、算出した送信タイミングで当該パケットを送信する。具体的には、子機102は、子機101が送信した第1センサデータである第1データを含むパケットを受信した時刻に基づいて、パケットを送信する送信タイミングを算出し、算出した送信タイミングで、第1データ及び第2データを含むパケットを親機200に送信する。 For example, the slave unit 101 transmits a packet including the second data, which is the first sensor data acquired from the sensor 401, to the master unit 200 by wireless communication, and a packet including the first sensor data acquired from the sensor 401. It is assumed that the data is transmitted to the slave units 102 to 104 by wireless communication based on Bluetooth. In this case, when the slave unit 102 receives the packet including the first data which is the first sensor data transmitted from the slave unit 101, the first data (the first sensor data acquired by the slave unit 101 from the sensor 401). ) And the transmission timing, which is the time to transmit the packet including the second data (second sensor data acquired from the sensor 402), and transmit the packet at the calculated transmission timing. Specifically, the slave unit 102 calculates the transmission timing for transmitting the packet based on the time when the packet including the first data, which is the first sensor data transmitted by the slave unit 101, is received, and the calculated transmission timing. Then, a packet containing the first data and the second data is transmitted to the master unit 200.

さらに、子機100は、算出した送信タイミングで、第2データを含むパケットを、Bluetoothに基づく無線通信で他の子機105に送信する。(前述の例で言うと、子機102はセンサ402から取得した第2センサデータを第2データとしてこれを含むパケットを他の子機105に送信する。)具体的には、複数の子機100は、パケットを送信するタイミングである送信タイミングが互いに異なるように、送信タイミングを算出する。 Further, the slave unit 100 transmits a packet containing the second data to the other slave unit 105 by wireless communication based on Bluetooth at the calculated transmission timing. (In the above example, the handset 102 uses the second sensor data acquired from the sensor 402 as the second data, and transmits a packet containing the second sensor data to the other handset 105.) Specifically, a plurality of handset units. 100 calculates the transmission timing so that the transmission timing, which is the timing at which the packet is transmitted, is different from each other.

このように、通信システム500が備える複数の子機100は、それぞれ、自装置に接続したセンサ400から取得したセンサデータ(第2データ)及び他の子機105から取得したセンサデータ(第1データ)を親機200に無線通信(例えば無線LANに基づく無線通信)で送信し、且つ、自装置に接続したセンサ400から取得したセンサデータ(第2データ)のみをBluetoothに基づく無線通信で他の子機105に送信する。また、子機100のBluetoothに基づく無線通信では、それぞれ、互いに異なる送信タイミングでパケットを送信する。 As described above, the plurality of slave units 100 included in the communication system 500 have the sensor data (second data) acquired from the sensor 400 connected to the own device and the sensor data (first data) acquired from the other slave units 105, respectively. ) Is transmitted to the master unit 200 by wireless communication (for example, wireless communication based on wireless LAN), and only the sensor data (second data) acquired from the sensor 400 connected to the own device is transmitted by wireless communication based on Bluetooth. It is transmitted to the slave unit 105. Further, in the wireless communication based on Bluetooth of the slave unit 100, packets are transmitted at different transmission timings from each other.

ここで、本実施の形態では、上述したように子機100が親機200に第1データ及び第2データを含むパケット送信するタイミングは、子機100が第1データを含むパケットを受信した時刻に基づいて算出する送信タイミングとしているが、当該送信タイミングは、子機100と親機200との間の無線通信(例えば無線LANに基づく無線通信)であるIEEE802.11に基づく通信規格に準拠した送信タイミングでもよい。つまり、子機100のそれぞれが他の子機105に第1データを含むパケットを送信するタイミングと子機100のそれぞれが親機200に第1データ及び第2データを含むパケットを送信するタイミングは異なっていてもよい。 Here, in the present embodiment, as described above, the timing at which the slave unit 100 transmits the packet containing the first data and the second data to the master unit 200 is the time when the slave unit 100 receives the packet containing the first data. The transmission timing is calculated based on the above, but the transmission timing conforms to the communication standard based on IEEE802.11, which is wireless communication between the slave unit 100 and the master unit 200 (for example, wireless communication based on wireless LAN). It may be the transmission timing. That is, the timing at which each of the slave units 100 transmits the packet containing the first data to the other slave unit 105 and the timing at which each of the slave units 100 transmits the packet containing the first data and the second data to the master unit 200 are set. It may be different.

なお、複数の子機100のうち、1番目にパケットを送信する子機100のBluetoothに基づく無線通信では、送信タイミングを算出しなくてもよい。 In the wireless communication based on Bluetooth of the slave unit 100 that transmits the packet first among the plurality of slave units 100, it is not necessary to calculate the transmission timing.

例えば、図1に示す子機101が1番目にパケットを送信し、2番目以降、順に子機102、103、104がパケットを送信する場合、子機101(第1通信装置)は、送信タイミングを算出せずに予め定められた送信タイミングに無線通信で第2データを含むパケットを親機200に送信し、且つ、Bluetoothに基づく無線通信で第2データを含むパケットを子機102、103、104(第2通信装置)送信する。 For example, when the slave unit 101 shown in FIG. 1 transmits the packet first and the slave units 102, 103, 104 transmit the packet in order from the second onward, the slave unit 101 (first communication device) transmits the transmission timing. The packet containing the second data is transmitted to the master unit 200 by wireless communication at a predetermined transmission timing without calculating, and the packet containing the second data is transmitted to the slave units 102, 103 by wireless communication based on Bluetooth. 104 (second communication device) Transmit.

<子機>
続いて、図2及び図3を参照しながら、実施の形態に係る子機100の構成の詳細について説明する。
<Slave unit>
Subsequently, the details of the configuration of the slave unit 100 according to the embodiment will be described with reference to FIGS. 2 and 3.

図2に示されるように、子機100は、第1通信部110と、第2通信部120と、算出部130と、制御部140と、取得部150と、記憶部160と、を備える。 As shown in FIG. 2, the slave unit 100 includes a first communication unit 110, a second communication unit 120, a calculation unit 130, a control unit 140, an acquisition unit 150, and a storage unit 160.

第1通信部110は、親機200と無線通信するための無線アダプタ等を有する通信インターフェースである。第1通信部110は、例えば、制御部140に制御されることで、センサ400から取得したセンサデータを親機200に送信する。 The first communication unit 110 is a communication interface having a wireless adapter or the like for wireless communication with the master unit 200. The first communication unit 110, for example, is controlled by the control unit 140 to transmit the sensor data acquired from the sensor 400 to the master unit 200.

第1通信部110による無線通信に採用される通信規格は、特に限定されない。第1通信部110による無線通信に採用される通信規格は、例えば、Wi-Fi(登録商標)、Bluetooth、BLE、ANT(登録商標)、Zigbee(登録商標)等の一般的に普及されている通信規格でもよいし、独自の通信規格でもよい。なお、本実施の形態では、第1通信部110は、IEEE802.11に基づいて(つまり、IEEE802.11に基づく通信規格で)無線通信をするものとして説明する。 The communication standard adopted for wireless communication by the first communication unit 110 is not particularly limited. Communication standards adopted for wireless communication by the first communication unit 110 are generally widely used, for example, Wi-Fi (registered trademark), Bluetooth, BLE, ANT (registered trademark), Zigbee (registered trademark) and the like. It may be a communication standard or an original communication standard. In the present embodiment, the first communication unit 110 will be described as performing wireless communication based on IEEE802.11 (that is, a communication standard based on IEEE802.11).

第2通信部120は、Bluetoothに基づく通信規格で他の子機105と無線通信するための無線アダプタ等を有する通信インターフェースである。より具体的には、本実施の形態では、第2通信部120は、Bluetoothに基づく無線通信に、BLEを用いるものとして説明する。 The second communication unit 120 is a communication interface having a wireless adapter or the like for wireless communication with another slave unit 105 in a communication standard based on Bluetooth. More specifically, in the present embodiment, the second communication unit 120 will be described as using BLE for wireless communication based on Bluetooth.

算出部130は、他の子機105から第2通信部120を介してセンサデータ(第1データ)を含むパケットを受信した場合に、当該第1データを含むパケットを受信した時刻に基づいて、パケットを送信する送信タイミングを算出する処理部である。 When the calculation unit 130 receives a packet containing the sensor data (first data) from the other slave unit 105 via the second communication unit 120, the calculation unit 130 is based on the time when the packet containing the first data is received. It is a processing unit that calculates the transmission timing for transmitting a packet.

制御部140は、算出部130が算出した送信タイミングで、第1データ及びセンサ400から取得したセンサデータ(第2データ)を含むパケットを、第1通信部110を介して親機200に送信する処理部である。 The control unit 140 transmits a packet including the first data and the sensor data (second data) acquired from the sensor 400 to the master unit 200 via the first communication unit 110 at the transmission timing calculated by the calculation unit 130. It is a processing unit.

また、制御部140は、算出部130が算出した送信タイミングで、さらに、センサ400から取得した第2データを含むパケットを、第2通信部120を介して送信する。すなわち、制御部140は、センサ400から取得した第2データを含むパケットを、Bluetoothに基づく通信規格で他の子機105に送信する。 Further, the control unit 140 further transmits a packet including the second data acquired from the sensor 400 via the second communication unit 120 at the transmission timing calculated by the calculation unit 130. That is, the control unit 140 transmits the packet including the second data acquired from the sensor 400 to the other slave unit 105 according to the communication standard based on Bluetooth.

このように、制御部140は、算出部130が算出した送信タイミングで第1通信部110を介して親機200にパケットを送信し、且つ、第2通信部120を介してBluetoothに基づく無線通信で他の子機105にパケットを送信する。 As described above, the control unit 140 transmits a packet to the master unit 200 via the first communication unit 110 at the transmission timing calculated by the calculation unit 130, and wireless communication based on Bluetooth via the second communication unit 120. Sends a packet to another slave unit 105.

なお、子機100は、時間を計測するためのRTC(Real Time Clock)等の計時部を備えてもよい。 The slave unit 100 may be provided with a time measuring unit such as an RTC (Real Time Clock) for measuring the time.

取得部150は、自装置に接続したセンサ400で検出されたセンサデータを取得するための処理部である。取得部150は、具体的には、通信インターフェース(例えばシリアルインターフェースなど)を有し、当該通信インターフェースを介してセンサ400と通信可能に接続されている。取得部150は、通信インターフェースを介してセンサ400からセンサデータである第2データを取得する。取得部150は、通信線でセンサ400と通信可能に接続されていてもよいし、無線通信によってセンサ400と接続されていてもよい。 The acquisition unit 150 is a processing unit for acquiring sensor data detected by the sensor 400 connected to the own device. Specifically, the acquisition unit 150 has a communication interface (for example, a serial interface) and is communicably connected to the sensor 400 via the communication interface. The acquisition unit 150 acquires the second data, which is the sensor data, from the sensor 400 via the communication interface. The acquisition unit 150 may be communicably connected to the sensor 400 by a communication line, or may be connected to the sensor 400 by wireless communication.

算出部130、制御部140、及び、取得部150等の子機100が備える各処理部は、例えば、記憶部160に記憶されている制御プログラムと、当該制御プログラムを実行するCPU(Centrral Proseccing Unit)と、により実現される。 Each processing unit included in the slave unit 100 such as the calculation unit 130, the control unit 140, and the acquisition unit 150 includes, for example, a control program stored in the storage unit 160 and a CPU (Central Processing Unit) that executes the control program. ), And it is realized by.

また、例えば、算出部130は、第1データを含むパケットを受信した時刻及び時間情報161に基づいて送信タイミングを算出する。また、この場合、例えば、制御部140は、時間情報161が示す時間Tadv(図3に示す)内に、第1データ及び第2データを含むパケットを、第1通信部110を介して送信し、且つ、第2データを含むパケットを、第2通信部120を介して送信する。例えば、時間情報161は、記憶部160に記憶されている。 Further, for example, the calculation unit 130 calculates the transmission timing based on the time and time information 161 when the packet containing the first data is received. Further, in this case, for example, the control unit 140 transmits a packet containing the first data and the second data within the time Tadb (shown in FIG. 3) indicated by the time information 161 via the first communication unit 110. In addition, the packet containing the second data is transmitted via the second communication unit 120. For example, the time information 161 is stored in the storage unit 160.

記憶部160は、時間情報161を記憶する記憶装置である。 The storage unit 160 is a storage device that stores time information 161.

時間情報161は、パケットの送信を許可する時間Tadv(図3に示す)を示す情報である。子機100は、親機200及び他の子機105に第2データを含むパケットを送信する場合、各子機101~104(図1に示す)における送信タイミングから時間情報161が示す時間Tadv(図3に示す)の間だけ当該パケットを送信し、他の時刻においては、パケットを送信しない。 The time information 161 is information indicating the time Tadv (shown in FIG. 3) at which the transmission of the packet is permitted. When the slave unit 100 transmits a packet containing the second data to the master unit 200 and the other slave units 105, the time Tadb (time Tadv) indicated by the time information 161 from the transmission timing in each slave unit 101 to 104 (shown in FIG. 1). The packet is transmitted only during (shown in FIG. 3), and the packet is not transmitted at other times.

時間情報161が示す時間Tadv(図3に示す)は、予め任意に定められてよく、特に限定されない。時間Tadv(図3に示す)は、例えば、150msec.と定められている。 The time Tadb (shown in FIG. 3) indicated by the time information 161 may be arbitrarily determined in advance and is not particularly limited. The time Tadv (shown in FIG. 3) is, for example, 150 msec. It is stipulated.

また、記憶部160は、例えば、算出部130、制御部140、及び、取得部150等の子機100が備える各処理部が実行する制御プログラムを記憶する。 Further, the storage unit 160 stores, for example, a control program executed by each processing unit included in the slave unit 100 such as the calculation unit 130, the control unit 140, and the acquisition unit 150.

記憶部160は、例えば、ROM(ReadOnly Memory)、RAM(Random Access Memory)等により実現される。 The storage unit 160 is realized by, for example, a ROM (ReadOnly Memory), a RAM (Random Access Memory), or the like.

また、例えば、算出部130は、第1データを含むパケットを受信した時刻、時間情報161、及び、順序情報162に基づいて送信タイミングを算出する。順序情報162は、複数の子機100がパケットを送信する順序を示すデータである。例えば、記憶部160は、さらに、複数の子機100がパケットを送信する順序を示す順序情報162を記憶する。 Further, for example, the calculation unit 130 calculates the transmission timing based on the time when the packet containing the first data is received, the time information 161 and the order information 162. The order information 162 is data indicating the order in which the plurality of slave units 100 transmit packets. For example, the storage unit 160 further stores order information 162 indicating the order in which the plurality of slave units 100 transmit packets.

図3は、順序情報162の具体例を示す図である。 FIG. 3 is a diagram showing a specific example of the order information 162.

図3に示すように、順序情報162には、複数の子機100を識別するための識別子と、それぞれの識別子が示す子機100がパケットを送信してもよい順序を示す情報とが記憶されている。図3には、4個の子機100それぞれに、1から4までの互いに異なる識別子が割り振られており、且つ、1から4までの順で順番に子機100がパケットを送信する順序が割り振られている場合を例示している。 As shown in FIG. 3, the order information 162 stores an identifier for identifying a plurality of slave units 100 and information indicating an order in which the slave units 100 indicated by the respective identifiers may transmit packets. ing. In FIG. 3, each of the four slave units 100 is assigned different identifiers from 1 to 4, and the order in which the slave units 100 transmit packets is assigned in the order of 1 to 4. The case where it is is illustrated.

記憶部160は、自装置及び他の子機105の識別子を示す識別子情報163を予め記憶している。算出部130は、第1データを含むパケットを受信した時刻、時間情報161、及び、順序情報162に基づいて送信タイミングを算出する。 The storage unit 160 stores in advance identifier information 163 indicating an identifier of the own device and another slave unit 105. The calculation unit 130 calculates the transmission timing based on the time when the packet containing the first data is received, the time information 161 and the order information 162.

例えば、識別子情報163が示す識別子が1の子機100が備える制御部140は、任意の送信タイミング(時刻t0)から時間情報161が示す時刻t1までの間(時間Tadvの間)にパケットを送信する。 For example, the control unit 140 included in the slave unit 100 having the identifier 1 indicated by the identifier information 163 transmits a packet between an arbitrary transmission timing (time t0) and a time t1 indicated by the time information 161 (during time Tadb). do.

このように、例えば、算出部130は、順序情報162が示す、複数の子機100のうちパケットを送信する順序が1番目である場合、送信タイミングを算出しない。この場合、制御部140は、予め定められた送信タイミングで第1データを含むパケットを送信する。 As described above, for example, the calculation unit 130 does not calculate the transmission timing when the order of transmitting the packet is the first among the plurality of slave units 100 indicated by the order information 162. In this case, the control unit 140 transmits a packet containing the first data at a predetermined transmission timing.

そのため、順序情報162が示す、複数の子機100のうちパケットを送信する順序が1番目である子機は、算出部130を有さなくてもよい。つまり、パケットを送信する順序が1番目である子機は、他の子機105からデータ(第1データ)が送信されておらず、自装置と他の子機105との間でパケットの衝突が起こらないため、自装置の送信タイミングで送信することができるからである。 Therefore, the slave unit whose order of transmitting packets is the first among the plurality of slave units 100 indicated by the order information 162 does not have to have the calculation unit 130. That is, in the slave unit in which the packet is transmitted first, no data (first data) is transmitted from the other slave unit 105, and the packet collides between the own device and the other slave unit 105. This is because the transmission can be performed at the transmission timing of the own device.

もちろん、複数の子機100のうちで初めにパケットを送信する子機100は、2回目以降にさらにパケットを送信する場合には、他の子機105が送信したパケットを受信した時刻に基づいて送信タイミングを算出してもよい。 Of course, when the slave unit 100 that transmits the packet first among the plurality of slave units 100 further transmits the packet after the second time, it is based on the time when the packet transmitted by the other slave unit 105 is received. The transmission timing may be calculated.

図3の説明に戻って、例えば、識別子が1の子機100が備える制御部140は、時刻t0にパケットを送信したとする。 Returning to the description of FIG. 3, for example, it is assumed that the control unit 140 included in the slave unit 100 having the identifier 1 transmits a packet at time t0.

これを受け、識別子が2の子機100は、時刻t0に第2通信部120を介して、第1データを含むパケットを識別子が1の子機(他の子機105)から受信する。この場合、識別子が2の子機100が備える算出部130は、時刻t0から時間Tadv後の時刻t1を送信タイミングとして算出する。 In response to this, the slave unit 100 having an identifier of 2 receives a packet containing the first data from the slave unit having an identifier of 1 (another slave unit 105) via the second communication unit 120 at time t0. In this case, the calculation unit 130 included in the slave unit 100 having the identifier 2 calculates the time t1 after the time Tadv from the time t0 as the transmission timing.

例えば、子機100が第2通信部120を介して送信するパケットには、送信元である子機100の識別子を示す情報が含まれている。算出部130は、制御部140が第2通信部120を介して受信したパケットから、当該パケットに含まれる送信元の他の子機105を示す識別子を取得し、送信タイミングを算出する。 For example, the packet transmitted by the slave unit 100 via the second communication unit 120 contains information indicating the identifier of the slave unit 100 which is the transmission source. The calculation unit 130 acquires an identifier indicating another slave unit 105 of the transmission source included in the packet from the packet received by the control unit 140 via the second communication unit 120, and calculates the transmission timing.

ここで、本実施の形態では、予め割り振られる識別子が1の子機100を、パケットを送信する順序の1番目と決めたが、どの識別子の子機100を1番目にするかはユーザーが任意(例えば識別子が5の子機100を1番目とするなど)に決めることにしてもよい。 Here, in the present embodiment, the slave unit 100 having the identifier 1 assigned in advance is determined to be the first in the order of transmitting the packet, but the user can arbitrarily decide which identifier the slave unit 100 is the first. It may be decided (for example, the slave unit 100 having an identifier of 5 is the first).

また、順序情報162には、複数の子機100それぞれのMACアドレス等の、パケットに含まれ、且つ、機器固有の情報が、複数の子機100それぞれに紐づけられて含まれていてもよい。これによれば、子機100が第2通信部120を介して送信するパケットに子機100の識別子を示す情報が含まれていなくても、子機100の識別子は、特定され得る。 Further, the order information 162 may include device-specific information included in the packet, such as the MAC address of each of the plurality of slave units 100, in association with each of the plurality of slave units 100. .. According to this, the identifier of the slave unit 100 can be specified even if the packet transmitted by the slave unit 100 via the second communication unit 120 does not include the information indicating the identifier of the slave unit 100.

図3に戻り、識別子が2の子機100が備える制御部140は、時刻t1から、時間Tadv後である時刻t2までの間にパケットを送信する。 Returning to FIG. 3, the control unit 140 included in the slave unit 100 having the identifier 2 transmits a packet between the time t1 and the time t2, which is after the time Tadv.

また、識別子が3の子機100は、時刻t0に第2通信部120を介して、第1データを含むパケットを識別子が1の子機(他の子機105)から受信する。この場合、識別子が3の子機100が備える算出部130は、時刻t0から時間Tadv×2後の時刻t2を送信タイミングとして算出する。 Further, the slave unit 100 having an identifier of 3 receives a packet containing the first data from the slave unit having an identifier of 1 (another slave unit 105) via the second communication unit 120 at time t0. In this case, the calculation unit 130 included in the slave unit 100 having the identifier 3 calculates the time t2 after the time Tadb × 2 as the transmission timing from the time t0.

また、識別子が3の子機100が備える制御部140は、時刻t2から、時間Tadv後である時刻t3までの間にパケットを送信する。 Further, the control unit 140 included in the slave unit 100 having the identifier 3 transmits a packet between the time t2 and the time t3, which is after the time Tadv.

このように、他の子機105からパケットを受信した子機100は、順序情報162及び識別子情報163に基づいて、受信したパケットを送信した他の子機105及び自装置の識別子から、自装置がパケットを送信する送信タイミングを算出する。 In this way, the slave unit 100 that has received the packet from the other slave unit 105 has its own device from the identifiers of the other slave unit 105 that transmitted the received packet and the own device based on the sequence information 162 and the identifier information 163. Calculates the transmission timing at which the packet is transmitted.

なお、時間情報161、順序情報162、及び、識別子情報163は、例えば、子機100が特定の箇所に設置される前に予め記憶部160に記憶されていてもよい。また、例えば、子機100がそれぞれ特定の箇所に設置された後で、制御部140は、端末装置300から親機200を介して送信された時間情報161、順序情報162、及び、識別子情報163を含むパケットを、第1通信部110を介して受信し、受信したパケットに含まれている時間情報161、順序情報162、及び、識別子情報163を記憶部160に記憶させてもよい。 The time information 161 and the sequence information 162 and the identifier information 163 may be stored in the storage unit 160 in advance before the slave unit 100 is installed at a specific location, for example. Further, for example, after the slave units 100 are installed at specific locations, the control unit 140 may send time information 161, sequence information 162, and identifier information 163 transmitted from the terminal device 300 via the master unit 200. The packet including the above may be received via the first communication unit 110, and the time information 161, the order information 162, and the identifier information 163 included in the received packet may be stored in the storage unit 160.

また、図3に示すように、例えば、制御部140は、他の子機105に第2通信部120を介してパケットを送信していない間、他の子機105が送信したパケットを受信できるような状態となっている。例えば、通信システム500がN個の子機100を備える場合、子機100が他の子機105が送信したパケットを受信できるような状態となる時間Tscanは、時間情報161が示す時間Tadv×(N-1)となる。 Further, as shown in FIG. 3, for example, the control unit 140 can receive the packet transmitted by the other slave unit 105 while the packet is not transmitted to the other slave unit 105 via the second communication unit 120. It is in such a state. For example, when the communication system 500 includes N slave units 100, the time Tscan in which the slave unit 100 is in a state where the packet transmitted by the other slave unit 105 can be received is the time Tadv × (time Tadv × () indicated by the time information 161. It becomes N-1).

また、子機100がパケットを受信した時刻と他の子機105が当該パケットを送信した時刻とを同じ時刻として説明したが、これらの時刻は異なることが想定される。そのため、算出部130は、例えば、送信タイミングを算出する際に、予め定められた定数を加算等してもよい。つまり、子機100がパケットの送信を許可される時間(時間Tadv)は、複数の子機100のそれぞれの時刻同期がなされていなくても(受信した時刻が同じでなくても)、実際にパケットの送信に必要な時間と複数の子機100間で時刻のずれを十分に考慮した数値を予め設定することで対応できる。 Further, although the time when the slave unit 100 receives the packet and the time when the other slave unit 105 transmits the packet are described as the same time, it is assumed that these times are different. Therefore, the calculation unit 130 may, for example, add a predetermined constant when calculating the transmission timing. That is, the time (time Tadv) at which the slave unit 100 is permitted to transmit the packet is actually the time (time Tadv) even if the time synchronization of each of the plurality of slave units 100 is not performed (even if the received times are not the same). It can be dealt with by setting in advance a numerical value that fully considers the time required for packet transmission and the time difference between the plurality of slave units 100.

[処理手順]
続いて、図4~図6を参照しながら、子機100の処理手順及び通信システム500の処理手順について説明する。
[Processing procedure]
Subsequently, the processing procedure of the slave unit 100 and the processing procedure of the communication system 500 will be described with reference to FIGS. 4 to 6.

図4は、実施の形態に係る子機100がデータを送信する処理手順を説明するためのフローチャートである。 FIG. 4 is a flowchart for explaining a processing procedure in which the handset 100 according to the embodiment transmits data.

まず、取得部150は、自装置に接続するセンサ400が検出した情報を示すセンサデータ(第2データ)を取得する(ステップS101)。なお、ステップS101は、任意のタイミングで実行されればよい。 First, the acquisition unit 150 acquires sensor data (second data) indicating information detected by the sensor 400 connected to the own device (step S101). The step S101 may be executed at an arbitrary timing.

次に、制御部140は、子機100が他の子機105から送信された、センサデータ(第1データ)を含むパケットを、第2通信部120を介して受信する(ステップS102)。 Next, the control unit 140 receives the packet including the sensor data (first data) transmitted from the other slave unit 105 by the slave unit 100 via the second communication unit 120 (step S102).

次に、算出部130は、例えば、記憶部160に記憶されている時間情報161及び順序情報162を記憶部160から取得する(ステップS103)。なお、ステップS103では、算出部130は、例えば、端末装置300から親機200及び第1通信部110を介して、時間情報161及び順序情報162を含むパケットを受信することで、時間情報161及び順序情報162を取得してもよい。 Next, the calculation unit 130 acquires, for example, the time information 161 and the order information 162 stored in the storage unit 160 from the storage unit 160 (step S103). In step S103, the calculation unit 130 receives, for example, a packet including the time information 161 and the order information 162 from the terminal device 300 via the master unit 200 and the first communication unit 110, so that the time information 161 and the time information 161 are received. The order information 162 may be acquired.

次に、算出部130は、時間情報161及び順序情報162に基づいて、送信タイミングを算出する(ステップS104)。 Next, the calculation unit 130 calculates the transmission timing based on the time information 161 and the order information 162 (step S104).

次に、制御部140は、ステップS104で算出部130が算出した送信タイミングで、第1通信部110を介してステップS102で受信したパケットに含まれる第1データ及びステップS101で自装置に接続するセンサ400から取得した第2データを含むパケットを親機200に送信する(ステップS105)。具体的には、ステップS105では、制御部140は、ステップS104で算出部130が算出した送信タイミングから時間情報161が示す時間Tadv後の時刻までの間に、第1通信部110を介してステップS102で受信したパケットに含まれる第1データ及びステップS101でセンサ400から取得した第2データを含むパケットを親機200に送信する。 Next, the control unit 140 connects to the own device in step S101 and the first data included in the packet received in step S102 via the first communication unit 110 at the transmission timing calculated by the calculation unit 130 in step S104. A packet including the second data acquired from the sensor 400 is transmitted to the master unit 200 (step S105). Specifically, in step S105, the control unit 140 steps through the first communication unit 110 between the transmission timing calculated by the calculation unit 130 in step S104 and the time after the time Tadv indicated by the time information 161. The packet including the first data included in the packet received in S102 and the second data acquired from the sensor 400 in step S101 is transmitted to the master unit 200.

次に、制御部140は、ステップS104で算出部130が算出した送信タイミングで、第1通信部110を介してステップS102で受信したパケットに含まれる第1データ及びステップS101でセンサ400から取得した第2データを含むパケットを送信する(ステップS106)。具体的には、ステップS106では、制御部140は、ステップS104で算出部130が算出した送信タイミングから時間情報161が示す時間Tadv後の時刻までの間に、第2通信部120を介してステップS101で受信したパケットに含まれる第2データを含むパケットを送信する。 Next, the control unit 140 acquired the first data included in the packet received in step S102 via the first communication unit 110 and the sensor 400 in step S101 at the transmission timing calculated by the calculation unit 130 in step S104. A packet containing the second data is transmitted (step S106). Specifically, in step S106, the control unit 140 steps through the second communication unit 120 between the transmission timing calculated by the calculation unit 130 in step S104 and the time after the time Tadv indicated by the time information 161. A packet containing the second data included in the packet received in S101 is transmitted.

なお、ステップS106では、制御部140は、第2通信部120を介して、ブロードキャストで他の子機105にパケットを送信する。 In step S106, the control unit 140 transmits a packet to the other slave unit 105 by broadcasting via the second communication unit 120.

また、図4示す各ステップの順序は、あくまで一例である。例えば、ステップS101は、ステップS105を実行する前までに実行されればよく、例えば、ステップS104の後に実行されてもよい。また、例えば、ステップS105とステップS106とが実行される順序は、逆でもよい。 Further, the order of each step shown in FIG. 4 is only an example. For example, step S101 may be executed before step S105 is executed, and may be executed after step S104, for example. Further, for example, the order in which step S105 and step S106 are executed may be reversed.

また、ステップS105では、制御部140は、複数の他の子機105から複数の第1データを取得している場合、全ての第1データを含めたパケットを親機200に送信してもよいし、一部の第1データを含むパケットを親機200に送信してもよい。例えば、制御部140は、センサ400から取得部150が取得した第2データと、複数の他の子機105から取得した複数の第1データのうちの予め定められた数の第1データとを含むパケットを、親機200に送信してもよい。複数の他の子機105から取得した複数の第1データのうちの予め定められた数及び選択基準は、任意に定められてよい。例えば、制御部140は、遅い時刻に受信したパケットに含まれる第1データを5つまでパケットに含めて、当該パケットを、第1通信部110を介して親機200に送信してもよい。 Further, in step S105, when the control unit 140 has acquired a plurality of first data from the plurality of other slave units 105, the control unit 140 may transmit a packet including all the first data to the master unit 200. Then, a packet including a part of the first data may be transmitted to the master unit 200. For example, the control unit 140 obtains the second data acquired by the acquisition unit 150 from the sensor 400 and a predetermined number of first data among the plurality of first data acquired from the plurality of other slave units 105. The included packet may be transmitted to the master unit 200. A predetermined number and selection criteria among the plurality of first data acquired from the plurality of other slave units 105 may be arbitrarily determined. For example, the control unit 140 may include up to five first data included in the packet received at a late time in the packet and transmit the packet to the master unit 200 via the first communication unit 110.

図5は、実施の形態に係る通信システム500が備える各装置の処理手順の第1例を説明するためのシーケンス図である。なお、以下の説明では、子機101を示す識別子が1であり、子機102を示す識別子が2であり、子機103を示す識別子が3であるとする。また、順序情報162は、識別子が1、2、3、・・・の順で送信する情報であるとする。また、子機101と接続されたセンサ401により取得されたセンサデータを第1センサデータとし、子機102と接続されたセンサ402により取得されたセンサデータを第2センサデータとし、子機103と接続されたセンサ403により取得されたセンサデータを第3センサデータとしている。 FIG. 5 is a sequence diagram for explaining a first example of a processing procedure of each device included in the communication system 500 according to the embodiment. In the following description, it is assumed that the identifier indicating the slave unit 101 is 1, the identifier indicating the slave unit 102 is 2, and the identifier indicating the slave unit 103 is 3. Further, it is assumed that the order information 162 is information whose identifiers are transmitted in the order of 1, 2, 3, .... Further, the sensor data acquired by the sensor 401 connected to the slave unit 101 is used as the first sensor data, and the sensor data acquired by the sensor 402 connected to the slave unit 102 is used as the second sensor data. The sensor data acquired by the connected sensor 403 is used as the third sensor data.

また、図5に示す破線矢印は、第1通信部110を介した無線通信(例えば、IEEE802.11に基づく無線通信)であることを示す。また、図5に示す一点鎖線矢印は、第2通信部120を介した無線通信(Bluetoothに基づく無線通信)であることを示す。 Further, the broken line arrow shown in FIG. 5 indicates wireless communication via the first communication unit 110 (for example, wireless communication based on 802.11). Further, the alternate long and short dash arrow shown in FIG. 5 indicates wireless communication via the second communication unit 120 (wireless communication based on Bluetooth).

まず、子機101~104は、それぞれに接続するセンサ401~404(図1参照)からセンサデータを取得する(ステップS201)。ステップS201では、それぞれの子機101~104は、図4に示すステップS101を実行する。ステップS201では、子機101はセンサ401から第1センサデータを取得し、子機102はセンサ402から第2センサデータを取得し、子機103はセンサ403から第3センサデータを取得する。 First, the slave units 101 to 104 acquire sensor data from the sensors 401 to 404 (see FIG. 1) connected to each of them (step S201). In step S201, each of the slave units 101 to 104 executes step S101 shown in FIG. In step S201, the slave unit 101 acquires the first sensor data from the sensor 401, the slave unit 102 acquires the second sensor data from the sensor 402, and the slave unit 103 acquires the third sensor data from the sensor 403.

次に、識別子1が示す子機101は、センサ401から取得した第1センサデータ(第2データ)を含むパケットを親機200に無線通信で送信する(ステップS202)。 Next, the slave unit 101 indicated by the identifier 1 transmits a packet including the first sensor data (second data) acquired from the sensor 401 to the master unit 200 by wireless communication (step S202).

次に、子機101は、第2データを含むパケットを他の子機105にBluetoothに基づく無線通信(ブロードキャスト通信)で送信する(ステップS203)。 Next, the slave unit 101 transmits a packet containing the second data to the other slave unit 105 by wireless communication (broadcast communication) based on Bluetooth (step S203).

親機200は、例えば、受信したパケットに含まれる第1センサデータを端末装置300に送信する(ステップS204)。 The master unit 200 transmits, for example, the first sensor data included in the received packet to the terminal device 300 (step S204).

次に、各子機102~104は、それぞれ送信タイミングを算出する(ステップS205)。具体的には、ステップS205では、各子機102~104は、それぞれ、図4に示すステップS103及びステップS104を実行する。 Next, each of the slave units 102 to 104 calculates the transmission timing (step S205). Specifically, in step S205, each slave unit 102 to 104 executes steps S103 and S104 shown in FIG. 4, respectively.

次に、識別子2が示す子機102は、子機101から受信したパケットに含まれる第1センサデータ(第1データ)、及び、センサ402から取得した第2センサデータ(第2データ)を含むパケットを親機200に無線通信で送信する(ステップS206)。 Next, the slave unit 102 indicated by the identifier 2 includes the first sensor data (first data) included in the packet received from the slave unit 101 and the second sensor data (second data) acquired from the sensor 402. The packet is transmitted to the master unit 200 by wireless communication (step S206).

次に、子機102は、第2データを含むパケットを他の子機101、103、104にBluetoothに基づく無線通信で送信する(ステップS207)。 Next, the slave unit 102 transmits a packet containing the second data to the other slave units 101, 103, 104 by wireless communication based on Bluetooth (step S207).

親機200は、例えば、受信したパケットに含まれる子機101がセンサ401から取得した第1センサデータ、及び、子機102がセンサ402から取得した第2センサデータを端末装置300に送信する(ステップS208)。 The master unit 200 transmits, for example, the first sensor data acquired from the sensor 401 by the slave unit 101 included in the received packet and the second sensor data acquired from the sensor 402 by the slave unit 102 to the terminal device 300 (. Step S208).

なお、ステップS208では、親機200は、既に子機101がセンサ401から取得した第1センサデータを端末装置300に送信成功している場合、子機102がセンサ402から取得した第2センサデータのみを端末装置300に送信し、第1センサデータを端末装置300に送信しなくてもよい。 In step S208, if the master unit 200 has already succeeded in transmitting the first sensor data acquired from the sensor 401 by the slave unit 101 to the terminal device 300, the second sensor data acquired by the slave unit 102 from the sensor 402. Only may be transmitted to the terminal device 300, and the first sensor data may not be transmitted to the terminal device 300.

次に、識別子3が示す子機103は、子機101から受信したパケットに含まれる第1センサデータ(第1データ)、子機102から受信したパケットに含まれる第2センサデータ(第1データ)、及び、センサ403から取得した第3センサデータ(第2データ)を含むパケットを親機200に無線通信で送信する(ステップS209)。 Next, the slave unit 103 indicated by the identifier 3 has a first sensor data (first data) included in the packet received from the slave unit 101 and a second sensor data (first data) included in the packet received from the slave unit 102. ), And a packet including the third sensor data (second data) acquired from the sensor 403 is transmitted to the master unit 200 by wireless communication (step S209).

次に、子機103は、第3センサデータ(第2データ)を含むパケットを他の子機101、102、104にBluetoothに基づく無線通信で送信する(ステップS210)。 Next, the slave unit 103 transmits a packet including the third sensor data (second data) to the other slave units 101, 102, 104 by wireless communication based on Bluetooth (step S210).

親機200は、例えば、受信したパケットに含まれる子機101がセンサ401から取得した第1センサデータ、子機102がセンサ402から取得した第2センサデータ、及び、センサ403から取得した第3センサデータを端末装置300に送信する(ステップS211)。 The master unit 200 is, for example, the first sensor data acquired from the sensor 401 by the slave unit 101 included in the received packet, the second sensor data acquired from the sensor 402 by the slave unit 102, and the third sensor data acquired from the sensor 403. The sensor data is transmitted to the terminal device 300 (step S211).

なお、ステップS211では、親機200は、既に子機101がセンサ401から取得した第1センサデータ、及び、子機102がセンサ402から取得した第2センサデータを端末装置300に送信成功している場合、センサ403から取得した第3センサデータのみを端末装置300に送信し、子機101がセンサ401から取得した第1センサデータ、及び、子機102がセンサ402から取得した第2センサデータを端末装置300に送信しなくてもよい。 In step S211, the master unit 200 has succeeded in transmitting the first sensor data already acquired by the slave unit 101 from the sensor 401 and the second sensor data acquired by the slave unit 102 from the sensor 402 to the terminal device 300. If so, only the third sensor data acquired from the sensor 403 is transmitted to the terminal device 300, the first sensor data acquired by the slave unit 101 from the sensor 401, and the second sensor data acquired by the slave unit 102 from the sensor 402. Does not have to be transmitted to the terminal device 300.

以上のように、通信システム500が備える複数の子機100は、自装置の送信タイミングを算出して、他の子機105と異なるタイミングでセンサ400が検出した情報を示すセンサデータを含むパケットを送信する。 As described above, the plurality of slave units 100 included in the communication system 500 calculate the transmission timing of the own device, and generate a packet including sensor data indicating information detected by the sensor 400 at a timing different from that of the other slave units 105. Send.

図6は、実施の形態に係る通信システム500が備える各装置の処理手順の第2例を説明するためのシーケンス図である。 FIG. 6 is a sequence diagram for explaining a second example of the processing procedure of each device included in the communication system 500 according to the embodiment.

まず、子機101~104は、センサ401~404(図1参照)からセンサデータを取得する(ステップS201)。 First, the slave units 101 to 104 acquire sensor data from the sensors 401 to 404 (see FIG. 1) (step S201).

次に、識別子1が示す子機101は、センサ401から取得した第1センサデータ(第2データ)を含むパケットを親機200に無線通信で送信する(ステップS202a)。ここで、例えば、ステップS202aでは、第2データを含むパケットが親機200で受信されなかったとする。 Next, the slave unit 101 indicated by the identifier 1 transmits a packet including the first sensor data (second data) acquired from the sensor 401 to the master unit 200 by wireless communication (step S202a). Here, for example, in step S202a, it is assumed that the packet including the second data is not received by the master unit 200.

次に、子機101は、子機101がセンサ401から取得した第2データ(第1センサデータ)を含むパケットを他の子機102~104にBluetoothに基づく無線通信で送信する(ステップS203a)。ここで、例えば、ステップS203aでは、子機101がセンサ401から取得した第1センサデータ含むパケットが子機103で受信されなかったとする。 Next, the slave unit 101 transmits a packet including the second data (first sensor data) acquired by the slave unit 101 from the sensor 401 to the other slave units 102 to 104 by wireless communication based on Bluetooth (step S203a). .. Here, for example, in step S203a, it is assumed that the packet including the first sensor data acquired by the slave unit 101 from the sensor 401 is not received by the slave unit 103.

次に、子機102は、送信タイミングを算出する(ステップS205a)。具体的には、ステップS205aでは、子機102は、図4に示すステップS103及びステップS104を実行する。 Next, the slave unit 102 calculates the transmission timing (step S205a). Specifically, in step S205a, the slave unit 102 executes steps S103 and S104 shown in FIG.

同様に、子機104は、送信タイミングを算出する(ステップS205b)。具体的には、ステップS205bでは、子機104は、図4に示すステップS103及びステップS104を実行する。 Similarly, the slave unit 104 calculates the transmission timing (step S205b). Specifically, in step S205b, the slave unit 104 executes steps S103 and S104 shown in FIG.

ここでは、図5に示すステップS205とは異なり、子機103は、ステップS203aで子機101がセンサ401から取得した第1センサデータを含むパケットを受信できていないために、送信タイミングを算出しない。 Here, unlike step S205 shown in FIG. 5, the slave unit 103 does not calculate the transmission timing because the slave unit 101 has not received the packet including the first sensor data acquired from the sensor 401 in step S203a. ..

次に、子機102は、子機101から受信したパケットに含まれる第1センサデータ(第1データ)、及び、センサ402から取得した第2センサデータ(第2データ)を親機200に無線通信で送信する(ステップS206)。 Next, the slave unit 102 wirelessly transmits the first sensor data (first data) included in the packet received from the slave unit 101 and the second sensor data (second data) acquired from the sensor 402 to the master unit 200. It is transmitted by communication (step S206).

次に、子機102は、センサ402から取得した第2センサデータ(第2データ)を他の子機101、103、104にBluetoothに基づく無線通信で送信する(ステップS207)。 Next, the slave unit 102 transmits the second sensor data (second data) acquired from the sensor 402 to the other slave units 101, 103, 104 by wireless communication based on Bluetooth (step S207).

親機200は、例えば、受信したパケットに含まれる子機101がセンサ401から取得した第1センサデータ及び子機102がセンサ402から取得した第2センサデータを端末装置300に送信する(ステップS208)。 For example, the master unit 200 transmits the first sensor data acquired from the sensor 401 by the slave unit 101 included in the received packet and the second sensor data acquired from the sensor 402 by the slave unit 102 to the terminal device 300 (step S208). ).

このように、通信システム500によれば、子機101が送信したセンサ401から取得した第1センサデータを子機102も送信するために、例えば、ステップS202aのように子機102より前の子機101が親機200に送信した子機101がセンサ401から取得した第1センサデータが親機200に到達していない場合においても、子機101がセンサ401から取得した第1センサデータを親機200に送信できる。 As described above, according to the communication system 500, in order to transmit the first sensor data acquired from the sensor 401 transmitted by the slave unit 101 to the slave unit 102 as well, for example, a child before the slave unit 102 as in step S202a. Even when the first sensor data acquired from the sensor 401 by the slave unit 101 transmitted to the master unit 200 does not reach the master unit 200, the slave unit 101 uses the first sensor data acquired from the sensor 401 as the parent unit. It can be sent to the machine 200.

また、子機103は、ステップS207で子機102から送信された子機102がセンサ402から取得した第2センサデータを含むパケットを受信したとする。この場合、子機103は、送信タイミングを算出する(ステップS205c)。具体的には、ステップS205cでは、子機103は、図4に示すステップS103及びステップS104を実行する。 Further, it is assumed that the slave unit 103 receives the packet including the second sensor data acquired from the sensor 402 by the slave unit 102 transmitted from the slave unit 102 in step S207. In this case, the slave unit 103 calculates the transmission timing (step S205c). Specifically, in step S205c, the slave unit 103 executes steps S103 and S104 shown in FIG.

次に、子機103は、子機102から受信したパケットに含まれる第2センサデータ(第1データ)、及び、センサ403から取得した第3センサデータ(第2データ)を含むパケットを親機200に無線通信で送信する(ステップS209a)。 Next, the slave unit 103 uses the packet including the second sensor data (first data) included in the packet received from the slave unit 102 and the third sensor data (second data) acquired from the sensor 403 as the master unit. It is transmitted to 200 by wireless communication (step S209a).

次に、子機103は、センサ403から取得した第2データ(第3センサデータ)を含むパケットを他の子機101、102、104にBluetoothに基づく無線通信で送信する(ステップS210)。 Next, the slave unit 103 transmits a packet including the second data (third sensor data) acquired from the sensor 403 to the other slave units 101, 102, 104 by wireless communication based on Bluetooth (step S210).

親機200は、例えば、受信したパケットに含まれる子機102がセンサ402から取得した第2センサデータ、及び、子機103がセンサ403から取得した第3センサデータを端末装置300に送信する(ステップS211a)。 The master unit 200 transmits, for example, the second sensor data acquired from the sensor 402 by the slave unit 102 included in the received packet and the third sensor data acquired from the sensor 403 by the slave unit 103 to the terminal device 300 (. Step S211a).

なお、ステップS211aでは、親機200は、既に子機102がセンサ402から取得した第2センサデータを端末装置300に送信成功している場合、子機103がセンサ403から取得した第3センサデータのみを端末装置300に送信し、第2センサデータを端末装置300に送信しなくてもよい。 In step S211a, when the master unit 200 has already succeeded in transmitting the second sensor data acquired from the sensor 402 by the slave unit 102 to the terminal device 300, the third sensor data acquired by the slave unit 103 from the sensor 403. Only may be transmitted to the terminal device 300 and the second sensor data may not be transmitted to the terminal device 300.

また、子機102~104は、他の子機から初めてパケットを受信した場合に、送信タイミングを算出するが、他の子機からパケットを受信した度に、送信タイミングを算出してもよい。これによれば、例えば、複数の子機100のうちのいずれかの子機100の送信タイミングが意図しない誤動作によりずれた場合においても、常に最新の情報で送信タイミングを算出し直すことができる。そのため、複数の子機100が同じタイミングでパケットを送信することによるパケット同士の衝突をさらに抑制できる。 Further, the slave units 102 to 104 calculate the transmission timing when the packet is received from the other slave unit for the first time, but the transmission timing may be calculated each time the packet is received from the other slave unit. According to this, for example, even if the transmission timing of any one of the plurality of slave units 100 is deviated due to an unintended malfunction, the transmission timing can always be recalculated with the latest information. Therefore, it is possible to further suppress the collision between the packets due to the plurality of slave units 100 transmitting the packets at the same timing.

[効果等]
以上説明したように、実施の形態に係る子機100は、親機200、及び、それぞれが親機200と通信する子機として機能する複数の通信装置を備えるシステムにおける当該複数の通信装置のうちの1つの通信装置である。子機100は、親機200と無線通信するための第1通信部110と、Bluetoothに基づいて他の通信装置105と無線通信するための第2通信部120と、他の通信装置105から第2通信部120を介して第1データを含むパケットを受信した場合に、第1データを含むパケットを受信した時刻に基づいて、自装置がパケットを送信する送信タイミングを算出する算出部130と、算出部130が算出した送信タイミングで、第1データ及び第2データを含むパケットを、第1通信部110を介して送信する制御部140と、を備える。第2データは、例えば、取得部150によってセンサ400から取得されたセンサデータである。
[Effects, etc.]
As described above, the slave unit 100 according to the embodiment is among the master unit 200 and the plurality of communication devices in a system including a plurality of communication devices each functioning as a slave unit that communicates with the master unit 200. It is one of the communication devices. The slave unit 100 has a first communication unit 110 for wireless communication with the master unit 200, a second communication unit 120 for wireless communication with another communication device 105 based on Bluetooth, and a second communication unit 120 from the other communication device 105. 2. When a packet containing the first data is received via the communication unit 120, the calculation unit 130 calculates the transmission timing at which the own device transmits the packet based on the time when the packet containing the first data is received. It includes a control unit 140 that transmits a packet containing the first data and the second data via the first communication unit 110 at the transmission timing calculated by the calculation unit 130. The second data is, for example, sensor data acquired from the sensor 400 by the acquisition unit 150.

このような構成によれば、他の通信装置105が送信したBluetoothに基づくパケットを受信した時刻から、自装置がパケットを送信する送信タイミングを算出して送信する。そのため、例えば、複数の子機100が算出する送信タイミングを異なるように設定しておくことで、複数の子機100のそれぞれは、互いに異なるタイミングでパケットを送信する。これにより、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。例えば、このような構成によれば、Bluetoothに基づく無線通信で親機200と複数の子機100のそれぞれとがパケットを送信する場合において、パケットの衝突を抑制できる。 According to such a configuration, the transmission timing at which the own device transmits the packet is calculated and transmitted from the time when the packet based on Bluetooth transmitted by the other communication device 105 is received. Therefore, for example, by setting the transmission timings calculated by the plurality of slave units 100 to be different, each of the plurality of slave units 100 transmits packets at different timings. This makes it possible to suppress packet collisions in wireless communication based on Bluetooth. For example, according to such a configuration, when each of the master unit 200 and the plurality of slave units 100 transmits a packet in wireless communication based on Bluetooth, the collision of the packet can be suppressed.

また、例えば、制御部140は、算出部130が算出した送信タイミングで、さらに、第2データを含むパケットを、第2通信部120を介して送信する。 Further, for example, the control unit 140 further transmits a packet containing the second data via the second communication unit 120 at the transmission timing calculated by the calculation unit 130.

このような構成によれば、複数の子機100のそれぞれがBluetoothに基づく無線通信でパケットを送信する場合において、パケットの衝突を抑制できる。 According to such a configuration, when each of the plurality of slave units 100 transmits a packet by wireless communication based on Bluetooth, the collision of the packet can be suppressed.

また、例えば、子機100は、さらに、パケットの送信を許可する時間を示す時間情報161を記憶する記憶部160を備える。この場合、例えば、算出部130は、第1データを含むパケットを受信した時刻及び時間情報161に基づいて送信タイミングを算出する。また、この場合、例えば、制御部140は、算出部130が算出した送信タイミングから時間情報161が示す時間Tadv内に、第1データ及び第2データを含むパケットを、第1通信部110を介して送信し、且つ、第2データを含むパケットを、第2通信部120を介して送信する。例えば、第2データを含むパケットには、他の通信装置105から受信したパケットに含まれる第1データ等のデータを含まない。 Further, for example, the slave unit 100 further includes a storage unit 160 that stores time information 161 indicating a time for permitting transmission of a packet. In this case, for example, the calculation unit 130 calculates the transmission timing based on the time and time information 161 when the packet containing the first data is received. Further, in this case, for example, the control unit 140 transmits a packet containing the first data and the second data within the time Tadb indicated by the time information 161 from the transmission timing calculated by the calculation unit 130 via the first communication unit 110. And the packet containing the second data is transmitted via the second communication unit 120. For example, the packet containing the second data does not include data such as the first data included in the packet received from the other communication device 105.

このような構成によれば、複数の子機100のそれぞれの通信に係る時間を算出するタイミングに反映することができる。そのため、算出部130は、パケットの衝突を回避するためのタイミングをさらに精度よく算出できる。 According to such a configuration, it can be reflected in the timing of calculating the time related to each communication of the plurality of slave units 100. Therefore, the calculation unit 130 can more accurately calculate the timing for avoiding packet collision.

また、例えば、記憶部160は、さらに、複数の子機100がパケットを送信する順序を示す順序情報162を記憶している。この場合、例えば、算出部130は、第1データを含むパケットを受信した時刻、時間情報161、及び、順序情報162に基づいて送信タイミングを算出する。 Further, for example, the storage unit 160 further stores order information 162 indicating the order in which the plurality of slave units 100 transmit packets. In this case, for example, the calculation unit 130 calculates the transmission timing based on the time when the packet containing the first data is received, the time information 161 and the order information 162.

このような構成によれば、複数の子機100のそれぞれがパケットを送信する時刻を算出する送信タイミングに反映することができる。そのため、算出部130は、パケットの衝突を回避するための送信タイミングをさらに精度よく算出できる。 According to such a configuration, it can be reflected in the transmission timing for calculating the time when each of the plurality of slave units 100 transmits the packet. Therefore, the calculation unit 130 can more accurately calculate the transmission timing for avoiding packet collision.

また、実施の形態に係る通信システム500は、子機100を複数備える。 Further, the communication system 500 according to the embodiment includes a plurality of slave units 100.

このような構成によれば、他の子機105が送信したBluetoothに基づくパケットを受信した時刻から、自装置がパケットを送信する送信タイミングを算出して送信する。そのため、例えば、複数の子機100が算出する送信タイミングを異なるように設定しておくことで、複数の通信装置のそれぞれは、互いに異なる送信タイミングでパケットを送信する。これにより、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。 According to such a configuration, the transmission timing at which the own device transmits the packet is calculated and transmitted from the time when the packet based on Bluetooth transmitted by the other slave unit 105 is received. Therefore, for example, by setting the transmission timings calculated by the plurality of slave units 100 to be different, each of the plurality of communication devices transmits packets at different transmission timings. This makes it possible to suppress packet collisions in wireless communication based on Bluetooth.

また、実施の形態に係る通信方法は、親機200、及び、それぞれが親機200と通信する子機100として機能する複数の通信装置を備えるシステムにおける複数の通信装置のうちの1つの通信装置が実行する通信方法である。本実施の形態に係る通信方法は、Bluetooth(登録商標)に基づいて他の通信装置105から第1データを含むパケットを受信する受信ステップと、受信ステップで第1データを含むパケットを受信した時刻に基づいて、自装置がパケットを送信する送信タイミングを算出する算出ステップと、算出ステップで算出した送信タイミングで、第1データ及び第2データを含むパケットを無線通信で親機200に送信する送信ステップと、を含む。 Further, the communication method according to the embodiment is one communication device among a plurality of communication devices in a system including a master unit 200 and a plurality of communication devices each functioning as a slave unit 100 that communicates with the master unit 200. Is the communication method executed by. The communication method according to the present embodiment is a reception step for receiving a packet containing the first data from another communication device 105 based on Bluetooth (registered trademark), and a time when the packet containing the first data is received in the reception step. A transmission in which a packet containing the first data and the second data is transmitted to the master unit 200 by wireless communication at the calculation step of calculating the transmission timing at which the own device transmits the packet based on the above and the transmission timing calculated in the calculation step. Including steps.

このような方法によれば、Bluetoothに基づくパケットを受信した時刻から、パケットを送信する送信タイミングを算出して送信する。そのため、例えば、それぞれが実施の形態に係る通信方法を実行する複数の通信装置(例えば、子機100)が算出する送信タイミングを異なるように設定しておくことで、複数の通信装置のそれぞれは、互いに異なるタイミングでパケットを送信する。これにより、Bluetoothに基づく無線通信において、パケットの衝突を抑制できる。例えば、このような方法によれば、Bluetoothに基づく無線通信で親機200とそれぞれがこのような通信方法を実行する複数の通信装置のそれぞれとがパケットを送信する場合において、パケットの衝突を抑制できる。 According to such a method, the transmission timing for transmitting the packet is calculated from the time when the packet based on Bluetooth is received and transmitted. Therefore, for example, by setting the transmission timings calculated by the plurality of communication devices (for example, the slave unit 100) that execute the communication method according to the embodiment differently, each of the plurality of communication devices can be set to be different. , Send packets at different timings. This makes it possible to suppress packet collisions in wireless communication based on Bluetooth. For example, according to such a method, when a master unit 200 and each of a plurality of communication devices each executing such a communication method transmit a packet in wireless communication based on Bluetooth, packet collision is suppressed. can.

なお、本発明は、上記通信方法に含まれるステップをコンピュータに実行させるプログラムとして実現されてもよい。また、本発明は、そのプログラムを記録したコンピュータによって読み取り可能なCD-ROM等の記録媒体として実現されてもよい。また、本発明は、そのプログラムを示す情報、データ又は信号として実現されてもよい。そして、それらプログラム、情報、データ及び信号は、インターネット等の通信ネットワークを介して配信されてもよい。 The present invention may be realized as a program for causing a computer to execute the steps included in the above communication method. Further, the present invention may be realized as a recording medium such as a CD-ROM that can be read by a computer that records the program. Further, the present invention may be realized as information, data or a signal indicating the program. The programs, information, data and signals may be distributed via a communication network such as the Internet.

(その他の実施の形態)
以上、本発明の通信装置等について、実施の形態に基づいて説明したが、本発明は、上記実施の形態に限定されるものではない。上記実施の形態に対して当業者が思い付く変形を施して得られる形態、及び、上記実施の形態における構成要素を任意に組み合わせて実現される別の形態も本発明に含まれる。
(Other embodiments)
Although the communication device and the like of the present invention have been described above based on the embodiments, the present invention is not limited to the above embodiments. The present invention also includes a form obtained by subjecting a person skilled in the art to a modification of the above embodiment, and another embodiment realized by arbitrarily combining the components of the above embodiment.

例えば、上記実施の形態では、複数の子機100の各々が1つのセンサ400と接続されているとしたが、これに限定されず、複数のセンサと接続されていてもよい。 For example, in the above embodiment, it is assumed that each of the plurality of slave units 100 is connected to one sensor 400, but the present invention is not limited to this, and may be connected to a plurality of sensors.

また、例えば、センサ400は、温度センサに限定されない。センサ400は、例えば、湿度管理を行う必要がある倉庫等で利用するための湿度センサ、工場内に入出庫する際に物品の有無等を検出するのに利用するための赤外線センサ、荷載センサのような機械的な機構で状態を検知するためのメカニカルセンサ、パワーモジュールの過電流保護等の目的に使用するための電流センサ、又は、工作機械において油等の液体又は空気等の気体の流れる量をもとに状態を検知するための流量センサ等にも適用することができる。すなわち、複数の子機100の各々は、例えば温度センサ、湿度センサ、赤外線センサ、メカニカルセンサ、電流センサ及び流量センサのうち少なくとも1つ以上のセンサと接続されていればよい。 Further, for example, the sensor 400 is not limited to the temperature sensor. The sensor 400 is, for example, a humidity sensor for use in a warehouse or the like where humidity control needs to be performed, an infrared sensor for use in detecting the presence or absence of an article when entering or leaving a factory, or a loading sensor. A mechanical sensor for detecting the state by such a mechanical mechanism, a current sensor for use for the purpose of overcurrent protection of a power module, or an amount of liquid such as oil or gas such as air flowing in a machine tool. It can also be applied to a flow sensor or the like for detecting a state based on the above. That is, each of the plurality of slave units 100 may be connected to, for example, at least one of a temperature sensor, a humidity sensor, an infrared sensor, a mechanical sensor, a current sensor, and a flow rate sensor.

また、例えば、上記実施の形態では、算出部130、制御部140、及び、取得部150は、CPUと制御プログラムとによって構成されると説明した。例えば、子機100が備える算出部130、制御部140、及び、取得部150等の処理部の構成要素は、1つ又は複数の電子回路で構成されてもよい。1つ又は複数の電子回路は、それぞれ、汎用的な回路でもよいし、専用の回路でもよい。1つ又は複数の電子回路には、例えば、半導体装置、IC(Integrated Circuit)、又は、LSI(Large Scale Integration)等が含まれてもよい。IC又はLSIは、1つのチップに集積されてもよく、複数のチップに集積されてもよい。ここでは、IC又はLSIと呼んでいるが、集積の度合いによって呼び方が変わり、システムLSI、VLSI(Very Large Scale Integration)、又は、ULSI(Ultra Large Scale Integration)と呼ばれるかもしれない。また、LSIの製造後にプログラムされるFPGA(Field Programmable Gate Array)も同じ目的で使うことができる。 Further, for example, in the above embodiment, it has been described that the calculation unit 130, the control unit 140, and the acquisition unit 150 are composed of a CPU and a control program. For example, the components of the processing unit such as the calculation unit 130, the control unit 140, and the acquisition unit 150 included in the slave unit 100 may be composed of one or a plurality of electronic circuits. The one or more electronic circuits may be general-purpose circuits or dedicated circuits, respectively. The one or more electronic circuits may include, for example, a semiconductor device, an IC (Integrated Circuit), an LSI (Large Scale Integration), or the like. The IC or LSI may be integrated on one chip or may be integrated on a plurality of chips. Here, it is called IC or LSI, but the name changes depending on the degree of integration, and it may be called system LSI, VLSI (Very Large Scale Integration), or ULSI (Ultra Large Scale Integration). Further, FPGA (Field Programmable Gate Array) programmed after manufacturing the LSI can also be used for the same purpose.

また、本発明の全般的又は具体的な態様は、システム、装置、方法、集積回路又はコンピュータプログラムで実現されてもよい。或いは、当該コンピュータプログラムが記憶された光学ディスク、HDD(Hard Disk Drive)若しくは半導体メモリ等のコンピュータ読み取り可能な非一時的記録媒体で実現されてもよい。また、システム、装置、方法、集積回路、コンピュータプログラム及び記録媒体の任意な組み合わせで実現されてもよい。 In addition, general or specific embodiments of the present invention may be realized by a system, an apparatus, a method, an integrated circuit or a computer program. Alternatively, it may be realized by a computer-readable non-temporary recording medium such as an optical disk, HDD (Hard Disk Drive) or semiconductor memory in which the computer program is stored. Further, it may be realized by any combination of a system, an apparatus, a method, an integrated circuit, a computer program and a recording medium.

本発明の通信装置は、例えば、複数の通信装置が互いにBluetoothに基づく通信規格で通信する通信システムに適用できる。 The communication device of the present invention can be applied to, for example, a communication system in which a plurality of communication devices communicate with each other according to a communication standard based on Bluetooth.

100、101、102、103、104 子機(通信装置)
105 他の子機(他の通信装置)
110 第1通信部
120 第2通信部
130 算出部
140 制御部
150 取得部
160 記憶部
161 時間情報
162 順序情報
163 識別子情報
200 親機
300 端末装置
400、401、402、403、404 センサ
500 通信システム
t0、t1、t2、t3 時刻
Tadv 時間
100, 101, 102, 103, 104 slave unit (communication device)
105 Other handset (other communication device)
110 1st communication unit 120 2nd communication unit 130 Calculation unit 140 Control unit 150 Acquisition unit 160 Storage unit 161 Time information 162 Order information 163 Identifier information 200 Master unit 300 Terminal device 400, 401, 402, 403, 404 Sensor 500 Communication system t0, t1, t2, t3 time Tadv time

Claims (6)

親機、及び、それぞれが前記親機と通信する子機として機能する複数の通信装置を備えるシステムにおける前記複数の通信装置のうちの1つの通信装置であって、
前記親機と無線通信するための第1通信部と、
Bluetooth(登録商標)に基づいて他の通信装置と無線通信するための第2通信部と、
前記他の通信装置から前記第2通信部を介して第1データを含むパケットを受信した場合に、前記第1データを含むパケットを受信した時刻、及び、パケットの送信を許可する時間を示す時間情報に基づいて、自装置がパケットを送信する送信タイミングを算出する算出部と、
前記算出部が算出した前記送信タイミングから前記時間情報が示す時間内に(i)前記第1データ及び第2データを含むパケットを、前記第1通信部を介して送信し、且つ、(ii)前記第2データを含むパケットを、前記第2通信部を介して送信する制御部と、を備える
通信装置。
A communication device among the plurality of communication devices in a system including a master unit and a plurality of communication devices each functioning as a slave unit that communicates with the master unit.
The first communication unit for wireless communication with the master unit,
A second communication unit for wireless communication with other communication devices based on Bluetooth®,
When a packet containing the first data is received from the other communication device via the second communication unit, a time indicating the time when the packet containing the first data is received and the time for permitting the transmission of the packet. A calculation unit that calculates the transmission timing at which the own device transmits a packet based on the information ,
Within the time indicated by the time information from the transmission timing calculated by the calculation unit, (i) a packet containing the first data and the second data is transmitted via the first communication unit , and (ii). ) A communication device including a control unit that transmits a packet containing the second data via the second communication unit.
さらに、前記時間情報を記憶する記憶部を備え
請求項に記載の通信装置。
Further, a storage unit for storing the time information is provided .
The communication device according to claim 1 .
前記記憶部は、さらに、前記複数の通信装置がパケットを送信する順序を示す順序情報を記憶し、
前記算出部は、前記第1データを含むパケットを受信した時刻、前記時間情報、及び、前記順序情報に基づいて前記送信タイミングを算出する
請求項に記載の通信装置。
The storage unit further stores order information indicating the order in which the plurality of communication devices transmit packets.
The communication device according to claim 2 , wherein the calculation unit calculates the transmission timing based on the time when the packet containing the first data is received, the time information, and the order information.
請求項1~3のいずれか1項に記載の通信装置を複数備える
通信システム。
A communication system including a plurality of communication devices according to any one of claims 1 to 3 .
親機、及び、それぞれが前記親機と通信する子機として機能する複数の通信装置を備えるシステムにおける前記複数の通信装置のうちの1つの通信装置が実行する通信方法であって、
Bluetooth(登録商標)に基づいて他の通信装置から第1データを含むパケットを受信する受信ステップと、
前記受信ステップで前記第1データを含むパケットを受信した時刻、及び、パケットの送信を許可する時間を示す時間情報に基づいて、自装置がパケットを送信する送信タイミングを算出する算出ステップと、
前記算出ステップで算出した前記送信タイミングから前記時間情報が示す時間内に(i)前記第1データ及び第2データを含むパケットを無線通信で前記親機に送信し、且つ、(ii)前記第2データを含むパケットを、Bluetooth(登録商標)に基づく無線通信で前記他の通信装置に送信する送信ステップと、を含む
通信方法。
A communication method executed by one of the plurality of communication devices in a system including a master unit and a plurality of communication devices each functioning as a slave unit that communicates with the master unit.
A receiving step of receiving a packet containing the first data from another communication device based on Bluetooth®, and a receiving step.
A calculation step for calculating the transmission timing at which the own device transmits a packet based on the time when the packet containing the first data is received in the reception step and the time information indicating the time for permitting the transmission of the packet, and the calculation step.
Within the time indicated by the time information from the transmission timing calculated in the calculation step, (i) the packet containing the first data and the second data is transmitted to the master unit by wireless communication, and (ii) the said. A communication method including a transmission step of transmitting a packet containing the second data to the other communication device by wireless communication based on Bluetooth (registered trademark) .
請求項に記載の通信方法をコンピュータに実行させるための
プログラム。
A program for causing a computer to execute the communication method according to claim 5 .
JP2019035518A 2019-02-28 2019-02-28 Communication devices, communication systems, communication methods, and programs Active JP7072231B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019035518A JP7072231B2 (en) 2019-02-28 2019-02-28 Communication devices, communication systems, communication methods, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019035518A JP7072231B2 (en) 2019-02-28 2019-02-28 Communication devices, communication systems, communication methods, and programs

Publications (3)

Publication Number Publication Date
JP2020141262A JP2020141262A (en) 2020-09-03
JP2020141262A5 JP2020141262A5 (en) 2021-10-07
JP7072231B2 true JP7072231B2 (en) 2022-05-20

Family

ID=72265241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019035518A Active JP7072231B2 (en) 2019-02-28 2019-02-28 Communication devices, communication systems, communication methods, and programs

Country Status (1)

Country Link
JP (1) JP7072231B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001333067A (en) 1999-06-08 2001-11-30 Sony Corp Communication method, communication system and communication terminal
JP2002335204A (en) 2001-05-09 2002-11-22 Nippon Telegr & Teleph Corp <Ntt> Method for communication between base stations
JP2006174171A (en) 2004-12-16 2006-06-29 Canon Inc Communication apparatus and control method therefor
JP2008244827A (en) 2007-03-27 2008-10-09 Matsushita Electric Works Ltd Wireless authentication system
JP2011082679A (en) 2009-10-05 2011-04-21 Nec Corp Wireless communication system, terminal, wireless lan access point, and wireless communication method
JP2018191165A (en) 2017-05-09 2018-11-29 ソフトバンク株式会社 Information processing device, information processing method, and information processing program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001333067A (en) 1999-06-08 2001-11-30 Sony Corp Communication method, communication system and communication terminal
JP2002335204A (en) 2001-05-09 2002-11-22 Nippon Telegr & Teleph Corp <Ntt> Method for communication between base stations
JP2006174171A (en) 2004-12-16 2006-06-29 Canon Inc Communication apparatus and control method therefor
JP2008244827A (en) 2007-03-27 2008-10-09 Matsushita Electric Works Ltd Wireless authentication system
JP2011082679A (en) 2009-10-05 2011-04-21 Nec Corp Wireless communication system, terminal, wireless lan access point, and wireless communication method
JP2018191165A (en) 2017-05-09 2018-11-29 ソフトバンク株式会社 Information processing device, information processing method, and information processing program

Also Published As

Publication number Publication date
JP2020141262A (en) 2020-09-03

Similar Documents

Publication Publication Date Title
JP6183016B2 (en) Sensor information processing apparatus, sensor information processing method, and sensor information processing program
CN104301188A (en) Industrial network apparatus and data communication method
JP5233770B2 (en) GATEWAY DEVICE, ITS CONTROL METHOD, SYSTEM, PROGRAM FOR EXECUTING CONTROL METHOD, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2007218614A (en) Position-estimating method and position estimation system
JP7072231B2 (en) Communication devices, communication systems, communication methods, and programs
US9807780B2 (en) Data sharing system
JP2005130154A (en) Base station apparatus in mobile terminal positioning system
TWI745495B (en) Wireless communication device and recording medium for recording program
JP2022131917A (en) time synchronization system
JP5475479B2 (en) Communications system
EP2950602B1 (en) Wireless network and method
JP4563210B2 (en) Communication control method, communication node, and communication system
TWI783065B (en) Method for delaying signal transmissions from a device under test (dut) by transmitting congestive communication channel signals
KR101878626B1 (en) A wireless communication apparatus, a wireless communication method, and a wireless communication program
JP3948330B2 (en) Interconnect equipment between different networks
JP2001333081A (en) Wireless communication equipment and computer- readable storage medium
TW201924238A (en) Communication system, apparatus control system, communication device, communication control method, and program capable of easily realizing cooperation among a plurality of second systems
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
JPWO2019058715A1 (en) Communication control method, communication control device and communication control program
JP7089774B2 (en) Wireless access points, wireless communication systems, wireless communication methods, and wireless communication programs
US20160006802A1 (en) Data sharing system
JP6737104B2 (en) Wireless communication device, wireless communication program, and wireless communication system
CN103581125B (en) device search processing method
JP2022154103A (en) Communication device, communication system, and communication method
CN105491091B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210826

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210826

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20210826

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220126

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220427

R150 Certificate of patent or registration of utility model

Ref document number: 7072231

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150