Device control method and apparatus, electronic device, and storage medium

By creating wake-up resources and control wake-up services for home devices, the flexibility and rationality of wake-up service models in smart home systems are resolved. This enables flexible device control based on the environment and user status, thereby improving the effectiveness of wake-up services.

CN117014243BActive Publication Date: 2026-03-27YIBIN XGIMI OPTOELECTRONIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The wake-up service mode in existing smart home systems lacks flexibility and rationality, and cannot flexibly control devices according to the environment and user status.

Method used

By creating wake-up resources, including sensory resources for detecting the state of people in the target environment and wake-up service resources, the first and second types of home devices are controlled to perform corresponding wake-up services, and the device state is adjusted according to the ambient brightness and user state to provide flexible and reasonable wake-up services.

Benefits of technology

It enables flexible device control based on environment and user status, improving the flexibility and rationality of wake-up services, ensuring users wake up at the appropriate time and providing a personalized wake-up experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014243B_ABST
    Figure CN117014243B_ABST
Patent Text Reader

Abstract

The application discloses a device control method and device, an electronic device and a storage medium; the application can receive a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required for implementing a wake-up service mode; a wake-up resource is created based on the wake-up parameters, the wake-up resource including a perception resource corresponding to a state of a person in a target environment, and a wake-up service resource corresponding to a wake-up service; when a wake-up service start instruction is received, the first type of home device is controlled to execute the corresponding wake-up service based on the wake-up service resource; the state of the person in the target environment is detected by a human body detection entity based on the perception resource; and the second type of home device is controlled to execute the corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. In the application, various devices are uniformly managed by creating wake-up resources to provide flexible and reasonable wake-up services. Thus, the application can improve the flexibility and reasonableness of the wake-up service.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of smart home, in particular to a device control method and device, an electronic device and a storage medium. BACKGROUND

[0002] With the improvement of living conditions, smart home systems have quietly entered people's lives. The smart home system is to use advanced computer technology, network communication technology, comprehensive wiring technology, etc., according to the principle of ergonomics, and combine the individual needs to organically combine various subsystems related to home life (such as security, light control, curtain control, gas valve control, information home appliances, scene linkage, floor heating, etc.) together, through networked comprehensive intelligent control and management, to realize the "people-oriented" new home life experience.

[0003] However, the existing technology lacks flexibility and rationality in the wake-up service mode. SUMMARY

[0004] The present application provides a device control method and device, an electronic device and a storage medium, which can improve the flexibility and rationality of the wake-up service.

[0005] The present application provides a device control method, comprising:

[0006] receiving a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required to implement a wake-up service mode;

[0007] creating a wake-up resource based on the wake-up parameters, the wake-up resource including a perception resource corresponding to a state of a person in a target environment, a wake-up service resource corresponding to a wake-up service, the wake-up service resource including a device sub-resource corresponding to a home device, the device sub-resource including a device type attribute corresponding to a device type of the home device, the device type including a first type and a second type;

[0008] when a wake-up service start instruction is received, controlling the first type of home device to perform a corresponding wake-up service based on the wake-up service resource;

[0009] controlling a human body detection entity to detect the state of the person in the target environment based on the perception resource;

[0010] controlling the second type of home device to perform a corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.

[0011] The present application also provides a device control device, comprising:

[0012] a transceiver unit configured to receive a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required to implement a wake-up service mode;

[0013] The creating unit is configured to create a wake-up resource based on the wake-up parameter, the wake-up resource including a perception resource corresponding to a state of a person in a target environment, and a wake-up service resource corresponding to a wake-up service, the wake-up service resource including a device sub-resource corresponding to a home device, the device sub-resource including a device type attribute corresponding to a device type of the home device, the device type including a first type and a second type;

[0014] The execution control unit is configured to, when receiving a wake-up service start instruction, control the first type of home device to perform a corresponding wake-up service based on the wake-up service resource.

[0015] The detection control unit is configured to control a human body detection entity to detect the state of the person in the target environment based on the perception resource.

[0016] The execution control unit is further configured to control the second type of home device to perform a corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.

[0017] In some embodiments, the detection control unit is specifically configured to:

[0018] select at least one target detection entity from the human body detection entity based on the perception resource;

[0019] send a human body detection service request to the target detection entity, the human body detection service request being used to request the target detection entity to detect the state of the person in the target environment;

[0020] receive a detection response of the target detection entity;

[0021] create a detection process resource when the detection response indicates that the target detection entity allows the state of the person in the target environment to be detected;

[0022] control the target detection entity to detect the state of the person in the target environment based on the detection process resource.

[0023] In some embodiments, the detection process resource includes a detection result attribute, and the detection control unit is specifically configured to:

[0024] receive a human body detection report sent by the target detection entity;

[0025] take a detection result in the human body detection report as a value of the detection result attribute in the detection process resource, the detection result being used to indicate the state of the person in the target environment.

[0026] In some embodiments, the wake-up service resource includes a service sub-resource, the service sub-resource including a detection service result attribute, and the intelligent control is further configured to:

[0027] According to the value of the detection result attribute in each detection process resource, the value of the detection service result attribute is determined, and the value of the detection service result attribute is used to indicate that the person in the target environment is in a sleep state or a wake-up state.

[0028] Based on the state of the person in the target environment and the wake-up service resource, the second type of home device is controlled to execute the corresponding wake-up service, including:

[0029] When the value of the detection service result attribute indicates that the person in the target environment is in a sleep state, the current environment information is obtained, and the value of the device state attribute of the second type of home device is obtained from the device sub-resource corresponding to the second type of home device.

[0030] Based on the environment information, the current environment brightness of the outdoor environment of the target environment is determined.

[0031] Based on the current environment brightness and the value of the device state attribute of the second type of home device, the second type of home device is controlled to execute the corresponding wake-up service.

[0032] In some embodiments, the value of the device state attribute indicates the effective moving length of the second type of home device, and based on the current environment brightness and the value of the device state of the second type of home device, the second type of home device is controlled to execute the corresponding wake-up service, including:

[0033] The brightness coefficient and the preset wake-up brightness corresponding to the target environment are obtained, and the brightness coefficient is used to represent the change in brightness in the target environment when the second type of home device opens a unit length under the current environment brightness.

[0034] Based on the current environment brightness, the brightness coefficient, and the effective moving length, the target moving length of the second type of home device is determined when the brightness in the target environment is adjusted to the preset wake-up brightness.

[0035] An opening instruction is sent to the second type of home device, and the opening instruction is used to instruct the second type of home device to open the target moving length.

[0036] In some embodiments, based on the current environment brightness, the brightness coefficient, and the effective moving length, the control unit is specifically configured to:

[0037] Obtain the target brightness of the target environment;

[0038] Determine the brightness difference between the target brightness and the preset wake-up brightness;

[0039] Based on the current environment brightness and the brightness coefficient, the maximum brightness corresponding to the effective moving length is determined.

[0040] If the maximum brightness is less than the brightness difference value, a value of a device state attribute of the first type of home device is acquired from a device sub-resource corresponding to the first type of home device, so as to control the first type of home device to adjust the brightness in the target environment to the preset wake-up brightness based on the value of the device state attribute of the first type of home device.

[0041] If the maximum brightness is greater than or equal to the brightness difference value, a target moving length of the second type of home device is determined when adjusting the brightness in the target environment to the preset wake-up brightness based on the current environment brightness, the brightness coefficient, and the effective moving length.

[0042] In some embodiments, the smart control device is further configured to:

[0043] When the value of the detection service result attribute indicates that the person in the target environment is in a wake-up state, application notification information is generated, and the application notification information is used to notify the multimedia application that the person in the target environment is in a wake-up state to play preset multimedia content.

[0044] In some embodiments, the performing control is specifically configured to:

[0045] At least one target detection entity that meets a human body detection condition is screened from the perception resource.

[0046] The human body detection condition includes at least one of the following: a value of a supported human body detection service attribute in the perception resource indicates that the target detection entity supports detecting the state of the person in the target environment, values of a location attribute and a detection range attribute in the perception resource indicate that the detection range of the target detection entity can cover the target environment, and a value of a current state attribute in the perception resource indicates that the target detection entity is in an idle state.

[0047] The present application also provides an electronic device, including a memory and a processor, the memory stores a plurality of instructions; the processor loads the instructions from the memory to execute the steps in any device control method provided by the present application.

[0048] The present application also provides a computer-readable storage medium, the computer-readable storage medium stores a plurality of instructions, the instructions are suitable for being loaded by a processor to execute the steps in any device control method provided by the present application.

[0049] In the present application, a wake-up resource can be created based on wake-up parameters required for implementing a wake-up service mode, the wake-up resource including a perception resource corresponding to a state of a person in a target environment and a wake-up service resource corresponding to a wake-up service; a first type of home device is controlled to perform a corresponding wake-up service based on the wake-up service resource; then a human body detection entity is controlled to detect the state of the person in the target environment based on the perception resource; and a second type of home device is controlled to perform a corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource. That is, various devices are uniformly managed by creating a wake-up resource to provide flexible and reasonable wake-up services. Thus, the present application can improve the flexibility and reasonableness of wake-up services. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort based on these drawings.

[0051] Figure 1a is a scene schematic diagram of a device control method provided by the present application;

[0052] Figure 1b is a flow schematic diagram of a device control method provided by the present application;

[0053] Figure 1c is a logical structure schematic diagram of a perception resource provided by the present application;

[0054] Figure 1d is a logical structure schematic diagram of a wake-up service resource provided by the present application;

[0055] Figure 1e is a logical structure schematic diagram of a sub-resource policy provided by the present application;

[0056] Figure 1f is a logical structure schematic diagram of a detection process resource provided by the present application;

[0057] Figure 2 is a structure schematic diagram of a device control apparatus provided by the present application;

[0058] Figure 3 is a structure schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0059] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0060] This application provides a device control method, apparatus, electronic device, and storage medium.

[0061] Specifically, the device control unit can be integrated into an electronic device, which can be a terminal, server, or other similar device. The terminal can be a projector, smart TV, laser TV, mobile terminal (such as a mobile phone), tablet computer, smart Bluetooth device, laptop computer, desktop computer, or other similar devices. The server can be a single server or a server cluster consisting of multiple servers. In some embodiments, the server can also be implemented in the form of a terminal.

[0062] In some embodiments, the device control device can also be integrated into multiple electronic devices. For example, the device control device can be integrated into a mobile terminal and a projector, and the mobile terminal and the projector can jointly implement the device control method of this application.

[0063] For example, such as Figure 1a The diagram illustrates a scenario of the device control method provided in this embodiment, which includes a mobile terminal and a display device. The display device comprises an application layer, a service layer, and a lower-level network service layer. The service layer includes a Service Management Entity (SME) for managing the device's service requests and responses. The lower-level network service layer includes a Network Service Entity (NSE) for providing lower-level network support to the service layer. In the application layer, an application entity (AE) represents an application entity that provides related services to the user through a user interface. It runs on an application node (AN), such as a mobile terminal that supports gesture operations; in this case, the mobile terminal is the application node, and the application within the mobile terminal is the AE. This embodiment does not describe the device control method from a hardware perspective, but rather from a software module perspective. Interaction can occur within the device or between devices; naturally, communication and interaction within or between devices require hardware support.

[0064] In some embodiments, the display device can be a projector, and after receiving a wake-up resource creation request, the wake-up resource creation request includes wake-up parameters required to implement a wake-up service mode; based on the wake-up parameters, a wake-up resource is created under the SME, the wake-up resource includes a perception resource corresponding to a state of a person in a target environment, a wake-up service resource corresponding to a wake-up service, the wake-up service resource includes a device sub-resource corresponding to a home device, 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 type and a second type; when a wake-up service start instruction is received, based on the wake-up service resource, the first type of home device is controlled to execute a corresponding wake-up service; based on the perception resource, a human body detection entity is controlled to detect the state of the person in the target environment; and based on the state of the person in the target environment and the wake-up service resource, the second type of home device is controlled to execute a corresponding wake-up service. That is, various devices are uniformly managed by creating a wake-up resource in the SME to provide flexible and reasonable wake-up services. Thus, the present scheme can improve the flexibility and reasonableness of the wake-up service.

[0065] The following will be described in detail respectively. It should be noted that the serial numbers of the following embodiments are not regarded as a limitation on the preferred order of the embodiments.

[0066] In the present embodiment, a device control method is provided, as shown in the figure, and the specific process of the device control method can be as follows: Figure 1b

[0067] 110、Receiving a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required to implement a wake-up service mode.

[0068] The wake-up resource creation request can be used to request the projector to create a wake-up resource under the SME.

[0069] ​Optionally, the wake-up parameter can include, but is not limited to, a resource type Resource type requested to be created, an AE ID, a first-class home device list Class I Device, a second-class home device list Class II Device, a wake-up time wake up Time, and a target environment room. The first-class home device list and the second-class home device list refer to lists of home devices of first type and second type respectively, and the specific number of device types is not limited, and the present embodiment only takes the first type and the second type as examples. For example, the first-class home device can be a device that must perform a wake-up service when the wake-up time arrives, such as a lamp. The second-class home device can be a device that performs a wake-up service after receiving an instruction when the wake-up time arrives, such as a curtain. The wake-up time can be applied to various application scenarios, for example, it can be 8 o'clock in the morning every day, it can be 8 o'clock in the morning on weekdays and 10 o'clock in the morning on weekends, etc. The target environment can be a bedroom, a living room, an indoor environment, and the number of target environments is not limited, i.e., multiple bedrooms can be provided with a wake-up service mode at the same time.

[0070] For example, the wake-up parameter can be as shown in Table 1:

[0071] Table 1 Wake-up parameter

[0072] Parameter Explanation Value Resource type Type of the resource to be created Application / (Wake up mode) AE_ID Identification of AE1 Abcd1234 Service_ID Identification of the service type wake up mode Class I Device First class of home device list Each first class of home device corresponding AE ID Class II Device Second class of home device list Each second class of home device corresponding AE ID wake up time Wake-up time e.g. 08:00 room Target environment to which the wake-up mode applies e.g. bedroom

[0073] In some embodiments, a user can set a wake-up service mode through an AE1 (such as an application program for controlling a projector) of a mobile terminal. After the setting is completed, the mobile terminal sends a wake-up resource creation request to an SME of the projector through the AE1. Correspondingly, the projector receives the wake-up resource creation request.

[0074] 120, create a wake-up resource based on the wake-up parameter, the wake-up resource including a perception resource corresponding to a state of a person in a target environment, a wake-up service resource corresponding to a wake-up service, and the wake-up service resource including a device sub-resource corresponding to a home device, and the device sub-resource including a device type attribute corresponding to a device type of the home device, and the device type including a first type and a second type.

[0075] The wake-up resource can be used to support the implementation of a wake-up service mode. The wake-up service can include turning on a lamp, opening a curtain, playing preset multimedia content, etc.

[0076] The state of a person in the target environment can include their eye state (open or closed), posture (lying down, sitting, standing, etc.), and breathing state. Optionally, the detection of the state of a person in the target environment can be performed by a Human Detection Entity (HDE), and the detection results can be fed back to the SME. The HDE can be a logical entity or a physical entity, and this embodiment is not limited. The number of sensing resources is not limited; for example, one human detection entity can correspond to one sensing resource, or multiple human detection entities can correspond to one sensing resource. It should be noted that the SME can manage multiple human detection entities, and each human detection entity can support one or more types of human detection services. The service types can include, but are not limited to, detecting the state of a person's eyes, detecting the posture of a person, detecting the breathing state of a person, etc. For example, one human detection entity HDE1 is used to detect the state of a person's eyes, one human detection entity HDE2 is used to detect the posture of a person, one human detection entity HDE3 is used to detect the breathing state of a person, and so on.

[0077] In some embodiments, such as Figure 1c The diagram shown is a logical structure diagram of a sensing resource provided in this embodiment. The attributes of the sensing resource may include, but are not limited to, resource type, resource ID, HDE ID, supported human detection service, HDE current status, location of the human detection entity, and detection range.

[0078] The current state of the HDE can include, but is not limited to, the following: Idle: indicates that the HDE is in an idle state; Active: indicates that the HDE is in the sensing process (i.e., is performing human detection services).

[0079] For example, Table 2 below shows the attributes in the perceived resources.

[0080] Table 2 Attributes of Sensing Resources

[0081] Attribute Explanation Resource type Resource type, which can be set as "HDE" Resource ID Resource identification, which is used to uniquely identify a resource in SME HDE ID Identification of HDE Supported service Human detection service supported by this HDE Status Current status of HDE location Location of this human detection entity in the target environment Detection range Detection range of this human detection entity

[0082] In some embodiments, such as Figure 1d The diagram shown is a logical structure diagram of a wake-up service resource provided in this embodiment. The attributes of the wake-up service resource may include, but are not limited to, ResourceType, ResourceID, Service Type Identifier (AE1 ID), Wake-up Time, and Target Environment (room). For example, Table 3 below shows the attributes of the wake-up service resource.

[0083] Table 3 Attributes in wake-up service resource

[0084] Attribute Explanation resource type Resource type, which can be set as "Application-wake up " resource ID Resource identification, which is used to uniquely identify a resource in SME AE1 ID Identification of mobile terminal AE wake up time Wake-up time, which can be set as 08:00 room Target environment, which can be set as bedroom 1

[0085] Optionally, the wake-up service resource can further include a preset wake-up brightness attribute, which is used to store a value of a preset wake-up brightness in a target environment corresponding to the wake-up service mode. The preset wake-up brightness can be set according to actual application conditions. For example, a user interface can be displayed to the user to facilitate the user to set the preset wake-up brightness; or a comfortable preset wake-up brightness can be set according to actual application, for example, the human eye is not dazzling when it is just opened.

[0086] Optionally, the wake-up service resource can further include device sub-resources corresponding to the home devices. The number of the device sub-resources is not limited; the device sub-resources can be determined by the device types of the home devices, for example, two device sub-resources are created if there are two types of home devices; or the device sub-resources can be determined by the home devices added to the wake-up service mode, for example, if there are a lamp 1 and a curtain 1, then resource AE2 (a device sub-resource corresponding to the lamp 1) and resource AE3 (a device sub-resource corresponding to the curtain 1) can be created, as shown in the following table. Figure 1d

[0087] The attributes in the device sub-resource can include, but are not limited to, a resource type Resource type, a resource ID resource ID, a resource ID of a parent resource parent ID, a device status Status, and a device type Device type. For example, the attributes in the device sub-resource are shown in the following table 4.

[0088] Table 4 Attributes in device sub-resource

[0089] Attribute Explanation resource type Resource type, which can be set as "Application" resource ID Resource identification, which can be used to uniquely identify a resource in SME parentID Resource identification of parent resource Status Device status Device type Device type, which can be set as "Class I Device"

[0090] The device status can be used to represent the on-off state, parameter state, etc. of the home device. For example, the device status attribute in the sub-resource AE2 can represent the on-off state (on state or off state) of the lamp, and the Status can be set as on or off, or 0 and 1 can be used to represent the on-off state; the brightness parameter of the lamp can also be set in the device status attribute. For another example, the device status attribute in the sub-resource AE3 can represent the on-off state of the curtain, and the Status can be set as on or off, or 0 and 1 can be used to represent the on-off state, or 0, 1, and 2 can be used to represent that the curtain is in a full-off state, a half-off state, and an open state, respectively; the device status attribute can also set the movable length, the remaining effective movable length, and the moved length, etc. of the curtain. The device type attribute is used to represent the device type of the home device corresponding to the device sub-resource. ​

[0091] Optionally, as shown in Figure 1d The service service sub-resource can correspond to the service type of the human body detection service; the attributes in the service sub-resource can include, but are not limited to, a resource type resource type, a resource ID resource ID, a service category Service category, a detection service result Service result, a resource ID of a parent resource Parent ID, an identification of a detection process resource Detection ID, and a service status Service status of the human body detection service.

[0092] For example, as shown in Table 5, the attributes in the service sub-resource are represented. The service status of the human body detection service can include, but is not limited to, the following: the value active indicates that the human body detection service is in progress; the value idle indicates that the human body detection service is not normally performed. The value of the detection service result attribute is used to indicate that the person in the target environment is in a sleep state or a wake-up state.

[0093] Table 5 Attributes in the service sub-resource

[0094] Attribute Explanation Resource Type Resource type, which can be set as "HDE" Resource ID Resource identification, which can be used to uniquely identify a resource in SME Service category Service type of human detection service Service result Detection service result of human detection service Parent ID Resource identification of parent resource Detection ID Identification of detection process resource associated with human detection service Service status Status of human detection service

[0095] Optionally, as shown in Figure 1e Fig. 6 is a schematic diagram of a logical structure of a sub-resource policy provided in the embodiment. The service sub-resource can further include a sub-resource policy, wherein the attributes in the sub-resource policy can include, but are not limited to, a resource type resource type, a resource ID resource ID, a resource ID of a parent resource parent ID, a monitoring object attribute, a notification object notification URI, and a notification content notification Content. For example, as shown in Table 6, the attributes in the sub-resource policy are represented.

[0096] Table 6 Attributes in the sub-resource policy

[0097] Attribute Explanation resource type Resource type, which can be set as "policy" resource ID Resource identification, which is used to uniquely identify a resource in SME Parent ID Resource identification of parent resource attribute Monitoring object, can be set as the address of attribute service result Notification URI Notification object Notification Content Notification Content

[0098] The notification object is used for indicating the object of the sent application notification information; the value of the notification object attribute can be set as AE0 ID, and when the value of the attribute service result in the service sub-resource changes, the application notification information is sent to the object indicated by the AE0 ID. The AE0 is an application entity in the application layer of the projector itself, which can be a multimedia application. The notification content is an optional attribute, and the notification content can be used to indicate the content in the application notification information; for example, when the service result is set to 1, it indicates that the user is in a wake-up state, and when the service result is set to 0, it indicates that the user is in a sleep state; the content in the application notification information can also include the value of the attribute service result.

[0099] In some embodiments, the SME can send a wake-up resource creation feedback create resource response to the AE1, and the feedback can include the information of the resource identification resource ID attribute in the wake-up resource.

[0100] 130. When the wake-up service start instruction is received, the first type of home device is controlled to perform the corresponding wake-up service based on the wake-up service resource.

[0101] The wake-up service start instruction is used to indicate that the projector starts the wake-up service mode. Optionally, the application layer of the projector can query the value in the Wake up time attribute from the SME to obtain the wake-up time, and when it is detected that the system time reaches the wake-up time, the preset music corresponding to the wake-up service mode can be played. Then, the wake-up service start instruction can be sent to the SME, and correspondingly, the SME receives the wake-up service start instruction.

[0102] In some embodiments, the wake-up service resource includes a device sub-resource corresponding to the home device, and the device sub-resource includes a device type attribute. After receiving the wake-up service start instruction value, the following can be included:

[0103] Based on the wake-up service resource, the first type of home device is controlled to execute the corresponding wake-up service, and the value of the device type attribute corresponding to the first type of home device indicates that the device type of the first type of home device is the first type. Optionally, a first opening instruction can be sent to the first type of home device, and after the first type of home device receives the first opening instruction, the first type of home device executes the wake-up service indicated by the first opening instruction. For example, the wake-up service opening instruction can indicate: turn on light 1, and adjust the brightness to x1. After the SME receives the wake-up service opening instruction, the SME can send a first opening instruction to light 1, and the wake-up service indicated by the first opening instruction is to turn on light 1 and adjust the brightness to x1. When light 1 responds successfully, a response message is returned to the SME, and the message includes a status code. If the value of the status code is accepted, the attribute status under the sub-resource AE2 is updated to: on, and the brightness is x1.

[0104] 140、Based on the perception resource, the human body detection entity is controlled to detect the state of the person in the target environment.

[0105] In some embodiments, based on the perception resource, the human body detection entity is controlled to detect the state of the person in the target environment, which can include but is not limited to:

[0106] 1) Select at least one target detection entity from the human body detection entity based on the perception resource. The human body detection condition includes at least one of the following: the value of the supported human body detection service attribute in the perception resource indicates that the target detection entity supports detecting the state of the person in the target environment, the values of the location attribute and the detection range attribute in the perception resource indicate that the detection range of the target detection entity can cover the target environment, and the value of the current state attribute in the perception resource indicates that the target detection entity is in an idle state.

[0107] For example, a plurality of perception resources of the resource type HDE are locally searched, and a target detection entity that meets the human body detection condition is selected from the plurality of perception resources. The target detection entity can include a first target HDE for detecting the eye state of a person, a second target HDE for detecting the posture of a person, and a third target HDE for detecting the breathing state of a person, etc. The human body detection condition can include: the attribute Supported service indicates the supported human body detection service; based on the values of the attributes location and detection range, it is determined that the detection range can cover the target environment room corresponding to the wake-up service mode; and the value of the status attribute of the perception resource is idle.

[0108] 2) Send a human body detection service request to the target detection entity, and the human body detection service request is used to request the target detection entity to detect the state of the person in the target environment.

[0109] In some embodiments, a human detection service request is sent to the target detection entity based on the target detection entity's HDE ID. The human detection service request carries the parameter SENSMeasParas for performing the human detection service. SENSMeasParas may include one or more of the parameters listed in Table 7 below:

[0110] Table 7 Parameters in Human Detection Service Request

[0111] Parameter Explanation Sensing method Sensing method Measurement period Measurement period Measurement duration Measurement duration Measurement bandwidth Measurement bandwidth Measurement type Measurement type

[0112] 3) Receive the detection response from the target detection entity.

[0113] Optionally, after receiving a human detection service request, the target detection entity can send a detection response to the SME, regardless of whether it allows the detection of the state of people in the target environment. Accordingly, the SME receives the detection response.

[0114] 4) When the detection response indicates that the target detection entity allows the detection of the state of people in the target environment, create detection process resources.

[0115] In some embodiments, such as Figure 1f The diagram shown is a logical structure diagram of a detection process resource provided in this embodiment. Attributes in the detection process resource may include, but are not limited to, Resource ID, Detection ID, Measurement result, HED ID of the target entity, and Supported service for the human detection service. For example, Table 8 shows one type of attribute in a detection process resource.

[0116] The detection ID for the human detection process can be assigned to an SME and set as the value of the detection ID attribute of resource detection1. Optionally, the assigned ID can also be set as the value of the detection ID attribute of sub-resource service1. The detection results are used to represent the state of a person in the target environment.

[0117] Table 8 Attributes of Resources in the Detection Process

[0118] Attribute Explanation Resource ID Resource ID, used to uniquely identify a resource within the SME detection ID Detection ID Measurement result Measurement result HED ID HED ID Supported service Supported service

[0119] It should be noted that different types of human detection services can create different detection process resources; that is, multiple detection process resources can be created. For example, there can be detection1, detection2, and detection3, which correspond to detecting a person's research state, posture, and breathing state, respectively.

[0120] 5) Controlling the human detection entity to detect the state of the person in the target environment based on the detection process resource.

[0121] In some embodiments, the detection process resource includes a detection result attribute, and the controlling the target detection entity to detect the state of the person in the target environment based on the detection process resource includes:

[0122] receiving the human detection report sent by the target detection entity; and taking the detection result in the human detection report as the value of the detection result attribute in the detection process resource, the detection result being used to represent the state of the person in the target environment. For example, the SME receives the human detection report sent by each target human detection entity, and saves the detection result in the attribute measurement result of the detection process resource detection x corresponding to each target detection entity.

[0123] 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 detection report as the value of the detection result attribute in the detection process resource, the method further includes:

[0124] determining the value of the detection service result attribute according to the value of the detection result attribute in each detection process resource, the value of the detection service result attribute being used to indicate that the person in the target environment is in a sleep state or a wake-up state.

[0125] For example, the result of the human 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 service1. The value of the attribute service result can be 0 and 1, 1 indicating that the state of the person in the target environment is in a wake-up state, and 0 indicating that the state of the person in the target environment is in a sleep state. The specific calculation rule can be that the posture of the person is not a lying posture, and the state of the eyes of the person is open or the breathing state is a wake-up state, and then the state is a wake-up state, otherwise the state is a sleep state.

[0126] 140) Controlling each home device to perform a corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.

[0127] In some embodiments, when the value of the detection service result attribute indicates that the person in the target environment is in a wake-up 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 a wake-up state to play preset multimedia content. The preset multimedia content can include weather forecasts, news information, schedules, etc., and the category of the news information can be set by the user or recommended according to the user's preferences.

[0128] In some embodiments, based on the state of the person in the target environment and the wake-up business resource, the respective home devices are controlled to perform the corresponding wake-up business, including:

[0129] 1) When the value of the detection business result attribute indicates that the person in the target environment is in a sleep state, the current environment information is obtained, and the value of the device state attribute of the second type of home device is obtained from the device sub-resource corresponding to the second type of home device.

[0130] Among them, the environment information can include location, season, time period, weather, etc.

[0131] 2) Based on the environment information, determine the current environment brightness of the outdoor environment of the target environment.

[0132] For example, when the value of the detection business result attribute indicates that the 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, and weather of the current projector.

[0133] Specifically, according to the sunrise and sunset schedule of each quarter in different regions (as shown in Table 9-1 and Table 9-2), each day in different seasons and different regions can be divided into three respective time periods, for example: The three time periods of Sichuan in summer include the first time period: average sunrise time x1~x1+2 / cosA, angle A is the local geographical latitude; The second time period is: x1+2 / cosA~average sunset time x2; The third time period is: average sunset time x2~x1.

[0134] Environment information-sunrise and sunset schedule (Chengdu, Sichuan)

[0135] Date 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

[0136] Environment information-sunrise and sunset schedule (Xinjiang)

[0137] Date 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

[0138] Taking the curtain as an example, the brightness of the real outdoor environment in different regions, different seasons, different weather, and different time periods is sampled , to obtain a plurality of sampling data; Taking summer as an example, one of the data formats is: Sichuan-summer-cloudy-time period-outdoor environment brightness lux_1. Based on the plurality of sampling data, the brightness prediction model is trained, and after the training is completed, the region, season, weather, and time period in the current environment information are input into the brightness prediction model, and the current environment brightness lux_0 of the current outdoor environment in the time period can be predicted. Among them, the above brightness prediction model can be based on lenet5, and combined with the actual situation of the present scheme, the size of the convolution kernel is modified to 4*1.

[0139] 3) 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.

[0140] The value of the device type attribute corresponding to the second type of home device indicates that the device type of the second type of home device is the second type. The value of the device state attribute indicates the effective moving length of the second type of home device.

[0141] In some embodiments, based on the current ambient brightness and the value of the device state attribute of the second type of home device, the second type of home device is controlled to perform a corresponding wake-up service, including:

[0142] 1) obtaining a brightness coefficient and a preset wake-up brightness corresponding to a target environment, the brightness coefficient being used to represent the size of the change in brightness in the target environment when the second type of home device is opened by a unit length under the current ambient brightness.

[0143] In some embodiments, the preset wake-up brightness can be obtained from the wake-up service resource.

[0144] Taking a curtain as an example, a curtain moving test can be performed: taking a curtain in a closed state as a starting point, the light brightness lux 测 of the outdoor environment is collected, the increased brightness ΔLux 测 of the target environment when the curtain is opened by a unit length ΔL, and the brightness coefficient β is calculated as , and the brightness coefficient β is obtained as / lux 测 .

[0145] 2) determining the target moving length of the second type of home device when the brightness in the target environment is adjusted to the preset wake-up brightness based on the current ambient brightness, the brightness coefficient and the effective moving length.

[0146] In some embodiments, 1) the target brightness of the target environment is obtained; the brightness difference between the target brightness and the preset wake-up brightness is determined; and the maximum brightness that can be increased by adjusting the curtain is determined based on the current ambient brightness and the brightness coefficient.

[0147] For example, the target brightness in the target environment and the maximum brightness that can be increased by adjusting the curtain are obtained, and the SME can be queried for the attribute status in the device sub-resource corresponding to the curtain 1 in the target environment. Based on the value of the status, the current on-off state of the curtain 1 and the remaining effective moving length are determined. If the on-off state of the curtain 1 is the closed state and the remaining effective moving length is l1, the maximum brightness that can be increased by adjusting the curtain is: 11 / unit length ΔL* β* lux1.

[0148] 2) If the maximum brightness is less than the brightness difference, the value of the device state attribute of the first type of home device is obtained from the device sub-resource corresponding to the first type of home device, so as to control the first type of home device to adjust the brightness in the target environment to the preset wake-up brightness based on the value of the device state attribute of the first type of home device.

[0149] The difference Δlux11 between the target brightness of the target environment and the preset wake-up brightness is calculated, and if the maximum brightness is greater than or equal to Δlux11, it is indicated that the curtain is in the invalid adjustment mode, for example, the light of the outdoor environment is very dark, and it is invalid to increase the brightness of the target environment by adjusting the curtain, that is, the curtain is in the invalid adjustment mode. Alternatively, if the curtain is in the invalid adjustment mode, the light in the target environment can be controlled to reach the preset wake-up brightness according to Δlux11.

[0150] Specifically, the SME can query the attribute information of each lamp 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, and the application layer selects the target lamp from each lamp in the off state, so that the brightness in the target environment is greater than or equal to the preset wake-up brightness. Further, the SME sends an opening instruction to the target lamp, and after the target lamp responds to the opening instruction, the target lamp can return a response message to the SME, and 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.

[0151] 3) If the maximum brightness is greater than or equal to the brightness difference, the target moving length of the second type of home device is determined when adjusting the brightness in the target environment to the preset wake-up brightness based on the current environment brightness, the brightness coefficient and the effective moving length.

[0152] For example, if the maximum brightness is less than Δlux11, it is indicated that the brightness in the target environment can be adjusted to the preset wake-up brightness by the curtain, that is, it is determined that the curtain is in the effective adjustment mode, and at this time the target moving length is equal to Δlux11 / (β*lux1).

[0153] Alternatively, if the maximum brightness that can be increased by adjusting the curtain is less than Δlux11, it is indicated that the curtain cannot be fully opened to adjust the brightness in the target environment to the preset wake-up brightness. In this case, the curtain can be opened to increase a part of the brightness, and then the lamp is controlled to increase the part of the brightness that the curtain cannot increase.

[0154] 3) Send an opening instruction to the second type of home device, and the opening instruction is used to instruct the second type of home device to open the target moving length.

[0155] The application layer of the projector can send an open instruction to the curtain 1 through the SME, to instruct the curtain 1 to open: Δlux11 / (β*lux1).

[0156] After the curtain 1 opens Δlux11 / (β*lux1) according to the open instruction, the curtain 1 can return a response message to the SME, the message containing a status code, and if the status code value is accepted, the attribute status under the child resource AE3 is updated. Therefore, by detecting the state of the person in the target environment and the current environmental brightness of the outdoor environment, the home devices are dynamically controlled, the wake-up service can be more flexibly executed, and the user experience is improved.

[0157] In some embodiments, the second type of device can also be controlled to execute the corresponding wake-up service, and then the first type of device is controlled to execute the corresponding wake-up service. The embodiments do not limit the execution order.

[0158] In some embodiments, after the second type of device is controlled to execute the corresponding wake-up service, the human body detection entity is controlled to detect the state of the person in the target environment based on the perception 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 a wake-up state, it indicates that the user has been awakened, and a close instruction can be sent to the second type of device to close the second type of device, so as to protect the user's privacy and improve the user experience.

[0159] As can be seen from the above, the present application can create a wake-up resource based on the wake-up parameters required to implement the wake-up service mode, the wake-up resource including the perception resource corresponding to the detection of the state of the person in the target environment, and the wake-up service resource corresponding to the wake-up service. Based on the wake-up service resource, the first type of home device is controlled to execute the corresponding wake-up service. Then, based on the perception resource, the human body detection entity is controlled to detect the state of the person in the target environment. Based on the state of the person in the target environment and the wake-up service resource, the second type of home device is controlled to execute the corresponding wake-up service. That is, various devices are uniformly managed by creating a wake-up resource; when the wake-up time arrives, the light is immediately turned on and adjusted to the appropriate brightness; and the human body detection entity is controlled to detect the state of the person in the target environment, and when it is detected that the state of the person in the target environment is in a wake-up state, the projector is controlled to play weather, schedule, etc.; when it is detected that the state of the person in the target environment is in a sleep state, the curtain is controlled to open to a preset brightness. Therefore, a flexible and reasonable wake-up service is provided. Thus, the present scheme can improve the flexibility and rationality of the wake-up service.

[0160] To better implement the above method, the application further provides a device control apparatus, which can be specifically integrated in an electronic device, for example, in the present embodiment, the method of the application is described in detail by taking the case that the device control apparatus is specifically integrated in a projector.

[0161] For example, as shown in Figure 2 The device control apparatus can include a transceiver unit 201, a creation unit 202, an execution control unit 203, and a detection control unit 204, as follows:

[0162] The transceiver unit 201 is configured to receive a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required for implementing a wake-up service mode;

[0163] The creation unit 202 is configured to create a wake-up resource based on the wake-up parameters, the wake-up resource including a perception resource corresponding to a state of a person in a target environment, and a wake-up service resource corresponding to a wake-up service, the wake-up service resource including a device sub-resource corresponding to a home device, the device sub-resource including a device type attribute corresponding to a device type of the home device, the device type including a first type and a second type;

[0164] The execution control unit 203 is configured to, when a wake-up service start instruction is received, control the first type of home device to perform a corresponding wake-up service based on the wake-up service resource;

[0165] The detection control unit 204 is configured to control a human body detection entity to detect the state of the person in the target environment based on the perception resource.

[0166] The execution control unit 203 is further configured to control the second type of home device to perform a corresponding wake-up service based on the state of the person in the target environment and the wake-up service resource.

[0167] In some embodiments, the detection control unit 204 is specifically configured to:

[0168] select at least one target detection entity from the human body detection entity based on the perception resource;

[0169] send a human body detection service request to the target detection entity, the human body detection service request being used to request the target detection entity to detect the state of the person in the target environment;

[0170] receive a detection response of the target detection entity;

[0171] when the detection response indicates that the target detection entity allows the state of the person in the target environment to be detected, create a detection process resource;

[0172] control the target detection entity to detect the state of the person in the target environment based on the detection process resource.

[0173] In some embodiments, the detection process resource includes a detection result attribute, and the detection control unit 204 is specifically configured to:

[0174] receive a human body detection report sent by the target detection entity;

[0175] take the detection result in the human body detection report as a value of the detection result attribute in the detection process resource, the detection result being used to represent a state of the human in the target environment.

[0176] In some embodiments, the wake-up service resource includes a service sub-resource, and the service sub-resource includes a detection service result attribute, and the intelligent control device is further configured to:

[0177] determine a value of the detection service result attribute according to values of the detection result attributes in the detection process resources, the value of the detection service result attribute being used to indicate that the human in the target environment is in a sleep state or a wake-up state;

[0178] control the second type of home device to perform a corresponding wake-up service based on the state of the human in the target environment and the wake-up service resource, including:

[0179] when the value of the detection service result attribute indicates that the human in the target environment is in the sleep state, obtaining current environment information and a value of a device state attribute of the second type of home device from a device sub-resource corresponding to the second type of home device;

[0180] determining a current ambient brightness of an outdoor environment of the target environment based on the environment information;

[0181] 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 attribute of the second type of home device.

[0182] In some embodiments, the value of the device state attribute indicates an effective moving length of the second type of home device, and the execution control unit is specifically configured to:

[0183] obtain a brightness coefficient and a preset wake-up brightness corresponding to the target environment, the brightness coefficient being used to represent a change in brightness in the target environment when the second type of home device is opened by a unit length under the current ambient brightness;

[0184] determine a target moving length of the second type of home device when the brightness in the target environment is adjusted to the preset wake-up brightness based on the current ambient brightness, the brightness coefficient, and the effective moving length;

[0185] send an opening instruction to the second type of home device, the opening instruction being used to instruct the second type of home device to open the target moving length.

[0186] In some embodiments, the control unit 203 is specifically configured to, based on the current environment brightness, the brightness coefficient, and the effective moving length, perform:

[0187] obtain a target brightness of the target environment;

[0188] determine a brightness difference between the target brightness and the preset wake-up brightness;

[0189] based on the current environment brightness and the brightness coefficient, determine a maximum brightness corresponding to the effective moving length;

[0190] if the maximum brightness is less than the brightness difference, obtain a value of a device state attribute of the first type of home device from the device sub-resource corresponding to the first type of home device, so as to control the first type of home device to adjust the brightness in the target environment to the preset wake-up brightness based on the value of the device state attribute of the first type of home device;

[0191] if the maximum brightness is greater than or equal to the brightness difference, based on the current environment brightness, the brightness coefficient, and the effective moving length, determine a target moving length of the second type of home device when adjusting the brightness in the target environment to the preset wake-up brightness.

[0192] In some embodiments, the smart control device is further configured to:

[0193] when the value of the detection service result attribute indicates that the person in the target environment is in a wake-up state, generate application notification information, the application notification information being used to notify the multimedia application that the person in the target environment is in a wake-up state to play the preset multimedia content.

[0194] In some embodiments, the execution control is specifically configured to:

[0195] filter at least one target detection entity satisfying a human body detection condition from the perception resource;

[0196] wherein the human body detection condition comprises at least one of the following: a value of a supported human body detection service attribute in the perception resource indicating that the target detection entity supports detecting the state of the person in the target environment, values of a location attribute and a detection range attribute in the perception resource indicating that the detection range of the target detection entity can cover the target environment, and a value of a current state attribute in the perception resource indicating that the target detection entity is in an idle state.

[0197] In implementation, each of the units above can be implemented as an independent entity, or can be combined as the same or several entities, and the specific implementation of each of the units above can be referred to the method embodiments above, which will not be described herein.

[0198] The present application also provides an electronic device, in the present embodiment, the electronic device will be taken as a projector as an example for detailed description, for example, such as, Figure 3As shown, it shows a structural schematic diagram of an electronic device related to the present application, in particular:

[0199] The electronic device can include a processor 301 with one or more processing cores, a memory 302 with one or more computer readable storage media, a power supply 303, an input module 304, a communication module 305, and the like. Those skilled in the art can understand that, Figure 3 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements. Among them:

[0200] The processor 301 is the control center of the electronic device, which connects all parts of the electronic device through various interfaces and lines, and 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 calling data stored in the memory 302. In some embodiments, the processor 301 can include one or more processing cores; in some embodiments, the processor 301 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 301.

[0201] The memory 302 can be used to store software programs and modules, and the processor 301 executes various functions and data processing by running the software programs and modules stored in the memory 302. The memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 302 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 302 can also include a memory controller to provide access for the processor 301 to the memory 302.

[0202] The electronic device also includes a power supply 303 for powering various components, and in some embodiments, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 303 can also include one or more direct or alternating current power supplies, recharging systems, power supply failure detection circuits, power supply converters or inverters, power supply status indicators, and the like.

[0203] The electronic device can also include an input module 304 that can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0204] The electronic device can also include a communication module 305, which in some embodiments can include a wireless module, through which the electronic device can perform short-range wireless transmission, thereby providing the user with wireless broadband Internet access. For example, the communication module 305 can be used to help the user send and receive emails, browse web pages, and access streaming media, etc.

[0205] Although not shown, the electronic device can also include a display unit, etc., which will not be described here. In particular, in the present embodiment, the processor 301 in the electronic device will load the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and run the application program stored in the memory 302 by the processor 301, thereby realizing the functions in various device control methods.

[0206] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0207] To this end, the present application provides a computer readable storage medium, which stores a plurality of instructions capable of being loaded by a processor to execute the steps in any device control method provided by the present application. For example, the instructions can execute the steps in the device control method.

[0208] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0209] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the intelligent control method provided in the above embodiments.

[0210] Since the instructions stored in the storage medium can execute the steps in any of the device control methods provided in the present application, the beneficial effects that can be achieved by any of the device control methods provided in the present application can be achieved. Details are shown in the foregoing embodiments, and will not be repeated here.

[0211] The above describes in detail the device control method, apparatus, electronic device and computer readable storage medium provided in the present application. The principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method and its core idea of the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A device control method, characterized in that, The method includes: Receive a wake-up resource creation request, the wake-up resource creation request including wake-up parameters required to implement the wake-up service mode; A wake-up resource is created based on the wake-up parameters. The wake-up resource includes a perception resource corresponding to the state of a person in the target environment and a wake-up service resource corresponding to the wake-up service. The wake-up service resource includes a device sub-resource corresponding to a home appliance. The device sub-resource includes a device type attribute corresponding to the device type of the home appliance. The device type includes a first type and a second type. When a wake-up service activation command is received, the first type of home appliances are controlled to perform the corresponding wake-up service based on the wake-up service resources. Based on the aforementioned sensing resources, the human body detection entity is controlled to detect the state of a person in the target environment; Based on the state of the person in the target environment and the wake-up service resources, control the second type of home devices to execute the corresponding wake-up service; The step of controlling the second type of home appliances to execute corresponding wake-up services based on the state of the person in the target environment and the wake-up service resources includes: Obtain the current environmental information, and obtain the values ​​of the device status attributes of the second type of home devices from the device sub-resources corresponding to the second type of home devices; Based on the environmental information, determine the current ambient brightness of the outdoor environment of the target environment; Based on the current ambient brightness and the values ​​of the device status attributes of the second type of home devices, control the second type of home devices to execute the corresponding wake-up service; The value of the device status attribute indicates the effective movement length of the second type of home appliance; The step of controlling the second type of home devices to perform corresponding wake-up services based on the current ambient brightness and the device status values ​​of the second type of home devices includes: The brightness coefficient and the preset wake-up brightness corresponding to the target environment are obtained. The brightness coefficient is used to represent the change in brightness in the target environment when the second type of home device is turned on by a unit length under the current ambient brightness. Based on the current ambient brightness, the brightness coefficient, and the effective movement length, the target movement length of the second type of home appliance is determined when the brightness in the target environment is adjusted to a preset wake-up brightness. Send an opening command to the second type of home appliance, the opening command being used to instruct the second type of home appliance to open a target movement length; The determination of the target movement length of the second type of home appliance when adjusting the brightness in the target environment to a preset wake-up brightness, based on the current ambient brightness, the brightness coefficient, and the effective movement length, includes: Obtain the target brightness of the target environment; Determine the brightness difference between the target brightness and the preset wake-up brightness; Based on the current ambient brightness and the brightness coefficient, determine the maximum brightness corresponding to the effective movement length; If the maximum brightness is greater than or equal to the brightness difference, the target movement length of the second type of home appliance is determined based on the current ambient brightness, the brightness coefficient, and the effective movement length, when the brightness in the target environment is adjusted to the preset wake-up brightness.

2. The equipment control method as described in claim 1, characterized in that, The step of controlling a human detection entity to detect the state of a person in the target environment based on the sensing resources includes: Based on the sensory resources, at least one target detection entity is selected from the human body detection entities; Send a human body detection service request to the target detection entity, the human body detection service request being used to request the target detection entity to detect the state of a person in the target environment; Receive the detection response from the target detection entity; When the detection response instructs the target detection entity to allow the detection of the state of people in the target environment, a detection process resource is created; Based on the detection process resources, the target detection entity is controlled to detect the state of people in the target environment.

3. The equipment control method as described in claim 2, characterized in that, The detection process resources include detection result attributes. The step of controlling the target detection entity to detect the state of people in the target environment based on the detection process resources includes: Receive the human body detection report sent by the target detection entity; The detection results in the human body detection report are used as the values ​​of the detection result attributes in the detection process resources, and the detection results are used to represent the state of a person in the target environment.

4. The equipment control method as described in claim 3, characterized in that, The wake-up service resource includes a service sub-resource, which includes a detection service result attribute. After using the detection result from the human body detection report as the value of the detection result attribute in the detection process resource, the method further includes: The value of the detection service result attribute is determined based on the value of the detection result attribute in each of the detection process resources. The value of the detection service result attribute is used to indicate whether a person in the target environment is in a sleeping or awake state. The step of controlling the second type of home appliances to execute corresponding wake-up services based on the state of the person in the target environment and the wake-up service resources includes: When the value of the detection service result attribute indicates that a person in the target environment is asleep, the current environmental information is obtained, and the value of the device status attribute of the second type of home device is obtained from the device sub-resource corresponding to the second type of home device.

5. The equipment control method as described in claim 1, characterized in that, If the maximum brightness is less than the brightness difference, the value of the device status attribute of the first type of home device is obtained from the device sub-resource corresponding to the first type of home device, so as to control the first type of home device to adjust the brightness of the target environment to the preset wake-up brightness based on the value of the device status attribute of the first type of home device.

6. The equipment control method as described in claim 4, characterized in that, The method further includes: When the value of the detection service result attribute indicates that a person in the target environment is awake, an application notification is generated. The application notification is used to notify the multimedia application that a person in the target environment is awake so that preset multimedia content can be played.

7. The equipment control method as described in claim 2, characterized in that, The step of selecting at least one target detection entity from the human body detection entities based on the sensing resources includes: Select at least one target detection entity from the sensory resources that meets the human body detection conditions; The human detection conditions include at least one of the following: the value of the supported human detection service attribute in the sensing resource indicates that the target detection entity supports the detection of the state of people in the target environment; the values ​​of the location attribute and detection range attribute in the sensing resource indicate 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.

8. A device control apparatus, characterized in that, include: The transceiver unit is used to receive a wake-up resource creation request, wherein the wake-up resource creation request includes wake-up parameters required to implement the wake-up service mode; A creation unit is used to create wake-up resources based on the wake-up parameters. The wake-up resources include perception resources corresponding to the state of a person in the target environment and wake-up service resources corresponding to the wake-up service. The wake-up service resources include device sub-resources corresponding to home devices. The device sub-resources include device type attributes corresponding to the device type of the home devices. The device types include a first type and a second type. An execution control unit is configured to, upon receiving a wake-up service activation command, control the first type of home appliances to execute the corresponding wake-up service based on the wake-up service resources; A detection and control unit is used to control a human body detection entity to detect the state of a person in the target environment based on the sensing resources. The execution control unit is also used to control the second type of home appliances to perform corresponding wake-up services based on the state of the person in the target environment and the wake-up service resources; The step of controlling the second type of home appliances to execute corresponding wake-up services based on the state of the person in the target environment and the wake-up service resources includes: Obtain the current environmental information, and obtain the values ​​of the device status attributes of the second type of home devices from the device sub-resources corresponding to the second type of home devices; Based on the environmental information, determine the current ambient brightness of the outdoor environment of the target environment; Based on the current ambient brightness and the values ​​of the device status attributes of the second type of home devices, control the second type of home devices to execute the corresponding wake-up service; The value of the device status attribute indicates the effective movement length of the second type of home appliance; The step of controlling the second type of home devices to perform corresponding wake-up services based on the current ambient brightness and the device status values ​​of the second type of home devices includes: The brightness coefficient and the preset wake-up brightness corresponding to the target environment are obtained. The brightness coefficient is used to represent the change in brightness in the target environment when the second type of home device is turned on by a unit length under the current ambient brightness. Based on the current ambient brightness, the brightness coefficient, and the effective movement length, the target movement length of the second type of home appliance is determined when the brightness in the target environment is adjusted to a preset wake-up brightness. Send an opening command to the second type of home appliance, the opening command being used to instruct the second type of home appliance to open a target movement length; The determination of the target movement length of the second type of home appliance when adjusting the brightness in the target environment to a preset wake-up brightness, based on the current ambient brightness, the brightness coefficient, and the effective movement length, includes: Obtain the target brightness of the target environment; Determine the brightness difference between the target brightness and the preset wake-up brightness; Based on the current ambient brightness and the brightness coefficient, determine the maximum brightness corresponding to the effective movement length; If the maximum brightness is greater than or equal to the brightness difference, the target movement length of the second type of home appliance is determined based on the current ambient brightness, the brightness coefficient, and the effective movement length, when the brightness in the target environment is adjusted to the preset wake-up brightness.

9. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps in the device control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the device control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for controlling household equipment to work, wearable terminal and storage device

    CN111781842A

  • Method, device and system for managing an application and execution unit, and medium

    CN112689300A