Device control method, device, system, device and storage medium

By utilizing the motion state monitoring and signal output mechanism of the first device in the smart home system, the operation of the delay control device is simplified, the problem of tedious steps in the existing technology is solved, and the operating experience and delay control efficiency of the elderly and children are improved. flexibility.

CN115061379BActive Publication Date: 2024-09-27SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210635889.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2024-09-27
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

The steps for delaying the control of devices in existing smart home systems are too cumbersome, which is especially unfavorable for the elderly and children to operate and learn.

Method used

By monitoring its motion status on the first device, continuously outputting motion signals until it reaches a stationary state, and sending this signal to the second device to determine whether to control the target device to perform the set action, thereby achieving delay control and reducing dependence on the client. .

Benefits of technology

It simplifies the operation steps of the delay control equipment, greatly reduces the learning cost, is especially beneficial to the operation of the elderly and children, and improves the flexibility and humanization of the delay control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061379B
    Figure CN115061379B
Patent Text Reader

Abstract

The embodiments of the present application provide a device control method, apparatus, system, equipment and storage medium, which relate to the field of smart home technology. Among them, the device control method applied to the first device includes: monitoring the motion state of the first device, the motion state includes a first motion state, and the first motion state is used to instruct the first device to perform a first motion; if the motion state of the first device is monitored to be the first motion state, then continuously outputting the first motion signal until the first device is monitored to enter a stationary state from the first motion state; sending the continuously output first motion signal to the second device, so that the second device determines whether to control the target device to perform the first set action according to the first motion signal. The embodiments of the present application solve the problem that the steps of delaying the control of the device in the related art are too cumbersome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology. Specifically, the present application relates to a device control method, apparatus, system, device and storage medium. Background Art

[0002] With the rapid development of IoT technology, users can freely control devices to perform various actions in smart home scenarios. For example, when sleeping, the user triggers the Rubik's Cube controller and the bedroom light turns off immediately; or when reading, the user can control the desk light to turn off after a certain reading time, for example.

[0003] At present, the delay control device depends on the client associated with the device. Specifically, the user first needs to run the client in the user terminal so as to set the delay time in the client before the delay control of the device can be realized. This makes the steps of the delay control device too cumbersome, which is especially not conducive to the operation and learning of the elderly and children.

[0004] From the above, it can be seen that how to simplify the steps of the delay control device needs to be solved urgently. Summary of the invention

[0005] The embodiments of the present application provide a device control method, apparatus, system, device and storage medium, which can solve the problem that the steps of delay control device in related technologies are too complicated. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a device control method is applied to a first device, and the method includes: monitoring the motion state of the first device, the motion state includes a first motion state, and the first motion state is used to instruct the first device to perform a first motion; if the motion state of the first device is monitored to be the first motion state, continuously outputting a first motion signal until the first device is monitored to enter a stationary state from the first motion state; sending the continuously output first motion signal to a second device, so that the second device determines whether to control the target device to perform a first set action according to the first motion signal.

[0007] According to one aspect of an embodiment of the present application, a device control method is applied to a second device, and the method includes: obtaining a first motion signal, which is continuously output by the first device when the first device monitors that the motion state of the first device is a first motion state, and sent to the second device; determining whether to control the target device to perform a first set action based on the first motion signal.

[0008] According to one aspect of an embodiment of the present application, a device control apparatus is applied to a first device, and the apparatus includes: a state monitoring module, used to monitor the motion state of the first device, the motion state includes a first motion state, and the first motion state is used to instruct the first device to perform a first motion; a signal output module, used to continuously output a first motion signal if the motion state of the first device is monitored to be the first motion state, until the first device is monitored to enter a stationary state from the first motion state; a signal sending module, used to send the continuously output first motion signal to a second device, so that the second device determines whether to control the target device to perform a first set action according to the first motion signal.

[0009] According to one aspect of an embodiment of the present application, a device control apparatus is applied to a second device, and the apparatus includes: a signal receiving module, used to obtain a first motion signal, the first motion signal is continuously output by the first device when it monitors that the motion state of the first device is the first motion state, and is sent to the second device; a device control module, used to determine whether to control the target device to perform a first set action according to the first motion signal.

[0010] According to one aspect of an embodiment of the present application, a device control system includes a first device and a second device, wherein the first device is used to monitor the motion state of the first device, and if the motion state of the first device is detected to be a first motion state, continuously output a first motion signal, and send the continuously output first motion signal to the second device; the second device is used to obtain the first motion signal, and determine whether to control the target device to perform a first set action according to the first motion signal.

[0011] According to one aspect of an embodiment of the present application, a device includes: at least one processor, at least one memory, and at least one communication bus, wherein a computer program is stored in the memory, and the processor reads the computer program in the memory through the communication bus; when the computer program is executed by the processor, the device control method as described above is implemented.

[0012] According to one aspect of an embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor, the device control method as described above is implemented.

[0013] According to one aspect of an embodiment of the present application, a computer program product includes a computer program, the computer program is stored in a storage medium, a processor of a computer device reads the computer program from the storage medium, and the processor executes the computer program, so that the computer device implements the device control method as described above when executing the computer program.

[0014] The beneficial effects of the technical solution provided by this application are:

[0015] In the above technical scheme, for the first device, after entering the first motion state, it will continuously output the first motion signal until it enters the static state from the first motion state and stops outputting the first motion signal. Then, for the second device, when continuously receiving the first motion signal, it will not control the target device to perform the first set action. Once it is determined that the first motion signal of the first device changes from continuous output to interrupted output, the target device will be controlled to perform the first set action. Therefore, the duration of the first motion signal from continuous output to interrupted output is considered to be the delay time for the target device to perform the first set action. In other words, the delay control of the target device is achieved through the first motion of the first device, so that the steps of the delay control device no longer depend on the client, which greatly reduces the operation learning cost, and is particularly beneficial to the operation learning of the elderly and children, thereby effectively solving the problem that the steps of the delay control device in the related technology are too cumbersome. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0017] Figure 1 It is a schematic diagram of an implementation environment involved in an embodiment of the present application;

[0018] Figure 2 yes Figure 1 A schematic diagram showing the interaction between a first device, a second device and a target device in an implementation environment;

[0019] Figure 3 is a flow chart of a device control method according to an exemplary embodiment;

[0020] Figure 4 is a schematic diagram of an acceleration sensor configured in a first device according to an exemplary embodiment;

[0021] Figure 5 is a schematic diagram of a first device performing a first movement according to an exemplary embodiment;

[0022] Figure 6 is a schematic diagram of a first device according to an exemplary embodiment entering a stationary state from a first motion state according to a set time;

[0023] Figure 7a is a flow chart of another device control method according to an exemplary embodiment;

[0024] Figure 7bis a flow chart of another device control method according to an exemplary embodiment;

[0025] Figure 8 yes Figure 7b A flowchart of steps 430 to 450 in one embodiment corresponding to the embodiment;

[0026] Fig. 9 It is a schematic diagram of a specific implementation of a device control method in an application scenario;

[0027] Fig.10a is a structural block diagram of a device control apparatus according to an exemplary embodiment;

[0028] Fig.10b is a structural block diagram of a device control apparatus according to an exemplary embodiment;

[0029] Fig.11 is a structural block diagram of a device control system according to an exemplary embodiment;

[0030] Fig.12 is a hardware structure diagram of a device according to an exemplary embodiment;

[0031] Fig.13 It is a structural block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0033] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0035] Figure 1 1 is a schematic diagram of an implementation environment involved in a device control method, wherein the implementation environment includes a user terminal 110 , a smart device 130 , a gateway 150 , a server 170 and a router 190 .

[0036] Specifically, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., which is not limited here.

[0037] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.

[0038] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, and can also be an electronic device such as a human body sensor, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, etc. equipped with a communication module.

[0039] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.

[0040] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background service includes a device control service.

[0041] In one application scenario, the first device is a smart device 130, such as a Rubik's Cube controller, the second device is a server 170, and the target device is a smart device 130, such as a smart light.

[0042] like Figure 2 As shown, as the first device enters the first motion state, the first device continuously outputs the first motion signal to the gateway 150, and forwards it to the server 170 through the gateway 150, until the first device enters the static state from the first motion state, and the first device stops forwarding the first motion signal to the server 170 through the gateway 150. At this time, if the server 170 determines that the first device continuously outputs the first motion signal, it stops controlling the target device. If the server 170 determines that the first motion signal of the first device changes from continuous output to interrupted output, it controls the target device to immediately execute the first set action.

[0043] Of course, in other application scenarios, according to actual operational needs, the second device may also be the gateway 150, which is not a specific limitation here.

[0044] See also Figure 3 The present application embodiment provides a device control method, which is applicable to a first device, which may be Figure 1 A smart device 130 is shown in an implementation environment.

[0045] In the following method embodiments, for the convenience of description, the execution subject of each step of the method is taken as the first device as an example for illustration, but this does not constitute a specific limitation.

[0046] like Figure 3 As shown, the method may include the following steps:

[0047] Step 310: monitor the motion status of the first device.

[0048] The motion state includes a first motion state and a second motion state, the first motion state is used to indicate that the first device performs a first motion, and the second motion state is used to indicate that the first device performs a second motion.

[0049] First of all, it should be noted that the first motion refers to a motion whose motion speed gradually decreases to zero according to a decay rate, and the second motion refers to a motion whose motion speed suddenly decreases to zero under the action of an external force.

[0050] For example, a user applies an external force to a gyroscope and the gyroscope starts to rotate. In the first case, the gyroscope continues to rotate until it stops. In this case, the gyroscope's motion is considered the first motion. In the second case, while the gyroscope is rotating, the user applies an external force to the gyroscope again, causing the gyroscope to stop rotating, or the gyroscope collides with another gyroscope, causing the gyroscope to stop rotating. In this case, the gyroscope's motion is considered the second motion.

[0051] In a possible implementation manner, the first motion refers to a continuously attenuated periodic reciprocating motion.

[0052] In this embodiment, if the user expects the target device to delay the execution of the first set action, the first device is triggered to perform the first movement. Conversely, if the user expects the target device to immediately execute the first set action, the first device is triggered to perform the second movement. Specifically, in response to the first device control instruction, the first device enters the first movement state, and the first device control instruction is used to instruct the target device to delay the execution of the first set action; or, in response to the second device control instruction, the first device enters the second movement state, and the second device control instruction is used to instruct the target device to immediately execute the second set action.

[0053] It is explained here that the first set action and the second set action can be the same or different. The first set action is related to the motion type of the first motion, and the second set action is related to the motion type of the second motion. That is to say, whether it is the first motion or the second motion, the motion type is different, and the corresponding set action will be different, which is related to the action configuration of the target device performed by the user on the user terminal. Taking the first device as a magic cube controller as an example, the motion types include but are not limited to: push, shake, turn, knock, flip 180°, flip 90°, etc. Correspondingly, the set actions that can be configured for the target device include but are not limited to: turn on and off the light, turn on and off the curtains, adjust the brightness of the smart light, turn on and off the air conditioner, enter sleep mode, turn on the air purifier, etc. Then, if the first motion performed by the magic cube controller is "push", it means that the user expects to delay turning on and off the light, if the second motion performed by the magic cube controller is "push", it means that the user expects to turn on and off the light immediately, or if the second motion performed by the magic cube controller is "knock", it means that the user expects to turn on and off the air conditioner immediately.

[0054] In one possible implementation, the first device control instruction is triggered by at least one of the following operations: triggering the first device itself to perform the first motion; triggering the third device to carry the first device to perform the first motion, where the third device is a device that can drive the first device to perform the first motion.

[0055] Secondly, monitoring the motion state of the first device is achieved by a detection device. For example, the detection device may refer to a displacement sensor configured in the first device, or the detection device may refer to a gyroscope sensor configured in the first device.

[0056] In a possible implementation, the first device is a magic cube controller, and an acceleration sensor is configured in the magic cube controller, such as Figure 4 At this time, monitoring the motion state of the first device is implemented by an acceleration sensor, specifically, monitoring the motion state of the first device as a first motion state through the acceleration sensor, or monitoring the motion state of the first device as a second motion state through the acceleration sensor.

[0057] Now, let's take the Rubik's Cube controller as an example to explain the first movement and the second movement. The first movement can refer to the Rubik's Cube controller shaking up and down until it stops, or shaking left and right until it stops, or rotating the Rubik's Cube controller until it stops, etc. The second movement can refer to pushing, shaking, rotating, flipping the Rubik's Cube controller, and stopping the above movement under the action of external force, etc. It can be seen that the difference between the first movement and the second movement lies in whether the movement stops under the action of external force, such as when the Rubik's Cube controller starts to shake left and right (such as Figure 5As shown in the figure, if the shaking stops gradually, the shaking is regarded as the first movement; if the shaking stops suddenly under the action of the user, the shaking is regarded as the second movement.

[0058] Step 330: If the motion state of the first device is detected to be the first motion state, the first motion signal is continuously outputted until the first device is detected to enter a stationary state from the first motion state.

[0059] As mentioned above, the first motion refers to a motion in which the motion speed gradually decreases to zero according to the attenuation rate. That is to say, if the motion state of the first device is monitored to be the first motion state, the first device is essentially in a continuous motion process. Therefore, during the continuous motion process, the first device will continuously output the first motion signal by monitoring the continuous motion of the first device through the detection device. The first motion signal is used to represent relevant information about the motion of the first device, for example, the relevant information includes but is not limited to acceleration, moving speed, moving distance, moving angle, etc. In one possible implementation, the first motion signal is used to indicate the acceleration of the motion of the first device.

[0060] Specifically, when the motion state of the first device is the first motion state, that is, the first device continues to move and the acceleration is non-zero, the first device continues to output the first motion signal. When the first device enters a static state from the first motion state, that is, the first device stops moving and the acceleration is zero, at this time, the first device stops outputting the first motion signal.

[0061] In a possible implementation, the first device enters the static state from the first motion state according to a set time, wherein the set time can be flexibly set according to actual needs of the application scenario and is not limited here.

[0062] For example, based on the set time set by the client, the first device calculates the decay rate according to the set time, thereby controlling the first device to perform the first motion according to the decay rate until it stops.

[0063] Or, if Figure 6 As shown, based on the different time scales provided by the first device, the user selects one of the time scales as the set time, and applies a corresponding external force to the first device (i.e., the quantitative potential energy corresponding to the time scale selected by the user), thereby controlling the first device to perform a first movement under the action of the external force until it stops.

[0064] Of course, in other embodiments, the set time may be set in combination with a hardware circuit (such as a level) or a hardware circuit combined with software, and this does not constitute a specific limitation here.

[0065] Step 350: Send the continuously output first motion signal to the second device, so that the second device determines whether to control the target device to perform the first set action according to the first motion signal.

[0066] As mentioned above, when the first device continues to move, the first device continues to output the first motion signal, and when the first device stops moving, the first device stops outputting the first motion signal. It can be seen that the sending process of the first motion signal is essentially the process of the first motion signal changing from continuous output to interrupted output.

[0067] For the second device, when the first motion signal is continuously received, the third device control instruction is not sent to the target device, that is, the target device is not controlled to perform the first set action. Once it is determined that the first motion signal of the first device changes from continuous output to interrupted output, the third device control instruction is sent to the target device, that is, the target device is controlled to perform the first set action. The third device control instruction is used to instruct the target device to perform the first set action. Therefore, the duration of the first motion signal from continuous output to interrupted output can be considered as the delay time for the target device to perform the first set action, that is, delay control of the target device is achieved.

[0068] In addition, when the first device performs the second motion, so that the first device enters the second motion state, the second motion signal is non-continuously output and sent to the second device. For the second device, once the second motion signal is received, the fourth device control instruction is sent to the target device to control the target device to immediately perform the second set action. In this way, immediate control of the target device is achieved.

[0069] Through the above process, the delay control of the target device is achieved through the first movement of the first device, so that the steps of the delay control device are no longer dependent on the client, which greatly reduces the learning and operation costs, and is especially beneficial for the operation learning of the elderly and children, thereby effectively solving the problem of the delay control device steps being too complicated in related technologies.

[0070] Please refer to FIG. 7 , an embodiment of the present application provides a device control method, which is applicable to a second device, and the second device can be Figure 1 The gateway 150 in the illustrated implementation environment may also be referred to as Figure 1 The server side 170 in an implementation environment is shown.

[0071] In the following method embodiments, for the convenience of description, the execution subject of each step of the method is taken as the second device as an example for illustration, but this does not constitute a specific limitation.

[0072] like Figure 7a As shown, the method may include the following steps:

[0073] Step 410: Acquire a first motion signal.

[0074] For the first device, if it enters the first motion state in response to the first device control instruction, at this time, the first device continuously outputs the first motion signal and sends it to the second device, and the first motion signal is used to indicate the acceleration of the first device performing the first motion;

[0075] In addition, for the first device, if it enters the second motion state in response to the control instruction of the second device, the first device will output a second motion signal and send it to the second device. The second motion signal is used to indicate the acceleration of the first device performing the second motion.

[0076] Accordingly, after the first device sends a motion signal of a different signal type, the second device can receive the motion signal of a different signal type.

[0077] Step 420: Determine whether to control the target device to perform a first set action according to the first motion signal.

[0078] In one possible implementation, for the received first motion signal, if it is determined that the first device continuously outputs the first motion signal, then the control of the target device is stopped; if it is determined that the first device stops outputting the first motion signal from continuously outputting the first motion signal, then the target device is controlled to immediately execute the first set action. In this way, delayed control of the target device is achieved.

[0079] In a possible implementation, the target device is controlled to immediately execute a set action according to the received second motion signal. In this way, immediate control of the target device is achieved.

[0080] Now combined Figure 7a , Figure 7b and Figure 8 , the process of whether the target device immediately / delays the execution of the corresponding set action is described in detail as follows:

[0081] Step 510: Receive a motion signal.

[0082] The motion signal includes a first motion signal and a second motion signal. The first motion signal is continuously output by the first device when the motion state of the first device is detected to be the first motion state, and is sent to the second device; the second motion signal is output by the first device when the motion state of the first device is detected to be the second motion state, and is sent to the second device.

[0083] Step 530: Determine the signal type of the motion signal according to the regularity of the motion signal to obtain motion signals of different signal types.

[0084] Among them, motion signals of different signal types are used to indicate whether the second device controls the target device to immediately / delay executing the corresponding set action. Specifically, the first motion signal is used to indicate that the second device controls the target device to delay executing the first set action, and the second motion signal is used to indicate that the second device controls the target device to immediately execute the second set action.

[0085] As mentioned above, the first movement refers to the movement in which the movement speed gradually decreases to zero according to the attenuation rate, and the second movement refers to the movement in which the movement speed suddenly decreases to zero under the action of external force. Correspondingly, for the first movement, the acceleration actually also gradually decreases to zero according to the attenuation rate, then the first movement signal is a regular signal, and for the second movement, the acceleration suddenly decreases to zero, then the second movement signal is an irregular signal.

[0086] It is worth mentioning that, whether it is the first motion or the second motion, there is a process of acceleration reduction. For the second device, the process of receiving the motion signal may be a continuous process. In other words, the signal type of the motion signal cannot be completely determined by whether the motion signal is continuously received. Therefore, in this embodiment, the signal type of the motion signal is realized by the regularity of the motion signal. Specifically, if the motion signal is a regular signal, the motion signal is a first motion signal. Conversely, if the motion signal is an irregular signal, the motion signal is a second motion signal.

[0087] Here, the inventors realize that in the process of device control, false triggering operations are inevitable. For example, the user mistakenly triggers the first device itself to perform a first motion operation. At this time, it may cause a delay in controlling the device that is not what the user expects. Therefore, in one possible implementation method, before determining that the motion signal is the first motion signal, it is also necessary to determine the duration of the regular signal when the first motion signal is a regular signal.

[0088] like Figure 8 As shown, in an exemplary embodiment, step 530 may include the following steps:

[0089] Step 531, determining whether the motion signal is a regular signal.

[0090] If the motion signal is a regular signal, then execute step 533. Otherwise, if the motion signal is an irregular signal, then execute step 535.

[0091] Step 533, determining the duration of the regular signal, and determining whether the duration of the regular signal exceeds a set threshold.

[0092] If the duration does not exceed the set threshold, it is determined that there is a false trigger operation, and at this time, the target device is not controlled to perform the first set action. On the contrary, if the duration exceeds the set threshold, step 537 is executed.

[0093] The threshold value may be flexibly adjusted according to actual needs of the application scenario and is not limited here.

[0094] Step 535: determine that the motion signal is a second motion signal.

[0095] Step 537: determine that the motion signal is a first motion signal.

[0096] Therefore, by determining the signal type of the motion signal, motion signals of different signal types can be obtained to determine whether to control the target device to immediately / delay executing the corresponding action, thereby fully ensuring the accuracy of device control.

[0097] Step 550: Determine whether to control the target device to execute a corresponding set action according to the signal type of the motion signal.

[0098] Continue reading Figure 8 As shown, if it is determined that the motion signal is the first motion signal, step 551 is executed; if it is determined that the first device changes from continuously outputting the first motion signal to interrupting the output of the first motion signal, a third device control instruction is sent to the target device to control the target device to immediately execute the first set action in response to the third device control instruction; or, if it is determined that the first device continuously outputs the first motion signal, the third device control instruction is stopped to the target device to stop controlling the target device, thereby achieving delayed control of the target device.

[0099] On the contrary, if it is determined that the motion signal is the second motion signal, step 553 is executed to send a fourth device control instruction to the target device to control the target device to immediately execute the second set action in response to the fourth device control instruction, thereby achieving immediate control of the target device.

[0100] In cooperation with the above-mentioned embodiments, in response to the first motion signal continuously output by the first device, the second device will control the target device to immediately execute the set action only when the first motion signal changes from continuous output to interrupted output, thereby realizing delay control of the target device, so that the steps of the delay control device no longer depend on the client, greatly reducing the learning and operation costs, which is especially beneficial for the operation learning of the elderly and children, thereby effectively solving the problem of overly complicated steps of the delay control device existing in the related technology.

[0101] Fig. 9This is a specific implementation diagram of a device control method in an application scenario. In this application scenario, the first device is a Rubik's Cube controller, the second device is the cloud (i.e., the server), and the target device is a smart light. The user can control the smart light to immediately execute the second set action or control the smart light to delay the execution of the first set action through the Rubik's Cube controller. It should be noted that whether the first set action is the same as the second set action depends on whether the motion type of the first motion / the second motion is the same.

[0102] Taking the same motion type, the same first set action / the same second set action, both of which are turned on as an example, the specific control process of the Rubik's Cube controller on the smart light is now explained as follows:

[0103] Step 801, in response to the first / second device control instruction, the magic cube controller enters a different motion state, which can be a first motion state or a second motion state. For example, if the user expects to control the smart light immediately, the magic cube controller can be "shaken" so that the magic cube controller performs the second motion in response to the second device control instruction; if the user expects to delay the control of the smart light, a certain amount of potential energy can be provided to the magic cube controller so that the magic cube controller performs the first motion in response to the first device control instruction, such as "continuously attenuated left and right shaking", which can also be understood as continuous "shaking".

[0104] From step 802 to step 803, for the Rubik's Cube controller equipped with an acceleration sensor, as the Rubik's Cube controller enters a motion state, the acceleration sensor can monitor the motion state and output a motion signal accordingly, that is, the acceleration signal in this application scenario, and forward it to the cloud through the gateway.

[0105] Step 804: After receiving the acceleration signal, the cloud determines the signal type of the acceleration signal according to the regularity of the acceleration signal. Specifically, if the acceleration signal is an irregular signal, it means that the Rubik's Cube controller is performing the second motion, such as "shaking", then the acceleration signal is determined to be the second motion signal, and then step 805 is executed to control the smart light to immediately perform the second set action; conversely, if the acceleration signal is a regular signal, it means that the Rubik's Cube controller is performing the first motion, such as "continuously attenuated left and right shaking", that is, continuously "shaking", then step 806 is executed.

[0106] Step 805, the cloud sends a fourth device control instruction to the smart light to control the smart light to turn on immediately in response to the fourth device control instruction.

[0107] Step 806, in order to prevent false triggering, determine whether the duration of the acceleration signal exceeds 5 seconds. If it exceeds 5 seconds, determine that the acceleration signal is the first motion signal, and enter step 807; otherwise, if it does not exceed 5 seconds, end the control of the smart light. Among them, 5 seconds is a set threshold, which can be flexibly adjusted according to the actual needs of the application scenario, and it does not constitute a specific limitation here.

[0108] Step 807: If the acceleration signal is continuously received, indicating that the Rubik's Cube controller is still moving, the cloud does not perform any control on the smart light. If it is determined that the acceleration signal changes from continuous output to interrupted output, indicating that the Rubik's Cube controller stops moving, execute step 808.

[0109] In step 808 to step 809, the cloud sends a third device control instruction to the smart light to control the smart light to turn on immediately in response to the control of the third device.

[0110] In the above process, the time when the cloud sends the control instruction to the third device depends on the duration of the acceleration signal from continuous output to interrupt output. This duration can be considered as the delay time for controlling the turning on of the smart light, thereby achieving the effect of delayed control of the smart light.

[0111] In this application scenario, the use of the Rubik's Cube controller is more independent, that is, different control modes (immediate control / delayed control) are controlled by different movements (second movement / first movement) performed by the Rubik's Cube controller, and no longer need to be used in conjunction with the client. Compared with relying on the client to set the delay time, it has a better operating experience, which not only greatly reduces the cost of learning to operate the device, but is especially suitable for operation and learning by the elderly and children. Moreover, the setting range of the delay time is no longer a single fixed time, but can be more extensive, depending on a certain amount of potential energy obtained by the Rubik's Cube controller, which is conducive to improving the flexibility of the delay control device.

[0112] The following is an embodiment of the device of the present application, which can be used to execute the device control method involved in the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the method embodiment of the device control method involved in the present application.

[0113] See also Fig.10a In an embodiment of the present application, a device control apparatus 900 is provided, which is applied to a first device. The device control apparatus 900 includes but is not limited to: a state monitoring module 910, a signal output module 930 and a signal sending module 950.

[0114] The state monitoring module 910 is used to monitor the motion state of the first device, where the motion state includes a first motion state, and the first motion state is used to indicate that the first device performs a first motion.

[0115] The signal output module 930 is used to continuously output the first motion signal if it is detected that the motion state of the first device is the first motion state, until it is detected that the first device enters a stationary state from the first motion state.

[0116] The signal sending module 950 is used to send the continuously output first motion signal to the second device, so that the second device determines whether to control the target device to perform the first set action according to the first motion signal.

[0117] See also Fig.10b In an embodiment of the present application, a device control apparatus 1000 is provided, which is applied to a second device. The device control apparatus 1000 includes but is not limited to: a signal receiving module 1010 and a device control module 1030 .

[0118] The signal receiving module 1010 is used to obtain a first motion signal, which is continuously output by the first device when the first device detects that the motion state of the first device is the first motion state, and is sent to the second device.

[0119] The device control module 1030 is used to determine whether to control the target device to perform a first set action according to the first motion signal.

[0120] It should be noted that the device control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing device control. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device control device will be divided into different functional modules to complete all or part of the functions described above.

[0121] In addition, the device control apparatus and the device control method provided in the above embodiments belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.

[0122] See also Fig.11 In an embodiment of the present application, a device control system 1100 is provided, and the device control system 1100 includes a first device 1110 and a second device 1130 .

[0123] The first device 1110 is used to monitor the motion state of the first device. If the motion state of the first device is monitored to be the first motion state, the first motion signal is continuously output, and the continuously output first motion signal is sent to the second device.

[0124] The second device 1130 is used to obtain the first motion signal, and determine whether to control the target device to perform a first set action according to the first motion signal.

[0125] Fig.12 A schematic diagram of the structure of a device according to an exemplary embodiment. The device is suitable for Figure 1 The gateway 150 and the server 170 in the implementation environment are shown.

[0126] It should be noted that the device is only an example adapted to the present application and cannot be considered to provide any limitation on the scope of use of the present application. The device cannot be interpreted as requiring dependence on or having Fig.12 One or more components of exemplary device 2000 are shown.

[0127] The hardware structure of the device 2000 may vary greatly due to differences in configuration or performance, such as Fig.12 As shown, the device 2000 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .

[0128] Specifically, the power supply 210 is used to provide working voltage for each hardware device on the device 2000 .

[0129] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Figure 1 The interaction between the user terminal 110 and the gateway 150 in the implementation environment is shown.

[0130] Of course, in other examples adapted by the present application, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, etc. Fig.12 As shown, this is not intended to be a specific limitation.

[0131] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.

[0132] Among them, the operating system 251 is used to manage and control the hardware devices and application programs 253 on the device 2000 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0133] The application program 253 is a computer program that performs at least one specific task based on the operating system 251, and may include at least one module ( Fig.12Each module may include a computer program for the device 2000. For example, the device control device may be regarded as an application 253 deployed on the device 2000.

[0134] Data 255 may be photos, pictures, etc. stored in a disk, or device status data, etc., stored in memory 250 .

[0135] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through at least one communication bus to read the computer program stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the device control method is completed in the form of the central processor 270 reading a series of computer programs stored in the memory 250.

[0136] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.

[0137] See also Fig.13 In an embodiment of the present application, a device 4000 is provided, and the device 4000 may include: a desktop computer, a laptop computer, a tablet computer, a server, etc.

[0138] exist Fig.13 In the embodiment, the device 4000 includes at least one processor 4001, at least one communication bus 4002 and at least one memory 4003.

[0139] The processor 4001 and the memory 4003 are connected, such as through a communication bus 4002. Optionally, the device 4000 may further include a transceiver 4004, which may be used for data interaction between the device and other devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the device 4000 does not constitute a limitation on the embodiments of the present application.

[0140] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0141] The communication bus 4002 may include a path to transmit information between the above components. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0142] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0143] The memory 4003 stores a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002 .

[0144] When the computer program is executed by the processor 4001, the device control method in the above-mentioned embodiments is implemented.

[0145] In addition, a storage medium is provided in an embodiment of the present application, on which a computer program is stored. When the computer program is executed by a processor, the device control method in the above embodiments is implemented.

[0146] A computer program product is provided in an embodiment of the present application, the computer program product includes a computer program, and the computer program is stored in a storage medium. A processor of a computer device reads the computer program from the storage medium, and the processor executes the computer program, so that the computer device executes the device control method in each of the above embodiments.

[0147] Compared with related technologies, on the one hand, the delay control device no longer relies on the client, which greatly reduces the user's operation learning cost, and is especially beneficial to the operation learning of the elderly and children; on the other hand, the duration of the first motion signal of the first device from continuous output to interrupt output can change with the change of the attenuation rate of the first motion of the first device. For different users, different delay times can be set according to their preferences, which not only increases the practicality of the delay control device, but also increases the flexibility of the delay control device, making the delay control device more user-friendly.

[0148] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0149] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A device control method, characterized in that: Applied to a first device, the method includes: monitoring a motion state of the first device, where the motion state includes a first motion state, and the first motion state is used to indicate that the first device performs a first motion; If it is detected that the motion state of the first device is the first motion state, continuously outputting the first motion signal until it is detected that the first device enters a stationary state from the first motion state; The first motion signal that is continuously output is sent to a second device, so that the second device delays controlling a target device to perform a first set action according to the first motion signal that is continuously output.

2. The method according to claim 1, characterized in that The method further comprises: In response to a first device control instruction, the first device is caused to enter the first motion state, and the first device control instruction is used to instruct the target device to delay executing the first setting action.

3. The method according to claim 2, characterized in that The first device control instruction is triggered by at least one of the following operations: An operation of triggering the first device to perform a first movement; An operation of triggering a third device to carry the first device to perform the first motion.

4. The method according to claim 1, characterized in that The method further comprises: The first device enters the static state from the first motion state according to a set time.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a second device control instruction, the first device is caused to enter a second motion state, wherein the second device control instruction is used to instruct the target device to immediately perform a second set action, and the second motion state is used to instruct the first device to perform a second motion; If the motion state of the first device is detected to be the second motion state, the second motion signal is output and sent to the second device, so that the second device controls the target device to immediately perform the second set action according to the second motion signal.

6. A device control method, characterized in that: Applied to the second device, the method includes: Acquire a first motion signal, where the first motion signal is continuously output by the first device when the first device detects that the motion state of the first device is the first motion state, and is sent to the second device; The target device is controlled to execute a first set action with delay according to the first motion signal that is continuously output.

7. The method according to claim 6, characterized in that Before acquiring the first motion signal, the method further includes: receiving a motion signal, wherein the motion signal includes the first motion signal and a second motion signal, wherein the second motion signal is output by the first device when the first device detects that the motion state of the first device is a second motion state, and is sent to the second device; According to the regularity of the motion signal, the signal type of the motion signal is determined to obtain the motion signals of different signal types; the regularity of the motion signal is determined based on whether the motion speed of the motion signal gradually decreases to zero according to the attenuation rate.

8. The method according to claim 7, characterized in that The determining the signal type of the motion signal according to the regularity of the motion signal includes: If the motion signal is a regular signal, determining the duration of the regular signal; If the duration exceeds a set threshold, the motion signal is determined to be the first motion signal.

9. The method according to claim 8, characterized in that The determining the signal type of the motion signal according to the regularity of the motion signal further includes: If the motion signal is an irregular signal, the motion signal is determined to be the second motion signal.

10. The method according to claim 6, characterized in that The determining, according to the first motion signal, whether to control the target device to perform a first set action includes: If it is determined that the first device continues to output the first motion signal, stop controlling the target device; or If it is determined that the first device stops outputting the first motion signal from continuously outputting the first motion signal, the target device is controlled to immediately execute the first setting action.

11. A device control device, characterized in that: Applied to a first device, the apparatus comprises: a state monitoring module, configured to monitor a motion state of the first device, wherein the motion state includes a first motion state, and the first motion state is used to indicate that the first device performs a first motion; a signal output module, configured to continuously output a first motion signal if it is detected that the motion state of the first device is a first motion state, until it is detected that the first device enters a stationary state from the first motion state; The signal sending module is used to send the first motion signal that is continuously output to a second device, so that the second device delays controlling a target device to perform a first set action according to the first motion signal that is continuously output.

12. A device control device, characterized in that: Applied to a second device, the apparatus comprises: A signal receiving module, used for acquiring a first motion signal, the first motion signal being continuously output by the first device when the first device detects that the motion state of the first device is the first motion state, and being sent to the second device; The device control module is used to delay controlling the target device to execute a first set action according to the first motion signal that is continuously output.

13. A device control system, characterized in that: The device control system includes a first device and a second device, wherein: The first device is configured to monitor the motion state of the first device, and if the motion state of the first device is detected to be a first motion state, continuously output a first motion signal, and send the continuously output first motion signal to the second device; The second device is used to obtain the first motion signal that is continuously output, and delay controlling the target device to perform a first set action according to the first motion signal that is continuously output.

14. A device, characterized in that include: at least one processor, at least one memory, and at least one communication bus, wherein: The memory stores a computer program, and the processor reads the computer program in the memory through the communication bus; When the computer program is executed by the processor, the device control method according to any one of claims 1 to 10 is implemented.

15. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device control method according to any one of claims 1 to 10 is implemented.