WO2021134335A1 - 一种设备管理方法及装置 - Google Patents

一种设备管理方法及装置 Download PDF

Info

Publication number
WO2021134335A1
WO2021134335A1 PCT/CN2019/130165 CN2019130165W WO2021134335A1 WO 2021134335 A1 WO2021134335 A1 WO 2021134335A1 CN 2019130165 W CN2019130165 W CN 2019130165W WO 2021134335 A1 WO2021134335 A1 WO 2021134335A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
target
attributes
scene
target device
Prior art date
Application number
PCT/CN2019/130165
Other languages
English (en)
French (fr)
Inventor
张军
茹昭
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to JP2022540402A priority Critical patent/JP2023512152A/ja
Priority to EP19958507.6A priority patent/EP4071590A4/en
Priority to CN201980103081.9A priority patent/CN114902169A/zh
Priority to PCT/CN2019/130165 priority patent/WO2021134335A1/zh
Priority to KR1020227025847A priority patent/KR20220116304A/ko
Publication of WO2021134335A1 publication Critical patent/WO2021134335A1/zh
Priority to US17/809,805 priority patent/US20220337447A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • H04L12/2827Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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

Definitions

  • the present invention relates to the technical field of equipment control, and in particular to an equipment management method, device, chip, computer readable storage medium, computer program product, and computer program.
  • the smart home system consists of equipment, network, platform, and application. Build specific equipment automation and equipment linkage to achieve specific applications and businesses.
  • the automatic control of equipment is realized by operating the created scene resources mainly through the OCF protocol.
  • the target device to be controlled is not highly intelligent, there may be a problem that the target device cannot be controlled with gradual attribute changes, or it may not be able to control the target device more intelligently. The properties of the problem are more in line with the control of its status.
  • embodiments of the present invention provide a device management method, device, chip, computer-readable storage medium, computer program product, and computer program.
  • a device management method including:
  • N is an integer greater than or equal to 2; wherein the attribute value of each of the one or more attributes of the target device is incremented and/or decremented during the N adjustment operations;
  • the preset information is used to indicate the conditions to be met for each adjustment operation in N adjustment operations for one or more attributes of the target device, and/or to indicate each adjustment operation in the N adjustment operations
  • a device management apparatus including:
  • the processing unit based on the preset information contained in the scene resource, performs N adjustment operations on the attribute value of one or more attributes of the target device, and adjusts the attribute value of each of the one or more attributes of the target device Adjust from the current value to the target value;
  • N is an integer greater than or equal to 2; wherein, the attribute value of each of the one or more attributes of the target device is incremented and/or decremented during the N adjustment operations;
  • the preset information is used to indicate the conditions to be met for each adjustment operation in N adjustment operations for one or more attributes of the target device, and/or to indicate each adjustment operation in the N adjustment operations
  • a device management device which includes a processor and a memory.
  • the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the above-mentioned first aspect or each of its implementation modes.
  • a chip is provided, which is used to implement any one of the foregoing first to third aspects, seventh to tenth aspects, or the methods in each implementation manner thereof.
  • the chip includes: a processor, configured to call and run a computer program from the memory, so that the device installed with the chip executes any one of the first aspect to the third aspect, and the seventh aspect to the tenth aspect as described above. Aspects or methods in their various implementations.
  • a computer-readable storage medium for storing a computer program that enables a computer to execute any one of the first to third aspects, the seventh to tenth aspects, or each of the foregoing aspects. The method in the implementation mode.
  • a computer program product including computer program instructions that cause a computer to execute any one of the first aspect to the third aspect, the seventh aspect to the tenth aspect, or the implementation manners thereof In the method.
  • a computer program which when running on a computer, causes the computer to execute any one of the first to third aspects, the seventh to tenth aspects, or any of the implementations thereof method.
  • FIGS 1 to 4 are schematic diagrams of several processing logics of scene resources and rule resources
  • FIG. 5 is a schematic flowchart of a device management method provided by an embodiment of the present application.
  • Fig. 6-1- Fig. 11 are schematic diagrams of processing logic of multiple scene resources provided by embodiments of the present application.
  • FIG. 12 is a schematic diagram 1 of the composition structure of a device management apparatus according to an embodiment of the present invention.
  • FIG. 13 is a second schematic diagram of the composition structure of a device management apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic block diagram of a chip provided by an embodiment of the present application.
  • lastScene (recent scene) is set to any one of sceneNames (scene name), such as the scene (Scene) 1 shown in the figure, it will be referenced by the link (reference relationship) of the scene member (Scene Member)
  • the target resource is operated to change the attribute value of the target resource to the attribute value of the element whose scene name (sceneName) is the same as the value of the last scene (lastScene) in the preset mappings (mapping relationship) element.
  • Condition consists of relational expressions and logical expressions.
  • the Target Resource The lastScene of the scene resource
  • Rule Member which will cause the aforementioned scene resource to be operated.
  • lastScene When the value of lastScene is set to any value in sceneNames, operate on the Scene Member resource whose sceneName value referenced by links is the same as the lastScene value, so that the attribute value of the Target Resource referenced by the links of the Scene Member resource is changed to The value in the default Scene Value.
  • Condition consists of relational expressions and logical expressions.
  • the target device if the target device itself cannot support the function of intelligent brightness gradation, it needs to perform timing adjustment when changing the attribute value, and the scene does not have timing processing in the prior art.
  • the embodiment of the present invention provides a device management method to solve the aforementioned problem, as shown in FIG. 5, including:
  • Step 21 Perform N adjustment operations on the attribute value of one or more attributes of the target device based on the preset information contained in the scene resource, and change the attribute value of each attribute of the one or more attributes of the target device Adjust from the current value to the target value;
  • N is an integer greater than or equal to 2; wherein, the attribute value of each of the one or more attributes of the target device is incremented and/or decremented during the N adjustment operations;
  • the preset information is used to indicate the conditions to be met for each adjustment operation in N adjustment operations for one or more attributes of the target device, and/or to indicate each adjustment operation in the N adjustment operations
  • the solution provided in this embodiment can be applied to a device side with information processing and control capabilities, for example, it can be a management device in a smart home system.
  • One or more attributes of the target device can be set according to actual conditions.
  • the first attribute and the second attribute contained in the target device are assumed to be the R value in brightness and RGB respectively; correspondingly, the first attribute included
  • the attribute and the second attribute will change the attribute value in each adjustment operation, and the attribute value changes corresponding to different attributes may be the same or different.
  • the brightness can be increased gradually
  • the second attribute R value can be increased first and then decreased by the gradient.
  • the three attributes are respectively RGB values, where the R value first increases and then decreases and then increases, the G value first decreases and then increases, and the B value increases. No more exhaustive list here.
  • the aforementioned target device may be any device that can be controlled by the management device.
  • the target device in a smart home system, can be a desk lamp, then an attribute of the corresponding target device can be the brightness of the desk lamp, and the attribute value of the attribute of the target device can be the brightness value of the desk lamp.
  • the target device may be a humidifier, and the attribute value corresponding to an attribute contained therein may be the amount of fog corresponding to humidification.
  • the target device can be a heating device, such as heating, air conditioning, etc., and one attribute included can be temperature, and the corresponding attribute value can be a temperature value.
  • the target device can also have more types. As long as it is a device that can adjust its own attribute value (such as gradually increasing or decreasing), it can fall within the protection scope of this embodiment. Exhaustively.
  • the preset information includes:
  • each of the N first preconditions corresponds to one adjustment operation, and each of the first preconditions includes a condition to be satisfied for the adjustment operation;
  • Each of the N first timers corresponds to one adjustment operation, and each of the first timers is used to control the time interval of the corresponding adjustment operation.
  • the preset information further includes:
  • the aforementioned N can be a preset value according to the actual situation. For example, in a scene where the target object is a desk lamp, in order to control the light to gradually brighten, set N to a larger value, such as 20, then you can control it separately in 20 times. Corresponding sub-target value to adjust light attributes.
  • first timers corresponding to different first preconditions may be the same or different.
  • the N first timers can be set to the same timing duration, or the timing duration of some of the first timers can be set to the same timing duration A, and the other part can be set to the timing duration B; or, every time The timer duration of one first timer is different from the timing duration of other first timers.
  • the preset sub-target values corresponding to different first preconditions are different. Moreover, when N adjustment operations are performed sequentially, the sub-target values corresponding to the nth adjustment operation are all greater than the sub-target values of the n-1th adjustment operation; or, when the N adjustment operations are performed sequentially, the nth adjustment operation corresponds to The sub-target values of are all smaller than the sub-target value of the n-1th adjustment operation.
  • the minimum value of the multiple sub-target values can be 0; the maximum value of the multiple sub-target values can be preset according to the actual situation.
  • the target device is a lamp as an example, then the maximum value can be determined according to the current scene It is the maximum brightness supported by the table lamp (for example, in the middle of the night, the lamp in the living room), or, at night, the maximum brightness corresponding to the table lamp by the bed can be the medium brightness and so on.
  • the target device is an air conditioner
  • the maximum value can also be determined according to the current scene and time (or season). For example, if it is a winter night, the maximum temperature of the air conditioner can be controlled to 28 degrees. If the current scene The corresponding time is winter and day. In order to reduce the temperature difference between indoor and outdoor, the maximum value can be set to 26 degrees. No more exhaustive list here.
  • N adjustment operations on the attribute value of one or more attributes of the target device, and change the attribute value of each attribute of the one or more attributes of the target device from the current value Adjust to the target value, including:
  • n is an integer greater than or equal to 1 and less than or equal to N;
  • the first judgment result indicates that the state of the target device satisfies the nth first precondition, then the time interval corresponding to the nth first timer corresponding to the nth first precondition Within, the attribute value of each of the one or more attributes of the target object is adjusted to the corresponding sub-target value.
  • the status of the target device can be set according to different target devices, for example, it can include whether the target device is turned on, the current attribute value of the target device, and so on.
  • the 0th first precondition judges whether the target device is in the off state, if If yes, set the sub-target value of the target device to "on".
  • the three types of content, the first precondition, the first timer, and the sub-target value contained in the foregoing preset information may exist at the same time, or there may be only one or two of them.
  • N first preconditions are set in the scene resource, and the sub-target value of each of the one or more attributes respectively corresponding to the N first preconditions. Then, during each adjustment, it is determined whether to adjust one or more attributes of the target device to the sub-target values corresponding to this adjustment according to whether the corresponding first precondition is satisfied.
  • each adjustment does not need to perform the state judgment, as long as one or more attribute values of the target device are adjusted to the corresponding sub-target value.
  • the first timer and the sub-target value may be included, and then during each adjustment, one or more attributes of the target device are adjusted to the corresponding sub-target value within a corresponding time interval.
  • the foregoing preset information may be set in a mapping element (Mapping) included in the scene resource.
  • the preset information is set in a scene value (Scene value) element included in the scene resource.
  • a scene resource can contain: one or more scene names (Scene Names), the most recent scene (Last Scene), N reference relationships (Links), scene members ( Scene Member), Mapping element, Target Resource.
  • the Mapping element in the scene resource may also include: the name of the most recent scene, the attribute name, the sub-target value, the first precondition, the value of the judgment result corresponding to the first precondition (Precondition Value), and the first timer .
  • each Mapping element contains one of the N first preconditions, which is called the nth first precondition.
  • the n-th first precondition (Precondition) is composed of a relational expression and a logical expression, which can be expressed as: "Magic string of EBNF format". The specific content is set according to actual conditions and is not exhaustive.
  • the scene member (Scene Member) corresponding to each of the Links is determined in turn, and the Target Resource (target resource) corresponding to the link, that is, the attribute value of the target device, is adjusted N times.
  • Multiple Links can be N Links, and these N Links are executed sequentially from 1 to N.
  • Target Resource target resource
  • the nth adjustment operation which may specifically include:
  • the target object is referenced; the current state of the target device is judged according to the nth first precondition contained in the Mapping element in the scene member n, and the judgment result is obtained;
  • the judgment result indicates that when the target device satisfies the nth first precondition, the value of the nth first precondition is True, and then the nth first timer included in the Mapping element In a corresponding time interval, the attribute value of each of the one or more attributes of the target device is adjusted to the corresponding sub-target value.
  • the composition of the rule resource can be seen in Figure 2.
  • Set the condition in the rule resource to "door_sensor” (door_sensor) in state 1 the triggered scene is the test scene (test), and the corresponding scene name is "open” "(Open);
  • the condition in the rule resource is set to the state 0 of the door sensor, and the triggered scene is "closed”.
  • state 1 and state 0 can respectively indicate that the door is open or the door is closed.
  • the second first precondition contained in the Mapping element indicates that the current state of the desk lamp is on and the current brightness value is less than the sub-target value (that is, the sub-brightness value). If the result is true, Then, based on the time interval of the second first timer of 10ms, the brightness of the desk lamp is set to the sub-target value of 5; and so on.
  • the precondition indicates that the current state of the lamp is on, and the current brightness value is less than the sub-target value (that is, the sub-brightness value). If the result is true, the brightness of the lamp is set based on the time interval of the second first timer 200ms Set the sub-goal value to 100.
  • the effect that can be performed is to gradually turn off the lamp, as follows:
  • a scene resource can contain: one or more scene names (Scene Names), the most recent scene (Last Scene), and N reference relationships (Links) , Scene Member (Scene Member), Scene Value (Scene Value) element, Target Resource (Target Resource).
  • the scene value (Scene Value) element in the scene resource may also include: a sub-target value, a first precondition, a judgment result value corresponding to the first precondition (Precondition Value), and a first timer.
  • each scene value (Scene Value) element contains one of the N first preconditions, which is called the nth first Preconditions.
  • the n-th first precondition (Precondition) is composed of a relational expression and a logical expression, which can be expressed as: "Magic string of EBNF format". The specific content is set according to actual conditions and is not exhaustive.
  • a scene member (Scene Member) corresponding to each of the Links is determined in turn, and the Target Resource (target resource) corresponding to the link, that is, the attribute value of the target device, is adjusted N times.
  • Multiple Links can be N Links, and these N Links are executed sequentially from 1 to N.
  • Target Resource target resource
  • the nth adjustment operation which may specifically include:
  • the judgment result indicates that when the target device satisfies the nth first precondition, the value of the nth first precondition is True, and then the nth first timing contained in the scene value element Adjust one or more attributes of the target device to the corresponding sub-target value within a time interval corresponding to the device;
  • the composition of the rule resource can be seen in Figure 2.
  • Set the condition in the rule resource to "door_sensor” (door_sensor) in state 1 the triggered scene is the test scene (test), and the corresponding scene name is "open” "(Open);
  • the condition in the rule resource is set to the state 0 of the door sensor, and the triggered scene is "closed”.
  • state 1 and state 0 can respectively indicate that the door is open or the door is closed.
  • the link1 reference of Scene Member1 is "desk_lamp”
  • the attribute timing value is set to 0ms
  • the attribute state value is set to 1; that is, the scene member (
  • the reference of SceneMember1 is desk lamp (Desk_lamp)
  • the first precondition contained in the Scene Value element indicates that the current state of the desk lamp is off. If the result is true, it is based on the first timer. Time interval 0, set the lamp to the on state;
  • the reference 2 of SceneMember2 is the desk lamp (Desk_lamp), and the second first precondition contained in the Scene Value element indicates that the current state of the desk lamp is on, and the current brightness value is less than the sub-target value (that is, Sub-brightness value), if the result is true, set the brightness of the desk lamp to the sub-target value of 5 based on the time interval of the second first timer of 10ms; and so on.
  • the 21st first precondition means that the current state of the lamp is on and the current brightness value is less than the sub-target value (that is, the sub-brightness value). If the result is true, the time interval based on the second first timer is 200ms , Set the brightness of the desk lamp to the sub-target value of 100.
  • Example 7 The difference from Example 1 is that multiple attribute names are added to the Mapping element, and each attribute name corresponds to a sub-target value. For example, referring to Figure 7, suppose that for two attributes, called the first attribute and the second attribute, respectively, the first attribute and its corresponding sub-target value, and the second attribute are set in the Mapping corresponding to each first precondition And its corresponding sub-target value.
  • Example 2 The only difference in Example 2 is that multiple attribute names and the sub-target value corresponding to each attribute are added to the Scene Value element. I won't repeat them here.
  • attribute 1 is increased in N adjustment operations; attribute 2 is decreased in N adjustment operations; attribute 3 is first increased and then decreased (or can be increased) in N adjustments, and so on. It is not exhaustive here.
  • the preset information includes:
  • M second preconditions, and/or M second timers, and/or M second preconditions respectively corresponding execution expressions; where M is an integer greater than or equal to 1 and less than or equal to N;
  • the second precondition is a condition to be met for at least one adjustment operation
  • the second timer is used to control the time interval of the adjustment operation
  • the execution expression is an expression used to calculate the sub-target value corresponding to each of the one or more attributes.
  • one second precondition may correspond to one or more execution expressions.
  • the number of execution expressions and the number of attributes may be the same.
  • each second precondition can include three execution expressions, which are used to calculate the sub-target values corresponding to the three attributes.
  • the preset information further includes:
  • the number of repetitions is the number of adjustment operations performed on the attribute value of one or more attributes of the target device based on the corresponding second precondition.
  • Example 1 The difference from Example 1 is that an execution expression is added in this embodiment, and the execution expression is used to calculate the sub-target value every time the adjustment operation corresponding to the same second precondition is executed, to obtain this The sub-target value corresponding to this adjustment.
  • the number of repeated uses of each second precondition is determined by its corresponding number of repeated uses.
  • the second timers corresponding to different second preconditions may be the same or different.
  • Different second preconditions are different in sub-target values calculated based on corresponding execution expressions.
  • the execution expressions contained in different second preconditions may also be the same or different.
  • the M second preconditions are matched with their corresponding repetition times, and N adjustment operations can be completed.
  • N and the value of M can be set more or less, and it is not exhaustive here.
  • the attribute value of one or more attributes of the target device is adjusted N times based on the preset information contained in the scene resource, and the attribute value of each attribute of the one or more attributes of the target device is changed.
  • the value is adjusted from the current value to the target value, including:
  • n is an integer greater than or equal to 1 and less than or equal to N
  • m is an integer greater than or equal to 1
  • the second judgment result indicates that the state of the target device satisfies the m-th second precondition, and the number of adjustment operations performed based on the m-th second precondition has not reached the corresponding number of repetitions,
  • the sub-target value corresponding to each of the one or more attributes is calculated based on the execution expression corresponding to the m-th second precondition, and the sub-target value corresponding to each of the one or more attributes is adjusted this time. Adjust the attribute value of each of the one or more attributes of the target object to the corresponding sub-target value within the time interval corresponding to the m-th second timer corresponding to the condition.
  • the 0th first precondition judges whether the target device is in the off state, if If yes, set the sub-target value of the target device to "on".
  • the three types of content, the second precondition, the second timer, the execution expression, and the number of repetitions contained in the foregoing preset information may exist at the same time, or there may be only one or more of them.
  • the second precondition is set in the scene resource, and the execution expression of each of the one or more attributes respectively corresponding to the second precondition is set. Then, during each adjustment, it is determined whether to adjust one or more attributes of the target device respectively to calculate the sub-target value corresponding to the execution expression corresponding to the adjustment according to whether the corresponding second precondition is satisfied. There is no limit to the number of repetitions here, that is, it is not necessary to repeat and only execute once.
  • the foregoing preset information may be set in a mapping element (Mapping) included in the scene resource.
  • the preset information is set in a scene value (Scene value) element included in the scene resource.
  • a scene resource can contain: one or more scene names (Scene Names), the most recent scene (Last Scene), and M reference relationships (Links) , Scene Member (Scene Member), Mapping Element, Target Resource (Target Resource).
  • the Mapping element in the scene resource may also include: the name of the most recent scene, the attribute name, the sub-target value, the second precondition (also denoted as Precondition), and the judgment result value corresponding to the second precondition (Precondition Value). ), the second timer, and the number of repetitions.
  • each Mapping element contains a second precondition, which is called the mth second precondition.
  • the m-th second precondition (Precondition) is composed of a relational expression and a logical expression, which can be expressed as: "Magic string of EBNF format”.
  • the specific content is set according to actual conditions and is not exhaustive.
  • each Mapping also corresponds to a repeat and execution expression, which is represented by "exec”.
  • the specific expression content is also indicated as "Magic string of EBNF format" in the figure.
  • the scene member (Scene Member) corresponding to each of the Links is determined in turn, and the Target Resource (target resource) corresponding to the link, that is, the attribute value of the target device, is adjusted N times.
  • Target Resource target resource
  • the nth adjustment operation which may specifically include:
  • the reference is the target object;
  • the current state of the target device is judged, and the judgment result is obtained;
  • the judgment result indicates that when the target device satisfies the mth second precondition, the value of the mth second precondition is True, and it is judged to repeat the adjustment operation based on the mth second precondition Whether the number of times reaches the preset value of repetition times, if not, the sub-target value corresponding to one or more attributes of this adjustment is calculated based on the execution expression, and then the mth second timer contained in the Mapping element In the corresponding time interval, the attribute value of each of the one or more attributes is adjusted to the corresponding sub-target value.
  • the time interval is 0, the number of repetitions is 1, which means no repetition is performed, and the lamp is set to the on state; among them, the repeat setting can be the same as the above, and the setting of 1 means no repetition means that it will be executed only once, or you can set repeat If it is 0, it means that it will be executed only once and will not be repeated. It can be set flexibly in actual processing, and there is no limitation here.
  • a scene resource can contain: one or more scene names (Scene Names), the most recent scene (Last Scene), and M reference relationships (Links) , Scene Member (Scene Member), Scene Value (Scene Value) element, Target Resource (Target Resource).
  • the scene value (Scene Value) element in the scene resource may also include: the name of the most recent scene, the attribute name, the sub-target value, the second precondition (also denoted as Precondition), and the judgment corresponding to the second precondition The result value (Precondition Value), the second timer, and the number of repetitions.
  • each Mapping element contains a second precondition, which is called the mth second precondition.
  • the m-th second precondition (Precondition) is composed of a relational expression and a logical expression, which can be expressed as: "Magic string of EBNF format”.
  • the specific content is set according to actual conditions and is not exhaustive.
  • each Mapping also corresponds to a repeat and execution expression, which is represented by "exec”.
  • the specific expression content is also indicated as "Magic string of EBNF format" in the figure.
  • the reference is the target object; according to the mth second precondition contained in the scene value element in the scene member n, the current state of the target device is judged, Get the judgment result;
  • the judgment result indicates that when the target device satisfies the mth second precondition, the value of the mth second precondition is True, and it is judged to repeat the adjustment operation based on the mth second precondition Whether the number of times reaches the preset value of the number of repetitions, if not, the sub-target value corresponding to each of the one or more attributes is calculated based on the execution expression, and then the mth number contained in the Mapping element In the time interval corresponding to the second timer, an attribute included in the target device is adjusted to a corresponding sub-target value.
  • Example 3 The difference from Example 3 is that multiple attribute names are added to the Mapping element, and each attribute name corresponds to an execution expression.
  • each attribute name corresponds to an execution expression.
  • Example 4 The only difference from Example 4 is that multiple attribute names and sub-target values corresponding to each attribute are added to the Scene Value element. For example, referring to Figure 9, the first attribute and its corresponding execution expression 1 and the second attribute and its corresponding execution expression 2 are set in the Scene Value element.
  • attribute 1 is increased in N adjustment operations; attribute 2 is decreased in N adjustment operations; attribute 3 is first increased and then decreased (or can be increased) in N adjustments, and so on. It is not exhaustive here.
  • the preset information includes:
  • the execution script is used to execute the following processing at runtime: judging whether the target device meets the conditions to be satisfied for each adjustment of the target device, and calculating the time interval of each adjustment based on the N adjustments.
  • the attribute values of one or more attributes of the target device are respectively adjusted to corresponding sub-target values.
  • the execution script in this embodiment can be "python or JavaScript or other script"
  • the preset information in this embodiment is set in the mapping relationship element included in the scene resource
  • the preset information is set in a scene value element included in the scene resource.
  • Figure 10 illustrates the style of a scene resource.
  • the specific description is the same as the previous embodiment.
  • the difference is that only the execution script corresponding to this adjustment can be included in the Mapping element;
  • the difference of the embodiment is that the corresponding execution script is set in the Scene Value element.
  • the execution script can be understood as a processing program that can be called through the interface. Based on the processing program, different preconditions can be used for state judgment N times, and the attribute value adjustment operation of the target device can be performed N times. The attribute value corresponding to one or more attributes can be adjusted in one adjustment operation;
  • different preconditions can be used for state judgment for M times.
  • Each precondition can be repeated multiple times (set according to the actual situation).
  • the value of the number of repetitions corresponding to the precondition is not reached, according to the corresponding One or more execution expressions of is calculated to obtain one or more sub-target values, and the one or more attribute values are adjusted based on the one or more sub-target values.
  • the embodiment of the present invention also provides a device management device to solve the aforementioned problem, as shown in FIG. 12, including:
  • the processing unit 31 based on the preset information contained in the scene resource, performs N adjustment operations on the attribute value of one or more attributes of the target device, and adjusts the attribute value of each of the one or more attributes of the target device.
  • the value is adjusted from the current value to the target value;
  • N is an integer greater than or equal to 2; wherein the attribute value of each of the one or more attributes of the target device is increased and/or decreased during the N adjustment operations ;
  • the preset information is used to indicate the conditions to be met for each adjustment operation in N adjustment operations for one or more attributes of the target device, and/or to indicate each adjustment operation in the N adjustment operations
  • the solution provided in this embodiment can be applied to a device side with information processing and control capabilities, for example, it can be a management device in a smart home system.
  • the aforementioned equipment management apparatus can be installed and managed in equipment, or in equipment with information processing and control capabilities.
  • the preset information includes:
  • each of the N first preconditions corresponds to one adjustment operation, and each of the first preconditions includes a condition to be satisfied for the adjustment operation;
  • Each of the N first timers corresponds to one adjustment operation, and each of the first timers is used to control the time interval of the corresponding adjustment operation.
  • the preset information further includes:
  • the aforementioned N can be a preset value according to the actual situation. For example, in a scene where the target object is a desk lamp, in order to control the light to gradually brighten, set N to a larger value, such as 20, then you can control it separately in 20 times. Corresponding sub-target value to adjust light attributes.
  • first timers corresponding to different first preconditions may be the same or different.
  • the preset sub-target values corresponding to different first preconditions are different.
  • the processing unit 31 in the process of adjusting the attribute value of the target device for the nth time, determines whether the state of the target device satisfies the nth first precondition contained in the preset information of the scene resource, and obtains The first judgment result; where n is an integer greater than or equal to 1 and less than or equal to N;
  • the first judgment result indicates that the state of the target device satisfies the nth first precondition, then the time interval corresponding to the nth first timer corresponding to the nth first precondition Within, the attribute value of each of the one or more attributes of the target object is adjusted to the corresponding sub-target value.
  • the status of the target device can be set according to different target devices, for example, it can include whether the target device is turned on, the current attribute value of the target device, and so on.
  • the 0th first precondition judges whether the target device is in the off state, if If yes, set the sub-target value of the target device to "on".
  • the foregoing preset information may be set in a mapping element (Mapping) included in the scene resource.
  • the preset information is set in a scene value (Scene value) element included in the scene resource.
  • the preset information includes:
  • M second preconditions, and/or M second timers, and/or M second preconditions respectively corresponding execution expressions; where M is an integer greater than or equal to 1 and less than or equal to N;
  • the second precondition is a condition to be met for at least one adjustment operation
  • the second timer is used to control the time interval of the adjustment operation
  • the execution expression is an expression used to calculate the sub-target value corresponding to each of the one or more attributes.
  • the preset information further includes:
  • the number of repetitions is the number of adjustment operations performed on the attribute value of one or more attributes of the target device based on the corresponding second precondition.
  • Example 1 The difference from Example 1 is that an execution expression is added in this embodiment, and the execution expression is used to calculate the sub-target value every time the adjustment operation corresponding to the same second precondition is executed, to obtain this The sub-target value corresponding to this adjustment.
  • the number of repeated uses of each second precondition is determined by its corresponding number of repeated uses.
  • the second timers corresponding to different second preconditions may be the same or different.
  • Different second preconditions are different in sub-target values calculated based on corresponding execution expressions.
  • the execution expressions contained in different second preconditions may also be the same or different.
  • the M second preconditions are matched with their corresponding repetition times, and N adjustment operations can be completed.
  • N and the value of M can be set more or less, and it is not exhaustive here.
  • the processing unit 31 in the process of adjusting the attribute value of the target device for the nth time, determines whether the state of the target device satisfies the mth second predecessor contained in the preset information of the scene resource. Set conditions, and determine whether the number of adjustment operations performed based on the m-th second precondition reaches the corresponding number of repetitions, and obtain the second determination result; where n is an integer greater than or equal to 1 and less than or equal to N; m is An integer greater than or equal to 1;
  • the second judgment result indicates that the state of the target device satisfies the mth second precondition, and the number of adjustment operations performed based on the mth second precondition has not reached the corresponding number of repetitions,
  • the sub-target value corresponding to each of the one or more attributes is calculated based on the execution expression corresponding to the m-th second precondition, and the sub-target value corresponding to each of the one or more attributes is adjusted this time. Adjust the attribute value of each of the one or more attributes of the target object to the corresponding sub-target value within the time interval corresponding to the m-th second timer corresponding to the condition.
  • the 0th first precondition judges whether the target device is in the off state, if If yes, set the sub-target value of the target device to "on".
  • the foregoing preset information may be set in a mapping element (Mapping) included in the scene resource.
  • the preset information is set in a scene value (Scene value) element included in the scene resource.
  • the preset information includes:
  • the execution script is used to execute the following processing at runtime: judging whether the target device meets the conditions to be satisfied for each adjustment of the target device, and calculating the time interval of each adjustment based on the N adjustments.
  • the attribute values of one or more attributes of the target device are respectively adjusted to corresponding sub-target values.
  • the execution script in this embodiment can be "python or JavaScript or other script"
  • the preset information in this embodiment is set in the mapping relationship element included in the scene resource
  • the preset information is set in a scene value element included in the scene resource.
  • FIG. 13 is a schematic structural diagram of the foregoing apparatus provided in an embodiment of the present application.
  • the apparatus may be the foregoing terminal device or network device in this embodiment.
  • the device shown in FIG. 13 includes a processor 610, and the processor 610 can call and run a computer program from the memory to implement the method in the embodiment of the present application.
  • a memory 620 may also be included.
  • the processor 610 can call and run a computer program from the memory 620 to implement the method in the embodiment of the present application.
  • the memory 620 may be a separate device independent of the processor 610, or may be integrated in the processor 610.
  • the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices. Specifically, it may send information or data to other devices, or receive other devices. Information or data sent by the device.
  • the transceiver 630 may include a transmitter and a receiver.
  • the transceiver 630 may further include an antenna, and the number of antennas may be one or more.
  • the communication device 600 may specifically be a network device of an embodiment of the present application, and the communication device 600 may implement the corresponding process implemented by the network device in each method of the embodiment of the present application. For the sake of brevity, it will not be repeated here. .
  • the communication device 600 may specifically be a terminal device or a network device in an embodiment of the application, and the communication device 600 may implement the corresponding processes implemented by the mobile terminal/terminal device in the various methods of the embodiments of the application. It's concise, so I won't repeat it here.
  • FIG. 14 is a schematic structural diagram of a chip of an embodiment of the present application.
  • the chip 700 shown in FIG. 14 includes a processor 710, and the processor 710 can call and run a computer program from the memory to implement the method in the embodiment of the present application.
  • the chip 700 may further include a memory 720.
  • the processor 710 may call and run a computer program from the memory 720 to implement the method in the embodiment of the present application.
  • the memory 720 may be a separate device independent of the processor 710, or may be integrated in the processor 710.
  • the chip 700 may further include an input interface 730.
  • the processor 710 can control the input interface 730 to communicate with other devices or chips, and specifically, can obtain information or data sent by other devices or chips.
  • the chip 700 may further include an output interface 740.
  • the processor 710 can control the output interface 740 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
  • the chip can be applied to the network device in the embodiment of the present application, and the chip can implement the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the chip can implement the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the chip can be applied to the terminal device in the embodiment of the present application, and the chip can implement the corresponding process implemented by the terminal device in each method of the embodiment of the present application.
  • the chip can implement the corresponding process implemented by the terminal device in each method of the embodiment of the present application.
  • the chip mentioned in the embodiment of the present application may also be called a system-level chip, a system-on-chip, a system-on-chip, or a system-on-chip.
  • the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), and electrically available Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be a random access memory (Random Access Memory, RAM), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • DDR SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • Enhanced SDRAM, ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • Synchronous Link Dynamic Random Access Memory Synchronous Link Dynamic Random Access Memory
  • DR RAM Direct Rambus RAM
  • the memory in the embodiment of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
  • the embodiments of the present application also provide a computer-readable storage medium for storing computer programs.
  • the computer-readable storage medium can be applied to the network device in the embodiment of the present application, and the computer program causes the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the computer program causes the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the computer-readable storage medium may be applied to the terminal device in the embodiment of the present application, and the computer program causes the computer to execute the corresponding process implemented by the mobile terminal/terminal device in each method of the embodiment of the present application, for the sake of brevity , I won’t repeat it here.
  • the embodiments of the present application also provide a computer program product, including computer program instructions.
  • the computer program product can be applied to the network device in the embodiment of the present application, and the computer program instructions cause the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the computer program instructions cause the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • the computer program product can be applied to the mobile terminal/terminal device in the embodiment of the present application, and the computer program instructions cause the computer to execute the corresponding process implemented by the mobile terminal/terminal device in each method of the embodiment of the present application, For the sake of brevity, I will not repeat them here.
  • the embodiment of the present application also provides a computer program.
  • the computer program can be applied to the network device in the embodiment of the present application.
  • the computer program runs on the computer, it causes the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application.
  • I won’t repeat it here.
  • the computer program can be applied to the mobile terminal/terminal device in the embodiment of the present application.
  • the computer program runs on the computer, the computer executes each method in the embodiment of the present application. For the sake of brevity, the corresponding process will not be repeated here.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory,) ROM, random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Stored Programmes (AREA)

Abstract

一种设备管理方法、装置、芯片、计算机可读存储介质、计算机程序产品以及计算机程序,所述方法包括:基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性由当前值调整至目标值(21);N为大于等于2的整数;所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。

Description

一种设备管理方法及装置 技术领域
本发明涉及设备控制技术领域,尤其涉及一种设备管理方法、装置、芯片、计算机可读存储介质、计算机程序产品以及计算机程序。
背景技术
随着科技化水平的提升,越来越多的场景使用到智能化设备,使得整个系统成为更加智能的系统,比如在智能家居系统中,由设备、网络、平台、应用在内的智能家居系统构建特定的设备自动化及设备联动以实现具体的应用和业务。在其中,主要通过OCF协议,通过操作已经创建的场景资源来实现设备的自动化控制。但是,上述处理中,针对所要控制的目标设备的智能化程度不高的情况,可能会出现无法对该目标设备进行属性渐变的控制的问题,又或者,可能会出现无法更加智能的控制目标设备的属性进行更加符合其状态的控制的问题。
发明内容
为解决上述技术问题,本发明实施例提供了一种设备管理方法、装置、芯片、计算机可读存储介质、计算机程序产品以及计算机程序。
第一方面,提供了一种设备管理方法,包括:
基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
第二方面,提供了一种设备管理装置,包括:
处理单元,基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
第三方面,提供了一种设备管理装置,包括:处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,执行上述第一方面或其各实现方式中的方法。
第四方面,提供了一种芯片,用于实现上述第一方面至第三方面、第七方面至第十方面中的任一方面或其各实现方式中的方法。
具体地,该芯片包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片的设备执行如上述第一方面至第三方面、第七方面至第十方面中的任一方面或其各实现方式中的方法。
第五方面,提供了一种计算机可读存储介质,用于存储计算机程序,该计算机程序使得计算机执行上述第一方面至第三方面、第七方面至第十方面中的任一方面或其各实现方式中的方法。
第六方面,提供了一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行上述第一方面至第三方面、第七方面至第十方面中的任一方面或其各实现方式中的方法。
第七方面,提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面至第三方面、第七方面至第十方面中的任一方面或其各实现方式中的方法。
通过采用上述方案,就能够通过在场景资源中增加预设信息,从而就能够控制目标设备的属性值由当前值向目标值进行渐变调整。如此,实现了不支持属性值渐变的设备能够通过多次的前置条件的判断以及属性值的调整实现属性值的渐变,并且,能够从当前值调整到目标值,避免了相关技术中仅能由一个固定值调整为另一个固定值所带来的使用体验不佳的问题。
附图说明
图1-图4为场景资源、规则资源的几种处理逻辑示意图;
图5是本申请实施例提供的一种设备管理方法流程示意图;
图6-1-图11是本申请实施例提供的多种场景资源的处理逻辑示意图;
图12为本发明实施例提供的一种设备管理装置的组成结构示意图一;
图13为本发明实施例提供的一种设备管理装置的组成结构示意图二;
图14是本申请实施例提供的一种芯片的示意性框图。
具体实施方式
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。
在相关技术的OCF协议中,通过操作已经创建的(用户创建或者系统预定义)场景资源(Scene Cloction Resource)来实现设备自动化控制,通过定义规则资源(Rule Resource)来实现设备的联动。
在OCF协议中,一种场景资源(Scene Collection Resource),如图1所示,其表示的意义如下:
当lastScene(最近场景)的值被设置为sceneNames(场景名称)中的任意一个时,比如图中所示的场景(Scene)1,将对场景成员(Scene Member)的link(引用关系)所引用的Target Resource(目标资源)进行操作,使所述目标资源的属性值改变为预设的mappings(映射关系)元素中场景名称(sceneName)与最近场景(lastScene)值一样的元素的属性的值。
在OCF协议中,一种规则资源(Rule Resource),如图2所示,定义如下:
Condition(条件)由关系表达式和逻辑表达式组成,当condition中涉及的资源的属性值使condition的判定结果为true(真)时,将links所引用的Rule Member(规则成员)的Target Resource(场景资源)的lastScene设置为Rule Member预设的lastScene属性值,这将导致前述场景资源被操作。
再一种场景资源(Scene Collection Resource),如图3所示,定义如下:
当lastScene的值被设置为sceneNames中的任一值时,对links所引用的sceneName值与lastScene值相同的Scene Member资源进行操作,使该Scene Member资源的links所引用的Target Resource的属性值改变为预设的Scene Value中的值。
再一种规则资源(Rule Resource),如图4所示,定义如下:
condition由关系表达式和逻辑表达式组成,当输入引用关系(inputlinks)所引用的资源的属性值使condition的判定结果为true时,将输出引用关系(outputlinks)所引用的Target Resource(场景资源)的lastScene设置为预设的Output Value,这将导致前述场景资源被操作。
按照相关技术中的定义,如果设备本身的智能化程度不高,规则中的condition的设置会比较复杂,甚至出现无法满足业务需求的情况,举例如下:
当门打开时(门磁传感器上报1,即door_sensor:state=1),将台灯打开(desk_lamp:state=1),亮度逐渐调至最亮(desk_lamp:brightness=100)。当门关闭时(门磁传感器上报0,即door_sensor:state=0),将台灯亮度逐渐调至最暗(desk_lamp:brightness=0),最终关闭(desk_lamp:state=0)。
在上述需求中,其一:如果目标设备本身不能支持智能化亮度渐变的功能,则需要在执行属性值的变化时进行定时调整,而现有技术中场景没有定时处理。其二:由于目标设备的当前属性值不固定,无法保证能够使得目标设备的属性值由当前值调整至所需值,通常只能由0到目标值,或者目标值到0,因此没有结合目标设备当前的状态,无法为用户提供更舒适的使用体验。
基于此,本发明实施例提供了一种设备管理方法以解决前述问题,如图5所示,包括:
步骤21:基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
具体来说,本实施例提供的方案可以应用于具备信息处理以及控制能力的设备侧,比如,可以为在智能家居系统中的管理设备。
所述目标设备的一个或多个属性可以根据实际情况进行设置,比如,目标设备的包含的第一属性、第二属性,假设分别为亮度、RGB中的R值;相应的,包含的第一属性以及第二属性在每一次调整操作中都会进行属性值的改变,不同的属性对应的属性值的变化情况可以相同也可以不同。比如,亮度可以为渐变增加,第二属性R值则可以为渐变先增加后减少等等。又比如,三个属性分别为是RGB值,可以是其中R值先增后减再增,G值先减后增,B值递增。这里不再穷举。
前述目标设备可以为管理设备能够控制的任意一个设备。比如,在智能家居系统中,目标设备可以为一个台灯,那么相应的目标设备的一个属性,可以为台灯的亮度,所述目标设备的属性的属性值,就可以为台灯的亮度值。再比如,目标设备可以为加湿器,其包含的一个属性对应的属性值可以为加湿度所对应的出雾量。再比如,目标设备可以为加热设备,比如,暖气、空调等等,包含的一个属性就可以为温度,对应的属性值可以为温度值。另外,目标设备还可以有更多类型,只要是能够对自身的属性值进行调整(比如渐变增加或渐变减小)的设备,都可以在本实施例的保护范围内,本实施例中不再进行穷举。
下面分多种实施例对前述方案的详细处理进行说明:
实施例1、
所述预设信息,包括:
N个第一前置条件,和/或N个第一定时器;
其中,所述N个第一前置条件中每一个第一前置条件对应一次调整操作,所述每一个第一前置条件包含有进行调整操作所要满足的条件;
所述N个第一定时器中每一个第一定时器对应一次调整操作,所述每一个第一定时器用于控制对应的调整操作的时间间隔。
和/或所述预设信息,还包括:
与所述N次调整操作分别对应的一个或多个属性中每一个属性的子目标值。
前述N可以为根据实际情况预先设置的值,比如,在目标对象为台灯的场景中,可以为了控制灯光慢慢变亮,将N设置的较大,比如20,那么就可以分20次分别控制对应的子目标值,以调整灯光属性。
另外,不同的第一前置条件所对应的第一定时器可以相同也可以不同。比如,可以将N个第一定时器均设置为相同的定时时长,或者可以将其中部分第一定时器的定时时长设置为相同的定时时长A,另外一部分设置为定时时长B;又或者,每一个第一定时器的定时器时长都与其他的第一定时器的定时时长不同。
不同的第一前置条件所对应的预设的子目标值不同。并且,N次调整操作依次执行时,第n次调整操作对应的子目标值均大于第n-1次调整操作的子目标值;或者,N次调整操作依次执行时,第n次调整操作对应的子目标值均小于第n-1次调整操作的子目标值。
另外,多个子目标值中的最小值可以为0;多个子目标值中的最大值可以根据实际情况预设,比如,以目标设备为灯为例,那么可以根据当前的场景来确定最大值是否为台灯所支持的最大亮度(比如深夜的时候,客厅的灯),又或者,在夜晚时段,床边的台灯所对应的最大值可以为其中等亮度等等。再比如,如果目标设备为空调,也同样可以根据当前的场景以及时间(或季节)来确定最大值,比如,当前为冬季夜晚,那么可以控制空调的温度的最大值为28度,如果当前场景对应的时间为冬季白天,为了减少室内室外的温差,可以将其最大值设置为26度。这里不再进行穷举。
基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值,包括:
在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第n个第一前置条件,得到第一判断结果;其中,n为大于等于1且小于等于N的整数;
所述第一判断结果表征所述目标设备的状态满足所述第n个第一前置条件,则在所述第n个第一前置条件对应的第n个第一定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值均调整为分别对应的子目标值。
其中,所述目标设备的状态可以根据目标设备的不同进行设置,比如,可以包括有目标设备是否开启、目标设备的当前属性值等等。
还需要指出的是,在执行前述第N次调整操作之前,还可以包括有针对目标设备的开、关状态进行判断,比如,第0个第一前置条件判断目标设备是否为关闭状态,如果是,则将目标设备的子目标值设置为“开启”。
需要指出的是,前述预设信息中包含的第一前置条件、第一定时器、子目标值这三类内容,可以同时存在,或者可以仅存在其中一项或两项。
举例来说,在场景资源中设置N个第一前置条件,以及与所述N个第一前置条件分别对应的一个或多个属性中每一个属性的子目标值。那么每次调整的时候,根据是否满足对应的第一前置条件来确定是否将目标设备的一个或多个属性分别调整为本次调整所对应的子目标值。
又或者,在场景资源中,可以仅设置子目标值,那么每次调整不去进行状态判断,只要将目标设备的一个或多个属性值调整为对应的子目标值即可。
再或者,在场景资源中,可以包含第一定时器以及子目标值,那么每次调整的时候再对应的时间间隔内,将目标设备的一个或多个属性调整为对应的子目标值。
前述预设信息,可以设置于所述场景资源中包含的映射关系(Mapping)元素中。或者,所述预设信息,设置于所述场景资源中包含的场景值(Scene value)元素中。
下面结合附图以及示例,对前述预设信息分别设置于Mapping元素的处理方式,以及设置于Scene Value中的处理方式进行详细说明:
示例1、
结合图6-1所示,在一个场景资源(Scene Collection)中,可以包含:一个或多个场景名称(Scene Names)、最近场景(Last Scene)、N个引用关系(Links)、场景成员(Scene Member)、映射关系(Mapping)元素、目标资源(Target Resource)。
其中,场景资源中的Mapping元素中还可以包括:最近场景的名称、属性名称、子目标值、第一前置条件、第一前置条件对应的判断结果值(Precondition Value)、第一定时器。
因为每一个引用关系均对应一个Mapping,因此,每一个Mapping元素中包含有N个第一前置条件中的一个,将其称为第n个第一前置条件。所述第n个第一前置条件(Precondition)由关系表达式和逻辑表达式组成,可以将其表达为:“Magic string of EBNF format”具体内容根据实际情况进行设置,不进行穷举。
当场景资源中的最近场景为场景名称(SceneNames)中的任意一个时,确定所述最近场景对应的多个引用关系(Links);
基于所述多个Links的顺序,依次确定其中每一个Link所对应的场景成员(Scene Member),对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作。
多个Links可以为N个Links,这N个Links为从1~N顺序执行的。
其中,所述对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作,以其中一次进行具体说明,称为第n次调整操作,具体可以包括:
根据第n个link所对应的场景成员n,引用的为目标对象;根据场景成员n中的Mapping元素包含的第n个第一前置条件对目标设备的当前状态进行判断,得到判断结果;
判断结果表征所述目标设备满足第n个第一前置条件时,所述第n个第一前置条件的值为真(Ture),然后在Mapping元素中包含的第n个第一定时器对应的时间间隔内,将所述目标设备的一个或多个属性中每一个属性的属性值分别调整为对应的子目标值。
如果判断结果保证不满足第n个第一前置条件时,则判断目标设备的当前状态是否满足第n+1个第一前置条件;
以此类推,直至第N个第一前置条件执行完,则结束处理。
基于本示例提供的方案,以台灯、对应的一个属性为亮度为例,具体说明如下:
规则资源中可以设置为:condition为”door_sensor:state==1”,引用场景(名称为”test”),lastScene为”open”;condition为”door_sensor:state==0”,引用场景(名称为”test”),lastScene为”close”。规则资源的组成可以参见图2,将规则资源中的条件(condition)设置为“门感应器”(door_sensor)处于状态1,所触发的场景为测试场景(test),对应的场景名称为“打开”(Open);规则资源中的条件设置为门感应器处于状态0,则触发的场景为“关闭”。其中,状态1以及状态0可以分别表示门打开或门关闭。
进一步地,场景资源中的最近场景确定为“Open”即打开时(场景名称为”test”设置为:lastScene为“open”时),结合图6-1对基于其对应的N个links执行后续处理进行说明:
Scene Member1的link1引用为”desk_lamp”,Scene Member1的Mapping元素中:precondition为”state==0”,属性timing值设置为0ms,属性state值设置为1;也就是场景成员(Scene Member)1的引用为台灯(Desk_lamp),Mapping元素中包含的第1个第一前置条件表示台灯当前的状态为关闭,如果结果为ture,则基于第一定时器的时间间隔0,将台灯设置为开的状态;
Scene Member2link2引用为”desk_lamp”,Scene Member2的Mapping元素中:precondition为”state==1&&current_brightness<brightness”,属性timing值设置为10ms,属性”brightness”为5;也就是场景成员(Scene Member)2的引用2为台灯(Desk_lamp),Mapping元素中包含的第2个第一前置条件表示台灯当前的状态为打开、并且当前亮度值小于子目标值(也就是子亮度值),如果结果为ture,则基于第2个第一定时器的时间间隔10ms,将台灯的亮度设置为子目标值为5;依次类推。
Scene Member21的link21引用为”desk_lamp”,Scene Member21的Mapping元素中:precondition为”state==1&&current_brightness<brightness”,属性timing值设置为200ms,属性”brightness”为100。也就是,基于前述多个Scene Member进行处理,直至最后一个场景成员(Scene Member)21为止,场景成员(Scene Member)21的引用21为台灯(Desk_lamp),Mapping元素中包含的第21个第一前置条件表示台灯当前的状态为打开、并且当前亮度值小于子目标值(也就是子亮度值),如果结果为ture,则基于第2个第一定时器的时间间隔200ms,将台灯的亮度设置为子目标值为100。
这里,需要指出的是,由于增加了N个第一前置条件,因此,可以从目标设备的一个或多个属 性的当前值进行调整。具体分析如下:由于Link为依次按照1~N的顺序进行调用,那么如果不满足对应的某一个第一前置条件的时候,其对应的值为False,那么就不执行后续的为目标设备的一个或多个属性赋值的处理;因此,只有在匹配到目标设备的当前状态的情况下,才会满足第一前置条件的要求,才会进行一个或多个属性的属性值的调整操作,故而,采用上述方案能够实现由目标设备的当前值调整至目标值。
如果最近场景lastScene为”close”时,那么可以执行的为逐渐关闭台灯的效果,具体如下:
Scene Member1的link1引用为”desk_lamp”,Scene Map中:precondition为”state==1&&current_brightness>brightness”,属性timing值设置为10ms,属性”brightness”为95;
Scene Member2link2引用为”desk_lamp”,Scene Map中:precondition为”state==1&&current_brightness>brightness”,属性timing值设置为20ms,属性”brightness”为90;
Scene Member21的links引用为”desk_lamp”,Scene Map中:precondition为”state==1”,属性timing值设置为210ms,属性state值设置为0。
关于前述处理的详细说明与亮度增加的处理类似,只是逐渐将属性值变低,因此不再进行重复说明。
示例2、
结合图6-2所示,可以看出,在一个场景资源(Scene Collection)中,可以包含:一个或多个场景名称(Scene Names)、最近场景(Last Scene)、N个引用关系(Links)、场景成员(Scene Member)、场景值(Scene Value)元素、目标资源(Target Resource)。
其中,场景资源中的场景值(Scene Value)元素还可以包括:子目标值、第一前置条件、第一前置条件对应的判断结果值(Precondition Value)、第一定时器。
因为每一个引用关系均对应一个场景值(Scene Value)元素,因此,每一个场景值(Scene Value)元素中包含有N个第一前置条件中的一个,将其称为第n个第一前置条件。所述第n个第一前置条件(Precondition)由关系表达式和逻辑表达式组成,可以将其表达为:“Magic string of EBNF format”具体内容根据实际情况进行设置,不进行穷举。
当场景资源中的最近场景为场景名称(SceneNames)中的任意一个时,确定所述最近场景对应的多个引用关系(Links);
基于所述多个Links的顺序,依次确定其中每一个Link所对应的场景成员(Scene Member),对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作。
多个Links可以为N个Links,这N个Links为从1~N顺序执行的。
其中,所述对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作,以其中一次进行具体说明,称为第n次调整操作,具体可以包括:
最近场景的N个Link指向场景成员,link引用的为目标对象;根据场景成员中的场景值元素包含的第n个第一前置条件对目标设备的当前状态进行判断,得到判断结果;
判断结果表征所述目标设备满足第n个第一前置条件时,所述第n个第一前置条件的值为真(Ture),然后在场景值元素中包含的第n个第一定时器对应的时间间隔内,将所述目标设备的一个或多个属性调整为对应的子目标值;
如果判断结果保证不满足第n个第一前置条件时,则判断目标设备的当前状态是否满足第n+1个第一前置条件;
以此类推,直至第N个第一前置条件执行完,则结束处理。
按照本示例提供的方案,以台灯为例,具体说明如下:
规则资源中可以设置为:condition为”door_sensor:state==1”,引用场景(名称为”test”),lastScene为”open”;condition为”door_sensor:state==0”,引用场景(名称为”test”),lastScene为”close”。规则资源的组成可以参见图2,将规则资源中的条件(condition)设置为“门感应器”(door_sensor)处于状态1,所触发的场景为测试场景(test),对应的场景名称为“打开”(Open);规则资源中的条件设置为门感应器处于状态0,则触发的场景为“关闭”。其中,状态1以及状态0可以分别表示门打开或门关闭。
进一步地,场景资源中的最近场景确定为“Open”即打开时(场景名称为”test”设置为:lastScene为“open”时),结合图6-1对基于其对应的N个links执行后续处理进行说明:
Scene Member1的link1引用为”desk_lamp”,Scene Member1的场景值(Scene Value)元素中:precondition为”state==0”,属性timing值设置为0ms,属性state值设置为1;也就是场景成员(Scene Member)1的引用为台灯(Desk_lamp),场景值(Scene Value)元素中包含的第1个第一前置条件表示台灯当前的状态为关闭,如果结果为ture,则基于第一定时器的时间间隔0,将台灯设置为开的状态;
Scene Member2link2引用为”desk_lamp”,Scene Member2的场景值(Scene Value)元素中:precondition为”state==1&&current_brightness<brightness”,属性timing值设置为10ms,属性”brightness”为5;也就是场景成员(Scene Member)2的引用2为台灯(Desk_lamp),场景值(Scene Value)元素中包含的第2个第一前置条件表示台灯当前的状态为打开、并且当前亮度值小于子目标 值(也就是子亮度值),如果结果为ture,则基于第2个第一定时器的时间间隔10ms,将台灯的亮度设置为子目标值为5;依次类推。
Scene Member21的link21引用为”desk_lamp”,Scene Member21的场景值(Scene Value)元素中:precondition为”state==1&&current_brightness<brightness”,属性timing值设置为200ms,属性”brightness”为100。也就是,基于前述多个Scene Member进行处理,直至最后一个场景成员(Scene Member)21为止,场景成员(Scene Member)21的引用21为台灯(Desk_lamp),场景值(Scene Value)元素中包含的第21个第一前置条件表示台灯当前的状态为打开、并且当前亮度值小于子目标值(也就是子亮度值),如果结果为ture,则基于第2个第一定时器的时间间隔200ms,将台灯的亮度设置为子目标值为100。
如果最近场景lastScene为”close”时,那么执行的为逐渐关闭台灯的处理,具体如下:
Scene Member1links引用为”desk_lamp”,Scene Value中:precondition为”state==1&&current_brightness>brightness”,属性timing值设置为10ms,属性”brightness”为95;
Scene Member2links引用为”desk_lamp”,Scene Value中:precondition为”state==1&&current_brightness>brightness”,属性timing值设置为20ms,属性”brightness”为90;
……
Scene Member21的links引用为”desk_lamp”,Scene Value中:precondition为”state==1”,属性timing值设置为210ms,属性state值设置为0。
关于前述处理的详细说明与亮度增加的处理类似,只是逐渐将属性值变低,因此不再进行重复说明。
前述两个示例针对一个属性的处理进行的说明。本实施例中还包含有多个属性的情况,在多个属性的情况下,与前述两个示例不同之处在于,增加了子目标值的设置。
与示例1不同之处在于,Mapping元素中添加了多个属性名称,以及每一个属性名称分别对应的子目标值。比如参见图7,假设针对两个属性,分别称为第一属性、第二属性,在每一个第一前置条件对应的Mapping中设置第一属性及其对应的子目标值,以及第二属性及其对应的子目标值。
示例2的不同之处仅在于在Scene Value元素中增加了多个属性名称以及每一个属性对应的子目标值。这里不再进行赘述。
还需要指出的是,不同属性的变化趋势可以相同也可以不同。比如,三个属性中,属性1在N次调整操作中递增;属性2在N次调整操作中递减;属性3在N次调整中先增加、后减少(还可以再增加)等等。这里不进行穷举。
实施例2、
所述预设信息,包括:
M个第二前置条件,和/或M个第二定时器,和/或M个第二前置条件分别对应的执行表达式;其中,M为大于等于1且小于等于N的整数;
其中,所述第二前置条件为进行至少一次调整操作所要满足的条件;
所述第二定时器用于控制调整操作的时间间隔;
所述执行表达式为用于计算得到一个或多个属性中的每一个属性分别对应的子目标值的表达式。
这里,需要理解的是,一个第二前置条件可以对应一个或多个执行表达式,换句话说,所述执行表达式的数量与所述属性的数量可以相同。举例来说,当需要调整的属性为3个的时候,那么可以每一个第二前置条件包含有3个执行表达式,分别用于计算三个属性所对应的子目标值。
和/或,所述预设信息中,还包括:
所述M个第二前置条件中每一个第二前置条件对应的重复次数;
其中,所述重复次数为基于对应的第二前置条件对所述目标设备的一个或多个属性的属性值进行调整操作的次数。
与示例1不同之处在于,本实施例中增加了执行表达式,该执行表达式用于在每次执行同一个第二前置条件对应的调整操作的时候进行子目标值的计算,得到本次调整所对应的子目标值。关于每一个第二前置条件的重复使用的次数,通过其对应的重复次数来确定。
另外,不同的第二前置条件所对应的第二定时器可以相同也可以不同。
不同的第二前置条件基于对应的执行表达式计算得到的子目标值不同。另外,不同的第二前置条件中包含的执行表达式也可以相同或不同。
还需要指出的是,本实施例中,M个第二前置条件配合其对应的重复次数,能够完成N次调整操作。比如,M=3,N=10,那么第1个第二前置条件可以对应有3次调整操作,或者可以认为重复次数为2;第2个第二前置条件对应可以执行4次调整操作,对应的重复次数可以为3;第3个第二前置条件可以对应执行3次调整操作,那么重复次数可以为2。这里仅为示例,实际上N的数值以及M的数值的设置可以更多或更少,这里不进行穷举。
其中,所述基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值,包括:
在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景 资源的预设信息中包含的第m个第二前置条件,并且判断基于所述第m个第二前置条件执行调整操作的次数是否达到对应的重复次数,得到第二判断结果;其中,n为大于等于1且小于等于N的整数;m为大于等于1的整数;
所述第二判断结果表征所述目标设备的状态满足所述第m个第二前置条件、并且基于所述第m个第二前置条件执行调整操作的次数未达到对应的重复次数,
则基于所述第m个第二前置条件对应的执行表达式计算得到本次调整所述一个或多个属性中每一个属性所对应的子目标值,在所述第m个第二前置条件对应的第m个第二定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值调整为所述对应的子目标值。
还需要指出的是,在执行前述第N次调整操作之前,还可以包括有针对目标设备的开、关状态进行判断,比如,第0个第一前置条件判断目标设备是否为关闭状态,如果是,则将目标设备的子目标值设置为“开启”。
需要理解的是,前述预设信息中包含的第二前置条件、第二定时器、执行表达式、重复次数这三类内容,可以同时存在,或者可以仅存在其中一项或多项。
举例来说,在场景资源中设置第二前置条件,以及与第二前置条件分别对应的一个或多个属性中每一个属性的的执行表达式。那么每次调整的时候,根据是否满足对应的第二前置条件来确定是否将目标设备的一个或多个属性分别调整为本次调整所对应的执行表达式计算得到子目标值。这里不去对重复次数进行限定,也就是说,可以不进行重复,仅执行一次。
当然,还存在其他的结合情况,只是本实施例中不进行穷举。
前述预设信息,可以设置于所述场景资源中包含的映射关系(Mapping)元素中。或者,所述预设信息,设置于所述场景资源中包含的场景值(Scene value)元素中。
下面结合附图以及示例,对前述预设信息分别设置与Mapping元素的处理方式,以及设置于Scene Value中的处理方式进行详细说明:
示例3、
结合图8-1所示,可以看出,在一个场景资源(Scene Collection)中,可以包含:一个或多个场景名称(Scene Names)、最近场景(Last Scene)、M个引用关系(Links)、场景成员(Scene Member)、映射关系(Mapping)元素、目标资源(Target Resource)。
其中,场景资源中的Mapping元素中还可以包括:最近场景的名称、属性名称、子目标值、第二前置条件(也表示为Precondition)、第二前置条件对应的判断结果值(Precondition Value)、第二定时器、以及重复次数。
因为每一个引用关系均对应一个Mapping,因此,每一个Mapping元素中包含有一个第二前置条件,将其称为第m个第二前置条件。所述第m个第二前置条件(Precondition)由关系表达式和逻辑表达式组成,可以将其表达为:“Magic string of EBNF format”具体内容根据实际情况进行设置,不进行穷举。另外,每一个Mapping还对应一个重复此时(repeat),以及执行表达式,由“exec”来表示,具体的表达式内容也在图中示意为“Magic string of EBNF format”。
当场景资源中的最近场景为场景名称(SceneNames)中的任意一个时,确定所述最近场景对应的多个引用关系(Links);
基于所述多个Links的顺序,依次确定其中每一个Link所对应的场景成员(Scene Member),对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作。
多个Links按照顺序执行的。
其中,所述对该link所对应的Target Resource(目标资源)也就是目标设备的属性值进行N次调整操作,以其中一次进行具体说明,称为第n次调整操作,具体可以包括:
根据第n个link所对应的场景成员n,引用的为目标对象;根据场景成员n中的Mapping元素包含的第m个第二前置条件对目标设备的当前状态进行判断,得到判断结果;
判断结果表征所述目标设备满足第m个第二前置条件时,所述第m个第二前置条件的值为真(Ture),判断基于第m个第二前置条件重复执行调整操作的次数是否达到预设的重复次数值,若没有,则基于执行表达式计算得到本次调整一个或多个属性分别对应的子目标值,然后在Mapping元素中包含的第m个第二定时器对应的时间间隔内,一个或多个属性中的每一个属性的属性值均调整为分别对应的子目标值。
关于基于规则资源的处理与前述实施例均相同,这里不再赘述,本实施例仅关注与前述实施例不同之处。按照本示例提供的方案,以台灯、所要调整的属性为亮度为例,具体说明如下:
lastScene为”open”时,
Scene Member1的links引用为”desk_lamp”,Scene Member1的Mapping元素中:precondition为”state==0”,属性timing值设置为0ms,属性repeat值设置为1,属性exec值设置为”state=1”;也就是场景成员(Scene Member)1的引用为台灯(Desk_lamp),Mapping元素中包含的第1个第二前置条件表示台灯当前的状态为关闭,如果结果为ture,则基于第一定时器的时间间隔0,重复次数为1表示不进行重复,将台灯设置为开的状态;其中,repeat设置可以与上述相同,设置为1则不重复表示仅执行1次的意思,或者,可以设置repeat为0,表示仅执行一次,不重复,实际处理中灵活设置,这里不做限定。
Scene Member2links引用为”desk_lamp”,Mapping元素:precondition为”state==1&&current_brightness<=95”,属性timing值设置为10ms,属性repeat值设置为20,属性exec值设置为”brightness=current_brightness+5”;也就是说,第2个第二前置条件重复执行20次,执行表达式表征子目标值=当前亮度值+5,每一次的调整操作的时间间隔为10ms;直至当前亮度不小于95为止。
又或者,在关闭的处理中,设置lastScene为”close”时,
Scene Member1links引用为”desk_lamp”,Mapping元素中:precondition为”state==1&&current_brightness>=5”,属性timing值设置为10ms,属性repeat值设置为20,属性exec值设置为”brightness=current_brightness-5”;
Scene Member2的links引用为”desk_lamp”,Mapping元素中:precondition为”state==1&&current_brightness<=0”,属性timing值设置为10ms,属性repeat值设置为21,属性exec值设置为”state=0”。
具体的意思与前述打开台灯类似,只是将台灯亮度值每次降低,直至=0为止。
示例4、
结合图8-2所示,可以看出,在一个场景资源(Scene Collection)中,可以包含:一个或多个场景名称(Scene Names)、最近场景(Last Scene)、M个引用关系(Links)、场景成员(Scene Member)、场景值(Scene Value)元素、目标资源(Target Resource)。
其中,场景资源中的场景值(Scene Value)元素中还可以包括:最近场景的名称、属性名称、子目标值、第二前置条件(也表示为Precondition)、第二前置条件对应的判断结果值(Precondition Value)、第二定时器、以及重复次数。
因为每一个引用关系均对应一个Mapping,因此,每一个Mapping元素中包含有一个第二前置条件,将其称为第m个第二前置条件。所述第m个第二前置条件(Precondition)由关系表达式和逻辑表达式组成,可以将其表达为:“Magic string of EBNF format”具体内容根据实际情况进行设置,不进行穷举。另外,每一个Mapping还对应一个重复此时(repeat),以及执行表达式,由“exec”来表示,具体的表达式内容也在图中示意为“Magic string of EBNF format”。
具体可以包括:
根据第n个link所对应的场景成员n,引用的为目标对象;根据场景成员n中的场景值(Scene Value)元素包含的第m个第二前置条件对目标设备的当前状态进行判断,得到判断结果;
判断结果表征所述目标设备满足第m个第二前置条件时,所述第m个第二前置条件的值为真(Ture),判断基于第m个第二前置条件重复执行调整操作的次数是否达到预设的重复次数值,若没有,则基于执行表达式计算得到所述一个或多个属性中每一个属性所对应的子目标值,然后在Mapping元素中包含的第m个第二定时器对应的时间间隔内,将所述目标设备的包含的一个属性调整为对应的子目标值。
关于基于规则资源的处理与前述实施例均相同,这里不再赘述,本实施例仅关注与前述实施例不同之处。按照本示例提供的方案,以台灯为例,具体说明如下:
lastScene为”open”时,
Scene Member1的links引用为”desk_lamp”,Scene Member1的场景值(Scene Value)元素中:precondition为”state==0”,属性timing值设置为0ms,属性repeat值设置为1,属性exec值设置为”state=1”;也就是场景成员(Scene Member)1的引用为台灯(Desk_lamp),场景值(Scene Value)元素中包含的第1个第二前置条件表示台灯当前的状态为关闭,如果结果为ture,则基于第一定时器的时间间隔0,重复次数为1表示不进行重复,将台灯设置为开的状态;其中,repeat设置可以与上述相同,设置为1则不重复表示仅执行1次的意思,或者,可以设置repeat为0,表示仅执行一次,不重复,实际处理中灵活设置,这里不做限定。
Scene Member2links引用为”desk_lamp”,场景值(Scene Value)元素:precondition为”state==1&&current_brightness<=95”,属性timing值设置为10ms,属性repeat值设置为20,属性exec值设置为”brightness=current_brightness+5”;也就是说,第2个第二前置条件重复执行20次,执行表达式表征子目标值=当前亮度值+5,每一次的调整操作的时间间隔为10ms;直至当前亮度不小于95为止。
又或者,在关闭的处理中,设置lastScene为”close”时,
Scene Member1links引用为”desk_lamp”,场景值(Scene Value)元素中:precondition为”state==1&&current_brightness>=5”,属性timing值设置为10ms,属性repeat值设置为20,属性exec值设置为”brightness=current_brightness-5”;
Scene Member2的links引用为”desk_lamp”,场景值(Scene Value)元素中:precondition为”state==1&&current_brightness<=0”,属性timing值设置为10ms,属性repeat值设置为21,属性exec值设置为”state=0”。
具体的意思与前述打开台灯类似,只是将台灯亮度值每次降低,直至=0为止。
前述示例3、4针对一个属性的处理进行的说明。本实施例中还包含有多个属性的情况,在多个属性的情况下,与前述两个示例不同之处在于,增加了更多的子目标值的设置。
与示例3不同之处在于,Mapping元素中添加了多个属性名称,以及每一个属性名称分别对应的执行表达式。假设针对两个属性,分别称为第一属性、第二属性,在每一个第二前置条件对应的 Mapping中设置第一属性及其对应的执行表达式1,以及第二属性及其对应的执行表达式2。
与示例4不同之处仅在于,在Scene Value元素中增加了多个属性名称以及每一个属性对应的子目标值。比如,参见图9,Scene Value元素中设置了第一属性及其对应的执行表达式1,以及第二属性及其对应的执行表达式2。
还需要指出的是,不同属性的变化趋势可以相同也可以不同。比如,三个属性中,属性1在N次调整操作中递增;属性2在N次调整操作中递减;属性3在N次调整中先增加、后减少(还可以再增加)等等。这里不进行穷举。
实施例3、
所述预设信息中,包括:
执行脚本;
其中,所述执行脚本用于在运行时执行以下处理:判断所述目标设备是否满足对所述目标设备进行每一次调整所要满足的条件,以及基于N次调整中每一次调整的时间间隔将所述目标设备的一个或多个属性的属性值分别调整为对应的子目标值。
本实施例中所述执行脚本可以为“python or JavaScript or other script”
本实施例中所述预设信息,设置于所述场景资源中包含的映射关系元素中;
或者,
所述预设信息,设置于所述场景资源中包含的场景值元素中。
两种具体的示意图可以参见图10、11。在图10中示意出一种场景资源的样式,具体的描述与前述实施例均相同,不同之处在于,在Mapping元素中可以仅包含本次进行调整所对应的执行脚本;图11中与前述实施例不同之处在于,在Scene Value元素中设置了对应的执行脚本。
再进一步地,执行脚本可以理解为通过该接口可以调用的一段处理程序,基于该处理程序可以实现N次采用不同的前置条件进行状态判断,对目标设备进行N次属性值的调整操作,每一次调整操作都可以调整一个或多个属性分别对应的属性值;
或者,可以实现M次采用不同的前置条件进行状态判断,每次前置条件可以重复多次(根据实际情况进行设置),在没有达到该前置条件对应的重复次数值的时候,根据对应的一个或多个执行表达式计算得到一个或多个子目标值,对基于所述一个或多个子目标值对所述一个或多个属性值进行调整操作。
具体的执行脚本的字段或样式,本实施例中不做限定。
可见,通过采用上述方案,就能够通过在场景资源中增加预设信息,从而就能够控制目标设备的属性值由当前值向目标值进行渐变调整。如此,实现了不支持属性值渐变的设备能够通过多次的前置条件的判断以及属性值的调整实现属性值的渐变,并且,能够从当前值调整到目标值,避免了相关技术中仅能由一个固定值调整为另一个固定值所带来的使用体验不加问题。
本发明实施例还提供了一种设备管理装置,以解决前述问题,如图12所示,包括:
处理单元31,基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
具体来说,本实施例提供的方案可以应用于具备信息处理以及控制能力的设备侧,比如,可以为在智能家居系统中的管理设备。也就是说,前述设备管理装置可以设置与管理设备中,或者具备信息处理以及控制能力的设备中。
下面分多种实施例对前述方案的详细处理进行说明:
实施例4、
所述预设信息,包括:
N个第一前置条件,和/或N个第一定时器;
其中,所述N个第一前置条件中每一个第一前置条件对应一次调整操作,所述每一个第一前置条件包含有进行调整操作所要满足的条件;
所述N个第一定时器中每一个第一定时器对应一次调整操作,所述每一个第一定时器用于控制对应的调整操作的时间间隔。
和/或所述预设信息,还包括:
与所述N次调整操作分别对应的一个或多个属性中每一个属性的子目标值。
前述N可以为根据实际情况预先设置的值,比如,在目标对象为台灯的场景中,可以为了控制灯光慢慢变亮,将N设置的较大,比如20,那么就可以分20次分别控制对应的子目标值,以调整灯光属性。
另外,不同的第一前置条件所对应的第一定时器可以相同也可以不同。
不同的第一前置条件所对应的预设的子目标值不同。
处理单元31,在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第n个第一前置条件,得到第一判断结果;其中,n为大于等于1且小于等于N的整数;
所述第一判断结果表征所述目标设备的状态满足所述第n个第一前置条件,则在所述第n个第一前置条件对应的第n个第一定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值均调整为分别对应的子目标值。
其中,所述目标设备的状态可以根据目标设备的不同进行设置,比如,可以包括有目标设备是否开启、目标设备的当前属性值等等。
还需要指出的是,在执行前述第N次调整操作之前,还可以包括有针对目标设备的开、关状态进行判断,比如,第0个第一前置条件判断目标设备是否为关闭状态,如果是,则将目标设备的子目标值设置为“开启”。
前述预设信息,可以设置于所述场景资源中包含的映射关系(Mapping)元素中。或者,所述预设信息,设置于所述场景资源中包含的场景值(Scene value)元素中。
实施例5、
所述预设信息,包括:
M个第二前置条件,和/或M个第二定时器,和/或M个第二前置条件分别对应的执行表达式;其中,M为大于等于1且小于等于N的整数;
其中,所述第二前置条件为进行至少一次调整操作所要满足的条件;
所述第二定时器用于控制调整操作的时间间隔;
所述执行表达式为用于计算得到一个或多个属性中的每一个属性分别对应的子目标值的表达式。
和/或所述预设信息中,还包括:
所述M个第二前置条件中每一个第二前置条件对应的重复次数;
其中,所述重复次数为基于对应的第二前置条件对所述目标设备的一个或多个属性的属性值进行调整操作的次数。
与示例1不同之处在于,本实施例中增加了执行表达式,该执行表达式用于在每次执行同一个第二前置条件对应的调整操作的时候进行子目标值的计算,得到本次调整所对应的子目标值。关于每一个第二前置条件的重复使用的次数,通过其对应的重复次数来确定。
另外,不同的第二前置条件所对应的第二定时器可以相同也可以不同。
不同的第二前置条件基于对应的执行表达式计算得到的子目标值不同。另外,不同的第二前置条件中包含的执行表达式也可以相同或不同。
还需要指出的是,本实施例中,M个第二前置条件配合其对应的重复次数,能够完成N次调整操作。比如,M=3,N=10,那么第1个第二前置条件可以对应有3次调整操作,或者可以认为重复次数为2;第2个第二前置条件对应可以执行4次调整操作,对应的重复次数可以为3;第3个第二前置条件可以对应执行3次调整操作,那么重复次数可以为2。这里仅为示例,实际上N的数值以及M的数值的设置可以更多或更少,这里不进行穷举。
其中,所述处理单元31,在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第m个第二前置条件,并且判断基于所述第m个第二前置条件执行调整操作的次数是否达到对应的重复次数,得到第二判断结果;其中,n为大于等于1且小于等于N的整数;m为大于等于1的整数;
所述第二判断结果表征所述目标设备的状态满足所述第m个第二前置条件、并且基于所述第m个第二前置条件执行调整操作的次数未达到对应的重复次数,
则基于所述第m个第二前置条件对应的执行表达式计算得到本次调整所述一个或多个属性中每一个属性所对应的子目标值,在所述第m个第二前置条件对应的第m个第二定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值调整为所述对应的子目标值。
还需要指出的是,在执行前述第N次调整操作之前,还可以包括有针对目标设备的开、关状态进行判断,比如,第0个第一前置条件判断目标设备是否为关闭状态,如果是,则将目标设备的子目标值设置为“开启”。
前述预设信息,可以设置于所述场景资源中包含的映射关系(Mapping)元素中。或者,所述预设信息,设置于所述场景资源中包含的场景值(Scene value)元素中。
实施例6、
所述预设信息中,包括:
执行脚本;
其中,所述执行脚本用于在运行时执行以下处理:判断所述目标设备是否满足对所述目标设备进行每一次调整所要满足的条件,以及基于N次调整中每一次调整的时间间隔将所述目标设备的一个或多个属性的属性值分别调整为对应的子目标值。
本实施例中所述执行脚本可以为“python or JavaScript or other script”
本实施例中所述预设信息,设置于所述场景资源中包含的映射关系元素中;
或者,
所述预设信息,设置于所述场景资源中包含的场景值元素中。
可见,通过采用上述方案,就能够通过在场景资源中增加预设信息,从而就能够控制目标设备的属性值由当前值向目标值进行渐变调整。如此,实现了不支持属性值渐变的设备能够通过多次的前置条件的判断以及属性值的调整实现属性值的渐变,并且,能够从当前值调整到目标值,避免了相关技术中仅能由一个固定值调整为另一个固定值所带来的使用体验不佳问题。
图13是本申请实施例提供的前述装置的示意性结构图,装置可以为本实施例前述的终端设备或者网络设备。图13所示的装置包括处理器610,处理器610可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,如图13所示,还可以包括存储器620。其中,处理器610可以从存储器620中调用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器620可以是独立于处理器610的一个单独的器件,也可以集成在处理器610中。
可选地,如图13所示,通信设备600还可以包括收发器630,处理器610可以控制该收发器630与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。
其中,收发器630可以包括发射机和接收机。收发器630还可以进一步包括天线,天线的数量可以为一个或多个。
可选地,该通信设备600具体可为本申请实施例的网络设备,并且该通信设备600可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该通信设备600具体可为本申请实施例的终端设备、或者网络设备,并且该通信设备600可以实现本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。
图14是本申请实施例的芯片的示意性结构图。图14所示的芯片700包括处理器710,处理器710可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,如图14所示,芯片700还可以包括存储器720。其中,处理器710可以从存储器720中调用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器720可以是独立于处理器710的一个单独的器件,也可以集成在处理器710中。
可选地,该芯片700还可以包括输入接口730。其中,处理器710可以控制该输入接口730与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。
可选地,该芯片700还可以包括输出接口740。其中,处理器710可以控制该输出接口740与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。
可选地,该芯片可应用于本申请实施例中的网络设备,并且该芯片可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该芯片可应用于本申请实施例中的终端设备,并且该芯片可以实现本申请实施例的各个方法中由终端设备实现的相应流程,为了简洁,在此不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
应理解,本申请实施例的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述 的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
本申请实施例还提供了一种计算机可读存储介质,用于存储计算机程序。
可选的,该计算机可读存储介质可应用于本申请实施例中的网络设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该计算机可读存储介质可应用于本申请实施例中的终端设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机程序产品,包括计算机程序指令。
可选的,该计算机程序产品可应用于本申请实施例中的网络设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该计算机程序产品可应用于本申请实施例中的移动终端/终端设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机程序。
可选的,该计算机程序可应用于本申请实施例中的网络设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该计算机程序可应用于本申请实施例中的移动终端/终端设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,)ROM、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。

Claims (23)

  1. 一种设备管理方法,包括:
    基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
    其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
  2. 根据权利要求1所述的方法,其中,所述预设信息,包括:
    N个第一前置条件,和/或N个第一定时器;
    其中,所述N个第一前置条件中每一个第一前置条件对应一次调整操作,所述每一个第一前置条件包含有进行调整操作所要满足的条件;
    所述N个第一定时器中每一个第一定时器对应一次调整操作,所述每一个第一定时器用于控制对应的调整操作的时间间隔。
  3. 根据权利要求1或2所述的方法,其中,所述预设信息,包括:
    与所述N次调整操作分别对应的一个或多个属性中每一个属性的子目标值。
  4. 根据权利要求3所述的方法,其中,所述基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值,包括:
    在对目标设备的一个或多个属性的属性值进行第n次调整操作的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第n个第一前置条件,得到第一判断结果;其中,n为大于等于1且小于等于N的整数;
    所述第一判断结果表征所述目标设备的状态满足所述第n个第一前置条件,则在第n个第一定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值均调整为分别对应的子目标值。
  5. 根据权利要求1所述的方法,其中,所述预设信息,包括:
    M个第二前置条件,和/或M个第二定时器,和/或M个第二前置条件分别对应的一个或多个执行表达式;其中,M为大于等于1且小于等于N的整数;
    其中,所述第二前置条件为进行至少一次调整操作所要满足的条件;
    所述第二定时器用于控制调整操作的时间间隔;
    所述执行表达式为用于计算得到一个或多个属性中的每一个属性分别对应的子目标值的表达式。
  6. 根据权利要求5所述的方法,其中,所述预设信息中,还包括:
    所述M个第二前置条件中每一个第二前置条件对应的重复次数;
    其中,所述重复次数为基于对应的第二前置条件对所述目标设备的一个或多个属性的属性值进行调整操作的次数。
  7. 根据权利要求6所述的方法,其中,所述基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值,包括:
    在对目标设备的一个或多个属性的属性值进行第n次调整操作的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第m个第二前置条件,并且判断基于所述第m个第二前置条件执行调整操作的次数是否达到对应的重复次数,得到第二判断结果;其中,n为大于等于1且小于等于N的整数;m为大于等于1的整数;
    所述第二判断结果表征所述目标设备的状态满足所述第m个第二前置条件、并且基于所述第m个第二前置条件执行调整操作的次数未达到对应的重复次数,
    则基于所述第m个第二前置条件对应的一个或多个执行表达式计算得到一个或多个属性中的每一个属性分别对应的子目标值,在第m个第二定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值调整为所述对应的子目标值。
  8. 根据权利要求1所述的方法,其中,所述预设信息中,包括:
    执行脚本;
    其中,所述执行脚本用于在运行时执行以下处理:判断所述目标设备是否满足对所述目标设备进行每一次调整所要满足的条件,以及基于N次调整中每一次调整的时间间隔将所述目标设备的一 个或多个属性的属性值分别调整为对应的子目标值。
  9. 根据权利要求1-8任一项所述的方法,其中,所述预设信息,设置于所述场景资源中包含的映射关系元素中;
    或者,
    所述预设信息,设置于所述场景资源中包含的场景值元素中。
  10. 一种设备管理装置,包括:
    处理单元,基于场景资源中包含的预设信息,对目标设备的一个或多个属性的属性值进行N次调整操作,将所述目标设备的一个或多个属性中的每一个属性的属性值由当前值调整至目标值;N为大于等于2的整数;其中,所述目标设备的一个或多个属性中的每一个属性的属性值在所述N次调整操作中递增和/或递减;
    其中,所述预设信息用于指示对所述目标设备的一个或多个属性进行N次调整操作中每一次调整操作所要满足的条件,和/或用于指示N次调整操作中每一次调整操作的时间间隔,和/或用于确定N次调整操作中每一次调整操作对应的一个或多个属性中每一个属性对应的子目标值。
  11. 根据权利要求10所述的装置,其中,所述预设信息,包括:
    N个第一前置条件,和/或N个第一定时器;
    其中,所述N个第一前置条件中每一个第一前置条件对应一次调整操作,所述每一个第一前置条件包含有进行调整操作所要满足的条件;
    所述N个第一定时器中每一个第一定时器对应一次调整操作,所述每一个第一定时器用于控制对应的调整操作的时间间隔。
  12. 根据权利要求10或11所述的装置,其中,所述预设信息,包括:
    与所述N次调整操作分别对应的一个或多个属性中每一个属性的子目标值。
  13. 根据权利要求12所述的装置,其中,所述处理单元,在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第n个第一前置条件,得到第一判断结果;其中,n为大于等于1且小于等于N的整数;
    所述第一判断结果表征所述目标设备的状态满足所述第n个第一前置条件,则在第n个第一定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值均调整为分别对应的子目标值。
  14. 根据权利要求10所述的装置,其中,所述预设信息,包括:
    M个第二前置条件,和/或M个第二定时器,和/或M个第二前置条件分别对应的执行表达式;其中,M为大于等于1且小于等于N的整数;
    其中,所述第二前置条件为进行至少一次调整操作所要满足的条件;
    所述第二定时器用于控制调整操作的时间间隔;
    所述执行表达式为用于计算得到一个或多个属性中的每一个属性分别对应的子目标值的表达式。
  15. 根据权利要求14所述的装置,其中,所述预设信息中,还包括:
    所述M个第二前置条件中每一个第二前置条件对应的重复次数;
    其中,所述重复次数为基于对应的第二前置条件对所述目标设备的一个或多个属性的属性值进行调整操作的次数。
  16. 根据权利要求15所述的装置,其中,所述处理单元,在对目标设备的属性值进行第n次调整的过程中,判断所述目标设备的状态是否满足所述场景资源的预设信息中包含的第m个第二前置条件,并且判断基于所述第m个第二前置条件执行调整操作的次数是否达到对应的重复次数,得到第二判断结果;其中,n为大于等于1且小于等于N的整数;m为大于等于1的整数;
    所述第二判断结果表征所述目标设备的状态满足所述第m个第二前置条件、并且基于所述第m个第二前置条件执行调整操作的次数未达到对应的重复次数,
    则基于所述第m个第二前置条件对应的执行表达式计算得到本次调整所述一个或多个属性中每一个属性所对应的子目标值,在第m个第二定时器对应的时间间隔内,将所述目标对象的一个或多个属性中的每一个属性的属性值调整为所述对应的子目标值。
  17. 根据权利要求10所述的装置,其中,所述预设信息中,包括:
    执行脚本;
    其中,所述执行脚本用于在运行时执行以下处理:判断所述目标设备是否满足对所述目标设备进行每一次调整所要满足的条件,以及基于N次调整中每一次调整的时间间隔将所述目标设备的一个或多个属性的属性值分别调整为对应的子目标值。
  18. 根据权利要求10-17任一项所述的装置,其中,所述预设信息,设置于所述场景资源中包含的映射关系元素中;
    或者,
    所述预设信息,设置于所述场景资源中包含的场景值元素中。
  19. 一种设备管理装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,
    其中,该存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,执行如权利要求1-9任一项所述方法的步骤。
  20. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1-9中任一项所述的方法。
  21. 一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序使得计算机执行如权利要求1-9任一项所述方法的步骤。
  22. 一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求1-9中任一项所述的方法。
  23. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1-9中任一项所述的方法。
PCT/CN2019/130165 2019-12-30 2019-12-30 一种设备管理方法及装置 WO2021134335A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2022540402A JP2023512152A (ja) 2019-12-30 2019-12-30 機器管理方法及び装置
EP19958507.6A EP4071590A4 (en) 2019-12-30 2019-12-30 DEVICE MANAGEMENT METHOD AND APPARATUS
CN201980103081.9A CN114902169A (zh) 2019-12-30 2019-12-30 一种设备管理方法及装置
PCT/CN2019/130165 WO2021134335A1 (zh) 2019-12-30 2019-12-30 一种设备管理方法及装置
KR1020227025847A KR20220116304A (ko) 2019-12-30 2019-12-30 기기 관리 방법 및 장치
US17/809,805 US20220337447A1 (en) 2019-12-30 2022-06-29 Device management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/130165 WO2021134335A1 (zh) 2019-12-30 2019-12-30 一种设备管理方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/809,805 Continuation US20220337447A1 (en) 2019-12-30 2022-06-29 Device management method and apparatus

Publications (1)

Publication Number Publication Date
WO2021134335A1 true WO2021134335A1 (zh) 2021-07-08

Family

ID=76686189

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/130165 WO2021134335A1 (zh) 2019-12-30 2019-12-30 一种设备管理方法及装置

Country Status (6)

Country Link
US (1) US20220337447A1 (zh)
EP (1) EP4071590A4 (zh)
JP (1) JP2023512152A (zh)
KR (1) KR20220116304A (zh)
CN (1) CN114902169A (zh)
WO (1) WO2021134335A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108702389A (zh) * 2016-02-18 2018-10-23 相信环球有限公司 用于遥控iot(物联网)设备的架构
CN110035058A (zh) * 2019-02-28 2019-07-19 Oppo广东移动通信有限公司 资源请求方法、设备及存储介质
US20190291277A1 (en) * 2017-07-25 2019-09-26 Mbl Limited Systems and methods for operating a robotic system and executing robotic interactions

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6823223B2 (en) * 1999-12-30 2004-11-23 Microsoft Corporation Method and apparatus for providing distributed scene programming of a home automation and control system
ES2902680T3 (es) * 2012-07-24 2022-03-29 Building Robotics Inc Control de iluminación distribuido
JP2017123319A (ja) * 2016-01-08 2017-07-13 パナソニックIpマネジメント株式会社 照明システム及びコントローラ

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108702389A (zh) * 2016-02-18 2018-10-23 相信环球有限公司 用于遥控iot(物联网)设备的架构
US20190291277A1 (en) * 2017-07-25 2019-09-26 Mbl Limited Systems and methods for operating a robotic system and executing robotic interactions
CN110035058A (zh) * 2019-02-28 2019-07-19 Oppo广东移动通信有限公司 资源请求方法、设备及存储介质

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
AISSAOUI FRANCOIS; COOPERMAN GENE; MONTEIL THIERRY; TAZI SAID: "Smart scene management for IoT-based constrained devices using checkpointing", 2016 IEEE 15TH INTERNATIONAL SYMPOSIUM ON NETWORK COMPUTING AND APPLICATIONS (NCA), IEEE, 31 October 2016 (2016-10-31), pages 170 - 174, XP033020609, DOI: 10.1109/NCA.2016.7778613 *
See also references of EP4071590A4 *
WAN HAO: "Research on Resource Management Model of Internet of Things Based on OCF", CHINA MASTER’S THESES FULL-TEXT DATABASE, 15 October 2018 (2018-10-15), XP055827968, ISBN: 978-7-111-60788-5 *

Also Published As

Publication number Publication date
KR20220116304A (ko) 2022-08-22
CN114902169A (zh) 2022-08-12
US20220337447A1 (en) 2022-10-20
JP2023512152A (ja) 2023-03-24
EP4071590A4 (en) 2022-12-14
EP4071590A1 (en) 2022-10-12

Similar Documents

Publication Publication Date Title
US20220018567A1 (en) Data learning server and method for generating and using learning model thereof
US8665310B2 (en) Techniques and system for active lighting control in video conferencing
US20180283723A1 (en) Data learning server and method for generating and using learning model thereof
WO2020168761A1 (zh) 训练模型的方法和装置
CN107068044B (zh) 图像伽玛校正方法、扫描卡和显示系统
CN111367188B (zh) 智能家居的控制方法、装置、电子设备和计算机存储介质
CN111107651B (zh) 一种无线资源的调度方法及装置
US11118802B2 (en) Indoor environmental weighted preference management
US10627789B2 (en) User device, driving method of user device, apparatus for providing service and driving method of apparatus for providing service
CN104767984A (zh) 一种闪光灯色温调节方法及终端
CN113759736A (zh) 一种智能家居的控制方法、装置以及设备
CN110914766A (zh) 室内环境偏好管理
CN110673900A (zh) 一种灯光效果调节方法、智能终端及存储介质
WO2021134335A1 (zh) 一种设备管理方法及装置
US20210109754A1 (en) Context based power scheme selection
WO2023216995A1 (zh) 设备控制方法、装置、电子设备及存储介质
CN116774599A (zh) 基于知识图谱的智能设备控制方法、计算机装置和计算机可读存储介质
US20190013957A1 (en) Determining preferences in a sensor device platform
WO2021190261A1 (zh) 子网簇划分方法、网络设备及存储介质
CN114355782A (zh) 家居设备控制方法、装置、路由设备和存储介质
CN105487495A (zh) 一种智能家居控制方法和装置
WO2020043165A1 (zh) 应用程序设置方法、装置、计算机设备及可读存储介质
US10216200B2 (en) Devices, methods, and systems for water balancing
JP2020051702A (ja) 制御システム、コントローラ、制御方法及びプログラム
CN118444964A (zh) 设备端上云方法、系统、电子设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19958507

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022540402

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019958507

Country of ref document: EP

Effective date: 20220707

ENP Entry into the national phase

Ref document number: 20227025847

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE