Scene mode setting method and intelligent electrical system
By selecting the origin device in the smart electrical system and detecting the relative position information, and using the pre-stored scene mode information to quickly match and set the position of the smart device, it solves the inefficiency problem of batch setting of complex scenes in the existing technology and achieves efficient Batch import of scene modes and precise setting of device locations.
Patent Information
- Application Number
- CN202310336294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult for the existing intelligent electrical system to accurately lock the device position when setting complex scenes in batches, especially for scene settings with multiple devices and multiple design solutions, resulting in low setting efficiency.
By selecting the origin device in the target space, detecting device type and relative position information, using pre-stored scene mode information to quickly match and set the position relationship of smart devices, batch import of scene modes is achieved, taking into account position accuracy and flexibility.
It improves the batch setting efficiency of intelligent electrical systems, reduces manual setting time, ensures the accuracy and flexibility of equipment position relationships, and is suitable for scene mode replication in multiple repeated spaces.
Smart Images

Figure CN118732544A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a scene mode setting method and an intelligent electrical system. Background Art
[0002] With the development of intelligent communication technology, intelligent technology is becoming more and more mature and popular. The intelligent electrical system connects various intelligent devices together through the Internet of Things technology, and then adjusts each device in the entire intelligent interconnected scene in a unified or related manner.
[0003] In some existing smart electrical systems, there are a large number of similar application scenarios. Multiple "repeated spaces" in a building, such as multiple suites of the same room type in a hotel, or multiple residential units in a community that are uniformly decorated before delivery, have similar internal structures and installed smart device hardware. Before hotel guests check in or before the residential units are delivered to residents, the manager of the smart electrical system needs to make initial settings for the smart electrical system, such as networking different smart devices and setting basic control modes.
[0004] In the prior art, when setting networking scenes for multiple rooms, first set an apartment type identification for each house, and then manually define the model type of each device in the application scene corresponding to the apartment type identification. For example, there are 4 devices in the application scene, namely 2 lamps, 1 air conditioner and 1 TV. In order to enable the 4 devices to accurately receive and execute their corresponding control commands, first set the apartment type identification of the application scene with 4 devices, and associate the device model and networking information with the apartment type identification. When setting scenes for other similar apartments, the associated information can be directly substituted without defining each device again, so that the scene settings in rooms with the same smart device settings can be batched, and the operation is simple and convenient.
[0005] However, when setting scenes in batches, the above prior art usually assumes that the scene is only related to the number and type of devices. When there are multiple residential units in the community as described above, the number / type of devices is large, and there are multiple design schemes (for example, the restaurant has 4 downlights and the living room has 6 downlights), the scenes that can be set in batches for each household are different. Only the device type and the number of devices, such as 4, and the information of the downlights cannot lock the target device for scene setting. In particular, for some scene settings that have high requirements for the absolute or relative position of the device in the house, it cannot be achieved through simple batch import. Summary of the invention
[0006] In view of the above problems, the present invention provides a scene mode setting method and an intelligent electrical system. The scene mode setting method provided in the present invention can quickly realize batch import of control modes of complex scenes.
[0007] In the technical solution of the present invention, a scene mode setting method is provided, which is used to apply the scene mode to the target space. The scene mode information of the scene mode includes the device types of multiple scene smart devices, the position information between the multiple scene smart devices and the setting information of the scene mode. The target space includes multiple smart devices that form a wireless mesh network. The scene mode setting method includes: step S1, selecting an origin device from multiple smart devices in the target space, detecting the device types of the multiple smart devices and the relative position information relative to the origin device; step S2, if the device types of the multiple smart devices and the relative position information relative to the origin device match the scene mode information of the scene mode, then setting the scene modes of the matching multiple smart devices based on the scene mode information.
[0008] In order to quickly and accurately identify the object device and complete the setting of the scene mode, the technical solution provided by the present invention first pre-stores the scene mode including the device type of multiple scene smart devices, the location information between the multiple scene smart devices and the setting information of the scene mode, so that in the subsequent scene mode setting action of the target space, the similarity between the physical location layout of the smart devices between the "repeated spaces" can be used, and the scene to be set, that is, each smart device in the target space, can be quickly and accurately determined by the relative position between each scene smart device in the scene mode. Since each smart device constituting the wireless mesh network is an equal node in the mesh network, the origin setting combined with the device type can clearly distinguish smart devices of the same device type and different locations, and only the positioning information of each smart device to the origin device needs to be determined, reducing the amount of data required to calculate for identifying each device to be networked. Then, by quickly copying the scene mode to other "repeated spaces", such as multiple target spaces, the scene mode batch setting of multiple smart devices in multiple target spaces is realized, saving manual setting time and improving batch setting efficiency. The scene mode can conveniently and accurately define the positional relationship between smart devices, and the position of the smart device is not bound to the layout and size of the space in which the smart device is located, thus taking into account both the accuracy and flexibility of the position setting.
[0009] Preferably, in the technical solution of the present invention, step S1 of the scene mode setting method includes step S11, counting the number of smart devices of each device type in the target space, and selecting the smart device of the device type with the least number as the origin device.
[0010] According to the technical solution of the present invention, the method of selecting the smart devices of the least number of device types as the origin devices is convenient and quick, which is convenient for quickly locating the origin device and calculating the relative position information of other smart devices relative to the origin device, thereby improving the efficiency of batch setting of scene modes.
[0011] Furthermore, in the technical solution of the present invention, step S1 in the scene mode setting method includes step S12, respectively calculating the sum of signal strengths between multiple smart devices in the target space and the remaining smart devices, and selecting the smart device with the largest sum of signal strengths as the origin device.
[0012] According to the technical solution of the present invention, the origin device is determined by calculating based on the sum of signal strengths, which can ensure that a fast and effective signal transmission network can be established between the origin device and each smart device.
[0013] Preferably, in the technical solution of the present invention, the scene mode information of the scene mode includes scene origin device information, and step S1 in the scene mode setting method includes step S13, selecting the corresponding smart device in the target space as the origin device according to the scene origin device information.
[0014] According to the technical solution of the present invention, a certain scene smart device is directly preset as the scene origin device among the multiple scene smart devices included in the scene mode information. When setting the scene mode of the target space, the smart device with the same scene origin device information as the scene origin device can be directly matched as the origin device, thereby simplifying the steps of origin device detection and calculation, and thereby improving the efficiency of batch setting of scene modes.
[0015] Preferably, in the technical solution of the present invention, step S2 in the scene mode setting method includes step S21, determining whether there are smart devices in the target space with the corresponding number and device type as the multiple scene smart devices in the scene mode information, and if so, continue matching, if not, the matching fails; step S22, determining whether the relative position information of at least one smart device among the multiple smart devices matched in step S21 relative to the origin device matches the position information between the scene smart devices in the scene mode information, and if so, the matching is successful, if not, the matching fails.
[0016] According to the technical solution of the present invention, when verifying whether the smart devices in the target space are consistent with the scene set in the scene mode information, the number and device type of the smart devices are first verified; after confirming that the number and device type of the smart devices are consistent with the scene set in the scene mode information, further confirm whether the relative position information of each smart device is consistent with the scene set in the scene mode information, so as to achieve accurate setting and matching of the position relationship between each smart device in the scene. By gradually completing the identification of the target device in stages, it is possible to avoid the problem of excessive data volume that is easily generated when multiple conditions are verified simultaneously when there are too many smart devices, or the problem that it is always difficult to complete the setting and find the cause of the error due to some smart devices being offline or in an erroneous state.
[0017] In the technical solution of the present invention, the scene mode in the scene mode setting method also includes multiple sub-scene modes, and the scene mode information of the sub-scene mode includes the device types of multiple sub-scene smart devices, the location information between the multiple sub-scene smart devices and the setting information of the sub-scene mode.
[0018] According to the technical solution of the present invention, the sub-scene smart device in the sub-scene mode can be some of the scene smart devices associated with the scene mode. When verifying whether the target space matches the scene mode, if some of the smart devices in the target space match the scene mode information of the sub-scene mode, the sub-scene mode can be directly set to the above-mentioned smart device.
[0019] In the technical solution of the present invention, the relative position information of the smart device in the scene mode setting method includes relative distance information and / or relative direction information between the smart device and the origin device.
[0020] According to the technical solution of the present invention, the relative position relationship between each smart device can be more accurately defined through the relative distance information and relative direction information between the origin device and the remaining smart devices.
[0021] Preferably, in the technical solution of the present invention, the scene mode setting method also includes the following steps: setting different judgment thresholds for smart devices of different device types, and the judgment thresholds are used to judge whether the relative position information matches the position information between multiple scene smart devices.
[0022] According to the technical solution of the present invention, setting different judgment thresholds can enable the scene mode setting to maintain a certain flexibility on the basis of clarity and accuracy. In particular, even if the installation location of some smart home appliances is slightly adjusted, they can be smoothly integrated into the network to implement overall control based on the scene mode, thereby maintaining a certain flexibility for the installation location of some smart home appliances.
[0023] Furthermore, in the technical solution of the present invention, the judgment threshold in the scene mode setting method is a relative distance threshold and / or a relative direction threshold.
[0024] According to the technical solution of the present invention, according to the accuracy requirements of different types of smart devices for setting the position, the judgment threshold can be selected as a relative distance threshold, a relative direction threshold, or both.
[0025] In the technical solution of the present invention, there is also provided an intelligent electrical system, which is applied to a target space including multiple repeated or similar spatial units, and the target space includes multiple intelligent devices that constitute a wireless mesh network. The intelligent electrical system includes: a storage unit, which stores scene mode information of the scene mode including device types of multiple scene intelligent devices, position information between multiple scene intelligent devices and setting information of the scene mode; an origin detection module, which selects an origin device from multiple intelligent devices in the target space, detects device types of multiple intelligent devices and relative position information relative to the origin device; and a scene setting module, which sets the scene mode of the matching multiple intelligent devices based on the scene mode information if the device types of multiple intelligent devices and the relative position information relative to the origin device match the scene mode information of the scene mode.
[0026] According to the technical solution of the present invention, the intelligent electrical system pre-stores a scene mode including device types of multiple scene intelligent devices, location information between multiple scene intelligent devices and setting information of the scene mode, so that in the subsequent scene mode setting action of the target space, the similarity between the physical location arrangements of the intelligent devices between the "repeated spaces" can be utilized, and the scene to be set, that is, each intelligent device in the target space, can be quickly and accurately determined through the relative positions between each scene intelligent device in the scene mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a schematic diagram of an application scenario of a scene mode setting method provided in a first embodiment of the present invention;
[0028] Figure 2 is a flow chart of a scene mode setting method provided in a first embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of a living room scene provided in a first embodiment of the present invention;
[0030] Figure 4 It is a schematic diagram of a bedroom scene provided in the second embodiment of the present invention.
[0031] Explanation of the accompanying drawings: 1-target space, 10-smart device, 101-origin device, 20-scene smart device, 201-scene origin device. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] [First embodiment]
[0034] Figure 1 It is a schematic diagram of an application scenario of a scene mode setting method provided in the first embodiment of the present invention.
[0035] refer to Figure 1 In a first embodiment of the present invention, a scene mode setting method is provided for applying a scene mode to a target space 1, wherein the scene mode information of the scene mode includes device types of multiple scene smart devices 20, location information between the multiple scene smart devices 20, and setting information of the scene mode, and the target space 1 includes multiple smart devices 10 constituting a wireless mesh network.
[0036] Specifically, the application scenario of the scene mode setting method is a "repeated space" in the same building or different buildings. The term "repeated space" refers to a space where at least some smart devices (smart devices grouped for scene mode control) are arranged in the same or similar manner, such as multiple suites of the same room type in the same hotel, or multiple houses in a community delivered with uniform decoration, etc. The scene set in the scene mode can be an independent room, a combination of multiple rooms, a combination of some smart devices in one or more rooms, or a part of a semi-partitioned or unpartitioned overall room. For example, the target space 1 can be a "repeated space" with the same or similar apartment type and decoration.
[0037] Among them, the smart devices 10 constituting the wireless mesh network can be any electrical devices that can be connected to a wireless network, such as lamps, air conditioners, televisions, refrigerators, water heaters, etc.; and the device types of the smart devices 10 can be: lighting appliances, air conditioners, fans, televisions and other electrical appliance categories; or they can be further classified under the category of lighting appliances, such as downlights, table lamps, ceiling lamps, etc.; further, they can also be a certain type of electrical products of a certain model of a certain manufacturer, such as a table lamp with a signal of brand A model 001. The communication signal in the wireless mesh network can be a Bluetooth signal, a wifi signal, an RF signal, etc., which is not limited here. Preferably, the wireless mesh network is a Bluetooth mesh network, and the communication signal is a Bluetooth signal.
[0038] Figure 2 is a flow chart of a scene mode setting method provided in the first embodiment of the present invention.
[0039] like Figure 2 As shown, in the first embodiment of the present invention, the scene mode setting method includes: step S1, selecting an origin device 101 from multiple smart devices 10 in the target space 1, and detecting device types of the multiple smart devices 10 and relative position information relative to the origin device 101; step S2, if the device types of the multiple smart devices 10 and the relative position information relative to the origin device 101 match the scene mode information of the scene mode, then setting the scene mode of the matched multiple smart devices 10 based on the scene mode information.
[0040] In the embodiment of the present invention, the relative position relationship between each smart device 10 in the target space 1 is defined by the relative position information of the origin device 101 and other smart devices 10 relative to the origin device 101. The position information between multiple scene smart devices 20 in the scene mode information is also defined by the relative position relationship between each scene smart device 20, so that the position of the scene smart device 20 is not bound to the layout and size of the target space 1 to which the scene mode is to be applied, thereby taking into account the accuracy and flexibility of the position setting of the smart device 10 in the setting of the scene mode.
[0041] In this embodiment, when setting the scene mode of the target space 1, step S1 is first performed to select an origin device 101 from multiple smart devices 10 in the target space 1, and detect the device types of the multiple smart devices 10 and their relative position information relative to the origin device 101;.
[0042] Preferably, in the first embodiment of the present invention, step S1 of the scene mode setting method includes step S11, counting the number of smart devices 10 of each device type in the target space 1, and selecting the smart device 10 of the device type with the least number as the origin device 101.
[0043] Figure 3 It is a schematic diagram of a living room scene provided in the first embodiment of the present invention.
[0044] like Figure 3 As shown, in the first embodiment of the present invention, the smart devices 10 in the target space 1 include downlight L1, downlight L2, downlight L3, TV A and main light B. The device types are downlight, TV and main light. Statistics show that the smart devices 10 include 3 downlights, 1 TV and 1 main light, and the device types with the least number are TV and main light. In summary, the origin device 101 in the target space 1 can select TV A or main light B.
[0045] In the embodiment of the present invention, the origin device 101 is the positioning reference of other devices in the target space 1, and the acquisition and calculation of the relative position information of the other smart devices 10 all need to rely on the selection of the origin device 101. If the origin device 101 is selected incorrectly, the subsequent positioning of the smart device 10 and the setting of the scene mode cannot be realized. The method of selecting the smart device 10 of the least number of device types as the origin device 101 is convenient and fast, which is convenient for quickly locating the origin device 101 and calculating the relative position information of other smart devices 10 relative to the origin device 101, which can reduce the time required to determine the origin device 101, thereby improving the overall efficiency of the batch setting of the scene mode.
[0046] Furthermore, in an embodiment of the present invention, step S1 in the scene mode setting method also includes step S12, respectively calculating the sum of the signal strengths between multiple smart devices 10 in the target space 1 and the remaining smart devices 10, and selecting the smart device 10 with the largest sum of signal strengths as the origin device 101.
[0047] Specifically, in this embodiment, the sum of the signal strengths between the downlight L1, downlight L2, downlight L3, TV A and main light B and the remaining smart devices 10 is calculated respectively, that is, the signal strengths between the downlight L1 and the downlight L2, downlight L3, TV A and main light B are calculated and summed to obtain the sum of the signal strengths when the downlight L1 is the origin device 101, and the sum of the signal strengths when the downlight L2, downlight L3, TV A and main light B are the origin devices 101 is calculated by analogy. Then, the smart device 10 with the largest sum of signal strengths, that is, the main light B, is selected as the origin device 101 among the five smart devices 10 in the target space 1.
[0048] In an embodiment of the present invention, when the relative position information between the smart device 10 and the origin device 101 is subsequently acquired and calculated based on information such as signal strength, the maximum sum of signal strengths can indicate that the signal transmission performance between the smart device 10 and other smart devices 10 is good, or the relative positions between the smart device 10 and other smart devices 10 are relatively reasonable, that is, the distance is short or there is no obstruction. Calculation based on the sum of signal strengths to determine which one is the origin device can ensure that a fast and effective signal transmission network can be established between the origin device 101 and each smart device 10.
[0049] It is worth mentioning that the sum of the signal strengths of the smart devices 10 may be a sum value after weighting, exponentiation or other comprehensive operations, and is not limited to simple addition.
[0050] Furthermore, in the embodiment of the present invention, the two methods of selecting the origin device 101 from the plurality of smart devices 10 in the above-mentioned steps S11 and S12 can be used alone or in combination. For example, the smart device 10 of the device type with the least number is first selected through step S11, and when there are multiple types of the device with the least number, the smart device 10 with the largest sum of signal strength among the multiple types of devices is selected through step S12 as the origin device 101; or, the smart device 10 with the largest sum of signal strength is first selected through step S12 as the origin device 101, and when there are multiple smart devices 10 with the largest sum of signal strength, the smart device 10 corresponding to the device type with the least number among the smart devices 10 is selected through step S11 as the origin device 101. The order of performing steps S11 and S12, as well as the weights of the judgment bases involved in steps S11 and S12 when judging the origin device 101, can be set according to the conditions and requirements set by the scene mode.
[0051] Preferably, in an embodiment of the present invention, the scene mode information of the scene mode includes scene origin device information, and step S1 in the scene mode setting method includes step S13, selecting the corresponding smart device 10 in the target space 1 as the origin device 101 according to the scene origin device information.
[0052] Among the multiple scene smart devices 20 included in the scene mode information of the scene mode, a certain scene smart device 20 is directly preset as the scene origin device 201. For example, the scene mode information directly defines a main light as the scene origin device 201. When the scene mode of the target space 1 is set according to the scene mode information, the smart device 10 with the same scene origin device information as the scene origin device 201, i.e., the main light B, can be directly matched as the origin device 101, thereby simplifying the steps of selecting and calculating the origin device 101, so as to further improve the efficiency of batch setting of scene modes.
[0053] In an embodiment of the present invention, when setting the scene mode of the target space 1, after completing the selection of the main light B as the origin device 101, the relative position information of other smart devices 10, namely downlight L1, downlight L2, downlight L3 and TV A relative to the main light B is calculated respectively.
[0054] In an embodiment of the present invention, the relative position information includes the relative distance information and relative direction information between the origin device 101 and the remaining smart devices 10. For example, the relative distance information and relative direction information of the downlight L1 relative to the main light B can be expressed by distance values and angle values, respectively, or can be expressed in the form of coordinates in a coordinate system with the main light B as the origin.
[0055] For example, the device type information of multiple smart devices 10 in the target space 1 and the relative position information of the multiple smart devices 10 relative to the origin device 101 are shown in Table 1:
[0056]
[0057] Table 1
[0058] In the embodiment of the present invention, the relative distance information and relative direction information between the origin device 101 and the other smart devices 10 can more accurately define the relative position relationship between the smart devices 10. In addition, the position of the smart device 10 is not bound to the layout and size of the space where the smart device 10 is located, which takes into account the accuracy and flexibility of the position setting.
[0059] In an embodiment of the present invention, after obtaining the device type and relative position information of the smart device 10 in the target space 1, step S2 of the scene mode setting method is executed. If the device types of multiple smart devices 10 and the relative position information relative to the origin device 101 match the scene mode information of the scene mode, the scene modes of the matched multiple smart devices 10 are set based on the scene mode information.
[0060] In the embodiment of the present invention, the scene mode information of the scene mode includes device types of the plurality of scene smart devices 20 , location information between the plurality of scene smart devices 20 , and setting information of the scene mode.
[0061] Specifically, taking the living room scene as an example, the setting information of the scene mode in the scene mode information corresponding to the scene mode-living room is the control method of multiple scene smart devices 20 individually or in linkage, etc.;
[0062] The device type information of multiple scene smart devices 20 in the scene mode information corresponding to the scene mode-living room is shown in Table 2-1:
[0063]
[0064]
[0065] Table 2-1
[0066] The location information between each scene smart device 20 in the scene mode information corresponding to the scene mode-living room is shown in Table 2-2:
[0067] Location Information Main light B' Downlight L1' Downlight L2' Downlight L3' TV A' Main light B' / <![CDATA[P L1-B ']]> <![CDATA[P L2-B ']]> <![CDATA[P L3-B ']]> <![CDATA[P A-B ']]> Downlight L1' <![CDATA[P B-L1 ']]> / <![CDATA[P L2-L1 ']]> <![CDATA[P L3-L1 ']]> <![CDATA[P A-L1 ']]> Downlight L2' <![CDATA[P B-L2 ']]> <![CDATA[P L1-L2 ']]> / <![CDATA[P L3-L2 ']]> <![CDATA[P A-L2 ']]> Downlight L3' <![CDATA[P B-L3 ']]> <![CDATA[P L1-L3 ']]> <![CDATA[P L2-L3 ']]> / <![CDATA[P A-L3 ']]> TV A' <![CDATA[P B-A ']]> <![CDATA[P L1-A ']]> <![CDATA[P L1-A ']]> <![CDATA[P L3-A ']]> /
[0068] Table 2-2
[0069] It is worth mentioning that there are multiple ways to store the position information between each scene smart device 20 in the scene mode information. Table 2-2 is only shown as an example, where P represents the relative position information between two scene smart devices 20, and the relative position information includes relative distance information and relative direction information.
[0070] Preferably, in an embodiment of the present invention, step S2 in the scene mode setting method includes step S21, determining whether there are smart devices 10 in the target space 1 with the corresponding number and device type as the multiple scene smart devices 20 in the scene mode information, and if so, continue matching; if not, the matching fails; step S22, determining whether the relative position information (Table 1) of at least one smart device 10 among the multiple smart devices 10 matched in step S21 relative to the origin device 101 matches the position information (Table 2-2) between the scene smart devices 20 in the scene mode information, and if so, the matching is successful, and if not, the matching fails.
[0071] In the embodiment of the present invention, when verifying whether the smart devices 10 in the target space 1 are consistent with the scene mode set in the scene mode information, the number and device type of the smart devices 10 are first verified. Specifically, there are 5 smart devices 10 in the target space 1, including 3 downlights, 1 TV and 1 main light, which correspond to the number and device type of the scene smart devices 20 in the scene mode information.
[0072] By gradually completing the identification of the target device in stages, it is possible to avoid the problem of excessive data volume caused by simultaneous verification of multiple conditions when there are too many smart devices 10 in the target space 1, or the problem of always being difficult to complete the settings and difficult to find the cause of the error due to some smart devices 10 being offline or in an erroneous state.
[0073] In an embodiment of the present invention, after confirming that the number and device type of the smart devices 10 are consistent with the scene set in the scene mode information, it is further confirmed whether the relative position information of each smart device 10 is consistent with the scene set in the scene mode information, so as to achieve accurate setting and matching of the positional relationship between each smart device 10 in the target space 1.
[0074] In this embodiment, if the relative position information (Table 1) of the origin device 101 and the position information (Table 2-2) between the scene smart devices 20 in the scene mode information can match, that is, the scene mode is successfully matched, then the scene mode information of the living room scene is used to set the scene modes of the matched multiple smart devices 10, namely, the downlight L1, downlight L2, downlight L3, TV A and main light B. In addition, the batch networking setting of multiple smart devices 10 in multiple target spaces 1, namely, multiple spaces with the same or similar structures, can be realized, which can save manual setting time, improve batch setting efficiency, and improve the accuracy of scene mode setting.
[0075] Preferably, if the relative position information of the origin device 101 (Table 1) and the position information between the scene smart devices 20 in the scene mode information (Table 2-2) can match, and the network connections between the smart devices 10 are not bound to each other, then the smart devices 10 are first bound to each other, and then the scene mode is set; if only the smart devices 10 are bound to each other, first add the unbound smart devices 10; if the network connections between the smart devices 10 are already bound to each other, directly set the scene mode.
[0076] In addition, it should be noted that the matching of "relative position information of at least one smart device 10 relative to the origin device 101" mentioned in step S22 means that there is at least one position relationship requirement in the scene mode information corresponding to the scene mode. Sometimes, although there is only one position relationship in the scene mode information, it is necessary to determine the position relationship between two smart devices 10 and the origin device 101 at the same time, for example: there is a position relationship requirement between the two smart devices, but there is no absolute requirement for the position relationship between the two smart devices and the origin device 101.
[0077] [Second embodiment]
[0078] As a preferred embodiment of the present invention, the second embodiment of the present invention differs from the first embodiment of the present invention in that, in the second embodiment of the present invention, the scene mode setting method also includes the following steps: setting different judgment thresholds for smart devices 10 of different device types, and the judgment threshold is used to determine whether the relative position information of the smart device 10 matches the position information between multiple scene smart devices 20.
[0079] Figure 4 It is a schematic diagram of a bedroom scene provided in the second embodiment of the present invention.
[0080] like Figure 4As shown, in the second embodiment of the present invention, the smart devices 10 in the target space 1 include downlight L1, downlight L2, downlight L3, air conditioner C and table lamp D. The device types are downlight, air conditioner and table lamp, and the origin device 101 in the target space 1 can be manually selected as downlight L2 by the user. The device type information of multiple smart devices 10 in the target space 1 and the relative position information of multiple smart devices 10 relative to the origin device 101 can be obtained by detection, as shown in Table 3:
[0081]
[0082] Table 3
[0083] In the bedroom scene, the device type information of multiple scene smart devices 20 in the scene mode information corresponding to the scene mode-bedroom is shown in Table 4-1:
[0084]
[0085] Table 4-1
[0086] The location information between the various scene smart devices 20 in the scene mode information corresponding to the scene mode-bedroom is shown in Table 4-2:
[0087]
[0088]
[0089] Table 4-2
[0090] Further, in the second embodiment of the present invention, the determination threshold in the scene mode setting method is a relative distance threshold and / or a relative direction threshold.
[0091] For example, in the scene mode information corresponding to the scene mode - bedroom, the positions of downlights L1' and downlight L3' relative to downlight L2' are fixed. Therefore, when judging whether the relative position information of the smart device 10, i.e., downlights L1 and L3, relative to the origin device 101, i.e., downlight L2, in the target space 1 matches the scene mode information corresponding to the scene mode - bedroom, the required judgment thresholds are the relative distance threshold and the relative direction threshold to ensure accurate positioning.
[0092] In the scene mode information corresponding to the scene mode - bedroom, the positions of the air conditioner C' and the desk lamp D' relative to the downlight L2' are flexible. Therefore, when judging whether the relative position information of the smart device 10, i.e., the air conditioner C and the desk lamp D, relative to the origin device 101, i.e., the downlight L2 in the target space 1 matches the scene mode information corresponding to the scene mode - bedroom, the required judgment threshold is the relative distance threshold or the relative direction threshold, as long as the air conditioner C and the desk lamp D in the target space 1 can be ensured to be set near the wall opposite to the downlight L2.
[0093] In the second embodiment of the present invention, setting different judgment thresholds can enable the scene mode setting to maintain a certain flexibility on the basis of clarity and accuracy. In particular, even if the installation location of some smart home appliances is slightly adjusted, they can be smoothly integrated into the network to implement overall control based on the scene mode, thereby maintaining a certain flexibility for the installation location of some smart home appliances.
[0094] Preferably, the judgment threshold may also be used to judge whether the device type and the number of the smart devices 10 in the target space 1 match the scene mode information of the scene mode.
[0095] Preferably, in an embodiment of the present invention, when setting the scene modes of multiple smart devices 10 in the target space 1, there may be multiple groups of corresponding matching scene mode information, that is, corresponding to multiple different scene modes. Multiple groups of scene mode information can be matched with multiple smart devices 10 in the target space 1 that need to set scenes in batches, so as to obtain scene modes corresponding to the scene mode information matched with the multiple smart devices 10 in the target space 1, and use the scene mode information corresponding to the scene mode to perform rapid scene setting of the target space 1. The matching result may be that there is no matching item, or there are 1 or more than 2 scene modes that match the device information of the target space 1, so as to match 0, 1 or more than 2 scene modes to all or part of the smart devices 10 in the current target space 1.
[0096] For example, the smart device 10 in the target space 1 includes 1 ceiling lamp, 3 downlights, 1 air conditioner, and 1 TV. The scene mode information corresponding to the multiple scene modes are:
[0097] The scene mode information of the first scene mode is: the device types and quantities of the scene smart devices 20 are 1 ceiling lamp, 1 air conditioner and 1 TV, and the judgment threshold is only the device types and quantities of the above scene smart devices 20. According to the scene mode information and judgment threshold of the first scene mode, the matching result between the target space 1 and the first scene mode is that the smart devices 10 (i.e., 1 ceiling lamp, 1 air conditioner and 1 TV) in the target space 1 are successfully matched with the first scene mode, and the scene modes of the above 3 matching smart devices 10 in the target space 1 are set based on the scene mode information of the first scene mode;
[0098] The scene mode information of the second scene mode is: the device types and quantities of the scene smart devices 20 are 3 downlights, 1 air conditioner and 1 TV, and the judgment threshold is the device types and quantities of the above scene smart devices 20, as well as the distance between the 3 downlights and the TV. According to the scene mode information and judgment threshold of the second scene mode, the matching result between the target space 1 and the second scene mode is that the smart devices 10 (i.e., 3 downlights, 1 air conditioner and 1 TV) in the target space 1 are successfully matched with the second scene mode, and the scene modes of the above 5 smart devices 10 matched in the target space 1 are set based on the scene mode information of the second scene mode;
[0099] In summary, multiple smart devices 10 in the target space 1 are matched with scene mode information corresponding to multiple scene modes, and the matching result is that two scene modes are matched with the device information of the target space 1, so that the above two scene modes are set to all or part of the smart devices 10 in the current target space 1.
[0100] For another example, the scene mode information corresponding to the multiple scene modes also includes:
[0101] The scene mode information of the third scene mode is: the device types and quantities of the scene intelligent devices 20 are 1 ceiling lamp, 5 downlights, 1 TV and 1 table lamp, and the judgment threshold is the device types and quantities of the above scene intelligent devices 20. According to the scene mode information and judgment threshold of the third scene mode, the matching result between the target space 1 and the third scene mode is that the number of downlights in the target space 1 does not meet the quantity requirement of the third scene mode, and the target space 1 does not contain a table lamp, and the target space 1 fails to match the third scene mode.
[0102] Furthermore, in an embodiment of the present invention, different sub-scenes may be set within the overall scene mode. For example, a movie watching scene may be set in the third scene mode.
[0103] The device types and quantities in the sub-scene mode information of the movie-watching scene are 1 ceiling light, 3 downlights and 1 TV, and the judgment threshold is the device type and quantity of the above-mentioned scene smart devices 20, as well as the distance between the 3 downlights and the TV. According to the sub-scene mode information of the movie-watching scene and the judgment threshold, the matching result between the target space 1 and the movie-watching scene in the third scene mode is that the smart devices 10 in the target space 1 (i.e., 3 downlights and 1 TV) are successfully matched with the movie-watching scene in the third scene mode, and the scene modes of the above 4 smart devices 10 matched in the target space 1 are set based on the sub-scene mode information of the movie-watching scene.
[0104] In summary, although the overall scene mode information of the third scene mode failed to complete the match, the scene mode information of the sub-scene mode composed of some scene intelligent devices 20 therein could complete the match. Therefore, the scene mode of the sub-scene in the completed third scene mode, namely the movie viewing scene, can be quickly imported into the target space 1.
[0105] In the actual application of the present invention, the above-mentioned importing method of importing multiple groups of scene modes into a target space 1 together, and the importing method of importing scene modes of one or more sub-scenes in an overall scene mode into the target space 1 can be freely combined and used without any restriction here.
[0106] [Third embodiment]
[0107] In a third embodiment of the present invention, an intelligent electrical system is also provided, which is applied to a target space 1 including multiple repeated or similar spatial units, and the target space 1 includes multiple smart devices 10 that constitute a wireless mesh network. The intelligent electrical system includes: a storage unit, which stores scene mode information of a scene mode including device types of multiple scene smart devices 20, position information between multiple scene smart devices 20, and setting information of the scene mode; an origin detection module, which selects an origin device 101 from multiple smart devices 10 in the target space 1, detects device types of multiple smart devices 10 and relative position information relative to the origin device 101; and a scene setting module, which sets the scene mode of the matched multiple smart devices 10 based on the scene mode information if the device types of multiple smart devices 10 and the relative position information relative to the origin device 101 match the scene mode information of the scene mode.
[0108] In order to quickly and accurately identify the target device and complete the setting of the scene mode, in the embodiment of the present invention, the intelligent electrical system pre-stores the scene mode including the device type of multiple scene intelligent devices 20, the location information between the multiple scene intelligent devices 20 and the setting information of the scene mode, so that in the subsequent scene mode setting action of the target space 1, the similarity between the physical position layout of the intelligent devices between the "repeated spaces" can be used to quickly and accurately determine the scene to be set, that is, each intelligent device 10 in the target space 1 through the relative position between each scene intelligent device 20 in the scene mode. Since each intelligent device constituting the wireless mesh network is an equal node in the mesh network, the origin setting combined with the device type can clearly distinguish the intelligent devices 10 of the same device type and different locations, and only the positioning information of each intelligent device 10 to the origin device 101 needs to be determined, reducing the amount of data required to calculate for identifying each device to be networked. Then, by quickly copying the scene mode to other "repeated spaces", such as multiple target spaces 1, the scene mode batch setting of multiple intelligent devices 10 in multiple target spaces 1 is realized, saving manual setting time and improving batch setting efficiency. The scene mode can conveniently and accurately define the positional relationship between the smart devices 10 , and the position of the smart device 10 is not bound to the layout and size of the space where the smart device 10 is located, thereby taking into account both the accuracy and flexibility of the position setting.
[0109] So far, the technical solution of the present invention has been described in conjunction with the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to the above-mentioned specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A scene mode setting method, characterized in that: The method is used to apply a scene mode to a target space, wherein the scene mode information of the scene mode includes device types of multiple scene smart devices, location information between the multiple scene smart devices, and setting information of the scene mode, and the target space includes multiple smart devices constituting a wireless mesh network. The scene mode setting method includes: Step S1, selecting an origin device from the plurality of smart devices in the target space, detecting device types of the plurality of smart devices and relative position information relative to the origin device; Step S2: If the device types of the plurality of smart devices and the relative position information with respect to the origin device match the scene mode information of the scene mode, then the scene modes of the plurality of matching smart devices are set based on the scene mode information.
2. The scene mode setting method according to claim 1, characterized in that: The step S1 includes Step S11, counting the number of the smart devices of each device type in the target space, and selecting the smart devices of the device type with the least number as the origin devices.
3. The scene mode setting method according to claim 1, characterized in that: The step S1 includes Step S12, respectively calculating the sum of the signal strengths between the plurality of smart devices and the remaining smart devices in the target space, and selecting the smart device with the largest sum of signal strengths as the origin device.
4. The scene mode setting method according to claim 1, characterized in that: The scene mode information of the scene mode includes scene origin device information, and the step S1 includes Step S13: selecting the corresponding smart device in the target space as the origin device according to the scene origin device information.
5. The scene mode setting method according to any one of claims 2 to 4, characterized in that: The step S2 includes Step S21, determining whether there are smart devices in the target space with the same number and device type as the multiple scene smart devices in the scene mode information, if yes, continue matching, if not, the matching fails. Step S22, determining whether the relative position information of at least one of the multiple smart devices matched in step 21 relative to the origin device matches the position information between the scene smart devices in the scene mode information, if so, the match is successful, if not, the match fails.
6. The scene mode setting method according to any one of claims 2 to 4, characterized in that: The scene mode also includes multiple sub-scene modes, and the scene mode information of the sub-scene modes includes device types of multiple sub-scene smart devices, location information between the multiple sub-scene smart devices, and setting information of the sub-scene modes.
7. The scene mode setting method according to claim 1, characterized in that: The relative position information of the smart device includes relative distance information and / or relative direction information between the smart device and the origin device.
8. The scene mode setting method according to claim 7, characterized in that: The following steps are also included: Different judgment thresholds are set for smart devices of different device types, and the judgment thresholds are used to judge whether the relative position information matches the position information between the multiple scene smart devices.
9. The scene mode setting method according to claim 8, characterized in that: The judgment threshold is a relative distance threshold and / or a relative direction threshold.
10. An intelligent electrical system, applied to a target space containing a plurality of repeated or similar spatial units, characterized in that: The target space includes a plurality of intelligent devices constituting a wireless mesh network, and the intelligent electrical system includes: A storage unit storing scene mode information of the scene mode including device types of a plurality of scene smart devices, location information between the plurality of scene smart devices, and setting information of the scene mode; an origin detection module, which selects an origin device from the plurality of smart devices in the target space, and detects device types of the plurality of smart devices and relative position information relative to the origin device; The scene setting module sets the scene modes of the matched multiple smart devices based on the scene mode information if the device types and relative position information of the multiple smart devices relative to the origin device match the scene mode information of the scene mode.
