Synchronous control method and system for smart home, medium and product
By identifying and utilizing the smart home platform with step-by-step execution identifiers and communication links, the problem of differences in control methods for different smart home devices has been solved, achieving unified management and convenient control, and improving user experience and device security.
Patent Information
- Application Number
- CN202411594475.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-09
- Publication Date
- 2025-01-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Different brands or models of smart home products have different control methods, which means that users need to use multiple applications to control them, increasing the complexity of operation.
By acquiring synchronous control commands and identifying step-by-step execution identifiers, the target smart home platform identifies communication links, and synchronously controls smart home devices based on step-by-step execution identifiers and communication links. Devices supporting the Matter protocol can directly access the platform, while non-Matter protocol devices can be indirectly connected through a gateway. Command transmission is segmented and encrypted, and user activities and device status are monitored to optimize control.
It enables unified management and interconnection of different smart home devices, reduces user operation steps and time costs, improves control convenience, enhances security and privacy protection, reduces energy consumption, and extends device lifespan.
Smart Images

Figure CN119270669A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent control technology, and in particular to a synchronous control method, control system, medium and product of a smart home. Background Art
[0002] As people's living standards improve, their requirements for the quality of home life are getting higher and higher. Smart homes meet people's pursuit of high-quality life by providing convenient and intelligent home experiences. For example, users can remotely control various smart homes through devices such as smartphones, tablets or voice assistants, thereby improving life convenience and living comfort. Therefore, smart homes have gradually become an indispensable part of modern families.
[0003] However, due to the wide variety of manufacturers and products in the smart home field, different smart home manufacturers often define how smart homes exchange information and communicate based on their own technical standards and protocols. This diversity leads to differences in control methods for smart home products of different brands or models. Therefore, users may need to use multiple different applications to control various smart homes in their homes, increasing the complexity of the operation process. Summary of the invention
[0004] In order to improve the convenience for users to synchronously control smart homes, embodiments of the present application provide a synchronous control method, control system, medium and product for a smart home.
[0005] In a first aspect, the present application provides a synchronous control method for a smart home, which adopts the following technical solution: A synchronous control method for a smart home, comprising: Acquire a synchronization control instruction, and identify a step-by-step execution identifier contained in the synchronization control instruction; Based on each step-by-step execution identifier and the synchronization control instruction, obtain a step-by-step execution instruction corresponding to each step-by-step execution identifier; Identify the smart home device to be executed corresponding to each step-by-step execution identifier and the communication link corresponding to each smart home device to be executed from the constructed target smart home platform; Each step-by-step execution instruction is fed back to the corresponding smart home device to be executed through the corresponding communication link, so as to achieve synchronous control of all the smart home devices to be executed corresponding to the synchronous control instruction.
[0006] By adopting the above technical scheme, it is convenient to identify each step-by-step execution instruction from the synchronous control instruction based on the step-by-step execution identifier, and the step-by-step execution instructions contained in the synchronous control instruction are distinguished by the step-by-step execution identifier, so as to improve the accuracy of dividing the synchronous control instructions. In addition, by identifying the communication link corresponding to each step-by-step execution identifier from the target smart home platform, and then controlling the corresponding smart home device to be executed based on the communication link corresponding to each step-by-step execution instruction, it is convenient to improve the security when performing step-by-step control on different smart home devices to be executed. After receiving the step-by-step execution instruction, all the smart home devices to be executed will operate according to the requirements of the synchronous control instruction. The user does not need to perform operation settings for each smart home device to be executed, which reduces the operation steps and time cost of the user when controlling the smart home devices, thereby facilitating the improvement of the convenience of the user when performing synchronous control of the smart home.
[0007] In one possible implementation, the process of building a target smart home platform includes: Acquire communication compatibility data of the smart home device to be controlled, determine whether the communication compatibility data contains a Matter protocol identifier, and determine the connection type of the smart home device to be controlled containing the Matter protocol identifier as a direct connection type, and determine the connection type of the smart home device to be controlled that does not contain the Matter protocol identifier as an indirect connectivity; When the connection type of the smart home device to be controlled is a direct connection type, directly connecting the smart home device to be controlled to a preset smart home platform; When the connection type of the smart home device to be controlled is an indirect connection type, a target gateway is identified from the preset smart home platform, and the smart home device to be controlled is connected to the target gateway, where the target gateway is a gateway that supports the Matter protocol.
[0008] By adopting the above technical solution, by identifying whether the smart home device to be controlled accepts the Matter protocol identifier, it is easy to ensure that the smart home device to be controlled that accepts the Matter protocol can directly access the preset smart home platform. In addition, for the smart home devices to be controlled that do not accept the Matter protocol, by identifying and connecting to the target gateway that supports the Matter protocol, indirect connection of the smart home devices to be controlled that do not accept the Matter protocol is achieved. Through this flexible connection method, users do not need to worry about the limitations of device brands or models, and can easily include all smart home devices to be controlled into a unified management platform. Through this platform, it is easy to achieve interconnection between smart home devices to be controlled of different brands and models, which greatly reduces the control problems caused by device incompatibility.
[0009] In a possible implementation, when the connection type corresponding to the smart home device to be executed is an indirect connection type, the step-by-step execution instruction is fed back to the corresponding device to be executed through the corresponding communication link, including: Identify the execution time identifier contained in the step-by-step execution instruction, and determine the target segmentation strategy corresponding to the execution time identifier based on the mapping relationship between the execution time identifier and the preset segmentation strategy, wherein the preset segmentation strategy mapping relationship is the corresponding relationship between the execution time identifier and the target segmentation strategy; The step-by-step execution instruction is segmented based on the target segmentation strategy to obtain a plurality of segmentation instructions, and a segmentation sequence number corresponding to each segmentation instruction is determined based on a segmentation order; Determine a random number sequence based on each segmentation sequence number, and determine a concatenated password based on the random number sequence; Feedback the segmentation instruction corresponding to each segmentation sequence and the splicing password to the corresponding device to be executed through the communication link according to the random number sequence; Wherein, after feeding back the segmentation instruction corresponding to each segmentation sequence number and the concatenation password to the corresponding device to be executed through the communication link according to the random number sequence, the method further includes: After each segmented instruction is spliced together according to the splicing password, a target step-by-step execution instruction is obtained to control the device to be executed to run according to the target step-by-step execution instruction.
[0010] By adopting the above technical solution, when the connection type corresponding to the smart home device to be executed is an indirect connection type, the step-by-step execution instruction is divided into multiple segmented instructions, and the segmented instructions are transmitted in a randomly generated sequence, which greatly reduces the risk of relevant attackers intercepting and tampering with the step-by-step execution instructions, thereby facilitating the improvement of the security of the step-by-step execution instructions during transmission. In addition, by transmitting the splicing password generated according to the random number series, it is convenient to improve the accuracy of splicing multiple segmented instructions.
[0011] In a possible implementation, when an access instruction is detected, the method further includes: Identifying a corresponding access cycle range based on the access instruction; Determining instruction content to be displayed from instruction log data based on the access cycle range; Identifying sensitive data in the instruction content to be displayed, and hiding the sensitive data in the instruction content to be displayed to obtain encrypted instruction content to be displayed; Identify the access rights and access requirements included in the access instruction, and determine whether the access instruction meets a preset access condition based on the access rights and the access requirements, wherein the preset access condition is that the access rights are higher than a preset access rights and the access requirements include the sensitive data; When the access instruction satisfies the preset access condition, the content of the instruction to be displayed is fed back; When the access instruction does not satisfy the preset access condition, the encrypted instruction content to be displayed is fed back.
[0012] By adopting the above technical solution, sensitive data in the content of the instruction to be displayed is automatically identified and hidden, thereby avoiding direct exposure of sensitive data. In addition, by comparing the access rights and access requirements in the access instruction with the preset access conditions, it is convenient to achieve fine control of the access behavior. Only when the access rights are higher than the preset rights and the access requirements clearly include sensitive data, the unencrypted content of the instruction to be displayed is allowed to be displayed, which is convenient to effectively prevent low-authority users or illegal users from accessing sensitive data, thereby ensuring the security of sensitive data.
[0013] In one possible implementation, the method further includes: Acquire a scene image and perform feature recognition on the scene image, and when it is detected that the user is in a moving state, acquire the real-time moving position of the user; The real-time moving area of the user is determined according to the real-time moving position, and the ambient brightness corresponding to the real-time moving area is identified. When the ambient brightness is lower than a preset brightness, a brightness control instruction is generated to control the lighting equipment in the real-time moving area.
[0014] By adopting the above technical solution, feature recognition is performed on the on-site image to facilitate real-time monitoring of the user's movement status and intelligent judgment of the ambient brightness of the user's area. When the ambient brightness is insufficient, the lighting equipment can be automatically adjusted to ensure that the lighting conditions in the user's area are comfortable, thereby improving the user's living or use experience.
[0015] In one possible implementation, the method further includes: When it is detected that the user has not entered the detection area within a preset time period, identifying the smart home device corresponding to the detection area and the working status of each smart home device; If there is an adjustable smart home device, and the working state of the adjustable smart home device is the running state, a standby instruction is generated to control the adjustable smart home device to enter the standby state.
[0016] By adopting the above technical solution, by monitoring the user's activity range and the working status of each smart home device, when the user does not enter a certain area for a long time, the smart home devices in the area can be automatically put into standby mode, thereby effectively reducing unnecessary energy consumption. In addition, since long-term operation may cause smart home devices to overheat, wear and other problems, which may affect the service life of the equipment, by automatically putting the equipment into standby mode, it is convenient to reduce the operating time of the equipment, thereby extending its service life.
[0017] In a second aspect, the present application provides a control system, which adopts the following technical solution: A control system, the control system comprising: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above-mentioned smart home synchronization control method.
[0018] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium includes: a computer program that can be loaded by a processor and execute the above-mentioned smart home synchronization control method.
[0019] In a fourth aspect, the present application provides a computer program product, which adopts the following technical solution: A computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned smart home synchronization control method.
[0020] In summary, the present application includes at least one of the following beneficial technical effects: Based on the step-by-step execution identifier, it is convenient to identify each step-by-step execution instruction from the synchronous control instruction. The step-by-step execution identifier is used to distinguish the step-by-step execution instructions contained in the synchronous control instruction, so as to improve the accuracy of dividing the synchronous control instructions. In addition, by identifying the communication link corresponding to each step-by-step execution identifier from the target smart home platform, and then controlling the corresponding smart home device to be executed based on the communication link corresponding to each step-by-step execution instruction, it is convenient to improve the security when performing step-by-step control on different smart home devices to be executed. After receiving the step-by-step execution instruction, all smart home devices to be executed will operate according to the requirements of the synchronous control instruction. The user does not need to perform operation settings for each smart home device to be executed, which reduces the operation steps and time cost of the user when controlling the smart home device, thereby facilitating the improvement of the convenience of the user in synchronously controlling the smart home.
[0021] By monitoring the user's activity range and the working status of each smart home device, when the user does not enter a certain area for a long time, the smart home devices in that area can be automatically put into standby mode, thereby effectively reducing unnecessary energy consumption. In addition, since long-term operation may cause smart home devices to overheat, wear and other problems, which may affect the service life of the equipment, by automatically putting the equipment into standby mode, it is convenient to reduce the operating time of the equipment, thereby extending its service life. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flowchart of a synchronous control method of a smart home in an embodiment of the present application; Figure 2 This is a schematic diagram of an automatic control process in an embodiment of the present application; Figure 3 It is a structural schematic diagram of a control system in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following is combined with Figures 1 to 3 This application is described in further detail.
[0024] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of this application.
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] It should be noted that in the optional embodiments of the present application, the object information and other related data involved, when the embodiments in the present application are applied to specific products or technologies, need to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of the present application involve data related to the object, it needs to be obtained with the authorization and consent of the object, the authorization and consent of the relevant departments, and in compliance with the relevant laws, regulations and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information needs to obtain the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained. The embodiments also need to be implemented with the authorization and consent of the object.
[0027] Specifically, the embodiment of the present application provides a synchronous control method for a smart home, which is executed by a control system, and the control system can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and the embodiment of the present application does not limit this.
[0028] refer to Figure 1 , Figure 1 : is a flow chart of a synchronous control method of a smart home in an embodiment of the present application, the method comprises steps S110 to S140, wherein: Step S110: Acquire a synchronous control instruction, and identify a step-by-step execution identifier contained in the synchronous control instruction.
[0029] Specifically, the synchronous control instruction is an instruction issued by a user or consumer through a remote terminal device, a voice control device or a remote control sensor, which is used to control smart home devices, wherein the smart home devices may be smart lights, smart air conditioners, smart curtains, smart speakers or smart home appliances, etc., wherein personalized lighting effects can be achieved by controlling the brightness, color and switch status of smart lights; personalized temperature control effects can be achieved by controlling the temperature, wind speed and working mode of smart air conditioners; automatic shading and privacy protection can be achieved by controlling the open state, closed state and opening degree of smart curtains; more convenient music entertainment and communication functions can be provided by controlling the music playing state, radio listening state and phone answering state of smart speakers; richer entertainment and information services can be provided by controlling smart TVs in terms of switching channels, adjusting volume and playing content. The specific smart home devices are not specifically limited in the embodiments of the present application, as long as they are smart home devices that users or consumers need to control intelligently.
[0030] When a synchronous control instruction is received from a user, it generally indicates that the user needs to control multiple smart home devices at the same time. For example, the application scenarios of the synchronous control instruction include the need to switch scene modes, such as away mode, home mode or movie mode. The smart home devices that need to be controlled in different modes are different, and the way of controlling each smart home device is also different. For example, in away mode, the user can set one button to turn off all lights, curtains and unnecessary electrical appliances; the application scenarios of the synchronous control instruction also include conditional triggering or remote control. For example, when the application scenario is conditional triggering, the user can set it to automatically turn off the lights in all rooms at 10 pm. When the application scenario is remote control, the user can start the smart air conditioner at home on the way home from get off work.
[0031] Since the synchronous control instruction is generally used to control multiple smart home devices, the step-by-step execution identifier contained in the synchronous control instruction is related to the corresponding smart home device. The specific step-by-step execution identifier is not specifically limited in the embodiment of the present application and can be set by relevant technical personnel as long as different smart home devices can be distinguished. After receiving the synchronous control instruction sent by the user, the control system can analyze the application scenario corresponding to the synchronous control instruction, and then determine the multiple step-by-step execution identifiers corresponding to the synchronous control instruction based on the user's preset scenario information, wherein the preset scenario information is the user's application scenario setting according to the smart home devices contained in the actual living environment and uploaded to the control system.
[0032] Step S120: obtaining a step-by-step execution instruction corresponding to each step-by-step execution identifier based on each step-by-step execution identifier and the synchronous control instruction.
[0033] Specifically, a synchronous control instruction usually refers to a series of operation instructions executed in an execution order and timing, wherein different step-by-step execution identifiers correspond to a step-by-step execution instruction, and the synchronous control instruction can be divided based on the identified step-by-step execution identifier to obtain the step-by-step execution instruction corresponding to each step-by-step execution identifier. Each step-by-step execution instruction corresponds to a different smart home device. For example, the application scenario corresponding to the synchronous control instruction is away mode, that is, all lights, curtains and air conditioners need to be turned off with one click. At this time, the light identifier, curtain identifier and air conditioner identifier corresponding to the synchronous control instruction can be identified, and then based on the identified light identifier, curtain identifier and air conditioner identifier, the synchronous control instruction is divided into step-by-step execution instructions corresponding to lights, which are used to control the smart lights to be turned off; step-by-step execution instructions corresponding to curtains, which are used to control the smart curtains to be turned off; and step-by-step execution instructions corresponding to air conditioners, which are used to control the smart curtains to be turned off.
[0034] Step S130: identifying the to-be-executed smart home device corresponding to each step-by-step execution identifier and the communication link corresponding to each to-be-executed smart home device from the constructed target smart home platform.
[0035] Specifically, by constructing a target smart home platform, communication and interconnection between different smart home devices can be achieved. For example, the execution order of the step-by-step execution instructions corresponding to the light identification, the step-by-step execution instructions corresponding to the curtain identification, and the step-by-step execution instructions corresponding to the air conditioner identification in the synchronous control instructions is to turn off the air conditioner first, then close the curtains, and finally turn off the lights. At this time, after the smart air conditioner completes the closing action, it can directly send a completion instruction to the smart curtains. After receiving the completion instruction sent by the smart air conditioner, the smart curtains start to close the smart curtains. After the smart curtains complete the closing action, they can send a completion instruction to the smart lights. After receiving the completion instruction sent by the smart curtains, the smart lights start to execute the light closing operation.
[0036] The target smart home platform includes multiple smart home devices. The construction process of the target smart home platform can be: Obtain communication compatibility data of the smart home device to be controlled, determine whether the communication compatibility data contains a Matter protocol identifier, and determine the connection type of the smart home device to be controlled that contains the Matter protocol identifier as a direct connection type, and determine the connection type of the smart home device to be controlled that does not contain the Matter protocol identifier as an indirect connectivity; when the connection type of the smart home device to be controlled is a direct connection type, directly connect the smart home device to be controlled to a preset smart home platform; when the connection type of the smart home device to be controlled is an indirect connection type, identify the target gateway from the preset smart home platform, connect the smart home device to be controlled to the target gateway, and the target gateway is a gateway that supports the Matter protocol.
[0037] Specifically, the Matter protocol is an open standard smart home protocol that provides unified device discovery, security, data model and communication protocol. Smart home devices to be controlled that follow the Matter protocol can use the same "language" to communicate, thereby facilitating the interconnection between different smart home devices. Therefore, before connecting the smart home device to be controlled to the preset smart home platform, it is necessary to determine whether the communication compatibility data of the smart home device to be controlled contains the Matter protocol identifier. When the communication compatibility data of the smart home device to be controlled contains the Matter protocol identifier, it can be determined that the smart home device to be controlled supports the Matter protocol. At this time, the smart home device to be controlled can be directly connected to the preset smart home platform. The specific connection method is to first keep the smart home device to be controlled in a connectable state, and then perform basic configuration before pairing and connecting it through the preset smart home platform.
[0038] When the communication compatibility data of the smart home device to be controlled does not contain the Matter protocol identifier, it indicates that the smart home device to be controlled cannot be added to the preset smart home platform by direct connection. At this time, the target gateway that supports the Matter protocol can be identified from the preset smart home platform, and the connection between the indirect connection type of the smart home device to be controlled and the target gateway can be established. The connection between the indirect connection type of the smart home to be controlled and the preset smart home platform can be realized. Through this flexible connection method, users do not need to worry about the restrictions on device brands or models, and can easily include all smart home devices to be controlled into a unified management platform. The preset smart home platform may correspond to multiple gateways. When identifying the target gateway from multiple gateways, it can be identified by analyzing whether the gateway communication compatibility data of each gateway contains the Matter protocol identifier. The specific identification method is not specifically limited in the embodiments of this application.
[0039] The constructed target smart home platform includes a communication link corresponding to each smart home device to be executed, and communication with the smart home to be executed can be achieved through the corresponding communication link.
[0040] Step S140: Feedback each step-by-step execution instruction to the corresponding smart home device to be executed through the corresponding communication link, so as to achieve synchronous control of all the smart home devices to be executed corresponding to the synchronous control instruction.
[0041] Specifically, for any step-by-step execution instruction, the communication link of the step-by-step execution instruction and the smart home device to be executed can be determined according to the corresponding step-by-step execution identifier. The smart home device to be executed and the corresponding communication link constitute a to-be-executed path. The step-by-step execution instruction is sent to the corresponding to-be-executed path to control the smart home device to be executed. Based on the above method, all the to-be-executed smart home devices corresponding to the synchronous control instruction can be synchronously controlled.
[0042] For the embodiments of the present application, each step-by-step execution instruction can be easily identified from the synchronous control instruction based on the step-by-step execution identifier, and the step-by-step execution instructions contained in the synchronous control instruction are distinguished by the step-by-step execution identifier, so as to improve the accuracy of dividing the synchronous control instructions. In addition, by identifying the communication link corresponding to each step-by-step execution identifier from the target smart home platform, and then controlling the corresponding smart home device to be executed based on the communication link corresponding to each step-by-step execution instruction, it is convenient to improve the security when performing step-by-step control on different smart home devices to be executed. After receiving the step-by-step execution instruction, all smart home devices to be executed will operate according to the requirements of the synchronous control instruction. The user does not need to perform operation settings for each smart home device to be executed, which reduces the operation steps and time cost of the user when regulating the smart home devices, thereby facilitating the improvement of the convenience of the user when performing synchronous control of the smart home.
[0043] Furthermore, when the connection type corresponding to the smart home device to be executed is an indirect connection type, the step-by-step execution instruction is fed back to the corresponding device to be executed through the corresponding communication link, which may specifically include: Identify the execution time identifier contained in the step-by-step execution instruction, and determine the target segmentation strategy corresponding to the execution time identifier based on the mapping relationship between the execution time identifier and the preset segmentation strategy. The preset segmentation strategy mapping relationship is the corresponding relationship between the execution time identifier and the target segmentation strategy.
[0044] Specifically, since the indirect connection type of smart home device to be executed is connected to the preset smart home platform through the target gateway, there may be a possibility of being intercepted or tampered with during the instruction transmission process. At this time, the step-by-step execution instruction can be encrypted to improve the security of the step-by-step execution instruction during transmission. The execution time identifier is used to characterize the execution time of the step-by-step execution instruction. Different execution time identifiers correspond to different execution times. After determining the execution time corresponding to the step-by-step execution instruction, the execution waiting time is determined based on the current time and the execution time. Different execution waiting times correspond to different segmentation methods. The longer the execution waiting time, the more parts the step-by-step execution will be segmented. For example, when the execution waiting time is 10 minutes, the step-by-step execution instruction can be segmented into 10 parts; when the execution waiting time is 20 minutes, the step-by-step execution instruction can be segmented into 15 parts. Based on the preset segmentation strategy mapping relationship, the target segmentation strategy corresponding to any execution time identifier can be determined. The preset segmentation strategy mapping relationship can be determined by relevant staff based on historical experimental data and uploaded to the control system. The specific content is not specifically limited in the embodiment of this application.
[0045] The step-by-step execution instruction is segmented based on the target segmentation strategy to obtain a plurality of segmentation instructions, and a segmentation sequence number corresponding to each segmentation instruction is determined based on the segmentation order; a random number sequence is determined based on each segmentation sequence number, and a splicing password is determined based on the random number sequence.
[0046] Specifically, after the step-by-step execution instructions are segmented according to the determined target segmentation strategy, each segmentation result can be determined as a segmentation instruction. Different segmentation instructions correspond to different segmentation numbers, and the segmentation numbers can be used to distinguish different segmentation instructions.
[0047] Generate corresponding random number sequences based on all segmentation numbers. For example, after segmenting the step-by-step execution instruction, 4 segmentation instructions are obtained, and the segmentation numbers are 1, 2, 3, and 4. The random number sequence generated based on the segmentation number can be 4231. The random number sequence corresponding to the segmentation number can be determined by a preset random algorithm. The specific preset random algorithm is not specifically limited in the embodiment of the present application. In order to facilitate the splicing of multiple segmentation instructions, it is necessary to determine the corresponding splicing password. For example, the splicing password corresponding to the random number sequence 4231 is 1234, and the splicing password is related to the cutting order of each segmentation instruction.
[0048] According to the random number sequence, the segmentation instruction and the splicing password corresponding to each segmentation number are fed back to the corresponding device to be executed through the communication link; wherein, after the segmentation instruction and the splicing password corresponding to each segmentation number are fed back to the corresponding device to be executed through the communication link according to the random number sequence, it also includes: after splicing each segmentation instruction according to the splicing password, a target step-by-step execution instruction is obtained to control the device to be executed to run according to the target step-by-step execution instruction.
[0049] Specifically, after determining the random number sequences corresponding to the multiple segmentation instructions, the segmentation instructions corresponding to the segmentation sequence numbers can be fed back to the device to be executed according to the order of the random number sequences at a preset sending frequency, wherein the preset sending frequency can be to send a segmentation instruction every 1 minute, or to send a segmentation instruction every 100 seconds. By sending the segmentation instructions at different sending times, it is also convenient to improve the security of the step-by-step execution instructions during transmission. In the process of sending the segmentation instructions, the splicing password can also be fed back to the execution device.
[0050] When it is detected that all the segmentation instructions have been fed back to the device to be executed, the device to be executed is controlled to splice the received segmentation instructions according to the splicing password to obtain the target step-by-step execution instructions, and then run the corresponding operation according to the target step-by-step execution instructions.
[0051] Furthermore, when an access instruction is detected, the method provided by the embodiment of the present application further includes: Based on the access instruction, the corresponding access cycle range is identified; based on the access cycle range, the content of the instruction to be displayed is determined from the instruction log data; the sensitive data in the content of the instruction to be displayed is identified, and the sensitive data in the content of the instruction to be displayed is hidden to obtain the encrypted content of the instruction to be displayed; the access rights and access requirements contained in the access instruction are identified, and according to the access rights and access requirements, it is determined whether the access instruction meets the preset access conditions, and the preset access conditions are that the access rights are higher than the preset access rights, and the access requirements contain sensitive data; when the access instruction meets the preset access conditions, the content of the instruction to be displayed is fed back; when the access instruction does not meet the preset access conditions, the encrypted content of the instruction to be displayed is fed back.
[0052] Specifically, an access instruction can be issued by a user through a terminal device, and the access cycle range is the content that the user needs to view. Based on the access cycle range, the instruction log data can be screened to extract the instruction content to be displayed corresponding to the access cycle range. The instruction log data contains the control instructions of all smart home devices in the historical time period corresponding to the access cycle range. The corresponding access cycle range can be identified from the access instruction by feature recognition. The specific method is not specifically limited in the embodiments of the present application.
[0053] By analyzing the contents of the instructions to be displayed, the user's usage habits, behavior trajectories, and even sensitive data such as the identity information of family members for each smart home device can be determined. Once these sensitive data are leaked, the user's personal privacy will not be guaranteed, and the user may also suffer unnecessary harassment or threats in life. The specific sensitive data can be set by the user and is not specifically limited in the embodiments of the present application. When it is detected that the contents of the instructions to be displayed contain sensitive data, the sensitive data can be covered by a preset covering mark to hide the sensitive data. The preset covering mark can be a covering character, or a covering background pattern, etc. The specific content is not specifically limited in the embodiments of the present application. As long as the sensitive data can be shielded, the sensitive data contained in the contents of the instructions to be displayed can be hidden, and the encrypted contents of the instructions to be displayed can be obtained. That is, the probability of leaking the user's personal privacy is small only by displaying the encrypted contents of the instructions to be displayed.
[0054] The complete content of the instruction to be displayed can only be accessed when the access instruction meets the preset access conditions, wherein the preset access conditions include access rights higher than the preset access rights and the access requirements contain sensitive data, wherein the access rights and access requirements in the access instruction can be determined by feature recognition, the access rights are related to the access account information, different access account information corresponds to different access rights, and the access requirements are the content that needs to be viewed, when the user's access rights are higher than the preset access rights and the access instruction contains the need to view sensitive data, the complete content of the instruction to be displayed will be fed back, otherwise the encrypted content of the instruction to be displayed will be fed back.
[0055] By automatically identifying sensitive data in the content of the instructions to be displayed and hiding it, direct exposure of sensitive data is avoided. In addition, by comparing the access rights and access requirements in the access instructions with the preset access conditions, it is convenient to achieve fine control over the access behavior. Only when the access rights are higher than the preset rights and the access requirements clearly include sensitive data, the unencrypted content of the instructions to be displayed is allowed to be displayed, which is convenient for effectively preventing low-privilege users or illegal users from accessing sensitive data, thereby ensuring the security of sensitive data.
[0056] Furthermore, in order to improve the user experience, the method provided in the embodiment of the present application further includes step S1 and step S2. Figure 2 As shown, where: Step S1: Acquire a scene image and perform feature recognition on the scene image. When it is detected that the user is in a moving state, obtain the user's real-time moving position.
[0057] Specifically, the on-site image can be collected by a camera acquisition device set up indoors and uploaded to the control system, and can also be collected by other image acquisition devices and uploaded to the control system. The specific method of obtaining the on-site image is not specifically limited in the embodiment of the present application. The human body features corresponding to the user can be identified from the on-site image by feature recognition, and then the user is continuously tracked based on the extracted human body features. Among them, deep learning technology, such as YOLO, SSD, etc., can be used for continuous tracking of human body features. The specific method is not specifically limited in the embodiment of the present application and can be selected or set by relevant technical personnel. According to the tracking results, it can be determined whether the user is in a mobile state. For example, if it is detected that the position of the human body features changes significantly in multiple consecutive frames of images, it can be determined that the user is in a mobile state. The method of identifying and judging whether the user is in a mobile state from the on-site image is not specifically limited in the embodiment of the present application.
[0058] Step S2: Determine the user's real-time moving area according to the real-time moving position, identify the ambient brightness corresponding to the real-time moving area, and when the ambient brightness is lower than the preset brightness, generate a brightness control instruction for controlling the lighting equipment in the real-time moving area.
[0059] Specifically, the real-time mobile position of the user is the position of the human body feature corresponding to the user at the current moment in the scene image, that is, the real-time position in the room. The real-time mobile area is an area with the real-time mobile position as the center and the preset distance as the radius, wherein the preset distance can be 1 meter or 1.5 meters, and the specific distance is not specifically limited in the embodiment of the present application. When identifying the ambient brightness corresponding to the real-time mobile area, the color scene image can be first converted into a grayscale scene image, and then the average brightness value of the entire grayscale scene image is calculated, and the brightness histogram corresponding to the grayscale scene image is generated to understand the brightness distribution corresponding to the entire real-time mobile area. The specific brightness recognition method is not specifically limited in the embodiment of the present application. After determining the ambient brightness corresponding to the real-time mobile area, the ambient brightness can be compared with the preset brightness. When the ambient brightness is lower than the preset brightness, it is necessary to increase the ambient brightness corresponding to the real-time mobile area by generating a brightness control instruction until the ambient brightness corresponding to the real-time mobile area is not lower than the preset brightness. The specific preset brightness is not specifically limited in the embodiment of the present application.
[0060] Furthermore, the method provided in the embodiment of the present application also includes: When it is detected that the user has not entered the detection area within a preset time period, the smart home devices corresponding to the detection area and the working status of each smart home device are identified; if there is an adjustable smart home device and the working status of the adjustable smart home device is the running state, a standby instruction is generated to control the adjustable smart home device to enter the standby state.
[0061] Specifically, the duration corresponding to the preset time period can be 60 minutes or 50 minutes. The specific duration is not specifically limited in the embodiment of the present application. The regional images corresponding to each detection area can be analyzed to determine whether the user has entered the corresponding detection area. For any detection area, if the user is not detected from the regional image within the preset time period, it is necessary to identify the working state of each smart home device in the detection area. The working state of the smart home device includes the running state and the standby state. When it is detected that the user has not entered the detection area for a long period of time, the working state of the smart home device in the detection area can be adjusted, that is, the working state of the smart home device can be adjusted from the running state to the standby state to reduce the continuous working time of the smart home device. However, not all smart home devices are adjusted to the standby state, but the working state of the adjustable smart home device is adjusted to the standby state. The adjustable home device can be a lighting device, a stereo, a television, etc., which can be set by the user and uploaded to the control system.
[0062] By monitoring the user's activity range and the working status of each smart home device, when the user does not enter a certain area for a long time, the smart home devices in the area can be automatically put into standby mode, thereby effectively reducing unnecessary energy consumption.
[0063] In an embodiment of the present application, a control system is provided, such as Figure 3 As shown, Figure 3 The control system 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the control system 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the control system 300 does not constitute a limitation on the embodiments of the present application.
[0064] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0065] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.
[0066] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0067] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.
[0068] The control system includes, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The control system shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0069] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0070] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method in any of the above embodiments is implemented.
[0071] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0072] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A synchronous control method for a smart home, characterized in that: include: Acquire a synchronization control instruction, and identify a step-by-step execution identifier contained in the synchronization control instruction; Based on each step-by-step execution identifier and the synchronization control instruction, obtain a step-by-step execution instruction corresponding to each step-by-step execution identifier; Identify the smart home device to be executed corresponding to each step-by-step execution identifier and the communication link corresponding to each smart home device to be executed from the constructed target smart home platform; Each step-by-step execution instruction is fed back to the corresponding smart home device to be executed through the corresponding communication link, so as to achieve synchronous control of all the smart home devices to be executed corresponding to the synchronous control instruction.
2. A synchronous control method for a smart home according to claim 1, characterized in that: The construction process of the target smart home platform includes: Acquire communication compatibility data of the smart home device to be controlled, determine whether the communication compatibility data contains a Matter protocol identifier, and determine the connection type of the smart home device to be controlled containing the Matter protocol identifier as a direct connection type, and determine the connection type of the smart home device to be controlled that does not contain the Matter protocol identifier as an indirect connectivity; When the connection type of the smart home device to be controlled is a direct connection type, directly connecting the smart home device to be controlled to a preset smart home platform; When the connection type of the smart home device to be controlled is an indirect connection type, a target gateway is identified from the preset smart home platform, and the smart home device to be controlled is connected to the target gateway, where the target gateway is a gateway that supports the Matter protocol.
3. A synchronous control method for smart home according to claim 2, characterized in that: When the connection type corresponding to the smart home device to be executed is an indirect connection type, the step-by-step execution instruction is fed back to the corresponding device to be executed through the corresponding communication link, including: Identify the execution time identifier contained in the step-by-step execution instruction, and determine the target segmentation strategy corresponding to the execution time identifier based on the mapping relationship between the execution time identifier and the preset segmentation strategy, wherein the preset segmentation strategy mapping relationship is the corresponding relationship between the execution time identifier and the target segmentation strategy; The step-by-step execution instruction is segmented based on the target segmentation strategy to obtain a plurality of segmentation instructions, and a segmentation sequence number corresponding to each segmentation instruction is determined based on a segmentation order; Determine a random number sequence based on each segmentation sequence number, and determine a concatenated password based on the random number sequence; Feedback the segmentation instruction corresponding to each segmentation sequence and the splicing password to the corresponding device to be executed through the communication link according to the random number sequence; Wherein, after feeding back the segmentation instruction corresponding to each segmentation sequence number and the splicing password to the corresponding device to be executed through the communication link according to the random number sequence, it also includes: After each segmented instruction is spliced together according to the splicing password, a target step-by-step execution instruction is obtained to control the device to be executed to run according to the target step-by-step execution instruction.
4. The synchronous control method of a smart home according to claim 1, characterized in that: When an access instruction is detected, it also includes: Identifying a corresponding access cycle range based on the access instruction; Determining instruction content to be displayed from instruction log data based on the access cycle range; Identifying sensitive data in the instruction content to be displayed, and hiding the sensitive data in the instruction content to be displayed to obtain encrypted instruction content to be displayed; Identify the access rights and access requirements included in the access instruction, and determine whether the access instruction meets a preset access condition based on the access rights and the access requirements, wherein the preset access condition is that the access rights are higher than a preset access rights and the access requirements include the sensitive data; When the access instruction satisfies the preset access condition, the content of the instruction to be displayed is fed back; When the access instruction does not satisfy the preset access condition, the encrypted instruction content to be displayed is fed back.
5. The synchronous control method of a smart home according to claim 1, characterized in that: Also includes: Acquire a scene image and perform feature recognition on the scene image, and when it is detected that the user is in a moving state, acquire the real-time moving position of the user; The real-time moving area of the user is determined according to the real-time moving position, and the ambient brightness corresponding to the real-time moving area is identified. When the ambient brightness is lower than a preset brightness, a brightness control instruction is generated to control the lighting equipment in the real-time moving area.
6. A synchronous control method for a smart home according to claim 1, characterized in that: Also includes: When it is detected that the user has not entered the detection area within a preset time period, identifying the smart home device corresponding to the detection area and the working status of each smart home device; If there is an adjustable smart home device, and the working state of the adjustable smart home device is the running state, a standby instruction is generated to control the adjustable smart home device to enter the standby state.
7. A control system, characterized in that: The control system includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a smart home synchronization control method according to any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: include: A computer program is stored which can be loaded by a processor and executes a synchronous control method for a smart home as described in any one of claims 1-6.
9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of a synchronous control method for a smart home according to any one of claims 1 to 6.