Equipment control method and device, electronic equipment and medium

By monitoring the changes in touch operation signals and identifying strategies and filtering effective control instructions, the problem of IoT devices dealing with a large number of command timeouts in a short period of time is solved, and the control accuracy and efficiency are improved.

CN118938774APending Publication Date: 2024-11-12SHENZHEN OURUIBO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411208416.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

IoT devices are unable to process a large number of control instructions in a short period of time, resulting in low control accuracy.

Method used

By monitoring the signal changes of touch operations, identifying the identification policy, and determining whether the control command is valid based on the policy, only valid commands are sent to the Internet of Things device.

Benefits of technology

Reduce the sending of invalid control instructions, ensure that IoT devices can process instructions in a timely manner, and improve control accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938774A_ABST
    Figure CN118938774A_ABST
Patent Text Reader

Abstract

The invention relates to the field of Internet of Things, and provides an equipment control method and device, electronic equipment and a medium. The method comprises the following steps: in response to a touch operation of a user, generating a control instruction for the Internet of Things equipment; monitoring the change of a touch signal corresponding to the touch operation, and determining an identification strategy corresponding to the touch operation; according to the identification strategy, determining whether the control instruction is a valid instruction; and if the control instruction is a valid instruction, sending the control instruction to the Internet of Things equipment. According to the method, the control accuracy of the equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, electronic device and medium. Background Art

[0002] With the rapid development of science and technology and living standards, smart homes are widely used in people's lives. In smart home scenarios, a variety of IoT devices (such as smart lamps, smart curtains, smart air conditioners, etc.) can be controlled by electronic devices.

[0003] However, when electronic devices interact with IoT devices, they need to continuously send control instructions to the IoT devices. The IoT devices may not be able to process a large number of control instructions in a short period of time, causing some control instructions to time out, resulting in low control accuracy of the IoT devices. Summary of the invention

[0004] In view of the above, it is necessary to provide a device control method, apparatus, electronic device and medium that can solve the technical problem of low control accuracy of IoT devices due to the fact that IoT devices may not be able to process a large number of control instructions in a short period of time, causing some control instructions to time out.

[0005] On the one hand, the present application proposes a device control method, which includes: generating a control instruction for an Internet of Things device in response to a user's touch operation; monitoring changes in a touch signal corresponding to the touch operation, and determining an identification strategy corresponding to the touch operation; determining whether the control instruction is a valid instruction based on the identification strategy; if the control instruction is a valid instruction, sending the control instruction to the Internet of Things device.

[0006] In some embodiments of the present application, monitoring the change of the touch signal corresponding to the touch operation and determining the identification strategy corresponding to the touch operation includes: if the change of the touch signal meets a first preset requirement, determining that the touch operation is a first operation, and obtaining the identification strategy corresponding to the first operation; if during the execution of the first operation, it is monitored that the change of the touch signal meets a second preset requirement, determining that the touch operation is transformed into a second operation, and obtaining the identification strategy corresponding to the second operation; if during the execution of the second operation, it is monitored that the touch signal is interrupted, determining that the touch operation is transformed into a third operation, and obtaining the identification strategy corresponding to the third operation.

[0007] In some embodiments of the present application, the method further includes: if the touch signal is detected to be interrupted during the execution of the first operation, determining that the touch operation is transformed into the third operation.

[0008] In some embodiments of the present application, if the touch operation is the first operation, determining whether the control instruction is a valid instruction based on the identification strategy includes: detecting the working parameters of the Internet of Things device; if the working parameters included in the control instruction are inconsistent with the working parameters of the Internet of Things device, determining that the control instruction is a valid instruction.

[0009] In some embodiments of the present application, if the touch operation is the second operation, the control instruction includes multiple instructions, and determining whether the control instruction is a valid instruction based on the identification strategy includes: judging whether the first control instruction generated in the Nth cycle is the same as the last control instruction generated in the N-1th cycle every preset cycle, where N is a natural number greater than or equal to 2; if the first control instruction generated in the Nth cycle is different from the last control instruction generated in the N-1th cycle, determining that the first control instruction is a valid instruction.

[0010] In some embodiments of the present application, if the touch operation is the third operation, determining whether the control instruction is a valid instruction based on the identification strategy includes: determining the first control instruction generated when the second operation ends and the second control instruction corresponding to the third operation; if the first control instruction is different from the second control instruction, determining that the first control instruction is a valid instruction.

[0011] In some embodiments of the present application, after generating a control instruction for the Internet of Things device in response to the user's touch operation, the method further includes: if the Internet of Things device is a preset first type device, determining that the touch operation is the first operation, and using an identification strategy corresponding to the first operation to determine whether the control instruction is a valid instruction; if the Internet of Things device is a preset second type device, and the working parameters included in the control instruction are inconsistent with the working parameters of the Internet of Things device, determining that the control instruction is a valid instruction.

[0012] On the other hand, the present application also proposes a device control device, which includes: a generation module, which is used to generate a control instruction for an Internet of Things device in response to a user's touch operation; a determination module, which is used to monitor changes in a touch signal corresponding to the touch operation and determine an identification strategy corresponding to the touch operation; the determination module is also used to determine whether the control instruction is a valid instruction based on the identification strategy; and a sending module, which is used to send the control instruction to the Internet of Things device if the control instruction is a valid instruction.

[0013] On the other hand, the present application also proposes an electronic device, which includes: a memory storing computer-readable instructions; and a processor executing the computer-readable instructions stored in the memory to implement a device control method.

[0014] On the other hand, the present application also proposes a storage medium, in which computer-readable instructions are stored. The computer-readable instructions are executed by a processor in an electronic device to implement a device control method.

[0015] It can be seen from the above technical scheme that in the embodiment of the present application, by monitoring the change of the touch signal corresponding to the touch operation, the identification strategy corresponding to the touch operation is determined, and based on the identification strategy, it is determined whether the control instruction is a valid instruction. If the control instruction is a valid instruction, the control instruction is sent to the Internet of Things device. By screening out invalid control instructions, the number of control instructions sent to the Internet of Things device is reduced, ensuring that the Internet of Things device can process the control instructions in a timely manner, avoiding the problem of some control instructions timing out and being unable to be processed in time, and improving the control accuracy and efficiency of the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0017] Figure 2 It is a flow chart of the device control method provided in the embodiment of the present application.

[0018] Figure 3 This is a flowchart of determining the recognition strategy corresponding to the touch operation provided in an embodiment of the present application.

[0019] Figure 4 It is a flow chart of a device control method provided by another embodiment of the present application.

[0020] Figure 5 It is a functional module diagram of the equipment control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0023] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.

[0024] like Figure 1 , which is a structural diagram of a method for implementing device control provided in an embodiment of the present application.

[0025] In an embodiment of the present application, the device control method is applied to one or more electronic devices 1. The electronic device 1 is a device that can automatically perform numerical calculations and / or information processing according to a pre-set or stored computer program, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0026] The network where the electronic device 1 is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0027] In the embodiment of the present application, the electronic device 1 includes but is not limited to: a memory 12, a processor 13 and a touch screen 14, and the memory 12 stores a computer program that can be executed on the processor 13, such as a device control program.

[0028] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 1 may also include input and output devices, network access devices, buses, etc.

[0029] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or a processor or any conventional processor, etc. The processor 13 is the computing core and control center of the electronic device 1, and uses various interfaces and lines to connect various parts of the entire electronic device 1, and execute the operating system of the electronic device 1 and various installed applications, program codes, etc.

[0030] The memory 12 may be a physical memory, such as a memory stick, a TF card (Trans-flash Card), and the like.

[0031] The touch screen 14 is used to receive the touch operation input by the user. The electronic device 1 is used to obtain the touch data generated by the touch operation and generate a control instruction for the IoT device according to the touch data.

[0032] Combination Figure 2 The memory 12 in the electronic device 1 stores a computer program, and the processor 13 can execute the computer program stored in the memory 12 to achieve the following Figure 2 The device control method shown.

[0033] In the embodiments of the present application, smart home devices are widely used in people's lives. In the smart home scenario, a variety of IoT devices (such as smart lamps, smart curtains, smart air conditioners, etc.) can be controlled by electronic devices. For example, electronic devices can adjust air conditioner operating parameters (such as temperature, humidity, and operating mode, etc.). In the process of adjusting the various operating parameters of the air conditioner, the electronic device will generate multiple control instructions and send the multiple control instructions to the air conditioner. The air conditioner may not be able to process a large number of control instructions in a short period of time, causing some control instructions to time out, resulting in low control accuracy of the IoT device.

[0034] In order to solve the problem of low control accuracy of IoT devices, an embodiment of the present application provides a device control method, which can determine whether the control instruction to the IoT device is a valid instruction. If the control instruction is a valid instruction, the control instruction is sent to the IoT device. The above method can filter out invalid control instructions, reduce the number of control instructions sent to the IoT device, and solve the technical problem of low control accuracy of the IoT device caused by the IoT device being unable to process a large number of control instructions in a short period of time.

[0035] like Figure 2 FIG. 1 is a flow chart of a device control method provided by an embodiment of the present application. The device control method is applied to an electronic device (eg Figure 1 In the electronic device 1), according to different requirements, the order of the steps in the flowchart can be changed and some steps can be omitted.

[0036] 201. In response to a touch operation of a user, generate a control instruction for an Internet of Things device.

[0037] In some embodiments of the present application, the electronic device is connected to multiple IoT devices, and the multiple IoT devices may include but are not limited to: smart lights, smart curtains, and smart air conditioners. The electronic device may include a touch screen that can receive a touch operation input by a user. When receiving a touch operation input by a user, the electronic device obtains a touch signal generated by the touch operation, and generates a control instruction for the IoT device according to the touch signal.

[0038] In some embodiments of the present application, touch operations may include, but are not limited to: pressing (also called "pressing") operations, clicking operations, and sliding operations. Different touch operations correspond to different control instructions, wherein the control instructions can be used to control the IoT device to perform corresponding operations. For example, if it is necessary to perform a turn-on operation on a smart light of an IoT device, the user's finger can slide in the control interface of the smart light displayed on the touch screen, triggering the electronic device to generate a control instruction to turn on the smart light, and send the control instruction to the smart light. The smart light responds to the received control instruction and performs the turn-on operation.

[0039] 202 : Monitor changes in touch signals corresponding to the touch operations, and determine a recognition strategy corresponding to the touch operations.

[0040] In some embodiments of the present application, when a user performs a touch operation on a touch screen, the electronic device may generate different touch signals based on different touch operations. According to the touch signal, the change of the touch operation may be determined, for example, the type of the corresponding touch operation may be determined. The touch signal includes, but is not limited to, touch coordinates and touch duration. Among them, the touch operation may include one or more of the first operation, the second operation and the third operation. For example, the first operation may represent a pressing operation, the second operation may represent a sliding operation, and the third operation may represent a lifting operation. Different recognition strategies may be pre-set based on different touch operations, and the recognition strategy is used to determine whether the control instruction generated by the corresponding touch operation is valid.

[0041] In some embodiments of the present application, see Figure 3 If a touch operation is detected, monitoring a change in a touch signal corresponding to the touch operation and determining an identification strategy corresponding to the touch operation includes:

[0042] 2021, determining whether a change in the touch signal meets a first preset requirement.

[0043] 2022, if the change of the touch signal meets the first preset requirement, determine that the touch operation is the first operation, and obtain the identification strategy corresponding to the first operation. If the change of the touch signal does not meet the first preset requirement, execute step 2021.

[0044] In some embodiments of the present application, a first preset requirement may be preset, and the first preset requirement may be set according to the attributes of the first operation. Specifically, the first preset requirement may be set to that a touch signal is received, and the touch coordinates in the touch signal do not change. For example, when a user presses the touch screen, the electronic device receives the touch signal, determines the touch coordinates according to the touch signal, and the touch coordinates do not change within a preset time (for example, 2 seconds, which is only an example), then it is determined that the touch operation meets the first preset requirement.

[0045] In some embodiments of the present application, different recognition strategies may be pre-set according to different touch operations, and the recognition strategy is used to recognize whether a control instruction generated based on the touch operation is a valid instruction.

[0046] 2023. During the execution of the first operation, monitor whether a change in the touch signal meets a second preset requirement.

[0047] 2024, if the change of the touch signal monitored during the execution of the first operation meets the second preset requirement, determine that the touch operation is transformed into the second operation, and obtain the identification strategy corresponding to the second operation. If the change of the touch signal monitored during the execution of the first operation does not meet the second preset requirement, execute step 2021.

[0048] In some embodiments of the present application, a second preset requirement may be preset, and the second preset requirement may be set according to the attributes of the second operation. Specifically, the second preset requirement may be set to that a touch signal is received and the touch coordinates in the touch signal have moved. For example, when a user slides on the touch screen, the electronic device receives the touch signal in real time, and determines that the touch coordinates continue to change according to the touch signal, then it is determined that the touch operation meets the second preset requirement.

[0049] 2025. During the execution of the second operation, monitor whether the touch signal is interrupted.

[0050] 2026, if the touch signal is detected to be interrupted during the execution of the second operation, determine that the touch operation is transformed into a third operation, and obtain the identification strategy corresponding to the third operation. If the touch signal is detected to be not interrupted during the execution of the second operation, execute step 2021.

[0051] In some embodiments of the present application, if a touch signal corresponding to a touch operation is monitored, and the touch coordinates in the touch signal do not change within a preset time period, and it is determined that the change of the touch signal meets the first preset requirement, then the touch operation is determined to be a press operation, and the identification strategy corresponding to the press operation is obtained; if during the execution of the press operation, it is monitored that the touch coordinates in the touch signal have moved, and it is determined that the change of the touch signal meets the second preset requirement, then it is determined that the touch operation has entered a sliding operation from a press operation, and the identification strategy corresponding to the sliding operation is obtained; if during the execution of the sliding operation, it is monitored that the touch signal is interrupted, then it is determined that the touch operation has entered a lift operation from a sliding operation, and the identification strategy corresponding to the lift operation is obtained.

[0052] For example, if the brightness of a smart light needs to be adjusted, the user can control the brightness of the smart light by performing pressing operations, sliding operations, and lifting operations in the control interface of the smart light displayed on the touch screen. Specifically, the user performs a pressing operation on the brightness bar in the control interface of the smart light displayed on the touch screen, and starts a sliding operation on the brightness bar until the brightness meets the user's brightness requirements, and performs a lifting operation to adjust the brightness value of the smart light.

[0053] In some embodiments of the present application, if the touch operation includes a first operation and a third operation, an interruption of a touch signal is detected during the execution of the first operation, and it is determined that the touch operation is transformed into the third operation.

[0054] In some embodiments of the present application, if the TV needs to be turned on, the user will perform pressing and lifting operations in the control interface of the TV displayed on the touch screen to turn on the TV.

[0055] 203 : Determine whether the control instruction is a valid instruction according to the identification strategy.

[0056] In some embodiments of the present application, one or more control instructions may be generated when a user performs a touch operation. Therefore, in order to ensure the accuracy of the control instructions sent to the IoT device, it is necessary to determine whether the control instructions are valid instructions.

[0057] In some embodiments of the present application, if the touch operation is the first operation, determining whether the control instruction is a valid instruction according to the identification strategy includes: detecting the working parameters of the Internet of Things device; if the working parameters included in the control instruction are inconsistent with the working parameters of the Internet of Things device, determining that the control instruction is a valid instruction.

[0058] In some embodiments of the present application, the operating parameters may represent the operating state of the IoT device, wherein the operating parameters may include but are not limited to: the device state of the IoT device, the scene mode (e.g., home mode, away mode, etc.). For example, the device state of the IoT device may be the on state, the off state, and the environmental parameters of the environment in which the device is located (e.g., temperature, humidity, etc.).

[0059] In some embodiments of the present application, the Internet of Things device sends working parameters to the electronic device, the electronic device detects the received working parameters, and compares the received working parameters with the working parameters included in the control instruction. If the working parameters included in the control instruction are inconsistent with the working parameters of the Internet of Things device, it is determined that the control instruction generated according to the touch operation is to change the working parameters of the current Internet of Things device, so the control instruction is determined to be a valid instruction, and the control instruction is sent to the Internet of Things device. If the working parameters included in the control instruction are consistent with the working parameters of the Internet of Things device, it is determined that the control instruction generated according to the touch operation does not change the working parameters of the Internet of Things device, so the control instruction is determined to be an invalid instruction, and the control instruction is not sent to the Internet of Things device.

[0060] Exemplarily, if the control instruction is used to control a smart light, and the working parameters of the smart light included in the control instruction are for turning on the smart light, if it is detected that the working parameters of the smart light indicate that the smart light is already on, the control instruction is determined to be an invalid instruction, and the control instruction is not sent to the IoT device, thereby preventing the IoT device from receiving invalid instructions, reducing data transmission, and improving the accuracy of the control instructions sent to the IoT device.

[0061] In some embodiments of the present application, if the touch operation is the second operation and the control instruction includes multiple instructions, determining whether the control instruction is a valid instruction according to the identification strategy includes: determining whether the first control instruction generated in the Nth cycle is the same as the last control instruction generated in the N-1th cycle every preset cycle, where N is a natural number greater than or equal to 2. If the first control instruction generated in the Nth cycle is different from the last control instruction generated in the N-1th cycle, the first control instruction is determined to be a valid instruction.

[0062] In some embodiments of the present application, when the touch operation is the second operation, multiple control instructions will be continuously generated. In order to control the number of control instructions sent to the IoT device, the period for sending the control instructions is preset. For example, the preset period can be set to 1 second or 2 seconds. This embodiment is not limited here. For example, the preset period can be set according to the operation duration of the touch operation by the user.

[0063] In some embodiments of the present application, if the first control instruction generated in the Nth cycle is different from the last control instruction generated in the N-1th cycle, it is determined that the first control instruction generated in the Nth cycle is to change the working parameters of the current Internet of Things device, so the control instruction is determined to be a valid instruction, and the first control instruction generated in the Nth cycle is sent to the Internet of Things device; if the first control instruction generated in the Nth cycle is the same as the last control instruction generated in the N-1th cycle, it is determined that the first control instruction generated in the Nth cycle is not to change the working parameters of the current Internet of Things device, so the control instruction is determined to be an invalid instruction, and the first control instruction generated in the Nth cycle is not sent to the Internet of Things device.

[0064] For example, if the user is adjusting the brightness value of the smart light, the first control instruction generated in the second cycle is to adjust the brightness value of the smart light to N1 (for example, 20 nit), and the last control instruction generated in the first cycle is to adjust the brightness value of the smart light to N2 (for example, 40 nit), then it is determined that the brightness value of the smart light needs to be adjusted, the first control instruction generated in the second cycle is a valid instruction, and the first control instruction generated in the second cycle is sent to the IoT device.

[0065] In some embodiments of the present application, by pre-setting the cycle for sending control instructions and determining whether the control instructions are valid instructions every preset cycle, the frequency of sending control instructions to IoT devices can be reduced, the number of control instructions sent to IoT devices can be ensured, and the problem of IoT devices receiving a large number of control instructions in a short period of time causing some control instructions to time out can be avoided, thereby improving the control accuracy of IoT devices.

[0066] In some embodiments of the present application, if the touch operation is the third operation, determining whether the control instruction is a valid instruction based on the identification strategy includes: determining the first control instruction generated when the second operation ends and the second control instruction corresponding to the third operation; if the first control instruction is different from the second control instruction, determining that the first control instruction is a valid instruction; if the first control instruction is the same as the second control instruction, determining that the first control instruction is an invalid instruction.

[0067] In some embodiments of the present application, if the first control instruction generated at the end of the second operation is different from the second control instruction corresponding to the third operation, it is determined that the first control instruction is to change the working parameters of the current Internet of Things device, so the first control instruction is determined to be a valid instruction and the first control instruction is sent to the Internet of Things device; if the first control instruction generated at the end of the second operation is the same as the second control instruction corresponding to the third operation, it is determined that the first control instruction is not to change the working parameters of the current Internet of Things device, the first control instruction is an invalid instruction, and the first control instruction is not sent to the Internet of Things device, thereby avoiding the Internet of Things device from receiving invalid instructions and improving the accuracy of the control instructions sent to the Internet of Things device.

[0068] In some embodiments of the present application, based on different touch operations, corresponding recognition strategies are adopted to control the number of control instructions sent and filter out identical control instructions, thereby ensuring the accuracy of control instructions sent to IoT devices and thereby improving the control accuracy of IoT devices.

[0069] 204, if the control instruction is a valid instruction, send the control instruction to the IoT device.

[0070] In some embodiments of the present application, if the control instruction is determined to be a valid instruction, the electronic device sends the control instruction to the IoT device, and the IoT device adjusts the corresponding working parameters of the IoT device based on the control instruction.

[0071] 205. If the control instruction is a valid instruction, the control instruction is not sent to the IoT device.

[0072] In some embodiments of the present application, if the control instruction is an invalid instruction, it is determined that the operating parameters included in the control instruction are consistent with the operating parameters of the IoT device, and it is determined that the operating parameters of the IoT device will not be changed, so the control instruction is not sent to the IoT device.

[0073] In some embodiments of the present application, by monitoring changes in touch signals corresponding to touch operations, an identification strategy corresponding to the touch operations is determined, and based on the identification strategy, invalid control instructions are screened and eliminated, thereby reducing the number of control instructions sent to the IoT device and ensuring the number of control instructions received by the IoT device. This avoids the problem of some control instructions not being able to be processed in a timely manner due to the IoT device being unable to process a large number of control instructions in a short period of time, thereby improving the control accuracy and efficiency of the IoT device.

[0074] like Figure 4 FIG. 1 is a flow chart of a device control method provided by an embodiment of the present application. The device control method is applied to an electronic device (eg Figure 1 In the electronic device 1), according to different requirements, the order of the steps in the flowchart can be changed and some steps can be omitted.

[0075] 401, select an IoT device to be bound, and obtain device attribute information of the selected IoT device, wherein the device attribute information includes a preset type of the selected IoT device.

[0076] In some embodiments of the present application, the electronic device can pre-bind multiple IoT devices that need to be controlled and obtain attribute information of each IoT device. The attribute information can be used to identify the IoT device, where the attribute information includes but is not limited to: preset type, working parameters, model, power, usage rules, precautions, and production batch of the IoT device.

[0077] 402 : In response to the user's touch operation, generate a control instruction for the IoT device.

[0078] Step 402 in this embodiment is similar to step 201 in the above embodiment, and reference may be made to the above description, which will not be repeated here.

[0079] 403: If the IoT device is a preset first type device, determine that the touch operation is a first operation, and use the identification strategy corresponding to the first operation to determine whether the control instruction is a valid instruction.

[0080] In some embodiments of the present application, the type of IoT device can be preset, specifically, it can be set according to whether the working parameters of the IoT device include the working parameters of amplitude modulation. Amplitude modulation is an electronic communication technology that transmits information by changing the amplitude of the carrier signal. The basic principle of amplitude modulation is to use the modulation signal to control the amplitude of the high-frequency carrier so that it changes linearly with the modulation signal while keeping the frequency of the carrier unchanged.

[0081] In some embodiments of the present application, the types of IoT devices include preset first-type devices and preset second-type devices. The preset first-type devices may represent devices including amplitude-modulated working parameters, such as smart lights, air conditioners, etc., where the working parameters of smart lights, such as brightness and color temperature, have amplitude modulation, and the working parameters of air conditioners, such as humidity and temperature, have amplitude modulation. The preset second-type devices may represent devices not including amplitude-modulated working parameters, such as televisions, kettles, etc.

[0082] In some embodiments of the present application, if the IoT device is a preset first type device, it is determined that the working parameters of the IoT device include amplitude modulation working parameters, the touch operation may include multiple ones, and it is necessary to start from the first operation, use the identification strategy corresponding to the first operation to determine whether the control instruction is a valid instruction, and continuously monitor the change of the touch signal corresponding to the touch operation. If the change of the touch signal is detected during the execution of the first operation and meets the second preset requirement, it is determined that the touch operation is changed to the second operation, and the identification strategy corresponding to the second operation is obtained; if the touch signal is detected to be interrupted during the execution of the second operation, it is determined that the touch operation is changed to the third operation, and the identification strategy corresponding to the third operation is obtained.

[0083] 404, if the IoT device is a preset second type device, and the working parameters included in the control instruction are inconsistent with the working parameters of the IoT device, determine that the control instruction is a valid instruction.

[0084] In some embodiments of the present application, if the IoT device is a preset second type device, it is determined that the working parameters of the IoT device do not include the working parameters of amplitude modulation. It is only necessary to determine whether the working parameters included in the control instruction are consistent with the working parameters of the IoT device. If the working parameters included in the control instruction are inconsistent with the working parameters of the IoT device, the control instruction is determined to be a valid instruction; if the working parameters included in the control instruction are consistent with the working parameters of the IoT device, the control instruction is determined to be an invalid instruction. There is no need to determine whether the touch operation is the first operation, the second operation or the third operation, which improves the efficiency of determining the control instruction.

[0085] In some embodiments of the present application, by using a corresponding identification strategy to determine whether a control instruction is a valid instruction according to the type of the IoT device, the control efficiency of the IoT device is improved.

[0086] like Figure 5 , is a functional module diagram of a device control device provided in an embodiment of the present application. The device control device 11 runs on an electronic device, and the electronic device runs a memory, and the memory includes a plurality of storage units. The device control device 11 includes a generation module 110, a determination module 111, and a sending module 112. The module / unit referred to in the present application refers to a series of computer program segments that can be acquired by the processor 13 and can complete fixed functions, which are stored in the memory 12.

[0087] The generation module 110 is used to generate a control instruction for the Internet of Things device in response to the user's touch operation; the determination module 111 is used to monitor the change of the touch signal corresponding to the touch operation and determine the identification strategy corresponding to the touch operation; the determination module 111 is also used to determine whether the control instruction is a valid instruction based on the identification strategy; the sending module 112 is used to send the control instruction to the Internet of Things device if the control instruction is a valid instruction; the sending module 112 is also used to not send the control instruction to the Internet of Things device if the control instruction is an invalid instruction.

[0088] If the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0089] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM).

[0090] The memory 12 can be used to store computer programs and / or modules. The processor 13 implements various functions of the electronic device 1 by running or executing the computer programs and / or modules stored in the memory 12 and calling the data stored in the memory 12. The memory 12 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device, etc. The memory 12 can include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other storage devices.

[0091] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 12, and executed by the processor 13 to complete the present application. One or more modules / units may be a series of computer program segments capable of completing specific functions, and the computer program segments are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a generation module 110, a determination module 111, and a sending module 112.

[0092] For details on the functions of each module / unit, please refer to the above Figure 2-4 The detailed description is not repeated here.

[0093] In an embodiment of the present application, the recognition strategy corresponding to the touch operation is determined by monitoring the change of the touch signal corresponding to the touch operation, and based on the recognition strategy, it is determined whether the control instruction is a valid instruction. If the control instruction is a valid instruction, the control instruction is sent to the Internet of Things device. By screening out invalid control instructions, the number of control instructions sent to the Internet of Things device is reduced, ensuring that the Internet of Things device can process the control instructions in a timely manner, avoiding the problem of some control instructions timing out and being unable to be processed in time, and improving the control accuracy and efficiency of the Internet of Things device.

[0094] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.

[0095] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0096] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0097] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0098] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

Claims

1. A device control method, It is characterized in that The device control method comprises: In response to the user's touch operation, generating a control instruction for the IoT device; Monitoring changes in a touch signal corresponding to the touch operation, and determining a recognition strategy corresponding to the touch operation; Determining whether the control instruction is a valid instruction according to the identification strategy; If the control instruction is a valid instruction, send the control instruction to the IoT device.

2. The device control method according to claim 1, It is characterized in that The monitoring of the change of the touch signal corresponding to the touch operation and determining the recognition strategy corresponding to the touch operation includes: If the change of the touch signal meets the first preset requirement, determining that the touch operation is a first operation, and acquiring an identification strategy corresponding to the first operation; If during the execution of the first operation, it is monitored that the change of the touch signal meets a second preset requirement, determining that the touch operation is transformed into a second operation, and obtaining an identification strategy corresponding to the second operation; If the touch signal is detected to be interrupted during the execution of the second operation, it is determined that the touch operation is transformed into a third operation, and an identification strategy corresponding to the third operation is obtained.

3. The device control method according to claim 2, It is characterized in that The method further comprises: If the touch signal is detected to be interrupted during the execution of the first operation, it is determined that the touch operation is transformed into the third operation.

4. The device control method according to claim 2, It is characterized in that If the touch operation is the first operation, determining whether the control instruction is a valid instruction according to the identification strategy includes: Detecting the working parameters of the IoT device; If the operating parameters included in the control instruction are inconsistent with the operating parameters of the Internet of Things device, it is determined that the control instruction is a valid instruction.

5. The device control method according to claim 2, It is characterized in that If the touch operation is the second operation, and the control instruction includes multiple instructions, determining whether the control instruction is a valid instruction according to the identification strategy includes: Determine, at every preset cycle, whether the first control instruction generated in the Nth cycle is the same as the last control instruction generated in the N-1th cycle, where N is a natural number greater than or equal to 2; If the first control instruction generated in the Nth cycle is different from the last control instruction generated in the N-1th cycle, it is determined that the first control instruction is a valid instruction.

6. The device control method according to claim 2, It is characterized in that If the touch operation is the third operation, determining whether the control instruction is a valid instruction according to the identification strategy includes: Determine a first control instruction generated when the second operation ends and a second control instruction corresponding to the third operation; If the first control instruction is different from the second control instruction, it is determined that the first control instruction is a valid instruction.

7. The device control method according to claim 2, It is characterized in that After generating a control instruction for the IoT device in response to the user's touch operation, the method further includes: If the IoT device is a preset first type of device, determining that the touch operation is the first operation, and using an identification strategy corresponding to the first operation to determine whether the control instruction is a valid instruction; If the IoT device is a preset second type device, and the operating parameters included in the control instruction are inconsistent with the operating parameters of the IoT device, it is determined that the control instruction is a valid instruction.

8. A device control device, It is characterized in that The equipment control device comprises: A generating module, used for generating a control instruction for an IoT device in response to a user's touch operation; A determination module, used to monitor changes in the touch signal corresponding to the touch operation and determine an identification strategy corresponding to the touch operation; The determination module is further used to determine whether the control instruction is a valid instruction according to the identification strategy; A sending module is used to send the control instruction to the Internet of Things device if the control instruction is a valid instruction.

9. An electronic device, It is characterized in that The electronic device comprises: a memory storing computer-readable instructions; and A processor executes the computer-readable instructions stored in the memory to implement the device control method according to any one of claims 1 to 7.

10. A storage medium, Features: The storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in the electronic device to implement the device control method according to any one of claims 1 to 7.