Control device and control method
The control device and method ensure orderly device removal from mesh networks by determining and utilizing communication state-based numbers to manage device withdrawal, enhancing network stability and efficiency.
Patent Information
- Application Number
- JP2023073679
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2024-11-08
AI Technical Summary
Existing mesh networks face difficulties in efficiently managing the orderly removal of communication devices, leading to potential communication disruptions when devices leave the network in an uncontrolled manner.
A control device and method that determines a number for each communication device based on its communication state, allowing devices to be withdrawn from the mesh network in a controlled order, such as descending order of the absolute value of the difference between determined numbers, ensuring orderly disconnection.
Facilitates the reliable and efficient removal of communication devices from the mesh network, minimizing communication disruptions and ensuring smooth network operations.
Smart Images

Figure 2024158460000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device and a control method. [Background technology]
[0002] Patent Document 1 discloses a technique for causing a node (communication device) that has joined a mesh network to leave the mesh network. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2014 / 080522 Summary of the Invention [Problem to be solved by the invention]
[0004] When multiple communication devices leave a mesh network, depending on the order in which they leave, it may be difficult for some communication devices to leave.
[0005] The present invention provides a control device and the like that makes it easy for a communication device to leave a mesh network. [Means for solving the problem]
[0006] A control device according to one embodiment of the present invention includes a control unit that determines a number for each of a plurality of communication devices depending on the communication state of the plurality of communication devices, and a communication unit that communicates with the plurality of communication devices, wherein the plurality of communication devices join a mesh network, and when the control unit causes one or more of the plurality of communication devices to leave the mesh network, the control unit performs a removal process to remove the one or more communication devices from the mesh network in order of the largest absolute value of the difference between the number determined for one of the plurality of communication devices that is communicating with the communication unit and the numbers determined for each of the one or more communication devices.
[0007] A control method according to one embodiment of the present invention is a control method executed by a control device, the control device having a control unit and a communication unit that communicates with a plurality of communication devices, the plurality of communication devices joining a mesh network, the control method including: a first step in which the control unit determines a number for each of the plurality of communication devices depending on a communication state of the plurality of communication devices; and a second step in which, when the control unit causes one or more of the plurality of communication devices to leave the mesh network, the control unit performs a removal process to remove the one or more communication devices from the mesh network in order of the largest absolute value of the difference between the number determined for one of the plurality of communication devices that is communicating with the communication unit and the numbers determined for each of the one or more communication devices. Effect of the Invention
[0008] The control device of the present invention can facilitate the removal of a communication device from a mesh network. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram illustrating a functional configuration of a communication system according to an embodiment. [Diagram 2] FIG. 2 is a sequence diagram of the first entry process according to the first example of the embodiment. [Diagram 3]FIG. 3 is a diagram illustrating an example of a map image according to the first example of the embodiment. [Figure 4] FIG. 4 is a sequence diagram of the second entry process according to the first example of the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a map image according to the first example of the embodiment. [Figure 6] FIG. 6 is a sequence diagram of the initialization process according to the first example of the embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of a map image according to the first example of the embodiment. [Figure 8A] FIG. 8A is a flowchart according to Modification 1 of the first example of the embodiment. [Figure 8B] FIG. 8B is a flowchart according to the second modification of the first example of the embodiment. [Figure 9] FIG. 9 is a flowchart according to the third modification of the first embodiment. [Figure 10] FIG. 10 is a sequence diagram of the first entry process according to the second example of the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a map image according to the second example of the embodiment. [Figure 12] FIG. 12 is a map image showing a first scan range according to the second example of the embodiment. [Figure 13] FIG. 13 is a map image showing the second scan range according to the second example of the embodiment. [Figure 14] FIG. 14 is a map image showing the third scan range according to the second example of the embodiment. [Figure 15] FIG. 15 is a flowchart illustrating the first entry process according to the second example of the embodiment in more detail. [Figure 16] FIG. 16 is a sequence diagram of an initialization process according to the second example of the embodiment. [Figure 17] FIG. 17 is a diagram illustrating an example of a map image according to the second example of the embodiment. [Figure 18]FIG. 18 is a diagram illustrating an example of a map image according to the third example of the embodiment. [Figure 19] FIG. 19 is a diagram illustrating an example of a map image according to the third example of the embodiment. [Figure 20] FIG. 20 is a flowchart for explaining step S46 according to the third embodiment in more detail. [Figure 21] FIG. 21 is a sequence diagram of the first entry process according to the fourth example of the embodiment. [Figure 22] FIG. 22 is a diagram illustrating an example of a map image according to the fourth example of the embodiment. [Figure 23] FIG. 23 is a sequence diagram of an initialization process according to the fourth example of the embodiment. [Figure 24] FIG. 24 is a diagram illustrating an example of a map image according to the fourth example of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the drawings. Note that the embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, component arrangement and connection forms, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. In addition, among the components in the following embodiments, components that are not described in the independent claims will be described as optional components.
[0011] In addition, each drawing is a schematic diagram and is not necessarily a precise illustration. In addition, in each drawing, the same reference numerals are used for substantially the same configuration, and duplicated explanations may be omitted or simplified.
[0012] (Embodiment) [composition] First, a configuration of a communication system 10 according to an embodiment will be described. Fig. 1 is a block diagram showing a functional configuration of a communication system 10 according to the present embodiment. As shown in Fig. 1, communication system 10 includes a plurality of communication devices (a plurality of lighting fixtures 20) and a control device 30.
[0013] In the communication system 10, each of the multiple communication devices, which are the multiple lighting fixtures 20, has a wireless communication function, and the multiple communication devices form a mesh network. One communication device, that is, one lighting fixture 20, corresponds to one communication node. In the mesh network, when transmitting information from one communication node (also referred to as a first communication node) to another communication node (also referred to as a second communication node), the information is transmitted in a bucket brigade manner.
[0014] Specifically, when the first communication node broadcasts information including the address information (destination information) of the second communication node, each of the other communication nodes that belong to the same mesh network as the first communication node that receives the information further broadcasts the received information. That is, each of the other communication nodes relays the information. By repeating such relaying of information within the same mesh network, the information transmitted by the first communication node reaches all communication nodes that belong to the same mesh network as the first communication node. Therefore, the second communication node can receive the information transmitted by the first communication node.
[0015] The information transmitted through the mesh network is, for example, removal information for removing the communication device from the mesh network. In addition, for example, if the communication device is a lighting fixture 20, the information transmitted through the mesh network is control information for controlling the lighting fixture 20 to turn on, turn off, or dim the light. In addition, if an environmental sensor is included in the mesh network as described below, the measurement value (sensing information) of the environmental sensor may be transmitted.
[0016] First, the communication device will be described. The communication device may be any device capable of communicating with devices other than the communication device, and in this embodiment, the communication device is lighting fixture 20. For example, the communication device may also be an environmental sensor or a camera.
[0017] Furthermore, a lighting fixture 20, which is an example of a communication device, will be described. The lighting fixture 20 is a base light or the like that is installed on the ceiling of an indoor space and illuminates the indoor space. As described above, each of the lighting fixtures 20, which are multiple communication devices, has a wireless communication function. The multiple lighting fixtures 20 participate in a mesh network (more specifically, a wireless mesh network), that is, they form a mesh network. The form of the lighting fixture 20 is not particularly limited, and may be a ceiling light, a downlight, a spotlight, or the like. Specifically, the lighting fixture 20 includes a wireless communication unit 21 and a light source 22.
[0018] The wireless communication unit 21 is a wireless communication circuit for the communication device (lighting device 20) to perform wireless communication (more specifically, radio wave communication) with other communication devices (lighting devices 20) and the control device 30. After the lighting device 20 joins the mesh network, the wireless communication unit 21 performs communication through the mesh network. The wireless communication unit 21 also transmits an identification signal for identifying the lighting device 20. The identification signal includes identification information for identifying the lighting device 20 (communication device). For example, the identification signal is a beacon signal (also called an advertisement signal, etc.), and the lighting device 20 periodically transmits the beacon signal and performs wireless communication with the control device 30 that has received the beacon signal. The wireless communication unit 21 also performs wireless communication according to a communication standard, such as BLE (Blutooth (registered trademark) Low Energy) or Wi-Fi (registered trademark).
[0019] Light source 22 emits white light into the indoor space so that lighting device 20 can illuminate the indoor space. Light source 22 is realized by, for example, an LED (Light Emitting Diode) element, but may also be realized by other light emitting elements such as a semiconductor laser, an organic EL (Electro Luminescence), or an inorganic EL.
[0020] Next, the configuration of the control device 30 will be described. The control device 30 is an information terminal that performs an entry process to allow a communication device (lighting device 20) to enter the mesh network. The control device 30 also performs an initialization process to set the communication device (lighting device 20) to a state where it has not yet entered the mesh network.
[0021] The control device 30 is, for example, a mobile terminal such as a smartphone, a tablet terminal, or a PDA (Personal Digital Assistant). The control device 30 may also be a dedicated remote controller used in the communication system 10. The control device 30 is used by a user when the entry process and the initialization process are performed. The user here is, for example, an installer who installed multiple lighting fixtures 20 on the ceiling, but may also be a user other than the installer. The user may also be, for example, an administrator of the communication system 10. The control device 30 specifically includes an operation reception unit 31, a display unit 32, a wireless communication unit 33, a control unit 34, and a storage unit 35.
[0022] The operation reception unit 31 receives operations from a user. Specifically, the operation reception unit 31 is realized by a touch panel or the like.
[0023] The display unit 32 displays images necessary for the entry process and the initialization process. The display unit 32 is realized by a display panel such as a liquid crystal panel or an organic EL panel.
[0024] Wireless communication unit 33, which is an example of a communication unit, is a wireless communication circuit that enables control device 30 to perform wireless communication (more specifically, radio wave communication) with each of the multiple lighting fixtures 20. Specifically, wireless communication unit 33 performs wireless communication in accordance with a communication standard such as BLE or Wi-Fi (registered trademark).
[0025] The control unit 34 performs information processing on the entry process and the initialization process in response to the user's operation received by the operation reception unit 31. The control unit 34 also performs a reception process to have the wireless communication unit 33 receive an identification signal that identifies each of the lighting fixtures 20 and is output (i.e. transmitted) from the lighting fixtures 20. The entry process includes a reception process. That is, the control unit 34 performs a reception process to allow the lighting fixtures 20 to enter the mesh network. The control unit 34 also performs a withdrawal process to withdraw the lighting fixtures 20 from the mesh network. Here, the withdrawal process is, for example, a process of changing or erasing setting information stored in a storage unit (not shown) included in the lighting fixture 20 when the lighting fixture 20 enters the mesh network. The setting information is information necessary for communication in the mesh network. The initialization process includes a withdrawal process. The control unit 34 is realized, for example, by a microcomputer, but may also be realized by a processor or a dedicated circuit. The functions of the control unit 34 are realized by hardware such as a microcomputer or a processor constituting the control unit 34 executing a computer program (software) stored in the storage unit 35.
[0026] The storage unit 35 is a storage device that stores information necessary for information processing related to the entry processing and initialization processing of the computer programs and the like executed by the control unit 34. The storage unit 35 is realized by, for example, a semiconductor memory.
[0027] The entry process and the initialization process will be described below using first to fourth examples.
[0028] <Example 1> In the first example, a case will be described in which communication system 10 includes five lighting fixtures 20 as a plurality of communication devices.
[0029] The entry process and the initialization process will be described below.
[0030] The entry process includes a first entry process that associates the installation location of the lighting device 20 with the identification information of the lighting device 20, and a second entry process (also referred to as provisioning) that stores information in each of the multiple lighting devices 20 for allowing the lighting device 20 to enter the mesh network.
[0031] [First entry process] First, the first entry process will be described. Fig. 2 is a sequence diagram of the first entry process according to a first example of the present embodiment. The first entry process shown in Fig. 2 is performed, for example, after an installer installs multiple lighting fixtures 20 on a ceiling.
[0032] First, the operation receiving unit 31 of the control device 30 receives a start operation from a user to instruct the start of the first entry process (S11).
[0033] Based on the start operation accepted by the operation accepting unit 31, the control unit 34 displays an entry setting screen including a map image on the display unit 32 (S12). FIG. 3 is a diagram showing an example of a map image according to a first example of the present embodiment. The map image is, for example, a top view of an indoor space in which a plurality of lighting fixtures 20 are installed, and in the example of FIG. 3, the installation positions of the plurality of lighting fixtures 20 are indicated by circles. That is, the map image shows the installation positions of the plurality of lighting fixtures 20. The map image is stored in advance in the storage unit 35. Note that in the first example, the plurality of lighting fixtures 20 may be described as lighting fixtures 20a, 20b, 20c, 20d, and 20e in order to distinguish them from one another.
[0034] At the time of step S12, it is known how the multiple lighting fixtures 20 are arranged, but it is not known which lighting fixture 20 is located in which location. In other words, at the time of step S12, the installation positions of the lighting fixtures 20 have not been associated with the identification information of the lighting fixtures 20.
[0035] Here, each of the lighting devices 20 periodically transmits a beacon signal (also called an advertisement signal) before joining the mesh network. The beacon signal emitted by each of the lighting devices 20 includes identification information (such as a MAC address) of the lighting device 20.
[0036] The operation reception unit 31 receives a scan range setting operation and a scan start operation from the user (S13, S14). The scan range setting operation is an operation for changing a threshold value of received signal strength, which will be described later.
[0037] When the scan start operation is accepted, the control unit 34 performs a reception process to cause the wireless communication unit 33 to receive a beacon signal, which is an identification signal output from each of the multiple communication devices (multiple lighting fixtures 20) and identifies the communication device (multiple lighting fixtures 20). That is, the wireless communication unit 33 receives a beacon signal from each of the multiple lighting fixtures 20 (S15). For ease of explanation, it is assumed here that all of the multiple lighting fixtures 20 are located within a range where they can communicate with the wireless communication unit 33.
[0038] The control unit 34 measures the received signal strength of each of the beacon signals transmitted from lighting fixtures 20 that have not yet joined the mesh network among the received beacon signals, and the measured received signal strength of each of the plurality of beacon signals is stored in the storage unit 35 (S16). The control unit 34 selects, from the received beacon signals, beacon signals whose received signal strength is equal to or greater than a threshold, and only the received signal strength of each of the selected plurality of beacon signals is stored in the storage unit 35. In the first example, the received signal strength of the beacon signals transmitted from all five lighting fixtures 20a to 20e is stored in the storage unit 35.
[0039] The received signal strength here may be the maximum value of the received signal strength in a certain period of time, the average value of the received signal strength in a certain period of time, or the minimum value of the received signal strength in a certain period of time. The threshold value is changed by the setting operation of the scan range accepted in step S13 above, and the wider the scan range is set, the lower (smaller) the threshold value becomes.
[0040] Next, the control unit 34 displays, on the display unit 32, an icon of the lighting fixture 20 that is the source of the stored beacon signal (S17). The icon corresponds to (indicates) the identification information included in the beacon signal from the lighting fixture 20 that has not yet joined the mesh network and that was stored in step S16.
[0041] Next, the operation reception unit 31 receives an entry selection operation of the plurality of icons from the user (S18). The entry selection operation is, for example, a tap operation on one of the plurality of icons. The control unit 34 causes the wireless communication unit 33 to transmit a blinking command based on the entry selection operation received by the operation reception unit 31 (S19).
[0042] The blink command specifies identification information of the lighting fixture 20 corresponding to the selected icon. The blink command is a signal for selectively blinking a target lighting fixture 20, which is a lighting fixture 20 having the specified identification information, among the multiple lighting fixtures 20. When the target lighting fixture 20 among the multiple lighting fixtures 20 receives the blink command, it blinks (S20).
[0043] The user operating the control device 30 visually checks the actual installation position of the blinking target lighting fixture 20 (S21), and specifies the installation position of the blinking target lighting fixture 20 on the map image (for example, one of five installation positions). The operation reception unit 31 receives an operation to specify the installation position of the lighting fixture 20 in the map image from the user (S22). Then, the control unit 34 associates the identification information indicated by the icon selected in step S18 with the installation position specified in step S22, and stores them in the storage unit 35 (S23). In addition, the control unit 34 cancels the display of the icon for which the association has been completed (S24). That is, the number of icons displayed in step S17 is reduced by one.
[0044] The processes in steps S18 to S24 are repeated until all of the icons (identification information) displayed in step S17 have been associated with their installation positions.
[0045] [Second entry process] Next, the second entry process (also referred to as provisioning) will be described. Fig. 4 is a sequence diagram of the second entry process according to a first example of the present embodiment.
[0046] First, operation receiving unit 31 of control device 30 receives a start operation from a user to instruct the start of the second entry process (S31). The start operation includes an operation to specify identification information of lighting device 20. Control unit 34 communicates with lighting device 20 having identification information specified by the start operation by unicast, and causes wireless communication unit 33 to transmit setting information to that lighting device 20 (S32). Lighting device 20 receives the setting information and stores it in a storage unit (not shown) provided in lighting device 20 (S33).
[0047] The setting information is information for the lighting fixture 20 to join the mesh network. The setting information includes the network ID of the mesh network to which the lighting fixture 20 belongs, and address information (unicast address) of the lighting fixture 20 used for communication within the mesh network. The setting information may also include a security passcode, frequency channel information, information on the control device 30 (information on the device that manages the mesh network), and the like used for communication within the mesh network, as necessary. When the lighting fixture 20 is an upper node capable of communicating with lighting fixtures 20 that belong to another mesh network, the setting information may include information necessary for the lighting fixture 20 to function as an upper node.
[0048] The lighting fixture 20, whose setting information has been stored in the storage unit, can join the mesh network. The processes of steps S31 to S33 are repeated until all lighting fixtures 20 have joined the mesh network. The lighting fixture 20 that has joined the mesh network stops the periodic transmission of a beacon signal that was being performed before joining the mesh network.
[0049] The processes of steps S31 to S33 may be included in the first entry process (FIG. 2). For example, the processes of steps S31 to S33 may be performed on the target lighting device 20 after step S23 of the first entry process.
[0050] Furthermore, the processing of step S22 may be regarded as the processing of step S31. That is, the processing of steps S23 and S24 may be performed after the processing of step S22, so that the installation location of one lighting device 20 is associated with the identification information, and then the processing of steps S32 and S33 may be performed to perform provisioning for that one lighting device 20.
[0051] Fig. 5 is a diagram showing an example of a map image according to the first example of the present embodiment. More specifically, Fig. 5 is a map image after a plurality of lighting fixtures 20 have joined the mesh network. In Fig. 5, communication paths between the plurality of lighting fixtures 20 via the mesh network are indicated by dashed lines.
[0052] As a result of the first and second joining processes, as shown in Fig. 5, lighting devices 20a and 20b can communicate with each other via the mesh network, lighting devices 20a and 20c can communicate with each other via the mesh network, lighting devices 20c and 20d can communicate with each other via the mesh network, and lighting devices 20c and 20e can communicate with each other via the mesh network.
[0053] For example, when information is transmitted from lighting fixture 20a to lighting fixture 20d, the information is transmitted via the mesh network in the order of lighting fixture 20a, lighting fixture 20c, and lighting fixture 20d. That is, the information is transmitted from lighting fixture 20a to lighting fixture 20d via lighting fixture 20c. Note that if lighting fixture 20c leaves the mesh network, the information cannot be transmitted from lighting fixture 20a to lighting fixture 20d via the mesh network.
[0054] The above communication paths are stored in the storage unit 35.
[0055] In this way, the multiple lighting fixtures 20 join the mesh network through the first and second joining processes. However, after multiple communication devices (multiple lighting fixtures 20) are installed and used in the indoor space, it may become necessary to remove some or all of the multiple lighting fixtures 20 from the mesh network. In this case, an initialization process is performed to set the communication devices (lighting fixtures 20) to a state where they have not joined the mesh network.
[0056] [Initialization process] FIG. 6 is a sequence diagram of the initialization process according to the first example of the present embodiment.
[0057] First, the operation reception unit 31 of the control device 30 receives a start operation from a user to instruct the start of an initialization process (S41).
[0058] Based on the start operation accepted by the operation accepting unit 31, the control unit 34 displays an exit setting screen including a map image on the display unit 32 (S42). Fig. 7 is a diagram showing an example of a map image according to the first example of the present embodiment. The map image is the same as the map image included in the entry setting screen, and is, for example, a view from above of an indoor space in which multiple lighting fixtures 20 are installed.
[0059] Next, the operation receiving unit 31 receives from the user a withdrawal selection operation instructing which of the multiple lighting fixtures 20 to withdraw (S43). The withdrawal selection operation is, for example, a tap operation on any of the circles (icons) shown in FIG. 7. Here, the user performs an operation of tapping on a circle (icon) corresponding to one or more lighting fixtures 20 (more specifically, lighting fixtures 20c, 20d, and 20e) to withdraw from the mesh network among the multiple lighting fixtures 20. As a result, one or more lighting fixtures 20 (that is, lighting fixtures 20c, 20d, and 20e) to withdraw from the mesh network are selected. In the map image shown in FIG. 7, a dot is added to the circle (icon) tapped in the withdrawal selection operation.
[0060] Furthermore, operation receiving unit 31 receives from the user a communication selection operation to specify a communication device (lighting fixture 20) that will communicate with wireless communication unit 33 (S44). The communication selection operation is, for example, a tap operation on any of the circles (icons) shown in FIG. 7. In this example, the user taps on the circle (icon) that corresponds to lighting fixture 20a as the lighting fixture 20 that will communicate with wireless communication unit 33. This selects the lighting fixture 20 (i.e., lighting fixture 20a) that will communicate directly with wireless communication unit 33 (i.e., not via the mesh network).
[0061] Next, the control unit 34 determines a number for each of the plurality of communication devices according to the communication status of the plurality of communication devices. More specifically, the control unit 34 determines the number in descending order of received signal strength indicated in the communication status of the plurality of lighting devices 20 (S45).
[0062] Here, the communication state of the multiple lighting fixtures 20 indicates the received signal strength of each of the multiple identification signals (beacon signals) received by the wireless communication unit 33. In step S16 of the above-mentioned [first entry process], the received signal strength of each of the multiple identification signals (beacon signals) is stored in the memory unit 35. The control unit 34 determines the numbers for the multiple lighting fixtures 20 in order of strongest received signal strength based on the received signal strength of each of the stored multiple identification signals. For example, if the order of strongest received signal strength is lighting fixture 20a, lighting fixture 20b, lighting fixture 20c, lighting fixture 20d, and lighting fixture 20e, the numbers will be as follows. That is, the determined numbers are "1" for lighting fixture 20a, "2" for lighting fixture 20b, "3" for lighting fixture 20c, "4" for lighting fixture 20d, and "5" for lighting fixture 20e. The closer the distance between the control device 30 and a lighting fixture 20, the stronger the received signal strength of that lighting fixture 20. Therefore, the order of strongest received signal strength refers to the lighting fixtures 20 that are closest to the control device 30 at the time of step S15. The numbers determined in step S45 may be stored in memory 35. As shown in Fig. 7, the determined number is indicated on a circle (icon) corresponding to a lighting fixture 20.
[0063] Once the numbers have been determined in step S45, the control unit 34 determines the order in which the one or more lighting fixtures 20 selected in step S43 will be removed from the mesh network. Here, the control unit 34 determines the order in which the lighting fixtures 20 will be removed from the mesh network in descending order of the absolute value of the difference between the number determined for the lighting fixture 20 currently communicating with the wireless communication unit 33 among the multiple lighting fixtures 20 and the number determined for each of the one or more lighting fixtures 20 to be removed from the mesh network (S46).
[0064] Among the multiple communication devices, the lighting fixture 20 in communication with wireless communication unit 33 is the lighting fixture 20 indicated by the communication selection operation in step S44, specifically, lighting fixture 20a. That is, wireless communication unit 33 and wireless communication unit 21 of lighting fixture 20a communicate directly (that is, not via a mesh network). The number determined for this lighting fixture 20a is "1" as described above.
[0065] In step S46, control unit 34 determines the order in which lighting fixtures 20c to 20e selected in step S43 will leave the mesh network. Control unit 34 causes lighting fixtures 20c to 20e to leave the mesh network in order of the largest absolute value of the difference between the number "1" determined for lighting fixture 20a currently communicating with wireless communication unit 33 and the numbers determined for each of lighting fixtures 20c to 20e. In this example, the numbers determined for lighting fixtures 20c to 20e are "3," "4," and "5," respectively, so control unit 34 determines that the lighting fixtures will be removed from the mesh network in the order of lighting fixture 20e, lighting fixture 20d, and lighting fixture 20c.
[0066] The result is shown in Table 1. Table 1 shows the order of the lighting fixtures 20 that are to leave the mesh network, as determined in step S46.
[0067] [Table 1]
[0068] The control unit 34 causes the lighting devices 20c to 20e to leave the mesh network in the order determined in step S46. That is, the control unit 34 performs a leaving process that causes one or more communication devices (one or more lighting devices 20) to leave the mesh network.
[0069] The leaving process includes steps S47 and S48 shown in FIG.
[0070] Control unit 34 causes wireless communication unit 33 to transmit the separation information (S47), and lighting fixture 20 that receives the transmitted separation information separates from the mesh network (S48).
[0071] Here, the control unit 34 controls the wireless communication unit 33 as follows to cause the lighting fixtures 20c to 20e to leave the mesh network in order according to the order determined in step S46. The leaving information is information for causing a target lighting fixture 20 to leave the mesh network. The leaving information includes identification information for identifying the target lighting fixture 20, and when the target lighting fixture 20 receives the leaving information including the identification signal (i.e. its own identification signal), it leaves the mesh network.
[0072] Following the order determined in step S46, first in step S47, control unit 34 causes wireless communication unit 33 to transmit departure information indicating that the target lighting fixture 20 is lighting fixture 20e to wireless communication unit 21 of lighting fixture 20a with which it is in communication. Wireless communication unit 21 of lighting fixture 20a transmits the received departure information to lighting fixture 20e via the mesh network. As a result, the departure information is received by wireless communication unit 21 of lighting fixture 20e via the mesh network.
[0073] In step S48, when the departure information is received by wireless communication unit 21 of lighting device 20e, lighting device 20e leaves the mesh network.
[0074] Then, the processes of steps S47 and S48 are repeated until all of the lighting fixtures 20 selected in step S43 have left the mesh network.
[0075] That is, the wireless communication unit 33 transmits departure information indicating that the target lighting fixture 20 is lighting fixture 20d, and lighting fixture 20d leaves the mesh network. Furthermore, the wireless communication unit 33 transmits departure information indicating that the target lighting fixture 20 is lighting fixture 20c, and lighting fixture 20c leaves the mesh network. As a result, lighting fixture 20e, lighting fixture 20d, and lighting fixture 20c leave the mesh network in this order.
[0076] Here, a hypothetical case in which lighting devices 20c to 20e are removed in a different order will be described.
[0077] A case will be described in which control unit 34 removes lighting fixtures 20c to 20e in the order of, for example, lighting fixture 20c, lighting fixture 20d, and lighting fixture 20e without using numbers according to the communication states of multiple communication devices.
[0078] In this case, lighting fixture 20c leaves the mesh network first. As described above, when lighting fixture 20c leaves, it becomes impossible for the leaving information for leaving lighting fixture 20d from the mesh network to be transmitted from lighting fixture 20a to lighting fixture 20d via the mesh network. Similarly, as described above, when lighting fixture 20c leaves, it becomes impossible for the leaving information for leaving lighting fixture 20e from the mesh network to be transmitted from lighting fixture 20a to lighting fixture 20e via the mesh network. Therefore, it becomes difficult to leave lighting fixtures 20d and 20e.
[0079] However, in this embodiment, the control unit 34 causes the lighting fixtures 20c to 20e to leave the mesh network in the order determined in step S46. Specifically, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of the largest absolute value of the number difference between the one or more communication devices (lighting fixtures 20c to 20e) that are leaving the mesh network and the currently communicating communication device (lighting fixture 20a). In other words, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of the farthest from the currently communicating communication device among the one or more communication devices (lighting fixtures 20c to 20e). More specifically, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of the communication devices (lighting fixtures 20) that correspond to the nodes on the end side of the mesh network.
[0080] Therefore, unlike the case where the lighting devices 20c to 20e leave the mesh network in the other order described above, the leaving information for leaving the lighting device 20d from the mesh network is easily transmitted from the lighting device 20a to the lighting device 20d via the lighting device 20c. Similarly, the leaving information for leaving the lighting device 20e from the mesh network is easily transmitted from the lighting device 20a to the lighting device 20e via the lighting device 20c. Therefore, the lighting devices 20d and 20e can be easily removed from the mesh network. In other words, a control device 30 that reliably and easily removes a communication device (lighting device 20) from a mesh network is realized.
[0081] In the first example, all of the lighting devices 20c to 20e receive the leaving information and leave the mesh network, but the present invention is not limited to this. For example, a case will be described in which a lighting device 20 (e.g., lighting device 20c) that has received the leaving information cannot leave the mesh network due to some abnormality. That is, this case refers to a case in which, among one or more communication devices (here, lighting devices 20c to 20e) that have undergone the leaving process, there is a communication device (lighting device 20c) that continues to participate in the mesh network because it cannot receive the leaving information due to poor communication, for example.
[0082] In this case, the control unit 34 causes the wireless communication unit 33 to communicate directly (i.e., not through the mesh network) with the communication device (lighting device 20c) that continues to participate in the mesh network, and causes the continuing participating lighting device 20c to leave the mesh network. The control unit 34 interrupts communication between the wireless communication unit 33 and one of the lighting devices 20a that is communicating with the wireless communication unit 33, and causes the wireless communication unit 33 to communicate with the communication device (lighting device 20c) that continues to participate in the mesh network, not through the mesh network.
[0083] Next, control unit 34 causes wireless communication unit 33 to transmit the withdrawal information directly to wireless communication unit 21 of lighting device 20c with which the communication is in progress. This allows the communication device (lighting device 20c) that continues to participate in the mesh network to withdraw from the mesh network.
[0084] Such processing will be described.
[0085] FIG. 8A is a flowchart according to Modification 1 of the first example of the present embodiment.
[0086] The flowchart shown in FIG. 8A shows the process performed after step S47 in FIG.
[0087] After the process of step S47 is performed, the control unit 34 determines whether the wireless communication unit 33 has received departure response information from the lighting fixture 20 that received the departure information in step S47 (S49). The lighting fixture 20 that received the departure information in step S47 (i.e., the target lighting fixture 20) transmits departure response information to the wireless communication unit 33 after receiving the departure information including its own identification signal and before leaving the mesh network. The departure response information is information indicating that the target lighting fixture 20 will leave the mesh network. The departure response information is also information indicating that the target lighting fixture 20 has completed preparations to leave the mesh network.
[0088] When the wireless communication unit 33 receives the separation response information (Yes in S49), step S48 shown in FIG. 6 is performed.
[0089] Furthermore, if the wireless communication unit 33 does not receive the departure response information (No in S49), the control unit 34 determines that there is a lighting device 20 (e.g., lighting device 20c) that continues to participate in the mesh network. In this case, the control unit 34 causes the wireless communication unit 33 to directly communicate with the lighting device 20c, and causes the lighting device 20c that continues to participate to leave the mesh network (S50). More specifically, the control unit 34 causes the wireless communication unit 33 to directly transmit departure information to the wireless communication unit 21 of the lighting device 20c with which it is communicating, and causes the lighting device 20c to leave the mesh network.
[0090] Furthermore, processing different from the first modification of the first example shown in FIG. 8A will be described below as a second modification of the first example.
[0091] FIG. 8B is a flowchart according to the second modification of the first example of the present embodiment.
[0092] The flowchart shown in FIG. 8B shows the process performed after step S47 in FIG.
[0093] If the wireless communication unit 33 does not receive the leaving response information after the process of step S47 is performed (No in S49), the control unit 34 stops the process. Here, the case of No in step S49 means that the wireless communication unit 33 does not receive the leaving response information from the active communication device (e.g., any lighting device 20) that is one of the communication devices for which the leaving process is being performed. In this case, the control unit 34 stops the leaving process after the leaving process for the active communication device. More specifically, the control unit 34 stops the leaving process being performed for the active communication device and the leaving process for one or more communication devices other than the active communication device that should be performed after the leaving process being performed for the active communication device. For example, if the power supply of the lighting device 20 (active communication device) that received the leaving information in step S47 happens to be off, the lighting device 20 cannot transmit the leaving response information, and the wireless communication unit 33 does not receive the leaving response information (i.e., No in step S49). 8A is performed, the lighting fixture 20 will leave the mesh network, cutting off the path of the mesh network. As a result, after the lighting fixture 20 leaves the mesh network, it will be difficult for the control unit 34 to cause other lighting fixtures 20 to leave the mesh network in order, starting with the lighting fixtures 20 that correspond to the nodes at the end of the mesh network.
[0094] Therefore, if wireless communication unit 33 does not receive the withdrawal response information (No in S49), the process should be stopped (more specifically, temporarily stopped) and the process of step S47 should be performed again after a predetermined time, such as one hour, has elapsed or after lighting device 20 (active communication device) is powered on. This enables control device 30 to easily withdraw the communication device (lighting device 20) from the mesh network.
[0095] Moreover, when the wireless communication unit 33 receives the withdrawal response information (Yes in S49), step S48 shown in FIG. 6 is performed.
[0096] The departure response information used in Modification 1 and Modification 2 of the first example may also be used in the first example. In this case, in the first example, the departure response information from lighting devices 20d and 20e is transmitted to control device 30 via lighting device 20c, so that control device 30 can determine whether lighting devices 20d and 20e have normally left the mesh network.
[0097] In the first example, the numbers are determined in order of increasing received signal strength as indicated in the communication status in step S45, but the present invention is not limited to this.
[0098] For example, instead of step S45 in the first example, the following process may be performed.
[0099] FIG. 9 is a flowchart according to the third modification of the first example of the present embodiment.
[0100] The flowchart shown in FIG. 9 shows the process performed after step S44 in FIG.
[0101] Based on the communication path indicated by the communication state, the control unit 34 determines a number for each of the one or more communication devices (one or more lighting devices 20) to be removed from the mesh network in order of the communication distance between the wireless communication unit 33 and one communication device (lighting device 20a) that is currently communicating with the wireless communication unit 33 (S45a). Here, the communication state is the communication state of the multiple lighting devices 20 that have joined the mesh network, and indicates a path state that indicates the communication path of the mesh network between the multiple communication devices (multiple lighting devices 20). As an example, the communication path is a path that indicates which lighting device 20 and which other lighting device can communicate with each other via the mesh network, as indicated by the dashed line in FIG. 5. As described above, the communication path (i.e., the path state) is stored in the storage unit 35, and the control unit 34 performs the process of step S45a based on the stored path state.
[0102] The details of the process in step S45a are given below.
[0103] The control unit 34 determines the numbers for the lighting fixtures 20 in descending order of the communication path. In other words, the control unit 34 determines the numbers for the lighting fixtures 20 in ascending order of the number of hops from the communicating lighting fixture 20a. The number of hops is a value indicating how many nodes, including the destination, are passed through in a mesh network route, and the number of hops between adjacent nodes is "1". For example, the number of hops from the lighting fixture 20a of the lighting fixture 20b is "1". The number of hops from the lighting fixture 20a of the lighting fixture 20d and the number of hops from the lighting fixture 20a of the lighting fixture 20e are "2". When the number of hops is the same, the numbers for the lighting fixtures 20 may be determined according to the first rule. As an example, the first rule is a rule that, when the number of hops is the same, the numbers for the lighting fixtures 20 in ascending order of the distance from the communicating lighting fixture 20a to the lighting fixture 20a are determined, but is not limited to this.
[0104] When the process of step S45a is completed, the processes of steps S46 to S48 are carried out.
[0105] Even in this case, as shown in the first example above, the control unit 34 causes the one or more communication devices (lighting devices 20c to 20e) to leave the mesh network in the order of removal, starting with the lighting device 20 located farthest from the communication device (lighting device 20a) currently communicating with the wireless communication unit 33. In other words, the control unit 34 causes the communication devices (lighting devices 20) corresponding to the nodes on the distal end side of the mesh network to leave the mesh network in that order. In other words, a control device 30 is realized that makes it easy for communication devices (lighting devices 20) to leave the mesh network.
[0106] <Second Example> The second example will now be described. Below, the differences from the first example will be mainly described, and explanations of commonalities will be omitted or simplified.
[0107] In step S15 of the first example, the wireless communication unit 33 receives beacon signals from all of the plurality of lighting devices 20, that is, all five lighting devices 20a to 20e. In other words, the wireless communication unit 33 receives beacon signals from all of the plurality of lighting devices 20 in one scan, but this is not limited to the above. In the second example, a case will be described in which there are a large number of lighting devices 20 and it is difficult for the wireless communication unit 33 to receive beacon signals from all of the lighting devices 20 in one scan.
[0108] [First entry process] FIG. 10 is a sequence diagram of the first entry process according to the second example of the present embodiment.
[0109] In the second example, like the first example, the processes of steps S11 and S12 are performed first.
[0110] Moreover, the map image included in the entry setting screen displayed on display unit 32 in step S12 is as shown in Fig. 11. Fig. 11 is a diagram showing an example of a map image according to a second example of the present embodiment. The map image is, for example, a top view of an indoor space in which multiple lighting fixtures 20 are installed. In the example of Fig. 11, the installation positions of multiple lighting fixtures 20 are indicated by circles. As shown in Fig. 11, in the second example, the number of lighting fixtures 20 is 48.
[0111] Next, steps S13 and S14 are performed. Since there are a large number of lighting fixtures 20 as described above, in step S13, operation receiving unit 31 receives an operation for setting the scan range so that, for example, a dozen or so lighting fixtures 20 are scanned. Note that the number of lighting fixtures 20 scanned at one time is not limited to the above and may be 1 to 100.
[0112] Furthermore, the control unit 34 performs the process of step S15, that is, the reception process. Fig. 12 is a map image showing the first scan range according to the second example of the present embodiment. As shown in Fig. 12, the wireless communication unit 33 receives beacon signals from a plurality of lighting fixtures 20 (12 lighting fixtures 20) installed within the scan range set by the scan range setting operation in step S13. In other words, the wireless communication unit 33 receives beacon signals from at least some of the 48 lighting fixtures 20 (12 lighting fixtures 20).
[0113] Next, the processes of steps S16 to S24 are performed. As a result, for example, the installation position of one lighting fixture 20 is associated with the identification information of that one lighting fixture 20. Furthermore, the processes of steps S18 to S24 are repeated until all icons (identification information) displayed in step S17 have been associated with their installation positions. As a result, the installation positions and identification information are associated for all of the lighting fixtures 20 (12 lighting fixtures 20) installed within the scan range set by the scan range setting operation in step S13.
[0114] Furthermore, in the second example, the process of step S45 is performed. That is, control unit 34 assigns numbers to the multiple lighting devices 20 in order of the strongest received signal strength, which is indicated in the communication status of the multiple lighting devices 20. As a result, "1" to "12" are assigned as numbers for the 12 lighting devices 20, as shown in FIG. 12. The assigned numbers may be stored in storage unit 35.
[0115] Then, because beacon signals from all lighting fixtures 20 could not be received in step S15, the user carrying control device 30 moves to another location, and the processes of steps S13 to S24 and step S45 are performed again.
[0116] FIG. 13 is a map image showing the second scan range in the second example of this embodiment, and FIG. 14 is a map image showing the third scan range in the second example of this embodiment.
[0117] By performing the processes of steps S13 to S24 and step S45 multiple times, the installation position and identification information are associated with each of the lighting fixtures 20 desired by the user (40 lighting fixtures 20 in this example), and a number is also determined.
[0118] For simplicity, hereinafter, the lighting fixture 20 numbered "3" may be referred to as lighting fixture 20("3"), and the lighting fixture 20 numbered "4" may be referred to as lighting fixture 20("4"). As shown in FIG. 13 , the second scan range includes lighting fixture 20("3") and lighting fixture 20("4"). For this reason, in step S15 for the second scan, the beacon signals transmitted from lighting fixture 20("3") and lighting fixture 20("4") are received by wireless communication unit 33. However, since the numbers for lighting fixture 20("3") and lighting fixture 20("4") have been determined in step S45 for the first scan, the numbers will not be determined again in step S45 for the second scan.
[0119] In the second processing of step S45, the numbers should be determined so as to be a continuation of the numbers determined in the first processing of step S45. In other words, since the numbers up to "12" were determined in the first processing of step S45, the numbers "13" and onward should be determined in the second processing of step S45. The same applies to the third processing of step S45.
[0120] 10 to 14, the control unit 34 performs step S15, i.e., the reception process, multiple times to sequentially allow multiple communication devices (multiple lighting devices 20) to join the mesh network. In this second example, if the wireless communication unit 33 does not receive an identification signal in the nth (n is an integer equal to or greater than 2)th reception process from a communication device (lighting device 20) from which the wireless communication unit 33 received an identification signal in the (n-1)th or earlier reception process, the control unit 34 may perform the following process. In this case, the control unit 34 stops the process of sequentially allowing multiple communication devices (multiple lighting devices 20) to join the mesh network.
[0121] For example, the case where n is 2 will be described below.
[0122] FIG. 15 is a flowchart for explaining the first entry processing according to the second example of the present embodiment in more detail.
[0123] In the second reception process, i.e., the second processing of step S15, the control unit 34 determines whether the wireless communication unit 33 has received an identification signal from the lighting device 20 from which an identification signal was received by the wireless communication unit 33 in the first reception process (S15a).
[0124] Lighting device 20("3") corresponds to lighting device 20 from which an identification signal was received by wireless communication unit 33 in the (n-1)th or earlier (more specifically, the first) reception process. Therefore, when wireless communication unit 33 receives an identification signal from, for example, lighting device 20("3") in the second reception process, control unit 34 determines Yes in step S15a.
[0125] If the control unit 34 determines that the result of step S15a is Yes, the control unit 34 performs the process of step S16.
[0126] Also, for example, in the second reception process, the control unit 34 determines No in step S15a if the wireless communication unit 33 does not receive an identification signal from a lighting device 20 (e.g., lighting device 20 ("3")) from which an identification signal was received by the wireless communication unit 33 in the first reception process. If the control unit determines No in step S15a, it cancels the process of having multiple lighting devices 20 join the mesh network in sequence. In other words, the processes from step S16 onwards are not performed.
[0127] If the process of sequentially having multiple lighting devices 20 join the mesh network is stopped, for example, the user holding the control device 30 may move to another location, and then the processes of steps S13 to S24 and step S45 may be performed again.
[0128] By performing this process, if the scan range before the n-1th scan does not overlap with the nth scan range, the first participation process is stopped. In other words, this process prevents the occurrence of a lighting device 20 that is unable to communicate in the mesh network despite the first participation process having been performed. If there is a lighting device 20 that is unable to communicate in the mesh network despite the first participation process having been performed, it is necessary to perform the mesh network participation process again. Therefore, this process makes it possible to efficiently allow multiple lighting devices 20 (i.e. multiple communication devices) to participate in the mesh network.
[0129] [Second entry process] Further, the second entry process is performed, which will be described with reference to FIG.
[0130] The process of steps S31 to S33 is performed as shown in the first example. Here, the process of steps S31 to S33 is performed on all of the 40 lighting devices 20 that have undergone the first joining process, so that the 40 lighting devices 20 join the mesh network.
[0131] [Initialization process] Furthermore, an initialization process is carried out.
[0132] FIG. 16 is a sequence diagram of the initialization process according to the second example of the present embodiment.
[0133] As shown in the first example, the processes of steps S41 to S44 are performed. The map image included in the departure setting screen displayed on the display unit 32 in step S42 is as shown in Fig. 17. Fig. 17 is a diagram showing an example of a map image according to the second example of the present embodiment. The map image is, like the map image shown in Fig. 7 according to the first example, for example, a view from above of an indoor space in which a plurality of lighting fixtures 20 are installed.
[0134] For example, in step S43, the operation receiving unit 31 receives a withdrawal selection operation instructing that 32 lighting fixtures 20 numbered "3" to "4," "9" to "10," and "13" to "40" be withdrawn from among the multiple lighting fixtures 20. In the map image shown in FIG. 17, a dot is added to the circle (icon) tapped in the withdrawal selection operation in step S43. In addition, in step S44, the operation receiving unit 31 receives a communication selection operation instructing the lighting fixture 20 numbered "6" as the lighting fixture 20 that will communicate with the wireless communication unit 33.
[0135] In the second example, the process of step S45 is not performed here because it is performed during the first entry process.
[0136] Then, the processes of steps S46 to S48 are performed. Control unit 34 causes the lighting fixtures 20 to leave the mesh network in order of the largest absolute value of the difference between "6", which is the number assigned to the lighting fixture 20 in communication with wireless communication unit 33, and the numbers assigned to each of the 32 lighting fixtures 20 to leave. For example, lighting fixture 20 numbered "40" is the first to leave the mesh network, and lighting fixture 20 numbered "39" is the second to leave the mesh network.
[0137] For example, a lighting fixture 20 having a determined number of "3" and a lighting fixture 20 having a determined number of "9" have the same absolute value difference between the number determined for the lighting fixture currently communicating with the wireless communication unit 33, which is "3". When the absolute value differences between the two lighting fixtures 20 are the same in this way, in step S46, the control unit 34 may determine an order in which the one or more lighting fixtures 20 selected in step S43 are to be removed from the mesh network in accordance with the second rule. The second rule may be, but is not limited to, a rule that, when the absolute value differences between the two lighting fixtures 20 are the same, the lighting fixtures 20 are removed from the mesh network in the order of the lighting fixture 20 located farthest from the lighting fixture 20 currently communicating with the wireless communication unit 33.
[0138] As described above, in the second example as well, as in the first example, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of distance from the lighting fixture 20 that is in communication with the wireless communication unit 33. Therefore, as shown in the second example, a control device 30 is realized that makes it easy to cause a communication device (lighting fixture 20) to leave the mesh network even when there are a large number of lighting fixtures 20.
[0139] <Example 3> Next, a third example will be described. Below, differences from the second example will be mainly described, and explanations of commonalities will be omitted or simplified.
[0140] In the third example, as in the second example, there are a large number of lighting devices 20, and it is difficult for wireless communication unit 33 to receive beacon signals from all of the lighting devices 20 in one scan.
[0141] [First entry process] Description will be given with reference to FIG.
[0142] In the third example, like the second example, the processes of steps S11 and S12 are performed first.
[0143] Moreover, the map image included in the entry setting screen displayed on the display unit 32 in step S12 is as shown in Fig. 18. Fig. 18 is a diagram showing an example of a map image according to a third example of the present embodiment. The map image is, for example, a top view of an indoor space in which a plurality of lighting fixtures 20 are installed. In the example of Fig. 18, the installation positions of the plurality of lighting fixtures 20 are indicated by circles. As shown in Fig. 18, in the third example, the number of lighting fixtures 20 is 52. Of the 52 lighting fixtures shown in Fig. 18, seven lighting fixtures 20 are referred to as lighting fixtures 20g, 20h, 20j, 20k, 20m, 20n, and 20p for identification purposes.
[0144] Next, the processes of steps S13 and S14 are performed. Since there are a large number of lighting fixtures 20 as described above, in step S13, operation receiving unit 31 receives an operation for setting the scan range so that, for example, a dozen or so lighting fixtures 20 are scanned.
[0145] Furthermore, the control unit 34 performs the process of step S15, that is, the reception process. As shown in Fig. 18, the wireless communication unit 33 receives beacon signals from a plurality of lighting fixtures 20 (12 lighting fixtures 20) installed within the scan range (first scan range) set by the scan range setting operation in step S13.
[0146] Next, the processes of steps S16 to S24 are performed. As a result, for example, the installation position of one lighting fixture 20 is associated with the identification information of that one lighting fixture 20. Furthermore, the processes of steps S18 to S24 are repeated until all icons (identification information) displayed in step S17 have been associated with their installation positions. As a result, the installation positions and identification information are associated for all of the lighting fixtures 20 (12 lighting fixtures 20) installed within the scan range set by the scan range setting operation in step S13.
[0147] Furthermore, in the third example, the process of step S45 is performed. That is, control unit 34 assigns numbers to the multiple lighting devices 20 in order of the strongest received signal strength, which is indicated in the communication status of the multiple lighting devices 20. As a result, "1" to "12" are assigned as numbers to the 12 lighting devices 20, as shown in FIG. 18. The assigned numbers may be stored in storage unit 35.
[0148] Then, as in the second example, because beacon signals from all lighting fixtures 20 could not be received in step S15, the user carrying control device 30 moves to another location, and steps S13 to S24 and step S45 are performed again.
[0149] 18 shows the second and third scan ranges, that is, the second and third reception processes are performed. As a result, "13" to "40" are determined as the numbers for the 28 lighting fixtures 20 installed within the second and third scan ranges.
[0150] Furthermore, in the third example, the following process is performed to associate the installation positions of each of the four lighting devices 20g to 20k with the identification information. That is, first, the processes of steps S13 and S14 are performed, and then the process of step S15 is performed a fourth time, that is, the fourth reception process is performed.
[0151] In this fourth reception process, wireless communication unit 33 receives a beacon signal (identification signal) from each of the seven lighting devices 20g to 20p. Also, lighting device 20n numbered "5" is assumed to be the lighting device 20 that output the identification signal with the strongest received signal strength among lighting devices 20n, 20m, and 20p numbered "5," "10," and "11."
[0152] Here, among one or more communication devices that have output an identification signal in the nth (here, the fourth) reception process, a communication device from which an identification signal is received for the first time by wireless communication unit 33 in the nth reception process is defined as a new communication device. Furthermore, among one or more communication devices that have output an identification signal in the nth (here, the fourth) reception process, a communication device that satisfies the following first and second conditions is defined as a communication device that has already received the signal.
[0153] A communication device that satisfies the first condition is a communication device from among one or more communication devices that have output an identification signal in the nth reception process, the communication device from which the identification signal has already been received by the wireless communication unit 33 in the n-1th (here, the third) reception process or earlier.
[0154] A communication device that satisfies the second condition is a communication device that outputs an identification signal with the strongest received signal strength in the nth reception process among one or more communication devices that output an identification signal in the nth reception process. More specifically, a communication device that satisfies the second condition is a communication device that outputs an identification signal with the strongest received signal strength in the nth reception process, excluding the new communication device.
[0155] That is, each of the four lighting fixtures 20g to 20k corresponds to a new communication device. Also, lighting fixture 20n, which is numbered "5", corresponds to a received communication device.
[0156] Furthermore, in the third example, the process of step S45 is performed. That is, the control unit 34 assigns numbers to the multiple lighting devices 20 in order of the strongest received signal strength indicated in the communication status of the multiple lighting devices 20. Here, "41", "42", "43" and "44" are assigned as the numbers for the four lighting devices 20g to 20k, respectively. The assigned numbers may be stored in the storage unit 35.
[0157] In the third example, the control unit 34 determines whether the difference between the numbers of the new communicating devices (the four lighting devices 20g to 20k) and the previously communicating device (lighting device 20n) is greater than a predetermined threshold. As an example, the predetermined threshold may be the number of communication devices from which the wireless communication unit 33 can receive a beacon signal in one processing (reception processing) of step S15, but is not limited to this. For example, the predetermined threshold may be a numerical value (threshold value) indicated in an operation accepted by the operation accepting unit 31 from the user, and may be a numerical value such as 10, 20, or 30.
[0158] Here, the control unit 34 determines that the difference between the number "41" of the lighting fixture 20g and the number "5" of the lighting fixture 20n (i.e., 36) is greater than a predetermined value. In this case, the number "41" of the lighting fixture 20g is stored in the storage unit 35 so as to be linked to the number "5" of the lighting fixture 20n. In other words, when the difference between the number of the new communication device (lighting fixture 20g) and the number of the received communication device (lighting fixture 20n) is greater than a predetermined threshold, the number of the new communication device and the number of the received communication device are linked and stored in the storage unit 35. In the third example, it is determined that the difference between the numbers "41" to "43" of the three lighting fixtures 20h to 20k and the number "5" of the lighting fixture 20n is greater than a predetermined value, and the same process is performed.
[0159] In the fourth example, among the four lighting fixtures 20g to 20k, there is a "gap" in the numbers (numbers are far apart) between adjacent lighting fixtures 20 (for example, lighting fixtures 20m, 20n, and 20p). When there is such a "gap" in the numbers, the above process is performed. Note that when the difference in the numbers between the new communicating devices (the four lighting fixtures 20g to 20k) and the previously communicating device (lighting fixture 20n) is equal to or less than a predetermined threshold, the above process is not performed.
[0160] As described above, by performing the processes of steps S13 to S24 and step S45 multiple times, the installation position and identification information are associated with each of the lighting fixtures 20 desired by the user (44 lighting fixtures 20 in this case), and a number is also determined.
[0161] [Second entry process] Further, the second entry process is performed, which will be described with reference to FIG.
[0162] The process of steps S31 to S33 is performed as shown in the second example. Here, the process of steps S31 to S33 is performed on all of the 44 lighting devices 20 that have undergone the first joining process, so that the 44 lighting devices 20 join the mesh network.
[0163] [Initialization process] Furthermore, an initialization process is performed, which will be described with reference to FIG.
[0164] As shown in the second example, the processes of steps S41 to S44 are performed. The map image included in the departure setting screen displayed on the display unit 32 in step S42 is as shown in Fig. 19. Fig. 19 is a diagram showing an example of a map image according to the third example of the present embodiment. The map image is, like the map image shown in Fig. 17 according to the second example, for example, a view from above of an indoor space in which a plurality of lighting fixtures 20 are installed.
[0165] In step S43, operation receiving unit 31 accepts a withdrawal selection operation instructing that 13 lighting fixtures 20, numbered "1," "3," "6," "10," "11," "26," "28," "30," "33," "34," "39," "42," and "44," be withdrawn from the multiple lighting fixtures 20. In addition, in step S44, operation receiving unit 31 accepts a communication selection operation instructing lighting fixture 20j, numbered "43," as the lighting fixture 20 that will communicate with wireless communication unit 33.
[0166] Then, the processes of steps S46 to S48 are performed. The control unit 34 causes the lighting fixtures 20 to leave the mesh network in order of the largest absolute value of the difference between the number determined for the lighting fixture 20j in communication with the wireless communication unit 33 and the numbers determined for each of the 13 lighting fixtures 20 to be left.
[0167] Here, in the third example, the number determined for lighting fixture 20j communicating with wireless communication unit 33 is either the number "43" determined by control unit 34, or the number "5" stored in association with number "43".
[0168] This will be described in more detail with reference to Fig. 20, which is a flowchart illustrating step S46 according to the third example of the present embodiment in more detail.
[0169] The control unit 34 determines whether the number "5" associated with the number "43" of the lighting fixture 20j that is communicating with the wireless communication unit 33 is the same as the number associated with the number determined for the lighting fixture 20 to be removed (S46a).
[0170] If the answer is Yes in step S46a, control unit 34 determines (S46b) to use the number determined by control unit 34 in step S45 as the number determined for lighting fixture 20j in communication with wireless communication unit 33. In other words, when the communication devices that are leaving are lighting fixtures 20h and 20k, the number "43" is used as the number determined for lighting fixture 20j.
[0171] If the answer is No in step S46a, the control unit 34 determines to use the number "5" stored in association with the number "43" as the number determined for the lighting fixture 20j in communication with the wireless communication unit 33 (S46c). In other words, if the communication device to be disconnected is not the lighting fixture 20h or 20k, the number "5" stored in association with the number "43" is used as the number determined for the lighting fixture 20j in communication with the wireless communication unit 33. In other words, the control unit 34 uses the number determined for the receiving communication device (lighting fixture 20n) as the number determined for one communication device (lighting fixture 20j) in communication with the wireless communication unit 33.
[0172] Then, the control unit 34 determines which lighting fixtures 20 to remove from the mesh network in descending order of the absolute value of the difference between the number determined for lighting fixture 20j that is communicating with the wireless communication unit 33 among the multiple lighting fixtures 20 and the numbers determined for each of the one or more lighting fixtures 20 to be removed from the mesh network (S46d). As shown in step S46b, when the communication devices to be removed are lighting fixtures 20h and 20k, the number "43" is used as the number determined for lighting fixture 20j. Also, as shown in step S46c, when the communication devices to be removed are not lighting fixtures 20h and 20k, the number "5" that is associated with the number "43" and stored is used as the number determined for lighting fixture 20j.
[0173] The results are shown in Table 2.
[0174] [Table 2]
[0175] Table 2 shows the order in which the lighting fixtures 20 are to leave the mesh network determined in step S46.
[0176] As shown in Table 2, the control unit 34 calculates that the absolute value of the difference between the number of lighting fixture 20j and the numbers of lighting fixtures 20h and 20k, "42" and "44," is "1" and "1." The control unit 34 also calculates that the absolute value of the difference between the number of lighting fixture 20j and the number of lighting fixture 20m, "10," is "5." The control unit 34 similarly calculates the absolute values of the differences for the 13 lighting fixtures 20 whose numbers are "1," "3," "6," "11," "26," "28," "30," "33," "34," and "39."
[0177] As a result, as shown in Table 2, the controller 34 first removes the lighting fixture 20 numbered "39" from the mesh network. The controller 34 sequentially removes the lighting fixtures 20 from the mesh network, and finally removes the lighting fixture 20k numbered "44" from the mesh network. Note that the second rule described above may be used here.
[0178] Thus, in the third example, even if a "gap" in the numbers occurs, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of the lighting fixtures 20 that are located farthest from the lighting fixture 20 currently communicating with the wireless communication unit 33, among the one or more lighting fixtures 20 that leave the mesh network. Therefore, as shown in the third example, a control device 30 is realized that makes it easy to cause a communication device (lighting fixture 20) to leave the mesh network, even if a "gap" in the numbers occurs.
[0179] <Example 4> Further, a fourth example will be described. Below, differences from the first to third examples will be mainly described, and explanations of commonalities will be omitted or simplified.
[0180] In the second and third examples, the numbers for the lighting fixtures 20 are incremented consecutively each time the processing of steps S13 to S24 and step S45 is performed, but this is not limited to the above.
[0181] In the fourth example, the numbers used in the first to third examples will be described as first numbers.
[0182] [First entry process] FIG. 21 is a sequence diagram of the first entry process according to the fourth example of the present embodiment.
[0183] In the fourth example, like the second and third examples, the processes of steps S11 and S12 are first performed.
[0184] Moreover, the map image included in the entry setting screen displayed on display unit 32 in step S12 is as shown in Fig. 22. Fig. 22 is a diagram showing an example of a map image according to a fourth example of the present embodiment. The map image is, for example, a top view of an indoor space in which multiple lighting fixtures 20 are installed. In the example of Fig. 22, the installation positions of multiple lighting fixtures 20 are indicated by circles. As shown in Fig. 22, in the fourth example, the number of lighting fixtures 20 is 48.
[0185] Next, the processes of steps S13 and S14 are performed. Since there are a large number of lighting fixtures 20 as described above, in step S13, operation receiving unit 31 receives an operation for setting the scan range so that, for example, a dozen or so lighting fixtures 20 are scanned.
[0186] Then, the control unit 34 performs the process of step S15 for the first time, that is, the first reception process. As shown in Fig. 22, the wireless communication unit 33 receives beacon signals from a plurality of lighting devices 20 (14 lighting devices 20) installed within the scan range (first scan range) set by the scan range setting operation in step S13.
[0187] Next, the processes of steps S16 to S24 are performed. As a result, for example, the installation position of one lighting fixture 20 is associated with the identification information of that one lighting fixture 20. Furthermore, the processes of steps S18 to S24 are repeated until all icons (identification information) displayed in step S17 have been associated with their installation positions. As a result, the installation positions and identification information are associated for all of the lighting fixtures 20 (14 lighting fixtures 20) installed within the scan range set by the scan range setting operation in step S13.
[0188] Then, in the fourth example, the control unit 34 determines a second number for each of the multiple lighting devices 20 depending on the number of times the reception process is performed, and determines a first number for each of the multiple lighting devices 20 in order of strongest received signal strength as indicated in the communication status of the multiple lighting devices 20 (S45b).
[0189] That is, the control unit 34 determines a second number and a first number for one lighting fixture 20.
[0190] The control unit 34 determines the second number for one lighting device 20 depending on the number of times of reception processing, more specifically, the number of times of reception processing in which a beacon signal from that one lighting device 20 has been received is determined as the second number of that one lighting device 20. For example, the control unit 34 determines that the second number for each of the 14 lighting devices 20 installed within the first scan range set by the scan range setting operation in step S13 is "1."
[0191] Furthermore, as shown in the first to third examples, control unit 34 determines first numbers for each of multiple lighting devices 20 in descending order of received signal strength indicated in the communication status of multiple lighting devices 20.
[0192] 22, the determined second numbers and first numbers are shown as "second number-first number" in circles (icons) corresponding to lighting fixtures 20. That is, "1-1" to "1-14" are determined as the second numbers and first numbers of the 14 lighting fixtures 20, as shown in FIG. 22. The determined numbers may be stored in storage unit 35.
[0193] By performing the processes of steps S13 to S24 and step S45 multiple times, the installation position and identification information are associated with each of the lighting fixtures 20 desired by the user (40 lighting fixtures 20 in this example), and a number is also determined.
[0194] Then, as in the third example, because beacon signals from all lighting fixtures 20 could not be received in step S15, the user carrying control device 30 moves to another location, and the processes of steps S13 to S24 and step S45 are performed again.
[0195] 22 shows the second and third scan ranges, that is, the second and third reception processes are performed. As a result, "2-1" to "2-10" are determined as the second numbers and first numbers for the 10 lighting fixtures 20 installed within the second scan range. Furthermore, "3-1" to "3-16" are determined as the second numbers and first numbers for the 16 lighting fixtures 20 installed within the third scan range.
[0196] In the second processing of step S45, the first number is not determined so as to be a continuation of the first number determined in the first processing of step S45. In other words, in the first processing of step S45, the first numbers from "1" to "14" were determined, but in the second processing of step S45, the first number after "1" may be determined again. The same applies to the third processing of step S45.
[0197] [Second entry process] Further, the second entry process is performed, which will be described with reference to FIG.
[0198] The process of steps S31 to S33 is performed as shown in the third example. Here, the process of steps S31 to S33 is performed on all of the 40 lighting devices 20 that have undergone the first joining process, so that the 40 lighting devices 20 join the mesh network.
[0199] [Initialization process] Furthermore, an initialization process is carried out.
[0200] FIG. 23 is a sequence diagram of the initialization process according to the fourth example of the present embodiment.
[0201] As shown in the third example, the processes of steps S41 to S44 are performed. The map image included in the departure setting screen displayed on the display unit 32 in step S42 is as shown in Fig. 24. Fig. 24 is a diagram showing an example of a map image according to the fourth example of the present embodiment. The map image is, for example, a view from above of an indoor space in which a plurality of lighting fixtures 20 are installed, similar to the map image shown in Fig. 19 according to the third example.
[0202] For example, in step S43, the operation receiving unit 31 receives a departure selection operation instructing that 32 lighting fixtures 20, whose second numbers and first numbers are "1-3" to "1-4," "1-9" to "1-10," "1-13" to "1-14," "2-1" to "2-10," and "3-1" to "3-16," among the plurality of lighting fixtures 20, are to leave. In the map image shown in FIG. 24, a dot is added to the circle (icon) tapped in the departure selection operation in step S43. In addition, in step S44, the operation receiving unit 31 receives a communication selection operation instructing the lighting fixture 20 numbered "1-6" (hereinafter may be referred to as lighting fixture 20 ("1-6")) as the lighting fixture 20 that communicates with the wireless communication unit 33.
[0203] The control unit 34 determines the order in which the one or more lighting devices 20 selected in step S43 are to be removed from the mesh network. Here, the control unit 34 determines the order in which the one or more lighting devices 20 are to be removed from the mesh network in the order in which the one or more lighting devices 20 satisfy the first condition and the second condition (S46f).
[0204] The order in which the first condition is satisfied is the order in which the absolute value of the difference between the second number determined for a lighting fixture 20 among the multiple lighting fixtures 20 in communication with the wireless communication unit 33 and the second number determined for each of the one or more lighting fixtures 20 that are leaving the mesh network is largest. Note that, among the multiple lighting fixtures 20, the lighting fixture 20 in communication with the wireless communication unit 33 is lighting fixture 20 ("1-6"). In other words, the second number determined for the communicating lighting fixture 20 is "1".
[0205] The one or more lighting fixtures 20 to be removed from the mesh network include 16 lighting fixtures 20 whose second numbers are "3", 10 lighting fixtures 20 whose second numbers are "2", and 4 lighting fixtures 20 whose second numbers are "1". In accordance with the first condition, the control unit 34 causes the 16 lighting fixtures 20 whose second numbers are "3", the 10 lighting fixtures 20 whose second numbers are "2", and the 4 lighting fixtures 20 whose second numbers are "1" to be removed from the mesh network in this order.
[0206] Furthermore, the order in which the second condition is satisfied is the order of increasing first numbers determined for each of the one or more lighting fixtures 20 to be removed from the mesh network. For example, when removing 16 lighting fixtures 20 each having a second number of "3" from the mesh network, the control unit 34 removes the 16 lighting fixtures 20 each having a second number of "3" from the mesh network in the order of increasing first numbers in accordance with the second condition.
[0207] Therefore, in step S46f, the control unit 34 determines to remove the plurality of lighting devices 20 from the mesh network in the following order. That is, it is determined that the lighting devices 20 whose determined numbers are "3-16", "3-15", "3-14", "3-13", "3-12", "3-11", "3-10", "3-9", "3-8", "3-7", "3-6", "3-5", "3-4", "3-3", "3-2", and "3-1" are to be removed from the mesh network in this order. Next, it is determined that the lighting devices 20 whose determined numbers are "2-10", "2-9", "2-8", "2-7", "2-6", "2-5", "2-4", "2-3", "2-2", and "2-1" are to be removed from the mesh network in this order. Furthermore, it is determined that the lighting devices 20 whose determined numbers are "1-14", "1-13", "1-10", "1-9", "1-4", and "1-3" are to be removed from the mesh network in this order.
[0208] Then, the processes of steps S47 and S48 are performed. As a result, one or more lighting fixtures 20 leave the mesh network in the order determined in step S46f.
[0209] As described above, also in the fourth example, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of distance from the lighting fixture 20 that is located farthest from the lighting fixture 20 currently communicating with the wireless communication unit 33. Therefore, as shown in the fourth example, a control device 30 is realized that makes it easy to cause a communication device (lighting fixture 20) to leave the mesh network even when there are a large number of lighting fixtures 20.
[0210] In the fourth example, since both the second number and the first number are used, the numerical value of the number is prevented from becoming large. That is, the control device 30 is realized that can assist in facilitating the management of the second number and the first number by the user.
[0211] [Effects, etc.] Invention 1 is a control device 30 comprising a control unit 34 that determines a number for each of a plurality of communication devices (lighting fixtures 20) depending on the communication state of the plurality of communication devices, and a communication unit (wireless communication unit 33) that communicates with the plurality of communication devices, wherein the plurality of communication devices join a mesh network, and when one or more of the plurality of communication devices are to be removed from the mesh network, the control unit 34 performs a removal process to remove one or more communication devices from the mesh network in order of the largest absolute value of the difference between the number determined for one communication device (e.g., lighting fixture 20a) that is communicating with the communication unit (wireless communication unit 33) among the plurality of communication devices, and the numbers determined for each of the one or more communication devices.
[0212] In addition, in the invention 1, in order to allow multiple communication devices (lighting fixtures 20) to join the mesh network, the control unit 34 performs a receiving process to have the communication unit (wireless communication unit 33) receive an identification signal that identifies the communication device output from each of the multiple communication devices, and the communication status indicates the received signal strength of each of the multiple identification signals received by the communication unit (wireless communication unit 33), and the control unit 34 may determine the number in order of the strongest received signal strength indicated in the communication status.
[0213] In addition, in the invention 1, the communication state indicates a path state showing the communication path of the mesh network between multiple communication devices (lighting devices 20), and the control unit 34 may determine a number based on the communication path shown in the communication state in order of the longest communication distance between the communication unit (wireless communication unit 33) and one of the communication devices currently communicating.
[0214] As a result, as shown in the first example, the control unit 34 causes the lighting fixtures 20 to leave the mesh network in the order of the one or more communication devices (lighting fixtures 20c to 20e) that are leaving the mesh network, starting with the lighting fixture 20 located farthest from the communication device (lighting fixture 20a) that is communicating with the wireless communication unit 33. In other words, the control unit 34 causes the communication devices (lighting fixtures 20) that correspond to the nodes on the distal end side of the mesh network to leave the mesh network in that order. This makes it possible to easily leave, for example, lighting fixtures 20d and 20e from the mesh network. In other words, a control device 30 that makes it easy to leave communication devices (lighting fixtures 20) from the mesh network is realized.
[0215] Invention 2 is a control device 30 of Invention 1 in which the control unit 34 performs a receiving process to have the communication unit (wireless communication unit 33) receive an identification signal that identifies a plurality of communication devices (lighting fixtures 20) output from each of the plurality of communication devices in order to allow the communication devices to join the mesh network, the communication status indicates the received signal strength of each of the plurality of identification signals received by the communication unit (wireless communication unit 33), and the control unit 34 determines a number in order of strongest received signal strength indicated in the communication status.
[0216] This realizes a control device 30 that makes it easy to remove a communication device (lighting fixture 20) from a mesh network, as shown in the first example.
[0217] Invention 3 is the control device 30 of Invention 2, in which the control unit 34 performs a receiving process multiple times to sequentially allow a plurality of communication devices (lighting fixtures 20) to join the mesh network, and if the communication unit (wireless communication unit 33) does not receive an identification signal from a communication device from which the communication unit (wireless communication unit 33) received an identification signal in the nth (n is an integer greater than or equal to 2)th receiving process, the communication unit (wireless communication unit 33) stops the process to sequentially allow a plurality of communication devices to join the mesh network.
[0218] This makes it possible to allow multiple lighting fixtures 20 to participate in the mesh network efficiently, as shown in the second example.
[0219] Invention 4 is the control device 30 of Invention 3, in which, among one or more communication devices (lighting devices 20) that output an identification signal in the nth reception process, a communication device from which an identification signal was received for the first time by the communication unit (wireless communication unit 33) in the nth reception process is determined to be a new communication device (e.g., four lighting devices 20g to 20k), and a communication device from which an identification signal has already been received by the communication unit (wireless communication unit 33) in the n-1th reception process or earlier and which output an identification signal with the strongest received signal strength in the nth reception process is determined to be a previously received communication device (e.g., lighting device 20n).When the control unit 34 performs a disconnection process, if the difference between the number determined for the previously received communication device and the number determined for the new communication device is greater than a predetermined threshold and one communication device communicating with the communication unit (wireless communication unit 33) is a new communication device, the control unit 34 uses the number determined for the previously received communication device as the number determined for one communication device.
[0220] This makes it possible to realize a control device 30 that makes it easy to remove a communication device (lighting fixture 20) from the mesh network even when a "gap" in the number occurs, as shown in the third example.
[0221] Invention 5 is the control device 30 of Invention 1, in which the communication state indicates a path state showing the communication path of a mesh network between a plurality of communication devices (lighting fixtures 20), and the control unit 34 determines a number in order of the longest communication distance between the communication unit (wireless communication unit 33) and one communication device currently communicating, based on the communication path indicated in the communication state.
[0222] This realizes a control device 30 that makes it easy to remove a communication device (lighting device 20) from a mesh network, as shown in the third modification of the first example.
[0223] Invention 6 is a control device 30 of any of Inventions 1 to 5, in which, when there is a communication device that continues to participate in the mesh network among one or more communication devices that have undergone a withdrawal process, the control unit 34 causes the communication unit (wireless communication unit 33) to communicate with the communication device that continues to participate without going through the mesh network, and causes the communication device that continues to participate to withdraw from the mesh network.
[0224] As a result, as shown in Modification 1 of the first example, even if there is a lighting device 20 (for example, lighting device 20c) that cannot be removed from the mesh network due to an abnormality or the like, the lighting device 20 can be removed from the mesh network. In other words, a control device 30 that makes it easy to remove a communication device (lighting device 20) from a mesh network is realized.
[0225] Invention 7 is a control device 30 of any of Inventions 1 to 5, in which, when the control unit 34 performs a leaving process for one or more communication devices (lighting devices 20) in the above order, if the communication unit (wireless communication unit 33) does not receive leaving response information from an active communication device, which is one of the one or more communication devices for which a leaving process is being performed, indicating that the active communication device will leave the mesh network, the control unit 34 stops the leaving process after the leaving process for the active communication device.
[0226] This makes it possible to realize a control device 30 that can easily remove a communication device (lighting device 20) from a mesh network, as shown in the second modification of the first example.
[0227] Invention 8 is the control device 30 described in Invention 1, in which the number is a first number, and the control unit 34 performs a receiving process multiple times to have the communication unit (wireless communication unit 33) receive an identification signal that identifies the communication device output from each of the multiple communication devices in order to allow the multiple communication devices (lighting fixtures 20) to join the mesh network in sequence, and determines a second number for each of the multiple communication devices depending on the number of receiving processes, and when removing one or more of the multiple communication devices from the mesh network, the control unit removes the one or more communication devices from the mesh network in order of the largest absolute value of the difference between the second number determined for one communication device among the multiple communication devices that is communicating with the communication unit (wireless communication unit 33) and the second numbers determined for each of the one or more communication devices, and in order of the largest first numbers determined for each of the one or more communication devices.
[0228] This makes it possible to realize a control device 30 that makes it easy to remove a communication device (lighting device 20) from a mesh network, even when there are a large number of lighting devices 20, as shown in the fourth example.
[0229] A ninth aspect of the present invention is the control device 30 of any one of the first to eighth aspects, in which each of the plurality of communication devices is a lighting fixture 20.
[0230] This realizes a control device 30 in which each of a plurality of communication devices is a lighting fixture 20.
[0231] Invention 10 is a control method executed by control device 30, which includes a control unit 34 and a communication unit (wireless communication unit 33) that communicates with multiple communication devices (lighting fixtures 20), and the multiple communication devices join a mesh network, and the control method includes a first step in which control unit 34 determines a number for each of the multiple communication devices depending on the communication state of the multiple communication devices, and a second step in which, when control unit 34 causes one or more of the multiple communication devices to leave the mesh network, control unit 34 performs a removal process to remove one or more communication devices from the mesh network in order of the largest absolute value of the difference between the number determined for one communication device among the multiple communication devices that is communicating with the communication unit (wireless communication unit 33) and the numbers determined for each of the one or more communication devices.
[0232] This realizes a control method that makes it easy to remove a communication device (lighting device 20) from a mesh network, as shown in the first example.
[0233] (Other embodiments) Although the embodiment has been described above, the present invention is not limited to the above embodiment.
[0234] For example, in the above embodiment, a MAC address is given as an example of identification information, but the identification information is not limited to a MAC address as long as it can uniquely identify a lighting fixture.
[0235] The method of communication between the devices described in the above embodiment is merely an example, and the method of communication between the devices is not particularly limited.
[0236] In the initialization process of the first example, the wireless communication unit 33 sequentially transmits the departure information in which the target lighting fixture 20 is the lighting fixture 20e, the departure information in which the target lighting fixture 20 is the lighting fixture 20d, and the departure information in which the target lighting fixture 20 is the lighting fixture 20c. For example, the timing at which the departure information is transmitted may be as follows. When the wireless communication unit 33 receives the departure response information transmitted from the lighting fixture 20e, the control unit 34 may cause the wireless communication unit 33 to transmit the departure information in which the target lighting fixture 20 is the lighting fixture 20d. Similarly, when the wireless communication unit 33 receives the departure response information transmitted from the lighting fixture 20d, the control unit 34 may cause the wireless communication unit 33 to transmit the departure information in which the target lighting fixture 20 is the lighting fixture 20c. This makes it possible to more reliably cause the lighting fixtures 20e, 20d, and 20c to leave the mesh network in this order.
[0237] In the above embodiment, the processes executed by a specific processing unit may be executed by another processing unit. The order of multiple processes may be changed, or multiple processes may be executed in parallel.
[0238] In the above embodiment, components such as the control unit may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory.
[0239] Furthermore, components such as the control unit may be realized by hardware. For example, components such as the control unit may be a circuit (or an integrated circuit). These circuits may form a single circuit as a whole, or each may be a separate circuit. Furthermore, each of these circuits may be a general-purpose circuit or a dedicated circuit.
[0240] In addition, the general or specific aspects of the present invention may be realized as a system, an apparatus, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM. Also, the present invention may be realized as any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a recording medium. For example, the present invention may be realized as a communication system or an information terminal of the above-mentioned embodiment, or as an information processing method executed by an information terminal. The present invention may be realized as a program for causing a computer to execute such an information processing method, or as a non-transitory recording medium on which such a program is recorded. Such a program includes an application program for causing a computer such as a general-purpose information terminal to function as the information terminal of the above-mentioned embodiment.
[0241] In addition, the present invention also includes forms obtained by applying various modifications to each embodiment that a person skilled in the art may think of, or forms realized by arbitrarily combining the components and functions of each embodiment within the scope that does not deviate from the spirit of the present invention. [Explanation of symbols]
[0242] 20, 20a, 20b, 20c, 20d, 20e, 20g, 20h, 20j, 20k, 20m, 20n, 20p lighting fixtures 30 Control device 34 Control section
Claims
1. a control unit that determines a number for each of a plurality of communication devices according to a communication state of the plurality of communication devices; a communication unit that communicates with the plurality of communication devices, The plurality of communication devices join a mesh network, When one or more of the plurality of communication devices are to be removed from the mesh network, the control unit performs a removal process for removing the one or more communication devices from the mesh network in descending order of the absolute value of the difference between the number determined for one of the plurality of communication devices that is communicating with the communication unit and the number determined for each of the one or more communication devices. Control device.
2. The control unit performs a receiving process to cause the communication unit to receive an identification signal that identifies each of the plurality of communication devices output from the plurality of communication devices in order to allow the plurality of communication devices to join the mesh network; the communication state indicates a received signal strength of each of the identification signals received by the communication unit; The control unit determines the number in descending order of the received signal strength indicated in the communication status. The control device according to claim 1 .
3. the control unit performs the reception process a plurality of times in order to sequentially allow the plurality of communication devices to join the mesh network; When the communication unit does not receive the identification signal from the communication device from which the communication unit received the identification signal in the n-1th reception process or earlier, the communication unit stops the process of sequentially having the plurality of communication devices join the mesh network. The control device according to claim 2.
4. Among the one or more communication devices that have output the identification signal in the n-th reception process, A communication device from which the identification signal is received for the first time by the communication unit in the n-th reception process is determined as a new communication device; A communication device that has already received the identification signal by the communication unit in the reception process before the n-1th time and has output the identification signal with the strongest received signal strength in the nth time of the reception process is determined as a communication device that has already received the identification signal; When the control unit performs the withdrawal process, When a difference between the number determined for the received communication device and the number determined for the new communication device is greater than a predetermined threshold value, and the one communication device communicating with the communication unit is the new communication device, The control unit uses the number determined for the received communication device as the number determined for the one communication device. The control device according to claim 3.
5. the communication state indicates a path state indicating a communication path of the mesh network between the plurality of communication devices; The control unit determines the number in descending order of communication distance between the communication unit and the one communication device in communication based on the communication path indicated in the communication state. The control device according to claim 1 .
6. When there is a communication device that continues to participate in the mesh network among the one or more communication devices that have undergone the leaving process, the control unit causes the communication unit and the communication device that continues to participate to communicate without going through the mesh network, and causes the communication device that continues to participate to leave the mesh network. The control device according to claim 1 .
7. When the control unit performs the leaving process for the one or more communication devices in the order, if the communication unit does not receive leaving response information indicating that the active communication device will leave the mesh network from an active communication device that is one of the one or more communication devices for which the leaving process is being performed, the control unit stops the leaving process for the active communication device and subsequent steps. The control device according to claim 1 .
8. The number is a first number, The control unit is In order to sequentially allow the plurality of communication devices to join the mesh network, a reception process is performed a plurality of times to cause the communication unit to receive an identification signal that identifies the communication device output from each of the plurality of communication devices, determining a second number for each of the plurality of communication devices according to the number of times the receiving process is performed; When one or more of the plurality of communication devices are to be removed from the mesh network, the one or more communication devices are removed from the mesh network in order of the largest absolute value of the difference between the second number determined for the one of the plurality of communication devices that is in communication with the communication unit and the second numbers determined for each of the one or more communication devices, and in order of the largest absolute value of the first number determined for each of the one or more communication devices. The control device according to claim 1 .
9. Each of the plurality of communication devices is a lighting fixture. The control device according to any one of claims 1 to 8.
10. A control method executed by a control device, The control device includes: A control unit; A communication unit that communicates with a plurality of communication devices, The plurality of communication devices join a mesh network, The control method includes: a first step of the control unit determining a number for each of the plurality of communication devices in accordance with a communication state of the plurality of communication devices; and a second step of performing a process of disconnecting one or more communication devices from the mesh network in descending order of absolute value of difference between the number determined for one communication device among the plurality of communication devices that is communicating with the communication unit and the number determined for each of the one or more communication devices, when the control unit disconnects one or more communication devices from the mesh network. Control methods.
Citation Information
Patent Citations
Radio communication system, sink node, and radio communication method
WO2014080522A1
