Household appliance control method and device, storage medium and household appliance
By obtaining and verifying the service command requests issued by the user equipment in the smart home system, determining the task execution data and judging the execution conditions, the security risks of the user equipment and the smart home system equipment are solved, and the security and flexibility of the system are improved.
Patent Information
- Application Number
- CN202411929411.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There are security risks when user equipment communicates directly with devices in smart home systems, including the possibility of eavesdropping of data transmission, the possibility of command transmission being tampered with, and the possibility of user equipment being bound for unauthorized control.
By obtaining service instruction requests, the task execution data is determined, including signal strength, user identification of the user equipment, task type, task time and task identification, and based on these data, whether the execution conditions are met, including control authority, distance limitation and task legality, to decide whether to perform the target task.
Improve the security and flexibility of smart home systems, prevent unauthorized access and operation, ensure that only authorized users can control home appliances, and reduce the risk of remote attacks and misoperation.
Smart Images

Figure CN119758750A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home appliances, and more specifically, to a control method for a home appliance, a control device for a home appliance, a computer-readable storage medium, and a home appliance. Background Art
[0002] Smart home systems connect home appliances organically through the Internet of Things technology, which can realize remote control of home appliances, intelligently identify user habits, actively issue control instructions, and improve the quality of life of users. At present, smart home systems can control the devices used by family members (such as air conditioners, TVs, refrigerators, etc.) through user devices (such as mobile phones), improving the convenience of user operation.
[0003] However, direct communication between user devices and devices in the smart home system poses security risks. For example, data transmission between user devices and devices may be eavesdropped; command transmission between user devices and devices may be tampered with; user devices may be bound by someone and control instructions may be distributed to other devices. Summary of the invention
[0004] The main purpose of the present application is to provide a control method for household appliances, a control device for household appliances, a computer-readable storage medium and household appliances, so as to at least solve the problem of security risks in the prior art when user devices communicate directly with devices in a smart home system.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for controlling a household appliance is provided, comprising: obtaining a service instruction request, the service instruction request being an instruction request for controlling a target household appliance to perform a target task, the service instruction request being issued by a user device; determining task execution data based on the service instruction request, the task execution data including at least a signal strength of the service instruction request, a user identifier of the user device, and a task type, task time, and task identifier of the target task; the target household appliance determining whether the target household appliance performs the target task based on the task execution data.
[0006] Optionally, the target home appliance determines whether the target home appliance executes the target task based on the task execution data, including: determining whether a first condition is met based on a user identifier of the user device, the first condition being used to limit the control authority of the user device; determining whether a second condition is met based on the signal strength of the service instruction request, the second condition being used to limit the distance between the user device and the target home appliance; determining whether a third condition is met based on the task type, task time and task identifier of the target task, the third condition being used to limit the execution data of the target task; determining that the target home appliance executes the target task if the first condition, the second condition and the third condition are met; and determining that the target home appliance does not execute the target task if at least one of the first condition, the second condition and the third condition is not met.
[0007] Optionally, determining whether the first condition is met based on the user identification of the user device includes: obtaining the user ID of the user device; determining the control authority of the user device based on the user ID of the user device, the control authority including a controllable device type and a corresponding controllable task type of the user device; when the controllable device type of the user device includes the device type of the target household appliance, and the controllable task type corresponding to the user device includes the target task, determining that the user device meets the first condition.
[0008] Optionally, determining whether the user device satisfies the second condition based on the signal strength of the service instruction request includes: determining that the distance between the user device and the target household appliance is the target distance based on the RSSI value of the service instruction request, and the RSSI value of the service instruction request represents the signal strength of the service instruction request; when the target distance is less than or equal to a preset distance, determining that the user device satisfies the second condition; when the target distance is greater than the preset distance, determining that the user device does not satisfy the second condition.
[0009] Optionally, determining whether the service instruction request satisfies a third condition based on the task type, task time and task identifier of the target task includes: determining that the service instruction request satisfies the third condition when the protocol instruction value of the target task is a target instruction value, the timestamp of the target task is within a preset time range, and the task ID of the target task is a target ID, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task; determining that the service instruction request does not satisfy the third condition when at least one of the following is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID.
[0010] Optionally, after the target home appliance determines whether the target home appliance executes the target task based on the task execution data, the method further includes: when there are multiple target tasks, determining the execution priority of each target task according to the RSSI value requested by the service instruction; and executing the target tasks in sequence according to the execution priorities of all the target tasks.
[0011] Optionally, the execution priority of each target task is determined according to the RSSI value requested by the service instruction, including: when the RSSI value of the target task is greater than or equal to a first preset value, determining the execution priority of the target task to be a first priority; when the RSSI value of the target task is greater than or equal to a second preset value and less than the first preset value, determining the execution priority of the target task to be a second priority, and the first priority is higher than the second priority; when the RSSI value of the target task is less than the second preset value, determining the execution priority of the target task to be a third priority, and the second priority is higher than the third priority.
[0012] According to another aspect of the present application, a control device for a household appliance is provided, comprising: an acquisition unit, used to acquire a service instruction request, wherein the service instruction request is an instruction request for controlling a target household appliance to perform a target task, and the service instruction request is issued by a user device; a first determination unit, used to determine task execution data according to the service instruction request, wherein the task execution data includes at least a signal strength of the service instruction request, a user identifier of the user device, and a task type, task time, and task identifier of the target task; and a second determination unit, used to determine whether the target household appliance performs the target task according to the task execution data.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods for controlling a household appliance.
[0014] According to another aspect of the present application, a household appliance is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a control method for executing any one of the household appliance devices.
[0015] Applying the technical solution of the present application, the control method of the above-mentioned household appliance first obtains a service instruction request, which is an instruction request for controlling the target household appliance to perform a target task, and the service instruction request is issued by a user device; then, according to the service instruction request, the task execution data is determined, and the task execution data at least includes the signal strength of the service instruction request, the user ID of the user device, and the task type, task time, and task ID of the target task; finally, the target household appliance determines whether the target household appliance performs the target task according to the task execution data. The method authenticates the user who initiated the instruction according to the service instruction request initiated by the user, and comprehensively judges whether the task needs to be executed by combining the strength of the received signal and other information of the received task (task type, task time, task ID), thereby improving the flexibility and security of the smart home system and solving the problem of potential safety hazards when the user device directly communicates with the equipment in the smart home system in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for controlling a household appliance provided in an embodiment of the present application is shown;
[0018] Figure 2 A schematic diagram of a flow chart of a method for controlling a household appliance provided according to an embodiment of the present application is shown;
[0019] Figure 3 A schematic diagram of a flow chart of a method for controlling a household appliance provided according to an embodiment of the present application is shown;
[0020] Figure 4 A structural block diagram of a control device for household appliances provided according to an embodiment of the present application is shown.
[0021] The above drawings include the following reference numerals:
[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] As introduced in the background technology, in the prior art, there are security risks when user devices directly communicate with devices in a smart home system. In order to solve the problem of security risks when user devices directly communicate with devices in a smart home system in the prior art, the embodiments of the present application provide a control method for home appliance, a control device for home appliance, a computer-readable storage medium and home appliance.
[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0028] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for controlling a household appliance according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the household appliance in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a control method for household appliances running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] Figure 2 FIG. 1 is a flow chart of a method for controlling a household appliance according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0032] Step S201, obtaining a service instruction request, wherein the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device;
[0033] Specifically, the smart home system needs to be able to receive service command requests from user devices. These requests are usually sent via wireless networks (such as Wi-Fi, Bluetooth, or ZigBee), and they contain information about the operations that the user wants to perform, such as turning on the air conditioner, adjusting the settings of the washing machine, or turning off the lights in the kitchen. For example, a user may send a command request asking the smart air conditioner to set the indoor temperature to 25°C.
[0034] Step S202, determining task execution data according to the service instruction request, the task execution data at least including the signal strength of the service instruction request, the user identification of the user equipment, and the task type, task time and task identification of the target task;
[0035] Specifically, when the smart device is connected to the Internet, the signal strength between the current device and the connected WiFi can be checked in the APP. When the user approaches a device and issues a control command, the smart home system will receive the service command request initiated by the user, and during the receiving process, it will make a comprehensive judgment on the user identification (such as user ID or device ID), task type (such as turning on the light, closing the door, adjusting the temperature, etc., the device's issued instructions have corresponding protocol instruction values), task time (such as the timestamp of the request initiation), task identification (such as the unique ID of the task), and signal strength (such as RSSI value).
[0036] Step S203: the target home appliance determines whether the target home appliance executes the target task according to the task execution data.
[0037] Specifically, based on the service instruction request initiated by the user, the user who initiates the instruction is authenticated, and after the verification, the service instruction request is converted into a service task that can be recognized by the intelligent service system. When it is determined that the service request instruction contains all the necessary execution parameters for executing the service task, the service confirmation information is replied to the user.
[0038] The target home appliance determines whether the target home appliance executes the target task according to the task execution data, including the following steps:
[0039] Step S301, determining whether a first condition is satisfied according to a user identification of the user equipment, wherein the first condition is used to limit the control authority of the user equipment;
[0040] Wherein, determining whether the first condition is met according to the user identification of the user equipment comprises the following steps:
[0041] Step S3011, obtaining the user ID of the above user device;
[0042] Step S3012, determining the control authority of the user device according to the user ID of the user device, wherein the control authority includes a controllable device type and a corresponding controllable task type of the user device;
[0043] Step S3013, when the controllable device type of the above-mentioned user device includes the device type of the above-mentioned target home appliance device, and the above-mentioned controllable task type corresponding to the above-mentioned user device includes the above-mentioned target task, determine that the above-mentioned user device satisfies the above-mentioned first condition.
[0044] Specifically, when a user device sends a service instruction request, the smart home system will identify the user ID in the request and query the preset permission list in the system based on this ID. If the user ID corresponds to a user who has the permission to control the target home appliance, the system will allow the execution of the instruction in the request. Otherwise, the system will refuse to execute and may return a message of insufficient permission to the user. This mechanism ensures that only authorized users can control specific devices, thereby improving the security of the system and preventing unauthorized access or operation.
[0045] Each user registered in the smart home system is assigned a unique user ID. This ID is the basis for the system to identify and distinguish different users, ensuring that each user's activities and permission settings can be managed independently.
[0046] In a smart home system, different users may have different control permissions. Control permissions define what operations a user can perform, such as turning on, off, adjusting settings, etc., and what devices they can control. For example, a home creator may have full control over all devices, while a guest may only be able to control certain specific devices or perform only some basic control operations.
[0047] For example: the creator of a family and family members are their own unique identifiers. When issuing instructions, the server can determine the initiator of the service. At this time, the user with family member ID 1 initiates a control instruction to the smart temperature control system on the mobile phone. After receiving the instruction, the server identifies the source of the task and initiates identity verification. After determining that the user ID belongs to the ID of the current family, confirm whether the requesting user has the authority to perform the task. For example, the creator of the family can set the user as a super administrator or ordinary member, which is the preset authority when inviting members in the early stage. By checking the user ID and the preset authorization list for comparison, the requesting user who meets the requirements has the authority to control.
[0048] Step S302, determining whether a second condition is satisfied according to the signal strength of the service instruction request, wherein the second condition is used to limit the distance between the user equipment and the target home appliance;
[0049] Wherein, determining whether the user equipment satisfies the second condition according to the signal strength of the service instruction request comprises the following steps:
[0050] Step S3021, determining the distance between the user device and the target home appliance as a target distance according to the RSSI value of the service instruction request, wherein the RSSI value of the service instruction request represents the signal strength of the service instruction request;
[0051] Step S3022: When the target distance is less than or equal to the preset distance, determining that the user equipment meets the second condition;
[0052] Step S3023: When the target distance is greater than the preset distance, it is determined that the user equipment does not meet the second condition.
[0053] Specifically, this enables the smart home system to add a layer of security to prevent commands from unauthorized user devices from being executed. For example, even if a user device sends a correct control command, if the device is too far away from the target home appliance (RSSI value is too low), the system will not execute the command, thereby reducing the risk of remote attacks or misoperation. At the same time, distance estimation based on RSSI values also helps in the automated control of smart home scenarios, such as automatically turning on certain devices or adjusting device settings when a user device is detected approaching.
[0054] RSSI (Received Signal Strength Indication) is an important parameter in wireless communication technology, which reflects the strength of the wireless signal at the receiving end. In a smart home system, when a user device (such as a smartphone) communicates with a home appliance through a wireless network (such as Wi-Fi or Bluetooth), the home appliance can measure and report the received signal strength.
[0055] When users want to control a device in their home (target home appliance), they send a service command request through the user device. These requests contain instructions for performing specific tasks and device identification information, and also imply the wireless signal strength between devices.
[0056] By analyzing the RSSI value in the service command request, the smart home system can estimate the distance between the user device and the target home appliance. This is because the RSSI value is usually inversely proportional to the distance of the wireless signal transmission, that is, the closer the distance, the higher the RSSI value; the farther the distance, the lower the RSSI value.
[0057] RSSI refers to the strength of the received wireless signal, which can help determine the distance between the device and the signal source (such as a router or other device). The setting principle is mainly based on three aspects: security, environmental factors, and device performance. Security includes the following:
[0058] Close-range operation: For sensitive tasks that require the user to be very close to perform (such as unlocking a door, activating a security system), set a higher RSSI threshold to ensure that the task can only be performed when the user device is very close.
[0059] Long-distance operation: For tasks that can be performed safely at a longer distance (such as dimming indoor lights and adjusting the temperature), a lower RSSI threshold can be set.
[0060] Environmental factors include the following:
[0061] Obstacles: Consider obstacles in the signal propagation path (such as walls, furniture), which will reduce the signal strength. Therefore, in complex environments, it may be necessary to appropriately lower the RSSI threshold.
[0062] Interference: Consider surrounding wireless interference sources (such as other Wi-Fi devices, microwave ovens, etc.), which can affect the stability of signal strength.
[0063] Equipment performance includes the following:
[0064] Transmit power: Different devices have different transmit powers, resulting in different received signal strengths. You need to set a reasonable RSSI threshold based on the characteristics of the specific device.
[0065] Receiving sensitivity: Different devices have different receiving sensitivities, which affects the received signal strength. You need to adjust the RSSI threshold based on the receiving sensitivity of the device.
[0066] Step S303, determining whether a third condition is satisfied according to the task type, task time and task identifier of the target task, wherein the third condition is used to limit the execution data of the target task;
[0067] Wherein, determining whether the service instruction request satisfies the third condition according to the task type, task time and task identifier of the target task comprises the following steps:
[0068] Step S3031, determining that the service instruction request satisfies the third condition when the protocol instruction value of the target task is the target instruction value, the timestamp of the target task is within the preset time range, and the task ID of the target task is the target ID, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task;
[0069] Step S3032, when at least one of the following conditions is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID, it is determined that the service instruction request does not meet the third condition.
[0070] Specifically, when the signal strength exceeds the threshold, other parameters of the task, such as task type and task time, are verified to see if they meet the preset conditions. The results of identity authentication, signal strength evaluation, and task parameter verification are combined to determine whether to execute the task. If all conditions are met, the corresponding task is executed, otherwise the execution is rejected and an error message is returned. Through the above steps, it is possible to comprehensively determine whether the task needs to be executed based on the received device signal and other information of the task (task type, task time, task identifier), thereby improving the flexibility and security of the smart home system.
[0071] Among them, UUID (Universally Unique Identifier) can be used to generate task identifiers. UUID can ensure that the task identifier is unique globally. Then the UUID of this patent is generated based on random numbers (the random number generator (RNG) generates a 128-bit random number). The UUID generated in this way does not depend on time and nodes, so it will not expose device information. It can ensure the data security and privacy of users' homes.
[0072] Among them, the task time is recorded in the form of a timestamp, accurate to the second. That is, the time of each control instruction is the timestamp of the current action. There is no default design in the task time program, which needs to be based on the user setting. If the user sets the air conditioner to turn on at 10:00 pm and turn off at 7:00 am, then the effective task time is within this time period.
[0073] RSSI is a commonly used indicator in wireless communication, indicating the received signal strength. RSSI value can be obtained through wireless communication modules (such as Wi-Fi, Bluetooth modules). Here, different tasks can be triggered by setting different RSSI thresholds, or the execution order and priority of tasks can be determined according to the changes in signal strength.
[0074] Different tasks may require different RSSI thresholds to meet different security and operational requirements. For example:
[0075] Unlock door: RSSI threshold: higher (e.g. -50dBm);
[0076] Reason: Unlocking a door is a very sensitive task that needs to be performed by ensuring that the user device is very close to the door lock to prevent remote attacks.
[0077] Start the security system: RSSI threshold: higher (such as -55dBm);
[0078] Reason: Activating the security system requires ensuring that the user is inside the house or very close to the house to prevent accidental operation.
[0079] Turn on the light: RSSI threshold: medium (such as -60dBm);
[0080] Reason: The task of turning on the light has relatively low security requirements, but it still needs to ensure that the user is in or nearby the room.
[0081] Adjust temperature: RSSI threshold: lower (e.g. -70dBm);
[0082] Reason: Temperature adjustment tasks have lower safety requirements and users can perform them at a longer distance.
[0083] Step S304, when the first condition, the second condition and the third condition are met, determining that the target home appliance performs the target task;
[0084] Step S305: When at least one of the first condition, the second condition and the third condition is not satisfied, determine that the target home appliance does not perform the target task.
[0085] Specifically, through the above steps, it is possible to comprehensively judge whether a task needs to be executed based on the received device signal and other information of the task (task type, task time, task identifier), thereby improving the flexibility and security of the smart home system.
[0086] Wherein, after the target home appliance determines whether the target home appliance executes the target task according to the task execution data, the method further includes the following steps:
[0087] Step S401, when there are multiple target tasks, determining the execution priority of each target task according to the RSSI value of the service instruction request;
[0088] Step S402: Execute the above target tasks in sequence according to the execution priorities of all the above target tasks.
[0089] Specifically, when the smart home system receives a service instruction request containing multiple target tasks, it analyzes the characteristics of each task, such as task type, task time, signal strength (RSSI value), etc., to determine the execution priority of each task. The system may use pre-set rules or algorithms to evaluate these characteristics and assign a priority value to each task. For example, tasks may be ranked according to their urgency, the distance between the user device and the target device (determined by the RSSI value), and the impact on the current home environment.
[0090] Once the priorities of all target tasks are determined, the system will execute them in order of priority. This means that the highest priority tasks will be executed first, and lower priority tasks may need to wait until higher priority tasks are completed. This priority-based execution method helps smart home systems respond to user needs more effectively when handling multiple tasks, optimize the use of home devices, and ensure that urgent or important tasks are handled in a timely manner.
[0091] For example, if a user sends a request to adjust the temperature and turn on a security camera at the same time, and the security camera control request is determined to have a higher priority based on the signal strength and preset rules, the system will turn on the security camera first and then adjust the temperature to ensure that the home security monitoring is satisfied first. This mechanism is especially important when processing multiple concurrent requests, which helps improve system efficiency and user experience.
[0092] According to the RSSI value of the service instruction request, determining the execution priority of each of the target tasks includes the following steps:
[0093] Step S4021, when the RSSI value of the target task is greater than or equal to the first preset value, determining the execution priority of the target task to be the first priority;
[0094] Step S4022: when the RSSI value of the target task is greater than or equal to the second preset value and less than the first preset value, determining that the execution priority of the target task is the second priority, and the first priority is higher than the second priority;
[0095] Step S4023: When the RSSI value of the target task is less than the second preset value, determine that the execution priority of the target task is the third priority, and the second priority is higher than the third priority.
[0096] Specifically, when the smart home system receives a service instruction request containing multiple target tasks, it analyzes the RSSI value corresponding to each task request. The system can regard tasks with higher RSSI values as tasks where the user device is closer to the target home appliance, so these tasks may be more in line with the user's current needs or more urgent. Based on the analysis of RSSI values, the system can assign an execution priority to each task, giving priority to those tasks with high RSSI values (i.e., close distance). This mechanism not only improves the response speed of device control, but also enhances the intelligence and user-friendliness of the system, ensuring that the target tasks most relevant to the user's current location or activity are given priority.
[0097] For example, when a user walks into the house and sends a command request to turn on the lights in the living room and bedroom at the same time, the smart home system may decide which light to turn on first based on the signal strength received by the smart bulbs in the living room and bedroom. If the signal strength received by the living room light is higher, the system may give priority to turning on the living room light, because this indicates that the user may be closer to the living room and needs lighting more immediately.
[0098] The first preset value may be -50dBm, and the second preset value may be -60dBm.
[0099] In some instances, for high-priority tasks, RSSI ≥ -550dBm (such as unlocking a door, starting a security system): These tasks have high security requirements and usually require a higher RSSI value.
[0100] Medium priority tasks, -560dBm≤RSSI<-550dBm (such as turning on lights, adjusting temperature): These tasks have medium security requirements and a moderate RSSI value is sufficient.
[0101] Low priority tasks, RSSI < -560dBm (such as checking device status, obtaining environmental data): These tasks have low security requirements and can be performed at lower RSSI values.
[0102] The system maintains a task queue, sorted by priority and RSSI value. High priority tasks and tasks with stronger RSSI values are executed first.
[0103] According to the real-time monitoring of RSSI values, when the signal strength changes, the task queue is re-evaluated. A stronger RSSI can increase the priority of these tasks, and if the RSSI is low, the priority of these tasks can be reduced or the execution can be postponed. Every time the RSSI value exceeds a certain threshold, the system needs to re-order the task queue to ensure that high-priority and strong-signal tasks are executed first.
[0104] Since the above embodiments are aimed at control instructions in the user's home, in theory, all device control instructions in the home are valid, basically, they are the power on / off of the device and the switching of modes. If the instructions are issued through the protocol and are valid, they are normally effective instructions. If the network fluctuates or the communication between the module and the whole machine or the module and the server is disconnected, the instructions cannot be effectively transmitted and they are invalid instructions (for example, when the app shows that the device is offline, at this time, pressing the power button on the device machine will not change the device status of the app. Only when the device is displayed as online on the app, the device control instructions of the app will be issued normally, and the whole machine will change the status accordingly).
[0105] In addition, if the task fails to execute, an error message is directly returned, and the control instruction does not take effect, that is, the device will not change the current state due to this instruction.
[0106] As can be seen from the above, the prior art only discloses the execution of service requests after the user identity is authenticated; the embodiment provided in the present application integrates the signal strength (RSSI) and realizes the association between signal strength and tasks through predefined rules or logic. That is, different RSSI thresholds can be set to trigger different tasks, or the execution order and priority of tasks can be determined according to the change in signal strength. If the signal strength meets the threshold requirements, the task type, task time, and task identifier are judged to comprehensively decide whether to execute. In the first step, if the signal strength does not meet the threshold, the direct control failure is not controlled.
[0107] The control method of the above-mentioned household appliance of the present application first obtains a service instruction request, which is an instruction request for controlling the target household appliance to perform a target task, and the service instruction request is issued by a user device; then, according to the service instruction request, the task execution data is determined, and the task execution data at least includes the signal strength of the service instruction request, the user ID of the user device, and the task type, task time, and task ID of the target task; finally, the target household appliance determines whether the target household appliance performs the target task according to the task execution data. The method authenticates the user who initiated the instruction according to the service instruction request initiated by the user, and comprehensively judges whether the task needs to be executed by combining the strength of the received signal and other information of the received task (task type, task time, task ID), thereby improving the flexibility and security of the smart home system and solving the problem of potential safety hazards when the user device directly communicates with the equipment in the smart home system in the prior art.
[0108] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the control method of the household appliance of the present application will be described in detail below in combination with specific embodiments.
[0109] This embodiment relates to a specific control method for household electrical appliances, such as Figure 3 As shown, the following steps are included:
[0110] Step S1: first receiving a service instruction request sent by a user device, then determining the information of the instruction initiator, i.e., the user ID, and performing identity authentication on the user ID;
[0111] Step S2: judging whether the device control is authorized according to the user ID, if the user is not authorized, determining that the home appliance does not perform the task, if the user is authorized, executing step S3;
[0112] Step S3: Evaluate the signal strength sent by the user device. If the signal strength is higher than the threshold, verify the task parameters and determine whether the task type is valid. If not, determine that the home appliance does not execute the task. If valid, execute step S4.
[0113] Step S4: Determine whether the task is within the allowed time range. If not, determine that the household appliance does not execute the task. If so, execute the corresponding task.
[0114] The embodiment of the present application also provides a control device for household appliances. It should be noted that the control device for household appliances in the embodiment of the present application can be used to execute the control method for household appliances provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0115] The following is an introduction to the control device of the household appliance provided in the embodiment of the present application.
[0116] Figure 4 Schematic diagram of a control device for a household appliance according to an embodiment of the present application. Figure 4 As shown, the device includes an acquisition unit 10, a first determination unit 20 and a second determination unit 30, the acquisition unit 10 is used to acquire a service instruction request, the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device; the first determination unit 20 is used to determine task execution data according to the service instruction request, and the task execution data at least includes the signal strength of the service instruction request, the user identifier of the user device, and the task type, task time and task identifier of the target task; the second determination unit 30 is used to determine whether the target home appliance performs the target task according to the task execution data.
[0117] The control device of the household appliance of the present application includes an acquisition unit, a first determination unit and a second determination unit. The acquisition unit is used to acquire a service instruction request, which is an instruction request for controlling a target household appliance to perform a target task, and the service instruction request is issued by a user device; the first determination unit is used to determine task execution data according to the service instruction request, and the task execution data at least includes the signal strength of the service instruction request, the user identification of the user device, and the task type, task time and task identification of the target task; the second determination unit is used for the target household appliance to determine whether the target household appliance performs the target task according to the task execution data. The device authenticates the user who initiated the instruction according to the service instruction request initiated by the user, and comprehensively judges whether the task needs to be executed by combining the strength of the received signal and other information of the received task (task type, task time, task identification), thereby improving the flexibility and security of the smart home system and solving the problem of potential safety hazards when the user device directly communicates with the equipment in the smart home system in the prior art.
[0118] In some instances, the second determination unit includes a first determination module, a second determination module, a third determination module, a fourth determination module and a fifth determination module, the first determination module being used to determine whether a first condition is met according to a user identifier of the user device, and the first condition is used to limit the control authority of the user device; the second determination module is used to determine whether a second condition is met according to a signal strength of the service instruction request, and the second condition is used to limit the distance between the user device and the target home appliance; the third determination module is used to determine whether a third condition is met according to a task type, task time and task identifier of the target task, and the third condition is used to limit the execution data of the target task; the fourth determination module is used to determine that the target home appliance executes the target task when the first condition, the second condition and the third condition are met; the fifth determination module is used to determine that the target home appliance does not execute the target task when at least one of the first condition, the second condition and the third condition is not met.
[0119] In some examples, the first determination module includes a first acquisition submodule, a first determination submodule, and a second determination submodule, wherein the first acquisition submodule is used to acquire the user ID of the user device; the first determination submodule is used to determine the control authority of the user device according to the user ID of the user device, wherein the control authority includes the controllable device type and the corresponding controllable task type of the user device; the second determination submodule is used to determine that the user device meets the first condition when the controllable device type of the user device includes the device type of the target home appliance and the controllable task type corresponding to the user device includes the target task. This mechanism ensures that only authorized users can control specific devices, thereby improving the security of the system and preventing unauthorized access or operation.
[0120] In some examples, the second determination module includes a third determination submodule, a fourth determination submodule and a fifth determination submodule, wherein the third determination submodule is used to determine that the distance between the user device and the target home appliance is the target distance according to the RSSI value of the service instruction request, and the RSSI value of the service instruction request represents the signal strength of the service instruction request; the fourth determination submodule is used to determine that the user device meets the second condition when the target distance is less than or equal to the preset distance; and the fifth determination submodule is used to determine that the user device does not meet the second condition when the target distance is greater than the preset distance. This allows the smart home system to add a layer of security to prevent the execution of instructions issued by unauthorized user devices from a distance.
[0121] In some examples, the third determination module includes a sixth determination submodule and a seventh determination submodule, the sixth determination submodule is used to determine that the service instruction request meets the third condition when the protocol instruction value of the target task is the target instruction value, the timestamp of the target task is within the preset time range, and the task ID of the target task is the target ID, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task; the seventh determination submodule is used to determine that the service instruction request does not meet the third condition when at least one of the following conditions is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID. Through the above steps, it is possible to comprehensively judge whether the task needs to be executed based on the received device signal and other information of the task (task type, task time, task identifier), thereby improving the flexibility and security of the smart home system.
[0122] In some instances, the device further includes a sixth determination module and an execution module. The sixth determination module is used to determine the execution priority of each target task according to the RSSI value of the service instruction request after the target home appliance determines whether the target home appliance executes the target task according to the task execution data. If there are multiple target tasks, the execution module is used to execute the target tasks in sequence according to the execution priorities of all the target tasks. This priority-based execution method helps the smart home system to respond to user needs more effectively when processing multiple tasks, optimize the use of home devices, and ensure that urgent or important tasks can be processed in a timely manner.
[0123] In some instances, the sixth determination module includes an eighth determination submodule, a ninth determination submodule, and a tenth determination submodule, wherein the eighth determination submodule is used to determine that the execution priority of the target task is the first priority when the RSSI value of the target task is greater than or equal to the first preset value; the ninth determination submodule is used to determine that the execution priority of the target task is the second priority when the RSSI value of the target task is greater than or equal to the second preset value and less than the first preset value, and the first priority is higher than the second priority; the tenth determination submodule is used to determine that the execution priority of the target task is the third priority when the RSSI value of the target task is less than the second preset value, and the second priority is higher than the third priority. This mechanism not only improves the response speed of device control, but also enhances the intelligence and user-friendliness of the system, ensuring that the target task most relevant to the user's current location or activity can be given priority.
[0124] The control device of the household appliance comprises a processor and a memory, and the acquisition unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0125] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of security risks in the prior art when the user device directly communicates with the devices in the smart home system can be solved by adjusting the kernel parameters.
[0126] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0127] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, a device where the computer-readable storage medium is located is controlled to execute the control method of the household appliance.
[0128] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the control method of the household appliance is executed when the program is run.
[0129] An embodiment of the present invention provides a household appliance, the appliance comprising a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0130] Step S201, obtaining a service instruction request, wherein the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device;
[0131] Step S202, determining task execution data according to the service instruction request, the task execution data at least including the signal strength of the service instruction request, the user identification of the user equipment, and the task type, task time and task identification of the target task;
[0132] Step S203: the target home appliance determines whether the target home appliance executes the target task according to the task execution data.
[0133] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0134] Optionally, the target home appliance determines whether the target home appliance executes the target task based on the task execution data, including: determining whether a first condition is met based on the user identifier of the user device, and the first condition is used to limit the control authority of the user device; determining whether a second condition is met based on the signal strength of the service instruction request, and the second condition is used to limit the distance between the user device and the target home appliance; determining whether a third condition is met based on the task type, task time and task identifier of the target task, and the third condition is used to limit the execution data of the target task; determining that the target home appliance executes the target task when the first condition, the second condition and the third condition are met; and determining that the target home appliance does not execute the target task when at least one of the first condition, the second condition and the third condition is not met.
[0135] Optionally, determining whether the first condition is met based on the user identification of the above-mentioned user device includes: obtaining the user ID of the above-mentioned user device; determining the control authority of the above-mentioned user device based on the user ID of the above-mentioned user device, the above-mentioned control authority includes the controllable device type of the above-mentioned user device and the corresponding controllable task type; when the controllable device type of the above-mentioned user device includes the device type of the above-mentioned target home appliance, and the above-mentioned controllable task type corresponding to the above-mentioned user device includes the above-mentioned target task, determining that the above-mentioned user device meets the above-mentioned first condition.
[0136] Optionally, based on the signal strength of the service instruction request, determining whether the user device meets the second condition includes: determining, based on the RSSI value of the service instruction request, that the distance between the user device and the target household appliance is the target distance, and the RSSI value of the service instruction request represents the signal strength of the service instruction request; when the target distance is less than or equal to the preset distance, determining that the user device meets the second condition; when the target distance is greater than the preset distance, determining that the user device does not meet the second condition.
[0137] Optionally, determining whether the service instruction request satisfies the third condition is performed based on the task type, task time and task identifier of the target task, including: when the protocol instruction value of the target task is a target instruction value, the timestamp of the target task is within a preset time range, and the task ID of the target task is a target ID, determining that the service instruction request satisfies the third condition, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task; when at least one of the following is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID, determining that the service instruction request does not satisfy the third condition.
[0138] Optionally, after the target home appliance determines whether the target home appliance executes the target task based on the task execution data, the method further includes: in the case where there are multiple target tasks, determining the execution priority of each target task based on the RSSI value requested by the service instruction; and executing the target tasks in sequence based on the execution priorities of all the target tasks.
[0139] Optionally, the execution priority of each of the target tasks is determined based on the RSSI value requested by the service instruction, including: when the RSSI value of the target task is greater than or equal to a first preset value, the execution priority of the target task is determined to be the first priority; when the RSSI value of the target task is greater than or equal to a second preset value and less than the first preset value, the execution priority of the target task is determined to be the second priority, and the first priority is higher than the second priority; when the RSSI value of the target task is less than the second preset value, the execution priority of the target task is determined to be the third priority, and the second priority is higher than the third priority.
[0140] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0141] Step S201, obtaining a service instruction request, wherein the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device;
[0142] Step S202, determining task execution data according to the service instruction request, the task execution data at least including the signal strength of the service instruction request, the user identification of the user equipment, and the task type, task time and task identification of the target task;
[0143] Step S203: the target home appliance determines whether the target home appliance executes the target task according to the task execution data.
[0144] Optionally, the target home appliance determines whether the target home appliance executes the target task based on the task execution data, including: determining whether a first condition is met based on the user identifier of the user device, and the first condition is used to limit the control authority of the user device; determining whether a second condition is met based on the signal strength of the service instruction request, and the second condition is used to limit the distance between the user device and the target home appliance; determining whether a third condition is met based on the task type, task time and task identifier of the target task, and the third condition is used to limit the execution data of the target task; determining that the target home appliance executes the target task when the first condition, the second condition and the third condition are met; and determining that the target home appliance does not execute the target task when at least one of the first condition, the second condition and the third condition is not met.
[0145] Optionally, determining whether the first condition is met based on the user identification of the above-mentioned user device includes: obtaining the user ID of the above-mentioned user device; determining the control authority of the above-mentioned user device based on the user ID of the above-mentioned user device, the above-mentioned control authority includes the controllable device type of the above-mentioned user device and the corresponding controllable task type; when the controllable device type of the above-mentioned user device includes the device type of the above-mentioned target home appliance, and the above-mentioned controllable task type corresponding to the above-mentioned user device includes the above-mentioned target task, determining that the above-mentioned user device meets the above-mentioned first condition.
[0146] Optionally, based on the signal strength of the service instruction request, determining whether the user device meets the second condition includes: determining, based on the RSSI value of the service instruction request, that the distance between the user device and the target household appliance is the target distance, and the RSSI value of the service instruction request represents the signal strength of the service instruction request; when the target distance is less than or equal to the preset distance, determining that the user device meets the second condition; when the target distance is greater than the preset distance, determining that the user device does not meet the second condition.
[0147] Optionally, determining whether the service instruction request satisfies the third condition is performed based on the task type, task time and task identifier of the target task, including: when the protocol instruction value of the target task is a target instruction value, the timestamp of the target task is within a preset time range, and the task ID of the target task is a target ID, determining that the service instruction request satisfies the third condition, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task; when at least one of the following is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID, determining that the service instruction request does not satisfy the third condition.
[0148] Optionally, after the target home appliance determines whether the target home appliance executes the target task based on the task execution data, the method further includes: in the case where there are multiple target tasks, determining the execution priority of each target task based on the RSSI value requested by the service instruction; and executing the target tasks in sequence based on the execution priorities of all the target tasks.
[0149] Optionally, the execution priority of each of the target tasks is determined based on the RSSI value requested by the service instruction, including: when the RSSI value of the target task is greater than or equal to a first preset value, the execution priority of the target task is determined to be the first priority; when the RSSI value of the target task is greater than or equal to a second preset value and less than the first preset value, the execution priority of the target task is determined to be the second priority, and the first priority is higher than the second priority; when the RSSI value of the target task is less than the second preset value, the execution priority of the target task is determined to be the third priority, and the second priority is higher than the third priority.
[0150] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0151] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0152] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0155] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0156] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0157] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0158] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0159] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0160] 1) The control method of the above-mentioned household appliance of the present application first obtains a service instruction request, which is an instruction request for controlling the target household appliance to perform a target task, and the service instruction request is issued by a user device; then, according to the service instruction request, the task execution data is determined, and the task execution data at least includes the signal strength of the service instruction request, the user ID of the user device, and the task type, task time, and task ID of the target task; finally, the target household appliance determines whether the target household appliance performs the target task according to the task execution data. The method authenticates the user who initiated the instruction according to the service instruction request initiated by the user, and comprehensively judges whether the task needs to be executed by combining the strength of the received signal and other information of the received task (task type, task time, task ID), thereby improving the flexibility and security of the smart home system and solving the problem of potential safety hazards when the user device directly communicates with the equipment in the smart home system in the prior art.
[0161] 2) The control device of the above-mentioned household appliance of the present application includes an acquisition unit, a first determination unit and a second determination unit. The acquisition unit is used to acquire a service instruction request, which is an instruction request for controlling the target household appliance to perform a target task, and the service instruction request is issued by a user device; the first determination unit is used to determine the task execution data according to the service instruction request, and the task execution data at least includes the signal strength of the service instruction request, the user identification of the user device, and the task type, task time and task identification of the target task; the second determination unit is used for the target household appliance to determine whether the target household appliance performs the target task according to the task execution data. The device authenticates the user who initiated the instruction according to the service instruction request initiated by the user, and comprehensively judges whether the task needs to be executed based on the strength of the received signal and other information of the received task (task type, task time, task identification), thereby improving the flexibility and security of the smart home system and solving the problem of potential safety hazards when the user device directly communicates with the equipment in the smart home system in the prior art.
[0162] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a household appliance, characterized in that: include: Obtaining a service instruction request, wherein the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device; Determining task execution data according to the service instruction request, the task execution data at least including the signal strength of the service instruction request, the user identifier of the user equipment, and the task type, task time, and task identifier of the target task; The target home appliance determines whether the target home appliance executes the target task according to the task execution data.
2. The method according to claim 1, characterized in that The target home appliance determines, according to the task execution data, whether the target home appliance executes the target task, including: determining, according to a user identifier of the user equipment, whether a first condition is satisfied, where the first condition is used to limit a control authority of the user equipment; determining, according to the signal strength of the service instruction request, whether a second condition is satisfied, where the second condition is used to limit the distance between the user device and the target home appliance; Determining whether a third condition is satisfied according to the task type, task time and task identifier of the target task, wherein the third condition is used to limit the execution data of the target task; When the first condition, the second condition and the third condition are met, determining that the target home appliance performs the target task; When at least one of the first condition, the second condition, and the third condition is not satisfied, it is determined that the target household appliance does not perform the target task.
3. The method according to claim 2, characterized in that Determining, according to the user identifier of the user equipment, whether a first condition is met includes: Obtaining a user ID of the user device; Determine, according to the user ID of the user device, the control authority of the user device, wherein the control authority includes a controllable device type of the user device and a corresponding controllable task type; When the controllable device type of the user device includes the device type of the target home appliance, and the controllable task type corresponding to the user device includes the target task, it is determined that the user device satisfies the first condition.
4. The method according to claim 2, characterized in that: Determining, according to the signal strength of the service instruction request, whether the user equipment meets the second condition includes: According to the RSSI value of the service instruction request, determining that the distance between the user device and the target home appliance is the target distance, wherein the RSSI value of the service instruction request represents the signal strength of the service instruction request; When the target distance is less than or equal to the preset distance, determining that the user equipment satisfies the second condition; When the target distance is greater than the preset distance, it is determined that the user equipment does not meet the second condition.
5. The method according to claim 2, characterized in that: Determining whether the service instruction request satisfies a third condition according to the task type, task time, and task identifier of the target task includes: In the case where the protocol instruction value of the target task is a target instruction value, the timestamp of the target task is within a preset time range, and the task ID of the target task is a target ID, it is determined that the service instruction request satisfies the third condition, the target instruction value represents the task type of the target task, the timestamp represents the task time of the target task, and the task ID is the task identifier of the target task; When at least one of the following conditions is met: the protocol instruction value of the target task is a non-target instruction value, the timestamp of the target task is not within the preset time range, and the task ID of the target task is a non-target ID, it is determined that the service instruction request does not meet the third condition.
6. The method according to claim 1, characterized in that After the target home appliance determines whether the target home appliance executes the target task according to the task execution data, the method further includes: In the case where there are multiple target tasks, determining the execution priority of each target task according to the RSSI value of the service instruction request; According to the execution priorities of all the target tasks, the target tasks are executed in sequence.
7. The method according to claim 6, characterized in that Determining the execution priority of each target task according to the RSSI value of the service instruction request, including: When the RSSI value of the target task is greater than or equal to a first preset value, determining the execution priority of the target task to be a first priority; When the RSSI value of the target task is greater than or equal to a second preset value and less than the first preset value, determining that the execution priority of the target task is a second priority, and the first priority is higher than the second priority; When the RSSI value of the target task is less than the second preset value, the execution priority of the target task is determined to be the third priority, and the second priority is higher than the third priority.
8. A control device for household electrical appliances, characterized in that: include: An acquisition unit, used to acquire a service instruction request, wherein the service instruction request is an instruction request for controlling a target home appliance to perform a target task, and the service instruction request is issued by a user device; A first determining unit, configured to determine task execution data according to the service instruction request, wherein the task execution data at least includes a signal strength of the service instruction request, a user identifier of the user equipment, and a task type, task time, and task identifier of the target task; The second determining unit is used to determine whether the target household appliance executes the target task according to the task execution data.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for controlling the household appliance according to any one of claims 1 to 7.
10. A household appliance, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing the control method of the household appliance described in any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent household appliance control system and method based on mobile terminal
CN105137771A
Equipment control method and device, electronic equipment and readable storage medium
CN111586579A
Smart home equipment control method and module, and storage medium
CN113433831A
Intelligent household appliance control method and device, remote controller and storage medium
CN115202228A
Air conditioner control method, device, system and equipment and storage medium
CN118310160A