Equipment control method and device based on operating system

文档序号:1598347 发布日期:2020-01-07 浏览:8次 中文

阅读说明:本技术 一种基于操作系统的设备控制方法及装置 (Equipment control method and device based on operating system ) 是由 尹德帅 刘超 徐志方 马成东 李莹莹 于 2019-09-30 设计创作,主要内容包括:本发明提供了一种基于操作系统的电源设备控制方法及装置,其中,该方法包括:监测目标对象的行为,以获取所述目标对象的行为变化数据;基于所述行为变化数据,确定所述目标对象的位置信息;当所述目标对象在目标设备的第一预定范围内时,控制所述目标设备的控制按键拒绝响应控制操作,可以解决相关技术中由于特殊群体的行为的不可预判性,使得电源设备存在很大的安全隐患的问题,根据用户的行为变化,及时对用户位置附近的所有电源设备的开关进行控制,保证用户的安全,提高了用户体验度。(The invention provides a power supply equipment control method and a power supply equipment control device based on an operating system, wherein the method comprises the following steps: monitoring the behavior of a target object to acquire behavior change data of the target object; determining location information of the target object based on the behavior change data; when the target object is within the first preset range of the target device, the control key of the target device is controlled to refuse response control operation, the problem that the power supply device has great potential safety hazard due to unpredictable behavior of a special group in the related technology can be solved, the switches of all the power supply devices near the user position are controlled in time according to the behavior change of the user, the safety of the user is guaranteed, and the user experience degree is improved.)

1. An operating system-based device control method, comprising:

monitoring the behavior of a target object to acquire behavior change data of the target object;

determining location information of the target object based on the behavior change data;

and when the target object is within a first preset range of the target equipment, controlling a control key of the target equipment to refuse to respond to the control operation.

2. The method of claim 1, wherein monitoring the behavior of the target object to obtain behavior change data of the target object comprises:

acquiring video data containing the target object through one or more cameras;

and acquiring behavior change data of the target object with the change of the body state in a preset time period from the video data.

3. The method of claim 2, wherein the method comprises:

carrying out face recognition on the video data to obtain face features;

and matching the face features with face features stored in advance so as to identify the target object.

4. The method of claim 1, wherein determining the location information of the target object based on the behavior change data comprises:

determining the predicted behavior of the target object according to the behavior change data;

and acquiring the position information of the target object under the condition that the predicted behavior meets a preset condition.

5. The method of claim 4, wherein determining the predicted behavior of the target object from the behavior change data comprises:

judging whether the behavior change data indicate that the distance between the target object and the preset equipment is changed from a first distance to a second distance, wherein the first distance is greater than the second distance;

if the judgment result is yes, determining that the predicted behavior of the target object is a positive trend behavior;

and under the condition that the judgment result is negative, determining that the predicted behavior of the target object is negative trend behavior.

6. The method of claim 1, wherein after determining the location information of the target object based on the behavior change data, the method further comprises:

determining the target device within a second predetermined range of the location information.

7. The method according to any one of claims 1 to 6, wherein when the target object is within a first predetermined range of the target device, the control key controlling the target device to reject a response control operation comprises:

controlling to start an infrared sensor arranged on the target equipment;

determining, by the infrared sensor, that the target object is within a first predetermined range of the target device;

and controlling a control key of the target equipment to refuse to respond to the control operation.

8. The method according to any one of claims 1 to 6, wherein controlling a control key rejection response control operation of the target device comprises:

and sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.

9. An operating system-based device control apparatus, comprising:

the acquisition module is used for monitoring the behavior of a target object so as to acquire the behavior change data of the target object;

a first determination module, configured to determine location information of the target object based on the behavior change data;

and the control module is used for controlling a control key of the target equipment to refuse to respond to the control operation when the target object is in a first preset range of the target equipment.

10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 8 when executed.

11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 8.

Technical Field

The invention relates to the field of intelligent household appliances, in particular to an equipment control method and device based on an operating system.

Background

At present, for household appliances, sockets and other power utilization or conversion equipment, it is common to manually control the on-off of a power supply, and especially for household sockets (power strip, converter), the management of power output is realized by setting a switch module, and a user can switch the on-off state of the equipment through a key of the switch module, or switch the on-off state of a switch through voice or bluetooth/Wi-Fi wireless control. However, with the current method, control and management of the switching behavior frequently operated by the user cannot be realized. Users include different roles for each household, and for children and other users who lack safety awareness, it is very dangerous to try to touch various electrical devices and sockets, when the family is not at home or away from home.

The intelligent home is characterized in that a home is used as a platform, facilities related to furniture life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, an efficient management system of home facilities and family schedule affairs is constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized. The intelligent home connects various devices (such as audio and video devices, lighting systems, curtain control, air conditioner control, digital cinema systems, security systems and the like) in the home through the Internet of things technology, and provides multiple functions and means such as household appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment regulation and control and the like.

For example, a user uses a mobile phone terminal to remotely control the power supply usage management of home equipment, or the user directly inputs a specific instruction through voice to control the power supply, the user sets different control instructions in the smart home system in advance, and after receiving the corresponding instruction, the system analyzes the instruction and executes the corresponding operation.

Disclosure of Invention

The embodiment of the invention provides an equipment control method and device based on an operating system, which are used for at least solving the problem that power supply equipment has great potential safety hazard due to unpredictable behavior of special groups in the related art.

According to an embodiment of the present invention, there is provided an operating system-based device control method including:

monitoring the behavior of a target object to acquire behavior change data of the target object;

determining location information of the target object based on the behavior change data;

and when the target object is within a first preset range of the target equipment, controlling a control key of the target equipment to refuse to respond to the control operation.

Optionally, the monitoring the behavior of the target object to obtain the behavior change data of the target object includes:

acquiring video data containing the target object through one or more cameras;

and acquiring behavior change data of the target object with the change of the body state in a preset time period from the video data.

Optionally, the method comprises:

carrying out face recognition on the video data to obtain face features;

and matching the face features with face features stored in advance so as to identify the target object.

Optionally, determining the position information of the target object based on the behavior change data includes:

determining the predicted behavior of the target object according to the behavior change data;

and acquiring the position information of the target object under the condition that the predicted behavior meets a preset condition.

Optionally, determining the predicted behavior of the target object according to the behavior change data includes:

judging whether the behavior change data indicate that the distance between the target object and the preset equipment is changed from a first distance to a second distance, wherein the first distance is greater than the second distance;

if the judgment result is yes, determining that the predicted behavior of the target object is a positive trend behavior;

and under the condition that the judgment result is negative, determining that the predicted behavior of the target object is negative trend behavior.

Optionally, after determining the position information of the target object based on the behavior change data, the method further includes:

determining the target device within a second predetermined range of the location information.

Optionally, when the target object is within a first predetermined range of a target device, the control key controlling the target device to reject the response control operation includes:

controlling to start an infrared sensor arranged on the target equipment;

determining, by the infrared sensor, that the target object is within a first predetermined range of the target device;

and controlling a control key of the target equipment to refuse to respond to the control operation.

Optionally, the control key for controlling the target device to reject the response control operation includes:

and sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.

According to still another embodiment of the present invention, there is also provided an operating system-based device control apparatus including:

the acquisition module is used for monitoring the behavior of a target object so as to acquire the behavior change data of the target object;

a first determination module, configured to determine location information of the target object based on the behavior change data;

and the control module is used for controlling a control key of the target equipment to refuse to respond to the control operation when the target object is in a first preset range of the target equipment.

Optionally, the obtaining module includes:

the acquisition submodule is used for acquiring video data containing the target object through one or more cameras;

the first obtaining sub-module is used for obtaining behavior change data of the target object, of which the body state changes in a preset time period, from the video data.

Optionally, the apparatus comprises:

the recognition submodule is used for carrying out face recognition on the video data to obtain face features;

and the first determining submodule is used for matching the face features with the face features stored in advance so as to identify the target object.

Optionally, the first determining module includes:

the second determining submodule is used for determining the predicted behavior of the target object according to the behavior change data;

and the second obtaining submodule is used for obtaining the position information of the target object under the condition that the predicted behavior meets a preset condition.

Optionally, the second determining sub-module includes:

a judging unit, configured to judge whether the behavior change data indicates that a distance between the target object and a predetermined device changes from a first distance to a second distance, where the first distance is greater than the second distance;

a first determination unit configured to determine that the predicted behavior of the target object is a positive trend behavior if the determination result is yes;

and the second determination unit is used for determining that the predicted behavior of the target object is negative trend behavior under the condition that the judgment result is negative.

Optionally, the apparatus further comprises:

a second determining module for determining the target device within a second predetermined range of the location information.

Optionally, the control module comprises:

the first control submodule is used for controlling to start an infrared sensor arranged on the target equipment;

a third determining submodule for determining that the target object is within a first predetermined range of the target device through the infrared sensor;

and the second control submodule is used for controlling the control key of the target equipment to refuse to respond to the control operation.

Optionally, the control module is further used for

And sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.

According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.

According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.

According to the invention, the behavior of the target object is monitored to obtain the behavior change data of the target object; determining location information of the target object based on the behavior change data; when the target object is within the first preset range of the target device, the control key of the target device is controlled to refuse response control operation, the problem that the power supply device has great potential safety hazard due to unpredictable behavior of a special group in the related technology can be solved, the switches of all the power supply devices near the user position are controlled in time according to the behavior change of the user, the safety of the user is guaranteed, and the user experience degree is improved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an operating system-based device control method according to an embodiment of the present invention;

FIG. 2 is a flow chart of a method for operating system based device control according to an embodiment of the present invention;

fig. 3 is a flowchart of power supply apparatus control according to an embodiment of the present invention;

FIG. 4 is a diagram illustrating home wiring in the smart home operating system according to an embodiment of the present invention;

fig. 5 is a block diagram of an operating system based device control apparatus according to an embodiment of the present invention.

Detailed Description

The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:设置家电参数的方法、移动设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!