CN117014243A - Device control method, device, electronic device and storage medium - Google Patents

Device control method, device, electronic device and storage medium Download PDF

Info

Publication number
CN117014243A
CN117014243A CN202210452043.8A CN202210452043A CN117014243A CN 117014243 A CN117014243 A CN 117014243A CN 202210452043 A CN202210452043 A CN 202210452043A CN 117014243 A CN117014243 A CN 117014243A
Authority
CN
China
Prior art keywords
wake
service
resource
detection
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210452043.8A
Other languages
Chinese (zh)
Inventor
黄代利
尹蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Jimi Photoelectric Co Ltd
Original Assignee
Yibin Jimi Photoelectric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yibin Jimi Photoelectric Co Ltd filed Critical Yibin Jimi Photoelectric Co Ltd
Priority to CN202210452043.8A priority Critical patent/CN117014243A/en
Publication of CN117014243A publication Critical patent/CN117014243A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses a device control method, a device, electronic equipment and a storage medium; the application can receive a wake-up resource creation request, wherein the wake-up resource creation request comprises wake-up parameters required for realizing a wake-up service mode; creating wake-up resources based on wake-up parameters, wherein the wake-up resources comprise perceived resources corresponding to the states of people in the detection target environment and wake-up service resources corresponding to wake-up services; when a wake-up service starting instruction is received, based on wake-up service resources, controlling first-class household equipment to execute corresponding wake-up services; based on the perceived resources, controlling a human body detection entity to detect the state of a person in the target environment; and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. In the application, a flexible and reasonable wake-up service is provided by creating wake-up resources to uniformly manage various devices. Therefore, the flexibility and the rationality of the wake-up service can be improved.

Description

Device control method, device, electronic device and storage medium
Technical Field
The application relates to the technical field of intelligent home, in particular to a device control method, a device, electronic equipment and a storage medium.
Background
Along with the increasingly improved living conditions, the intelligent home system also silently walks into the life of people. The intelligent home system utilizes advanced computer technology, network communication technology, comprehensive wiring technology and the like, integrates individual requirements according to the human engineering principle, organically combines all subsystems related to home life (such as security protection, light control, curtain control, gas valve control, information household appliances, scene linkage, floor heating and the like), and realizes the brand new home life experience of 'people' through networking comprehensive intelligent control and management.
However, in the prior art, the flexibility and rationality of the wake-up service mode is lacking.
Disclosure of Invention
The application provides a device control method, a device, an electronic device and a storage medium, which can promote flexibility and rationality of wake-up service.
The application provides a device control method, which comprises the following steps:
receiving a wake-up resource creation request, wherein the wake-up resource creation request comprises wake-up parameters required for realizing a wake-up service mode;
creating a wake-up resource based on wake-up parameters, wherein the wake-up resource comprises a perceived resource corresponding to the state of a person in a detection target environment and a wake-up service resource corresponding to wake-up service, the wake-up service resource comprises a device sub-resource corresponding to household equipment, the device sub-resource comprises a device type attribute corresponding to the device type of the household equipment, and the device type comprises a first type and a second type;
When a wake-up service starting instruction is received, based on wake-up service resources, controlling first-class household equipment to execute corresponding wake-up services;
based on the perceived resources, controlling a human body detection entity to detect the state of a person in the target environment;
and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.
The application also provides a device control apparatus, comprising:
the receiving and transmitting unit is used for receiving a wake-up resource creation request, wherein the wake-up resource creation request comprises wake-up parameters required for realizing a wake-up service mode;
the device comprises a creating unit, a wake-up unit and a processing unit, wherein the creating unit is used for creating wake-up resources based on wake-up parameters, the wake-up resources comprise sensing resources corresponding to the states of people in a detection target environment and wake-up service resources corresponding to wake-up services, the wake-up service resources comprise device sub-resources corresponding to household devices, the device sub-resources comprise device type attributes corresponding to the device types of the household devices, and the device types comprise a first type and a second type;
the execution control unit is used for controlling the first type of household equipment to execute corresponding wake-up service based on wake-up service resources when receiving a wake-up service starting instruction;
The detection control unit is used for controlling the human body detection entity to detect the state of a human in the target environment based on the perceived resource;
the execution control unit is further used for controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.
In some embodiments, the detection control unit is specifically configured to:
selecting at least one target detection entity from the human detection entities based on the perceived resource;
a human body detection service request is sent to a target detection entity, and the human body detection service request is used for requesting the target detection entity to detect the state of a person in a target environment;
receiving a detection response of the target detection entity;
when the detection response indicates that the target detection entity allows detection of the state of the person in the target environment, a detection process resource is created;
and controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource.
In some embodiments, the probing process resource includes a probing result attribute, and the probing control unit is specifically configured to:
receiving a human body detection report sent by a target detection entity;
and taking the detection result in the human body detection report as the value of the detection result attribute in the detection process resource, wherein the detection result is used for representing the state of the human body in the target environment.
In some embodiments, the wake-up service resource includes a service sub-resource, the service sub-resource includes a probe service result attribute, and the intelligent control is further configured to:
determining the value of the detection service result attribute according to the value of the detection result attribute in each detection process resource, wherein the value of the detection service result attribute is used for indicating that a person in a target environment is in a sleep state or an awake state;
based on the state of the person in the target environment and the wake-up service resource, controlling the second class of home devices to execute the corresponding wake-up service comprises the following steps:
when the value of the detection service result attribute indicates that a person in the target environment is in a sleep state, acquiring current environment information, and acquiring the value of the equipment state attribute of the second type of household equipment from equipment sub-resources corresponding to the second type of household equipment;
determining a current ambient brightness of an outdoor environment of the target environment based on the environment information;
and controlling the second type of household equipment to execute corresponding wake-up service based on the current environment brightness and the value of the equipment state attribute of the second type of household equipment.
In some embodiments, the value of the device state attribute indicates an effective movement length of the second type of home device, and controlling the second type of home device to perform a corresponding wake-up service based on the current ambient brightness and the value of the device state of the second type of home device includes:
Acquiring a brightness coefficient and preset awakening brightness corresponding to a target environment, wherein the brightness coefficient is used for representing the brightness change in the target environment when the second type of household equipment is opened for a unit length under the current environment brightness;
based on the current environment brightness, the brightness coefficient and the effective moving length, determining the brightness in the target environment to be adjusted to the preset awakening brightness, and determining the target moving length of the second type of household equipment;
and sending an opening instruction to the second type of household equipment, wherein the opening instruction is used for indicating the second type of household equipment to open the target moving length.
In some embodiments, the execution control unit is specifically configured to, based on the current ambient brightness, the brightness coefficient, and the effective movement length:
acquiring target brightness of a target environment;
determining a brightness difference value between the target brightness and the preset environment brightness;
determining maximum brightness corresponding to the effective moving length based on the current ambient brightness and the brightness coefficient;
if the maximum brightness is smaller than the brightness difference value, acquiring a value of the equipment state attribute of the first type of household equipment from the equipment sub-resource corresponding to the first type of household equipment, so as to control the first type of household equipment to adjust the brightness in the target environment to the preset awakening brightness based on the value of the equipment state attribute of the first type of household equipment;
And if the maximum brightness is greater than or equal to the brightness difference value, determining to adjust the brightness in the target environment to the preset awakening brightness based on the current environment brightness, the brightness coefficient and the effective moving length, and determining the target moving length of the second type of household equipment.
In some embodiments, the intelligent control device is further configured to:
and when the value of the detection service result attribute indicates that the person in the target environment is in an awake state, generating application notification information, wherein the application notification information is used for notifying the multimedia application that the person in the target environment is in the awake state so as to play the preset multimedia content.
In some embodiments, the execution control is specifically for:
screening at least one target detection entity meeting human body detection conditions from the perceived resources;
wherein the human detection condition includes at least one of: the value of the human body detection service attribute supported in the sensing resource indicates that the target detection entity supports detecting the state of a person in the target environment, the value of the position attribute and the detection range attribute in the sensing resource indicates that the detection range of the target detection entity can cover the target environment, and the value of the current state attribute in the sensing resource indicates that the target detection entity is in an idle state.
The application also provides an electronic device, which comprises a memory and a processor, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to perform steps in any of the device control methods provided by the present application.
The present application also provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of any of the device control methods provided by the present application.
In the application, the wake-up resource can be created based on the wake-up parameters required for realizing the wake-up service mode, wherein the wake-up resource comprises the perceived resource corresponding to the state of the person in the detection target environment and the wake-up service resource corresponding to the wake-up service; based on the awakening service resources, controlling the first household equipment to execute corresponding awakening service; then, based on the perceived resource, controlling a human body detection entity to detect the state of a person in the target environment; and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. I.e. the various devices are managed in a unified way by creating wake-up resources to provide a flexible and rational wake-up service. Therefore, the flexibility and the rationality of the wake-up service can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic diagram of a scenario of a device control method provided by the present application;
FIG. 1b is a schematic flow chart of a method of controlling a device according to the present application;
FIG. 1c is a schematic diagram of a logic structure of a perceived resource according to the present application;
FIG. 1d is a schematic diagram of a logic structure for waking up a service resource according to the present application;
FIG. 1e is a schematic diagram of a logical structure of a sub-resource policy provided by the present application;
FIG. 1f is a schematic diagram of a logic structure of a probe process resource according to the present application;
FIG. 2 is a schematic view of a device control apparatus according to the present application;
fig. 3 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The application provides a device control method, a device, an electronic device and a storage medium.
The device control device may be integrated in an electronic device, where the electronic device may be a terminal, a server, or other devices. The terminal can be a projector, an intelligent television, a laser television, a mobile terminal (such as a mobile phone), a tablet personal computer, an intelligent Bluetooth device, a notebook computer, a desktop computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers. In some embodiments, the server may also be implemented in the form of a terminal.
In some embodiments, the device control apparatus may also be integrated in a plurality of electronic devices, for example, the device control apparatus may be integrated in a mobile terminal and a projector, and the device control method of the present application is jointly implemented by the mobile terminal and the projector.
For example, as shown in fig. 1a, a schematic view of a scenario of the device control method provided in this embodiment is shown, where the scenario includes a mobile terminal and a display device. The display device includes: the system comprises an application layer, a service layer and a bottom network service layer, wherein the service layer comprises a service management entity (Service Management Entity, SME) for managing service requests and responses of equipment; an underlying network entity (Network Service Entity, NSE) is included in the underlying network service layer for providing underlying network support to the traffic layer. AE (Application entity) in the Application layer indicates AN Application entity providing relevant services to the user through the user interface, which runs on AN Application Node (AN), for example, a mobile terminal supporting gesture operation, and then the mobile terminal is AN Application Node, and AN Application program in the mobile terminal is AE. The device control method of the present application is not illustrated from the perspective of hardware, but rather from the perspective of software modules, the interaction may occur inside the device, or between the devices, and of course, communication and interaction inside the device or between the devices are independent of the support of the hardware.
In some embodiments, the display device may be a projector that, upon receiving a wake-up resource creation request, includes wake-up parameters required to implement a wake-up service mode; creating a wake-up resource under the SME based on the wake-up parameter, wherein the wake-up resource comprises a perceived resource corresponding to the state of a person in a detection target environment and a wake-up service resource corresponding to wake-up service, the wake-up service resource comprises a device sub-resource corresponding to household equipment, the device sub-resource comprises a device type attribute corresponding to the device type of the household equipment, and the device type comprises a first type and a second type; when a wake-up service starting instruction is received, based on wake-up service resources, controlling first-class household equipment to execute corresponding wake-up services; based on the perceived resources, controlling a human body detection entity to detect the state of a person in the target environment; and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. I.e. unified management of various devices by creating wake-up resources in the SME to provide flexible and rational wake-up services. Therefore, the flexibility and the rationality of the wake-up service can be improved.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
In this embodiment, a device control method is provided, as shown in fig. 1b, and a specific flow of the device control method may be as follows:
110. a wake resource creation request is received, the wake resource creation request including wake parameters required to implement a wake service mode.
Wherein the wakeup resource creation request may be used to request the projector to create a wakeup resource under the SME.
Alternatively, wake-up parameters may include, but are not limited to: the method comprises the steps of requesting the types of resources to be created, namely Resource type, AE_ID, first-Class household equipment single Class I Device, first-Class household equipment single Class II Device, wake up Time and target environment room. The first type home equipment list and the second type home equipment list refer to lists of home equipment with equipment types of a first type and a second type respectively, the specific types of the equipment types are not limited, and the embodiment only uses the first type and the second type for illustration. For example, the first type of home device may be a device, such as a light, that must perform a wake-up service when a wake-up time arrives. The second type of home equipment can be equipment, such as a curtain, which executes the wake-up service only when the wake-up time reaches and the instruction is received. The wake-up time may be applicable to various application scenarios, for example, 8 a.m. a day, 8 a.m. a workday and 10 a.m. a rest day, etc. The target environment can be bedroom and living room lamp indoor environments, the number of the target environments is not limited, and a wake-up service mode can be provided for a plurality of bedrooms at the same time.
For example, the wake-up parameters may be as shown in table 1 below:
TABLE 1 wake up parameters
In some embodiments, the user may set the wake service mode through AE1 of the mobile terminal (e.g., an application program for controlling the projector). After the setting is completed, the mobile terminal transmits a wakeup resource creation request to the SME of the projector through AE 1. Accordingly, the projector receives a wake-up resource creation request.
120. Creating a wake-up resource based on the wake-up parameter, wherein the wake-up resource comprises a perceived resource corresponding to the state of a person in a detection target environment and a wake-up service resource corresponding to wake-up service, the wake-up service resource comprises a device sub-resource corresponding to household equipment, the device sub-resource comprises a device type attribute corresponding to the device type of the household equipment, and the device type comprises a first type and a second type.
Wherein the wake-up resource may be used to support implementation of a wake-up service mode. Wake-up services may include turning on lights, opening curtains, playing preset multimedia content, etc.
The state of a person in the target environment may include the eye state of the person (open or closed eyes), the posture of the person (lying, sitting, standing, etc.), the breathing state of the person, and the like. Alternatively, detecting the status of the person in the target environment may be performed by a human detection entity (Human Detection Entity, HDE) and the detection result may be fed back to the SME; the HDE may be a logical entity or a physical entity, and the present embodiment is not limited. The number of the sensing resources is not limited, for example, one human body detecting entity may correspond to one sensing resource, or a plurality of human body detecting entities may correspond to one sensing resource. It should be noted that the SME may manage a plurality of human detection entities, each of which may support human detection services of one or more service types, where the service types may include, but are not limited to, eye states of a detected person, gestures of the detected person, respiratory states of the detected person, and so on; for example, one body detecting entity HDE1 is for detecting an eye state of a person, one body detecting entity HDE2 is for detecting a posture of a person, one body detecting entity HDE3 is for detecting a respiratory state of a person, and so on.
In some embodiments, as shown in fig. 1c, a logic structure diagram of a perceived resource according to this embodiment is provided. The attributes in the perceived Resource may include, but are not limited to, resource type, resource identification Resource ID, HDE identification HDE ID, supported human Detection service Supported service, current state of HDE Status, location of human Detection entity, detection scope Detection range.
The current state of the HDE may include, but is not limited to, the following: idle: indicating that the HDE is in an idle state; active: indicating that the HDE is in the process of sensing (i.e., is performing a human detection service).
For example, table 2 below shows attributes in a perceived resource.
Table 2 awareness of attributes in resources
Attributes of Description of the invention
Resource type Resource type, which may be set as "HDE"
Resource ID Resource identification for uniquely identifying a resource within an SME
HDE ID Identification of HDE
Supported service The human body detection service supported by the HDE
Status Current state of HDE
location The position of the human body detecting entity in the target environment
Detection range Detection range of the human body detection entity
In some embodiments, as shown in fig. 1d, a logic structure diagram of Wake up mode of Wake up service resources provided in this embodiment is shown. Attributes in the Wake up traffic Resource may include, but are not limited to, a Resource Type, a Resource identification Resource ID, an identification of traffic Type AE1 ID, a Wake up time, a target environment room. For example, the following table 3 shows attributes in the wake-up service resource.
Table 3 attributes in wakeup traffic resources
Attributes of Description of the invention
resource type The resource type can be set as Application-wake up "
resource ID Resource identification for uniquely identifying a resource within an SME
AE1 ID Identification of mobile terminal AE
wake up time Wake-up time, as may be set to 08:00
room Target environment, e.g. can be set as bedroom 1
Optionally, the wake-up service resource may further include a preset wake-up brightness attribute, where the preset wake-up brightness attribute is used to store a value of the preset wake-up brightness in the target environment corresponding to the wake-up service mode. The preset wake-up brightness can be set in a self-defined mode according to actual application conditions. For example, a user interface may be presented to the user to facilitate the user to set a preset wake-up brightness; a comfortable preset wake-up brightness can also be set according to practical application, for example, eyes are not dazzled when just open.
Optionally, the wake-up service resource may further include a device sub-resource corresponding to the home device. The number of the equipment sub-resources is not limited; the device type of the household equipment can also be determined, and if two types of household equipment exist, two equipment sub-resources are created; it may also be determined by how many home devices the user adds into the wake-up service mode, and how many device sub-resources are created if there are any home devices, such as the device sub-resource corresponding to the light 1 and the curtain 1, and the resource AE2 (the device sub-resource corresponding to the curtain 1) and the resource AE3 (the device sub-resource corresponding to the curtain 1) may be created, as shown in fig. 1 d.
The attributes in the Device child resources may include, but are not limited to, a Resource type, a Resource identification Resource ID, a Resource identification parent ID of the parent Resource, a Device Status, a Device type. For example, the following Table 4 shows the attributes in the device sub-resources.
Table 4 attributes in device sub-resources
Attributes of Description of the invention
resource type The resource type can be set as Application "
resource ID Resource identification, which can be used to uniquely identify a resource within an SME
parentID Resource identification for parent resources
Status Device status
Device type The Device type can be set as "Class I Device"
The device state may be used to represent a switching state, a parameter state, etc. of the home device. For example, the device Status attribute in sub-resource AE2 may represent the on-off Status (on-state or off-state) of the lamp, status may be set on or off, and the on-off Status may be represented by 0 and 1; the device status attribute may also have a lamp brightness parameter set. For another example, the device state attribute in the sub-resource AE3 may represent the on/off state of the window curtain, set Status as on or off, or represent the on/off state with 0 and 1, or set 0, 1, and 2, which respectively represent the window curtain in the fully-closed state, the semi-closed state, and the open state; the device status attribute may also set the movable length of the window covering, the remaining effective movement length, the moved length, etc. The device type attribute is used for indicating the device type of the home device corresponding to the device sub-resource.
Optionally, as shown in fig. 1d, the wake-up service resource may further include a service sub-resource. The service sub-resource may correspond to a service type of the human detection service; the attributes in the Service child resource may include, but are not limited to, a resource type resource, a resource identification resource ID, a Service category, a probe Service result, a resource identification component ID of a Parent resource, an identification Detection ID of a probe process resource, and a status of progress of a human probe Service.
For example, attributes in business sub-resources are shown in Table 5. The status of the human body detection service may include, but is not limited to, the following: the value is active, which indicates that the human body detection service is in progress; and the value is idle, which indicates that the human body detection service is not normally performed. The value of the probe traffic result attribute is used to indicate that a person in the target environment is in a sleep state or an awake state.
TABLE 5 Properties in service sub-resources
Attributes of Description of the invention
Resource Type Resource type, which may be set as "HDE"
Resource ID Resource identification, which can be used to uniquely identify a resource within an SME
Service category Service type of human body detection service
Service result Detection service result of human body detection service
Parent ID A resource identifier of the parent resource;
Detection ID identification of probe process resources associated with human probe services
Service status Status of progress of human body detection service
Optionally, as shown in fig. 1e, a schematic logic structure of a sub-resource policy is provided in this embodiment. The service child resource may further include child resource policy, where attributes in the child resource policy may include, but are not limited to, resource type resource, resource ID, parent ID, monitor object attribute, notification object notification URI, and notification content notification Content. For example, the attributes in child resources are shown in Table 6 below.
TABLE 6 Properties in sub-resource policy
Attributes of Description of the invention
resource type The resource type can be set as "policy"
resource ID Resource identification for uniquely identifying a asset within an SMESource(s)
Parent ID Resource identification for parent resources
attribute Monitoring objects, which may be set as addresses of attribute service results
Notification URI Notification object
Notification Content Notification content
The notification object is used for indicating the object of the sent application notification information; the value of the notification object attribute may be set to AE0 ID, and when the value of the attribute probe service result in the service sub-resource changes, application notification information is sent to the object indicated by AE0 ID. AE0 is an application entity in the application layer of the projector itself, and may be, for example, a multimedia application. The notification content is an optional attribute, and the notification content can be used for indicating the content in the application notification information; as such, the content may include: when the service result is set to 1, indicating that the user is in an awake state, and when the service result is set to 0, indicating that the user is in a sleep state; the content that may be included in the application notification information is a value of an attribute service result.
In some embodiments, the SME may send wake-up resource creation feedback create resource response to AE1, which may include information of the resource ID attribute of the resource identification in the wake-up resource.
130. When a wake-up service starting instruction is received, based on wake-up service resources, the first type of household equipment is controlled to execute corresponding wake-up service.
The wake-up service on instruction is used for instructing the projector to start the wake-up service mode. Optionally, the application layer of the projector may query the SME for a value in Wake up time attribute, and when detecting that the system time reaches the Wake up time, may play preset music corresponding to the Wake up service mode. And then the wake-up service on instruction can be sent to the SME, and accordingly, the SME receives the wake-up service on instruction.
In some embodiments, the wake-up service resource includes a device sub-resource corresponding to the home device, where the device sub-resource includes a device type attribute, and after receiving the wake-up service start instruction value, the method may include:
based on the wake-up service resource, the first type of home equipment is controlled to execute the corresponding wake-up service, and the value of the equipment type attribute corresponding to the first type of home equipment indicates that the equipment type of the first type of home equipment is the first type. Optionally, a first opening instruction may be sent to the first type of home device, and after the home device receives the first opening instruction, the wake-up service indicated by the first opening instruction is executed. For example, the wake service on instruction may indicate: the lamp 1 is turned on and the brightness is adjusted to x1. After receiving the wake-up service on command, the SME may send a first on command to the lamp 1, where the first on command is used to instruct that the wake-up service is that the lamp 1 is turned on, and the brightness is adjusted to x1. After the lamp 1 responds successfully, a response message is returned to the SME, the message contains a status code, and if the status code value is accepted, the attribute status under the sub-resource AE2 is updated as follows: on, luminance is x1.
140. Based on the perceived resources, the human detection entity is controlled to detect the state of the person in the target environment.
In some embodiments, controlling the human detection entity to detect the state of a person in the target environment based on the perceived resources may include, but is not limited to:
1) At least one target probing entity is selected from the human probing entities based on the perceived resources. Wherein the human detection condition includes at least one of: the value of the human body detection service attribute supported in the sensing resource indicates that the target detection entity supports detecting the state of a person in the target environment, the value of the position attribute and the detection range attribute in the sensing resource indicates that the detection range of the target detection entity can cover the target environment, and the value of the current state attribute in the sensing resource indicates that the target detection entity is in an idle state.
For example, a plurality of perceived resources with the resource type of HDE are searched locally, and target detection entities meeting human detection conditions are screened from the plurality of perceived resources. The target detection entity may include a first target HDE for detecting an eye state of a person, a second target HDE for detecting a posture of a person, a third target HDE for detecting a respiratory state of a person, and so on. Wherein, the human body detection condition may include: attribute Supported service indicates the human detection service supported; based on the values of the attribute location and the detection range, determining that the detection range can cover a target environment room corresponding to the wake-up service mode; the attribute status value of the perceived resource is idle.
2) And sending a human body detection service request to the target detection entity, wherein the human body detection service request is used for requesting the target detection entity to detect the state of a person in the target environment.
In some embodiments, the human probe service request is sent to the target probing entity according to the HDE ID of the target probing entity. The parameters SENSMeasParas, SENSMeasParas for performing the human body probe service carried in the human body probe service request may include one or more of the parameters in the following table 7:
TABLE 7 parameters in human body probe service request
Parameters (parameters) Description of the invention
Sensing method Detection method
Measurement period Detection period
Measurement duration Duration of detection
Measurement bandwidth Detection bandwidth
Measurement type Detected service type
3) A probe response of the target probe entity is received.
Optionally, after receiving the human body detection service request, the target detection entity may send a detection response to the SME, whether or not to allow detection of the state of the person in the target environment, and accordingly, the SME receives the detection response.
4) And when the detection response indicates that the target detection entity allows detection of the state of people in the target environment, a detection process resource is created.
In some embodiments, as shown in fig. 1f, a logic structure diagram of a sounding process resource provided in this embodiment is shown. Attributes in the probe process resources may include, but are not limited to, a Resource identification Resource ID, a probe process identification detection ID, a probe result Measurement result, a target probe entity identification HED ID, a human probe service type Supported service. For example, table 8 shows attributes in a probe process resource.
The detection ID of the human body detection process may be allocated to the SME, and the allocated identification is set to a value of the attribute detection ID of the resource detection 1. Alternatively, the assigned identifier may also be set to the value of the attribute detection ID of child resource service 1. The detection result is used to represent the status of the person in the target environment.
Table 8 probes attributes in process resources
Attributes of Description of the invention
Resource ID Resource identification for uniquely identifying a resource within an SME
detection ID Identification of human detection process
Measurement result Detection result
HED ID Identification of target detection entity performing human detection service
Supported service Service type of human body detection service supported
It should be noted that the human body detection services of different service types may create different detection process resources, i.e. the created detection process resources may include a plurality of detection process resources. For example, detection1, detection2, and detection3 may be used as detection progress resources for detecting the research state of the person, the posture of the person, and the respiratory state of the person, respectively.
5) Based on the detection process resource, controlling the human body detection entity to detect the state of the human body in the target environment.
In some embodiments, the detection process resource includes a detection result attribute, and controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource includes:
Receiving a human body detection report sent by a target detection entity; and taking the detection result in the human body detection report as the value of the detection result attribute in the detection process resource, wherein the detection result is used for representing the state of the human body in the target environment. For example, the SME receives the human body detection report sent by each target human body detection entity, and stores the detection result in the attribute measurement result of the detection process resource detection x corresponding to each target detection entity.
In some embodiments, the wake-up service resource includes a service sub-resource, the service sub-resource includes a detection service result attribute, and after taking the detection result in the human body detection report as the value of the detection result attribute in the detection process resource, the wake-up service resource further includes:
and determining the value of the detection service result attribute according to the value of the detection result attribute in each detection process resource, wherein the value of the detection service result attribute is used for indicating that the person in the target environment is in a sleep state or an awake state.
For example, the result of the human body detection service is calculated according to the attribute measurement result of each resource detection x, and the result is stored in the attribute service result of the sub-resource service 1. Wherein, the value of the attribute service result may be 0 and 1,1 indicates that the state of the person in the target environment is in the awake state, and 0 indicates that the state of the person in the target environment is in the sleep state. The specific calculation rule may be that the posture of the person is not a lying posture, and the eyes of the person are in an open state or a breathing state belongs to a breathing state under the condition of waking up, and then the person is in a waking up state, otherwise the person is in a sleeping state.
140. And controlling each household device to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.
In some embodiments, when the value of the probe traffic result attribute indicates that a person in the target environment is in an awake state, application notification information is generated, the application notification information being used to notify the multimedia application that the person in the target environment is in the awake state to play the preset multimedia content. The preset multimedia content can comprise weather forecast, news information, schedules and the like, and the category of the news information can be set by user definition or recommended according to user preference.
In some embodiments, controlling each home device to execute a corresponding wake-up service based on a status of a person in a target environment and wake-up service resources includes:
1) When the value of the detection service result attribute indicates that a person in the target environment is in a sleep state, current environment information is acquired, and the value of the equipment state attribute of the second type of household equipment is acquired from equipment sub-resources corresponding to the second type of household equipment.
The environmental information may include, among other things, location, season, time period, weather, etc.
2) Based on the environment information, a current ambient brightness of an outdoor environment of the target environment is determined.
For example, when the value of the probe traffic result attribute indicates that a person in the target environment is in a sleep state, the current environment brightness lux_0 of the outdoor environment is determined according to the region, season, time period, weather in which the projector is currently located.
Specifically, each day of different regions of different seasons may be divided into respective three time periods according to sunrise and sunset schedules (as shown in tables 9-1 and 9-2) of different regions of each season, for example: the three time periods of summer Sichuan include a first time period: average sunrise time x 1-x1+2/cosA, angle A is local geographic latitude; the second period of time: x1+2/cosA to average sunset time x2; third time period: average sunset time x2 to x1.
Environmental information-sunrise and sunset timetable (Sichuan Chengdu)
Date of day Sunrise Noon Sunset
2021-06-23 06:02 13:05 20:08
2021-06-24 06:02 13:05 20:08
2021-06-25 06:02 13:06 20:09
2021-06-26 06:03 13:06 20:09
Environmental information-sunrise and sunset schedule (Xinjiang)
Date of day Sunrise Noon Sunset
2021-06-23 06:27 13:11 20:55
2021-06-24 06:28 13:11 20:55
2021-06-25 06:28 13:12 20:55
2021-06-26 06:28 13:12 20:55
Taking curtains as an example, the brightness of the real outdoor environment in different seasons, different weather and different time periods in different areas is sampledObtaining a plurality of pieces of sampling data; taking summer as an example, one of the data formats is: sichuan-Chamber-Fu-Time-brightness lux_1 of outdoor environment. And training the brightness prediction model based on a plurality of pieces of sampling data, and inputting regions, seasons, weather and time periods in the current environment information into the brightness prediction model after training is finished, so that the current environment brightness lux_0 of the current outdoor environment in the time period can be predicted. Wherein, the brightness prediction model can be based on lenet5, and the size of the convolution kernel is combined with the actual situation of the scheme The size was modified to 4*1.
3) And controlling the second type of household equipment to execute corresponding wake-up service based on the current environment brightness and the value of the equipment state attribute of the second type of household equipment.
The value of the device type attribute corresponding to the second type of home devices indicates that the device type of the second type of home devices is the second type. The value of the device status attribute indicates the effective movement length of the second class of home devices.
In some embodiments, controlling the second type of home device to perform a corresponding wake-up service based on the current ambient brightness and the value of the device state attribute of the second type of home device includes:
1) And acquiring a brightness coefficient and preset awakening brightness corresponding to the target environment, wherein the brightness coefficient is used for representing the brightness change in the target environment when the second type of household equipment is opened for a unit length under the current environment brightness.
In some embodiments, the preset wake-up brightness may be obtained from a wake-up traffic resource.
Taking a curtain as an example, a curtain movement test can be performed: taking a curtain in a closed state as a starting point, and collecting the brightness lux of the outdoor environment Measuring Every time a curtain is opened by a unit length delta L, the brightness delta Lux in a target environment is increased Measuring Calculation ofObtaining luminance coefficient->
2) And determining the target moving length of the second type of household equipment by adjusting the brightness in the target environment to the preset awakening brightness based on the current environment brightness, the brightness coefficient and the effective moving length.
In some embodiments, 1) obtaining a target brightness of a target environment; determining a brightness difference value between the target brightness and the preset environment brightness; and determining the maximum brightness corresponding to the effective moving length based on the current ambient brightness and the brightness coefficient.
For example, the SME may be queried for the attribute status in the device sub-resource corresponding to curtain 1 in the target environment by obtaining the target brightness in the target environment and adjusting the maximum brightness that the curtain can increase. Based on the value of Status, the current switching state and the remaining effective movement length of the window covering 1 are determined. If the opening and closing state of the window shade 1 is the closed state and the remaining effective movement length is l1, the maximum brightness that the window shade can be adjusted to increase is: l1/unit length Δl β lux1.
2) If the maximum brightness is smaller than the brightness difference value, acquiring the value of the equipment state attribute of the first type of household equipment from the equipment sub-resource corresponding to the first type of household equipment, so as to control the first type of household equipment to adjust the brightness in the target environment to the preset awakening brightness based on the value of the equipment state attribute of the first type of household equipment.
Calculating a difference Deltalux between the target brightness of the target environment and the preset wake-up brightness l1 If the maximum brightness is greater than or equal to Deltalux l1 It is not effective to characterize the window covering in an ineffective adjustment mode, e.g., the outdoor environment is very dim, and to increase the brightness of the target environment by adjusting the window covering, i.e., the window covering is in an ineffective adjustment mode. Alternatively, if the window covering is in the deactivated adjustment mode, the window covering may be adjusted according to Δlux l1 And controlling the lamps in the target environment so that the brightness in the target environment reaches the preset wake-up brightness.
Specifically, the SME may query the attribute information of each lamp currently in the off state under the wake up mode resource, and return the attribute information (including the brightness parameter) of each lamp to the application layer, where the application layer selects the target lamp from the lamps in each off state, so that the brightness in the target environment is greater than or equal to the preset wake-up brightness. Further, after the target lamp responds to the starting instruction, a response message can be returned to the SME, the message contains a status code, and if the status code value is accepted, the attribute status of the resource corresponding to the target lamp is updated.
3) And if the maximum brightness is greater than or equal to the brightness difference value, determining to adjust the brightness in the target environment to the preset awakening brightness based on the current environment brightness, the brightness coefficient and the effective moving length, and determining the target moving length of the second type of household equipment.
For example, if the maximum brightness is less than Deltalux l1 Characterizing that brightness in a target environment can be adjusted to preset wake-up brightness through a curtain, namely determining that the curtain is in an effective adjustment mode, and at the moment, the target movement length is equal to Deltalux l1 /(β*lux1)。
Optionally, the maximum brightness that can be increased in adjusting the window covering is less than Deltalux l1 The representation of the window covering being fully open also fails to adjust the brightness within the target environment to a preset wake-up brightness. In this case, the window covering may be opened to increase a portion of the brightness, and then the control light may be controlled to increase the portion of the brightness that the control window covering cannot increase.
3) And sending an opening instruction to the second type of household equipment, wherein the opening instruction is used for indicating the second type of household equipment to open the target moving length.
The application layer of the projector may send an open command to the window covering 1 through the SME, for instructing the window covering 1 to open: Δlux l1 / (β*lux1)。
Curtain 1 according to the opening instruction, curtain 1 is opened delta lux l1 After/(β x 1), a response message may be returned to the SME, where the message includes status code, and if the status code value is accepted, the attribute status under sub-resource AE3 is updated. Therefore, the home equipment is dynamically controlled by detecting the state of the person in the target environment and the current environment brightness of the outdoor environment, so that the wake-up service can be flexibly executed, and the user experience is improved.
In some embodiments, the second type device may be controlled to execute the corresponding wake-up service first, and then the first type device may be controlled to execute the corresponding wake-up service.
In some embodiments, after the second class of devices are controlled to execute the corresponding wake-up service, the human detection entity is controlled to detect the state of the person in the target environment based on the perceived resource, and the value of the detection service result attribute is monitored. If the value of the detection service result attribute indicates that the person in the target environment is in the wake-up state, the user is indicated to be awakened, and a closing instruction can be sent to the second-class equipment to close the second-class equipment, so that the privacy of the user can be protected, and the user experience is improved.
As can be seen from the above, the application can create the wake-up resource based on the wake-up parameter required for realizing the wake-up service mode, wherein the wake-up resource comprises the perceived resource corresponding to the state of the person in the detection target environment and the wake-up service resource corresponding to the wake-up service; based on the awakening service resources, controlling the first household equipment to execute corresponding awakening service; then, based on the perceived resource, controlling a human body detection entity to detect the state of a person in the target environment; and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. Namely, the wake-up resource is created to uniformly manage various devices; when the wake-up time is reached, the lamp is controlled to be immediately turned on, and the brightness is adjusted to be proper; the human body detection entity is controlled to detect the state of a person in the target environment, and when the state of the person in the target environment is detected to be in a wake-up state, the projector is controlled to play weather, schedules and the like; when the state of the person in the target environment is detected to be in the sleep state, the curtain is controlled to be opened to the preset brightness, so that flexible and reasonable awakening service is provided. Therefore, the flexibility and the rationality of the wake-up service can be improved.
In order to better implement the above method, the present application further provides a device control apparatus, which may be specifically integrated in an electronic device, for example, in this embodiment, the method of the present application will be described in detail by taking the embodiment that the device control apparatus is specifically integrated in a projector as an example.
For example, as shown in fig. 2, the device control apparatus may include a transceiving unit 201, a creation unit 202, an execution control unit 203, and a probe control unit 204, as follows:
a transceiver unit 201, configured to receive a wake-up resource creation request, where the wake-up resource creation request includes wake-up parameters required for implementing a wake-up service mode;
a creating unit 202, configured to create a wake-up resource based on a wake-up parameter, where the wake-up resource includes a perceived resource corresponding to a state of a person in a detection target environment, and a wake-up service resource corresponding to a wake-up service, where the wake-up service resource includes a device sub-resource corresponding to a home device, and the device sub-resource includes a device type attribute corresponding to a device type of the home device, and the device type includes a first class and a second class;
the execution control unit 203 is configured to control, when receiving a wake-up service start instruction, the first type of home devices to execute a corresponding wake-up service based on a wake-up service resource;
A detection control unit 204, configured to control a human detection entity to detect a state of a person in the target environment based on the perceived resource;
the execution control unit 203 is further configured to control the second type of home device to execute a corresponding wake-up service based on the status of the person in the target environment and the wake-up service resource.
In some embodiments, the detection control unit 204 is specifically configured to:
selecting at least one target detection entity from the human detection entities based on the perceived resource;
a human body detection service request is sent to a target detection entity, and the human body detection service request is used for requesting the target detection entity to detect the state of a person in a target environment;
receiving a detection response of the target detection entity;
when the detection response indicates that the target detection entity allows detection of the state of the person in the target environment, a detection process resource is created;
and controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource.
In some embodiments, the probe process resource includes a probe result attribute, and the probe control unit 204 is specifically configured to:
receiving a human body detection report sent by a target detection entity;
and taking the detection result in the human body detection report as the value of the detection result attribute in the detection process resource, wherein the detection result is used for representing the state of the human body in the target environment.
In some embodiments, the wake-up service resource includes a service sub-resource, the service sub-resource includes a probe service result attribute, and the intelligent control device is further configured to:
determining the value of the detection service result attribute according to the value of the detection result attribute in each detection process resource, wherein the value of the detection service result attribute is used for indicating that a person in a target environment is in a sleep state or an awake state;
based on the state of the person in the target environment and the wake-up service resource, controlling the second class of home devices to execute the corresponding wake-up service comprises the following steps:
when the value of the detection service result attribute indicates that a person in the target environment is in a sleep state, acquiring current environment information, and acquiring the value of the equipment state attribute of the second type of household equipment from equipment sub-resources corresponding to the second type of household equipment;
determining a current ambient brightness of an outdoor environment of the target environment based on the environment information;
and controlling the second type of household equipment to execute corresponding wake-up service based on the current environment brightness and the value of the equipment state attribute of the second type of household equipment.
In some embodiments, the value of the device status attribute indicates an effective movement length of the second type of home device, and the execution control unit is specifically configured to 203:
Acquiring a brightness coefficient and preset awakening brightness corresponding to a target environment, wherein the brightness coefficient is used for representing the brightness change in the target environment when the second type of household equipment is opened for a unit length under the current environment brightness;
based on the current environment brightness, the brightness coefficient and the effective moving length, determining the brightness in the target environment to be adjusted to the preset awakening brightness, and determining the target moving length of the second type of household equipment;
and sending an opening instruction to the second type of household equipment, wherein the opening instruction is used for indicating the second type of household equipment to open the target moving length.
In some embodiments, based on the current ambient brightness, brightness coefficient and effective movement length, the execution control unit 203 is specifically configured to:
acquiring target brightness of a target environment;
determining a brightness difference value between the target brightness and the preset environment brightness;
determining maximum brightness corresponding to the effective moving length based on the current ambient brightness and the brightness coefficient;
if the maximum brightness is smaller than the brightness difference value, acquiring a value of the equipment state attribute of the first type of household equipment from the equipment sub-resource corresponding to the first type of household equipment, so as to control the first type of household equipment to adjust the brightness in the target environment to the preset awakening brightness based on the value of the equipment state attribute of the first type of household equipment;
And if the maximum brightness is greater than or equal to the brightness difference value, determining to adjust the brightness in the target environment to the preset awakening brightness based on the current environment brightness, the brightness coefficient and the effective moving length, and determining the target moving length of the second type of household equipment.
In some embodiments, the intelligent control device is further configured to:
and when the value of the detection service result attribute indicates that the person in the target environment is in an awake state, generating application notification information, wherein the application notification information is used for notifying the multimedia application that the person in the target environment is in the awake state so as to play the preset multimedia content.
In some embodiments, the execution control is specifically for:
screening at least one target detection entity meeting human body detection conditions from the perceived resources;
wherein the human detection condition includes at least one of: the value of the human body detection service attribute supported in the sensing resource indicates that the target detection entity supports detecting the state of a person in the target environment, the value of the position attribute and the detection range attribute in the sensing resource indicates that the detection range of the target detection entity can cover the target environment, and the value of the current state attribute in the sensing resource indicates that the target detection entity is in an idle state.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
The present application also provides an electronic device, in this embodiment, a detailed description will be given taking an example that the electronic device of this embodiment is a projector, for example, as shown in fig. 3, which shows a schematic structural diagram of the electronic device according to the present application, specifically:
the electronic device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, a power supply 303, an input module 304, and a communication module 305, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 3 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 301 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 302, and invoking data stored in the memory 302. In some embodiments, processor 301 may include one or more processing cores; in some embodiments, processor 301 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The electronic device also includes a power supply 303 that powers the various components, and in some embodiments, the power supply 303 may be logically connected to the processor 301 through a power management system to perform functions such as managing charging, discharging, and power consumption. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may also include an input module 304, which input module 304 may be used to receive entered numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The electronic device may also include a communication module 305, and in some embodiments the communication module 305 may include a wireless module, through which the electronic device may wirelessly transmit over a short distance, thereby providing wireless broadband internet access to the user. For example, the communication module 305 may be used to assist a user in e-mail, browsing web pages, accessing streaming media, and the like.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement functions in various device control methods.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the device control methods provided by the present application. For example, the instructions may perform steps in a device control method.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the intelligent control method provided in the above-described embodiment.
The steps in any one of the device control methods provided by the present application may be executed due to the instructions stored in the storage medium, so that the beneficial effects that any one of the device control methods provided by the present application may be achieved can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has outlined some of the more detailed description of the method, apparatus, electronic device and computer readable storage medium for controlling a device according to the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, and the description of the above examples is only for the purpose of aiding in the understanding of the method and core concept of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (11)

1. A method of controlling a device, the method comprising:
receiving a wake-up resource creation request, wherein the wake-up resource creation request comprises wake-up parameters required for realizing a wake-up service mode;
creating a wake-up resource based on the wake-up parameter, wherein the wake-up resource comprises a perceived resource corresponding to the state of a person in a detection target environment and a wake-up service resource corresponding to wake-up service, the wake-up service resource comprises a device sub-resource corresponding to household equipment, the device sub-resource comprises a device type attribute corresponding to the device type of the household equipment, and the device type comprises a first type and a second type;
When a wake-up service starting instruction is received, controlling the first type of household equipment to execute a corresponding wake-up service based on the wake-up service resource;
based on the perceived resource, controlling a human body detection entity to detect the state of a person in the target environment;
and controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.
2. The device control method of claim 1, wherein the controlling a human detection entity to detect the state of a person in the target environment based on the perceived resource comprises:
selecting at least one target detection entity from the human detection entities based on the perceived resource;
a human body detection service request is sent to the target detection entity, and the human body detection service request is used for requesting the target detection entity to detect the state of a person in the target environment;
receiving a detection response of the target detection entity;
when the detection response indicates that the target detection entity allows detection of the state of the person in the target environment, a detection process resource is created;
and controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource.
3. The device control method of claim 2, wherein the detection process resource includes a detection result attribute therein, and wherein the controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource includes:
receiving a human body detection report sent by the target detection entity;
and taking the detection result in the human body detection report as the value of the detection result attribute in the detection process resource, wherein the detection result is used for representing the state of the human in the target environment.
4. The apparatus control method as claimed in claim 3, wherein the wake-up service resource includes a service sub-resource, the service sub-resource includes a probe service result attribute, and the method further includes, after using the probe result in the human probe report as the value of the probe result attribute in the probe process resource:
determining the value of the detection service result attribute according to the value of the detection result attribute in each detection process resource, wherein the value of the detection service result attribute is used for indicating that a person in the target environment is in a sleep state or an awake state;
the controlling the second class of home devices to execute the corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource includes:
When the value of the detection service result attribute indicates that a person in the target environment is in a sleep state, current environment information is acquired, and the value of the equipment state attribute of the second type of household equipment is acquired from equipment sub-resources corresponding to the second type of household equipment;
determining a current ambient brightness of an outdoor environment of the target environment based on the environment information;
and controlling the second type of household equipment to execute corresponding wake-up service based on the current environment brightness and the value of the equipment state attribute of the second type of household equipment.
5. The device control method of claim 4, wherein the value of the device state attribute indicates an effective movement length of the second type of home device, and the controlling the second type of home device to perform the corresponding wake-up service based on the current ambient brightness and the value of the device state of the second type of home device comprises:
acquiring a brightness coefficient and preset awakening brightness corresponding to the target environment, wherein the brightness coefficient is used for representing the brightness change in the target environment when the second type of household equipment is opened for a unit length under the current environment brightness;
Determining, based on the current environment brightness, the brightness coefficient and the effective movement length, to adjust brightness in the target environment to a preset wake-up brightness, wherein the target movement length of the second type of household equipment;
and sending an opening instruction to the second type of household equipment, wherein the opening instruction is used for indicating the second type of household equipment to open the target moving length.
6. The device control method according to claim 5, wherein the determining, based on the current environment brightness, the brightness coefficient, and the effective movement length, to adjust the brightness in the target environment to a preset wake-up brightness, the target movement length of the second type of home device includes:
obtaining target brightness of the target environment;
determining a brightness difference value between the target brightness and the preset environment brightness;
determining the maximum brightness corresponding to the effective movement length based on the current ambient brightness and the brightness coefficient;
if the maximum brightness is smaller than the brightness difference value, acquiring a value of the equipment state attribute of the first type of household equipment from the equipment sub-resource corresponding to the first type of household equipment so as to control the first type of household equipment to adjust the brightness in the target environment to preset wake-up brightness based on the value of the equipment state attribute of the first type of household equipment;
And if the maximum brightness is greater than or equal to the brightness difference value, determining to adjust the brightness in the target environment to a preset wake-up brightness based on the current environment brightness, the brightness coefficient and the effective moving length, and determining the target moving length of the second type of household equipment.
7. The device control method according to claim 4, characterized in that the method further comprises:
and when the value of the detection service result attribute indicates that the person in the target environment is in an awake state, generating application notification information, wherein the application notification information is used for notifying the multimedia application that the person in the target environment is in the awake state so as to play the preset multimedia content.
8. The device control method of claim 2, wherein the selecting at least one target probing entity from the human probing entities based on the perceived resources comprises:
screening at least one target detection entity meeting human body detection conditions from the perceived resources;
wherein the human detection condition includes at least one of: the value of the human body detection service attribute supported in the sensing resource indicates that the target detection entity supports detecting the state of a person in a target environment, the value of the position attribute and the detection range attribute in the sensing resource indicates that the detection range of the target detection entity can cover the target environment, and the value of the current state attribute in the sensing resource indicates that the target detection entity is in an idle state.
9. An apparatus control device, comprising:
the receiving and transmitting unit is used for receiving a wake-up resource creation request, wherein the wake-up resource creation request comprises wake-up parameters required for realizing a wake-up service mode;
the creating unit is used for creating wake-up resources based on the wake-up parameters, wherein the wake-up resources comprise perceived resources corresponding to the states of people in a detection target environment and wake-up service resources corresponding to wake-up services, the wake-up service resources comprise equipment sub-resources corresponding to household equipment, the equipment sub-resources comprise equipment type attributes corresponding to equipment types of the household equipment, and the equipment types comprise a first type and a second type;
the execution control unit is used for controlling the first type of household equipment to execute corresponding awakening service based on the awakening service resource when receiving an awakening service starting instruction;
the detection control unit is used for controlling a human body detection entity to detect the state of a person in the target environment based on the perceived resource;
the execution control unit is further used for controlling the second type of household equipment to execute corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.
10. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the device control method according to any one of claims 1 to 8.
11. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the device control method of any one of claims 1 to 8.
CN202210452043.8A 2022-04-27 2022-04-27 Device control method, device, electronic device and storage medium Pending CN117014243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210452043.8A CN117014243A (en) 2022-04-27 2022-04-27 Device control method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210452043.8A CN117014243A (en) 2022-04-27 2022-04-27 Device control method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117014243A true CN117014243A (en) 2023-11-07

Family

ID=88571346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210452043.8A Pending CN117014243A (en) 2022-04-27 2022-04-27 Device control method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117014243A (en)

Similar Documents

Publication Publication Date Title
CN106605447B (en) Method, system, and medium for predictive lighting from a screen based on a user profile
US10443879B2 (en) HVAC control system encouraging energy efficient user behaviors in plural interactive contexts
Wei et al. A deep-reinforcement-learning-based recommender system for occupant-driven energy optimization in commercial buildings
US11941969B2 (en) Systems and methods for processing coexisting signals for rapid response to user input
US9265001B1 (en) Systems and methods for altering a state of a system using a remote device that processes gestures
CN104110787B (en) Method and system for controlling air conditioner
US10237390B2 (en) Intelligent notification device and intelligent notification method
CN103501309A (en) Internet of Things smart home management and control system based on digital television terminal
US20210018212A1 (en) Cloud-based AI powered indoor environment system and method for smart climate technology control for buildings
CN111077785A (en) Awakening method, awakening device, terminal and storage medium
CN110579003A (en) control method and device of intelligent air conditioner, server and storage medium
Nizamic et al. GreenMind-An architecture and realization for energy smart buildings
EP3054628A1 (en) Systems and methods for altering a state of a system using a remote device that processes gestures
Wang et al. Research on intelligent lighting distributed control algorithm based on sensor network technology
CN117014243A (en) Device control method, device, electronic device and storage medium
US20230341825A1 (en) Dynamically optimized environmental control system (ecs)
CN111623496B (en) Radiation air conditioner control system, control method and storage medium
US20210090151A1 (en) Method and apparatus for monitoring usage of a lighting system
Nam et al. Intelligent context-aware energy management using the incremental simultaneous method in future wireless sensor networks and computing systems
Casado-Mansilla et al. GreenSoul: An IoT platform for empowering users’ energy efficiency in public buildings
KR20140025050A (en) System for energy saving and method thereof
Santo et al. Open up the building-Architectural relevance of building-users and their participations
CN114963292A (en) Heating system control method, device, equipment and storage medium
CN114237062A (en) Device control method and apparatus, electronic device, and medium
Moshnyaga Practical Guidelines for Design of Human-in-the-Loop Systems: Lessons Learned

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination