Joint control method and apparatus for smart home system, and smart home system

By assigning identifiers to the total home device and generating alarm information in preset scenarios, the problem of information sharing among different home smart devices is solved, and information sharing and security prevention across families is realized.

WO2025152669A1PCT designated stage expired Publication Date: 2025-07-24GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/138956
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-19
Filing Date
2024-12-12
Publication Date
2025-07-24

AI Technical Summary

Technical Problem

Information cannot be shared between smart devices in different households in existing smart home systems, resulting in serious community security issues.

Method used

By assigning a unique identifier to each home total device, it subscribes to the home's theme service, and generates alarm information when the preset scenario is triggered, publishes it to the theme service to control the target smart home device to execute preset action instructions.

Benefits of technology

It realizes information sharing of smart home devices across families, can prevent safety hazards in a timely manner and improves the community's disaster prevention and mitigation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024138956_24072025_PF_FP_ABST
    Figure CN2024138956_24072025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a joint control method and apparatus for a smart home system, and a smart home system. The joint control method is applied to a server of a smart home system, and the smart home system further comprises a plurality of household master devices, wherein each household master device corresponds to one household, and each household master device is in communication connection with a plurality of smart home devices in a corresponding household. The joint control method for the smart home system comprises: the server allocating an identifier to each household master device, such that each household master device subscribes to a theme service of at least one household by means of the identifier; and when a preset scene is triggered, the server generating alarm information and issuing the alarm information to the theme service, such that the household master device subscribing to the theme service sends a preset action instruction to a target smart home device in the corresponding household, so as to control the target smart home device to execute the preset action instruction. The present disclosure solves the problem in the prior art that information cannot be shared between smart home devices in different households.
Need to check novelty before this filing date? Find Prior Art

Description

Joint control method and device of smart home system and smart home system Technical Field

[0001] This disclosure claims priority to Chinese patent application number 2024100833428, filed with the State Intellectual Property Office of China on January 19, 2024, entitled “Joint control method, device and smart home system for smart home system”, the entire contents of which are incorporated by reference into this disclosure. Background Art

[0002] The security of families and communities is a prerequisite for ensuring the quality of life of users. The interconnection and information sharing of smart devices in existing smart home systems are limited to one family. The smart home interconnection method is difficult to solve the problem of information sharing of smart devices between different families and at the community level. Information sharing is not timely enough, which may lead to more serious security problems in the community.

[0003] Therefore, a method for interconnecting smart home devices is needed to achieve cross-home communication and information sharing. Summary of the Invention

[0004] The main purpose of the present disclosure is to provide a joint control method, device, smart home system, computer-readable storage medium and server for a smart home system, so as to at least solve the problem in the prior art that information cannot be shared between smart home devices in different households.

[0005] To achieve the above objectives, according to one aspect of the present disclosure, a joint control method for a smart home system is provided, which is applied to a server of the smart home system. The smart home system also includes multiple home-based devices, each of which corresponds to a home, and the home-based devices are communicatively connected to multiple smart home devices in the corresponding home. The joint control method for the smart home system includes: the server assigning an identifier to each home-based device, so that each home-based device subscribes to at least one theme service of the home through the identifier, wherein the identifier represents the address of the home and is unique, and each identifier corresponds to a theme service, which is a preset push service representing a security theme; when a preset scenario is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the home-based device subscribed to the theme service sends a preset action instruction to a target smart home device in the corresponding home to control the target smart home device to execute the preset action instruction, wherein each preset scenario is a scenario in which at least one smart home device is abnormal, the alarm message is information representing the abnormality of the smart home device, and the preset action instruction is a preset action of the target smart home device to resolve the abnormality of the smart home device.

[0006] Optionally, before the server assigns an identifier to each of the home devices, the method further includes: the server receives a connection request from the smart home device of each of the homes through a target application, and establishes a communication connection with the smart home device; the server sets the preset scene for each of the homes, and generates the corresponding alarm information for each of the preset scenes.

[0007] Optionally, the server assigns an identifier to each of the home devices, including: when at least one of the smart home devices in each of the homes successfully connects to the network, the server assigns an identifier to each of the home devices.

[0008] Optionally, the preset action instruction is determined by the home master device through a one-to-one mapping relationship between the alarm information, the target smart home device and the preset action instruction, and sent to the target smart home device.

[0009] Optionally, the smart home system also includes at least one sensor, and when a preset scene is triggered, the server generates an alarm message, including: when the preset scene is triggered, the server receives the current environmental information sent by the sensor, and generates the alarm message based on the current environmental information, wherein the current environmental information is detected by the sensor and sent to the server and represents the current environmental information of the home.

[0010] Optionally, generating the alarm information based on the current environmental information includes: determining the home where the preset scene is located, and obtaining the identifier corresponding to the home main device corresponding to the home to obtain a target identifier; generating the alarm information using the target identifier and the current environmental information.

[0011] According to another aspect of the present disclosure, a joint control device for a smart home system is provided, which is applied to a server of the smart home system. The smart home system also includes multiple home main devices, each of which corresponds to a home. The home main device is communicatively connected to multiple smart home devices in the corresponding home. The joint control device of the smart home system includes: an allocation unit, configured to allocate an identifier to each home main device, so that each home main device subscribes to at least one theme service of the home through the identifier, wherein the identifier represents the address of the home and is unique, each identifier corresponds to a theme service, and the theme service is a preset push service representing a security theme; a publishing unit, configured to generate an alarm message when a preset scenario is triggered, and publish the alarm message to the theme service, so that the home main device subscribed to the theme service sends a preset action instruction to a target smart home device in the corresponding home, and further causes the target smart home device to execute the preset action instruction, wherein each preset scenario is a scenario in which at least one smart home device is abnormal, the alarm message is information representing the abnormality of the smart home device, and the preset action instruction is a preset action of the target smart home device to resolve the abnormality of the smart home device.

[0012] According to another aspect of the present disclosure, a smart home system is provided, comprising: a server, multiple home master devices, multiple smart home devices and sensors, each of the home master devices corresponding to a home, the home master device being communicatively connected with the multiple smart home devices in the corresponding home, and the server being configured to execute any one of the joint control methods for the smart home system.

[0013] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the joint control methods for the smart home system.

[0014] According to another aspect of the present disclosure, a server is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a program configured to execute any one of the joint control methods for the smart home system.

[0015] Applying the technical solution disclosed in the present invention, the server assigns an identifier to each household main device, so that each household main device subscribes to at least one household's theme service through the identifier, and each identifier corresponds to a theme service; when the preset scenario is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the household main device that subscribes to the theme service sends the preset action instruction to the target smart home device in the corresponding household, and further enables the target smart home device to execute the preset action instruction. In this way, when one of the families discovers a safety hazard, it is forwarded through the theme service, and the family that subscribes to the theme service can control the smart home device to execute the preset action instruction in time when receiving the alarm message to prevent the safety hazard. Compared with the prior art, the smart home system cannot realize the forwarding and sharing of information. The present invention can realize the forwarding and sharing of information of smart home devices in the community. Therefore, it can solve the problem in the prior art that it is difficult for smart home devices to realize information sharing between communities, and achieve the effect of information sharing between communities. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which constitute part of the present disclosure, are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are configured to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the accompanying drawings:

[0017] FIG1 is a schematic flow chart showing a joint control method for a smart home system according to an embodiment of the present disclosure;

[0018] FIG2 shows a schematic structural diagram of a smart home system provided by an embodiment of the present disclosure;

[0019] FIG3 shows a structural block diagram of a joint control device for a smart home system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present disclosure.

[0022] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are configured to distinguish similar objects, and are not necessarily configured to describe a specific order or sequential sequence. It should be understood that the numbers used in this manner are interchangeable where appropriate for the embodiments of the present disclosure described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0023] For ease of description, some nouns or terms involved in the embodiments of the present disclosure are explained below:

[0024] MQTT: MQTT is a message protocol based on the publish / subscribe paradigm under the iOS standard and is an instant messaging protocol.

[0025] As introduced in the background technology, the existing technology has the problem that information cannot be shared between smart home devices in different households. To solve the problem that information cannot be shared between smart home devices in different households, the embodiments of the present disclosure provide a joint control method, device, smart home system, computer-readable storage medium and server for a smart home system.

[0026] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.

[0027] In this embodiment, a joint control method for a smart home system running on a mobile terminal, a computer terminal, or a similar computing device is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] Figure 1 is a flow chart of a joint control method for a smart home system according to an embodiment of the present disclosure. As shown in Figure 1 , a server is applied to the smart home system, wherein the smart home system further comprises a plurality of home master devices, each of which corresponds to a home, and wherein the home master device is communicatively connected to the plurality of smart home devices in the corresponding home. The method comprises the following steps:

[0029] In step S201, the server assigns an identifier to each of the household devices, so that each household device subscribes to at least one household theme service through the identifier, wherein the identifier represents the address of the household and is unique, and each identifier corresponds to one theme service, where the theme service is a pre-set push service representing a security theme;

[0030] Specifically, in order to enhance the security of families and communities and improve the community's disaster prevention and mitigation capabilities through the interconnection of smart home devices, this disclosure uses the MQTT protocol to implement a secure, flexible, and scalable cross-family smart home scene control and message sharing system. The server will assign a unique identifier to each family, recorded as home_id. home_id is used as a unique identifier for each user, i.e., each family, to distinguish different families from each other. Other families can subscribe to the topic service of different families' home_id in order to receive messages pushed by the families who subscribed to the topic. For example, the topic may be as follows: home / <home_id> / scene / <scene_name><home_id> It is a unique identifier for a home. Smart home devices are devices that can be manually configured, automatically configured, or configured via Bluetooth.

[0031] Step S202, when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the home master device subscribed to the theme service sends a preset action instruction to the corresponding target smart home device in the home, and further enables the target smart home device to execute the preset action instruction, wherein each of the preset scenes is a scene of at least one abnormality of the smart home device, the alarm message is information characterizing the abnormality of the smart home device, and the preset action instruction is a pre-set action of the target smart home device to resolve the abnormality of the smart home device.

[0032] Specifically, when a preset scene in a home is triggered (such as a fire alarm), the server publishes an alarm message to a designated topic, such as home / 12345 / scene / fire_alarm. The alarm message should contain enough information for other households to understand the scenario and take action, while not leaking sensitive information. Other households subscribe to the alarm message pushed by this home_id and, based on the scene information in the alarm message, execute the predetermined logic and rules within the local home, including preset action instructions. For example, when receiving a disaster alarm message from a nearby neighbor's home, the server will check the humidity sensor or wind speed measurement sensor to determine whether there is heavy rain and execute the scene of closing doors and windows.

[0033] Through this embodiment, the server assigns an identifier to each household main device, so that each household main device subscribes to at least one household's theme service through the identifier, and each identifier corresponds to a theme service; when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the household main device that subscribes to the theme service sends the preset action instruction to the target smart home device in the corresponding household, and further enables the target smart home device to execute the preset action instruction. In this way, when one of the families discovers a safety hazard, it is forwarded through the theme service. When the family that subscribes to the theme service receives the alarm message, it can control the smart home device to execute the preset action instruction in time to prevent the safety hazard. Compared with the prior art, the smart home system cannot realize the forwarding and sharing of information. The present disclosure can realize the forwarding and sharing of information of smart home devices in the community. Therefore, it can solve the problem in the prior art that it is difficult for smart home devices to realize information sharing between communities, and achieve the effect of information sharing between communities.

[0034] In a specific implementation, before the server assigns an identifier to each of the household devices in step S201, the method further includes the following steps: the server receives a connection request from each of the household's smart home devices via a target application and establishes a communication connection with the smart home device; the server sets the preset scene for each household and generates the corresponding alarm information for each preset scene. Through these steps, the method first connects the smart home device to the server via the target application, then sets multiple preset scenes and corresponding alarm information, facilitating subsequent control of the smart home device via the server.

[0035] Specifically, all internet-connected devices in the home are connected to the same server using a target application APP, and all devices are stored in a home. Some preset scenes and corresponding alarm information are added to the home. In the APP, when the user finds that a device is connected to the network under his or her home, a home_id will be assigned to this home. Users can create multiple homes for themselves, and each home can be assigned a home_id.

[0036] In some optional embodiments, the server assigning an identifier to each of the household devices in step S201 includes assigning an identifier to each of the household devices when at least one of the smart home devices in each household successfully connects to the network. This ensures that each household can transmit information over the network.

[0037] During the specific implementation process, when it is detected that a smart home device is successfully connected to the network, the server assigns a home_id to each family.

[0038] In order to accurately control the smart home devices to perform actions to resolve or prevent abnormal situations, the above-mentioned preset action instructions are determined by the above-mentioned home master device through the one-to-one mapping relationship between the above-mentioned alarm information, the above-mentioned target smart home devices and the above-mentioned preset action instructions and sent to the above-mentioned target smart home devices.

[0039] Specifically, the household subscribes to the alarm message pushed by this home_id, and executes the pre-set logic and rules, i.e., the preset action instructions, within the local household based on the scenario information of the alarm message. From the alarm information, we can know which device detected the abnormality and which household. If it is a fire, the abnormal temperature, smoke concentration, gas analysis and other data must be reported. If it is a rainstorm, the current wind speed, temperature, rainfall and other information must be reported; different abnormal information is reported based on different devices. Different alarm messages correspond to one or more target smart home devices that need to execute preset action instructions. For example, when a disaster alarm message is received from a neighbor's house, the humidity sensor or wind speed measurement sensor will be detected to determine whether there is a rainstorm, and the scene of closing the doors and windows will be executed. At this time, the target smart home device is the door and window controller, and the preset action instruction is to close the doors and windows.

[0040] In some optional embodiments, the smart home system further includes at least one sensor. Step S202, in which the server generates an alarm message when a preset scenario is triggered, can be implemented by the following steps: When the preset scenario is triggered, the server receives current environmental information transmitted by the sensor, and generates the alarm message based on the current environmental information, wherein the current environmental information is information representing the current environment of the home detected and transmitted to the server by the sensor. By generating the alarm message based on the current environmental information, information about the abnormal environment can be obtained from the alarm message.

[0041] Specifically, each home is equipped with sensors. If a sensor in a home detects an anomaly, it sends the current environmental information to a server. The server generates an alarm based on this information and publishes it to a topic service. Subscribed households receive the alarm and can use it to identify which device in which home has experienced an anomaly. As mentioned above, if it's raining heavily, the current wind speed, temperature, rainfall, and other information must be reported. The current environmental information refers to the current wind speed, temperature, rainfall, and other information.

[0042] To ensure effective broadcasting of the alarm information, generating the alarm information based on the current environmental information in step S202 can be accomplished by: determining the home in which the preset scenario is located, obtaining the identifier corresponding to the home's main device, and obtaining a target identifier; and combining the target identifier with the current environmental information to generate the alarm information. This method generates the alarm information through the above steps, allowing the receiving home to be informed of the home, smart home device, and current environmental information that have detected the anomaly, allowing them to take appropriate actions to prevent or resolve the anomaly.

[0043] Specifically, the MQTT data receiver is the user's subscribed home_id topic, which continuously monitors for data pushes. When a subscribed home_id topic actively pushes information to the server, the listening household will receive the data published by the server and determine the current disaster information based on the alarm information in the home_id. For example, if the alarm is in the home / 12345 / scene / fire_alarm, fire_alarm indicates a fire warning. The user will then be prompted to raise the fire alarm, open doors and windows for ventilation, and notify intelligent AI devices such as Tmall Genie to perform voice reminders. Therefore, the alarm information includes the target identifier and current environmental information.

[0044] In order to enable those skilled in the art to more clearly understand the technical solution of the present disclosure, the implementation process of the joint control method of the smart home system of the present disclosure will be described in detail below with reference to specific embodiments.

[0045] This embodiment relates to a specific joint control method for a smart home system, as shown in FIG2 , including the following steps:

[0046] Step S1: Design the MQTT topic structure to reflect the home_id and preset scenarios of different families. For example, the topic may be as follows: home / <home_id> / scene / <scene_name><home_id> is the household identifier, and<scene_name> Indicates a preset scene, such as "fire_alarm" or "energy_saving";

[0047] Step S2: Connect all MQTT devices to the network, that is, establish a communication connection between all smart home devices and the home device, and actively subscribe each family (home device) to a home_id topic service. The server will assign a unique home_id to each family (home device). The home_id serves as the user's unique identifier to the server to distinguish different families.

[0048] Step S3: Other families can subscribe to the home_id topic of different families to receive family push messages of the subscribed topic service. Each family (family total device) has multiple preset scenarios, including scenario 1, scenario 2, and scenario 3. Scenario 1 involves two devices, and the two devices are linked. Scenario 2 involves the linkage between three devices. Scenario 3 involves the linkage between two devices.

[0049] Step S4: When a preset scene in the home is triggered (e.g., a fire alarm), the sensor obtains abnormal information (current environment information), and the corresponding home master device in the home publishes the abnormal information to a designated topic service, such as home / 12345 / scene / fire_alarm. The content of the alarm message should include the home identifier and current environment information so that other families can understand the scene and take action, but at the same time do not leak sensitive information;

[0050] Step S5: Other households subscribe to the alarm information pushed by this home_id and execute the preset action instructions in their local home based on the alarm scenario. For example, when receiving a disaster alarm from a nearby neighbor's home, the humidity sensor or wind speed sensor will be checked to determine whether there is heavy rain and the door and window closing scenario will be executed.

[0051] The embodiments of the present disclosure also provide a joint control device for a smart home system. It should be noted that the joint control device for a smart home system in the embodiments of the present disclosure can be configured to execute the joint control method for a smart home system provided in the embodiments of the present disclosure. The device is configured to implement the above-mentioned embodiments and preferred implementation modes, and those that have been explained will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0052] The following introduces the joint control device of the smart home system provided by the embodiment of the present disclosure.

[0053] FIG3 is a schematic diagram of a joint control device for a smart home system according to an embodiment of the present disclosure. As shown in FIG3 , a server is used in the smart home system, wherein the smart home system further includes multiple home master devices, each of which corresponds to a home. The home master device is communicatively connected to multiple smart home devices in the corresponding home. The device includes:

[0054] The allocating unit 10 is configured to allocate an identifier to each of the household devices, so that each of the household devices subscribes to at least one of the household's theme services through the identifier, wherein the identifier represents the address of the household and is unique, and each identifier corresponds to one of the theme services, wherein the theme service is a pre-set push service representing a security theme;

[0055] Specifically, in order to enhance the security of families and communities and improve the community's disaster prevention and mitigation capabilities through the interconnection of smart home devices, this disclosure uses the MQTT protocol to implement a secure, flexible, and scalable cross-family smart home scene control and message sharing system. The server will assign a unique identifier to each family, recorded as home_id. home_id is used as a unique identifier for each user, i.e., each family, to distinguish different families from each other. Other families can subscribe to the topic service of different families' home_id in order to receive messages pushed by the families who subscribed to the topic. For example, the topic may be as follows: home / <home_id> / scene / <scene_name><home_id> It is a unique identifier for a home. Smart home devices are devices that can be manually configured, automatically configured, or configured via Bluetooth.

[0056] The publishing unit 20 is configured to generate an alarm message when a preset scene is triggered, and publish the alarm message to the above-mentioned theme service, so that the above-mentioned home main device subscribed to the above-mentioned theme service sends a preset action instruction to the corresponding target smart home device in the above-mentioned home, and further enables the above-mentioned target smart home device to execute the above-mentioned preset action instruction, wherein each of the above-mentioned preset scenes is a scene of at least one abnormality of the above-mentioned smart home device, the above-mentioned alarm message is information characterizing the abnormality of the above-mentioned smart home device, and the above-mentioned preset action instruction is a pre-set action of the above-mentioned target smart home device to resolve the abnormality of the above-mentioned smart home device.

[0057] Specifically, when a preset scene in a home is triggered (such as a fire alarm), the server publishes an alarm message to a designated topic, such as home / 12345 / scene / fire_alarm. The alarm message should contain enough information for other households to understand the scenario and take action, while not leaking sensitive information. Other households subscribe to the alarm message pushed by this home_id and, based on the scene information in the alarm message, execute the predetermined logic and rules within the local home, including preset action instructions. For example, when receiving a disaster alarm message from a nearby neighbor's home, the server will check the humidity sensor or wind speed measurement sensor to determine whether there is heavy rain and execute the scene of closing doors and windows.

[0058] Through this embodiment, the server assigns an identifier to each household main device, so that each household main device subscribes to at least one household's theme service through the identifier, and each identifier corresponds to a theme service; when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the household main device that subscribes to the theme service sends the preset action instruction to the target smart home device in the corresponding household, and further enables the target smart home device to execute the preset action instruction. In this way, when one of the families discovers a safety hazard, it is forwarded through the theme service. When the family that subscribes to the theme service receives the alarm message, it can control the smart home device to execute the preset action instruction in time to prevent the safety hazard. Compared with the prior art, the smart home system cannot realize the forwarding and sharing of information. The present disclosure can realize the forwarding and sharing of information of smart home devices in the community. Therefore, it can solve the problem in the prior art that it is difficult for smart home devices to realize information sharing between communities, and achieve the effect of information sharing between communities.

[0059] During a specific implementation, the apparatus further includes a receiving unit and a generating unit. The receiving unit of the server is configured to receive connection requests from the smart home devices of each household via a target application and establish a communication connection with the smart home devices. The generating unit of the server is configured to set the preset scenarios for each household and generate the corresponding alarm information for each preset scenario. Through these steps, the apparatus first connects the smart home devices to the server via the target application, then sets multiple preset scenarios and corresponding alarm information, thereby facilitating subsequent control of the smart home devices via the server.

[0060] Specifically, all internet-connected devices in the home are connected to the same server using a target application APP, and all devices are stored in a home. Some preset scenes and corresponding alarm information are added to the home. In the APP, when the user finds that a device is connected to the network under his or her home, a home_id will be assigned to this home. Users can create multiple homes for themselves, and each home can be assigned a home_id.

[0061] In some optional embodiments, the allocation unit includes an allocation module configured to, when at least one smart home device in each household successfully connects to the network, cause the server to allocate an identifier to each household device. This ensures that each household can transmit information via the network.

[0062] During the specific implementation process, when it is detected that a smart home device is successfully connected to the network, the server assigns a home_id to each family.

[0063] In order to accurately control the smart home devices to perform actions to resolve or prevent abnormal situations, the above-mentioned preset action instructions are determined by the above-mentioned home master device through the one-to-one mapping relationship between the above-mentioned alarm information, the above-mentioned target smart home devices and the above-mentioned preset action instructions and sent to the above-mentioned target smart home devices.

[0064] Specifically, the household subscribes to the alarm message pushed by this home_id, and executes the pre-set logic and rules, i.e., the preset action instructions, within the local household based on the scenario information of the alarm message. From the alarm information, we can know which device detected the abnormality and which household. If it is a fire, the abnormal temperature, smoke concentration, gas analysis and other data must be reported. If it is a rainstorm, the current wind speed, temperature, rainfall and other information must be reported; different abnormal information is reported based on different devices. Different alarm messages correspond to one or more target smart home devices that need to execute preset action instructions. For example, when a disaster alarm message is received from a neighbor's house, the humidity sensor or wind speed measurement sensor will be detected to determine whether there is a rainstorm, and the scene of closing the doors and windows will be executed. At this time, the target smart home device is the door and window controller, and the preset action instruction is to close the doors and windows.

[0065] In some optional embodiments, the smart home system further includes at least one sensor, and the allocation unit includes a generation module configured to, when the preset scenario is triggered, cause the server to receive current environmental information transmitted by the sensor and generate the alarm information based on the current environmental information. The current environmental information is information representing the current environment of the home detected by the sensor and transmitted to the server. The device generates the alarm information based on the current environmental information, thereby enabling information about the abnormal environment to be obtained through the alarm information.

[0066] Specifically, each home is equipped with sensors. If a sensor in a home detects an anomaly, it sends the current environmental information to a server. The server generates an alarm based on this information and publishes it to a topic service. Subscribed households receive the alarm and can use it to identify which device in which home has experienced an anomaly. As mentioned above, if it's raining heavily, the current wind speed, temperature, rainfall, and other information must be reported. The current environmental information refers to the current wind speed, temperature, rainfall, and other information.

[0067] To ensure effective broadcasting of the alarm information, the generation module includes an acquisition submodule and a generation submodule. The acquisition submodule is configured to determine the home in the preset scenario and obtain the identifier corresponding to the home's main device to obtain a target identifier. The generation submodule is configured to generate the alarm information using the target identifier and the current environmental information. The device generates the alarm information through these steps, allowing the receiving home to be informed of the home, smart home device, and current environmental information that have detected the anomaly, allowing them to take appropriate actions to prevent or resolve the anomaly.

[0068] Specifically, the MQTT data receiver is the user's subscribed home_id topic, which continuously monitors for data pushes. When a subscribed home_id topic actively pushes information to the server, the listening household will receive the data published by the server and determine the current disaster information based on the alarm information in the home_id. For example, if the alarm is in the home / 12345 / scene / fire_alarm, fire_alarm indicates a fire warning. The user will then be prompted to raise the fire alarm, open doors and windows for ventilation, and notify intelligent AI devices such as Tmall Genie to perform voice reminders. Therefore, the alarm information includes the target identifier and current environmental information.

[0069] The joint control device for the smart home system includes a processor and memory. The allocation unit, publishing unit, and other components are stored as program units in the memory, and the processor executes the program units stored in the memory to implement the corresponding functions. The modules are all located in the same processor; alternatively, the modules can be located in different processors in any combination.

[0070] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and by adjusting the kernel parameters, information sharing between smart home devices in different households can be achieved.

[0071] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0072] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the joint control method of the smart home system.

[0073] Specifically, the joint control method of the smart home system includes:

[0074] In step S201, the server assigns an identifier to each of the household devices, so that each household device subscribes to at least one household theme service through the identifier, wherein the identifier represents the address of the household and is unique, and each identifier corresponds to one theme service, where the theme service is a pre-set push service representing a security theme;

[0075] Specifically, in order to enhance the security of families and communities and improve the community's disaster prevention and mitigation capabilities through the interconnection of smart home devices, this disclosure uses the MQTT protocol to implement a secure, flexible, and scalable cross-family smart home scene control and message sharing system. The server will assign a unique identifier to each family, recorded as home_id. home_id is used as a unique identifier for each user, i.e., each family, to distinguish different families from each other. Other families can subscribe to the topic service of different families' home_id in order to receive messages pushed by the families who subscribed to the topic. For example, the topic may be as follows: home / <home_id> / scene / <scene_name><home_id> It is a unique identifier for a home. Smart home devices are devices that can be manually configured, automatically configured, or configured via Bluetooth.

[0076] Step S202, when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the home master device subscribed to the theme service sends a preset action instruction to the corresponding target smart home device in the home, and further enables the target smart home device to execute the preset action instruction, wherein each of the preset scenes is a scene of at least one abnormality of the smart home device, the alarm message is information characterizing the abnormality of the smart home device, and the preset action instruction is a pre-set action of the target smart home device to resolve the abnormality of the smart home device.

[0077] Specifically, when a preset scene in a home is triggered (such as a fire alarm), the server publishes an alarm message to a designated topic, such as home / 12345 / scene / fire_alarm. The alarm message should contain enough information for other households to understand the scenario and take action, while not leaking sensitive information. Other households subscribe to the alarm message pushed by this home_id and, based on the scene information in the alarm message, execute the predetermined logic and rules within the local home, including preset action instructions. For example, when receiving a disaster alarm message from a nearby neighbor's home, the server will check the humidity sensor or wind speed measurement sensor to determine whether there is heavy rain and execute the scene of closing doors and windows.

[0078] Optionally, before the server assigns an identifier to each of the above-mentioned home devices, the method further includes: the server receives a connection request from the above-mentioned smart home device of each of the above-mentioned homes through a target application, and establishes a communication connection with the above-mentioned smart home device; the server sets the above-mentioned preset scene for each of the above-mentioned homes, and generates the above-mentioned alarm information corresponding to each of the above-mentioned preset scenes.

[0079] Optionally, the server assigns an identifier to each of the above-mentioned home devices, including: when at least one of the above-mentioned smart home devices in each of the above-mentioned homes successfully connects to the network, the server assigns an identifier to each of the above-mentioned home devices.

[0080] Optionally, the preset action instruction is determined by the home master device through a one-to-one mapping relationship among the alarm information, the target smart home device and the preset action instruction, and is sent to the target smart home device.

[0081] Optionally, the smart home system further includes at least one sensor, and when a preset scene is triggered, the server generates an alarm message, including: when the preset scene is triggered, the server receives the current environmental information sent by the sensor, and generates the alarm message based on the current environmental information, wherein the current environmental information is detected by the sensor and sent to the server and represents the current environmental information of the home.

[0082] Optionally, the alarm information is generated based on the current environmental information, including: determining the home where the preset scene is located, and obtaining the identifier corresponding to the home device corresponding to the home to obtain a target identifier; and generating the alarm information based on the target identifier and the current environmental information.

[0083] An embodiment of the present invention provides a server, wherein the device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are performed:

[0084] In step S201, the server assigns an identifier to each of the household devices, so that each household device subscribes to at least one household theme service through the identifier, wherein the identifier represents the address of the household and is unique, and each identifier corresponds to one theme service, where the theme service is a pre-set push service representing a security theme;

[0085] Step S202, when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the home master device subscribed to the theme service sends a preset action instruction to the corresponding target smart home device in the home, and further enables the target smart home device to execute the preset action instruction, wherein each of the preset scenes is a scene of at least one abnormality of the smart home device, the alarm message is information characterizing the abnormality of the smart home device, and the preset action instruction is a pre-set action of the target smart home device to resolve the abnormality of the smart home device.

[0086] Optionally, before the server assigns an identifier to each of the above-mentioned home devices, the method further includes: the server receives a connection request from the above-mentioned smart home device of each of the above-mentioned homes through a target application, and establishes a communication connection with the above-mentioned smart home device; the server sets the above-mentioned preset scene for each of the above-mentioned homes, and generates the above-mentioned alarm information corresponding to each of the above-mentioned preset scenes.

[0087] Optionally, the server assigns an identifier to each of the above-mentioned home devices, including: when at least one of the above-mentioned smart home devices in each of the above-mentioned homes successfully connects to the network, the server assigns an identifier to each of the above-mentioned home devices.

[0088] Optionally, the preset action instruction is determined by the home master device through a one-to-one mapping relationship among the alarm information, the target smart home device and the preset action instruction, and is sent to the target smart home device.

[0089] Optionally, the smart home system further includes at least one sensor, and when a preset scene is triggered, the server generates an alarm message, including: when the preset scene is triggered, the server receives the current environmental information sent by the sensor, and generates the alarm message based on the current environmental information, wherein the current environmental information is detected by the sensor and sent to the server and represents the current environmental information of the home.

[0090] Optionally, the alarm information is generated based on the current environmental information, including: determining the home where the preset scene is located, and obtaining the identifier corresponding to the home device corresponding to the home to obtain a target identifier; and generating the alarm information based on the target identifier and the current environmental information.

[0091] The present disclosure also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program for initializing at least the following method steps:

[0092] In step S201, the server assigns an identifier to each of the household devices, so that each household device subscribes to at least one household theme service through the identifier, wherein the identifier represents the address of the household and is unique, and each identifier corresponds to one theme service, where the theme service is a pre-set push service representing a security theme;

[0093] Step S202, when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the home master device subscribed to the theme service sends a preset action instruction to the corresponding target smart home device in the home, and further enables the target smart home device to execute the preset action instruction, wherein each of the preset scenes is a scene of at least one abnormality of the smart home device, the alarm message is information characterizing the abnormality of the smart home device, and the preset action instruction is a pre-set action of the target smart home device to resolve the abnormality of the smart home device.

[0094] Optionally, before the server assigns an identifier to each of the above-mentioned home devices, the method further includes: the server receives a connection request from the above-mentioned smart home device of each of the above-mentioned homes through a target application, and establishes a communication connection with the above-mentioned smart home device; the server sets the above-mentioned preset scene for each of the above-mentioned homes, and generates the above-mentioned alarm information corresponding to each of the above-mentioned preset scenes.

[0095] Optionally, the server assigns an identifier to each of the above-mentioned home devices, including: when at least one of the above-mentioned smart home devices in each of the above-mentioned homes successfully connects to the network, the server assigns an identifier to each of the above-mentioned home devices.

[0096] Optionally, the preset action instruction is determined by the home master device through a one-to-one mapping relationship among the alarm information, the target smart home device and the preset action instruction, and is sent to the target smart home device.

[0097] Optionally, the smart home system further includes at least one sensor, and when a preset scene is triggered, the server generates an alarm message, including: when the preset scene is triggered, the server receives the current environmental information sent by the sensor, and generates the alarm message based on the current environmental information, wherein the current environmental information is detected by the sensor and sent to the server and represents the current environmental information of the home.

[0098] Optionally, the alarm information is generated based on the current environmental information, including: determining the home where the preset scene is located, and obtaining the identifier corresponding to the home device corresponding to the home to obtain a target identifier; and generating the alarm information based on the target identifier and the current environmental information.

[0099] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0100] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0101] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device configured to implement the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0102] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0103] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps configured to implement the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0104] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0105] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0106] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be configured to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0107] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0108] From the above description, it can be seen that the above embodiments of the present disclosure achieve the following technical effects:

[0109] 1) In the joint control method of the smart home system disclosed in the present invention, the server assigns an identifier to each household main device, so that each household main device subscribes to at least one household's theme service through the identifier, and each identifier corresponds to a theme service; when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the household main device subscribed to the theme service sends the preset action instruction to the target smart home device in the corresponding household, and further enables the target smart home device to execute the preset action instruction. In this way, when one of the families discovers a safety hazard, it is forwarded through the theme service, and the family subscribing to the theme service can control the smart home device to execute the preset action instruction in time when receiving the alarm message to prevent the safety hazard. Compared with the prior art, the smart home system cannot realize the forwarding and sharing of information. The present invention can realize the forwarding and sharing of information of smart home devices in the community. Therefore, it can solve the problem in the prior art that it is difficult for smart home devices to realize information sharing between communities, and achieve the effect of information sharing between communities.

[0110] 2) In the joint control device of the smart home system disclosed in the present invention, the server assigns an identifier to each household main device, so that each household main device subscribes to at least one household's theme service through the identifier, and each identifier corresponds to a theme service; when the preset scene is triggered, the server generates an alarm message and publishes the alarm message to the theme service, so that the household main device that subscribes to the theme service sends the preset action instruction to the target smart home device in the corresponding household, and further enables the target smart home device to execute the preset action instruction. In this way, when one of the families discovers a safety hazard, it is forwarded through the theme service, and the family that subscribes to the theme service can control the smart home device to execute the preset action instruction in time when receiving the alarm message to prevent the safety hazard. Compared with the prior art, the smart home system cannot realize the forwarding and sharing of information. The present invention can realize the forwarding and sharing of information of smart home devices in the community. Therefore, it can solve the problem in the prior art that it is difficult for smart home devices to realize information sharing between communities, and achieve the effect of information sharing between communities.

[0111] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that the present disclosure is susceptible to various modifications and variations. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present disclosure shall be included within the scope of protection of the present disclosure.

Claims

1. A combined control method for a smart home system, wherein, A server applied to a smart home system, the smart home system further includes a plurality of home master devices, each of the home master devices corresponds to a home, the home master device is communicatively connected to a plurality of smart home devices in the corresponding home, and the joint control method of the smart home system includes: The server assigns an identifier to each of the home master devices, so that each of the home master devices subscribes to at least one home's topic service through the identifier, wherein the identifier represents the address of the home and is unique, and each identifier corresponds to one of the topic services, and the topic service is a pre-set push service representing a security topic; When a preset scenario is triggered, the server generates an alarm message and publishes the alarm message to the topic service, so that the home master device subscribing to the topic service sends a preset action instruction to a target smart home device in the corresponding home to control the target smart home device to execute the preset action instruction, wherein each of the preset scenarios is a scenario in which at least one of the smart home devices is abnormal, the alarm message is information indicating that the smart home device is abnormal, and the preset action instruction is an action of the target smart home device pre-set to solve the abnormality of the smart home device.

2. The joint control method according to claim 1, wherein Before the server assigns an identifier to each of the home master devices, the method further includes: The server receives connection requests of the smart home devices of each home through a target application program and establishes a communication connection with the smart home devices; The server sets the preset scenarios of each home and generates the corresponding alarm messages for each of the preset scenarios.

3. The joint control method according to claim 1, wherein, The server assigns an identifier to each of the home master devices, including: When at least one of the smart home devices in each home is successfully connected to the network, the server assigns an identifier to each of the home master devices.

4. The joint control method according to claim 1, wherein The preset action instruction is determined and sent by the home master device to the target smart home device through the one-to-one mapping relationship between the alarm message, the target smart home device and the preset action instruction.

5. The joint control method according to claim 1, wherein, The smart home system further includes at least one sensor. When a preset scenario is triggered, the server generates an alarm message, including: When the preset scenario is triggered, the server receives the current environmental information sent by the sensor and generates the alarm message according to the current environmental information, wherein the current environmental information is the environmental information of the home detected by the sensor and sent to the server and representing the current environment of the home.

6. The joint control method according to claim 5, wherein, Generating the alarm message according to the current environmental information includes: Determine the home where the preset scenario is located, and obtain the identifier corresponding to the home master device corresponding to the home, to obtain a target identifier; Generate the alarm message by using the target identifier and the current environmental information.

7. A joint control device for a smart home system, wherein, A server applied to a smart home system, the smart home system further including a plurality of home master devices, each of the home master devices corresponding to a home, the home master device being communicatively connected to a plurality of smart home devices in the corresponding home, the combined control device of the smart home system comprising: An allocation unit configured to allocate an identifier to each of the home master devices such that each of the home master devices subscribes to at least one topic service of the corresponding home through the identifier, wherein the identifier represents the address of the home and is unique, each identifier corresponding to one of the topic services, the topic service being a pre-set push service representing a security topic; A publishing unit configured to generate an alarm message when a preset scenario is triggered and publish the alarm message to the topic service, such that the home master device subscribing to the topic service sends a preset action instruction to a target smart home device in the corresponding home, and further such that the target smart home device executes the preset action instruction, wherein each of the preset scenarios is a scenario in which at least one of the smart home devices is abnormal, the alarm message is information representing the abnormality of the smart home device, and the preset action instruction is an action of the target smart home device pre-set to solve the abnormality of the smart home device.

8. A smart home system, wherein, Comprising: A server, a plurality of home master devices, a plurality of smart home devices, and sensors, each of the home master devices corresponding to a home, the home master device being communicatively connected to a plurality of the smart home devices in the corresponding home, the server being configured to execute the combined control method of the smart home system according to any one of claims 1 to 6.

9. A computer-readable storage medium, wherein, The computer-readable storage medium includes a stored program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute the combined control method of the smart home system according to any one of claims 1 to 6.

10. A server, wherein, Comprising: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, the one or more programs including being configured to execute the combined control method of the smart home system according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Communication system and method with unified management platform

    CN102185728A

  • Method for controlling equipment service, cloud server and smart home system

    CN114500137A

  • Control method of smart home equipment and control method of server

    CN115277280A

  • Control device of intelligent household electrical appliance

    CN116107228A

  • Joint control method and device of smart home system and smart home system

    CN117826629A