[go: up one dir, main page]

CN106371326B - Storage method and device for equipment working scene - Google Patents

Storage method and device for equipment working scene Download PDF

Info

Publication number
CN106371326B
CN106371326B CN201610828133.7A CN201610828133A CN106371326B CN 106371326 B CN106371326 B CN 106371326B CN 201610828133 A CN201610828133 A CN 201610828133A CN 106371326 B CN106371326 B CN 106371326B
Authority
CN
China
Prior art keywords
scene
working
scenes
equipment
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610828133.7A
Other languages
Chinese (zh)
Other versions
CN106371326A (en
Inventor
王艳青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Co Ltd
Original Assignee
Hisense Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201610828133.7A priority Critical patent/CN106371326B/en
Publication of CN106371326A publication Critical patent/CN106371326A/en
Application granted granted Critical
Publication of CN106371326B publication Critical patent/CN106371326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a storage method and device for equipment working scenes, and belongs to the technical field of Internet of things. The method comprises the following steps: determining the scene type of the equipment working scene according to the equipment working scene input by a user, wherein the scene type comprises a reservation scene or a condition scene; detecting whether a contradiction working scene corresponding to the working scene of the equipment is included in the history creation scene or not according to the scene type of the working scene of the equipment; and if the contradictory working scenes are not included in the history creation scenes, sending the device working scenes to the server so that the server stores the device working scenes. The invention can avoid that two or more contradictory working scenes exist in the stored working scenes to cause the equipment to be incapable of working normally, thereby avoiding inconvenience for normal use of users.

Description

Storage method and device for equipment working scene
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a device for storing a working scene of equipment.
Background
Along with the continuous development of the internet of things technology and the continuous improvement of the requirements of people on the quality of life, the smart home is favored by more and more users, and the smart home is connected with various devices together through the internet of things technology to provide multiple control functions such as illumination control, telephone remote control, air conditioner control, curtain control and timing control. When a user uses the intelligent home devices, one or more working scenes of the intelligent home devices can be set on the terminal, so that the corresponding intelligent devices execute different operations in different working scenes.
For example, the working scene of the smart home device set on the terminal by the user may be: turning on bedroom lamp at eight points; or, the hall lamp is turned on when the infrared equipment gives an alarm; or closing a window when the air conditioning equipment is opened, and storing the working scene when the control equipment acquires the working scene set by the user.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
after a user sets a new working scene, the terminal can directly store the working scene, so that contradiction working scenes are easy to occur, household equipment is easy to damage, and inconvenience is brought to the user. For example, when the work scene newly set by the user is "the bedroom lamp is turned on at eight points", and the control device already stores the work scene "the bedroom lamp is turned off at eight points", in this case, if the newly set work scene is directly stored, a contradictory work scene occurs, when the eight points are ten, the bedroom lamp may be turned on first and then turned off or turned off first and then turned on, and if the final state of the bedroom lamp is not the state after working according to the work scene newly set by the user, inconvenience may be caused to normal use of the user.
Disclosure of Invention
The embodiment of the invention provides a method and a device for storing a working scene of equipment, which are used for solving the problems that in the prior art, when a user sets a new working scene, a terminal directly stores the working scene, so that a contradiction working scene is easy to occur and inconvenience is caused to the user. The technical scheme is as follows:
in one aspect, a method for storing device working scenarios is provided, where the method includes:
determining a scene type of an equipment working scene according to the equipment working scene input by a user, wherein the scene type comprises a reservation scene or a condition scene;
detecting whether a contradiction working scene corresponding to the working scene of the equipment is included in a history creation scene or not according to the scene type of the working scene of the equipment;
and if the contradictory work scenes are not included in the history creation scenes, sending the device work scenes to a server so that the server stores the device work scenes.
In another aspect, an apparatus for storing working scenes of a device is provided, the apparatus comprising:
the scene type determining module is used for determining the scene type of the equipment working scene according to the equipment working scene input by a user, wherein the scene type comprises a reservation scene or a condition scene;
the detection module is used for detecting whether contradiction working scenes corresponding to the equipment working scenes are included in history creation scenes or not according to the scene types of the equipment working scenes determined by the scene type determination module;
and the sending module is used for sending the equipment working scene to a server if the detection result of the detection module indicates that the contradictory working scene is not included in the history creation scene, so that the server stores the equipment working scene.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
before the newly created device working scene is stored, whether a contradiction working scene corresponding to the newly created device working scene is included in the history creation scene or not is detected, and whether the newly created device working scene is stored or not is determined according to the detection result, so that the phenomenon that the device cannot normally work due to the fact that two or more mutually contradictory working scenes exist in the stored working scene can be avoided, and inconvenience is caused to normal use of a user is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for storing a device working scenario according to an embodiment of the present invention;
FIG. 2 is a block diagram of a storage device for a device working scenario according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. The method provided by the embodiment of the invention is applied to the intelligent household equipment, and a user can set a plurality of working scenes by himself so that different household equipment can execute corresponding actions under certain trigger conditions, thereby realizing the intellectualization of the household equipment; the trigger condition may be a natural condition, such as turning on the air conditioner when the temperature reaches 30 degrees, that is, the trigger condition may be light, humidity, temperature, or the like, or an action performed by any device, such as turning off the smart window when the air conditioner is turned on. The intelligent home equipment can be used for providing great convenience for the home life of people.
Of course, the method provided by the embodiment of the present invention may also be applied to other intelligent devices, such as office devices or production devices, and the application scenario of the method for storing the device working scenario provided by the present invention is not specifically limited by the embodiment of the present invention.
Fig. 1 is a flowchart of a method for storing a device working scenario according to an embodiment of the present invention, and as shown in fig. 1, an implementation subject of the method is a terminal, and the method includes the following steps:
101. and determining the scene type of the device working scene according to the device working scene input by the user, wherein the scene type comprises a reservation scene or a condition scene.
The equipment working scene refers to that one or a group of intelligent household equipment executes a preset action or is in a preset state under a specific condition.
According to different conditions, the scene type of the working scene of the device comprises a reserved scene or a condition scene, wherein the reserved scene refers to that the corresponding working scene is triggered when the time is up according to the time preset by a user, namely, the working device included in the working scene corresponding to the reserved scene executes a preset action or is in a preset state; the condition scene means that the condition of the corresponding working scene is related to the smart home devices, that is, when at least one home device is in a preset running state, at least one other home device is triggered to execute a preset action or is in a preset state.
It should be noted that the scene type may include other types besides a reservation scene or a condition scene, such as a click-to-trigger scene, that is, a control interface of the terminal includes a control key, and when the terminal detects a pressing operation or a click operation of a user on the control key, a corresponding working scene is triggered; the scene type is not particularly limited in the embodiment of the present invention.
The scene type of the equipment working scene input by the user at present is determined, so that a foundation is laid for detecting whether the working scene contradictory to the equipment working scene is stored or not according to the scene type of the equipment working scene subsequently, and further determining whether the equipment working scene is stored or not, the detection rate of the contradictory working scene can be improved, and further the storage efficiency of the equipment working scene can be improved.
102. And detecting whether a contradiction working scene corresponding to the working scene of the equipment is included in the history creation scene or not according to the scene type of the working scene of the equipment. If the contradictory work scenes are not included in the history creation scenes, executing step 103; if the contradictory work scenarios are included in the history creation scenario, step 104 is performed.
The history creation scenario includes a plurality of work scenarios stored in the server and created by the user before inputting the device work scenario, that is, a plurality of history created work scenarios. For example, in the server, the storage manner of the history creation scenario may be stored in the form of a plurality of lists, for example, the plurality of lists may include a device list, a scenario content list, a scenario condition list, an execution condition table in which the execution condition is the device operation state, and an execution condition table in which the execution condition is the reserved time. Wherein, the equipment running state refers to the running state of the condition equipment.
Illustratively, the device list includes a device number, a device type, and a device name, as shown in table 1, the DevID represents a device number, which may be a number assigned by the server to a plurality of devices already stored in the server; the DevType represents a device type, the device type may also be represented by a number of a server for a different device type, and it should be noted that the number used for representing the device type is different from the device number; deviname is used to represent the device name; the Controller is used for representing a control end, numeral 1 represents that the device is controlled by a cloud end, and numeral 2 represents that the device is controlled by a gateway end.
In the device list shown in table 1, a device named as air conditioner corresponds to a device type of 001, and a corresponding control terminal of 1 indicates an air conditioner controlled by a cloud; the device is named Light, the corresponding device type is 002, and the corresponding control end is 2, so that the lamp controlled by the gateway end is represented; the device named Curtain corresponds to a device type of 003, and the corresponding control end of 1 represents a Curtain controlled by a cloud end; the device is named Light, the corresponding device type is 004, and the corresponding control end is 2 and represents infrared equipment controlled by the gateway end; the device named as aircraft corresponds to a device type of 005 and a control terminal of 1, and represents a window controlled by a cloud.
TABLE 1
Figure BDA0001115717000000051
For example, the scene list includes a scene number, a scene type, and a scene name, as shown in table 2, a scene id represents the scene number, a scene type represents the scene type, and a scene name represents the scene name, and the scene number and the scene type may be represented in a digital form or in other forms, such as a character string, which is not limited in this embodiment of the present invention. For example, when a scene type is expressed in a digital form, numeral 1 represents that the scene type is a click trigger scene, numeral 2 represents that the scene type is a conditional scene, and numeral 3 represents that the scene type is a reservation scene.
TABLE 2
Scene number (scene ID) Scene type (SceneType) Scene name (scene name)
1 1 Scene1
2 1 Scene2
3 2 Scene3
4 2 Scene4
5 3 Scene5
Illustratively, the scene content list includes an index value, a device number of an action device, an action attribute, an action value, and a scene number, as shown in table 3. The action attribute is used for representing the type of action performed by the action equipment, for example, the action attribute 01 represents the on-off operation of the equipment, the corresponding action value of 01 represents the off operation, and the action value of 02 represents the on operation; the action attribute 02 may represent a mode adjustment operation of the device, with corresponding action values representing different modes, respectively.
TABLE 3
Figure BDA0001115717000000061
For example, if the execution condition is an execution condition table of an apparatus running state, the execution condition table includes an index value, an apparatus number, a state attribute, a state value, and a scene number, as shown in table 4, the state attribute is used to indicate a state of the apparatus, and it can be known by combining table 1, table 2, and table 3 that a work scene corresponding to the scene number 3 is "when the air conditioner controlled by the cloud is in a closed state, a window controlled by the cloud is opened", and a scene type of the work scene is a condition scene; the work scene corresponding to the scene number 4 is "when the infrared device controlled by the cloud is in an on state, the lamp controlled by the cloud is turned on".
TABLE 4
Figure BDA0001115717000000062
For example, if the execution condition is an execution condition table of reserved time, the execution condition table includes an index value, a reserved time, a cycle type, and a scene number, the reserved time includes minutes, hours, weeks, and dates, the date shown in table 5 indicates 15:10 of monday, the range of minutes is 00-59, the range of hours is 00-23, the range of dates is 01-31, the range of weeks is 01-07, 01 indicates monday, …, 07 indicates sunday, the range of cycle types is 0-3, both are integers, the cycle type value is 0, indicating no cycle, the cycle type value is 1, indicating a cycle period is one day, and the cycle type value is 2, indicating a cycle period is one week. The execution time of the work scene with scene number 5 shown in table 5 is 15:10 per monday.
TABLE 5
Figure BDA0001115717000000071
In the embodiment of the present invention, when the storage manner of the history creation scenario is stored in the form of the plurality of lists, the method for detecting whether the history creation scenario includes contradictory work scenarios may include the following two methods:
the first method is that if a first work scene is included in the history creation scene, the contradictory work scene is determined to be included in the history creation scene, wherein the first work scene and the device work scene have the same execution condition, at least one same action device, the action attribute of the at least one same action device is the same, and the action value of the at least one same action device is opposite.
It should be noted that the scene type of the first working scenario is the same as the scene type of the newly created device working scenario, and the execution condition of the device working scenario is different according to the different scene types. When the type of the working scene of the equipment is a reserved scene, the execution condition is reserved time; or, when the device working scene type is a condition scene, the execution condition is a device running state.
For example, when the work scene is "alarm at 18:00 per day", the work scene is a time reservation scene, and the execution condition is a reservation time, i.e., "18: 00 per day"; when the working scene is 'the window is closed when the air conditioner is opened', the working scene is a condition scene, and the execution condition is the equipment running state, namely the air conditioner is in an opening state.
The following two examples are provided in the embodiment of the present invention, and specifically describe a process of determining whether a contradiction working scenario is included in a history creation scenario by using the first method when the execution conditions of a newly created working scenario of an apparatus are an apparatus operating state and a reserved time, respectively:
example one, when the newly created device work scenario is "the air conditioner a is in an open state," the window B is opened and the window C is closed, "that is, the execution condition of the newly created device work scenario is" the air conditioner a is in an open state, "the execution condition is a device running state," the action devices are "the window B and the window C," the action attribute is "open or closed," the action value of the action device "the window B" is "open," and the action value of the action device "the window C" is "closed. If the history creation scene comprises a first work scene which has the same execution condition and at least one same action device and has the same action attribute with the device work scene, and the action value of the at least one same action device is opposite, such as a first work scene comprising that the air conditioner A is in an open state, the window B is closed, the first work scene is determined as a contradictory work scene corresponding to the newly created device work scene.
Example two, when the newly created device work scene is "open windows B and C at 15:10 a day", the execution condition of the newly created device work scene is "15: 10 a day", the execution condition is a reserved time, the action device is "window B", the action attribute is "open or closed", the action value of the action device "window B" is "open", and the action value of the action device "window C" is "open". If the history creation scene comprises a first work scene which has the same execution condition as the device work scene, at least one same action device and the same action attribute of the at least one same action device, and the action value of the at least one same action device is opposite, such as a case comprising a first work scene of closing a window B at 15:10 every day, the first work scene is determined as a contradictory work scene corresponding to the newly created device work scene.
And secondly, if a second working scene is included in the history creation scene, determining that the contradictory working scene is included in the history creation scene, wherein the second working scene and the device working scene have the same execution condition and at least one same action device, and the action attribute of the at least one same action device is different.
Similarly to the first method, in the method for determining contradictory working scenarios, according to different scenario types of the newly created device working scenario, the execution conditions are also different, two examples are provided below for determining whether the history creation scenario contradicts the working scenario in the second method according to the embodiment of the present invention, where the two examples specifically describe a process for determining whether the history creation scenario includes the contradictory working scenario by using the second method when the execution conditions of the newly created device working scenario are the device operating state and the reserved time, respectively:
example one, when a newly created device work scenario is "window B closed", a cooling mode of air conditioner a is turned on and window C is turned on ", that is, an execution condition of the newly created device work scenario is" window B closed ", the execution condition is a device running state, action devices are" air conditioner a "and" window C ", an action attribute of action device" air conditioner a "is" work mode setting ", and an action attribute of action device" window C "is" open or closed ". If a second work scenario in which the execution conditions and the action devices are the same as those of the device work scenario and the action attribute of the at least one identical action device is different from that of the device work scenario is included in the history creation scenario, for example, if the second work scenario "when the window B is closed and the temperature of the air conditioner a is set to 26 degrees" is included, the action attribute of the action device "air conditioner a" of the second work scenario is "temperature setting", and the second work scenario is determined to be an inconsistent work scenario corresponding to the newly created device work scenario.
Example two, when the newly created device work scenario is "turn on the cooling mode of the air conditioner a and turn on the window C at 15:10 a day", the execution condition of the newly created device work scenario is "15: 10 a day", the execution condition is the reserved time, the action devices are "the air conditioner a" and "the window C", the action attribute of the action device "the air conditioner a" is "work mode setting", and the action attribute of the action device "the window C" is "open or closed". If the history creation scene includes a second work scene having the same execution condition and at least one same action device and having a different action attribute from the device work scene, for example, a second work scene "when the cooling temperature of the air conditioner a is set to 26 degrees at 15:10 a day", the action attribute of the action device "air conditioner a" of the second work scene is "temperature setting", and the second work scene is determined as an contradictory work scene corresponding to the newly created device work scene.
It should be noted that, the two methods for detecting contradictory work scenes may preferentially adopt the second method for detection, and if it is detected that the history creation scene does not include the second work scene which has the same execution condition and at least one same action device as the device work scene and has a different action attribute from the at least one same action device, further adopt the first method for detecting whether the history creation scene includes the first work scene which has the same execution condition and at least one same action device as the newly created device work scene and has a same action attribute as the at least one same action device and a different action value from the at least one same action device; the two methods can also be used for detection at the same time, which is not limited in the embodiment of the present invention.
In another embodiment of the present invention, the method for acquiring the history creation scenario includes the following two methods:
firstly, sending a first acquisition request to the server; and receiving the history creation scene returned by the server based on the first acquisition request.
It should be noted that the history scene creation scene acquired by the first acquisition request is a working scene of all scene types of history creation, and therefore, when the method is used to acquire the history scene creation, the first acquisition request may be executed after step 101 and before step 102, or may be executed before step 101, which is not limited in this embodiment of the present invention.
When the terminal sends the first acquisition request for acquiring the history creation scene to the server before executing step 101, that is, when the terminal detects an opening operation of a scene creation page or a scene editing page, that is, sends the first acquisition request to the terminal, it is possible to directly detect whether the acquired history creation scene includes a contradictory working scene corresponding to the working scene after determining the scene type of the working scene of the device.
Secondly, sending a second acquisition request to the server, wherein the second acquisition request carries the scene type of the working scene of the equipment, so that the server acquires the working scene with the scene type being the same as the scene type of the working scene of the equipment, which is stored in the server, for the history creation scene according to the scene type of the working scene of the equipment; and receiving the history creation scene returned by the server based on the second acquisition request.
The second acquisition request is used for acquiring the historically created working scene with the same scene type as the device working scene determined in step 101 from the server. By adopting the method, the history creation scene is acquired, all the history created working scenes do not need to be acquired, the occupation of the memory of the terminal is reduced, in addition, the terminal can be prevented from screening the working scenes with the same scene type as the working scenes of the equipment from all the history created working scenes, so that whether the history created scenes comprise contradictory working scenes corresponding to the working scenes of the equipment or not is detected, and the operation complexity of the terminal is reduced.
The process of obtaining the history creating scene may be implemented by using any one of the two methods, or may also be implemented by using another method to obtain the history creating scene, or obtain the history creating scene at another time before step 203 is executed, which is not limited in the embodiment of the present invention.
103. And if the contradictory work scenes are not included in the history creation scenes, sending the device work scenes to a server so that the server stores the device work scenes.
In the embodiment of the present invention, when the detection result in step 102 indicates that the contradictory working scenario is not included in the history creation scenario, the device working scenario may be sent to a server, and the server stores the device working scenario by using the same storage method as that used for the history creation scenario; the working scene of the equipment can be sent to a cloud storage space, and the working scene of the equipment is stored by the cloud storage space; or store the working scenario of the device in other storage manners, which is not specifically limited in this embodiment of the present invention.
104. And if the history creation scene comprises the contradictory work scene, displaying prompt information.
When the detection result of step 102 indicates that the history creation scene includes the contradictory work scene, the displayed prompt information is used to prompt the user, the created work scene includes a work scene contradictory to the currently created device work scene, the prompt information may include a contradictory scene viewing option, and when the terminal detects that the user triggers the contradictory scene viewing option, the contradictory work scene detected in step 102 is displayed on the contradictory scene display page. The prompt message may also include other information, such as the number of contradictory work scenes, and the like, which is not limited in the embodiment of the present invention.
By displaying the prompt information, the user can know whether the currently created equipment working scene is contradictory to the created working scene, so that the situation that the equipment cannot work normally due to the fact that two or more contradictory working scenes exist in the stored working scenes can be avoided, and further unnecessary troubles are avoided for daily life of the user.
In another embodiment of the present invention, while the contradictory work scenes are displayed on the contradictory scene display page, the newly created device work scenes, and the modification options and deletion options corresponding to each scene may also be displayed, so that the user may perform a deletion operation or a modification operation with respect to different work scenes. When detecting the deletion operation of the user on the contradictory working scenes, storing the newly created equipment working scenes; when detecting the deletion operation of the user on the newly created equipment working scene, not executing the storage operation; when the modification operation on any working scene is detected, a modification page is displayed so that the user can modify the selected working scene on the modification page, and after the modification, the step 102 and the following steps are repeatedly executed to determine whether to store the modified working scene.
By displaying the modification option and the deletion option corresponding to each scene on the contradictory scene display page, a user can compare the newly created equipment working scene with the corresponding contradictory working scene to determine whether the equipment needs to be modified or the equipment finally wants to store the working scene, so that the condition that the equipment cannot normally work due to the stored working scene can be further avoided.
According to the method for storing the working scene of the equipment, provided by the invention, before the newly created working scene of the equipment is stored, whether a contradiction working scene corresponding to the newly created working scene of the equipment is included in the historical creation scene or not is detected, and whether the newly created working scene of the equipment is stored or not is determined according to the detection result, so that the phenomenon that the equipment cannot normally work due to the fact that two or more contradictory working scenes exist in the stored working scene can be avoided, and the inconvenience caused to the normal use of a user is avoided; furthermore, the history creation scene is acquired after the scene type of the newly created device working scene is determined, so that all the history created working scenes do not need to be acquired, the occupation of the memory of the terminal is reduced, in addition, the terminal can be prevented from screening the working scenes with the same scene type as the device working scene from all the history created working scenes, whether contradiction working scenes corresponding to the device working scenes are included in the history created scenes or not can be detected, and the operation complexity of the terminal is reduced.
Fig. 2 is a block diagram of a storage apparatus for an apparatus working scenario according to an embodiment of the present invention. Referring to fig. 2, the apparatus includes a scene type determination module 201, a detection module 202, and a transmission module 203.
A scene type determining module 201, configured to determine a scene type of an apparatus working scene according to the apparatus working scene input by a user, where the scene type includes a reservation scene or a condition scene;
a detecting module 202, configured to detect whether a contradiction working scenario corresponding to the device working scenario is included in the history creation scenario according to the scene type of the device working scenario determined by the scene type determining module 201;
a sending module 203, configured to send the device working scenario to a server if the detection result of the detecting module 202 is that the contradictory working scenario is not included in the history creation scenario, so that the server stores the device working scenario.
In a first possible implementation manner provided by the present invention, the apparatus further includes:
and the display module is used for displaying prompt information if the detection result of the detection module indicates that the history creation scene comprises the contradiction working scene.
In a second possible implementation manner provided by the present invention, the apparatus further includes:
the sending module 203 is further configured to send a first obtaining request to the server;
a receiving module, configured to receive the history creation scenario returned by the server based on the first obtaining request sent by the sending module 203.
In a third possible implementation manner provided by the present invention, the apparatus further includes:
the sending module 203 is further configured to send a second obtaining request to a server, where the second obtaining request carries a scene type of the device working scene, so that the server obtains, according to the scene type of the device working scene, a working scene with a scene type that is the same as the scene type of the device working scene and stored in the server, and obtains the working scene created for the history;
a receiving module, configured to receive the history creation scenario returned by the server based on the second obtaining request sent by the sending module 203.
In a fourth possible implementation manner provided by the present invention, the detecting module 202 is configured to:
if the history creation scene comprises a first working scene, determining that the history creation scene comprises the contradictory working scene, wherein the first working scene and the equipment working scene have the same execution condition and at least one same action equipment, the action attribute of the at least one same action equipment is the same, and the action value of the at least one same action equipment is opposite; and/or the presence of a gas in the gas,
and if the history creating scene comprises a second working scene, determining that the history creating scene comprises the contradictory working scene, wherein the second working scene and the contradictory working scene have the same execution condition and at least one same action device, and the action attribute of the at least one same action device is different.
In a fifth possible implementation manner provided by the present invention, when the device working scene type is a reservation scene, the execution condition is a reservation time; or, when the device working scene type is a condition scene, the execution condition is a device running state.
It should be noted that: in the above embodiment, when the storage device for the device working scenario stores the device working scenario, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the storage apparatus for the device working scenario provided in the foregoing embodiment and the storage method embodiment of the device working scenario belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
The present embodiment provides a terminal, which may be used to execute the method for storing the device working scenario provided in the foregoing embodiments. Referring to fig. 3, the terminal 300 includes:
the terminal 300 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 300, and the like. Further, the memory 120 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 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 3, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 300 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 300. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the terminal 300.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 300 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and it provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 300 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 300 may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include storage methods for executing the above-described device operating scenarios.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A storage method of device working scenes is applied to a terminal, and is characterized by comprising the following steps:
determining a scene type of an equipment working scene according to the equipment working scene input by a user, wherein the scene type comprises a reservation scene or a condition scene, and the equipment working scene refers to that one or a group of intelligent household equipment executes a preset action or is in a preset state under a specific condition;
detecting whether contradictory working scenes corresponding to the equipment working scenes are included in history creation scenes according to the scene types of the equipment working scenes, wherein the history creation scenes comprise a plurality of working scenes which are stored in a server and created by a user before the equipment working scenes are input, and the history creation scenes are the same as the scene types of the equipment working scenes;
if the contradictory work scenes are not included in the history creation scenes, sending the device work scenes to the server so that the server stores the device work scenes;
if the history creation scene comprises the contradiction working scenes, displaying prompt information, wherein the prompt information comprises contradiction scene viewing options, and when the triggering operation aiming at the contradiction scene viewing options is detected, displaying the contradiction working scenes on a contradiction scene display page, the number of the contradiction working scenes, newly created equipment working scenes and modification options and deletion options corresponding to each scene, so that a user can delete and modify different working scenes;
the detecting whether a contradiction working scene corresponding to the working scene of the equipment is included in the history creation scene or not according to the scene type of the working scene of the equipment comprises the following steps:
if the history creation scene comprises a second working scene, determining that the history creation scene comprises the contradictory working scene, wherein the second working scene and the equipment working scene have the same execution condition and at least one same action equipment, and the action attribute of the at least one same action equipment is different;
if the second working scene is not included in the history creation scene, detecting whether a first working scene is included in the history creation scene, and if the first working scene is included, determining that the contradictory working scene is included in the history creation scene, wherein the first working scene and the device working scene have the same execution condition, at least one same action device, the action attribute of the at least one same action device is the same, and the action value of the at least one same action device is opposite.
2. The method of claim 1, wherein before determining the scene type of the device working scene according to the device working scene input by the user, the method further comprises:
sending a first acquisition request to the server;
and receiving the history creation scene returned by the server based on the first acquisition request.
3. The method of claim 1, wherein after determining the scene type of the device working scene according to the device working scene input by the user, the method further comprises:
sending a second acquisition request to the server, wherein the second acquisition request carries the scene type of the working scene of the equipment, so that the server acquires the working scene with the scene type being the same as the scene type of the working scene of the equipment from the server according to the scene type of the working scene of the equipment, and acquires the working scene as the history creation scene;
and receiving the history creation scene returned by the server based on the second acquisition request.
4. The method according to claim 1, wherein when the device operation scene type is a reservation scene, the execution condition is a reservation time; or, when the device working scene type is a condition scene, the execution condition is a device running state; or, the scene type further includes a click-type trigger scene, and when the device work scene type is the click-type trigger scene, the execution condition is a pressing operation or a click operation for a control key displayed on the control interface.
5. A device for storing working scenes of equipment is applied to a terminal, and is characterized by comprising:
the system comprises a scene type determining module, a scene type determining module and a scene type determining module, wherein the scene type determining module is used for determining the scene type of an equipment working scene according to the equipment working scene input by a user, the scene type comprises a reservation scene or a condition scene, and the equipment working scene refers to that one or a group of intelligent household equipment executes a preset action or is in a preset state under a specific condition;
a detection module, configured to detect whether a contradictory work scenario corresponding to the device work scenario is included in a history creation scenario according to the scenario type of the device work scenario determined by the scenario type determination module, where the history creation scenario includes a plurality of work scenarios stored in a server and created by a user before the device work scenario is input, and the history creation scenario is a work scenario of the same scenario type as the device work scenario;
a sending module, configured to send the device working scenario to the server if a detection result of the detecting module indicates that the contradictory working scenario is not included in the history creation scenario, so that the server stores the device working scenario;
the display module is used for displaying prompt information if the detection result of the detection module indicates that the historical creation scenes comprise the contradiction working scenes, wherein the prompt information comprises contradiction scene viewing options, and the display module is also used for displaying the contradiction working scenes on a contradiction scene display page when the trigger operation aiming at the contradiction scene viewing options is detected, wherein the number of the contradiction working scenes, the newly created equipment working scenes and the modification options and the deletion options corresponding to each scene are displayed, so that a user can delete and modify different working scenes;
wherein the detection module is configured to:
if the history creation scene comprises a second working scene, determining that the history creation scene comprises the contradictory working scene, wherein the second working scene and the contradictory working scene have the same execution condition and at least one same action device, and the action attribute of the at least one same action device is different;
if the second working scene is not included in the history creation scene, detecting whether a first working scene is included in the history creation scene, and if the first working scene is included, determining that the contradictory working scene is included in the history creation scene, wherein the first working scene and the device working scene have the same execution condition, at least one same action device, the action attribute of the at least one same action device is the same, and the action value of the at least one same action device is opposite.
6. The apparatus of claim 5, further comprising:
the sending module is further configured to send a first acquisition request to the server;
a receiving module, configured to receive the history creation scenario returned by the server based on the first obtaining request sent by the sending module.
7. The apparatus of claim 5, further comprising:
the sending module is further configured to send a second obtaining request to a server, where the second obtaining request carries a scene type of the device working scene, so that the server obtains, according to the scene type of the device working scene, a working scene with a scene type that is the same as the scene type of the device working scene and stored in the server, and obtains the working scene created for the history;
a receiving module, configured to receive the history creation scenario returned by the server based on the second obtaining request sent by the sending module.
8. The apparatus according to claim 5, wherein when the device operation scene type is a reserved scene, the execution condition is a reserved time; or, when the device working scene type is a condition scene, the execution condition is a device running state.
CN201610828133.7A 2016-09-18 2016-09-18 Storage method and device for equipment working scene Active CN106371326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610828133.7A CN106371326B (en) 2016-09-18 2016-09-18 Storage method and device for equipment working scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610828133.7A CN106371326B (en) 2016-09-18 2016-09-18 Storage method and device for equipment working scene

Publications (2)

Publication Number Publication Date
CN106371326A CN106371326A (en) 2017-02-01
CN106371326B true CN106371326B (en) 2021-01-05

Family

ID=57897524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610828133.7A Active CN106371326B (en) 2016-09-18 2016-09-18 Storage method and device for equipment working scene

Country Status (1)

Country Link
CN (1) CN106371326B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111965982A (en) * 2019-05-20 2020-11-20 京东方科技集团股份有限公司 Method and device for creating action resource and triggering operation aiming at target resource
CN110471300B (en) * 2019-08-23 2022-12-06 杭州行至云起科技有限公司 Conflict coordination method and system for multiple intelligent scenes
CN111352350B (en) * 2020-03-16 2023-02-17 青岛海信智慧生活科技股份有限公司 Method and device for determining execution of smart home scene
CN111487884A (en) * 2020-04-20 2020-08-04 星络智能科技有限公司 Storage medium, and intelligent household scene generation device and method
CN113671925A (en) * 2020-05-14 2021-11-19 青岛鼎信通讯股份有限公司 Method for checking effectiveness of intelligent scene execution action
CN112180757B (en) * 2020-11-03 2022-10-25 哈尔滨工程大学 A smart home system and its strategy management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006019449A1 (en) * 2004-07-14 2006-02-23 Tokyo Electron Limited Formula-based run-to-run control
WO2013162885A1 (en) * 2012-04-23 2013-10-31 Chrysler Group Llc Method of and system for scheduling weld events for performing welding operation using a plurality of welding apparatuses

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447783B (en) * 2011-10-21 2014-04-16 惠州Tcl移动通信有限公司 Scenario mode processing method of wireless communication equipment, device and equipment
TW201345211A (en) * 2012-04-30 2013-11-01 Ind Tech Res Inst System and method for conflict management in sensor networks
DE102014108374A1 (en) * 2014-06-13 2015-12-17 LOEWE Technologies GmbH A method of controlling a home automation network, controller, and home automation network
CN104484116A (en) * 2014-12-09 2015-04-01 魅族科技(中国)有限公司 Information input method and information input device
CN104580640A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN104680031B (en) * 2015-03-18 2019-12-24 联想(北京)有限公司 Linkage rule generation method and device
CN105407089A (en) * 2015-10-29 2016-03-16 青岛海尔智能家电科技有限公司 Application scene creation detection method and device
CN105376410B (en) * 2015-11-26 2019-03-15 小米科技有限责任公司 Alarm clock setting method and device
CN105824299B (en) * 2016-03-15 2019-09-03 浙江创意声光电科技有限公司 A kind of the wisdom Lighting control management system and control method of City-level

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006019449A1 (en) * 2004-07-14 2006-02-23 Tokyo Electron Limited Formula-based run-to-run control
WO2013162885A1 (en) * 2012-04-23 2013-10-31 Chrysler Group Llc Method of and system for scheduling weld events for performing welding operation using a plurality of welding apparatuses

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Context-Aware Multi-Agent System for Building Intelligent Services by the Classification of Rule and Ontology in a Smart Home;Yoonsik uhm,等;《32nd IEEE Conference on Local Computer Networks》;20071231;第203-204页 *
基于ZigBee的智能家居系统改进研究;庞泳,等;《计算机工程与设计》;20140531;第35卷(第5期);第1547-1582页 *

Also Published As

Publication number Publication date
CN106371326A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106528036B (en) Volume adjusting method and device
CN106371326B (en) Storage method and device for equipment working scene
CN105634881B (en) Application scene recommendation method and device
CN106371324B (en) operation interface display method and device
CN108845853B (en) Application program starting method and mobile terminal
CN108255382B (en) Method and device for recommending floating menu content
CN109388220B (en) Power supply management method and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN105022552B (en) A kind of method and apparatus for showing messaging list
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN108984066B (en) Application icon display method and mobile terminal
CN108898046B (en) Method for controlling power consumption of fingerprint under screen, terminal and computer readable storage medium
CN107786424B (en) Audio and video communication method, terminal and server
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN106789488B (en) Intelligent household equipment management method and device
CN112286122A (en) Intelligent household control method, device, terminal and storage medium
CN108718389B (en) Shooting mode selection method and mobile terminal
CN111417929A (en) Interface display method and control terminal
CN107104930A (en) It is a kind of that the methods, devices and systems for checking authority are set
CN106302101B (en) Message reminding method, terminal and server
CN108170360B (en) Control method of gesture function and mobile terminal
CN107908527B (en) Application icon display method and device
CN107949039B (en) Wireless network connection method and mobile terminal
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN109660657B (en) Application program control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant