Wireless communication device, wireless communication system, connection method in wireless communication device, and connection method in wireless communication system
The method addresses the limitations of direct connection ranges and battery-dependent data transmission in wireless communication systems by detecting and prioritizing connection candidates based on power and state, ensuring efficient data transfer.
Patent Information
- Application Number
- JP2023553817
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-10-17
- Estimated Expiration
- 2041-10-13
AI Technical Summary
Existing wireless communication systems are limited by the range in which terminal devices can be directly connected, and data transmission is hindered when storage batteries in these devices run low, leading to potential data discard.
A method for detecting connection destination candidates based on wireless signals, considering battery power levels and connection states, to establish efficient data transmission paths between base and slave devices, even when battery levels are insufficient.
Enables flexible switching of data transmission routes, ensuring efficient data transfer between wireless communication devices, even when battery capacity is low, by prioritizing connections based on available power and connection states.
Smart Images

Figure 0007568989000001 
Figure 0007568989000002 
Figure 0007568989000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a slave wireless communication device, a wireless communication system, a connection method in a slave wireless communication device, and a connection method in a wireless communication system. [Background technology]
[0002] In the technology disclosed in Patent Document 1, when two terminal devices equipped with wireless communication interfaces are to be paired, one user simultaneously touches the right index finger and the left index finger to the pulse wave sensors of the two terminal devices, respectively. Each of the two terminal devices generates key information including waveform information of the volume pulse wave detected from the user's index finger, detection time information, and the terminal address, and transmits the generated key information to a pairing server.
[0003] The pairing server receives key information transmitted by each of the two terminal devices and compares the received key information. If the comparison shows that the detection time information has a common area where the detection time information overlaps for a certain period of time or more and the distance between the waveform information is equal to or less than a certain value, the pairing server determines that the two terminal devices can be paired. The pairing server saves the terminal addresses of the two terminal devices that it has determined can be paired, and thereafter relays file transfers between the terminal devices using the saved terminal addresses. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2012-105100 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the technology disclosed in Patent Document 1, communication between two paired terminal devices is limited to the range in which the pairing server and each of the two terminal devices can directly connect to each other, or to the range in which the two terminal devices can directly connect to each other, and there is a problem in that the route cannot be flexibly switched.
[0006] In an environment where the terminal devices assumed to be used in Patent Document 1 can be carried around, each of the terminal devices will have a storage battery. In this case, even if one terminal device transmits data to another terminal device, if the storage capacity of the storage battery of the other terminal device is insufficient and the function of receiving data cannot be driven, the other terminal device cannot receive the data. As a result, there is a problem that the data transmitted by one terminal device is discarded.
[0007] In view of the above circumstances, the present invention aims to provide a technology that enables efficient transmission and reception of data in an environment where a parent and child wireless communication devices exist, even if the battery storage capacity of one of the wireless communication devices is insufficient. [Means for solving the problem]
[0008] One aspect of the present invention is a child wireless communication device comprising: a candidate connection destination detection unit that detects candidate connection destination wireless communication devices that are candidates for connection destinations based on wireless signals received from other wireless communication devices; a connection data acquisition unit that receives from the candidate connection destination wireless communication devices detected by the candidate connection destination detection unit power storage amount data indicating the power storage amount of a storage battery provided in the candidate connection destination wireless communication devices, connection status data indicating the connection status of the candidate connection destination wireless communication devices, and device identification data indicating whether the candidate connection destination wireless communication devices are a parent unit or a child unit, and acquires these as connection data; and a connection processing unit that determines, based on the connection data acquired by the connection data acquisition unit, whether a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device, in descending order of the power storage amount indicated by the power storage amount data, and if it is determined that the connection path can be established, connects to the candidate connection destination wireless communication device corresponding to the connection status data.
[0009] One aspect of the present invention is a wireless communication system including a parent wireless communication device and a child wireless communication device, the child wireless communication device including a connection destination candidate detection unit that detects a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from the parent wireless communication device or another child wireless communication device, and receives, from the connection destination candidate wireless communication device detected by the connection destination candidate detection unit, power storage amount data indicating the power storage amount of a storage battery included in the connection destination candidate wireless communication device, connection status data indicating a connection status of the connection destination candidate wireless communication device, and device identification data indicating whether the connection destination candidate wireless communication device is a parent device or a child device. and a connection processing unit that, based on the connection data acquired by the connection data acquisition unit, determines whether a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device, in order of the amount of stored power indicated by the power storage amount data, and if it is determined that the connection path can be established, connects to the connection destination candidate wireless communication device corresponding to the connection status data, wherein the parent wireless communication device or another child wireless communication device transmits the power storage amount data of its own device, the connection status data of its own device, and the device identification data of its own device.
[0010] One aspect of the present invention is a connection method in a slave wireless communication device, which detects a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from another wireless communication device, receives from the detected connection destination candidate wireless communication device power storage amount data indicating the power storage amount of a storage battery provided in the connection destination candidate wireless communication device, connection status data indicating the connection status of the connection destination candidate wireless communication device, and device identification data indicating whether the connection destination candidate wireless communication device is a parent unit or a child unit, and acquires these as connection data, and based on the acquired connection data, determines whether a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device, in order of the power storage amount indicated by the largest power storage amount, and if it is determined that the connection path can be established, connects to the connection destination candidate wireless communication device corresponding to the connection status data.
[0011] One aspect of the present invention is a connection method in a wireless communication system including a master wireless communication device and a slave wireless communication device, comprising: A connection method in a wireless communication system, in which the child wireless communication device detects a candidate wireless communication device that is a connection destination based on a wireless signal received from the parent wireless communication device or another child wireless communication device, the parent wireless communication device or the other child wireless communication device transmits power storage data indicating the power storage amount of a storage battery provided in the child wireless communication device, connection status data indicating the connection status of the child wireless communication device, and device identification data indicating whether the child wireless communication device is a parent device or a child device, the child wireless communication device receives the device identification data, the power storage data, and the connection status data and acquires them as connection data, and the child wireless communication device determines, based on the acquired connection data, whether a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device, in descending order of the power storage amount indicated by the power storage amount data, and if it determines that the connection path can be established, connects to the candidate wireless communication device corresponding to the connection status data. Effect of the Invention
[0012] According to the present invention, in an environment in which there are parent and child wireless communication devices, it becomes possible to efficiently transmit and receive data even if the amount of stored power in the storage battery of one of the wireless communication devices is insufficient. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram (part 1) showing an example of a configuration of a wireless communication system according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing an example of an internal configuration of a master wireless communication device according to an embodiment of the present invention; FIG. [Diagram 3] 5 is a diagram showing an example of a data configuration of a table included in a storage unit included in a master wireless communication device according to an embodiment of the present invention. FIG. [Figure 4] 1 is a block diagram showing an example of an internal configuration of a slave wireless communication device according to an embodiment of the present invention; [Diagram 5] 4 is a diagram showing an example of a data configuration of a table included in a storage unit included in a slave wireless communication device according to an embodiment of the present invention. FIG. [Figure 6] 11 is a diagram showing a process flow for selecting a wireless communication device as a connection destination in a slave wireless communication device according to an embodiment of the present invention. FIG. [Figure 7] FIG. 2 is a block diagram (part 2) showing an example of the configuration of a wireless communication system according to an embodiment of the present invention. [Figure 8] 8 is a diagram showing a flow of connection processing in the wireless communication system shown in FIG. 7. [Figure 9] FIG. 3 is a block diagram (part 3) showing an example of a configuration of a wireless communication system according to an embodiment of the present invention. [Figure 10] 10 is a diagram showing a flow of connection processing in the wireless communication system shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing a configuration of a wireless communication system 1 according to an embodiment of the present invention. The wireless communication system 1 includes a cloud system 2, master wireless communication devices 20-1 and 20-2, and slave wireless communication devices 10-1 and 10-2.
[0015] The cloud system 2 includes, for example, a server device 3 and a communication network 4. The cloud system 2 is a system that provides a so-called cloud communication service. Here, the cloud communication service is, for example, a communication service that enables an application program or the like provided in the server device 3 to be used by any communication device connected to the communication network 4 without being aware of the physical configuration of the server device 3 or the communication network 4. Note that there may be a plurality of server devices 3 connected to the communication network 4. The communication network 4 may be, for example, the Internet, a communication network operated by a specific communication carrier, or a communication network in which the Internet and a communication network operated by a specific communication carrier are connected.
[0016] In this embodiment, the cloud system 2 is utilized in such a manner that the parent wireless communication devices 20-1, 20-2 receive data transmitted by the child wireless communication devices 10-1, 10-2 and transfer the data to the cloud system 2, and the server device 3 of the cloud system 2 receives the data transferred by the parent wireless communication devices 20-1, 20-2 and stores the data in an internal memory area.
[0017] The master wireless communication devices 20-1 and 20-2 are devices that terminate the communication services provided by the cloud system 2. The master wireless communication devices 20-1 and 20-2 are, for example, GW (Gateway) devices or ONU (Optical Network Unit) devices equipped with wireless communication functions. The master wireless communication devices 20-1 and 20-2 are connected to a communication device such as a router provided in the communication network 4 of the cloud system 2 via an optical line. The slave wireless communication devices 10-1 and 10-2 are portable devices that can be installed in any location, and are, for example, wireless terminal devices equipped with sensors that measure various physical quantities such as the ambient temperature. The slave wireless communication devices 10-1 and 10-2 generate data including the physical quantities measured by the sensors (hereinafter referred to as "sensor data"). The slave wireless communication devices 10-1 and 10-2 transmit the generated sensor data toward the master wireless communication devices 20-1 and 20-2 along the connection path. The master wireless communication devices 20-1, 20-2 and the slave wireless communication devices 10-1, 10-2, and the slave wireless communication devices 10-1, 10-2 are connected to each other by a wireless communication method such as Wi-Fi (registered trademark).
[0018] The master wireless communication devices 20-1 and 20-2 also have the same internal configuration, and hereinafter, when referring to any one of the master wireless communication devices, the term will be referred to as the master wireless communication device 20. The slave wireless communication devices 10-1 and 10-2 also have the same internal configuration, and hereinafter, when referring to any one of the slave wireless communication devices, the term will be referred to as the slave wireless communication device 10.
[0019] One master wireless communication device 20 can be connected simultaneously to multiple slave wireless communication devices 10 within a predetermined upper limit of the number of connections. In contrast, one slave wireless communication device 10 can be connected to any one master wireless communication device 20, but cannot be connected simultaneously to multiple master wireless communication devices 20. One slave wireless communication device 10 can be connected simultaneously to multiple other slave wireless communication devices 10 within a predetermined upper limit of the number of connections.
[0020] 1 shows, as an example, two child wireless communication devices 10-1 and 10-2 for the child type wireless communication devices, but the number of child type wireless communication devices may be one or three or more. As for the parent type wireless communication devices, two parent wireless communication devices 20-1 and 20-2 are shown, but the number of parent type wireless communication devices may be three or more. The number of parent type wireless communication devices may be one when there are multiple child type wireless communication devices.
[0021] (Internal configuration of parent wireless communication device 20) 2 is a block diagram showing an example of the internal configuration of the parent wireless communication device 20. The parent wireless communication device 20 includes a wired communication processing unit 21, a power storage unit 22, a storage unit 23, a control unit 24, and a wireless communication processing unit 25. In the following, when indicating the reference numerals of the functional units included in the parent wireless communication devices 20-1 and 20-2, the reference numerals of the functional units are indicated by adding sub-numbers of "-1" and "-2", respectively. For example, when indicating the wired communication processing unit 21 included in the parent wireless communication device 20-1, it is indicated as wired communication processing unit 21-1.
[0022] The wired communication processing unit 21 connects to a communication device such as a router provided in the communication network 4 of the cloud system 2 via an optical line. The wired communication processing unit 21 captures sensor data that the wireless communication processing unit 25 receives from any of the child wireless communication devices 10 and outputs. The wired communication processing unit 21 performs processing to transmit the captured sender data to the server device 3. The wired communication processing unit 21 receives optical power through the connecting optical line, and outputs the power received by the optical power supply to the power storage unit 22.
[0023] The power storage unit 22 includes a storage battery therein, and charges the storage battery with power output by the wired communication processing unit 21. The power storage unit 22 supplies the power stored in the storage battery to functional units other than the power storage unit 22 included in the master wireless communication device 20. In other words, the wired communication processing unit 21, the storage unit 23, the control unit 24, and the wireless communication processing unit 25 are activated and perform processing by the power supplied from the power storage unit 22. The power storage unit 22 uses the power stored in the storage battery to measure the amount of power stored in the storage battery, i.e., the stored power amount, at regular intervals, and writes and stores the measured stored power amount in the storage unit 23.
[0024] The storage unit 23 is, for example, a non-volatile storage medium such as a hard disk, and has a device identification data table 231, a connection state data table 232, a power storage data table 233, and a cloud system connection information table 234, as shown in FIG. 3. The device identification data table 231 has items of "device identification data" and "address information". In the "device identification data" item, device identification data that is assigned in advance to the master wireless communication device 20 is written. Here, the device identification data is, for example, a Wi-Fi (registered trademark) SSID (Service Set Identifier), and in this embodiment, an identifier that can uniquely identify each of the slave wireless communication devices 10-1, 10-2 and the master wireless communication devices 20-1, 20-1, and further, an identifier that can specify whether it is a master type or a slave type is applied. FIG. 3 shows, as an example, device identification data in which an identifier "-001" is added to the character "Parent" that can specify that the master wireless communication device 20 is a master type wireless communication device is written.
[0025] In the "Address Information" field, address information that is assigned in advance to the parent wireless communication device 20, that is, the wireless communication device whose device identification data is "Parent-001", is written. Here, the address information assigned to the parent wireless communication device 20 is, for example, a MAC (Media Access Control) address.
[0026] The connection status data table 232 has the fields "Maximum number of connections", "Number of connections", and "Connected devices". The "Maximum number of connections" field is written in advance with the maximum number of child wireless communication devices 10 that the parent wireless communication device 20 can connect to at the same time. The "Number of connections" field is written with the number of child wireless communication devices 10 connected to the parent wireless communication device 20. The initial value of the "Number of connections" field is "0". The "Connected devices" field is written with a number of records that matches the number in the "Number of connections" field, and each record contains information that associates device identification data and address information of each child wireless communication device 10 connected to the parent wireless communication device 20.
[0027] The stored power amount data table 233 has a field for "storage power amount." In the "storage power amount" field, a numerical value indicating the stored power amount measured by the power storage unit 22 at regular intervals as described above is written by the power storage unit 22 in units of, for example, "kWh."
[0028] The cloud system connection information table 234 has the items of "source" and "destination". In the "source" item, information for identifying the device itself in the cloud system 2, i.e., the parent wireless communication device 20, is written. In the "destination" item, information for identifying the server device 3 in the cloud system 2 is written. For example, in a case where the communication network 4 of the cloud system 2 transfers data by IP (Internet Protocol) routing, in the "source" item, an IP address assigned to the parent wireless communication device 20 when the parent wireless communication device 20 connects to the cloud system 2 is written. In the "destination" item, an IP address assigned to the server device 3 is written. Note that in a case where the IP address assigned to the server device 3 can be searched from a domain name by a DNS (Domain Name System) server device or the like provided in the communication network 4, the domain name assigned to the server device 3 may be written in the "destination" item as information for identifying the server device 3.
[0029] The wireless communication processing unit 25 transmits and receives wireless signals to and from the connected child wireless communication device 10. When the wireless communication processing unit 25 receives a wireless signal including sensor data (hereinafter referred to as a “sensor data signal”) from the child wireless communication device 10, the wireless communication processing unit 25 reads the sensor data from the received sensor data signal and outputs the read sensor data to the wired communication processing unit 21.
[0030] When the wireless communication processing unit 25 detects a new connection with the child wireless communication device 10, it adds "1" to the value in the "number of connections" field in the connection status data table 232 to set the new value as the "number of connections" field. When the wireless communication processing unit 25 detects a new connection with the child wireless communication device 10, it adds a new record to the "connected device" field in the connection status data table 232, associating device identification data of the newly connected child wireless communication device 10 with address information.
[0031] When the wireless communication processing unit 25 detects that the connection with the child wireless communication device 10 has been disconnected, it subtracts "1" from the value in the "number of connections" field in the connection status data table 232 to set the new value in the "number of connections" field. When the wireless communication processing unit 25 detects that the connection with the child wireless communication device 10 has been disconnected, it deletes the record corresponding to the child wireless communication device 10 from the "connected device" field in the connection status data table 232.
[0032] The wireless communication processing unit 25 transmits a presence notification signal, which includes the device identification data of its own device stored in the device identification data table 231 and has its own device address information as a transmission source, to the surrounding space by wireless radio waves at regular intervals. Here, the presence notification signal is, for example, a signal equivalent to a beacon signal in Wi-Fi (registered trademark), and reaches a distance according to the strength of the wireless radio waves. Note that, in order for any wireless communication device to receive the presence notification signal, predetermined address information such as a broadcast address is specified as the destination of the presence notification signal.
[0033] When the wireless communication processing unit 25 receives a response signal to the presence notification signal it has transmitted, the wireless communication processing unit 25 generates connection data including power storage data, connection state data, and device identification data. The wireless communication processing unit 25 wirelessly transmits a connection standby signal including the generated connection data to the slave wireless communication device 10 that has transmitted the response signal. Here, the power storage data is a numerical value indicating the power storage amount in the "power storage amount" field of the power storage data table 233. The connection state data is a numerical value in the "maximum number of connections" and "number of connections" fields of the connection state data table 232. The device identification data is the device identification data in the "device identification data" field of the device identification data table 231.
[0034] The storage battery provided in the power storage unit 22 often discharges more power, i.e., consumes more power, than the amount of power charged by optical power supply via the wired communication processing unit 21, and the amount of power stored in the storage battery decreases if the master wireless communication device 20 continues to be activated. Therefore, the control unit 24 refers to the amount of stored power in the "Stored Power Amount" field of the stored power amount data table 233, and performs a process of transitioning to the sleep state when the amount of stored power falls below a predetermined threshold value indicating a transition to a sleep state. The control unit 24 performs a process of transitioning to the wake-up state when the amount of stored power in the "Stored Power Amount" field of the stored power amount data table 233 exceeds a predetermined threshold value indicating a transition to a wake-up state.
[0035] In the activated state, all the functional units of the parent wireless communication device 20 are activated. In contrast, in the sleep state, the wireless communication processing unit 25 of the parent wireless communication device 20 stops all processing, the wired communication processing unit 21 stops processing other than optical power supply, and the power storage unit 22, the storage unit 23, and the control unit 24 are activated. The reason why the power storage unit 22, the storage unit 23, and the control unit 24 are activated in the sleep state is to update the value in the "Stored power amount" field of the stored power amount data table 233 of the storage unit 23, and to detect the timing to switch from the sleep state to the activated state. When transitioning from the sleep state to the activated state, the control unit 24 initializes the "Number of connections" field of the connection state data table 232 to "0" and deletes all records in the "Connected device" field.
[0036] (Internal configuration of the child wireless communication device 10) 4 is a block diagram showing an example of the internal configuration of the child wireless communication device 10. The child wireless communication device 10 includes a power generation unit 11, a power storage unit 12, a sensor unit 13, a memory unit 14, a wireless communication processing unit 15, a connection destination candidate detection unit 16, a connection data acquisition unit 17, and a connection processing unit 18. In the following, when indicating the reference numerals of the respective functional units included in the child wireless communication devices 10-1 and 10-2, the reference numerals of the functional units are respectively given sub-numbers of "-1" and "-2", and for example, when indicating the power generation unit 11 included in the child wireless communication device 10-1, it is indicated as the power generation unit 11-1.
[0037] The power generation unit 11 generates electricity from an environment such as solar power generation, and outputs the generated electricity to the power storage unit 12. The power storage unit 12 includes a storage battery and charges the storage battery with the electricity output by the power generation unit 11. The power storage unit 12 supplies the electricity stored in the storage battery to functional units other than the power generation unit 11 and the power storage unit 12 included in the child wireless communication device 10. In other words, the sensor unit 13, the storage unit 14, the wireless communication processing unit 15, the connection destination candidate detection unit 16, the connection data acquisition unit 17, and the connection processing unit 18 are activated by the electricity supplied from the power storage unit 12 and perform processing. The power storage unit 12 uses the power of the storage battery to measure the amount of electricity stored in the storage battery, i.e., the stored electricity amount, at regular intervals, and writes and stores the measured stored electricity amount in the storage unit 14.
[0038] The sensor unit 13 includes a sensor that measures various physical quantities such as the ambient temperature at regular intervals, and writes and stores sensor data obtained by the measurement using the sensor in the storage unit 14. When generating the sensor data, the sensor unit 13 generates the sensor data including, in addition to the physical quantity measured by the sensor, information for identifying the child wireless communication device 10 that performed the measurement, such as device identification data given to the child wireless communication device 10 and the time of measurement obtained from a timekeeping means such as a clock provided inside. This makes it possible to identify which child wireless communication device 10 measured the physical quantity and when the physical quantity was measured when the sensor data is stored in the internal storage area of the server device 3.
[0039] The storage unit 14 is, for example, a non-volatile storage medium such as a hard disk, and stores a device identification data table 141, a connection state data table 142, a power storage amount data table 143, and a sensor data table 144, as shown in FIG. 5. The device identification data table 141 has items of "device identification data" and "address information". In the "device identification data" item, device identification data that is assigned in advance to the child wireless communication device 10 is written. FIG. 5 shows, as an example, an example in which device identification data in which an identifier "-002" is added to the character "Child" that can identify the child wireless communication device 10 as a child type wireless communication device is stored. In the "address information" item, address information assigned to the child wireless communication device 10, i.e., the wireless communication device with device identification data "Child-002" is written.
[0040] The connection state data table 142 has the items of "Connection upper limit number", "Connection number", "Connection path to parent device", and "Connected device". In the "Connection upper limit number" item, the upper limit number of other wireless communication devices to which the child wireless communication device 10 can be connected at the same time is written. As described above, the child wireless communication device 10 can only be connected to one parent wireless communication device 20. Therefore, for example, when the value of the "Connection upper limit number" item is "10", the child wireless communication device 10 can be connected to a maximum of ten other child wireless communication devices 10, or can be connected to one parent wireless communication device 20 and nine other child wireless communication devices 10. In the "Connection number" item, the total number of the parent wireless communication devices 20 connected to the child wireless communication device 10 and the other child wireless communication devices 10 connected to the child wireless communication device 10 is written. Note that the initial value of the "Connection number" item is "0".
[0041] In the "connection path to the parent device", when the child wireless communication device 10 is connected to any one parent wireless communication device 20 directly or indirectly via another child wireless communication device 10, information indicating the connection path to the parent wireless communication device 20 to which the child wireless communication device 10 is connected is written. For example, it is assumed that the device identification data given to the child wireless communication devices 10-1 and 10-2 shown in FIG. 1 are "Child-001" and "Child-002", respectively, and the device identification data given to the parent wireless communication devices 20-1 and 20-2 are "Parent-001" and "Parent-002", respectively. For example, it is assumed that the child wireless communication device 10-1 is directly connected to the parent wireless communication device 20-1, and the child wireless communication device 10-2 is connected to the parent wireless communication device 20-1 via the child wireless communication device 10-1.
[0042] In this case, the information shown in Fig. 5 is written in the "Connection path to the parent device" field of the connection state data table 142-2 in the storage unit 14-2 of the child wireless communication device 10-2. That is, information indicating a connection path to the parent wireless communication device 20-1, "Child-001, Parent-001", which lists the device identification data "Child-001" of the child wireless communication device 10-1 to which the child wireless communication device 10-2 is directly connected and the device identification data "Parent-001" of the parent wireless communication device 20-1 to which the child wireless communication device 10-1 is connected, in order of proximity to the child wireless communication device 10-2 on the connection path, is written. On the other hand, in the case of the child wireless communication device 10-1 directly connected to the parent wireless communication device 20-1, only "Parent-001" is written in the "Connection path to the parent device" field of the connection state data table 142-1 in the storage unit 14-1 of the child wireless communication device 10-1.
[0043] The "Connected Devices" field contains records whose number matches the number in the "Number of Connections" field, and each record contains information associating device identification data and address information for the parent wireless communication device 20 connected to the child wireless communication device 10 or for other child wireless communication devices 10.
[0044] The stored power amount data table 143 has a field for “stored power amount”, and as described above, a numerical value indicating the stored power amount measured by the power storage unit 12 at regular intervals is written in the field for “stored power amount” in units of, for example, “kWh” by the power storage unit 12. In the sensor data table 144, the sensor data generated by the sensor provided inside the sensor unit 13 is written by the sensor unit 13 as described above.
[0045] The wireless communication processing unit 15 transmits and receives wireless signals to and from the parent wireless communication device 20 to which it is connected or to another child wireless communication device 10 to which it is connected. When the wireless communication processing unit 15 detects that sensor data is stored in the sensor data table 144, it generates a wireless signal including the sensor data, i.e., a sensor data signal. The wireless communication processing unit 15 transmits the generated sensor data signal to a wireless communication device to which its own device is directly connected and which has a connection path to any of the parent wireless communication devices 20. Here, the wireless communication device to which its own device is directly connected and which has a connection path to any of the parent wireless communication devices 20 is the parent wireless communication device 20 or another child wireless communication device 10 corresponding to the device identification data indicated at the beginning of the information indicating the connection path to the parent device in the item "Connection path to parent device" in the connection status data table 142.
[0046] When the wireless communication processing unit 15 receives a sensor data signal from another child wireless communication device 10, it transfers the received sensor data signal to the parent wireless communication device 20 or another child wireless communication device 10 that corresponds to the device identification data shown at the beginning of the information indicating the connection path to the parent device in the "Connection path to parent device" item of the connection status data table 142. Note that the wireless communication processing unit 25 of the parent wireless communication device 20 and the wireless communication processing unit 15 of the child wireless communication device 10 determine what type of wireless signal the wireless signal is, for example, whether it is a sensor data signal or not, by referring to information written in a header area of data included in the wireless signal, etc.
[0047] When the item "Connection path to parent device" in the connection state data table 142 is blank, the wireless communication processing unit 15 does not transmit the sensor data even if the sensor data is stored in the sensor data table 144. When the item "Connection path to parent device" in the connection state data table 142 is blank, the wireless communication processing unit 15 discards the received sensor data signal without forwarding it, even if the sensor data signal is received from another child wireless communication device 10.
[0048] When the wireless communication processing unit 15 receives a connection request signal indicating a connection request from another child wireless communication device 10, rather than requesting a connection from its own device, it adds "1" to the value in the "number of connections" field in the connection status data table 142, and sets the value as a new value in the "number of connections" field. When the wireless communication processing unit 15 receives a connection request signal from another child wireless communication device 10, it adds a record to the "connected device" field in the connection status data table 142, associating device identification data of the other child wireless communication device 10 that received the connection request with address information.
[0049] When the wireless communication processing unit 15 detects that the connection with the parent wireless communication device 20 or the other child wireless communication device 10 has been disconnected, it subtracts "1" from the value in the "Connection count" field of the connection status data table 142 to set the new value in the "Connection count" field. When the wireless communication processing unit 15 detects that the connection with the parent wireless communication device 20 or the other child wireless communication device 10 has been disconnected, it deletes from the "Connected device" field of the connection status data table 142 the record corresponding to the parent wireless communication device 20 or the other child wireless communication device 10 whose connection has been disconnected.
[0050] When the wireless communication processing unit 15 detects that the connection with the parent wireless communication device 20 or another child wireless communication device 10 has been disconnected, and detects that the connection path to the parent wireless communication device 20 has been lost due to the disconnection, the wireless communication processing unit 15 deletes the content of the "Connection path to parent device" item in the connection status data table 142 and makes it blank. More specifically, when the wireless communication processing unit 15 detects that the connection with the wireless communication device corresponding to the device identification data shown at the beginning of the information indicating the connection path to the parent device in the "Connection path to parent device" item in the connection status data table 142 has been disconnected, the wireless communication processing unit 15 deletes the content of the "Connection path to parent device" item in the connection status data table 142 and makes it blank.
[0051] The wireless communication processing unit 15 transmits, at regular intervals, a presence notification signal containing the device identification data of its own device stored in the device identification data table 141 and having its own device's address information as its sender, via wireless radio waves, into the surrounding space.
[0052] When the wireless communication processing unit 15 receives a response signal to the presence notification signal transmitted by itself, the wireless communication processing unit 15 generates connection data including power storage data, connection state data, and device identification data. The wireless communication processing unit 15 wirelessly transmits a connection standby signal including the generated connection data to the parent wireless communication device 20 that transmitted the response signal, or to another child wireless communication device 10. Here, the power storage data is a numerical value indicating the power storage amount in the "power storage amount" field of the power storage data table 143. The connection state data is information indicating the numerical values in the "maximum number of connections" and "number of connections" fields of the connection state data table 142 and the connection path to the parent device in the "connection path to parent device" field. The device identification data is the device identification data in the "device identification data" field of the device identification data table 141.
[0053] The connection destination candidate detection unit 16 detects a wireless communication device that is a connection destination candidate (hereinafter referred to as a "connection destination candidate wireless communication device") by receiving a presence notification signal sent by the parent wireless communication device 20 or another child wireless communication device 10 via the wireless communication processing unit 15. The connection destination candidate detection unit 16 transmits a response signal to the presence notification signal to the connection destination candidate wireless communication device that has been detected. The connection data acquisition unit 17 receives and acquires connection data from the connection destination candidate wireless communication device detected by the connection destination candidate detection unit 16 via the wireless communication processing unit 15.
[0054] The connection processing unit 18 prioritizes direct connection to any of the parent wireless communication devices 20 over connection to any of the parent wireless communication devices 20 via other child wireless communication devices 10, and further prioritizes a device with a larger amount of stored power indicated by the stored power amount data, and selects one of the connection destination candidate wireless communication devices with which a connection path to the parent wireless communication device 20 can be established based on the connection data acquired by the connection data acquisition unit 17. The connection processing unit 18 performs processing for connecting with the selected connection destination candidate wireless communication device.
[0055] In many cases, the amount of power discharged from the storage battery of the power storage unit 12, i.e., the amount of power consumed, is greater than the amount of power charged by the power generation by the power generation unit 11, and the amount of power stored in the storage battery decreases as the child wireless communication device 10 continues to operate. Therefore, in the child wireless communication device 10, when the amount of power stored in the storage battery of the power storage unit 12 is no longer sufficient to start the child wireless communication device 10, the power storage unit 12, the sensor unit 13, the memory unit 14, the wireless communication processing unit 15, the connection destination candidate detection unit 16, the connection data acquisition unit 17, and the connection processing unit 18 are stopped. The power generation unit 11 is in a state where it can charge the generated power to the storage battery of the power storage unit 12 even if the power storage unit 12 is stopped. When the power storage unit 11 generates power again and the amount of power stored in the storage battery of the power storage unit 12 becomes sufficient to start up the child wireless communication device 10, the power storage unit 12, the sensor unit 13, the memory unit 14, the wireless communication processing unit 15, the connection destination candidate detection unit 16, the connection data acquisition unit 17, and the connection processing unit 18 restart. Upon restarting, the connection processing unit 18 initializes the "number of connections" field in the connection status data table 142 to "0", deletes information in the "connection path to parent device" field, and deletes all records in the "connected device" field.
[0056] (Connection process by the child wireless communication device 10) 6 is a flowchart showing a process flow for selecting and connecting to a wireless communication device as a connection destination by the wireless communication processing unit 15, the connection destination candidate detection unit 16, the connection data acquisition unit 17, and the connection processing unit 18 of the child wireless communication device 10. The flowchart of FIG. 6 may be started, for example, in the following cases.
[0057] For example, assume that the child wireless communication device 10 is connected to one of the parent wireless communication devices 20 and the parent wireless communication device 20 transitions to a sleep state, and that the child wireless communication device 10 is connected to the parent wireless communication device 20 via another child wireless communication device 10 and the other child wireless communication device 10 is stopped due to a decrease in the amount of stored power. In such a case, the wireless communication processing unit 15 of the child wireless communication device 10 detects that the connection has been disconnected when, for example, a response signal to a polling signal transmitted to the other wireless communication device at regular intervals to detect the connection state is not received from the other wireless communication device. When the wireless communication processing unit 15 detects that the connection has been disconnected, it outputs an instruction signal to the connection candidate detection unit 16 to detect a new connection candidate. When the connection candidate detection unit 16 receives the instruction signal, the process of the flowchart in FIG. 6 is started.
[0058] For example, assume that wireless communication processing unit 15 detects that new sensor data has been written to sensor data table 144 of storage unit 14 by sensor unit 13 of child wireless communication device 10. In this case, when wireless communication processing unit 15 detects that no information indicating a connection path to the parent unit has been written in the "Connection path to parent unit" field of connection status data table 142 as described above, wireless communication processing unit 15 does not transmit sensor data, but at that time outputs an instruction signal to detect a new connection destination candidate to connection destination candidate detection unit 16. When connection destination candidate detection unit 16 receives the instruction signal, the process of the flowchart in FIG. 6 is started.
[0059] The process flow will be described below with reference to the flowchart in Fig. 6. As described above, the wireless communication processing unit 25 of the master wireless communication device 20 and the wireless communication processing unit 15 of the slave wireless communication device 10 transmit a presence notification signal to the surrounding space by wireless radio waves at regular intervals. The transmitted presence notification signal reaches a distance according to the strength of the wireless radio waves.
[0060] The connection destination candidate detection unit 16, which has received an instruction signal to detect a new connection destination candidate, detects a connection destination candidate wireless communication device. That is, when the connection destination candidate detection unit 16 receives a presence notification signal from the parent wireless communication device 20 or another child wireless communication device 10 via the wireless communication processing unit 15, it reads out device identification data and address information of the source of the presence notification signal included in the received presence notification signal. The connection destination candidate detection unit 16 sets the wireless communication device corresponding to the combination of the read out device identification data and address information as the connection destination candidate wireless communication device. For each of all the detected connection destination candidate wireless communication devices, the connection destination candidate detection unit 16 transmits a response signal to the presence notification signal with the corresponding address information as the destination and the address information of its own device as the source via the wireless communication processing unit 15 (step S1).
[0061] Each of the connection destination candidate wireless communication devices that receives a response signal corresponding to the presence notification signal generates its own connection data. The connection destination candidate wireless communication device transmits a connection wait signal including the generated connection data, with the address information of the sender of the response signal as the destination and the address information of the device itself as the sender. The connection data acquisition unit 17 of the child wireless communication device 10 receives the connection wait signal including the connection data via the wireless communication processing unit 15. The connection data acquisition unit 17 reads the connection data from the received connection wait signal, and acquires a combination of the read connection data and the address information of the sender of the connection wait signal (step S2).
[0062] The connection data acquisition unit 17 repeatedly acquires combinations of connection data and address information for a predetermined period of time, and outputs all of the acquired combinations of connection data and address information to the connection processing unit 18. The connection processing unit 18 acquires all of the combinations of connection data and address information output by the connection data acquisition unit 17. The connection processing unit 18 classifies the acquired connection data into connection data generated by the parent wireless communication device 20 (hereinafter referred to as the parent wireless communication device connection data) and connection data generated by other child wireless communication devices 10 (hereinafter referred to as the child wireless communication device connection data) based on the character strings "Parent" and "Child" included in the device identification data of the connection data. The connection processing unit 18 arranges the parent wireless communication data in descending order of the amount of stored power indicated by the stored power amount data included in the parent wireless communication data. The connection processing unit 18 arranges the child wireless communication data in descending order of the amount of stored power indicated by the stored power amount data included in the child wireless communication data (step S3).
[0063] Here, it is assumed that the connection processing unit 18 classifies the imported connection data into connection data for M parent devices and connection data for N child devices. Here, M and N are integers equal to or greater than 0, with M=0 indicating a case where a connection wait signal has not been received from the parent wireless communication device 20, and N=0 indicating a case where a connection wait signal has not been received from another child wireless communication device 10. In the following, it is assumed that the child wireless communication device 10 receives a connection wait signal from at least one parent wireless communication device 20 and receives a connection wait signal from at least one other child wireless communication device 10.
[0064] The connection processing unit 18 assigns a different index number from 1 to M to each of the connection data of the M parent devices sorted in descending order of stored power. The connection processing unit 18 assigns a different index number from 1 to N to each of the connection data of the N child devices sorted in descending order of stored power. That is, in the connection data of the parent device, the connection data with a smaller index number has a larger stored power, and in the connection data of the child devices, the connection data with a smaller index number has a larger stored power.
[0065] The connection processing unit 18 defines a variable "m" indicating an index number assigned to the connection data of the parent device, and sets m=1 (step S4). The connection processing unit 18 reads out the connection state data included in the connection data of the m-th parent device, and determines whether the numerical value of the number of connections included in the connection state data is less than the numerical value of the upper limit number of connections included in the connection state data (step S5). When the connection processing unit 18 determines that the numerical value of the number of connections is less than the numerical value of the upper limit number of connections (Yes in step S5), the process proceeds to step S13 in order to connect to a candidate wireless communication device for connection destination of the parent device type corresponding to the connection data of the m-th parent device.
[0066] On the other hand, if the connection processing unit 18 determines that the number of connections is not less than the upper limit number of connections (step S5, No), a connection path cannot be established with the connection data, so the connection processing unit 18 adds "1" to the current value of "m" to make the next connection data the processing target (step S6). The connection processing unit 18 determines whether the new "m" is equal to or less than M (step S7). If the connection processing unit 18 determines that the new "m" is equal to or less than M (step S7, Yes), the connection processing unit 18 performs the process of step S5 again.
[0067] On the other hand, when the connection processing unit 18 determines that the new "m" is not equal to or less than M (step S7, No), there is no connection data of the parent device that can establish a connection path, so the connection data of the child device is processed next. Therefore, the connection processing unit 18 defines a variable "n" indicating an index number given to the connection data of the child device, and sets n=1 (step S8). The connection processing unit 18 reads the connection status data included in the connection data of the nth child device, and determines whether the numerical value of the number of connections included in the connection status data is less than the numerical value of the upper limit number of connections included in the connection status data (step S9).
[0068] When the connection processing unit 18 determines that the number of connections is not less than the upper limit number of connections (step S9, No), it cannot establish a connection path with the connection data, and therefore adds "1" to the current value of "n" to make the next connection data the processing target (step S10). The connection processing unit 18 determines whether the new "n" is equal to or less than N (step S11). When the connection processing unit 18 determines that the new "n" is equal to or less than N (step S11, Yes), it performs the process of step S9 again.
[0069] On the other hand, if the connection processing unit 18 determines that the new "n" is not equal to or less than N (step S11, No), this means that there is no connection destination candidate wireless terminal device to which connection can be made among the connection destination candidate wireless communication devices corresponding to the connection data obtained from the connection data acquisition unit 17. Therefore, the connection processing unit 18 outputs an instruction signal to detect a new connection destination candidate to the connection destination candidate detection unit 16. Thereafter, the processing from step S1 onwards is performed again.
[0070] On the other hand, when it is determined in step S9 that the numerical value of the number of connections is less than the numerical value of the upper limit number of connections (Yes in step S9), the connection processing unit 18 determines whether or not a connection destination candidate wireless communication device of the child device type corresponding to the connection data of the nth child device has a connection path to any parent wireless communication device 20. In other words, the connection processing unit 18 determines whether or not information indicating a connection path to the parent device is included in the connection data of the nth child device (step S12).
[0071] If the connection processing unit 18 determines that the connection data of the nth child device does not include information indicating a connection path to the parent device (step S12, No), the connection data does not allow a connection path to be established, and so the connection processing unit 18 advances the process to step S10 to process the connection data of the next child device.
[0072] On the other hand, if the connection processing unit 18 determines that the connection data of the nth handset includes information indicating a connection path to the parent unit (step S12, Yes), it proceeds to step S13 to connect to a candidate wireless communication device of the handset type corresponding to the connection data of the nth handset.
[0073] When the connection processing unit 18 judges "Yes" in the judgment process of step S5 or judges "Yes" in the judgment process of step S12, the connection processing unit 18 generates a connection request signal including device identification data of its own device, with address information corresponding to the connection data being processed at that time as the transmission destination and address information of its own device as the transmission source. The connection processing unit 18 transmits the generated connection request signal to a connection destination candidate wireless communication device corresponding to the connection data being processed via the wireless communication processing unit 15, and further receives a connection response signal corresponding to the connection request signal from the connection destination candidate wireless communication device, and performs processing to connect to the connection destination candidate wireless communication device (step S13).
[0074] 6, the connection processing unit 18 of the child wireless communication device 10 performs processing to select a wireless communication device to connect to by giving priority to a direct connection to any parent wireless communication device 20 rather than connecting to any parent wireless communication device 20 via another child wireless communication device 10, and further by giving priority to a device with a larger amount of stored power indicated by the stored power amount data. On the other hand, the connection processing unit 18 may select a wireless communication device to connect to by giving priority to a device with a larger amount of stored power, regardless of the type of parent device and child device.
[0075] In the child wireless communication device 10 of the above embodiment, the connection destination candidate detection unit 16 detects a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from another wireless communication device, i.e., the parent wireless communication device 20 or another child wireless communication device 10. The connection data acquisition unit 17 receives, from the connection destination candidate wireless communication device detected by the connection destination candidate detection unit 16, power storage amount data indicating the power storage amount of the storage battery included in the connection destination candidate wireless communication device, connection state data indicating the connection state of the connection destination candidate wireless communication device, and device identification data indicating whether the connection destination candidate wireless communication device is a parent device or a child device, and acquires them as connection data. The connection processing unit 18 determines whether a connection path can be established from the connection state indicated by the connection state data to the parent wireless communication device 20 in descending order of power storage amount indicated by the power storage amount data, based on the connection data acquired by the connection data acquisition unit 17, and when it is determined that a connection path can be established, connects to the connection destination candidate wireless communication device corresponding to the connection state data. This allows the child wireless communication device 10 to select a connection destination from among the parent wireless communication device 20 detected as a connection destination candidate wireless communication device or other child wireless communication devices 10 in descending order of the amount of charge in the storage battery. Therefore, the sensor data obtained by measurement can be transmitted to the server device 3 so as not to be discarded during transfer as much as possible. By performing the process of the flowchart in FIG. 6, a direct connection to the parent wireless communication device 20 is prioritized over a connection to any parent wireless communication device 20 via another child wireless communication device 10, so that the sensor data can be efficiently transferred to the server device 3 via the shortest possible route. Therefore, in an environment where parent and child wireless communication devices exist, even if the amount of charge in the storage battery of any wireless communication device is insufficient, data can be efficiently transmitted and received by flexibly switching the route.
[0076] (Sensor data transmission process) Assume that the process of the flowchart of FIG. 6 is completed and the child wireless communication device 10 is connected to any of the connection destination candidate wireless communication devices. For example, in FIG. 1, assume that the child wireless communication device 10-1 is directly connected to the parent wireless communication device 20-1, and the child wireless communication device 10-2 is connected to the parent wireless communication device 20-1 via the child wireless communication device 10-1. In this case, "Parent-001", which is the device identification data of the parent wireless communication device 20-1, is written in the "Connection path to the parent device" field of the connection status data table 142-1 in the storage unit 14-1 of the child wireless communication device 10-1. "Child-001, Parent-001", which lists the device identification data of the child wireless communication device 10-1 and the parent wireless communication device 20-1, is written in the "Connection path to the parent device" field of the connection status data table 142-2 in the storage unit 14-2 of the child wireless communication device 10-2. In this state, the process of transmitting sensor data by the child wireless communication devices 10-1 and 10-2 will be described below.
[0077] (Sensor Data Transmission Process by Child Wireless Communication Device 10-1) When the wireless communication processing unit 15-1 of the child wireless communication device 10-1 detects that new sensor data has been written by the sensor unit 13-1 to the sensor data table 144-1 of the storage unit 14-1, the wireless communication processing unit 15-1 reads the written sensor data. The wireless communication processing unit 15-1 detects address information corresponding to "Parent-001" in the "Connection path to parent device" field of the connection status data table 142-1, i.e., address information of the parent wireless communication device 20-1, from the record in the "Connected device" field of the connection status data table 142-1. The wireless communication processing unit 15-1 generates a sensor data signal including the read sensor data, with the detected address information as the destination and the address information of its own device as the source. The wireless communication processing unit 15-1 transmits the generated sensor data signal.
[0078] The wireless communication processing unit 25-1 of the master wireless communication device 20-1 receives the sensor data signal transmitted by the slave wireless communication device 10-1 and reads out sensor data from the received sensor data signal. The wireless communication processing unit 25-1 outputs the read-out sensor data to the wired communication processing unit 21-1. The wired communication processing unit 21-1 takes in the sensor data output by the wireless communication processing unit 25-1. The wired communication processing unit 21-1 generates an IP packet including the captured sensor data, with the IP address of the server device 3 in the "destination" field of the cloud system connection information table 234-1 in the storage unit 23-1 as the destination and the IP address of the device itself in the "source" field as the source. The wired communication processing unit 21-1 sends out the generated IP packet to the communication network 4 of the cloud system 2. The communication network 4 transfers the IP packet to the server device 3, and the server device 3 receives the IP packet. The server device 3 reads out the sensor data included in the IP packet and stores the read-out sensor data in an internal storage area.
[0079] (Sensor Data Transmission Process by Child Wireless Communication Device 10-2) When the wireless communication processing unit 15-2 of the child wireless communication device 10-2 detects that new sensor data has been written by the sensor unit 13-2 to the sensor data table 144-2 of the storage unit 14-2, it reads out the written sensor data. The wireless communication processing unit 15-2 detects address information corresponding to the first "Child-001" of "Child-001, Parent-001" in the "Connection path to parent device" item of the connection status data table 142-2, that is, the address information of the child wireless communication device 10-1, from the record in the "Connected device" item of the connection status data table 142-2. The wireless communication processing unit 15-2 generates a sensor data signal including the read sensor data, with the detected address information as the destination and the address information of its own device as the source. The wireless communication processing unit 15-2 transmits the generated sensor data signal. The wireless communication processing unit 15-1 of the child wireless communication device 10-1 receives the sensor data signal transmitted by the child wireless communication device 10-2.
[0080] When the wireless communication processing unit 15-1 receives the sensor data signal, it detects address information corresponding to "Parent-001" in the "Connection path to parent" field of the connection status data table 142-1, i.e., address information of the parent wireless communication device 20-1, from the record in the "Connected device" field of the connection status data table 142-1. The wireless communication processing unit 15-1 rewrites the destination of the received sensor data signal to the detected address information, rewrites the source to the address information of its own device, and transmits the sensor data signal. After the parent wireless communication device 20-1 receives the sensor data signal from the child wireless communication device 10-1, the same process as that performed by the parent wireless communication device 20-1 in the above-mentioned sensor data transmission process by the child wireless communication device 10-1 is performed, and the server device 3 receives the sensor data transmitted by the child wireless communication device 10-2.
[0081] (Processing when the connection path to the parent wireless communication device 20 is disconnected) 7 and 8, a process will be described in which the child wireless communication device 10 switches its connection destination to another parent wireless communication device 20 when the child wireless communication device 10, which is directly connected to the parent wireless communication device 20, is disconnected from the parent wireless communication device 20. In the wireless communication system 1 shown in Fig. 7, similar to the configuration shown in Fig. 1, the parent wireless communication devices 20-1 and 20-2 are given device identification data "Parent-001" and "Parent-002", respectively, and the child wireless communication devices 10-1 and 10-2 are given device identification data "Child-001" and "Child-002", respectively.
[0082] 7, the range of the radio wave of the presence notification signal transmitted by the master wireless communication device 20-1 is indicated by reference numeral 30-1, the range of the radio wave of the presence notification signal transmitted by the master wireless communication device 20-2 is indicated by reference numeral 30-2, and the range of the radio wave of the presence notification signal transmitted by the slave wireless communication device 10-2 is indicated by reference numeral 30-3. The slave wireless communication device 10-1 is located in the ranges 30-1 and 30-2 of the radio waves of the presence notification signals of the master wireless communication devices 20-1 and 20-2 and in the range 30-3 of the radio waves of the presence notification signal of the slave wireless communication device 10-2, and is connected to the master wireless communication device 20-1. The slave wireless communication device 10-2 is not connected to the master wireless communication devices 20-1 and 20-2 and the slave wireless communication device 10-1.
[0083] In this case, it is assumed that the master wireless communication device 20-1 transitions to a sleep state and the connection between the master wireless communication device 20-1 and the slave wireless communication device 10-1 is disconnected (step Sa1) as shown in the sequence diagram of Fig. 8. As described above, the wireless communication processing unit 15-1 of the slave wireless communication device 10-1 detects that the connection has been disconnected because, for example, a response signal to a polling signal that is transmitted to the master wireless communication device 20-1 at regular intervals to detect the connection state is not received from the master wireless communication device 20-1.
[0084] The wireless communication processing unit 15-1 subtracts "1" from the value in the "number of connections" field of the connection status data table 142-1 of the storage unit 14-1 to set the new value in the "number of connections" field. The wireless communication processing unit 15-1 outputs an instruction signal to detect a new connection destination candidate to the connection destination candidate detection unit 16-1 because the parent wireless communication device 20-1 that detected the disconnection is the wireless communication device corresponding to the device identification data "Parent-001" shown at the beginning of the information indicating the connection path to the parent device in the "connection path to the parent device" field of the connection status data table 142-1. The wireless communication processing unit 15-1 deletes the contents of the "connection path to the parent device" field of the connection status data table 142-1. The wireless communication processing unit 15-1 deletes the record in which the device identification data corresponding to the parent wireless communication device 20-1 that detected the disconnection and the address information are associated from the "connected device" field of the connection status data table 142-1. (Step Sa2).
[0085] The wireless communication processing unit 25-2 of the master wireless communication device 20-2 transmits a presence notification signal at regular intervals (step Sa3). The wireless communication processing unit 15-2 of the slave wireless communication device 10-2 transmits a presence notification signal at regular intervals (step Sa4). Since the slave wireless communication device 10-1 is located within the range indicated by the reference numerals 30-2 and 30-3, the presence notification signals transmitted by the master wireless communication device 20-2 and the slave wireless communication device 10-2 reach the slave wireless communication device 10-1. When the connection destination candidate detection unit 16-1 of the slave wireless communication device 10-1 receives an instruction signal to detect a new connection destination candidate from the wireless communication processing unit 15-1, the connection destination candidate detection unit 16-1 performs a process corresponding to step S1 in FIG. 6. That is, the connection destination candidate detection unit 16-1 receives the presence notification signals transmitted by the master wireless communication device 20-2 and the slave wireless communication device 10-2, and detects the master wireless communication device 20-2 and the slave wireless communication device 10-2 as connection destination candidate wireless communication devices (step Sa5). The connection destination candidate detection unit 16-1 transmits a response signal corresponding to the presence notification signal to the detected master wireless communication device 20-2 and slave wireless communication device 10-2 (steps Sa6-1 and Sa6-2). Note that the order of steps Sa6-1 and Sa6-2 may be reversed.
[0086] When the wireless communication processing unit 25-2 of the master wireless communication device 20-2 receives a response signal corresponding to the presence notification signal from the slave wireless communication device 10-1, the wireless communication processing unit 25-2 generates connection data. The wireless communication processing unit 25-2 of the master wireless communication device 20-2 transmits a connection wait signal including the generated connection data to the slave wireless communication device 10-1 (step Sa7-1). When the wireless communication processing unit 15-2 of the slave wireless communication device 10-2 receives a response signal corresponding to the presence notification signal from the slave wireless communication device 10-1, the wireless communication processing unit 15-2 of the slave wireless communication device 10-2 generates connection data. The wireless communication processing unit 15-2 of the slave wireless communication device 10-2 transmits a connection wait signal including the generated connection data to the slave wireless communication device 10-1 (step Sa7-2).
[0087] The connection data acquisition unit 17-1 of the child wireless communication device 10-1 performs processing corresponding to step S2 in Fig. 6. That is, the connection data acquisition unit 17-1 receives a connection standby signal transmitted by each of the parent wireless communication device 20-2 and the child wireless communication device 10-2 via the wireless communication processing unit 15-1. The connection data acquisition unit 17-1 reads connection data from the connection standby signal received from the parent wireless communication device 20-2, associates the read connection data with the address information of the source of the connection standby signal, i.e., the address information of the parent wireless communication device 20-2, and outputs the associated data to the connection processing unit 18-1. The connection data acquisition unit 17-1 reads connection data from the connection standby signal received from the child wireless communication device 10-2, associates the read connection data with the address information of the source of the connection standby signal, i.e., the address information of the child wireless communication device 10-2, and outputs the associated data to the connection processing unit 18-1. The connection processing unit 18-1 takes in the combination of the two pieces of connection data and the address information output by the connection data acquisition unit 17-1, and performs the processes in and after step S3 in FIG. 6 (step Sa8).
[0088] For example, it is assumed that the result of the determination process in step S5 of Fig. 6 performed by the connection processing unit 18-1 based on the connection data corresponding to the parent wireless communication device 20-2 is "Yes". In this case, the connection processing unit 18-1 performs the process in step S13 of Fig. 6, and generates a connection request signal including the address information of the parent wireless communication device 20-2 associated with the connection data as the destination and the address information of the parent wireless communication device as the source, and including the device identification data "Child-001" of the parent wireless communication device. The connection processing unit 18-1 writes and stores the connection data corresponding to the parent wireless communication device 20-2 and the address information of the parent wireless communication device 20-2 in an internal storage area in association with each other, and transmits the generated connection request signal to the parent wireless communication device 20-2 (step Sa9).
[0089] When the wireless communication processing unit 25-2 of the master wireless communication device 20-2 receives a connection request signal from the slave wireless communication device 10-1, the wireless communication processing unit 25-2 updates the "Connection count" and "Connected device" items in the connection status data table 232-2 of the storage unit 23-2 based on the received connection request signal. More specifically, the wireless communication processing unit 25-2 adds "1" to the value in the "Connection count" item to set the new value in the "Connection count" item. The wireless communication processing unit 25-2 adds a record that associates the device identification data "Child-001" included in the connection request signal with the address information of the slave wireless communication device 10-1 that is the source of the connection request signal, to the "Connected device" item.
[0090] After updating the items "Number of connections" and "Connected device", the wireless communication processing unit 25-2 transmits a connection response signal to the child wireless communication device 10-1, with the address information of the sender of the connection request signal as the destination and the address information of its own device as the sender (step Sa10). When the connection processing unit 18-1 of the child wireless communication device 10-1 receives a connection response signal from the parent wireless communication device 20-2 via the wireless communication processing unit 15-1, the connection processing unit 18-1 detects connection data of the parent wireless communication device 20-2 from an internal storage area based on the address information of the sender of the connection response signal, i.e., the address information of the parent wireless communication device 20-2. The connection processing unit 18-1 updates the items "Number of connections", "Connection path to the parent device", and "Connected device" in the connection status data table 142-1 of the storage unit 14-1 based on the detected connection data and the address information of the parent wireless communication device 20-2.
[0091] More specifically, the connection processing unit 18-1 adds "1" to the value in the "number of connections" field, and sets the new value in the "number of connections" field. Since the detected connection data contains the character "Parent" in the device identification data, the connection processing unit 18-1 determines that the detected connection data is connection data for the parent device, and writes the device identification data "Parent-002" in the "connection path to the parent device" field. The connection processing unit 18-1 adds a record that associates the device identification data "Parent-002" contained in the connection data with the address information of the parent wireless communication device 20-2 to the "connected device" field. As a result, the child wireless communication device 10-1 switches the connection destination from the parent wireless communication device 20-1 to the parent wireless communication device 20-2.
[0092] In the process of step Sa8, if the connection processing unit 18-1 judges "No" in the judgment process of step S5 in FIG. 6, the parent wireless communication device 20-2 is not selected as a connection destination of the child wireless communication device 10-1, and the process proceeds to step S8. In this case, the connection processing unit 18-1 performs the process of step S8 and subsequent steps based on the connection data corresponding to the child wireless communication device 10-2. However, since the child wireless communication device 10-2 does not have a connection path to any of the parent wireless communication devices 20, even if the connection processing unit 18-1 judges "Yes" in the judgment process of step S9, it will judge "No" in the judgment process of step S12. Therefore, in this case, the child wireless communication device 10-1 will again perform the process of step S1 and subsequent steps in FIG. 6 to detect a new connection destination candidate wireless communication device.
[0093] (Processing when the child wireless communication device 10 cannot directly connect to the parent wireless communication device 20) 9 and 10, a process of connecting to one of the parent wireless communication devices 20 via another parent wireless communication device 10 when the child wireless communication device 10 cannot directly connect to the parent wireless communication device 20 will be described. In the wireless communication system 1 shown in Fig. 9, similar to the configuration shown in Fig. 1, the parent wireless communication devices 20-1 and 20-2 are given device identification data "Parent-001" and "Parent-002", respectively, and the child wireless communication devices 10-1 and 10-2 are given device identification data "Child-001" and "Child-002", respectively.
[0094] 9, the range of the radio waves of the presence notification signal transmitted by the master wireless communication device 20-1 is indicated by the reference symbol 30-1, the range of the radio waves of the presence notification signal transmitted by the master wireless communication device 20-2 is indicated by the reference symbol 30-2, and the range of the radio waves of the presence notification signal transmitted by the slave wireless communication device 10-1 is indicated by the reference symbol 30-4. The slave wireless communication device 10-1 is located within the range of the radio waves of the presence notification signals of both the master wireless communication devices 20-1 and 20-2, and is connected to the master wireless communication device 20-1. The slave wireless communication device 10-2 is not located within the ranges 30-1 and 30-2, which the radio waves of the presence notification signals of both the master wireless communication devices 20-1 and 20-2 can reach, but is located within the range 30-4, which the radio waves of the presence notification signal of the slave wireless communication device 10-1 can reach. It is assumed that the child wireless communication device 10-2 is not connected to the master wireless communication devices 20-1 and 20-2 and the child wireless communication device 10-1.
[0095] In this case, as shown in the sequence diagram of Fig. 10, it is assumed that the wireless communication processing unit 15-2 of the child wireless communication device 10-2 detects that new sensor data has been written by the sensor unit 13-2 to the sensor data table 144-2 of the storage unit 14-2. Since the child wireless communication device 10-2 is not connected to the parent wireless communication devices 20-1 and 20-2 and is not connected to the child wireless communication device 10-1, the item "Connection path to parent device" in the connection state data table 142-2 of the storage unit 14-2 of the child wireless communication device 10-2 is blank. Therefore, the wireless communication processing unit 15-2 outputs an instruction signal to detect a new connection destination candidate to the connection destination candidate detection unit 16-2 (step Sb1).
[0096] The wireless communication processing unit 25-1 of the master wireless communication device 20-1 transmits a presence notification signal at regular intervals (step Sb2). The wireless communication processing unit 25-2 of the master wireless communication device 20-2 transmits a presence notification signal at regular intervals (step Sb3). The wireless communication processing unit 15-1 of the slave wireless communication device 10-1 transmits a presence notification signal at regular intervals (step Sb4). As shown in FIG. 9, the slave wireless communication device 10-2 is not located within the ranges 30-1 and 30-2 that the radio waves of the presence notification signals of the master wireless communication devices 20-1 and 20-2 reach. Therefore, in steps Sb2 and Sb3, the presence notification signals transmitted by the master wireless communication devices 20-1 and 20-2 do not reach the slave wireless communication device 10-2, and in step Sb4, only the presence notification signal transmitted by the slave wireless communication device 10-1 reaches the slave wireless communication device 10-2.
[0097] When the connection destination candidate detection unit 16-2 of the child wireless communication device 10-2 receives an instruction signal to detect a new connection destination candidate from the wireless communication processing unit 15-2, the connection destination candidate detection unit 16-2 performs a process corresponding to step S1 in Fig. 6. That is, the connection destination candidate detection unit 16-2 detects the child wireless communication device 10-1, which is the source of the presence notification signal received by the wireless communication processing unit 15-2, as a connection destination candidate wireless communication device (step Sb5). The connection destination candidate detection unit 16-2 transmits a response signal corresponding to the presence notification signal to the detected child wireless communication device 10-1 (step Sb6).
[0098] When the wireless communication processing unit 15-1 of the child wireless communication device 10-1 receives a response signal corresponding to the presence notification signal, the wireless communication processing unit 15-1 of the child wireless communication device 10-1 generates connection data and transmits a connection standby signal including the generated connection data to the child wireless communication device 10-2 (step Sb7).
[0099] The connection data acquisition unit 17-2 of the child wireless communication device 10-2 performs processing corresponding to step S2 in Fig. 6, i.e., receives a connection wait signal transmitted by the child wireless communication device 10-1 via the wireless communication processing unit 15-2. The connection data acquisition unit 17-2 reads connection data from the received connection wait signal, and outputs the read connection data and address information of the sender of the connection wait signal to the connection processing unit 18-2. The connection processing unit 18-2 takes in the connection data and address information output by the connection data acquisition unit 17-2, and performs processing from step S3 in Fig. 6 onwards (step Sb8).
[0100] Since the connection data that the connection processing unit 18-2 has acquired is connection data for a child device, the connection processing unit 18-2 does not perform the processes from step S4 to step S7, and performs the processes from step S8 onward. It is assumed that the connection processing unit 18-2 has made a judgment of "Yes" in the judgment process of step S9 in FIG. 6, which is performed based on the connection data corresponding to the child wireless communication device 10-1. In this case, the process proceeds to the judgment process of step S12. Since the child wireless communication device 10-1 is connected to the parent wireless communication device 20-1, the connection status data included in the connection data acquired by the connection processing unit 18-2 includes "Parent-001" as information indicating the connection path to the parent device. Therefore, the connection processing unit 18-2 makes a judgment of "Yes" in the judgment process of step S12, and performs the process of step S13.
[0101] The connection processing unit 18-2 generates a connection request signal including address information associated with the captured connection data, i.e., the address information of the child wireless communication device 10-1 as the destination and the address information of its own device as the source, and including its own device's device identification data "Child-002". The connection processing unit 18-2 writes and stores the connection data corresponding to the child wireless communication device 10-1 and the address information of the child wireless communication device 10-1 in association with each other in an internal storage area, and transmits the generated connection request signal to the child wireless communication device 10-1 (step Sb9).
[0102] When wireless communication processing unit 15-1 of child wireless communication device 10-1 receives a connection request signal from child wireless communication device 10-2, wireless communication processing unit 15-1 updates the "Connection count" and "Connected device" items in connection status data table 142-1 of storage unit 14-1 based on the received connection request signal. More specifically, wireless communication processing unit 15-1 adds "1" to the value in the "Connection count" item to set the new value in the "Connection count" item. Wireless communication processing unit 15-1 adds a record that associates device identification data "Child-002" included in the connection request signal with address information of child wireless communication device 10-2, the source of the connection request signal, to the "Connected device" item.
[0103] After updating the items "Number of connections" and "Connected device", the wireless communication processing unit 15-1 transmits a connection response signal to the child wireless communication device 10-2, with the address information of the sender of the connection request signal as the destination and the address information of its own device as the sender (step Sb10). When the connection response signal is received via the wireless communication processing unit 15-2, the connection processing unit 18-2 of the child wireless communication device 10-2 detects connection data of the child wireless communication device 10-1 from an internal storage area based on the address information of the sender of the connection response signal, i.e., the address information of the child wireless communication device 10-1. The connection processing unit 18-2 updates the items "Number of connections", "Connection path to the parent device", and "Connected device" in the connection status data table 142-2 of the storage unit 14-2 based on the detected connection data and the address information of the child wireless communication device 10-1.
[0104] More specifically, the connection processing unit 18-2 adds "1" to the value in the "number of connections" field, and sets the new value in the "number of connections" field. Since the device identification data of the detected connection data contains the character "Child", the connection processing unit 18-2 determines that the detected connection data is connection data for a child device. Since the detected connection data is connection data for a child device, the connection processing unit 18-2 adds the device identification data "Child-001" contained in the connection data to "Parent-001", which is information indicating a connection path to a parent device contained in the detected connection data, to generate "Child-001, Parent-001" as information indicating a connection path of the device to the parent device. The connection processing unit 18-2 writes the generated information "Child-001, Parent-001" indicating the connection path to the parent device in the "connection path to parent device" field. The connection processing unit 18-2 adds a record that associates the device identification data "Child-001" included in the connection data with the address information of the child wireless communication device 10-1 to the "connected device" field. As a result, the child wireless communication device 10-2 is connected to the master wireless communication device 20-1 via the child wireless communication device 10-1.
[0105] (Process to notify that the connection path to the parent unit has been lost) For example, assume that the processing of the sequence shown in Fig. 10 is completed, and the child wireless communication device 10-1 is connected to the parent wireless communication device 20-1, and the child wireless communication device 10-2 is connected to the parent wireless communication device 20-1 via the child wireless communication device 10-1, as shown in Fig. 9. In this case, assume that the parent wireless communication device 20-1 transitions to a sleep state. In this case, the wireless communication processing unit 15-1 of the child wireless communication device 10-1 must perform the process of detecting the disconnection shown in step Sa2 of Fig. 8, and then notify the child wireless communication device 10-2 connected to the parent wireless communication device 20-1 via the child wireless communication device 10-1 that the connection path to the parent wireless communication device 20-1 has been lost.
[0106] Therefore, the wireless communication processing unit 15-1 detects a record remaining after the record in which the device identification data "Parent-001" of the parent wireless communication device 20-1 and the address information of the parent wireless communication device 20-1 are associated with each other is deleted in the "Connected Device" field of the connection status data table 142-1. Here, the wireless communication processing unit 15-1 detects a record in which the device identification data "Child-002" of the child wireless communication device 10-2 and the address information of the child wireless communication device 10-2 are associated with each other. The wireless communication processing unit 15-1 generates a disconnection notification signal with the address information of the child wireless communication device 10-2 included in the detected record as the destination and the address information of the wireless communication processing unit 15-1 as the source. The wireless communication processing unit 15-1 transmits the generated disconnection notification signal to the child wireless communication device 10-2.
[0107] When the wireless communication processing unit 15-2 of the child wireless communication device 10-2 receives a disconnection notification signal transmitted by the child wireless communication device 10-1, it deletes the contents of the "Connection path to the parent device" item in the connection status data table 142-2 and makes it blank. If another child wireless communication device 10 is further connected to the child wireless communication device 10-2 and the other child wireless communication device 10 is also connected to the parent wireless communication device 20-1 via the child wireless communication devices 10-1 and 10-2, the wireless communication processing unit 15-2 generates a disconnection notification signal and transmits the generated disconnection notification signal to the other child wireless communication device 10, similar to the wireless communication processing unit 15-1.
[0108] As a result, starting from the child wireless communication device 10-1 that was directly connected to the parent wireless communication device 20-1, all other child wireless communication devices 10 that are directly or indirectly connected to the parent wireless communication device 10-1 are notified that they have lost their connection paths to the parent wireless communication device 20-1. As a result, the contents of the "Connection path to parent device" item in the connection status data table of all child wireless communication devices 10 that have lost their connection paths to the parent wireless communication device 20-1 are deleted.
[0109] Assume that there is another child wireless communication device 10 that is directly connected to the child wireless communication device 10-2 and has a connection path to the parent wireless communication device 20-1 via the child wireless communication devices 10-1 and 10-2. In this case, if the child wireless communication device 10-1 stops due to insufficient power storage, the child wireless communication device 10-2 that is directly connected to the child wireless communication device 10-1 detects the disconnection, and similarly to the above, a disconnection notification signal is sent from the child wireless communication device 10-2 to the other child wireless communication devices 10 that are directly or indirectly connected to the child wireless communication device 10-2 to inform them that the connection path to the parent wireless communication device 20-1 has been lost.
[0110] Note that the child wireless communication device 10 for which the "Connection path to parent device" field in the connection state data table 142 is blank needs to obtain a connection path to any parent wireless communication device 20 when transmitting sensor data as shown in step Sb1 of Fig. 10, and therefore performs the process of the flowchart shown in Fig. 6. When the child wireless communication device 10 receives a disconnection notification signal from another child wireless communication device 10, it is not necessary to maintain the connection with the other child wireless communication device 10 that is the source of the disconnection notification signal, and therefore it is necessary to perform a process of disconnecting the connection with the other child wireless communication device 10 when the disconnection notification signal is received.
[0111] In addition, the child wireless communication device 10, which is the origin of transmission of the above-mentioned disconnection notification signal, may perform the following processing before transmitting a disconnection notification signal to other child wireless communication devices 10 having a connection path to the parent wireless communication device 10 via itself (hereinafter, the other child wireless communication devices 10 are referred to as "subordinate child wireless communication devices 10", and among the subordinate child wireless communication devices 10, some are directly connected to the child wireless communication device 10, which is the origin of transmission of the disconnection notification signal, and some are indirectly connected to the child wireless communication device 10, which is the origin of transmission of the disconnection notification signal, via other child wireless communication devices 10). For example, it is assumed that the child wireless communication device 10, which is the starting point of transmitting the disconnection notification signal, does not transmit the disconnection notification signal for a certain time, and while maintaining the connection with the subordinate child wireless communication device 10, during the certain time, by the process shown in Fig. 8 or Fig. 9, establishes a connection path directly connecting to a new parent wireless communication device 20, or a connection path indirectly connecting to a new parent wireless communication device 20 via another child wireless communication device 10 with which there was no connection relationship. In this case, the wireless communication processing unit 15 of the child wireless communication device 10, which is the starting point of transmitting the disconnection notification signal, generates a connection path update notification signal including information indicating the new connection path to the parent device written in the "Connection path to parent device" field of the connection status data table 142 of the storage unit 14 and device identification data of the device, and transmits the connection path update notification signal to the child wireless communication device 10 directly connected to the child wireless communication device among the subordinate child wireless communication devices 10 by the same procedure as the procedure for transmitting the disconnection notification signal described above. When the wireless communication processing unit 15 of the slave wireless communication device 10 receives a connection path update notification signal, it rewrites the content of the "Connection path to the parent unit" item in the connection status data table 142 of its own memory unit 14 so that it indicates the correct connection path, based on the information indicating the connection path to the parent unit contained in the received connection path update notification signal and the device identification data indicating the sender of the connection path update notification signal.In addition, when there is another child wireless communication device 10 that indirectly has a connection path to the parent wireless communication device 20 by connecting to the child wireless communication device 10 that received the connection path update notification signal among the child wireless communication devices 10 under the control of the child wireless communication device 10, the wireless communication processing unit 15 of the child wireless communication device 10 that received the connection path update notification signal further generates a connection path update notification signal and transmits the generated connection path update notification signal to the other child wireless communication device 10. As a result, when the child wireless communication device 10 that is the origin of transmitting the disconnection notification signal is able to obtain a connection path to a new parent device while maintaining the connection with the child wireless communication device 10 under the control of the child wireless communication device 10, the item of "Connection path to parent device" in the connection status data table 142 of all the child wireless communication devices 10 under the control of the child wireless communication device 10 is updated by the connection path update notification signal transmitted from the child wireless communication device 10 that is the origin of transmitting the disconnection notification signal. Note that, when the child wireless communication device 10 that is the origin of transmitting the disconnection notification signal is unable to establish a connection path to the new parent wireless communication device 20 even after a certain time has elapsed, it transmits the disconnection notification signal described above.
[0112] As shown in Fig. 7 and Fig. 8, when the master wireless communication device 20-1 transitions to the sleep state, if the slave wireless communication device 10-1 directly connected to the master wireless communication device 20-1 is located in a range 30-2 where the radio waves of the presence notification signal transmitted by another master wireless communication device 20-2 reach, it can switch the connection to the master wireless communication device 20-2 and continue transmitting the sensor data signal. As shown in Fig. 9 and Fig. 10, even if there is a slave wireless communication device 10-2 that is not located in the range 30-1, 30-2 where the radio waves of the presence communication signal of the master wireless communication devices 20-1, 20-2 reach, it is possible to secure a connection path to the master wireless communication device 20-1 by connecting to another slave wireless communication device 10-1 that has a connection path to the master wireless communication device 20-1. As a result, even if the slave wireless communication device 10-2 is too far away to be directly connected to the master wireless communication devices 20-1, 20-2, it is possible to transmit a sensor data signal to the server device 3. When the child wireless communication device 10 that has lost the connection path to the parent wireless communication device 20 is connected to itself and has acquired a connection path to the parent wireless communication device 20, the child wireless communication device 10 can notify the other child wireless communication device 10 that the connection path to the parent wireless communication device 20 has been lost by transmitting a disconnection notification signal to the other child wireless communication device 10 as described above. Therefore, the child wireless communication device 10 that has received the disconnection notification signal can perform a process of detecting a new connection path to the parent wireless communication device 20. In this way, the wireless communication system 1 makes it possible to flexibly construct a topology according to the situation, and such flexible topology construction enables efficient transmission and reception of data.
[0113] In the configuration of the above embodiment, for example, in steps Sa3 and Sa4 in Fig. 8, the master wireless communication device 20-2 and the slave wireless communication device 10-2 transmit presence notification signals including device identification data to the slave wireless communication device 10-1. In response to this, the master wireless communication device 20-2 and the slave wireless communication device 10-2 may transmit presence notification signals without including their own device identification data. Even in this case, the connection wait signal transmitted by the master wireless communication device 20-2 and the slave wireless communication device 10-2 upon receiving a response signal to the presence notification signal includes device identification data, so that the slave wireless communication device 10-1 receiving the presence notification signal can obtain the device identification data of the connection destination candidate wireless communication device from the connection wait signal.
[0114] In the configuration of the above embodiment, for example, in steps Sa3 and Sa4 in FIG. 8, the master wireless communication device 20-2 and the slave wireless communication device 10-2 transmit a presence notification signal including device identification data to the slave wireless communication device 10-1. In response to this, each of the master wireless communication device 20-2 and the slave wireless communication device 10-2 may transmit a presence notification signal including each connection data. In this way, the slave wireless communication device 10-1 does not need to transmit a response signal shown in steps Sa6-1 and Sa6-2 to the master wireless communication device 20-2 and the slave wireless communication device 10-2. The master wireless communication device 20-2 and the slave wireless communication device 10-2 do not need to transmit a connection standby signal shown in steps Sa7-1 and Sa7-2 to the slave wireless communication device 10-1, and the slave wireless communication device 10-1 can perform the process of step Sa8 after receiving the presence notification signal without waiting for reception of other signals.
[0115] In the configuration of the above embodiment, for example, in steps Sa7-1 and Sa7-2 in FIG. 8, the master wireless communication device 20-2 and the slave wireless communication device 10-2 generate connection data including device identification data. In contrast, the master wireless communication device 20-2 and the slave wireless communication device 10-2 may not generate connection data including device identification data. When receiving the presence notification signal, the slave wireless communication device 10-1 acquires device identification data and address information of the wireless communication device that is the transmission source of the presence notification signal from the received presence notification signal. Therefore, for example, the connection data acquisition unit 17-1 of the slave wireless communication device 10-1 receives the device identification data and address information of the wireless communication device that is the transmission source of the presence notification signal acquired by the connection destination candidate detection unit 16-1 from the connection destination candidate detection unit 16-1, and stores them in an internal storage area. Thereafter, even if the connection data acquisition unit 17-1 of the child wireless communication device 10-1 receives, via the wireless communication processing unit 15-1, a connection wait signal including connection data from which the device identification data has been removed from the wireless communication device that sent the presence notification signal, the connection data acquisition unit 17-1 can acquire the device identification data corresponding to the address information from an internal memory area based on the address information of the sender of the connection wait signal.
[0116] In the configuration of the above embodiment, the master wireless communication device 20 has an item of "upper limit number of connections" in the connection state data table 232 of the storage unit 23, and the slave wireless communication device 10 has an item of "upper limit number of connections" in the connection state data table 142 of the storage unit 14. In contrast, the upper limit numbers of connections of all master wireless communication devices 20 are, for example, predetermined to the same value, and the upper limit numbers of connections of all slave wireless communication devices 10 are, for example, predetermined to the same value, and these values are known in all slave wireless communication devices 10. As a specific example, for example, in Bluetooth (registered trademark), the specification specifies that the upper limit number of connections that can be connected simultaneously is seven. In this case, the connection processing unit 18 of the slave wireless communication device 10 can perform the determination processing of steps S5 and S9 in FIG. 6 based on the known upper limit numbers of connections of the master and slave devices. In this case, the storage units 23 and 14 do not need to have an item of "upper limit number of connections" in the connection state data tables 232 and 142. When generating connection data, the master wireless communication device 20 and the slave wireless communication device 10 need only generate connection data that does not include the upper limit number of connections.
[0117] In the configuration of the above embodiment, the method of wireless communication between the master wireless communication device 20 and the slave wireless communication device 10 is, for example, Wi-Fi (registered trademark), and the address information assigned to each of the master wireless communication device 20 and the slave wireless communication device 10 is, for example, a MAC address. In contrast, other wireless communication methods such as Bluetooth (registered trademark) may be applied as the method of wireless communication between the master wireless communication device 20 and the slave wireless communication device 10. For example, when Bluetooth (registered trademark) is applied, the address information assigned to each of the master wireless communication device 20 and the slave wireless communication device 10 is a BD (Bluetooth (registered trademark)-Device) address, and the presence notification signal transmitted by each of the master wireless communication device 20 and the slave wireless communication device 10 corresponds to a Bluetooth (registered trademark) advertisement signal.
[0118] In the configuration of the above embodiment, the sensor data is transmitted and received between the master wireless communication device 20 and the slave wireless communication device 10 by, for example, a protocol of layer 2 (data link layer) using a MAC address. Alternatively, a protocol of layer 3 (network layer) using an IP address may be used for transmitting and receiving the sensor data between the master wireless communication device 20 and the slave wireless communication device 10. In this case, for example, if the master wireless communication device 20 is a router equipped with DHCP (Dynamic Host Configuration Protocol), when each of the slave wireless communication devices 10 is directly or indirectly connected to any of the master wireless communication devices 20, an IP address is assigned from the master wireless communication device 20 to each of the slave wireless communication devices 10. For each of the slave wireless communication devices 10 to which an IP address is assigned, a route information table for IP routing is generated in which information indicating the connection route to the master in the item "Connection route to the master" in the connection state data table 142 of the storage unit 14 is reflected. In this case, the "destination" item in the cloud system connection information table 234 in the storage unit 23 of the master wireless communication device 20 is not necessary, and information specifying the server device 3, i.e., the IP address and domain name of the server device 3, is determined in advance in each slave wireless communication device 10. When transmitting sensor data, each slave wireless communication device 10 generates and transmits an IP packet including the sensor data, with information specifying the server device 3 as the destination and its own IP address as the source.
[0119] In the configuration of the above embodiment, as an example, in the communication network 4 of the cloud system 2, data is transmitted and received by IP routing, i.e., a protocol of Layer 3 (network layer) using an IP address. In contrast, in the communication network 4 of the cloud system 2, data may be transmitted and received by a protocol of Layer 2 (data link layer). In this case, each of the master wireless communication devices 20 applies, for example, a MAC address assigned to the device itself as information for identifying the device itself in the "source" field of the cloud system connection information table 234 in the storage unit 23, and applies a MAC address assigned to the server device 3 as information for identifying the server device 3 in the "destination" field. When the wired communication processing unit 21 of the master wireless communication device 20 takes in the sensor data output by the wireless communication processing unit 25, it rewrites the MAC addresses of the source and destination of the sensor data to the MAC address of the device itself in the "source" field of the cloud system connection information table 234 in the storage unit 23 and the MAC address of the server device 3 in the "destination" field, respectively. The wired communication processing unit 21 sends the sensor data with the rewritten MAC address to the communication network 4 of the cloud system 2. The communication network 4 transfers the sensor data to the server device 3 by referring to the MAC address of the destination of the sensor data sent by the master wireless communication device 20.
[0120] In the configuration of the above embodiment, device identification data is used to represent information indicating the connection path to the parent device in the "Connection path to parent device" item of the connection status data table 142 of the storage unit 14 of the child wireless communication device 10. Alternatively, the information indicating the connection path to the parent device may be represented using address information assigned to the parent wireless communication device 20 and the child wireless communication device 10. In this case, it is sufficient to write a record including only the address information of the connected parent wireless communication device 20 or child wireless communication device 10 in the "Connected device" item of the connection status data tables 232, 142, instead of a record in which device identification data and address information are associated with each other.
[0121] In the configuration of the above embodiment, each of the master wireless communication device 20 and the slave wireless communication device 10 is assigned with device identification data and address information, and the device identification data tables 231 and 141 have items of "device identification data" and "address information". In contrast, the device identification data may be data that can only classify the type of master and the type of slave. For example, the device identification data of the master wireless communication device 20 may include only "Parent" indicating the type of master without including an identifier, and the device identification data of the slave wireless communication device 10 may include only "Child" indicating the type of slave without including an identifier. However, in this case, when expressing information indicating the connection path to the master in the item "Connection path to master" of the connection status data table 142 of the storage unit 14 of the slave wireless communication device 10, the device identification data cannot be used, so the above-mentioned information indicating the connection path to the master must be expressed using address information assigned to the master wireless communication device 20 and the slave wireless communication device 10.
[0122] The master wireless communication device 20 and slave wireless communication device 10 in the above-mentioned embodiment may be realized by a computer. In that case, a program for realizing the function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. The term "computer system" here includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above-mentioned program may be a program for realizing a part of the above-mentioned function, or may be a program that can realize the above-mentioned function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA (Field Programmable Gate Array).
[0123] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Industrial Applicability]
[0124] The present invention can be used in a wireless communication system having a plurality of wireless communication devices. [Explanation of symbols]
[0125] 1... wireless communication system, 2... cloud system, 3... server device, 4... communication network, 10-1, 10-2... child wireless communication device, 20-1, 20-2... parent wireless communication device, 10... child wireless communication device, 11... power generation unit, 12... power storage unit, 13... sensor unit, 14... memory unit, 15... wireless communication processing unit, 16... connection destination candidate detection unit, 17... connection data acquisition unit, 18... connection processing unit, 20... parent wireless communication device, 21... wired communication processing unit, 22... power storage unit, 23... memory unit, 24... control unit, 25... wireless communication processing unit
Claims
1. a connection destination candidate detection unit that detects a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from another wireless communication device; a connection data acquisition unit that receives, from the connection destination candidate wireless communication device detected by the connection destination candidate detection unit, power storage amount data indicating the power storage amount of a storage battery provided in the connection destination candidate wireless communication device, connection state data indicating a connection state of the connection destination candidate wireless communication device, and device identification data indicating whether the connection destination candidate wireless communication device is a parent device or a child device, and acquires the data as connection data; a connection processing unit that determines whether or not a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device in descending order of the amount of stored power indicated by the stored power amount data based on the connection data acquired by the connection data acquisition unit, and when it is determined that the connection path can be established, connects to the connection destination candidate wireless communication device corresponding to the connection status data; A slave wireless communication device comprising:
2. The connection processing unit includes: based on the device identification data included in the connection data acquired by the connection data acquisition unit, classifying the connection data into connection data of a parent device type and connection data of a child device type, giving priority to connecting directly to any of the parent wireless communication devices over connecting to any of the parent wireless communication devices via another child wireless communication device, determining whether or not a connection path can be established from the connection state indicated by the connection status data to the parent wireless communication device in descending order of the amount of stored power indicated by the stored power amount data, and if it is determined that the connection path can be established, connecting to the connection destination candidate wireless communication device corresponding to the connection status data.
2. The slave wireless communication device according to claim 1.
3. The connection processing unit includes: if the device identification data indicates the type of the child device, and the connection status data corresponding to the device identification data includes data indicating a connection path to a parent wireless communication device, it is determined that the connection path can be established; 3. The slave wireless communication device according to claim 1 or 2.
4. the connection state data includes a number of wireless communication devices currently connected to the connection destination candidate wireless communication devices, The connection processing unit includes: if the number of connected wireless communication devices included in the connection status data indicates that the connection destination candidate wireless communication device corresponding to the connection status data can increase the number of connections, it is determined that the connection path can be established, and if the connection destination candidate wireless communication device corresponding to the connection status data indicates that the number of connections cannot be increased, it is determined that the connection path cannot be established. The slave wireless communication device according to any one of claims 1 to 3.
5. The connection destination candidate detection unit When it is detected that a connection path to the parent wireless communication device has been lost, the connection destination candidate wireless communication device is detected based on a wireless signal received from another wireless communication device, or when data to be transmitted is generated and it is detected that a connection path to the parent wireless communication device does not exist, the connection destination candidate wireless communication device is detected based on a wireless signal received from another wireless communication device. The slave wireless communication device according to any one of claims 1 to 4.
6. A wireless communication system including a master wireless communication device and a slave wireless communication device, The child wireless communication device a connection candidate detection unit that detects a connection candidate wireless communication device that is a connection candidate based on a wireless signal received from the master wireless communication device or another slave wireless communication device; a connection data acquisition unit that receives, from the connection destination candidate wireless communication device detected by the connection destination candidate detection unit, power storage amount data indicating the power storage amount of a storage battery provided in the connection destination candidate wireless communication device, connection state data indicating a connection state of the connection destination candidate wireless communication device, and device identification data indicating whether the connection destination candidate wireless communication device is a parent device or a child device, and acquires the data as connection data; a connection processing unit that determines whether or not a connection path can be established from the connection state indicated by the connection status data to the master wireless communication device in descending order of the amount of stored power indicated by the stored power amount data based on the connection data acquired by the connection data acquisition unit, and connects to the connection destination candidate wireless communication device corresponding to the connection status data when it is determined that the connection path can be established; The master wireless communication device or the other slave wireless communication device, Transmitting the stored power amount data of the own device, the connection state data of the own device, and the device identification data of the own device; Wireless communication system.
7. Detecting a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from another wireless communication device; receiving, from the detected wireless communication device as a candidate for connection, power storage amount data indicating the power storage amount of a storage battery included in the wireless communication device as a candidate for connection, connection state data indicating a connection state of the wireless communication device as a candidate for connection, and device identification data indicating whether the wireless communication device as a candidate for connection is a parent device or a child device, and acquiring these as connection data; determining whether or not a connection path can be established from the connection state indicated by the connection state data to the master wireless communication device in descending order of the amount of stored power indicated by the stored power amount data based on the connection data obtained; if it is determined that the connection path can be established, a connection is made to the connection destination candidate wireless communication device corresponding to the connection status data. A connection method in a slave wireless communication device.
8. A connection method in a wireless communication system including a master wireless communication device and a slave wireless communication device, comprising: the child wireless communication device detects a connection destination candidate wireless communication device that is a connection destination candidate based on a wireless signal received from the parent wireless communication device or another child wireless communication device; The parent wireless communication device or the other child wireless communication device transmits power storage amount data indicating the power storage amount of a storage battery included in the device, connection state data indicating the connection state of the device, and device identification data indicating whether the device is a parent device or a child device; the child wireless communication device receives the device identification data, the stored power amount data, and the connection state data, and acquires them as connection data; the child wireless communication device determines whether or not a connection path can be established from the connection state indicated by the connection state data to the parent wireless communication device in descending order of the amount of stored power indicated by the stored power amount data based on the acquired connection data, and when it is determined that the connection path can be established, connects to the connection destination candidate wireless communication device corresponding to the connection state data. A connection method in a wireless communication system.
Citation Information
Patent Citations
Communication system, center device and terminal device used in the communication system
JP2009081790A
System, method, and program for terminal-to-terminal connection
JP2012105100A
Method for controlling path of multi-hop wireless network
JP2013065957A
Radio communication network system, radio communication station, radio communication device, and battery consumption smoothing method
JP2014204194A
Radio communication system
JP2017143361A
