Device trigger control method and device, electronic device and storage mediumTechnical Field
The present application relates to the field of smart home technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for controlling device triggering.
Background
With the gradual maturity of the internet of things and internet technology, the application range of network access equipment and network technology is wider and wider, and people have higher and higher requirements on the network access equipment and the network technology. In the intelligent home system, the network access equipment (the gateway, the sub-equipment connected with the gateway and the like) is configured with the equipment automation scene, so that the equipment automation scene linkage between the intelligent home equipment can be realized, and better intelligent scene experience is brought to a user. However, for some scenarios, the device control based on the device automation scenario often cannot well meet the requirements of the customer.
Disclosure of Invention
In view of the foregoing, the present application provides a method, an apparatus, a system, an electronic device, and a storage medium for controlling device triggering to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a method for controlling device triggering, where the method includes: receiving a trigger control instruction, wherein the trigger control instruction is used for controlling and changing the state of the controlled equipment; and if the controlled equipment is judged to be in the non-automation/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the preset automation/scene, the trigger control instruction is not executed.
In a second aspect, an embodiment of the present application provides a method for controlling device triggering, where the method includes: when a server or a gateway receives an instruction for sending a trigger control instruction to a controlled device, if the instruction is judged to be based on the preset automation/scene trigger and the controlled device is in a non-automation/scene trigger control instruction control state, ignoring the instruction; otherwise, sending a trigger control instruction.
In a third aspect, an embodiment of the present application provides a device triggered control apparatus, where the apparatus includes: the instruction receiving module is used for receiving a trigger control instruction, and the trigger control instruction is used for controlling and changing the state of the controlled equipment; and the instruction processing module is used for not executing the trigger control instruction if the controlled equipment is judged to be in the non-automation/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the preset automation/scene.
In a fourth aspect, an embodiment of the present application provides an apparatus triggered control device, where the apparatus includes: the judging unit is used for judging whether the instruction is based on the preset automation/scene trigger and whether the controlled equipment is in a non-automation/scene trigger control instruction control state or not when the server or the gateway receives the instruction for sending the trigger control instruction to the controlled equipment; the processing unit is used for ignoring the instruction if the judgment instruction is based on the preset automation/scene triggering and the controlled equipment is in a non-automation/scene triggering control instruction control state; otherwise, sending a trigger control instruction.
In a fifth aspect, an embodiment of the present application provides a device triggered control system, where the system includes a server, a gateway, and a controlled device: the server is used for ignoring an instruction when receiving the instruction for sending a trigger control instruction to the controlled equipment if the instruction is judged to be based on the preset automation/scene trigger and the controlled equipment is in a non-automation/scene trigger control instruction control state; otherwise, sending a trigger control instruction; the gateway is used for receiving the trigger control instruction sent by the server and forwarding the trigger control instruction to the controlled equipment; the controlled equipment is used for receiving a trigger control instruction, and the trigger control instruction is used for controlling and changing the state of the controlled equipment; and the controlled equipment is also used for not executing the trigger control instruction if the controlled equipment is judged to be in a non-automation/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the preset automation/scene.
In a sixth aspect, the present application provides an electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method described above.
In a seventh aspect, the present application provides a computer readable storage medium having program code stored thereon, wherein the method described above is implemented when the computer program is executed by a processor.
The embodiment of the application provides a method, a device and a system for controlling equipment triggering, electronic equipment and a storage medium. The method further judges that the controlled equipment is in the non-automatic/scene trigger control instruction control state after receiving the trigger control instruction for controlling and changing the state of the controlled equipment, and in the case that the trigger control instruction is a control instruction based on the preset automation/scene, the trigger control instruction is not executed, so that the trigger control instruction is not executed in the case that the controlled equipment is judged to be in the non-automation/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the pre-configured automation/scene, and then, only the non-automatic/scene trigger control instruction is executed, so that the specific requirements of a user on equipment trigger control in a specific scene are met, the flexibility of setting a control mode corresponding to the trigger control instruction is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of a network system provided in an embodiment of the present application.
Fig. 2 shows a block diagram of a device-triggered control system according to an embodiment of the present application.
Fig. 3 shows a flowchart of a method for controlling device triggering according to an embodiment of the present application.
Fig. 4 shows a flowchart of a method for controlling device triggering according to another embodiment of the present application.
Fig. 5 shows a flowchart of the method of step S220 in fig. 4.
FIG. 6 shows a method flow diagram of one embodiment of step S222 in FIG. 5.
Fig. 7 shows a method flowchart of another embodiment of step S222 in fig. 5.
Fig. 8 shows a flowchart of a method for controlling device triggering according to another embodiment of the present application.
Fig. 9 is a schematic configuration interface diagram of a non-automation/scenario-triggered control instruction of a controlled device according to an embodiment of the present application.
Fig. 10 is a schematic view illustrating another configuration interface of non-automation/scenario-triggered control instructions of a controlled device according to an embodiment of the present application.
Fig. 11 is a flowchart illustrating a method for controlling device triggering according to still another embodiment of the present application.
Fig. 12 shows a block diagram of a device-triggered control apparatus according to an embodiment of the present application.
Fig. 13 shows a block diagram of a device-triggered control apparatus according to another embodiment of the present application.
Fig. 14 shows a block diagram of an electronic device for executing a device triggered control method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The intelligent home system is a brand-new home life experience system which integrates individual requirements by utilizing advanced computer technology, network communication technology, intelligent cloud control, comprehensive wiring technology and medical electronic technology according to the principle of human engineering, organically combines various subsystems related to home life such as security protection, light control, curtain control, gas valve control, information household appliances, scene linkage, floor heating, health care, epidemic prevention, security protection and the like, and realizes people-oriented through networked comprehensive intelligent control and management.
With the development of the internet of things and smart home technology, smart home products gradually enter the lives of people. Generally, for device control in the smart home system, the device control method can be applied to an automatic linkage scene to control the device, for example, a user can configure an automatic scene of the device for home devices added to an APP login account in a smart home device management APP, and then intelligent control of the home devices is realized.
With the abundance of scenes of the internet of things, the use requirements of users on the automatic scenes of the equipment are more and more extensive. For example, in some special scenarios, if a user is conducting an important meeting, a projector device is needed, and the projector device may be controlled by an intelligent device (e.g., an intelligent switch), if the meeting needs to be conducted for one hour, the intelligent switch is not expected to be triggered in an unmanned manner (here, triggering in an automatic triggering manner) within the hour, and the intelligent switch itself needs to be triggered in an automatic triggering manner to be normal after the meeting is completed, and at this time, intelligent control of the device through a configured device automation scenario often fails to meet specific requirements of the user.
After careful study, the inventor finds that a 'slide show mode' can be set for the device, namely, the device is temporarily in a 'non-intelligent' mode, and the triggering control instruction is used for controlling and changing the state of the controlled device by receiving the triggering control instruction; then, if the controlled equipment is in a non-automatic/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the preset automation/scene, the trigger control instruction is not executed, so that the equipment can be triggered in a non-automatic trigger mode such as manual physical trigger or remote control trigger within a specific time period, and the automatic trigger mode cannot be executed, thereby meeting the specific requirement of a user on equipment trigger control in a specific scene and improving the user experience.
Accordingly, the present inventors provide a device location triggered control method, apparatus, system, electronic device, and storage medium that can improve the above-described problems in the present application.
For the convenience of describing the scheme of the present application in detail, the following description will first describe an application environment in the embodiments of the present application with reference to the drawings.
Referring to fig. 1, a network system 10 according to an embodiment of the present application is provided, where the network system 10 includes: the system comprises a mobile terminal 11, a server 12 and a local area network 13, wherein the local area network 13 comprises a router 131, a gateway 132 and a controlled device 133. By way of example, the mobile terminal 11 may be any device having communication and storage capabilities, such as: the smart phone, the desktop computer, the notebook computer, the tablet computer or other smart communication devices with network connection functions. The server 12 may be a network access server, a database server, a cloud server, or the like. Optionally, the gateway 132 is built based on a ZigBee protocol, and the controlled device 133 may be a device added in the gateway 132 in advance, for example, the controlled device 133 may be a device in a suite to which the gateway belongs when the gateway leaves a factory; or may be a device that is subsequently connected to the gateway 132 by a user operation.
Optionally, the controlled device 133 may be an entity intelligent device, such as an electric meter, a door sensor, a body sensor, a door sensor, a window sensor, a temperature and humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, an intelligent socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor, a multifunctional gateway, an air conditioner partner, a projector, a projection screen, an intelligent curtain motor, an intelligent sound box, a camera, or may be a virtual sensor device, such as a virtual body sensor device, which is not limited herein. Alternatively, the controlled devices 133 may be the same type and brand of device, the same type but different brands of device, or different types and brands of device.
Optionally, a client capable of managing the smart home device is installed in the mobile terminal 11, where the client may be an application client (such as a mobile phone APP) or a web page client, and is not limited herein.
Alternatively, one or more controlled devices 133 may establish a network connection with the gateway 132 based on the ZigBee protocol, thereby joining the ZigBee network. The gateway 132 and the mobile terminal 11 may be connected to the router 131, and access to the ethernet through the router 131, as one way, the router 131 may access the server 12 through the ethernet access network 14, for example, the gateway 132 and the mobile terminal 11 may store the acquired information in the server 12. Optionally, the mobile terminal 11 may also establish a network link with the server 12 through 2G/3G/4G/5G or WIFI, so as to obtain data sent by the server 12.
Based on the above-described application environment, a device-triggered control system according to an embodiment of the present application will be briefly described below with reference to the accompanying drawings.
Referring to fig. 2, a device-triggered control system 100 is provided, which includes a server 12, a gateway 132, and a controlled device 133, wherein the gateway 132 is communicatively connected to the server 12 to implement data interaction. The gateway 132 is network-connected with the controlled device 133 to implement data interaction.
Based on the above-described application environment and system, embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 3, a flowchart of a method for controlling device triggering according to an embodiment of the present application is shown, where the embodiment provides a method for controlling device triggering, and the method includes:
step S110: and receiving a trigger control instruction, wherein the trigger control instruction is used for controlling and changing the state of the controlled equipment.
The triggering control instruction refers to a control instruction for changing the state of the controlled equipment in the intelligent home system. As one mode, the trigger control instruction may include a pre-configured automation/scenario control instruction or a non-automation/scenario trigger control instruction according to a difference of the trigger mode.
The preset automation/scenario control instruction may be understood as an instruction for controlling the controlled device to operate in an automation triggering manner, for example, the device control in the smart home system may be controlled by applying an automation linkage scenario. In a specific application scenario, an automation/scenario named "go home" may be configured, and the "go home" automation/scenario may include "turn on air conditioner, turn on television, turn on water heater", so that when the "go home" automation/scenario function button is in an on state, turning on the air conditioner, turning on the television, and turning on the water heater by turning on the door may be implemented. The opening of the door is the execution condition of the whole automation/scene, and triggers the controlled equipment 'air conditioner, television and water heater' to be automatically opened and execute corresponding actions, so the opening of the door is triggered in an automatic triggering mode.
It is understood that the trigger control command of the non-automation/scenario may be understood as a command for controlling the operation of the controlled device in a non-automation trigger manner, for example, a human physical trigger or a remote control trigger. Optionally, if the received trigger control instruction is a non-automated/scenario trigger control instruction, the controlled device is controlled by the control instruction in the non-automated trigger manner, and the automated/scenario trigger control instruction is not executed.
Step S120: and judging whether the controlled equipment is in a non-automation/scene trigger control instruction control state or not and whether the trigger control instruction is a control instruction based on the preset automation/scene.
The automatic/scene triggering control instruction can be understood as a control instruction configured in the intelligent home system for automatic execution or scene execution of the control device, and the automatic/scene triggering control instruction controls the controlled device to execute the configured automatic/scene so as to realize intelligent control on the controlled device, and greatly improve the intelligent experience of the user.
For example, in a specific application scenario, an automation/scenario may be configured as "door and window open and automatic light on", where a door and window sensor connected to a device door and window is a trigger device, and a light is a controlled device, and then for the automation/scenario, a gateway may issue to the door and window a command indicating that the door and window are open when the door and window sensor senses the open command of the door, where an action to be executed by the "door and window" needs to be "door and window open", and after the door and window are open, the light is automatically turned on immediately, and an action to be executed by the "light" of the controlled device is "automatic light on", so it can be understood that the trigger control command of the automation/scenario is triggered in an automatic trigger manner.
It can be understood that, with the abundance of the scenes of the internet of things, the control demand of the user on the device automation/scene is more and more, for example, under the condition that some specific meeting scenes or the time for which the controlled device needs to work is uncertain, the original plan of the user is often disturbed by controlling the controlled device to work through the automatic trigger control mode of the pre-configured device automation/scene, and the user friendly experience is reduced. Therefore, in order to improve the specific control requirement of the user on the device in a specific scene, the embodiment of the application provides a 'slide show mode' for controlling the device to work, so as to improve the user experience.
As a way of example, the "slide show mode" in the embodiment of the present application may also be understood as a control mode that triggers a state for controlling the operation of the device in a non-automated/scenario. Optionally, in the state of controlling the "slide show mode" trigger control instruction, the controlled device only executes the control instruction triggered by the artificial physical trigger mode or the control instruction triggered by the remote control, but does not execute the control instruction triggered by the automatic trigger mode, so that the control requirement of the user on the specific device in the specific scene can be met, and the user experience is improved.
It should be noted that the non-automatic/scenario trigger control instruction in the embodiment of the present application may include: at least one of the physical trigger command and the remote control trigger command may be set according to actual conditions, and is not limited herein.
As a manner, in order to meet a specific device control requirement of a user in a specific scene, after the controlled device receives a trigger control instruction, it needs to determine whether the trigger control instruction control state of the controlled device and the trigger control instruction are the control instructions of the pre-configured automation/scene. It should be noted that, when the controlled device is in the control state of the automation/scenario trigger control instruction, the controlled device can still receive the non-automation/scenario trigger control instruction, but not necessarily, when the controlled device is in the non-automation/scenario-triggered control instruction control state, the controlled device may receive the automation/scenario-triggered control instruction, and the controlled device does not necessarily execute the automation/scenario trigger control instruction, in this case, because the controlled state of the controlled device has the above-mentioned uncertainty factor, and the specific control requirements of the user on the controlled device in a specific scene cannot be met, so that it is required to determine whether the controlled device is in a non-automation/scene trigger control instruction control state and determine whether the trigger control instruction is a control instruction based on a pre-configured automation/scene.
It can be understood that, in order to determine whether the controlled device is in the "slideshow mode" trigger control instruction control state, it may be determined whether the controlled device is in the non-automatic/scene trigger control instruction control state, so that the current trigger control instruction control state of the controlled device may be obtained according to the determination result, and further, whether to execute the received trigger control instruction is determined according to the current trigger control instruction control state of the controlled device.
Step S130: and if so, not executing the trigger control instruction.
As one way, if it is determined that the controlled device is in the non-automation/scenario trigger control instruction control state and the trigger control instruction is a control instruction based on a pre-configured automation/scenario, the received trigger control instruction is not executed. For example, in a specific application scenario, if the controlled device is currently in a control state of a non-automatic/scenario trigger mode, although it is recorded in a log of the controlled device that the controlled device receives a control instruction based on a pre-configured automation/scenario, in order to keep the current working state of the controlled device from being disturbed, thereby meeting the control requirement of the user for the specific device in the specific scenario, the controlled device will not execute the received trigger control instruction.
Alternatively, if it is determined that the controlled device is not in the non-automation/scenario-triggered control instruction control state and the trigger control instruction is not a control instruction based on a pre-configured automation/scenario, the determination may be ended.
In the method for controlling device triggering provided by this embodiment, after receiving a triggering control instruction for controlling and changing a state of a controlled device, it is further determined that the controlled device is in a non-automatic/scene triggering control instruction control state and the triggering control instruction is a control instruction based on a pre-configured automation/scene, and then the triggering control instruction is not executed, so that when it is determined that the controlled device is in the non-automatic/scene triggering control instruction control state and the triggering control instruction is a control instruction based on the pre-configured automation/scene, the triggering control instruction is not executed, and then only the non-automatic/scene triggering control instruction is executed, thereby achieving specific requirements of a user on device triggering control in a specific scene are met, and flexibility of setting a control mode corresponding to the triggering control instruction is improved, and the user experience is improved.
Referring to fig. 4, a flowchart of a method for controlling device triggering according to another embodiment of the present application is shown, where the embodiment provides a method for controlling device triggering, and the method includes:
step S210: and receiving a trigger control instruction, wherein the trigger control instruction is used for controlling and changing the state of the controlled equipment.
Step S220: and judging whether the controlled equipment is in a non-automatic/scene trigger control instruction control state.
As a manner, after the controlled device receives the trigger control instruction, in order to facilitate understanding of the current control state of the controlled device, so as to rapidly determine whether to continue to maintain the current control state of the controlled device or execute the received trigger control instruction according to the control state of the controlled device, it may be determined first whether the controlled device is in the non-automatic/scene trigger control instruction control state, so that the trigger control instruction may be processed according to the determination result.
There are various ways to determine whether the controlled device is in the non-automatic/scene trigger control instruction control state, for example: referring to fig. 5, as an alternative, step S220 may include:
step S221: and acquiring the current state parameter of the controlled equipment, wherein the state parameter represents whether the controlled equipment is in a non-automatic/scene trigger control instruction control state.
The state parameter may be used to represent whether the controlled device is in a non-automation/scene trigger control instruction control state, that is, may be understood as a carrier for determining the control state of the controlled device. In one approach, the status parameters may include function status parameters (e.g., on and off states of a certain device function of the controlled device) and attribute status parameters (e.g., device identifier of the controlled device) of the controlled device, and may also include operation status parameters (e.g., a certain operation status parameter value of the controlled device, etc.) of the controlled device.
In one manner, the state parameters of the controlled device may be stored in advance, for example, for a controlled device that needs to be controlled by the "slide mode", the states of the "slide mode" (slide-on mode and slide-off mode) and the corresponding state values may be stored in a form of a data table to the server or the controlled device, so as to form a mapping relationship between the states of the "slide mode" and the corresponding state values. In another mode, the state parameters of the controlled device may also be stored in the server, and when the controlled device is needed, a state parameter obtaining request is sent to the server, so that the server sends the corresponding state parameters to the controlled device.
Step S222: and judging whether the controlled equipment is in a non-automatic/scene trigger control instruction control state or not according to the state parameters.
As one way, whether the controlled device is in the non-automation/scenario trigger control instruction control state may be determined according to the state parameter. Optionally, there are many state parameters, so there are many ways to determine whether the controlled device is in the non-automatic/scenario trigger control instruction control state according to the state parameters, for example:
in one implementation, referring to fig. 6, step S222 may include:
step S2221: and acquiring the parameter value of the specified mark.
The state parameter may include a designated flag, and optionally, the designated flag may be understood as a judgment flag added to indicate a state of the controlled device, and by obtaining a parameter value of the designated flag, and comparing the obtained parameter value of the designated flag with a preset threshold, it may be determined whether the controlled device is in a non-automatic/scene-triggered control instruction control state.
As one mode, the corresponding trigger type flag may be configured in advance for automatic triggering, manual triggering, and remote control triggering, for example, the trigger type flag triggered by a physical key is configured as "0", the trigger type flag triggered by remote control is configured as "1", the trigger type flag triggered by the automatic trigger mode is configured as "2", when the controlled device receives a trigger control instruction, the controlled device may automatically read a parameter value of a current specified flag, so as to determine whether the controlled device is in a non-automatic/scene trigger control instruction control state according to the parameter value of the specified flag.
Alternatively, in a state where the controlled device is in communication with the gateway and the server, the controlled device may receive a trigger control instruction including a specified flag, which is forwarded by the gateway and is issued by the server, and thus the controlled device may obtain a parameter value of the specified flag from the trigger control instruction.
Step S2222: and judging whether the parameter value is a preset threshold value.
The determining whether the parameter value is the preset threshold value may include comparing the parameter value of the designated mark with a preset threshold value, or determining whether the parameter value of the designated mark falls within a parameter range of the preset designated mark, and then determining whether the controlled device is in a non-automatic/scene trigger control instruction control state. It can be understood that, if the parameter value of the designated flag is compared with the preset threshold, the parameter value of the designated flag in the latest state of the current controlled device may be compared with the preset threshold, so that the accuracy of the determination may be increased.
For example, in a specific application scenario, assuming that a user configures a "slideshow mode" control mode for controlling the operation state of a controlled device, if the controlled device is in the "slideshow mode" control mode, the controlled device only receives the control of the non-automation/scenario-triggered control command, and does not perform the control of the automation/scenario, in this case, the control mode may be understood as a "specified flag", and the specific content of the control mode (the automation/scenario control command and the non-automation/scenario-triggered control command) may be understood as a "parameter value of the specified flag", and the preset threshold of the "slideshow mode" control mode may be understood as: if the controlled device receives the trigger control command, it will determine whether the received trigger control command is the non-automation/scene trigger control command.
Step S2223: and if so, judging that the controlled equipment is in a non-automatic/scene trigger control instruction control state.
It is understood that, as one mode, if the acquired parameter value of the specified mark is determined to be a preset threshold value or within a preset threshold value range, it may be determined that the controlled device is in a non-automatic/scenario-triggered control instruction control state.
Step S2224: if not, the controlled equipment is judged not to be in a non-automatic/scene trigger control instruction control state.
Alternatively, if the acquired parameter value of the designated mark is determined not to be a preset threshold value or not to be within a preset threshold value range, it may be determined that the controlled device is not in the non-automation/scenario trigger control instruction control state.
For example, in an implementation manner, a state flag may be configured for a state where the controlled device is located, optionally, if the state flag is 1, it indicates that the controlled device is in a non-automation/scenario trigger control instruction control state, and if the state flag is 0, it indicates that the controlled device is in an automation/scenario trigger control instruction control state. The setting manner of the value of the status flag for indicating the status of the controlled device includes, but is not limited to, the above setting manner, and is not limited herein.
In another implementation manner, referring to fig. 7, step S222 may include:
step S2225: and acquiring the moment of receiving the trigger control instruction.
As one approach, the status parameter may include a time at which the controlled device receives the trigger control instruction. It is understood that, in order to meet the specific control requirement of the user on the controlled device in a specific time period, that is, the controlled device only receives the non-automation/scenario-triggered control instruction and does not receive or execute the automation/scenario-triggered control instruction in the specific time period, the control duration (time period) of the non-automation/scenario-triggered control instruction may be set, so that it may be determined whether the controlled device is in the non-automation/scenario-triggered control instruction control state by obtaining the time (time point) when the controlled device receives the triggered control instruction.
Step S2226: determining whether the time is within a range of a preconfigured first duration. The first duration represents the effective time of the non-automatic/scenario-triggered control command for controlling the working state of the controlled device, and the value of the first duration may generally be set to 0-3 hours, where 0 represents the end of the countdown of the first duration, that is, the controlled device will no longer be in the non-automatic/scenario-triggered control command control state, although the first duration of the controlled device may be set according to actual requirements, which is not limited herein. Within the range of the first duration, the controlled device can be triggered only by the non-automation/scenario-triggered control instruction, but not by the automation/scenario-triggered control instruction, and does not execute the automation/scenario-triggered control instruction, and it should be noted that, in order to ensure that the device is in a continuous working state within a period of time, in the embodiment of the present application, the controlled device continues to execute the received automation/scenario-triggered control instruction after the first duration expires.
As one way, the first duration may include a start time point and an end time point of the first duration, and it may be determined whether the time at which the controlled device receives the trigger control instruction is within a range of the first duration configured in advance by determining whether the time is between the start time point and the end time point of the first duration.
Step S2227: and if so, judging that the controlled equipment is in a non-automatic/scene trigger control instruction control state.
Optionally, if the time when the controlled device receives the trigger control instruction is within the range of the first duration, it may be determined that the controlled device is in the non-automation/scenario trigger control instruction control state.
Step S2228: if not, the controlled equipment is judged not to be in a non-automatic/scene trigger control instruction control state.
Optionally, if the time when the controlled device receives the trigger control instruction is not within the range of the first duration, it may be determined that the controlled device is not in the non-automation/scenario-triggered control instruction control state, for example, the controlled device is in the automation/scenario-triggered control instruction control state or in another state.
For example, in one implementation, the user configures in advance that the controlled device is triggered and controlled to operate in the non-automatic/scenario-triggered manner within the time range from T1 to T1+ T, and if the controlled device receives a trigger control instruction at time T2, it may be determined whether T2 is within the time range from T1 to T1+ T. Alternatively, if T2 is within the time range from T1 to T1+ T, it indicates that the controlled device is currently in the non-automation/scenario-triggered control instruction control state, and if T2 is outside the time range from T1 to T1+ T, it may be determined that the controlled device is not in the non-automation/scenario-triggered control instruction control state.
Step S2229: and executing the trigger control instruction.
If it is determined that the controlled device is not in the non-automatic/scene-triggered control instruction control state, in order to ensure that the controlled device can be in a continuous working state within a period of time after the controlled device triggers the control instruction control state in the non-automatic triggering manner, the controlled device will resume the device automation/scene control mode, and it can be understood that the controlled device will execute the received trigger control instruction.
After determining whether the controlled device is in the non-automation/scene trigger control instruction control state, in order to further determine whether the controlled device needs to execute the received trigger control instruction so as to better meet the control requirement of the user on the controlled device in the specific scene, as a manner, if the controlled device is in the non-automation/scene trigger control instruction control state, the following steps may be continuously performed:
step S230: and judging whether the trigger control instruction is a control instruction based on the preset automation/scene.
It should be noted that, in the embodiment of the present application, the controlled device receives only the re-trigger of the non-automation/scene trigger mode in the non-automation/scene trigger control instruction control state, does not receive the trigger of the automation/scene trigger mode, and does not execute the control instruction of the automation/scene trigger, where if the controlled device receives the trigger operation of the non-automation/scene trigger mode in the non-automation/scene trigger control instruction control state, the first duration of the non-automation/scene trigger control instruction is updated, so as to further meet the specific control requirement of the user on the controlled device in the specific scene. It can be understood that, as a way, in the case that it is determined that the controlled device is in the non-automation/scenario trigger control instruction control state, it is continuously determined whether the trigger control instruction is a control instruction based on the pre-configured automation/scenario, and repeated execution of the trigger control instruction by the controlled device can be avoided, so as to reduce the execution times of the controlled device and save power consumption.
The manner for determining whether the trigger control instruction is based on the preconfigured automation/scenario control instruction may include comparing the trigger control instruction with the preconfigured automation/scenario described in the foregoing embodiments, and is not described herein again.
Step S240: and if so, not executing the trigger control instruction.
In one mode, if the trigger control command is a control command based on a preconfigured automation/scenario, the controlled device will not execute the trigger control command, thereby saving power consumption and resources.
Step S250: if not, judging that the trigger control instruction is a non-automatic trigger control instruction.
It is understood that if the trigger control command is determined not to be a control command based on a pre-configured automation/scenario, the trigger control command may be determined to be a non-automation trigger control command.
Step S260: the trigger control instruction is executed.
In one mode, the controlled device may execute the received trigger control instruction when it is determined that the controlled device is in the non-automatic/scene trigger control instruction control state and the trigger control instruction is determined to be the non-automatic trigger control instruction, and in this case, the control duration of the non-automatic/scene trigger control instruction may be updated (or may be understood as being continued) by executing the trigger control instruction, so as to meet a specific control requirement of a user on the controlled device in a specific scene, and improve user experience.
As another mode, if the controlled device is not in the non-automation/scenario trigger control instruction control state, the following steps are executed:
it can be understood that, after the controlled device receives the trigger control instruction, if it is determined that the controlled device is not in the non-automation/scenario trigger control instruction control state, in this case, the controlled device can execute the trigger control instruction no matter whether the trigger control instruction is a control instruction based on a pre-configured automation/scenario, so as to ensure that the controlled device can be in a continuous working state within a period of time, which is convenient for a user to control the controlled device at any time.
In the embodiment of the present application, as an aspect, if the trigger control instruction is not a control instruction based on a pre-configured automation/scenario, when it is determined that the trigger control instruction is a non-automation trigger control instruction, the method may further include: and the first duration is counted again by taking the current time as a starting time.
For example, in a specific application scenario, assuming that the user sets the first duration to be 30 minutes, if the user triggers the controlled device at 9 points in a non-automatic/scene-triggered manner, the duration (which can also be understood as the effective time) of the control state of the non-automatic/scene-triggered control instruction is half from 9 points to 9 points, in this case, if the user triggers the controlled device at 9 points 10 points in a non-automatic/scene-triggered manner again, the first duration will be re-counted by taking the current time (i.e. 9 points 10 points) as the starting point, then the duration (effective time) of the first duration will be updated to be 9 points 10 points to 9 points 40 points, and by updating the duration (effective time) of the first duration, the specific control requirement of the user on the controlled device under some specific scenes can be greatly satisfied, and the user experience is improved.
Step S270: the trigger control instruction is executed.
As one way, as shown in fig. 4, after the controlled device receives the trigger control instruction, if it is determined that the controlled device is not in the non-automatic/scene trigger control instruction control state, the trigger control instruction is not executed, and the specific description may refer to the related description in step S2229, which is not described herein again.
In the method for controlling device triggering provided in this embodiment, after receiving a trigger control instruction for controlling and changing a state of a controlled device, when it is determined that the controlled device is in a non-automatic/scene trigger control instruction control state and the trigger control instruction is a control instruction based on a pre-configured automatic/scene, the trigger control instruction is not executed, and thus only the non-automatic/scene trigger control instruction is executed, a control duration of a control mode of the non-automatic trigger mode of the controlled device is updated by a retiming manner, and after the countdown of the control duration is completed, an original control mode is restored, so that the controlled device is prevented from being always in a single control mode, a specific requirement of a user on device trigger control in a specific scene is met, and user experience is improved.
Referring to fig. 8, a flowchart of a method for controlling device triggering according to another embodiment of the present application is shown, where the embodiment provides a method for controlling device triggering, and the method includes:
step S310: and receiving a trigger control instruction.
As a mode, before receiving the trigger control instruction, the control mode of the non-automatic/scene-triggered mode of the controlled device may be set, so that the controlled device may quickly determine, after receiving the trigger control instruction, the control state of the trigger mode corresponding to the trigger control instruction in which the controlled device is located. In an implementation manner, the control mode of the non-automation/scene trigger manner of the controlled device may be set through a controlled device APP management interface bound to the controlled device, specifically, please refer to fig. 9 and fig. 10, which are schematic diagrams of an interface 91 for setting the control mode of the non-automation/scene trigger manner of the controlled device through the controlled device APP management interface. As shown in fig. 9, the user can set the "slideshow mode" (i.e., the control mode of the non-automation/scene-triggered manner of the hall lantern) of the controlled device (in this case, "hall lantern") at the management interface of the client of the controlled device, and optionally, when the user touches the function button 92 of the "slideshow mode" as shown in fig. 9, the user can jump to the "slideshow mode" setting detail page as shown in fig. 10, including turning on the slideshow mode and setting the effective time of the slideshow mode.
It can be understood that, after the client of the controlled device completes setting the "slideshow mode" control mode of the controlled device "hall lantern", a configuration instruction of non-automation/scene trigger control may be generated, so that the controlled device may configure the control state of the non-automation/scene trigger control instruction by acquiring the configuration instruction of the non-automation/scene trigger control, and then configure the control state of the non-automation/scene trigger control instruction according to the configuration instruction. The configuration instruction comprises a non-automatic triggering mode of automation/scenes of the controlled equipment and configuration of duration control time of the non-automatic triggering mode.
Step S320: and judging whether the trigger control instruction is a control instruction based on the preset automation/scene.
As a manner, in this embodiment of the application, after receiving a trigger control instruction, the controlled device, except for determining whether the controlled device is in a non-automation/scene trigger control instruction control state and then determining whether the trigger control instruction is a control instruction based on a pre-configured automation/scene in the foregoing embodiment, may also determine whether the trigger control instruction is a control instruction based on a pre-configured automation/scene and then determine whether the controlled device is in a non-automation/scene trigger control instruction control state, so that after receiving the trigger control instruction, the controlled device may rapidly determine an instruction type of the trigger control instruction, so as to rapidly determine whether the received trigger control instruction needs to be executed subsequently, and save a response time of the controlled device.
The manner in which the controlled device determines whether the trigger control instruction is based on the preconfigured automation/scenario control instruction may refer to the description in the foregoing embodiments, and is not described herein again.
Step S330: and if so, judging whether the controlled equipment is in a non-automatic/scene trigger control instruction control state.
Step S340: and if so, not executing the trigger control instruction.
As a mode, if it is determined that the controlled device is in the non-automation/scenario trigger control instruction control state, although the trigger control instruction received by the controlled device is a control instruction based on the pre-configured automation/scenario, the controlled device will not execute the trigger control instruction, so that the controlled device is not disturbed in the current control mode, and the specific control requirement of the user on the controlled device in the specific scenario is met.
Step S350: and if not, executing the trigger control instruction.
It can be understood that, if the trigger control instruction is not based on a pre-configured automation/scenario control instruction, and the controlled device is not in the non-automation/scenario trigger control instruction control state, the controlled device may execute the trigger control instruction, so that the controlled device may be in a continuous working state within a period of time, which is convenient for a user to perform subsequent operations.
Step S360: if not, judging that the trigger control instruction is a non-automatic trigger control instruction.
If the controlled device receives the trigger control instruction, and then the trigger control instruction is determined not to be based on the control instruction of the pre-configured automation/scenario, the trigger control instruction can be directly determined to be a non-automation trigger control instruction.
Step S370: the trigger control instruction is executed.
Alternatively, the controlled device may directly execute the trigger control instruction in this case.
In the method for controlling device triggering according to this embodiment, a control mode of non-automatic triggering of a controlled device is preconfigured, and after a trigger control instruction for controlling to change a state of the controlled device is received, if it is determined that the controlled device is in a non-automatic/scene trigger control instruction control state and the trigger control instruction is a control instruction based on the preconfigured automation/scene, the trigger control instruction is not executed. By means of the method, under the condition that the controlled equipment is judged to be in the non-automatic/scene trigger control instruction control state and the trigger control instruction is the automatic/scene control instruction based on the pre-configuration, the trigger control instruction is not executed, so that the non-automatic/scene trigger control instruction is only executed, the flexibility of setting of the control mode corresponding to the trigger control instruction is improved, and user-friendly experience is improved.
Referring to fig. 11, a flowchart of a method for controlling device triggering according to another embodiment of the present application is shown, where the embodiment provides a method for controlling device triggering, and the method includes:
step S410: when a server or a gateway receives an instruction for sending a trigger control instruction to a controlled device, whether the instruction is based on pre-configured automation/scene trigger and whether the controlled device is in a non-automation/scene trigger control instruction control state is judged.
As a manner, in the embodiment of the present application, the trigger control instruction of the controlled device may be sent by a server or a gateway, or may be triggered by an external physical entity. For example, when the controlled device is in communication connection with the server and the gateway, the server may send a trigger control instruction for controlling the controlled device to the gateway, and then the gateway forwards the trigger control instruction to the controlled device, it may be understood that, when the state of the controlled device needs to be controlled, an instruction (which may also be understood as a request) for triggering the control instruction may be sent to the server or the gateway by the controlled device or a management APP of the controlled device, and then, when the server or the gateway receives the instruction for sending the trigger control instruction to the controlled device, it may be determined whether the instruction is based on a pre-configured automation/scenario trigger and whether the controlled device is in a non-automation/scenario trigger control instruction control state, so as to process the instruction according to a determination result.
It should be noted that, the determination sequence of the server or the gateway determining whether the indication is based on the preset automation/scenario triggering and determining whether the controlled device is in the non-automation/scenario triggering control instruction control state is not limited herein, the former may be determined first, and the latter may be determined first, which satisfies the same effect.
It should be noted that, before the server or the gateway receives the instruction for sending the trigger control instruction to the controlled device, as an implementation manner, the server may also set a control mode of a non-automatic/scenario trigger manner of the controlled device, so that the server may determine the state of the controlled device according to the preset control mode of the non-automatic/scenario trigger manner.
As one mode, the server may configure the non-automatic trigger control instruction control state of the controlled device by acquiring a preset non-automatic trigger mode for an automation/scenario of the specified controlled device and a duration control time of the trigger mode, and then configuring the non-automatic trigger control instruction control state of the controlled device based on the non-automatic trigger mode and the duration control time of the trigger mode. It should be noted that the designated controlled device is a device having a non-automatic triggering control function, and optionally, a corresponding non-automatic triggering control function may be added to the controlled device according to the requirement of a product in the production and manufacturing process of the controlled device.
Optionally, the specific configuration process and the configuration principle may refer to the description in the foregoing embodiments, and are not described herein again.
Step S420: if so, the indication is ignored.
As one way, if it is determined that the indication is based on the pre-configured automation/scenario trigger and the controlled device is in the non-automation/scenario trigger control instruction control state, the server or the gateway ignores the indication, so as to ensure that the controlled device is in the current control state without being disturbed, and meet the specific requirement of the user in the specific scenario.
Step S430: and if not, sending the trigger control instruction.
Alternatively, if it is determined that the indication is not based on a pre-configured automation/scenario trigger and the controlled device is not in a non-automation/scenario trigger control instruction control state, a corresponding trigger control instruction may be sent.
For example, if it is determined that the indication is not based on a pre-configured automation/scenario trigger, it may be determined to be a human physical trigger or a remote control trigger, in which case the trigger control command may be sent regardless of whether the controlled device is in a non-automation/scenario trigger control command control state. If the controlled equipment is in the working state, the controlled equipment can be continuously operated within a period of time, so that the later operation of the user is facilitated, and the user experience is improved.
In the method for controlling device triggering provided in this embodiment, when the server or the gateway receives an instruction to send a trigger control instruction to the controlled device, the instruction is ignored when it is determined that the instruction is based on the pre-configured automation/scenario trigger and the controlled device is in the non-automation/scenario trigger control instruction control state, otherwise, the trigger control instruction is sent. By means of the method, the specific requirements of the user on equipment trigger control in a specific scene can be met, the accuracy of selecting the equipment trigger control instruction control mode is improved, and the user experience is improved.
Referring to fig. 12, a block diagram of a device-triggered control apparatus according to an embodiment of the present disclosure is shown, in which the embodiment provides a device-triggered control apparatus 500, and the apparatus 500 includes: an instruction receiving module 510 and an instruction processing module 520.
And an instruction receiving module 510, configured to receive a trigger control instruction, where the trigger control instruction is used to control changing of a state of the controlled device.
As one way, the apparatus 500 may further include a configuration module, configured to, before the instruction receiving module 510 receives the trigger control instruction, obtain a configuration instruction of non-automation/scenario trigger control, where the configuration instruction includes configuration of duration control time of a non-automation trigger manner and a non-automation trigger manner of automation/scenario of the controlled device, and then may configure a control state of the non-automation/scenario trigger control instruction according to the configuration instruction.
And the instruction processing module 520 is configured to not execute the trigger control instruction if it is determined that the controlled device is in the non-automation/scenario trigger control instruction control state and the trigger control instruction is a control instruction based on a pre-configured automation/scenario.
It should be noted that the non-automation/scenario trigger control instruction in the embodiment of the present application may include at least one of a physical trigger instruction and a remote control trigger instruction, which is not limited herein.
As one way, the instruction processing module 520 may be configured to first determine whether the controlled device is in a non-automation/scenario trigger control instruction control state; optionally, if so, if the trigger control instruction is a control instruction based on a preconfigured automation/scenario, the trigger control instruction is not executed; and if the trigger control instruction is not a control instruction based on the pre-configured automation/scenario, the trigger control instruction can be executed if the trigger control instruction is determined to be a non-automation trigger control instruction.
Alternatively, the instruction processing module 520 may be configured to first determine whether the trigger control instruction is a control instruction based on a preconfigured automation/scenario; optionally, if yes, continuing to judge whether the controlled equipment is in a non-automatic/scene triggering control instruction control state; if so, the trigger control instruction is not executed.
As a mode, the state parameter of the current controlled device may be obtained, and then it is determined whether the controlled device is in the non-automatic/scene-triggered control instruction control state according to the state parameter, and optionally, the state parameter may represent whether the controlled device is in the non-automatic/scene-triggered control instruction control state.
In one implementation, the state parameter may include a specific flag, and it is understood that the determination of whether the controlled device is in the non-automation/scenario-triggered control instruction control state according to the state parameter may specifically be configured to: and acquiring a parameter value of the designated mark, judging whether the parameter value of the designated mark is a preset threshold value, and optionally judging that the controlled equipment is in a non-automatic/scene trigger control instruction control state if the parameter value of the designated mark is the preset threshold value.
In another implementation, the state parameter may include a time when the trigger control instruction is received, and it is understood that the determination of whether the controlled device is in the non-automatic/scenario trigger control instruction control state according to the state parameter may specifically be used to: acquiring the moment of receiving the trigger control instruction, and then judging whether the moment is within a range of a first duration time configured in advance, optionally, if so, judging that the controlled equipment is in a non-automatic/scene trigger control instruction control state; and if the moment is not within the range of the first preset duration, determining that the controlled device is not in the non-automatic/scene trigger control instruction control state, and executing the trigger control instruction.
In one embodiment, if the trigger control command is not a control command based on a pre-configured automation/scenario, it may be determined that the trigger control command is a non-automation trigger control command, and the first duration may be counted again with the current time as a starting time.
Referring to fig. 13, a block diagram of a device-triggered control apparatus according to another embodiment of the present disclosure is shown, in which the device-triggered control apparatus 600 includes: a judging unit 610 and a processing unit 620.
The determining unit 610 is configured to, when the server or the gateway receives an instruction to send a trigger control instruction to the controlled device, determine whether the instruction is based on a pre-configured automation/scenario trigger and whether the controlled device is in a non-automation/scenario trigger control instruction control state.
As one mode, the determining unit 610 may be configured to determine, when the server or the gateway receives an instruction to send a trigger control instruction to the controlled device, whether the trigger control instruction is based on pre-configured automation/scenario trigger, and optionally, if yes, may continue to determine whether the controlled device is in a non-automation/scenario trigger control instruction control state.
As another way, the determining unit 610 may be configured to determine whether the controlled device is in a non-automation/scenario trigger control instruction control state when the server or the gateway receives an instruction to send a trigger control instruction to the controlled device; optionally, if so, the determination of whether the indication is based on a preconfigured automation/scenario trigger may be resumed.
A processing unit 620, configured to ignore the indication if it is determined that the indication is based on a pre-configured automation/scenario trigger and the controlled device is in a non-automation/scenario trigger control instruction control state; otherwise, sending the trigger control instruction.
It should be noted that the apparatus 600 may further include a configuration unit, where the configuration unit may be configured to obtain a preset non-automatic triggering manner for an automation/scenario of the specified controlled device and a duration control time of the triggering manner, where the specified controlled device is a device having a non-automatic triggering control function; and configuring the control state of the non-automatic trigger control instruction of the controlled equipment based on the non-automatic trigger mode and the duration control time of the trigger mode.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The electronic device (which may be a gateway or a mobile terminal) provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 3 to fig. 11, and is not described herein again to avoid repetition.
In summary, the device triggering control method and apparatus provided by the present application further determine that the controlled device is in the non-automatic/scene triggering control instruction control state and the triggering control instruction is based on the pre-configured automatic/scene control instruction after receiving the triggering control instruction for controlling the state of the controlled device to be changed, and then do not execute the triggering control instruction, so that the non-automatic/scene triggering control instruction is not executed under the condition that the controlled device is determined to be in the non-automatic/scene triggering control instruction control state and the triggering control instruction is based on the pre-configured automatic/scene control instruction, and then only execute the non-automatic/scene triggering control instruction is realized, thereby satisfying the specific requirements of the user on device triggering control in the specific scene, and improving the flexibility of setting of the control mode corresponding to the triggering control instruction, and the user experience is improved.
An embodiment of the present application further provides a gateway, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method of device configuration provided by the above method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
An electronic device provided by the present application will be described below with reference to fig. 14.
Fig. 14 is a hardware block diagram of an electronic device according to a method for configuring a device provided in an embodiment of the present application. As shown in fig. 14, the electronic device 1100 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1110 (the processors 1110 may include but are not limited to Processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (e.g., one or more mass storage devices) for storing applications 1123 or data 1122. The memory 1130 and the storage medium 1120 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instructions operating on an electronic device. Still further, the processor 1110 may be configured to communicate with the storage medium 1120, and execute a series of instruction operations in the storage medium 1120 on the server 1100. The electronic device 1100 may also include one or more power supplies 1160, a wireless network interface 1150 (including a wireless AP access point or Bluetooth interface based on WiFi protocols, etc., where the electronic device 1100 may also include a wired network interface, not shown, if desired), one or more input-output interfaces 1140, and/or one or more operating systems 1121, such as Windows Server (TM), Mac OSXTM, Unix (TM), Linux (TM), FreeBSDTM, etc.
The input output interface 1140 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 1100. In one example, i/o Interface 1140 includes a Network adapter (NIC) that may be coupled to other Network devices via a base station to communicate with the internet. In one example, the input/output interface 1140 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 14 is merely an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 1100 may also include more or fewer components than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
In summary, the electronic device of the terminal in the embodiment of the present application can further determine that the controlled device is in the non-automatic/scene trigger control instruction control state after receiving the trigger control instruction for controlling to change the state of the controlled device, and the trigger control instruction is based on the pre-configured automatic/scene control instruction, and the trigger control instruction is not executed, so that only the non-automatic/scene trigger control instruction is executed, thereby meeting the specific requirement of the user on device trigger control in a specific scene, improving the flexibility of setting the control mode corresponding to the trigger control instruction, and improving the user experience.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method embodiment of the device configuration, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.