Smart home control device, system and method based on BleMesh

By using the first Bluetooth communication submodule and the second Bluetooth communication submodule in the BleMesh smart home control system, combined with the interrupt time setting, the command conflict problem when the user terminal continuously sends control instructions is solved, and more efficient communication timeliness is achieved and lower conflict rates.

CN115941745BActive Publication Date: 2024-12-27SHENZHEN SINGULARITY INTERNET OF THINGS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211657620.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2024-12-27
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

The existing BleMesh smart home control method is prone to command conflicts when the user terminal continuously sends control instructions, and the interrupt time setting is difficult to balance, resulting in problems of communication efficiency and conflict rate.

Method used

By introducing the first Bluetooth communication submodule and the second Bluetooth communication submodule into the Bluetooth communication module, the target module is determined based on the communication situation, and the connection of the non-target module is disconnected when necessary, combined with the preset interrupt time to reduce conflict and ensure timeliness.

Benefits of technology

Effectively prevent command conflicts, reduce the conflict in continuous output of voice commands, ensure the timeliness of communication, and avoid the problems of reduced efficiency or increased conflict rate caused by too long or too short interrupt time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941745B_ABST
    Figure CN115941745B_ABST
Patent Text Reader

Abstract

The present invention proposes a smart home control device, system and method based on BleMesh. The smart home control method comprises: the user terminal sends a control instruction for the smart home to the Bluetooth communication module; the Bluetooth communication module determines whether to send the control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result; according to the determination result, the first Bluetooth communication submodule or the second Bluetooth communication submodule is controlled to send the control instruction to the smart home. The system comprises modules corresponding to the steps of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention proposes a smart home control device, system and method based on BleMesh, belonging to the technical field of smart home. Summary of the invention

[0002] The present invention provides a smart home control device, system and method based on BleMesh to solve the problem:

[0003] A smart home control method based on BleMesh, the smart home control method comprising:

[0004] Step 1: The user terminal sends a control instruction for the smart home to the Bluetooth communication module;

[0005] Step 2, the Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result;

[0006] Step 3: According to the determination result, control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home.

[0007] Furthermore, the user terminal sends a control instruction for the smart home to the Bluetooth communication module, including:

[0008] Step 101: The user terminal generates a current control instruction for the smart home through user operation, and obtains the generation time of the current control instruction;

[0009] Step 102: The user terminal retrieves the last control instruction of the smart home as the original control instruction;

[0010] Step 103, the user terminal determines whether the contents of the original control instruction and the current control instruction are the same. If the contents of the original control instruction and the current control instruction are different, step 2 is executed; if the contents of the original control instruction and the current control instruction are different, step 104 is executed;

[0011] Step 104: determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

[0012] Further, the Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result, including:

[0013] Step 201: After receiving the current control instruction, the Bluetooth communication module obtains the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule;

[0014] Step 202, determine whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determine the target communication module based on the comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module.

[0015] Specifically, if the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module;

[0016] If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module;

[0017] If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the most recent last communication execution time is used as the third-category target communication module.

[0018] Further, according to the determination result, controlling the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home comprises:

[0019] Step 301: extract the target communication module and determine the attributes of the target communication module;

[0020] Step 302: Control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different properties of the target communication module.

[0021] Specifically, when the target communication module is a type I target communication module, the target communication module is controlled to send a control instruction to the smart home; when the target communication module is a type II target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset first interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored; when the target communication module is a type III target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset second interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored;

[0022] The first interruption time and the second interruption time are obtained by the following formula:

[0023]

[0024]

[0025] Among them, T z1 and T z2 Respectively represent the first interruption time and the second interruption time; M represents the number of times the Bluetooth communication submodule corresponding to the target communication module is selected as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

[0026] Furthermore, the smart home control system includes:

[0027] A first instruction sending module, used for the user terminal to send a control instruction for the smart home to the Bluetooth communication module;

[0028] A determination module, used for the Bluetooth communication module to determine whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtain a determination result;

[0029] The second instruction sending module is used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to the determination result.

[0030] Furthermore, the first instruction sending module includes:

[0031] A first time acquisition module, used for the user terminal to generate a current control instruction for the smart home through user operation, and obtain the generation time of the current control instruction;

[0032] A retrieving module, used for the user terminal to retrieve the last control instruction of the smart home as the original control instruction;

[0033] A first selection execution module, used for the user terminal to determine whether the contents of the original control instruction and the current control instruction are the same, and if the contents of the original control instruction and the current control instruction are different, start the determination module; if the contents of the original control instruction and the current control instruction are different, start the second selection execution module;

[0034] The second selection execution module is used to determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, then stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

[0035] Furthermore, the determination module includes:

[0036] A second time acquisition module, configured for the Bluetooth communication module to acquire the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule after receiving the current control instruction;

[0037] A target communication determination module is used to determine whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determine the target communication module based on the comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module.

[0038] Specifically, the operation process of the target communication determination module includes:

[0039] If the time intervals between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction both exceed a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module;

[0040] If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module;

[0041] If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the most recent last communication execution time is used as the third-category target communication module.

[0042] Furthermore, the second instruction sending module includes:

[0043] An attribute extraction module, used to extract the target communication module and determine the attribute of the target communication module;

[0044] An instruction sending control module, used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different properties of the target communication module;

[0045] The operation process of the instruction sending control module includes:

[0046] When the target communication module is a type-one target communication module, controlling the target communication module to send a control instruction to the smart home;

[0047] When the target communication module is a Class II target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset first interruption time;

[0048] When the target communication module is a Class III target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset second interruption time;

[0049] The first interruption time and the second interruption time are obtained by the following formula:

[0050]

[0051]

[0052] Among them, T z1 and T z2 Respectively represent the first interruption time and the second interruption time; M represents the number of times the Bluetooth communication submodule corresponding to the target communication module is selected as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

[0053] A smart home control device based on BleMesh, the smart home control device includes multiple user terminals and a Bluetooth communication module; a wireless control connection is established between the multiple user terminals and the smart home through the Bluetooth communication module; and the Bluetooth communication module uses the smart home control method to wirelessly control the smart home.

[0054] Furthermore, the Bluetooth communication module includes a first Bluetooth communication sub-module and a second Bluetooth communication sub-module; the signal instruction receiving ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction sending ends of the multiple user terminals; the signal sending ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction receiving end of the smart home.

[0055] Beneficial effects of the present invention:

[0056] The BleMesh-based smart home control device, system and method proposed by the present invention can select a command to execute after two adjacent user terminals or a user terminal continuously send voice commands through the communication mode between the first Bluetooth communication submodule and the second Bluetooth communication submodule included in the Bluetooth communication module, so as to prevent conflicts between commands. At the same time, the Bluetooth interrupt mode can further reduce the command conflict of the continuous output of voice commands, and the combination of the setting of the first interruption time and the second interruption time can ensure the timeliness of communication on the basis of reducing the conflict of voice commands, prevent the problem of reduced communication efficiency due to too long interruption time, and prevent the problem of inability to effectively reduce the conflict rate of voice commands due to too short interruption time. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a flow chart of the method of the present invention;

[0058] Figure 2 The system block diagram of the system of the present invention. DETAILED DESCRIPTION

[0059] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0060] The embodiment of the present invention proposes a smart home control method based on BleMesh, such as Figure 1 As shown, the smart home control method includes:

[0061] Step 1: The user terminal sends a control instruction for the smart home to the Bluetooth communication module;

[0062] Step 2, the Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result;

[0063] Step 3: According to the determination result, control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home.

[0064] The user terminal sends a control instruction for the smart home to the Bluetooth communication module, including:

[0065] Step 101: The user terminal generates a current control instruction for the smart home through user operation, and obtains the generation time of the current control instruction;

[0066] Step 102: The user terminal retrieves the last control instruction of the smart home as the original control instruction;

[0067] Step 103, the user terminal determines whether the contents of the original control instruction and the current control instruction are the same. If the contents of the original control instruction and the current control instruction are different, step 2 is executed; if the contents of the original control instruction and the current control instruction are different, step 104 is executed;

[0068] Step 104: determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

[0069] Then, the Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result, including:

[0070] Step 201: After receiving the current control instruction, the Bluetooth communication module obtains the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule;

[0071] Step 202, determine whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determine the target communication module based on the comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module.

[0072] Specifically, if the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module;

[0073] If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module;

[0074] If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the most recent last communication execution time is used as the third-category target communication module.

[0075] According to the determination result, controlling the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home includes:

[0076] Step 301: extract the target communication module and determine the attributes of the target communication module;

[0077] Step 302: Control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different properties of the target communication module.

[0078] Specifically, when the target communication module is a type I target communication module, the target communication module is controlled to send a control instruction to the smart home; when the target communication module is a type II target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset first interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored; when the target communication module is a type III target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset second interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored;

[0079] The first interruption time and the second interruption time are obtained by the following formula:

[0080]

[0081]

[0082] Among them, T z1 and T z2 Respectively represent the first interruption time and the second interruption time; M represents the number of times the Bluetooth communication submodule corresponding to the target communication module is selected as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

[0083] The BleMesh-based smart home control method proposed in this embodiment can select a command to execute after two adjacent user terminals or a user terminal continuously send voice commands through the communication method between the first Bluetooth communication submodule and the second Bluetooth communication submodule included in the Bluetooth communication module, so as to prevent conflicts between commands. At the same time, the Bluetooth interrupt method can further reduce the command conflict of the continuous output of voice commands, and the combination of the first interruption time and the second interruption time can ensure the timeliness of communication on the basis of reducing the conflict of voice commands, prevent the problem of reduced communication efficiency due to too long interruption time, and prevent the problem of inability to achieve effective voice command conflict rate reduction due to too short interruption time.

[0084] One embodiment of the present invention, as Figure 2 As shown, the smart home control system includes:

[0085] A first instruction sending module, used for the user terminal to send a control instruction for the smart home to the Bluetooth communication module;

[0086] A determination module, used for the Bluetooth communication module to determine whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtain a determination result;

[0087] The second instruction sending module is used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to the determination result.

[0088] Wherein, the first instruction sending module includes:

[0089] A first time acquisition module, used for the user terminal to generate a current control instruction for the smart home through user operation, and obtain the generation time of the current control instruction;

[0090] A retrieving module, used for the user terminal to retrieve the last control instruction of the smart home as the original control instruction;

[0091] A first selection execution module, used for the user terminal to determine whether the contents of the original control instruction and the current control instruction are the same, and if the contents of the original control instruction and the current control instruction are different, start the determination module; if the contents of the original control instruction and the current control instruction are different, start the second selection execution module;

[0092] The second selection execution module is used to determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, then stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

[0093] Wherein, the determination module comprises:

[0094] A second time acquisition module, configured for the Bluetooth communication module to acquire the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule after receiving the current control instruction;

[0095] A target communication determination module is used to determine whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determine the target communication module based on the comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module.

[0096] Specifically, the operation process of the target communication determination module includes:

[0097] If the time intervals between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction both exceed a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module;

[0098] If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module;

[0099] If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the most recent last communication execution time is used as the third-category target communication module.

[0100] The second instruction sending module includes:

[0101] An attribute extraction module, used to extract the target communication module and determine the attribute of the target communication module;

[0102] An instruction sending control module, used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different properties of the target communication module;

[0103] The operation process of the instruction sending control module includes:

[0104] When the target communication module is a type-one target communication module, controlling the target communication module to send a control instruction to the smart home;

[0105] When the target communication module is a Class II target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset first interruption time;

[0106] When the target communication module is a Class III target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset second interruption time;

[0107] The first interruption time and the second interruption time are obtained by the following formula:

[0108]

[0109]

[0110] Among them, T z1 and T z2 Respectively represent the first interruption time and the second interruption time; M represents the number of times the Bluetooth communication submodule corresponding to the target communication module is selected as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

[0111] The BleMesh-based smart home control system proposed in this embodiment can select a command to execute after two adjacent user terminals or a user terminal continuously send voice commands through the communication method between the first Bluetooth communication submodule and the second Bluetooth communication submodule included in the Bluetooth communication module, so as to prevent conflicts between commands. At the same time, the Bluetooth interrupt method can further reduce the command conflict of the continuous output of voice commands, and the combination of the setting of the first interruption time and the second interruption time can ensure the timeliness of communication on the basis of reducing the conflict of voice commands, prevent the problem of reduced communication efficiency due to too long interruption time, and prevent the problem of inability to effectively reduce the conflict rate of voice commands due to too short interruption time.

[0112] One embodiment of the present invention is a smart home control device based on BleMesh, which includes multiple user terminals and a Bluetooth communication module; a wireless control connection is established between the multiple user terminals and the smart home through the Bluetooth communication module; and the Bluetooth communication module uses the smart home control method to wirelessly control the smart home.

[0113] Among them, the Bluetooth communication module includes a first Bluetooth communication sub-module and a second Bluetooth communication sub-module; the signal instruction receiving ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction sending ends of the multiple user terminals; the signal sending ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction receiving end of the smart home.

[0114] The BleMesh-based smart home control device proposed in this embodiment can select a command to execute after two adjacent user terminals or a user terminal continuously send voice commands through the communication method between the first Bluetooth communication submodule and the second Bluetooth communication submodule included in the Bluetooth communication module, so as to prevent conflicts between commands. At the same time, the Bluetooth interrupt method can further reduce the command conflict of the continuous output of voice commands, and the combination of the setting of the first interruption time and the second interruption time can ensure the timeliness of communication on the basis of reducing the conflict of voice commands, prevent the problem of reduced communication efficiency due to too long interruption time, and prevent the problem of inability to achieve effective reduction of voice command conflict rate due to too short interruption time.

[0115] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. The smart home control method based on BleMesh is characterized by: The smart home control method comprises: Step 1: The user terminal sends a control instruction for the smart home to the Bluetooth communication module; Step 2, the Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result; Step 3: According to the determination result, controlling the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home; The Bluetooth communication module determines whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtains a determination result, including: Step 201: After receiving the current control instruction, the Bluetooth communication module obtains the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule; Step 202, determining whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determining a target communication module according to a comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module; Specifically, if the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module; If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module; If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the closest last communication execution time is used as the third category target communication module; According to the determination result, controlling the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home includes: Step 301: extract the target communication module and determine the attributes of the target communication module; Step 302: Control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different attributes of the target communication module; Specifically, when the target communication module is a type I target communication module, the target communication module is controlled to send a control instruction to the smart home; when the target communication module is a type II target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset first interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored; when the target communication module is a type III target communication module, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is disconnected, the target communication module is controlled to send the control instruction to the smart home, and after a preset second interruption time, the communication connection between the non-target communication module and the user terminal that last communicated the control instruction is restored; The first interruption time and the second interruption time are obtained by the following formula: Among them, Tz1 and Tz2 represent the first interruption time and the second interruption time respectively; M represents the number of times the Bluetooth communication sub-module corresponding to the target communication module is used as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

2. The smart home control method according to claim 1, characterized in that: The user terminal sends a control instruction for the smart home to the Bluetooth communication module, including: Step 101: The user terminal generates a current control instruction for the smart home through user operation, and obtains the generation time of the current control instruction; Step 102: The user terminal retrieves the last control instruction of the smart home as the original control instruction; Step 103, the user terminal determines whether the contents of the original control instruction are the same as the current control instruction. If the contents of the original control instruction are different from the current control instruction, step 2 is executed; if the contents of the original control instruction are different from the current control instruction, step 104 is executed. Step 104: determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

3. The smart home control system based on BleMesh is characterized by: The smart home control system comprises: A first instruction sending module, used for the user terminal to send a control instruction for the smart home to the Bluetooth communication module; A determination module, used for the Bluetooth communication module to determine whether to send a control instruction to the smart home through the first Bluetooth communication submodule or the second Bluetooth communication submodule as the target communication module according to the communication status of the first Bluetooth communication submodule and the second Bluetooth communication submodule contained therein, and obtain a determination result; A second instruction sending module, used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to the determination result; Wherein, the determination module comprises: A second time acquisition module, configured for the Bluetooth communication module to acquire the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule after receiving the current control instruction; A target communication determination module, used to determine whether the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, and determine the target communication module according to the comparison between the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction and the time interval threshold; wherein the attributes of the target communication module include a type I target communication module, a type II target communication module and a type III target communication module; Specifically, if the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, then any Bluetooth communication submodule is selected as a type of target communication module; If the time interval between the last communication execution time of one of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction exceeds a preset time interval threshold, the Bluetooth communication submodule whose time interval exceeds the preset time interval threshold is selected as the second-category target communication module; If the time interval between the last communication execution time of the first Bluetooth communication submodule and the second Bluetooth communication submodule and the generation time of the current control instruction does not exceed the preset time interval threshold, the Bluetooth communication submodule with the closest last communication execution time is used as the third category target communication module; Wherein, the second instruction sending module includes: An attribute extraction module, used to extract the target communication module and determine the attribute of the target communication module; An instruction sending control module, used to control the first Bluetooth communication submodule or the second Bluetooth communication submodule to send a control instruction to the smart home according to different properties of the target communication module; The operation process of the instruction sending control module includes: When the target communication module is a type-one target communication module, controlling the target communication module to send a control instruction to the smart home; When the target communication module is a Class II target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset first interruption time; When the target communication module is a Class III target communication module, disconnect the communication connection between the non-target communication module and the user terminal that last communicated the control instruction, control the target communication module to send the control instruction to the smart home, and restore the communication connection between the non-target communication module and the user terminal that last communicated the control instruction after a preset second interruption time; The first interruption time and the second interruption time are obtained by the following formula: Among them, Tz1 and Tz2 represent the first interruption time and the second interruption time respectively; M represents the number of times the Bluetooth communication sub-module corresponding to the target communication module is used as the target communication module; N represents the total number of times the Bluetooth communication module performs communication; T1 and T2 represent the last communication time of the target communication module and the last communication time of the non-target communication module respectively; T represents the actual time corresponding to the preset time interval threshold.

4. The smart home control system according to claim 3, characterized in that: The first instruction sending module includes: A first time acquisition module, used for the user terminal to generate a current control instruction for the smart home through user operation, and obtain the generation time of the current control instruction; A retrieving module, used for the user terminal to retrieve the last control instruction of the smart home as the original control instruction; A first selection execution module, used for the user terminal to determine whether the contents of the original control instruction and the current control instruction are the same, and if the contents of the original control instruction and the current control instruction are different, start the determination module; if the contents of the original control instruction and the current control instruction are different, start the second selection execution module; The second selection execution module is used to determine the instruction generation time interval between the original control instruction and the current control instruction. If the instruction generation time interval between the original control instruction and the current control instruction is lower than a preset time interval threshold, then stop initiating a communication response to the current control instruction until the original control instruction is sent to the smart home.

5. The smart home control device based on BleMesh is characterized by: The smart home control device includes multiple user terminals and a Bluetooth communication module; a wireless control connection is established between the multiple user terminals and the smart home through the Bluetooth communication module; and the Bluetooth communication module uses the smart home control method described in claim 1 to wirelessly control the smart home.

6. The smart home control device according to claim 5, characterized in that: The Bluetooth communication module includes a first Bluetooth communication sub-module and a second Bluetooth communication sub-module; the signal instruction receiving ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction sending ends of the multiple user terminals; the signal sending ends of the first Bluetooth communication sub-module and the second Bluetooth communication sub-module are connected to the signal instruction receiving end of the smart home.