Smart home equipment instruction processing method, device and equipment and smart home system

By determining the preset categories and importance of instructions in the smart home system, calculating weighted importance and sorting them, the problem of delay in device command processing is solved, and system efficiency and user experience are improved.

CN118938697AActive Publication Date: 2024-11-12GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410987548.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-12
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

When multiple smart home devices send instructions at the same time, traditional instruction processing methods cannot effectively distinguish the importance of instructions, resulting in delayed processing of key instructions and reduced user experience and system efficiency.

Method used

By determining the preset category of each instruction, obtain its importance in real-time environment data, instruction type, device status and user definition dimensions, multiply by the corresponding dimension coefficient to calculate the weighted importance, and finally sort it based on the overall importance to get priority Level queues to ensure that key instructions are processed in a timely manner.

Benefits of technology

Effectively distinguish the importance of instructions, solve the problem of delay processing of key instructions, improve user experience and overall system efficiency, and adapt to real-time changes through dynamic adjustment of priority queues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938697A_ABST
    Figure CN118938697A_ABST
Patent Text Reader

Abstract

The invention relates to a smart home equipment instruction processing method, device and equipment and a smart home system, and relates to the technical field of smart home. The method comprises the following steps: when instructions sent by a plurality of devices are received, firstly determining a preset category of each instruction, for a first instruction of which the preset category is a first category, determining a dimension importance degree of the first instruction in a target dimension, and then multiplying the dimension importance degree by a corresponding dimension coefficient to obtain a weighting importance degree of each dimension; and adding the weighted importance degrees of all the dimensions to obtain total importance degrees, and sorting the first instructions according to a descending order of the total importance degrees to obtain a priority queue of the first instructions. And for the first instruction whose priority is not defined in advance, the priority queue of the first instruction is determined according to the multiple target dimensions including the real-time environment data, so that the importance of the instructions can be effectively distinguished, the problem of delay processing of key instructions is solved, and the user experience and the overall efficiency of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a smart home device instruction processing method, device, equipment and a smart home system. Background Art

[0002] With the in-depth application of Internet of Things technology and the increasing popularity of smart home devices, communication and collaborative control between devices in the home have become crucial. However, when multiple devices send commands at the same time, traditional command processing methods often cannot effectively distinguish the importance of commands, resulting in delayed processing of key commands, reducing user experience and overall system efficiency. Summary of the invention

[0003] The present invention provides a smart home device instruction processing method, device, equipment and smart home system, which are used to solve the problem that when multiple devices send instructions at the same time, the traditional instruction processing method often cannot effectively distinguish the importance of instructions, resulting in delayed processing of key instructions, reducing user experience and overall system efficiency.

[0004] In a first aspect, the present invention provides a method for processing instructions of a smart home device, comprising:

[0005] When receiving commands sent by multiple devices, determining a preset category of each command;

[0006] For a first instruction whose preset category is the first category, obtaining the dimension importance of the first instruction in each target dimension, where the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation;

[0007] Multiplying the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension;

[0008] Calculating the overall importance of each first instruction, where the overall importance is the sum of the weighted importance of all target dimensions of the first instruction;

[0009] The first instructions are sorted according to the overall importance to obtain a priority queue of the first instructions.

[0010] In one embodiment, when the target dimension is real-time environmental data, obtaining the dimension importance of the first instruction in each target dimension includes:

[0011] Get every current real-time environmental data;

[0012] Calculate the deviation between each real-time environmental data and the corresponding set value, deviation value = (actual environmental data - set value) / set value;

[0013] Determine the single-item importance corresponding to the deviation value based on a preset deviation value range, each deviation value range corresponds to a single-item importance, wherein the larger the deviation value range, the larger the single-item importance;

[0014] The sum of all individual importances is taken as the dimensional importance of the first instruction in the real-time environment data dimension.

[0015] In one embodiment, when the target dimension is an instruction type, obtaining the dimension importance of the first instruction in each target dimension includes:

[0016] Acquire a first field of a first preset position of the first instruction;

[0017] Determining an instruction type of the first instruction according to the first field, the instruction type comprising at least one of a safety control instruction, an environment adjustment instruction, and an entertainment control instruction;

[0018] Determining the importance of the instruction type according to a preset type correspondence, wherein the importance of the safety control instruction is greater than the importance of the environment adjustment instruction and the importance of the entertainment control instruction;

[0019] The importance of the instruction type is used as the dimensional importance of the first instruction in the instruction type dimension.

[0020] In one implementation, when the target dimension is a device state, obtaining the dimension importance of the first instruction in each target dimension includes:

[0021] Acquire a second field at a second preset position of the first instruction;

[0022] Determine, according to the second field, a device state of the device corresponding to the first instruction, wherein the device state includes at least one of an emergency state, a standby state, and a running state;

[0023] Determining the importance of the device state according to a preset state correspondence relationship, the importance of the emergency state is greater than the importance of the standby state, and the importance of the standby state is greater than the importance of the running state;

[0024] The importance of the device state is used as the dimensional importance of the first instruction in the device state dimension.

[0025] In one embodiment, when the target dimension is user-defined, obtaining the dimension importance of the first instruction in each target dimension includes:

[0026] Obtaining a third field of a third preset position of the first instruction;

[0027] Determine a triggering mode of the first instruction according to the third field, where the triggering mode includes at least one of user sending and conditional triggering;

[0028] Determine the importance of the trigger mode according to a preset trigger correspondence relationship, the importance of the user sent is greater than the importance of the conditional trigger;

[0029] The importance of the triggering method is used as the dimensional importance of the first instruction in the user-defined dimension.

[0030] In one embodiment, it further comprises:

[0031] Any two first instructions have the same dimension coefficient corresponding to the same target dimension;

[0032] Alternatively, based on a preset coefficient correspondence, the dimensional coefficient corresponding to the first instruction is determined.

[0033] In one embodiment, it further comprises:

[0034] For a second instruction whose preset category is a second category, obtaining a receiving time of the second instruction;

[0035] The second instructions are sorted according to the receiving time to obtain a priority queue of the second instructions, and the priority of any second instruction is greater than the priority of any first instruction.

[0036] In one embodiment, determining the preset category of each instruction includes:

[0037] Determining whether the instruction is a preset target instruction;

[0038] If not, the instruction is the first instruction; if so, the instruction is the second instruction.

[0039] In one embodiment, it further comprises:

[0040] Processing the instructions according to the determined priority queue to obtain a control command, sending the control command to a corresponding target device, and receiving result feedback from the target device;

[0041] If the result feedback indicates that the control command cannot be executed or fails to execute, it is processed according to a preset exception handling mechanism, and the exception handling mechanism includes resending and / or triggering an alarm.

[0042] In one embodiment, it further comprises:

[0043] recalculating the overall importance of a target first instruction at every preset cycle, wherein the target first instruction is an unprocessed first instruction in a priority queue of the first instructions;

[0044] The order of the target first instruction in the priority queue is adjusted based on the recalculated overall importance.

[0045] In a second aspect, the present invention provides a smart home device instruction processing device, comprising:

[0046] The preset category determination module is used to determine the preset category of each instruction when receiving instructions sent by multiple devices.

[0047] A dimension importance acquisition module, configured to acquire, for a first instruction whose preset category is a first category, the dimension importance of the first instruction in each target dimension, wherein the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation;

[0048] A weighted importance determination module, used for multiplying the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension;

[0049] An overall importance calculation module, used to calculate the overall importance of each first instruction, where the overall importance is the sum of the weighted importances of all target dimensions of the first instruction;

[0050] A priority queue acquisition module is used to sort the first instructions according to the overall importance to obtain a priority queue of the first instructions.

[0051] In a third aspect, the present invention provides a smart home device instruction processing device, comprising:

[0052] The processing device includes a memory and a processor. The memory stores program codes that can be run on the processor. When the program codes are executed by the processor, the smart home device instruction processing method as described above is implemented.

[0053] In a fourth aspect, the present invention provides a smart home system, applying the above-mentioned smart home device instruction processing method.

[0054] Compared with the prior art, the advantage of the present invention is that, when receiving instructions sent by multiple devices, the preset category of each instruction is first determined, and for the first instruction whose preset category is the first category, its dimensional importance in the target dimension is determined, and then the dimensional importance is multiplied by the corresponding dimensional coefficient to obtain the weighted importance of each dimension, and then the weighted importance of all dimensions is summed up to obtain the overall importance, and the first instructions are sorted in order from large to small based on the overall importance to obtain the priority queue of the first instructions. For the first instruction whose priority is not defined in advance, its priority queue is determined according to multiple target dimensions including real-time environmental data, which can effectively distinguish the importance of the instruction, solve the problem of delayed processing of key instructions, and improve the user experience and the overall efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 is a flow chart of a method for processing instructions of a smart home device in an embodiment of the present invention;

[0057] Figure 2 is a flow chart of a specific method for processing instructions of a smart home device in an embodiment of the present invention;

[0058] Figure 3 is a schematic diagram of the structure of a smart home device instruction processing device in an embodiment of the present invention;

[0059] Figure 4 It is a schematic diagram of the structure of a smart home device instruction processing device in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme of the present application is described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation methods obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0061] The existing technology defines the priority of each instruction in advance, but in actual use, since each device sends too many types of instructions, if the priority of each instruction type is defined, the workload will be too large. In a smart home, the central controller controls a large number of devices, so the priority defined for each type of instruction is not displayed. Therefore, in practice, only the priority of certain instructions representing safety will be defined, and other instructions will be processed slowly in chronological order. However, this will cause poor physical examination for users.

[0062] In addition, if the priority is fixed for each instruction, it will cause problems that do not meet actual needs. For example, for an instruction to control air conditioning cooling, the priority for the user should be different when the current indoor ambient temperature is 28°C and when the current indoor ambient temperature is 36°C. Therefore, the existing solution of defining the priority for each instruction in advance consumes a lot of manual definition costs and may not meet the actual needs of users during actual control.

[0063] Therefore, in order to solve the above technical problems, the present invention will be further described below in conjunction with the accompanying drawings.

[0064] Figure 1 A flow chart of a method for processing instructions for a smart home device is shown. Figure 1 As shown, the embodiment of the present application provides a method for processing instructions of a smart home device, including:

[0065] S110: When instructions sent by multiple devices are received, the preset category of each instruction is determined. Preferably, it is determined whether the instruction is a preset target instruction; if not, the instruction is a first instruction; if so, the instruction is a second instruction. That is, in the embodiment of the present application, the second instruction is a target instruction preset by the user in advance. When the received instruction is the target instruction, it is determined that its preset category is the second instruction. If it is not a target instruction, the preset category is the first instruction. Generally speaking, target instructions are some important fault warning / processing control instructions. Therefore, for the second instruction whose preset category is the second category, the receiving time of the second instruction is obtained; the second instructions are sorted in order from early to late according to the receiving time to obtain the priority queue of the second instruction, and the priority of any second instruction is greater than the priority of any first instruction. That is, the second instruction has the highest priority, and the second instruction is processed first when there is a second instruction. The first instruction is processed only after the second instruction is processed or when there is no second instruction.

[0066] Among them, the second instruction can be regarded as the instruction with the highest priority preset by the user in advance, while the first instruction is an instruction that is not preset by the user in advance and needs to be evaluated by an algorithm to obtain a priority.

[0067] S120: For a first instruction whose preset category is the first category, obtain the dimension importance of the first instruction in each target dimension, where the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation;

[0068] The first instruction is generally evaluated for priority according to an algorithm, and the evaluation method includes at least one dimension of real-time environment data, instruction type, device status, and user operation. It is understandable that the first instruction can be sorted based on any of the four dimensions, but in fact, the focus of a single dimension is too single and does not conform to the actual situation. Therefore, as a preferred implementation method of the embodiment of the present application, the target dimensions include real-time environment data, instruction type, device status, and user operation.

[0069] When the target dimension is real-time environmental data, obtaining the dimension importance of the first instruction in each target dimension includes:

[0070] Obtain each current real-time environmental data; calculate the deviation value between each real-time environmental data and the corresponding set value, deviation value = (actual environmental data-set value) / set value; determine the single importance corresponding to the deviation value based on a preset deviation value range, each deviation value range corresponds to a single importance, wherein the larger the deviation value range, the larger the single importance; take the sum of all single importances as the dimensional importance of the first instruction in the real-time environmental data dimension.

[0071] The greater the deviation between the real-time environment data and the set value, the less the current real-time environment data meets the user experience. When this item is connected with the environment condition instruction of the instruction type dimension, it can quickly provide users with a comfortable environment.

[0072] When the target dimension is an instruction type, obtaining the dimension importance of the first instruction in each target dimension includes:

[0073] Obtain a first field of a first preset position of the first instruction; determine an instruction type of the first instruction based on the first field, the instruction type comprising at least one of a safety control instruction, an environment adjustment instruction, and an entertainment control instruction; determine the importance of the instruction type based on a preset type correspondence, wherein the importance of the safety control instruction is greater than the importance of the environment adjustment instruction and the importance of the entertainment control instruction; and use the importance of the instruction type as the dimensional importance of the first instruction in the instruction type dimension.

[0074] Safety control instructions are the most important type of instructions, and the safety of the system must be ensured at all times; environmental condition instructions are for the user's physiological comfort, and entertainment control instructions are for the user's psychological comfort. Therefore, under the condition of ensuring safety control, the user's physiological or psychological comfort should be met as much as possible.

[0075] When the target dimension is a device state, obtaining the dimension importance of the first instruction in each target dimension includes:

[0076] Obtaining a second field of a second preset position of the first instruction; determining a device state of a device corresponding to the first instruction according to the second field, the device state including at least one of an emergency state, a standby state, and an operating state; determining the importance of the device state according to a preset state correspondence relationship, the importance of the emergency state being greater than the importance of the standby state, and the importance of the standby state being greater than the importance of the operating state;

[0077] The importance of the device state is used as the dimensional importance of the first instruction in the device state dimension. In an emergency state, it means that the device needs to be adjusted urgently to get rid of the emergency state, so the emergency state has the highest importance. There are fewer instructions in the standby state, so once there is one, it is relatively important. There are more instructions in the running state, and generally the importance is the lowest. Most of them are used for storage and recording.

[0078] When the target dimension is user-defined, obtaining the dimension importance of the first instruction in each target dimension includes:

[0079] Obtain the third field of the third preset position of the first instruction; determine the triggering mode of the first instruction according to the third field, the triggering mode includes at least one of user sending and conditional triggering; determine the importance of the triggering mode according to the preset trigger correspondence, the importance of the user sending is greater than the importance of the conditional triggering; use the importance of the triggering mode as the dimensional importance of the first instruction in the user-defined dimension. User sending is generally relatively urgent, so the importance is greater than the conditional triggering. Among them, the conditional triggering can be an event triggering, such as the temperature is greater than the preset temperature, and the humidity is greater than the preset humidity. Or time triggering, such as reaching the preset time, or running for a preset time. In the case of these conditional triggering, when setting the conditions, generally there is a certain amount of redundancy. Even if the set conditions are slightly exceeded, the impact is not great. Therefore, its importance is relatively low.

[0080] S130: Multiply the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension; when multiple target dimensions are used, since each target dimension has a different degree of influence on the final result, the dimension coefficient is used to feedback the degree of influence of the target dimension on the final result.

[0081] In one embodiment, all instructions have the same dimension coefficient in the same target dimension, that is, any two first instructions have the same dimension coefficient in the same target dimension.

[0082] In another embodiment, the dimensional coefficient corresponding to the first instruction is determined based on a preset coefficient correspondence. That is, different types of first instructions have different impacts on the overall result in terms of dimensional importance of the same target dimension, so different dimensional coefficients need to be used. Specifically, the preset coefficient correspondence may be that each first instruction corresponds to a set of dimensional coefficients. Alternatively, a certain type of first instruction corresponds to a set of dimensional coefficients. It can be set specifically according to actual needs.

[0083] S140: Calculate the overall importance of each first instruction, where the overall importance is the sum of the weighted importance of all target dimensions of the first instruction.

[0084] S150: Sort the first instructions according to the overall importance to obtain a priority queue of the first instructions.

[0085] Preferably, the first instructions are sorted in descending order of the overall importance to obtain a priority queue of the first instructions.

[0086] It can be understood that after obtaining the priority queues of the first instruction and the second instruction, the instructions are processed according to the determined priority queue to obtain a control command, the control command is sent to the corresponding target device, and result feedback from the target device is received; if the result feedback indicates that the control command cannot be executed or fails to execute, it is processed according to a preset exception handling mechanism, and the exception handling mechanism includes resending and / or triggering an alarm.

[0087] In addition, as an optional implementation method of the embodiment of the present application, the overall importance of the target first instruction is recalculated every preset period, and the target first instruction is the unprocessed first instruction in the priority queue among the first instructions; based on the recalculated overall importance, the order of the target first instruction in the priority queue is adjusted.

[0088] Because after a certain period of time, the current environment data may have changed, so the previously calculated priority is no longer applicable at this time, so the priority needs to be recalculated based on the current actual situation.

[0089] For example, when the indoor temperature is high, the user issues an air conditioning cooling command to set a target temperature. At this time, the calculator priority is medium. Since there are many commands with higher priorities than this command, it is placed in the priority queue to be processed after a period of time. If the indoor temperature rises again (such as cooking indoors, the indoor temperature is getting higher and higher), the priority may be adjusted to high when recalculating. If the indoor temperature becomes lower (such as the outdoor air temperature is low, the user opens the doors and windows to lower the indoor temperature), and is equal to or lower than the set temperature, the priority may be adjusted to low when recalculating.

[0090] The smart home device instruction processing method provided in the embodiment of the present application, when receiving instructions sent by multiple devices, first determines the preset category of each instruction, and for the first instruction whose preset category is the first category, determines its dimensional importance in the target dimension, and then multiplies the dimensional importance by the corresponding dimensional coefficient to obtain the weighted importance of each dimension, and then sums up the weighted importance of all dimensions to obtain the overall importance, and sorts the first instructions in order from large to small based on the overall importance to obtain the priority queue of the first instructions. For the first instruction whose priority is not defined in advance, its priority queue is determined according to multiple target dimensions including real-time environmental data, which can effectively distinguish the importance of the instruction, solve the problem of delayed processing of key instructions, and improve user experience and the overall efficiency of the system. Moreover, the order of the first instructions in the priority queue is adjusted every preset period to make it more in line with current actual needs.

[0091] Figure 2 A specific method for processing instructions for smart home devices is shown, such as Figure 2 As shown, the specific implementation method of the present invention is as follows:

[0092] 1. Command reception and analysis: The central controller receives command signals from each smart home device in real time, analyzes the received commands, and extracts key information such as the command content, target device, and execution requirements.

[0093] 2. Priority evaluation: Based on the preset priority evaluation algorithm, the central controller evaluates the priority of the parsed instructions. The evaluation algorithm comprehensively considers multiple factors such as instruction type (such as security control, environmental adjustment, entertainment control, etc.), device status (such as emergency status, standby status, running status, etc.), user settings (such as custom priority, scheduled tasks, etc.) and real-time environmental data (such as indoor temperature, humidity, light, etc.), and assigns corresponding priority labels to each instruction, such as high, medium, and low.

[0094] As a preferred implementation method of the embodiment of the present application, the instruction types include:

[0095] Emergency safety control instructions

[0096] When a home security system detects an intrusion and sends an emergency alarm command, the command will be marked as the highest priority. Because safety is the primary concern of family life, any security-related command needs to be responded to quickly. The central controller will immediately put the command at the top of the high priority queue and execute it immediately, such as setting off the alarm, notifying family members, or contacting external security agencies.

[0097] Environmental Regulation Instructions

[0098] In the hot summer, a family member uses the smart voice assistant to request to lower the indoor temperature. This command belongs to the environmental adjustment command, which has a relatively low priority, but still needs to be processed in time to ensure living comfort. The central controller will evaluate the priority of the command based on the current indoor temperature, humidity, and the comfort range set by the user. If the indoor temperature is much higher than the comfort range, the priority of the command will be increased accordingly to ensure that the air conditioning equipment can start in time and adjust the indoor temperature.

[0099] Entertainment control commands

[0100] When a family member is watching TV in the living room, the remote control sends a command to change channels. This entertainment control command usually has a lower priority because it does not directly affect the safety and comfort of family life. The central controller will put the command into a low priority queue and wait for processing. If a high priority command comes in at this time, the execution of the entertainment control command may be temporarily delayed.

[0101] During the evaluation process, the central controller also considers user-defined priority settings and scheduled tasks. For example, if the user sets a time limit to prohibit the use of entertainment devices, the corresponding entertainment control instructions will be temporarily deprioritized or ignored.

[0102] It should be noted that in the embodiment of the present application, the instruction type is distinguished by fields and different values ​​of the fields.

[0103] To make the application more clearly understood, a specific example is given below:

[0104] Different algorithm items are assigned threshold weights, such as: instruction type 30%, device status 20%, user settings 30%, real-time environment data 20%. The total score and each item are both 100 points, and the score of a single item is converted into the item threshold weight. For example, if the instruction type is 100 points and accounts for 30%, then the score of this item is 30 points.

[0105] Instruction type:

[0106] Safety control instructions: 100

[0107] Environmental adjustment instructions: 50

[0108] Entertainment control commands: 50

[0109] Device status:

[0110] Emergency: 100

[0111] Standby: 70

[0112] Running status: 50

[0113] User defined:

[0114] If the command is set by the user: 100

[0115] This command is triggered by scene linkage, etc.: 70

[0116] Real-time environmental data:

[0117] For every 10% deviation from the set value, 30 points will be added until the full score is reached

[0118] Based on the above scores, the ranking is based on the scores.

[0119] Among them, it should be noted that important fault warning / processing control instructions are based on presets, and when encountering important safety control instructions, the priority is highest in the order of arrival time.

[0120] It is understandable that the ranking of the score values ​​is only an example and does not necessarily have to be implemented in this way.

[0121] 3. Priority queue management: The central controller places the instructions into the corresponding priority queue according to the priority tag of the instructions. The instructions in the high priority queue will be processed first. At the same time, the system also has the function of dynamically adjusting the position of instructions in the queue to adapt to the real-time changing environment and needs.

[0122] 4. Command execution and feedback: The central controller processes and sends commands to the target device in the order of the priority queue. After the device executes the command, it feeds back the execution result to the central controller, which then performs corresponding processing based on the feedback result, such as updating the device status, recording logs, etc.

[0123] 5. Exception handling and monitoring: For commands that cannot be executed or fail to execute, the central controller will record the error information and handle it accordingly according to the preset exception handling mechanism, such as resending the command, triggering an alarm, etc. At the same time, the system also has a real-time monitoring function, which can monitor the operating status of the equipment, command processing status and other information in real time to provide guarantee for the stable operation of the system.

[0124] The present invention provides a method for managing the priority of instructions for smart home devices, which aims to ensure that key instructions are processed first by dynamically evaluating the priority of instructions, thereby improving the response speed and operating efficiency of the smart home system, enhancing the flexibility and intelligence of the smart home system, and enabling it to dynamically adjust the processing order of instructions according to different scenarios and needs.

[0125] Figure 3 A smart home device instruction processing device is shown, such as Figure 3 As shown, the embodiment of the present application also provides a smart home device instruction processing device, including:

[0126] The preset category determination module 310 is used to determine the preset category of each instruction when receiving instructions sent by multiple devices. Determining the preset category of each instruction includes:

[0127] Determining whether the instruction is a preset target instruction;

[0128] If not, the instruction is the first instruction; if so, the instruction is the second instruction.

[0129] A dimension importance acquisition module 320 is used to acquire, for a first instruction whose preset category is a first category, the dimension importance of the first instruction in each target dimension, where the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation;

[0130] When the target dimension is real-time environmental data, obtaining the dimension importance of the first instruction in each target dimension includes:

[0131] Get every current real-time environmental data;

[0132] Calculate the deviation between each real-time environmental data and the corresponding set value, deviation value = (actual environmental data - set value) / set value;

[0133] Determine the single-item importance corresponding to the deviation value based on a preset deviation value range, each deviation value range corresponds to a single-item importance, wherein the larger the deviation value range, the larger the single-item importance;

[0134] The sum of all individual importances is taken as the dimensional importance of the first instruction in the real-time environment data dimension.

[0135] When the target dimension is an instruction type, obtaining the dimension importance of the first instruction in each target dimension includes:

[0136] Acquire a first field of a first preset position of the first instruction;

[0137] Determining an instruction type of the first instruction according to the first field, the instruction type comprising at least one of a safety control instruction, an environment adjustment instruction, and an entertainment control instruction;

[0138] Determining the importance of the instruction type according to a preset type correspondence, wherein the importance of the safety control instruction is greater than the importance of the environment adjustment instruction and the importance of the entertainment control instruction;

[0139] The importance of the instruction type is used as the dimensional importance of the first instruction in the instruction type dimension.

[0140] When the target dimension is a device state, obtaining the dimension importance of the first instruction in each target dimension includes:

[0141] Acquire a second field at a second preset position of the first instruction;

[0142] Determine, according to the second field, a device state of the device corresponding to the first instruction, wherein the device state includes at least one of an emergency state, a standby state, and a running state;

[0143] Determining the importance of the device state according to a preset state correspondence relationship, the importance of the emergency state is greater than the importance of the standby state, and the importance of the standby state is greater than the importance of the running state;

[0144] The importance of the device state is used as the dimensional importance of the first instruction in the device state dimension.

[0145] When the target dimension is user-defined, obtaining the dimension importance of the first instruction in each target dimension includes:

[0146] Obtaining a third field of a third preset position of the first instruction;

[0147] Determine a triggering mode of the first instruction according to the third field, where the triggering mode includes at least one of user sending and conditional triggering;

[0148] Determine the importance of the trigger mode according to a preset trigger correspondence relationship, the importance of the user sent is greater than the importance of the conditional trigger;

[0149] The importance of the triggering method is used as the dimensional importance of the first instruction in the user-defined dimension.

[0150] A weighted importance determination module 330, configured to obtain a weighted importance of each target dimension by multiplying the dimension importance by a corresponding dimension coefficient;

[0151] Among them, the dimension coefficients corresponding to the same target dimension of any two first instructions are the same;

[0152] Alternatively, based on a preset coefficient correspondence, the dimensional coefficient corresponding to the first instruction is determined.

[0153] An overall importance calculation module 340, configured to calculate the overall importance of each first instruction, where the overall importance is the sum of the weighted importances of all target dimensions of the first instruction;

[0154] The priority queue acquisition module 350 is used to sort the first instructions in descending order of the overall importance to obtain a priority queue of the first instructions.

[0155] As a preferred implementation method of the embodiment of the present application, for a second instruction whose preset category is a second category, a reception time of the second instruction is obtained;

[0156] The second instructions are sorted in order of the receiving time from earliest to latest to obtain a priority queue of the second instructions, and the priority of any of the second instructions is greater than the priority of any of the first instructions.

[0157] In addition, it also includes processing the instruction according to the determined priority queue to obtain a control command, sending the control command to a corresponding target device, and receiving result feedback from the target device;

[0158] If the result feedback indicates that the control command cannot be executed or fails to execute, it is processed according to a preset exception handling mechanism, and the exception handling mechanism includes resending and / or triggering an alarm.

[0159] As a preferred implementation method of the embodiment of the present application, it also includes:

[0160] recalculating the overall importance of a target first instruction at every preset cycle, wherein the target first instruction is an unprocessed first instruction in a priority queue of the first instructions;

[0161] The order of the target first instruction in the priority queue is adjusted based on the recalculated overall importance.

[0162] The smart home device instruction processing device provided by the embodiment of the present application, when receiving instructions sent by multiple devices, the preset category determination module determines the preset category of each instruction. For the first instruction whose preset category is the first category, the dimension importance acquisition module obtains the dimension importance of the first instruction in each target dimension, and the target dimension includes at least one of real-time environmental data, instruction type, device status and user operation; the weighted importance determination module multiplies the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension; the overall importance calculation module calculates the overall importance of each first instruction, and the overall importance is the sum of the weighted importance of all target dimensions of the first instruction; the priority queue acquisition module sorts the first instructions in order from large to small according to the overall importance to obtain the priority queue of the first instruction. For the first instruction whose priority is not defined in advance, its priority queue is determined according to multiple target dimensions including real-time environmental data. For the second instruction preset in advance, it is processed in sequence according to the order of receiving time. The present application scheme can effectively distinguish the importance of instructions, solve the problem of delayed processing of key instructions, and improve user experience and the overall efficiency of the system.

[0163] Figure 4 A schematic diagram of a smart home device instruction processing device structure is shown. Figure 4 As shown, the processing device includes a memory 410 and a processor 420. The memory stores program codes that can be run on the processor. When the program codes are executed by the processor, the smart home device instruction processing method provided in the above embodiment is implemented.

[0164] The smart home device instruction processing device provided by the embodiment of the present application stores program codes that can be run on the processor through a memory. When the program code is executed by the processor, when receiving instructions sent by multiple devices, it can first determine the preset category of each instruction, and for the first instruction whose preset category is the first category, determine its dimensional importance in the target dimension, and then multiply the dimensional importance by the corresponding dimensional coefficient to obtain the weighted importance of each dimension, and then add up the weighted importance of all dimensions to obtain the overall importance, and sort the first instructions in order from large to small based on the overall importance to obtain the priority queue of the first instructions. For the first instruction whose priority is not defined in advance, its priority queue is determined according to multiple target dimensions including real-time environmental data, and for the second instruction that is preset in advance, it is processed in sequence according to the order of receiving time. The solution of the present application can effectively distinguish the importance of instructions, solve the problem of delayed processing of key instructions, and improve user experience and the overall efficiency of the system.

[0165] In addition, an embodiment of the present application also provides a smart home system, which applies the smart home device instruction processing method provided by the above embodiment.

[0166] The smart home system provided by the embodiment of the present application, by applying the smart home device instruction processing method provided by the above embodiment, can first determine the preset category of each instruction when receiving instructions sent by multiple devices, and for the first instruction whose preset category is the first category, determine its dimensional importance in the target dimension, and then multiply the dimensional importance by the corresponding dimensional coefficient to obtain the weighted importance of each dimension, and then add up the weighted importance of all dimensions to obtain the overall importance, and sort the first instructions in order from large to small based on the overall importance to obtain the priority queue of the first instructions. For the first instruction whose priority is not defined in advance, its priority queue is determined according to multiple target dimensions including real-time environmental data, and for the second instruction that is preset in advance, it is processed in sequence according to the order of receiving time. The scheme of the present application can effectively distinguish the importance of instructions, solve the problem of delayed processing of key instructions, and improve user experience and the overall efficiency of the system.

[0167] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0168] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0169] Although the present invention has been described with reference to preferred embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, the various technical features mentioned in the various embodiments may be combined in any manner as long as there are no structural conflicts. The present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A method for processing instructions for smart home devices, It is characterized in that include: When receiving commands sent by multiple devices, determining a preset category of each command; For a first instruction whose preset category is the first category, obtaining the dimensional importance of the first instruction in each target dimension, where the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation; Multiplying the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension; Calculating the overall importance of each first instruction, where the overall importance is the sum of the weighted importance of all target dimensions of the first instruction; The first instructions are sorted according to the overall importance to obtain a priority queue of the first instructions.

2. The method according to claim 1, It is characterized in that When the target dimension is real-time environmental data, obtaining the dimension importance of the first instruction in each target dimension includes: Get every current real-time environmental data; Calculate the deviation between each real-time environmental data and the corresponding set value, deviation value = (actual environmental data - set value) / set value; Determine the single-item importance corresponding to the deviation value based on a preset deviation value range, each deviation value range corresponds to a single-item importance, wherein the larger the deviation value range, the larger the single-item importance; The sum of all individual importances is taken as the dimensional importance of the first instruction in the real-time environment data dimension.

3. The method according to claim 1, It is characterized in that When the target dimension is an instruction type, obtaining the dimension importance of the first instruction in each target dimension includes: Acquire a first field of a first preset position of the first instruction; Determining an instruction type of the first instruction according to the first field, the instruction type comprising at least one of a safety control instruction, an environment adjustment instruction, and an entertainment control instruction; Determining the importance of the instruction type according to a preset type correspondence, wherein the importance of the safety control instruction is greater than the importance of the environment adjustment instruction and the importance of the entertainment control instruction; The importance of the instruction type is used as the dimensional importance of the first instruction in the instruction type dimension.

4. The method according to claim 1, It is characterized in that When the target dimension is a device state, obtaining the dimension importance of the first instruction in each target dimension includes: Acquire a second field at a second preset position of the first instruction; Determine, according to the second field, a device state of the device corresponding to the first instruction, wherein the device state includes at least one of an emergency state, a standby state, and a running state; Determining the importance of the device state according to a preset state correspondence relationship, wherein the importance of the emergency state is greater than the importance of the standby state, and the importance of the standby state is greater than the importance of the running state; The importance of the device state is used as the dimensional importance of the first instruction in the device state dimension.

5. The method according to claim 1, It is characterized in that When the target dimension is user-defined, obtaining the dimension importance of the first instruction in each target dimension includes: Obtaining a third field at a third preset position of the first instruction; Determine a triggering mode of the first instruction according to the third field, where the triggering mode includes at least one of user sending and conditional triggering; Determining the importance of the trigger mode according to a preset trigger correspondence relationship, wherein the importance sent by the user is greater than the importance of the conditional trigger; The importance of the triggering method is used as the dimensional importance of the first instruction in the user-defined dimension.

6. The method according to claim 1, It is characterized in that Also includes: Any two first instructions have the same dimension coefficient corresponding to the same target dimension; Alternatively, based on a preset coefficient correspondence, the dimensional coefficient corresponding to the first instruction is determined.

7. The method according to claim 1, It is characterized in that Also includes: For a second instruction whose preset category is a second category, obtaining a receiving time of the second instruction; The second instructions are sorted according to the receiving time to obtain a priority queue of the second instructions, wherein the priority of any second instruction is greater than the priority of any first instruction.

8. The method according to claim 1, It is characterized in that Determining the preset category of each instruction includes: Determining whether the instruction is a preset target instruction; If not, the instruction is the first instruction; if so, the instruction is the second instruction.

9. The method according to any one of claims 1 to 8, It is characterized in that Also includes: Processing the instructions according to the determined priority queue to obtain a control command, sending the control command to a corresponding target device, and receiving result feedback from the target device; If the result feedback indicates that the control command cannot be executed or fails to be executed, it is processed according to a preset exception handling mechanism, and the exception handling mechanism includes resending and / or triggering an alarm.

10. The method according to claim 1, It is characterized in that Also includes: recalculating the overall importance of a target first instruction at every preset cycle, wherein the target first instruction is an unprocessed first instruction in a priority queue of the first instructions; The order of the target first instruction in the priority queue is adjusted based on the recalculated overall importance.

11. A smart home device instruction processing device, It is characterized in that include: A preset category determination module, used to determine the preset category of each instruction when receiving instructions sent by multiple devices; A dimension importance acquisition module, configured to acquire, for a first instruction whose preset category is a first category, the dimension importance of the first instruction in each target dimension, wherein the target dimension includes at least one of real-time environment data, instruction type, device status, and user operation; A weighted importance determination module, used for multiplying the dimension importance by the corresponding dimension coefficient to obtain the weighted importance of each target dimension; An overall importance calculation module, used to calculate the overall importance of each first instruction, where the overall importance is the sum of the weighted importances of all target dimensions of the first instruction; A priority queue acquisition module is used to sort the first instructions according to the overall importance to obtain a priority queue of the first instructions.

12. A smart home device instruction processing device, It is characterized in that include: The processing device includes a memory and a processor, wherein the memory stores program codes that can be run on the processor, and when the program codes are executed by the processor, the method according to any one of claims 1 to 10 is implemented.

13. A smart home system, It is characterized in that The method according to any one of claims 1 to 10 is used.

Citation Information

Patent Citations

  • Smart home and socialized service control system

    CN104181902A

  • Intelligent home apparatus control method and device

    CN106302041A

  • Device control method and device

    CN107248943A

  • Control method and device, electronic equipment and storage medium

    CN109753034A

  • Intelligent temperature control device and control method

    CN114296356A