The present invention relates to a communication terminal device and a method of controlling the communication terminal device for registering, as a target to be controlled, the communication terminal device into a control device.
In a network 30 as illustrated in
As illustrated in
In the scanning, it is necessary for the communication terminal device to search a plurality of control devices including control devices in nearby networks in neighbors and the like for a desired control device to be connected (a control device at home, or a home control device).
Therefore, for example, according to Institute of Electrical and Electronics Engineers (IEEE) 802.15.4, the communication terminal device broadcast-transmits (simultaneously transmits) a beacon request (referred to also as a “beacon request”) to a plurality of control devices, and each control device which receives the beacon request transmits a beacon (referred to also as a “beacon signal”) back to the communication terminal device. The communication terminal device receives such beacons from the control devices, and stores the beacons in a receiving buffer.
Subsequently, in the association (Step S20 in
If the registration response indicates connection permission and the association thereby has been completed, then, the authentication (Step S30 in
On the other hand, if the registration response indicates connection rejection, the communication terminal device determines that the control device is not the desired control device and transmits a connection request sequentially to the other control devices which have transmitted the remaining beacons stored in the receiving buffer.
There is disclosed a technique by which, in a network as described above, the desired control device (home control device) only transmits a beacon twice in response to a beacon request of the communication terminal device, and the communication terminal device determines the control device as the home control device when receiving the second beacon (for example, see Patent Literature (PTL) 1).
Furthermore, there is disclosed another technique by which the control device transmits a beacon added with option information such as “connection permission or rejection” or the like, and the communication terminal device determines the control device as the home control device by analyzing the beacon (for example, see Patent Literature (PTL) 2),
However, the conventional techniques have a problem that, if, for example, there are a large number of control devices in neighboring networks, a large number of receiving buffers (memories) are necessary in the communication terminal device to receive beacons from all the control devices.
In order to address the problem, the present invention provides a communication terminal device and the like each capable, for each implementation registration of the communication terminal device, of increasing a probability of efficiently finding a desired control device and causing the desired control device to register the communication terminal device, thereby increasing a success rate of the implementation registration even with a small memory capacity.
In accordance with an aspect of the present invention for achieving the object, there is provided a communication terminal device including: a wireless communication unit configured to wirelessly communicate with control devices; a detection unit configured to detect a control signal instructing start of registration processing for causing a desired control device among the control devices to register the communication terminal device as a target to be controlled; a channel selection unit configured to sequentially select, from a plurality of frequency channels, a frequency channel to be used in transmission of a beacon request for requesting each of the control devices to transmit a beacon signal; a first transmission control unit configured to transmit, via the wireless communication unit, the beacon request to the control devices by using the frequency channel selected by the channel selection unit; and a receiving unit configured to receive, via the wireless communication unit, the beacon signal transmitted from each of the control devices in response to the beacon request, wherein the channel selection unit is configured to select at random a first frequency channel to be used in transmission of the beacon request from the frequency channels, when the detection unit detects the control signal.
These general and specific aspects may be implemented as a system, a method, an integrated circuit, a computer program, and a computer-readable recording medium, such as a Compact Disc-Read Only Memory (CD-ROM), and may be implemented also as a desired combination of them.
According to the above aspect, it is possible to increase a probability of registering a communication terminal device to a desired control device every time implementation registration is performed. Furthermore, it is possible to find the desired control device in a short time, thereby reducing a time required for the implementation registration.
(Observation Based on which Present Invention is Conceived)
The inventors of the present invention found the following problems in the communication terminal devices disclosed in “Background Art”.
In general, between a communication terminal device 10 and control devices 20 (20a, 20b, 20c, . . . 20n), communication is performed by selecting a single frequency channel from a plurality of frequency channels (hereinafter, referred to also simply as “channels”).
When the communication terminal device 10 broadcast-transmits a beacon request to scan control devices 20, the communication terminal device 10 sets a channel 1 (CH1) for the transmission of the beacon request (Step S11). Then, the communication terminal device 10 first broadcast-transmits the beacon request by the channel 1. In response to the beacon request, control devices 20 operating by the channel 1 transmit their beacons to the communication terminal device 10 by the channel 1.
When receiving the beacons by the channel 1, the communication terminal device 10 generates a control device list in which a network ID, an address, and the like included in a corresponding beacon are stored for each of the control devices 20 (Step S12). When a predetermined scan time period has passed (expiry of a scan timer), the communication terminal device 10 ends the scanning by the channel 1 (Step S13).
Next, the communication terminal device 10 sets a channel 2 (CH2) for transmitting a beacon request (Step S14). Then, the communication terminal device 10 broadcast-transmits the beacon request by the channel 2 in the same manner as described above. In response to the beacon request, a control device 20 operating by the channel 2 transmits a beacon to the communication terminal device 10 by the channel 2. In the same manner as described above, when receiving the beacon by the channel 2, the communication terminal device 10 adds a network ID, a device address, and the like included in the received beacon of the control device 20 to the control device list, thereby updating the control device list (Step S15). Here, if the control device list is full (in other words, the receiving buffer is full), then the communication terminal device 10 ends the scanning (Step S16).
Here, for example, a network ID is a Personal Area Network (PAN) ID, a Service Set ID (SSID), or the like.
The device address is, for example, a Media Access Control (MAC) address, a 64-bit Extended Address, a 16-bit short address, or the like.
If the control device list includes a control device 20 in user's home (control device 20a in
Furthermore, even if it is impossible to determine whether or not the control device list includes the home control device 20 (20a in
On the other hand, if the control device list includes the home control device 20, the communication terminal device 10 broadcast-transmits again a beacon request for scanning control devices 20. However, even in the re-scanning, the communication terminal device 10 sets the channel 1 used in the first scanning for re-transmitting the beacon request.
Moreover, in wireless communication using a frequency band of, for example, 400 MHz to 920 MHz, which is a radio frequency band lower than 2.4 GHz band, a propagation distance of radio waves is long and a propagation area sometimes has a radius of 100 m or more even in a residential area. Therefore, if there are a large number of control devices in nearby networks (neighbors), it is assumed that beacons are received from one hundred or more control devices.
In such a case, the control device list becomes full (the receiving buffer becomes full) before scanning has been performed by all the channels, and thereby the scanning is terminated before completion. Therefore, if the control device list does not include the home control device when the scanning is terminated before completion, re-scanning starts using the channel 1 like the first scanning as described previously. Therefore, however long scanning is performed, it is impossible to find the home control device. In order to solve the above problem, the communication terminal device is required to have a receiving buffer having a capacity large enough to receive beacons from one hundred or more control devices, in other words, a large-capacity memory.
In accordance with an aspect of the present invention for achieving the object, there is provided a communication terminal device including: a wireless communication unit configured to wirelessly communicate with control devices; a detection unit configured to detect a control signal instructing start of registration processing for causing a desired control device among the control devices to register the communication terminal device as a target to be controlled; a channel selection unit configured to sequentially select, from a plurality of frequency channels, a frequency channel to be used in transmission of a beacon request for requesting each of the control devices to transmit a beacon signal; a first transmission control unit configured to transmit, via the wireless communication unit, the beacon request to the control devices by using the frequency channel selected by the channel selection unit; and a receiving unit configured to receive, via the wireless communication unit, the beacon signal transmitted from each of the control devices in response to the beacon request, wherein the channel selection unit is configured to select at random a first frequency channel to be used in transmission of the beacon request from the frequency channels, when the detection unit detects the control signal
With the above structure, even if there are a large number of control devices in neighboring networks and a large number of beacons are received, the communication terminal device is capable, without a large-capacity memory, of finding out the home control device and causing the home control device to register the communication terminal device as a target to be controlled. Furthermore, even if, for example, the first attempt for registration processing fails to find the home control device, it is possible to increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It is also possible that the communication terminal device further includes: a first storage unit configured to store (a) a predetermined parameter included in the beacon signal received by the receiving unit and (b) the frequency channel selected by the channel selection unit in association with each other; and a second transmission control unit configured to transmit a registration request to the desired control device specified by the predetermined parameter by the frequency channel associated with the predetermined parameter, the registration request being for requesting the desired control device to register the communication terminal device as the target to be controlled, wherein the receiving unit is configured to further receive a registration response signal transmitted from the desired control device in response to the registration request, the registration response signal indicating that the desired control device has completed the registration of the communication terminal device or that the desired control device rejects the registration.
With the above structure, the communication terminal device is capable of checking completion of the registration of the communication terminal device into the control device. As a result, the registration is surely completed.
It is further possible that the channel selection unit is configured to select at random a first frequency channel to be used in re-transmission of the beacon request, when the detection unit re-detects the control signal.
With the above structure, even if, for example, the first attempt for registration processing fails to find the home control device, the communication terminal device can increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It is still further possible that the communication terminal device further includes a second storage unit configured to store information indicating a frequency channel that is currently used to transmit the beacon request, wherein the channel selection unit is configured to, when the detection unit re-detects the control signal, determine, as a first frequency channel to be used in re-transmission of the beacon request, one of (a) the frequency channel stored in the second storage unit and (b) a subsequent frequency channel.
With the above structure, even if, for example, the first attempt for registration processing fails to find the home control device, the communication terminal device can increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It is still further possible that the communication terminal device further includes a sensor unit configured to detect a receiving electrical field intensity of the beacon signal received by the receiving unit, wherein the first storage unit is configured to, for each of the control devices, store the receiving electrical field intensity detected by the sensor unit in addition to the predetermined parameter and the frequency channel in association with one another, and the second transmission control unit is configured to transmit the registration request to the desired control device specified by the predetermined parameter in a group including a highest receiving electrical field intensity among at least one group in which the predetermined parameter, the frequency channel, and the receiving electrical field intensity are associated with one another in the first storage unit.
Thereby, even if, for example, a beacon does not include information for determining whether or not a corresponding control device is the home control device, it is possible to cause the home control device to register the communication terminal device as a target to be controlled.
It is still further possible that the communication terminal device further includes a transmission power control unit configured to lower a transmission power level from a predetermined transmission power level, when the first transmission control unit is to transmit the beacon request.
Therefore, a propagation area of the beacon request signal is reduced. As a result, even if there are a large number of control devices in neighboring networks in an original propagation area of the beacon request signal, it is possible, without a large-capacity memory, to find out the home control device and cause the home control device to register the communication terminal device as a target to be controlled.
It is still further possible that the transmission power control unit is configured to, when the first transmission control unit completes the transmission of the beacon request, set the transmission power level lowered for the transmission of the beacon request back to the predetermined transmission power level.
With the above structure, it is possible to set the transmission power level back to the predetermined transmission power level to transmit signals except the beacon request signal.
It is still further possible that wherein the communication terminal device is one of a home appliance and an energy-related device each of which has a communication function.
Here, the communication terminal device is, for example, a home appliance such as a refrigerator, a microwave, a washing machine, or an air conditioner, or an energy-related device such as a distribution board, a power meter, a gas meter, a solar panel, a heat pump, a storage battery, or a fuel battery.
It is still further possible that the beacon signal is a beacon frame compliant with IEEE802.15.4 standard, and the beacon request is a beacon request frame compliant with the IEEE802.15.4 standard.
It is still further possible that the beacon signal is a probe response frame compliant with IEEE802.11 standard, and the beacon request is a probe request frame compliant with the IEEE802.11 standard.
These general and specific aspects may be implemented as a system, a method, an integrated circuit, a computer program, and a computer-readable recording medium, such as a Compact Disc-Read Only Memory (CD-ROM), and may be implemented also as a desired combination of them.
Hereinafter, certain exemplary embodiments are described with reference to the accompanying Drawings.
It should be noted that all the embodiments described below are specific examples of the present invention. Numerical values, shapes, materials, constituent elements, arrangement positions and the connection configuration of the constituent elements, steps, the order of the steps, and the like described in the following embodiments are merely examples, and are not intended to limit the present invention. Therefore, among the constituent elements in the following embodiments, constituent elements that are not described in independent claims that show the most generic concept of the present invention are described as elements constituting more desirable configurations.
(Embodiment 1)
The communication terminal device 100 is a device that causes a control device to register the communication terminal device 100 as a target to be controlled. As illustrated in
Here, the communication terminal device 100 is, for example, a home appliance such as a refrigerator, a microwave, a washing machine, or an air conditioner, or an energy-related device such as a distribution board, a power meter, a gas meter, a solar panel, a heat pump, a storage battery, or a fuel battery. The communication terminal device 100 may be attached to the home appliance or the energy-related device.
The communication terminal device 100 is used in, for example, the same network configuration as illustrated in
If the communication terminal device 100 is a new target to be controlled, the detection unit 101 in the communication terminal device 100 detects a control signal instructing start of registration processing for registering the communication terminal device 100 to a control device at home (home control device), and notifies the control signal to the scan control unit 102. This control signal instructing start of registration processing is issued by a user operation on the communication terminal device 100, such as pressing a registration button or the like, connection to an electrical outlet, pressing a power button, or the like.
The scan control unit 102 performs scanning to search for the home control device. More specifically, the scan control unit 102 performs control to broadcast-transmit, to control devices, a beacon request signal (hereinafter, referred to also simply as a “beacon request”) for requesting transmission of a beacon signal (hereinafter, referred to also simply as a “beacon”). The scanning allows the terminal device to search a plurality of control devices including control devices in nearby networks such as networks in neighbors, for a desired control device to be connected (home control device).
Furthermore, the scan control unit 102 performs control to broadcast-transmit a beacon request by all of a plurality of frequency channels. Under the control, a beacon request is broadcast-transmitted (simultaneously transmitted) first by using one of the frequency channels. Here, when a predetermined scan time period has passed (expiry of a scan timer), the scan control unit 102 ends the scanning by the current frequency channel and starts broadcast-transmission of a beacon request by using a different frequency channel.
When the detection unit 101 detects such a control signal, the channel selection unit 103 selects one of the frequency channels at random as the first frequency channel to be used in beacon request transmission. When the scanning by the current frequency channel is completed, the channel selection unit 103 then selects a subsequent frequency channel (for example, selects a channel 4 if the current frequency channel is a channel 3). In this manner, the channel selection unit 103 selects the channels sequentially one by one.
The frame generation unit 104 generates a frame of a beacon request according to instructions from the scan control unit 102.
The transmission unit 105 is a part of the wireless communication unit according to the aspect of the present invention. The transmission unit 105 uses a frequency channel selected by the channel selection unit 103 to broadcast-transmit the frame of the beacon request which has been generated by the frame generation unit 104.
The receiving unit 106 is also a part of the wireless communication unit according to the aspect of the present invention. The receiving unit 106 receives beacons transmitted from a plurality of control devices operating by using the same frequency channel as selected by the channel selection unit 103 in response to the beacon request.
The frame analysis unit 107 analyzes the beacons received by the receiving unit 106. From each of the beacons, the frame analysis unit 107 retrieves a predetermined parameter, such as a network ID and a device address which are used for identifying the control device of the beacon. Then, the frame analysis unit 107 stores such parameters into the list storage unit 108 in association with the frequency channel.
The list storage unit 108 is implemented to a memory or the like, and an example of the first storage unit according to the aspect of the present invention. For example, as illustrated in
The registration control unit 109 requests a searched-out desired control device 20 among the control devices to register the communication terminal device 10, when the scan control unit 102 has completed the scanning by using all of the frequency channels. The registration control unit 109 transmits a registration request to the desired control device in the control device list stored in the list storage unit 108, so as to request the desired control device to register the communication terminal device 100 as a target to be controlled. Here, by using the network ID and the device address stored in the control device list, the registration control unit 109 transmits a registration request to the desired control device by the corresponding frequency channel, namely, the frequency channel used by the desired control device in transmitting the received beacon.
The communication terminal device 100 determines whether or not the control device list includes the home control device, for example, by receiving, from a control device, a beacon including a parameter indicating that the control device is ready for registration by pressing of a registration button or the like, and determining whether or not the control device list includes the control device corresponding to the beacon including the parameter.
It is also possible that the communication terminal device transmits a registration request sequentially to the control devices indicated in the control device list, and receiving, from each of the control devices, a registration response added with information indicating connection permission or connection rejection, thereby making the above determination. In this case, if a registration button or the like of the control device is pressed and the control device is thereby ready for performing registration, the control device sends a registration response indicating connection permission back to the communication terminal device. The determination is made not only by the above-described methods, but may be made by other methods.
Next, processing performed by the communication terminal device 100 having the above-described structure is described.
When the detection unit 101 detects a control signal instructing start of registration processing (Yes at Step S100), the channel selection unit 103 selects the first frequency channel to be used in transmission of a beacon request from among a plurality of frequency channels at random (Step S101). The scan control unit 102 starts a scan timer for which a scan time period is previously set (Step S102). The scan control unit 102 performs control to broadcast-transmit a beacon request (Step S103). More specifically, the scan control unit 102 instructs the frame generation unit 104 and the transmission unit 105 to broadcast-transmit a beacon request by using the frequency channel selected by the channel selection unit 103.
The scan control unit 102 determines whether or not the receiving unit 106 receives a beacon (Step S104). If it is determined that a beacon is received (Yes at Step S104), then the frame analysis unit 107 analyzes the beacon received by the receiving unit 106, then retrieves, from the beacon, a predetermined parameter, such as a network ID and a device address which are used for identifying the control device having transmitted the beacon, and stores the network ID and the device address into the list storage unit 108 in association with the frequency channel as the control device list (updates the control device list) (Step S105).
Next, the scan control unit 102 determines whether or not the control device list stored in the list storage unit 108 is full (Step S106). If it is determined that the control device list is full (Yes at Step S106), then the scan control unit 102 ends the scanning.
On the other hand, if the control device list is not full (No at Step S106) and if any beacon is not received (No at Step S104), then the scan control unit 102 determines whether or not the scan timer is expired (the predetermined scan time period has passed) (Step S107).
If it is determined that the scan timer is not expired (No at Step S107), then the processing returns to the step for the beacon receipt determination (Step S104). On the other hand, if the scan timer is expired (Yes at Step S107), then the scan control unit 102 determines whether or not scanning has been performed by using all the frequency channels (Step S108).
If it is determined that scanning has not yet been performed by using all the frequency channels (No at Step S108), then the channel selection unit 103 selects a subsequent frequency channel (for example, selects a channel 4 if the current frequency channel is a channel 3) (Step S109) and the processing returns to the step for the scan timer start (Step S102) and repeats the subsequent steps. If scanning has already been performed by using all the frequency channels (Yes at Step S108), then the scan control unit 102 ends the scanning.
Referring to
Next, when a scan timer for the channel 5 is expired (Step S153), then the channel selection unit 103 selects, as a frequency channel to be used to transmit a beacon request, a channel 6 (CH6) immediately subsequent to the channel 5 (CH5) (Step S154). In this state, the transmission unit 105 broadcast-transmits a beacon request by using the channel 6. Then, the receiving unit 106 receives beacons from control devices 20n, etc. which are operating by the channel 6. When the receiving unit 106 receives the beacons, a network ID and a device address are retrieved from each of the beacons and stored in the control device list in association with the channel 6 in the same manner as described above (Step S155). Here, in
Here, if the control device list does not include the home control device, a user performs an operation for registration processing again. The detection unit 101 detects a control signal instructing start of registration processing, and scanning starts again.
Therefore, the channel selection unit 103 selects again one of the frequency channels at random as the first frequency channel to be used in transmission of a beacon request. Here, the channel 3 (CH3) is selected (Step S157). In this state, the transmission unit 105 broadcast-transmits a beacon request by using the channel 3. Then, the receiving unit 106 receives beacons from control devices 20a, etc. which are operating by the channel 3. When the receiving unit 106 receives the beacons, a network ID and a device address are retrieved from each of the beacons and stored in the control device list in association with the channel 3 in the same manner as described above (Step S1.58). Subsequently, the same processing is repeated. It should be noted in the example illustrated in
As described above, in the present embodiment, when the detection unit 101 detects such a control signal, the channel selection unit 103 selects one of the frequency channels at random as the first frequency channel to be used in beacon request transmission. Therefore, even if there are a large number of control devices in neighboring networks and a large number of beacons are received, it is possible, without a large-capacity memory, to find out the home control device and cause the home control device to register the communication terminal device 100 as a target to be controlled. Furthermore, even if, for example, the first attempt for the registration processing fails to find the home control device, it is possible to increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It should also be noted that it has been described in the present embodiment that, if the control device list includes the home control device, the registration control unit 109 transmits a registration request to the control device, or even if it is not certain whether or not the control device list includes the home control device, the registration control unit 109 transmits a registration request sequentially to all the control devices. However, the present invention is not limited to the above.
For example, it is also possible that the communication terminal device 100 includes a sensor unit (not shown) that detects a receiving electrical field intensity of a beacon received by the receiving unit 106, and stores the receiving electrical field intensity detected by the sensor unit as well as the network ID, the device address, the frequency channel, and the like into the control device list. Then, after completion of the scanning, a registration request signal is transmitted to a control device identified by a network ID having the highest receiving electrical field intensity in the control device list.
Thereby, even if, for example, a beacon does not include information for determining whether or not a corresponding control device is the home control device, it is possible to cause the home control device to register the communication terminal device 100 as a target to be controlled.
Furthermore, it is also possible to transmit a registration request signal not only to the control device identified by the network ID having the highest receiving electrical field intensity, but also to a control device or the like which is identified by a network ID having the second highest receiving electrical field intensity.
It should be noted that it has been described in the present embodiment that, at Step S109 in
(Embodiment 2)
In Embodiment 1, the first frequency channel to be used in transmission of a beacon request is selected at random from a plurality of frequency channels every time a control signal is detected. In contrast, in Embodiment 2, the first frequency channel to be used in transmission of a beacon request is selected at random from a plurality of frequency channels when a control signal is detected for the first time, but a frequency channel immediately subsequent to the latest frequency channel that has been previously used is selected when a control signal is detected for the second or successive time.
The communication terminal device 200 is a device that causes a control device to register the communication terminal device 200 as a target to be controlled. As illustrated in
When the detection unit 101 detects a control signal for the first time, the channel selection unit 201 selects one of the frequency channels at random as the first frequency channel to be used in beacon request transmission.
When the scanning by the current frequency channel is completed, the channel selection unit 201 then selects a subsequent frequency channel (for example, selects a channel 4 if the current frequency channel is a channel 3). In this manner, the channel selection unit 201 selects the channels sequentially one by one.
The channel selection unit 201 stores the current frequency channel into the channel storage unit 202.
Then, when the detection unit 101 detects a control signal for the second or successive time, the channel selection unit 201 selects, as the first frequency channel to be used in beacon request transmission, a frequency channel immediately subsequent to the frequency channel stored in the channel storage unit 202.
The channel storage unit 202 is an example of the second storage unit according to the aspect of the present invention. The channel storage unit 202 stores a frequency channel that is currently used.
Next, processing performed by the communication terminal device 200 having the above-described structure is described.
When the detection unit 101 detects a control signal instructing start of registration processing (Yes at Step S100), the channel selection unit 201 determines whether or not the channel storage unit 202 stores the latest frequency channel that has been previously used (Step S201).
If it is determined that the latest frequency channel is stored (Yes at Step S201), in other words, if the detection unit 101 detects a control signal for the second or successive time, the channel selection unit 201 selects, as the first frequency channel to be channel used in beacon request transmission, a frequency channel immediately subsequent to the latest frequency channel stored in the channel storage unit 202 (Step S202).
On the other hand, if the latest frequency channel is not stored (No at Step S201), in other words, if the detection unit 101 detects a control signal for the first time, the channel selection unit 201 selects one of the frequency channels at random as the first frequency channel to be used in beacon request transmission (Step S203).
Next, the scan control unit 102 starts a scan timer for which a scan time period is previously set (Step S102). The scan control unit 102 performs control to broadcast-transmit a beacon request (Step S103). More specifically, the scan control unit 102 instructs the frame generation unit 104 and the transmission unit 105 to broadcast-transmit a beacon request by using the frequency channel selected by the channel selection unit 201.
The scan control unit 102 determines whether or not the receiving unit 106 receives a beacon (Step S104). If it is determined that a beacon is received (Yes at Step S104), then the frame analysis unit 107 analyzes the beacon received by the receiving unit 106, then retrieves, from the beacon, predetermined parameters, such as a network ID and a device address which are used for identifying the control device having transmitted the beacon, and stores the parameters into the list storage unit 108 in association with the frequency channel as the control device list (updates the control device list) (Step S105).
Next, the scan control unit 102 determines whether or not the control device list stored in the list storage unit 108 is full (Step S106). If it is determined that the control device list is full (Yes at Step S106), then the scan control unit 102 ends the scanning.
On the other hand, if the control device list is not full (No at Step S106) and if any beacon is not received (No at Step S104), then the scan control unit 102 determines whether or not the scan timer is expired (Step S107).
If it is determined that the scan timer is not expired (No at Step S107), then the processing returns to the step for the beacon receipt determination (Step S104). On the other hand, if the scan timer is expired (Yes at Step S107), then the channel selection unit 201 stores the current frequency channel into the channel storage unit 202 (Step S204).
Next, the scan control unit 102 determines whether or not the scanning has been performed by all the frequency channels (Step S108). If it is determined that scanning has not yet been performed by using all the frequency channels (No at Step S108), then the channel selection unit 201 selects a subsequent frequency channel (for example, selects a channel 4 if the current frequency channel is a channel 3) (Step S109) and the processing returns to the step for the scan timer start (Step S102) and repeats the subsequent steps. If scanning has already been performed by using all the frequency channels (Yes at Step S108), then the scan control unit 102 ends the scanning.
Referring to
Here, if the control device list does not include the home control device, a user performs an operation for registration processing again. The detection unit 101 detects a control signal instructing start of registration processing, and scanning starts again.
Here, the channel selection unit 201 re-selects, as the first frequency channel to be used in beacon request transmission, a frequency channel immediately subsequent to the frequency channel (in this example, CH6) stored in the channel storage unit 202. In this example, a channel 7 (CH7) is selected (Step S251).
In this state, the transmission unit 105 broadcast-transmits a beacon request by using the channel 7. Then, the receiving unit 106 receives beacons from control devices 20a, etc. which are operating by the channel 7.
When the receiving unit 106 receives the beacons, a network ID and a device address are retrieved from each of the beacons and stored in the control device list in association with the channel 7 in the same manner as described above (Step S252).
Subsequently, the same processing is repeated. It should be noted in the example illustrated in
As described above, according to the present embodiment, when detection unit 101 detects a control signal for the first time, the channel selection unit 201 selects one of the frequency channels at random as the first frequency channel to be used in beacon request transmission, and when the detection unit 101 detects a control signal for the second or successive time, the channel selection unit 201 selects a frequency channel immediately subsequent to the latest frequency channel that has been previously used.
Therefore, even if there are a large number of control devices in neighboring networks and a large number of beacons are received, it is possible, without a large-capacity memory, to find out the home control device and cause the home control device to register the communication terminal device as a target to be controlled.
Furthermore, even if, for example, the first attempt for the registration processing fails to find the home control device, it is possible to increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It should be noted that it has been described in the present embodiment that, when the detection unit 101 detects a control signal for the second or successive time, the channel selection unit 201 selects, as the first frequency channel to be used in beacon request transmission, a frequency channel immediately subsequent to a frequency channel stored in the channel storage unit 202. However, the present invention is not limited to the above.
For example, it is also possible that, when the detection unit 101 detects a control signal for the second or successive time, the channel selection unit 201 selects the frequency channel stored in the channel storage unit 202, as the first frequency channel to be used in beacon request transmission.
It is therefore possible to search again, from the beginning, for a control device which has not been received by the frequency channel stored in the channel storage unit 202 due to full of the receiving buffer. As a result, a probability of causing the home control device to resister the target communication terminal device is increased in the second and successive attempts for the registration processing.
(Embodiment 3)
In Embodiment 3, every time a control signal is detected, one of frequency channels is selected at random as the first frequency channel to be used in beacon request transmission in the same manner as described in Embodiment 1, and transmission power for the beacon request transmission is increased.
The communication terminal device 300 is a device that causes a control device to register the communication terminal device 300 as a target to be controlled. As illustrated in
The scan control unit 301 performs scanning to search for the home control device. More specifically, the scan control unit 301 performs control to broadcast-transmit a beacon request for requesting control devices to transmit beacons. The scanning allows the communication terminal device to search a plurality of control devices including control devices in nearby networks such as networks in neighbors, for a desired control device to be connected (home control device).
Furthermore, the scan control unit 301 performs control to broadcast-transmit a beacon request by all a plurality of frequency channels. Under the control, a beacon request is broadcast-transmitted (simultaneously transmitted) first by using one of the frequency channels. Here, when a predetermined scan time period has passed (expiry of a scan timer), the scan control unit 301 ends the scanning by the current frequency channel and starts broadcast-transmission of a beacon request by using a different frequency channel.
Furthermore, when broadcast-transmission of a beacon request is to start or when broadcast-transmission of a beacon request is ended, the scan control unit 301 notifies the start or end to the transmission power control unit 302.
When the transmission power control unit 302 receives, from the scan control unit 301, notification indicating that broadcast-transmission of a beacon request is to start, the transmission power control unit 302 lowers a predetermined transmission power level of the transmission unit 303 to, for example, a half. Furthermore, when the transmission power control unit 302 receives, from the scan control unit 301, notification indicating that broadcast-transmission of a beacon request is ended, the transmission power control unit 302 sets the lowered transmission power level of the transmission unit 303 back to the predetermined transmission power level.
The transmission unit 303 broadcast-transmits, with the transmission power level controlled and lowered by the transmission power control unit 302, a frame of a beacon request generated by the frame generation unit 104 by using a frequency channel selected by the channel selection unit 103.
Next, processing performed by the communication terminal device 300 having the above-described structure is described.
When the detection unit 101 detects a control signal instructing start of registration processing (Yes at Step S100), the transmission power control unit 302 receives, from the scan control unit 301, a notification indicating that a beacon request is to be broadcast-transmitted, and then lowers a predetermined transmission power level of the transmission unit 303 (Step S301).
Next, the channel selection unit 103 selects one of frequency channels at random as the first frequency channel to be used in the beacon request transmission (Step S101). The scan control unit 301 starts a scan timer for which a scan time period is previously set (Step S102). The scan control unit 301 performs control to broadcast-transmit a beacon request (Step S103).
More specifically, the scan control unit 301 instructs the frame generation unit 104 and the transmission unit 303 to broadcast-transmit a beacon request by using the frequency channel selected by the channel selection unit 103. Here, the transmission power level of the transmission unit 303 is lowered from the predetermined transmission power level, the beacon request is broadcast-transmitted with the lowered transmission power level.
The scan control unit 301 determines whether or not the receiving unit 106 receives a beacon (Step S104). If it is determined that a beacon is received (Yes at Step S104), then the frame analysis unit 107 analyzes the beacon received by the receiving unit 106, then retrieves, from the beacon, predetermined parameters, such as a network ID and a device address which are used for identifying the control device having transmitted the beacon, and stores the predetermined parameters into the list storage unit 108 in association with the frequency channel as the control device list (updates the control device list) (Step S105).
Next, the scan control unit 301 determines whether or not the control device list stored in the list storage unit 108 is full (Step S106). If it is determined that the control device list is full (Yes at Step S106), then the scan control unit 301 terminates the scanning, and the transmission power control unit 302 sets the lowered transmission power level of the transmission unit 303 back to the predetermined transmission power level (Step S302).
On the other hand, if the control device list is not full (No at Step S106) or if any beacon is not received (No at Step S104), then the scan control unit 301 determines whether or not the scan timer is expired (Step S107).
If it is determined that the scan timer is not expired (No at Step S107), then the processing returns to the step for the beacon receipt determination (Step S104). On the other hand, if the scan timer is expired (Yes at Step S107), then the scan control unit 301 determines whether or not scanning has been performed by using all the frequency channels (Step S108).
If it is determined that scanning has not yet been performed by using all the frequency channels (No at Step S108), then the channel selection unit 103 selects a subsequent frequency channel (for example, selects a channel 4 if the current frequency channel is a channel 3) (Step S109) and the processing returns to the step for the scan timer start (Step S102) and repeats the subsequent steps.
If scanning has already been performed by using all the frequency channels (Yes at Step S1.08), then the scan control unit 301 ends the scanning, and the transmission power control unit 302 sets the lowered transmission power level of the transmission unit 303 back to the predetermined transmission power level (Step S302).
Referring to
Then, the channel selection unit 103 selects one of frequency channels at random as the first frequency channel to be used in beacon request transmission. In this example, a channel 2 (CH2) is selected (Step S352).
In this state, the transmission unit 303 broadcast-transmits a beacon request by using the channel 2. Here, the transmission power level of the transmission unit 303 is lowered from the predetermined transmission power level, the beacon request is broadcast-transmitted with the lowered transmission power level. Therefore, a propagation area of the beacon request is reduced. In
Next, when a scan timer for the channel 2 is expired (Step S353), then the channel selection unit 103 selects, as a frequency channel to be used to transmit a beacon request, a channel 3 (CH3) immediately subsequent to the channel 2 (CH2) (Step S354). In this state, the transmission unit 303 broadcast-transmits a beacon request by using the channel 3. Then, the receiving unit 106 receives beacons from control devices 20a, etc. which are operating by the channel 3. When the receiving unit 106 receives the beacons, a network ID and a device address are retrieved from each of the beacons and stored in the control device list in association with the channel 3 in the same manner as described above (Step S355).
Here, if a total number of the frequency channels is, for example, eight channels, then the channel selection unit 103 sequentially selects channels 4 to 8 and repeats the same processing by each channel. Finally, the channel selection unit 103 selects, as a frequency channel to be used in beacon request transmission, a channel 1 (CH1) immediately subsequent to the channel 8 (CH8) (Step S356).
In this state, a beacon request is broadcast-transmitted by using the channel 1. Then, beacons are received from the control devices 20b and 20c which are operating by the channel 1. When the beacons are received, a network ID and a device address are retrieved from each of the beacons and stored in the control device list in association with the channel 1 in the same manner as described above (Step S357). Then, when a scan timer for the channel 1 is expired (Step S358), the scanning has been completed.
It should be noted in the example illustrated in
As described above, in the present embodiment, when a beacon request is to be broadcast-transmitted, the transmission power control unit 302 lowers the predetermined transmission power level of the transmission unit 303. Therefore, a propagation area of the beacon request is reduced. As a result, even if there are a large number of control devices in neighboring networks in an original propagation area of the beacon request signal, it is possible, without a large-capacity memory, to find the home control device and cause the home control device to register the communication terminal device as a target to be controlled. Furthermore, even if, for example, the first attempt for the registration processing fails to find the home control device, it is possible to increase a probability of finding the home control device and causing the home control device to register the communication terminal device as the number of attempts for the registration processing is increased.
It should be noted that, in each of the above-described embodiments, the transmission unit or the receiving unit may perform not only wireless communication, but also wired communication, such as Power Line Communication (PLC), Ethernet®, Universal Serial Bus (USB), and High-Definition Multimedia Interface® (HDMI). With the communication methods, the communication terminal device according to the present invention can perform communication by various transmission mediums.
It should also be noted that it has been described in the above embodiments that the communication terminal device transmits a beacon request and receives a beacon from a control device according to IEEE802.15.4 standard, but the present invention is not limited to the above. For example, it is also possible to perform scanning according to IEEE802.11 standard, so that the communication terminal device transmits a probe request and receives a probe response from a control device. The communication terminal device according to the present invention can provide the same effects also by probe transmission and probe response.
It should also be noted that, in each of the above-described embodiment, each of the structural elements may be implemented to a dedicated hardware or executed by a suitable software program. Each of the structural elements may be implemented by reading a software program by a program execution unit, such as a Central Processing Unit (CPU) or a processor, from a recording medium such as a hard disk or a semiconductor memory, and executing the software program. An example of the software for implementing the communication terminal device in each of the above-described embodiments is a program as described below.
The program causes a computer to execute a control method of controlling a communication terminal device. The method including: detecting a control signal instructing start of registration processing for causing a desired control device among a plurality of control devices to register a communication terminal device as a target to be controlled; sequentially selecting, from a plurality of frequency channels, a frequency channel to be used in transmission of a beacon request for requesting each of the control devices to transmit a beacon signal; transmitting the beacon request to each of the control devices by using the frequency channel selected in the selecting; and receiving the beacon signal from each of the control devices in response to the beacon request, wherein in the selecting, a first frequency channel to be used in transmission of the beacon request is selected at random from the frequency channels, when the control signal is detected in the detecting.
Although the communication terminal devices according to one or more aspects of the present invention have been described based on the above embodiments, the present invention is not limited to them. Those skilled in the art will be readily appreciate that various modifications and combinations of the structural elements in the embodiments are possible without materially departing from the novel teachings and advantages of the present invention. Accordingly, all such modifications and combinations are intended to be included within the scope of the present invention.
The present invention is capable of searching for a home control device and causing the home control device to register a target communication terminal device to be controlled without providing a large-capacity memory. The present invention is useful for a communication terminal device or the like which causes a control device to register the communication terminal device as a target to be controlled via a wired communication network or a wireless communication network.
Number | Date | Country | Kind |
---|---|---|---|
2012-197442 | Sep 2012 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2013/005108 | 8/29/2013 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2014/038161 | 3/13/2014 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7120138 | Soomro et al. | Oct 2006 | B2 |
7356333 | Kumaki | Apr 2008 | B2 |
7675863 | Werb et al. | Mar 2010 | B2 |
7701858 | Werb et al. | Apr 2010 | B2 |
8099094 | Marinier et al. | Jan 2012 | B2 |
8411592 | Fujii et al. | Apr 2013 | B2 |
20030002456 | Soomro et al. | Jan 2003 | A1 |
20060003756 | Kumaki | Jan 2006 | A1 |
20060009246 | Marinier et al. | Jan 2006 | A1 |
20060293048 | Swanson et al. | Dec 2006 | A1 |
20070258508 | Werb et al. | Nov 2007 | A1 |
20080036589 | Werb et al. | Feb 2008 | A1 |
20080037431 | Werb et al. | Feb 2008 | A1 |
20080037454 | Werb et al. | Feb 2008 | A1 |
20080037569 | Werb et al. | Feb 2008 | A1 |
20080040509 | Werb et al. | Feb 2008 | A1 |
20090133105 | Larsen | May 2009 | A1 |
20100046394 | Fujii et al. | Feb 2010 | A1 |
20100260158 | Naito et al. | Oct 2010 | A1 |
20110268201 | Kludt et al. | Nov 2011 | A1 |
20120155439 | Marinier et al. | Jun 2012 | A1 |
20120224568 | Freda et al. | Sep 2012 | A1 |
20130170459 | Naito et al. | Jul 2013 | A1 |
20130182613 | Fujii et al. | Jul 2013 | A1 |
20130184017 | Fujii et al. | Jul 2013 | A1 |
Number | Date | Country |
---|---|---|
2 009 844 | Dec 2008 | EP |
2004-534480 | Nov 2004 | JP |
2006-19962 | Jan 2006 | JP |
2006-186616 | Jul 2006 | JP |
2007-535203 | Nov 2007 | JP |
2008-187348 | Aug 2008 | JP |
2008-219919 | Sep 2008 | JP |
2008-541641 | Nov 2008 | JP |
4316488 | Aug 2009 | JP |
2010-245975 | Oct 2010 | JP |
2011-19134 | Jan 2011 | JP |
2012-100357 | May 2012 | JP |
03005643 | Jan 2003 | WO |
2005010214 | Feb 2005 | WO |
2005010214 | Feb 2005 | WO |
2006017024 | Feb 2006 | WO |
2006017024 | Feb 2006 | WO |
2006123218 | Nov 2006 | WO |
2006123218 | Nov 2006 | WO |
2008093817 | Aug 2008 | WO |
Entry |
---|
International Search Report issued Oct. 8, 2013 in corresponding International Application No. PCT/JP2013/005108. |
Number | Date | Country | |
---|---|---|---|
20140315591 A1 | Oct 2014 | US |