CN114785838B - Control method and device of equipment, storage medium and electronic device - Google Patents

Control method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN114785838B
CN114785838B CN202210327292.4A CN202210327292A CN114785838B CN 114785838 B CN114785838 B CN 114785838B CN 202210327292 A CN202210327292 A CN 202210327292A CN 114785838 B CN114785838 B CN 114785838B
Authority
CN
China
Prior art keywords
target object
equipment
target
information
effective equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210327292.4A
Other languages
Chinese (zh)
Other versions
CN114785838A (en
Inventor
吴雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210327292.4A priority Critical patent/CN114785838B/en
Publication of CN114785838A publication Critical patent/CN114785838A/en
Application granted granted Critical
Publication of CN114785838B publication Critical patent/CN114785838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • H04L12/2827Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Civil Engineering (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Architecture (AREA)
  • Structural Engineering (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a control method and device of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with running time larger than a preset threshold value; determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not; and under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy.

Description

Control method and device of equipment, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for controlling a device, a storage medium, and an electronic apparatus.
Background
With the progress of science and technology and the development of artificial intelligence, intelligent algorithms are increasingly applied to daily life, the intelligent development is of great importance, and the most critical problem of intelligence is that the intelligence is used for solving the urgent demands of users.
In the current society, a user often uses the intelligent device before falling asleep, but when the user falls asleep, the user may forget to turn off the intelligent device in use, which further causes the intelligent device to consume all the time, and even causes dangerous things to happen, such as fire hazards caused by non-closing of a kitchen range and non-closing of an oven.
Aiming at the problems that in the related art, when a user falls asleep, the user possibly forgets to turn off the intelligent equipment in use, and further the danger hidden danger is brought, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the invention provides a control method and device of equipment, a storage medium and an electronic device, which at least solve the problem that in the related art, when a user falls asleep, the user possibly forgets to close the intelligent equipment in use, so that hidden danger is brought.
According to an embodiment of the present invention, there is provided a control method of an apparatus, including: under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with running time larger than a preset threshold value; determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not; and under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy.
In an exemplary embodiment, determining the effective device bound under the target account corresponding to the target object includes: acquiring all devices bound under a target account corresponding to the target object and online information of all the devices; determining online equipment in all the equipment according to the online information; acquiring the corresponding running time of the online equipment; and determining that the running time of the online equipment is larger than the preset threshold value as the effective equipment.
In an exemplary embodiment, before determining the valid device bound under the target account number corresponding to the target object, the method further includes at least one of the following: acquiring first voice information of the target object, and determining whether the current state of the target object accords with a preset condition according to whether the first voice information is consistent with a target corpus; acquiring image information of the target object through an image acquisition device, determining state information of the target object according to the image information, and determining whether the current state of the target object meets the preset condition according to the state information; and acquiring physiological information of the target object through a target sensor, and determining whether the current state of the target object accords with the preset condition according to the physiological information.
In an exemplary embodiment, before controlling the active device according to the control strategy, the method further comprises: determining voice equipment according to the type information of the effective equipment; sending control information to the voice equipment, wherein the control information is used for controlling the voice equipment to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective equipment; acquiring second voice information of the target object in response to the inquiry information; and determining whether to close the effective equipment according to the second voice information.
In an exemplary embodiment, controlling the active device according to the control strategy includes: under the condition that the control strategy indicates that the effective equipment is closed when the running time is the preset threshold value, the effective equipment is forbidden to be closed before the running time of the effective equipment is the preset threshold value; closing the effective equipment under the condition that the control strategy indicates to control the effective equipment according to a scene to be executed; and controlling the effective equipment to enter a sleep state under the condition that the control strategy indicates to control the effective equipment to enter the sleep state.
In an exemplary embodiment, before obtaining the control policy of the active device, the method further includes: receiving the control strategy sent by the mobile terminal bound with the effective equipment, wherein the control strategy is set on the mobile terminal by a target object; and storing the control strategy in the terminal of the Internet of things corresponding to the effective equipment.
In an exemplary embodiment, before determining the valid device bound under the target account corresponding to the target object, the method further includes: under the condition that the current state of the target object is determined to be in accordance with a preset condition, determining whether other objects exist in a target area corresponding to the target object in a preset mode; under the condition that other objects exist in a target area corresponding to the target object, determining whether the current state of the other objects meets a preset condition; and under the condition that other objects exist in the target area corresponding to the target object and the current state of the other objects accords with a preset condition, determining effective equipment bound under the target account corresponding to the target object.
According to another embodiment of the present invention, there is also provided a control apparatus of a device, including: the first determining module is used for determining effective equipment bound under a target account corresponding to a target object under the condition that the current state of the target object meets a preset condition, wherein the effective equipment is equipment with the running time larger than a preset threshold value; the second determining module is used for determining whether a target scene to be executed exists or not, and determining whether the effective equipment exists an operation to be executed or not when the target scene is executed; the control module is used for acquiring a control strategy of the effective equipment and controlling the effective equipment according to the control strategy when a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the control method of the above-described apparatus when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the control method of the device described above through the computer program.
In the embodiment of the invention, under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with the running time larger than a preset threshold value; determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not; under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy; by adopting the technical scheme, the problem that the user possibly forgets to close the intelligent equipment in use when falling asleep, and then the danger hidden danger is brought is solved.
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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a hardware block diagram of a computer terminal of a control method of an apparatus according to an embodiment of the present invention;
fig. 2 is a flowchart of a control method of an apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a control method of an apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram (a) of a control device of an apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram (two) of a control device of an apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal of a control method of an apparatus according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a control method of an apparatus in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a control method of a device is provided and applied to the computer terminal, and fig. 2 is a flowchart of a control method of a device according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, determining effective equipment bound under a target account corresponding to a target object under the condition that the current state of the target object meets a preset condition, wherein the effective equipment is equipment with running time larger than a preset threshold value;
step S204, determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective device when the target scene is executed;
step S206, when there is a target scene to be executed and there is no operation to be executed by the effective device when executing the target scene, acquiring a control policy of the effective device, and controlling the effective device according to the control policy.
The computer terminal may be a server, which may be a single server, a server cluster formed by a plurality of servers, or a cloud server.
By way of example, the active device may be an intelligent home device in a home internet of things, such as a refrigerator, air conditioner, washing machine, etc.
Through the steps, under the condition that the current state of the target object accords with the preset condition, determining effective equipment bound under the target account corresponding to the target object, wherein the effective equipment is equipment with the running time larger than a preset threshold value; determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not; under the condition that a target scene to be executed exists and the effective equipment does not have operation to be executed when the target scene is executed, a control strategy of the effective equipment is obtained, and the effective equipment is controlled according to the control strategy, so that the problem that in the related technology, when a user falls asleep, the user possibly forgets to close the intelligent equipment in use, and further danger hidden danger is brought is solved.
In an exemplary embodiment, determining the effective device bound under the target account corresponding to the target object includes: acquiring all devices bound under a target account corresponding to the target object and online information of all the devices; determining online equipment in all the equipment according to the online information; acquiring the corresponding running time of the online equipment; and determining that the running time of the online equipment is larger than the preset threshold value as the effective equipment.
The embodiment of the invention provides a method for determining effective equipment bound under a target account corresponding to a target object, in particular to a method for determining effective equipment bound under the target account corresponding to the target object: the method comprises the steps of obtaining online equipment bound under a target account corresponding to a target object, and determining effective equipment with the running time larger than the preset threshold according to the running time of the online equipment, for example, taking equipment with the running time larger than 0 as the effective equipment, wherein the value of the preset threshold is not limited in the embodiment of the invention.
In one exemplary embodiment, it may be determined whether the current state of the target object meets a preset condition according to the following three ways:
1) Acquiring first voice information of the target object, and determining whether the current state of the target object accords with a preset condition according to whether the first voice information is consistent with a target corpus;
for example, under the condition that first voice information such as "i want to go to sleep", "the sleep" of the target object is acquired, it is determined whether the current state of the target object meets a preset condition.
2) Acquiring image information of the target object through an image acquisition device, determining state information of the target object according to the image information, and determining whether the current state of the target object meets the preset condition according to the state information;
for example, the image acquisition device in the target area acquires image information of the target object, whether the target object is in a sleep state is determined according to the image information, and when the target object is determined to be in the sleep state according to the image information, the current state of the target object is determined to be in accordance with the preset condition.
3) And acquiring physiological information of the target object through a target sensor, and determining whether the current state of the target object accords with the preset condition according to the physiological information.
For example, heartbeat information, breathing information and the like of the target object are acquired through a handheld device or a wearable device and the like, whether the target object is in a sleep state is determined according to the heartbeat information and/or the breathing information, and when the target object is in the sleep state according to the heartbeat information and/or the breathing information, the current state of the target object is determined to be in accordance with the preset condition.
In an exemplary embodiment, before controlling the active device according to the control policy, determining a voice device according to type information of the active device; sending control information to the voice equipment, wherein the control information is used for controlling the voice equipment to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective equipment; acquiring second voice information of the target object in response to the inquiry information; and determining whether to close the effective equipment according to the second voice information.
That is, in the case that it is determined that there is an effective device in the target area, playing inquiry information through a voice device to inquire whether the target object turns off the effective device, and in the case that second voice information of the target object in response to the inquiry information is received and the second voice information indicates that the effective device is turned off, turning off the effective device; and if second voice information of the target object responding to the inquiry information is received and the second voice information indicates that the effective equipment is continuously operated, the effective equipment is continuously operated.
In an exemplary embodiment, before sending control information to the voice device, acquiring account information of the target object, and acquiring a group of devices bound in the account information; determining a distance between each device in the set of devices and the target object; the device closest to the target object is determined to be the speech device among the set of devices.
In an exemplary embodiment, controlling the active device according to the control strategy includes: under the condition that the control strategy indicates that the effective equipment is closed when the running time is the preset threshold value, the effective equipment is forbidden to be closed before the running time of the effective equipment is the preset threshold value; closing the effective equipment under the condition that the control strategy indicates to control the effective equipment according to a scene to be executed; and controlling the effective equipment to enter a sleep state under the condition that the control strategy indicates to control the effective equipment to enter the sleep state.
In an exemplary embodiment, before obtaining a control policy of the active device, receiving the control policy sent by a mobile terminal bound to the active device, where the control policy is set on the mobile terminal by a target object; and storing the control strategy in the terminal of the Internet of things corresponding to the effective equipment.
That is, the target object may set a control policy of the effective device on the mobile terminal, and the server receives the control policy sent by the mobile terminal, so that the server determines the operation condition of the effective device according to the control policy.
In an exemplary embodiment, before determining the effective device bound under the target account corresponding to the target object, determining whether other objects exist in a target area corresponding to the target object in a preset manner under the condition that the current state of the target object is determined to be in accordance with a preset condition; under the condition that other objects exist in a target area corresponding to the target object, determining whether the current state of the other objects meets a preset condition; and under the condition that other objects exist in the target area corresponding to the target object and the current state of the other objects accords with a preset condition, determining effective equipment bound under the target account corresponding to the target object.
That is, if the current state of the target object meets the preset condition, determining whether other objects exist in the target area of the target object, if other objects exist in the target area corresponding to the target object, and if the current state of the other objects meets the preset condition, determining the valid device bound under the target account corresponding to the target object, it may be understood that if other objects exist in the target area, and if the other objects also enter the sleep state, determining the valid device bound under the target account corresponding to the target object.
In an exemplary embodiment, determining whether other objects exist in the target area corresponding to the target object in a preset manner at least includes one of the following: determining whether other objects exist in a target area corresponding to the target object through an infrared sensor; determining whether other objects exist in a target area corresponding to the target object or not through second image information acquired by an image acquisition device; and determining whether other objects exist in the target area corresponding to the target object through the photoelectric sensor.
In order to better understand the process of the control method of the above-mentioned device, the following describes the implementation method flow of the control of the above-mentioned device with reference to the alternative embodiment, but is not used to limit the technical solution of the embodiment of the present invention.
In order to better understand the embodiments of the present invention, the terms in the embodiments of the present invention will be explained first.
1、Spring Boot
Spring Boot is a brand new framework provided by the Pivotal team, and the design purpose of the Spring Boot is to simplify the initial building and development process of a new Spring application. The framework is configured in a particular manner so that developers no longer need to define a templated configuration. In this way, spring Boot is dedicated to be the leader in the rapidly developing field of rapid application development (rapid application development).
2. Redis cache
Redis is a high-performance key-value database. The method supports persistence of data, supports various data structures and supports backup of the data. The database pressure can be reduced, the overall performance is improved, and better user experience is brought.
3、Nacos
Nacos is a service infrastructure that builds a modern "service" centric application architecture (e.g., micro-service paradigm, yun Yuansheng paradigm) that addresses the discovery, management, and information configuration of micro-services, and can help developers to quickly implement dynamic service discovery, service configuration, service metadata, and traffic management, thereby making it more agile and easier to build, deliver, and manage micro-service platforms. Nacos supports discovery, configuration, and management of services of nearly all mainstream types (such as Kubernetes Service, gRPC & Dubbo RPC Service, springCloudRESTful Service).
4、websocket
websocket is a protocol that performs full duplex communication over a single TCP connection, making the exchange of data between a client and a server simpler, allowing the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete one handshake, and can directly create persistent connection between the two and perform bidirectional data transmission.
In this embodiment, a control method of an apparatus is provided, and fig. 3 is a schematic diagram of a control method of an apparatus according to an embodiment of the present invention, as shown in fig. 3, specifically including the following steps:
step S301: starting;
step S302: acquiring corpus information of a user;
step S303: determining whether the corpus information is a pre-sleep corpus (equivalent to the target corpus in the above embodiment), executing step S304 if the corpus information is the pre-sleep corpus, otherwise executing conventional logic;
step S304: acquiring effective equipment;
specifically, the effective equipment is obtained through the following steps:
step S3041: detecting all devices bound under an account of a user;
step S3042: acquiring online equipment;
step S3043: a determination is made in the online device as to whether there is a device with a runtime greater than 0.
Wherein, in case of a device with a run time greater than 0, acquiring a valid device; in the case where there is no device whose running time is greater than 0, step S306 is performed.
Step S305: determining whether a scene to be executed exists, executing step S306 if the scene to be executed does not exist, otherwise executing step S307;
step S306: playing the first target information, for example: "Bo' an (evening primrose);
step S307: determining whether the scene to be executed contains a valid device, executing step S308 if the scene to be executed contains a valid device, otherwise executing step S309;
step S308: executing a scene to be executed;
step S309: playing the second target information, for example: "n devices are operated at the same time, warm prompts, the devices are also operated, and the devices remember to check;
step S310: and (5) ending.
According to the embodiment of the invention, the pre-sleep reminding is automatically triggered through corpora such as 'I want to sleep', 'the sleep', and the like, so that a user does not need to actively inquire; acquiring online equipment under the condition of no perception and reminding a user of which equipment is in operation, wherein the user can perform relevant operation of the equipment according to the execution condition; and taking logic for scene-first execution based on the scene; in order to improve response time, the embodiment of the invention introduces redis cache and locktmq message middleware. The bonus brought by the intelligent families in the time of the Internet of things is fully disseminated, so that the users are more ensured.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment also provides a control device of the apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram (a) of a control device of an apparatus according to an embodiment of the present invention; as shown in fig. 4, includes:
the first determining module 42 is configured to determine an effective device bound under a target account corresponding to a target object if it is determined that a current state of the target object meets a preset condition, where the effective device is a device whose running time is greater than a preset threshold;
a second determining module 44, configured to determine whether a target scene to be executed exists, and determine whether an operation to be executed exists in the active device when the target scene is executed;
the control module 46 is configured to obtain a control policy of the effective device when there is a target scene to be executed and when the effective device does not have an operation to be executed when the target scene is executed, and control the effective device according to the control policy.
Through the device, under the condition that the current state of the target object accords with the preset condition, the effective equipment bound under the target account corresponding to the target object is determined, wherein the effective equipment is equipment with the running time larger than the preset threshold value; determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not; under the condition that a target scene to be executed exists and the effective equipment does not have operation to be executed when the target scene is executed, a control strategy of the effective equipment is obtained, and the effective equipment is controlled according to the control strategy, so that the problem that in the related technology, when a user falls asleep, the user possibly forgets to close the intelligent equipment in use, and further danger hidden danger is brought is solved.
In an exemplary embodiment, the first determining module is further configured to obtain all devices bound under a target account corresponding to the target object, and online information of all devices; determining online equipment in all the equipment according to the online information; acquiring the corresponding running time of the online equipment; and determining that the running time of the online equipment is larger than the preset threshold value as the effective equipment.
In an exemplary embodiment, fig. 5 is a block diagram (ii) of a control apparatus of an apparatus according to an embodiment of the present invention; as shown in fig. 5, further includes: an acquisition module 52 for at least one of: acquiring first voice information of the target object, and determining whether the current state of the target object accords with a preset condition according to whether the first voice information is consistent with a target corpus; acquiring image information of the target object through an image acquisition device, determining state information of the target object according to the image information, and determining whether the current state of the target object meets the preset condition according to the state information; and acquiring physiological information of the target object through a target sensor, and determining whether the current state of the target object accords with the preset condition according to the physiological information.
In an exemplary embodiment, the first determining module is further configured to determine a voice device according to the type information of the active device; sending control information to the voice equipment, wherein the control information is used for controlling the voice equipment to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective equipment; acquiring second voice information of the target object in response to the inquiry information; and determining whether to close the effective equipment according to the second voice information.
In an exemplary embodiment, the control module is further configured to prohibit, when the control policy indicates that the running time is the preset threshold, the active device from being turned off, until the running time of the active device is the preset threshold; closing the effective equipment under the condition that the control strategy indicates to control the effective equipment according to a scene to be executed; and controlling the effective equipment to enter a sleep state under the condition that the control strategy indicates to control the effective equipment to enter the sleep state.
In an exemplary embodiment, an upper acquisition module is configured to receive the control policy sent by the mobile terminal bound to the active device, where the control policy is set on the mobile terminal by the target object; and storing the control strategy in the terminal of the Internet of things corresponding to the effective equipment.
In an exemplary embodiment, the first determining module is further configured to determine, in a case where it is determined that the current state of the target object meets a preset condition, whether other objects exist in a target area corresponding to the target object in a preset manner; under the condition that other objects exist in a target area corresponding to the target object, determining whether the current state of the other objects meets a preset condition; and under the condition that other objects exist in the target area corresponding to the target object and the current state of the other objects accords with a preset condition, determining effective equipment bound under the target account corresponding to the target object.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with the running time larger than a preset threshold value;
s2, determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed;
s3, under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with the running time larger than a preset threshold value;
s2, determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed;
s3, under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A control method of an apparatus, characterized by comprising:
under the condition that the current state of a target object accords with a preset condition, determining effective equipment bound under a target account corresponding to the target object, wherein the effective equipment is equipment with running time larger than a preset threshold value;
determining whether a target scene to be executed exists or not, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed or not;
under the condition that a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy;
wherein prior to controlling the active device according to the control strategy, the method further comprises: acquiring account information of the target object and acquiring a group of devices bound in the account information; determining a distance between each device in the set of devices and the target object; determining a device closest to the target object among the group of devices as the voice device; and sending control information to the voice equipment so as to play inquiry information through the voice equipment, wherein the inquiry information is used for inquiring whether the target object closes the effective equipment.
2. The method for controlling a device according to claim 1, wherein determining an effective device bound under a target account corresponding to the target object includes:
acquiring all devices bound under a target account corresponding to the target object and online information of all the devices;
determining online equipment in all the equipment according to the online information;
acquiring the corresponding running time of the online equipment;
and determining that the running time of the online equipment is larger than the preset threshold value as the effective equipment.
3. The method for controlling a device according to claim 1, wherein before determining a valid device bound under a target account corresponding to the target object, the method further comprises at least one of:
acquiring first voice information of the target object, and determining whether the current state of the target object accords with a preset condition according to whether the first voice information is consistent with a target corpus;
acquiring image information of the target object through an image acquisition device, determining state information of the target object according to the image information, and determining whether the current state of the target object meets the preset condition according to the state information;
and acquiring physiological information of the target object through a target sensor, and determining whether the current state of the target object accords with the preset condition according to the physiological information.
4. A control method of a device according to any one of claims 1-3, characterized in that before controlling the active device according to the control strategy, the method further comprises:
determining voice equipment according to the type information of the effective equipment;
sending control information to the voice equipment, wherein the control information is used for controlling the voice equipment to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective equipment;
acquiring second voice information of the target object in response to the inquiry information;
and determining whether to close the effective equipment according to the second voice information.
5. The method of controlling an apparatus according to any one of claims 1 to 4, characterized in that controlling the active apparatus according to the control strategy comprises:
under the condition that the control strategy indicates that the effective equipment is closed when the running time is the preset threshold value, the effective equipment is forbidden to be closed before the running time of the effective equipment is the preset threshold value;
closing the effective equipment under the condition that the control strategy indicates to control the effective equipment according to a scene to be executed;
and controlling the effective equipment to enter a sleep state under the condition that the control strategy indicates to control the effective equipment to enter the sleep state.
6. A method of controlling a device according to any one of claims 1-3, characterized in that before obtaining the control strategy of the active device, the method further comprises:
receiving the control strategy sent by the mobile terminal bound with the effective equipment, wherein the control strategy is set on the mobile terminal by a target object;
and storing the control strategy in the terminal of the Internet of things corresponding to the effective equipment.
7. The method for controlling a device according to any one of claims 1 to 6, wherein before determining a valid device bound under a target account corresponding to the target object, the method further includes: under the condition that the current state of the target object is determined to be in accordance with a preset condition, determining whether other objects exist in a target area corresponding to the target object in a preset mode;
under the condition that other objects exist in a target area corresponding to the target object, determining whether the current state of the other objects meets a preset condition;
and under the condition that other objects exist in the target area corresponding to the target object and the current state of the other objects accords with a preset condition, determining effective equipment bound under the target account corresponding to the target object.
8. A control device of an apparatus, characterized by comprising:
the first determining module is used for determining effective equipment bound under a target account corresponding to a target object under the condition that the current state of the target object meets a preset condition, wherein the effective equipment is equipment with the running time larger than a preset threshold value;
the second determining module is used for determining whether a target scene to be executed exists or not, and determining whether the effective equipment exists an operation to be executed or not when the target scene is executed;
the control module is used for acquiring a control strategy of the effective equipment and controlling the effective equipment according to the control strategy when a target scene to be executed exists and the effective equipment does not exist operation to be executed when the target scene is executed;
the second determining module is used for acquiring account information of the target object and acquiring a group of devices bound in the account information; determining a distance between each device in the set of devices and the target object; determining a device closest to the target object among the group of devices as the voice device; and sending control information to the voice equipment so as to play inquiry information through the voice equipment, wherein the inquiry information is used for inquiring whether the target object closes the effective equipment.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202210327292.4A 2022-03-30 2022-03-30 Control method and device of equipment, storage medium and electronic device Active CN114785838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210327292.4A CN114785838B (en) 2022-03-30 2022-03-30 Control method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210327292.4A CN114785838B (en) 2022-03-30 2022-03-30 Control method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114785838A CN114785838A (en) 2022-07-22
CN114785838B true CN114785838B (en) 2024-01-26

Family

ID=82426411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210327292.4A Active CN114785838B (en) 2022-03-30 2022-03-30 Control method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114785838B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160123885A (en) * 2015-04-17 2016-10-26 삼성전자주식회사 Method and apparatus for photographing using electronic device capable of flaying
CN110864418A (en) * 2019-11-27 2020-03-06 广东美的制冷设备有限公司 Control method and device of air conditioning equipment and electronic equipment
CN111367402A (en) * 2018-12-26 2020-07-03 阿里巴巴集团控股有限公司 Task triggering method, interaction equipment and computer equipment
CN112130980A (en) * 2020-09-29 2020-12-25 海尔优家智能科技(北京)有限公司 Operation execution method and device, storage medium and electronic device
CN112637195A (en) * 2020-12-21 2021-04-09 维沃移动通信(杭州)有限公司 Method and device for controlling electronic equipment and electronic equipment
CN112737899A (en) * 2020-11-30 2021-04-30 青岛海尔科技有限公司 Intelligent device management method and device, storage medium and electronic device
JP2021099533A (en) * 2020-03-17 2021-07-01 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッドBeijing Baidu Netcom Science Technology Co., Ltd. Voice interaction processing method, device and electronic apparatus
CN113357754A (en) * 2021-05-28 2021-09-07 青岛海尔科技有限公司 Method and device for displaying running state, storage medium and electronic device
CN113596235A (en) * 2021-06-30 2021-11-02 青岛海尔科技有限公司 Operation instruction issuing method and device, storage medium and electronic device
CN113746708A (en) * 2020-05-28 2021-12-03 青岛海尔智能技术研发有限公司 Electric appliance configuration method and device, intelligent home system and computer equipment
CN114007235A (en) * 2021-10-29 2022-02-01 上海庆科信息技术有限公司 Scene rule writing method and device, storage medium, processor and electronic equipment
CN114126172A (en) * 2020-08-31 2022-03-01 华为技术有限公司 Control method of lighting equipment and wearable equipment
CN114253147A (en) * 2021-12-06 2022-03-29 青岛海尔科技有限公司 Intelligent device control method and device, electronic device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088710A1 (en) * 2014-09-22 2016-03-24 Xiaomi Inc. Method and apparatus for controlling smart light
CN107992281A (en) * 2017-10-27 2018-05-04 网易(杭州)网络有限公司 Visual display method and device, storage medium, the equipment of compensating sound information
CN110730115B (en) * 2019-09-11 2021-11-09 北京小米移动软件有限公司 Voice control method and device, terminal and storage medium
CN112669831B (en) * 2019-09-29 2022-10-21 百度在线网络技术(北京)有限公司 Voice recognition control method and device, electronic equipment and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160123885A (en) * 2015-04-17 2016-10-26 삼성전자주식회사 Method and apparatus for photographing using electronic device capable of flaying
CN111367402A (en) * 2018-12-26 2020-07-03 阿里巴巴集团控股有限公司 Task triggering method, interaction equipment and computer equipment
CN110864418A (en) * 2019-11-27 2020-03-06 广东美的制冷设备有限公司 Control method and device of air conditioning equipment and electronic equipment
JP2021099533A (en) * 2020-03-17 2021-07-01 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッドBeijing Baidu Netcom Science Technology Co., Ltd. Voice interaction processing method, device and electronic apparatus
CN113746708A (en) * 2020-05-28 2021-12-03 青岛海尔智能技术研发有限公司 Electric appliance configuration method and device, intelligent home system and computer equipment
CN114126172A (en) * 2020-08-31 2022-03-01 华为技术有限公司 Control method of lighting equipment and wearable equipment
CN112130980A (en) * 2020-09-29 2020-12-25 海尔优家智能科技(北京)有限公司 Operation execution method and device, storage medium and electronic device
CN112737899A (en) * 2020-11-30 2021-04-30 青岛海尔科技有限公司 Intelligent device management method and device, storage medium and electronic device
CN112637195A (en) * 2020-12-21 2021-04-09 维沃移动通信(杭州)有限公司 Method and device for controlling electronic equipment and electronic equipment
CN113357754A (en) * 2021-05-28 2021-09-07 青岛海尔科技有限公司 Method and device for displaying running state, storage medium and electronic device
CN113596235A (en) * 2021-06-30 2021-11-02 青岛海尔科技有限公司 Operation instruction issuing method and device, storage medium and electronic device
CN114007235A (en) * 2021-10-29 2022-02-01 上海庆科信息技术有限公司 Scene rule writing method and device, storage medium, processor and electronic equipment
CN114253147A (en) * 2021-12-06 2022-03-29 青岛海尔科技有限公司 Intelligent device control method and device, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
集成物联网环境下的服务冲突处理机制研究;张硕;大连理工大学;6-25 *

Also Published As

Publication number Publication date
CN114785838A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
KR102101319B1 (en) Network node availability prediction based on past history data
CN106993048B (en) Determine method and device, information recommendation method and the device of recommendation information
EP2285049B1 (en) Communication system having management apparatus and user apparatus, management apparatus, user apparatus, and method of controlling the same
CN110278568B (en) Method and network system for constructing networking based on network equipment
CN107409270B (en) Method and apparatus for establishing a connection between devices
CN109495433A (en) Data download method and device, storage medium and electronic device
CN106412078B (en) Accurate information method for pushing, device and system
CN107615791A (en) Apparatus and method for adding M2M services
CN109089247A (en) Using starting method, system, terminal device and computer readable storage medium
US20220224437A1 (en) Terminal control apparatus and method
CN116088901A (en) Firmware upgrading method and device, electronic equipment and computer storage medium
CN108664799B (en) Permission setting method and device for equipment management application
CN113726581B (en) Method and device for restoring factory configuration of network equipment and network equipment
CN114785838B (en) Control method and device of equipment, storage medium and electronic device
CN112817248B (en) Shared equipment management method and device, storage medium and electronic device
KR101493506B1 (en) Method for caching contents data in mobile game, and game server including caching system, and mobile device
CN107710793A (en) A kind of localization method and corresponding intrument
CN108931923B (en) Device control method and apparatus, storage medium, and electronic apparatus
KR20040109977A (en) succeeding method of data in mobile
CN112532741A (en) Intelligent device control method and device, electronic device and storage medium
CN106850246A (en) The recognition methods of facility information and device
CN112134856A (en) Method, system, server and storage medium for disabling application program
WO2024092379A1 (en) Data transmission method and apparatus, device, and storage medium
CN115913806A (en) Edge scene adjusting method and device, storage medium and electronic device
CN113747415B (en) Connection method and device of wireless access point, storage medium and electronic device

Legal Events

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