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

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

Info

Publication number
CN114785838A
CN114785838A CN202210327292.4A CN202210327292A CN114785838A CN 114785838 A CN114785838 A CN 114785838A CN 202210327292 A CN202210327292 A CN 202210327292A CN 114785838 A CN114785838 A CN 114785838A
Authority
CN
China
Prior art keywords
target object
target
equipment
executed
information
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.)
Granted
Application number
CN202210327292.4A
Other languages
Chinese (zh)
Other versions
CN114785838B (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

Images

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

Abstract

The invention discloses a method and a device for controlling 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 is determined to meet 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 greater than a preset threshold value; determining whether a target scene to be executed exists, and determining whether the effective equipment has an operation to be executed when the target scene is executed; and under the conditions that a target scene to be executed exists and no operation to be executed exists in the effective equipment 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

Device control method and device, storage medium, and electronic apparatus
Technical Field
The present invention relates to the field of communications, and in particular, to a device control method and apparatus, a storage medium, and an electronic apparatus.
Background
With the progress of scientific technology and the development of artificial intelligence, intelligent algorithms are applied to daily life more and more, the intelligent development of the intelligent algorithms is very important, and the most important problem of intelligence is to intelligently solve the urgent needs of users.
In the current society, users often use intelligent devices before falling asleep, but when the users fall asleep, the users may forget to turn off the intelligent devices being used, so that the intelligent devices are consumed all the time, and even dangerous things occur, such as fire hazards caused by the fact that a cooker is not closed and an oven is not closed.
Aiming at the problem that in the related art, when a user falls asleep, the user may forget to turn off the intelligent device which is being used, so that the danger hidden danger is caused, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a device control method and device, a storage medium and an electronic device, and at least solves the problem that in the related art, when a user falls asleep, the user may forget to turn off an intelligent device in use, and further dangerous potential hazards are caused.
According to an embodiment of the present invention, there is provided a method of controlling a device, including: under the condition that the current state of a target object is determined to meet 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 greater than a preset threshold value; determining whether a target scene to be executed exists, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed; and under the conditions that a target scene to be executed exists and the effective equipment does not have an 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 valid devices 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 running time corresponding to the online equipment; and determining the equipment with the running time greater than the preset threshold value in the online equipment as the effective equipment.
In an exemplary embodiment, before determining a valid device bound under a target account corresponding to the target object, the method further includes at least one of: acquiring first voice information of the target object, and determining whether the current state of the target object meets a preset condition according to whether the first voice information is consistent with the target corpus or not; 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 or not 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 meets the preset condition or not according to the physiological information.
In one 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 device, wherein the control information is used for controlling the voice device to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective device; acquiring second voice information of the target object responding to the inquiry information; and determining whether to close the effective equipment or not according to the second voice information.
In one exemplary embodiment, controlling the active device according to the control strategy includes: under the condition that the active device is closed when the control strategy indicates that the running time is the preset threshold, the active device is prohibited from being closed before the running time of the active device is the preset threshold; closing the effective equipment under the condition that the control strategy indicates that the effective equipment is controlled according to the scene to be executed; and under the condition that the control strategy indicates to control the effective equipment to enter the sleep state, controlling the effective equipment to enter the sleep state.
In an exemplary embodiment, before obtaining the control policy 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 Internet of things terminal corresponding to the effective equipment.
In an exemplary embodiment, 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 accord with a preset condition, determining whether other objects exist in a target area corresponding to the target object or not in a preset mode; determining whether the current states of other objects meet preset conditions or not under the condition that other objects exist in a target area corresponding to the target object; and determining valid equipment bound under a target account corresponding to the target object under the condition that other objects exist in a target area corresponding to the target object and the current states of the other objects meet preset conditions.
According to another embodiment of the present invention, there is also provided a control apparatus of a device, including: the device comprises a first determining module, a second determining module and a third determining module, wherein 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 is determined to meet a preset condition, and the effective equipment is equipment with the running time larger than a preset threshold value; the second determination module is used for 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 the control module is used for acquiring the control strategy of the effective equipment and controlling the effective equipment according to the control strategy under the conditions that the target scene to be executed exists and the operation to be executed does not exist in the effective equipment 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 apparatus when running.
According to 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 in the memory and executable on the processor, wherein the processor executes the control method of the above apparatus through the computer program.
In the embodiment of the invention, under the condition that the current state of a target object is determined to meet 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 greater than a preset threshold value; determining whether a target scene to be executed exists, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed; under the conditions that a target scene to be executed exists and no operation to be executed exists in the effective equipment 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 when a user falls asleep, the user possibly forgets to close the intelligent equipment in use so as to bring about dangerous hidden danger 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 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 computer terminal of a control method of an apparatus according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of controlling a device 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 invention;
FIG. 4 is a block diagram (one) of the control apparatus of an apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram (ii) of the control device of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the example of the device running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a device control method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the control method of the device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The 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 located remotely from the processor 102, which may be connected to a computer terminal over 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 the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected 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 used to communicate with the internet in a wireless manner.
In this embodiment, a control method of a device is provided, which is applied to the computer terminal, and fig. 2 is a flowchart of the control method of the device according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that the current state of a target object is determined to meet 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 greater than a preset threshold value;
step S204, determining whether a target scene to be executed exists, and determining whether the effective equipment has an operation to be executed 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 in the effective device when the target scene is executed, a control strategy of the effective device is obtained, and the effective device is controlled according to the control strategy.
For example, the computer terminal may be a server, and the server may be a single server, a server cluster composed of multiple servers, or a cloud server.
For example, the effective device may be a smart home device in a home internet of things, such as a refrigerator, an air conditioner, a washing machine, and the like.
Through the steps, under the condition that the current state of the target object is determined to meet 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 greater than a preset threshold value; determining whether a target scene to be executed exists, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed; when a target scene to be executed exists and the target scene is executed, the control strategy of the effective equipment is obtained under the condition that the effective equipment does not have operation to be executed, and the effective equipment is controlled according to the control strategy, so that the problem that in the related art, when a user falls asleep, the user possibly forgets to close the intelligent equipment which is being used, and further dangerous hidden danger is caused is solved.
In an exemplary embodiment, determining valid devices 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 running time corresponding to the online equipment; and determining the device with the running time larger than the preset threshold value in the online device as the effective device.
The embodiment of the invention provides a method for determining effective equipment bound under a target account corresponding to a target object, which comprises the following specific steps: the method includes the steps of obtaining online equipment bound under a target account corresponding to a target object, and determining valid equipment with the running time greater than the preset threshold according to the running time of the online equipment, for example, taking the equipment with the running time greater than 0 as the valid equipment, and it should be noted that the value of the preset threshold is not limited in the embodiment of the present invention.
In an exemplary embodiment, whether the current state of the target object meets a preset condition may be determined 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 meets a preset condition according to whether the first voice information is consistent with a target corpus;
for example, when first voice information of a target object, such as "i am going to sleep", "this sleep", 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 or not according to the state information;
for example, image acquisition devices in the target area acquire image information of a target object, determine whether the target object is in a sleep state according to the image information, and determine that the current state of the target object meets the preset condition under the condition that the target object is determined to be in the sleep state according to the image information.
3) And acquiring physiological information of the target object through a target sensor, and determining whether the current state of the target object meets the preset condition or not 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 under the condition that the target object is determined to be in the sleep state according to the heartbeat information and/or the breathing information, the current state of the target object is determined to meet the preset condition.
In an exemplary embodiment, before controlling the active device according to the control policy, a voice device is determined according to type information of the active device; sending control information to the voice device, wherein the control information is used for controlling the voice device to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective device; acquiring second voice information of the target object responding to the inquiry information; and determining whether to close the effective equipment or not according to the second voice information.
That is, in a case where it is determined that there is a valid device in the target area, the query information is played through the voice device to query the target object whether to close the valid device, and in a case where second voice information of the target object responding to the query information is received and the second voice information indicates to close the valid device, the valid device is closed; and when 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, continuously operating the effective equipment.
In an exemplary embodiment, before sending control information to the voice device, account information of the target object is acquired, and a group of devices bound in the account information is acquired; 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.
In one exemplary embodiment, controlling the active device according to the control strategy includes: under the condition that the active device is closed when the control strategy indicates that the running time is the preset threshold, the active device is prohibited to be closed before the running time of the active device is the preset threshold; closing the effective equipment under the condition that the control strategy indicates that the effective equipment is controlled according to the scene to be executed; and under the condition that the control strategy indicates to control the effective equipment to enter the sleep state, controlling the effective equipment to enter the sleep state.
In an exemplary embodiment, before acquiring 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 Internet of things terminal corresponding to the effective equipment.
That is to say, 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 operating condition of the effective device according to the control policy.
In an exemplary embodiment, before determining valid devices bound under a target account corresponding to the target object, under the condition that the current state of the target object is determined to meet a preset condition, determining whether other objects exist in a target area corresponding to the target object in a preset mode; determining whether the current states of other objects meet preset conditions or not under the condition that other objects exist in a target area corresponding to the target object; and determining valid equipment bound under a target account corresponding to the target object under the condition that other objects exist in a target area corresponding to the target object and the current states of the other objects meet preset conditions.
That is to say, when the current state of the target object meets the preset condition, it is determined whether another object exists in the target area of the target object, and when another object exists in the target area corresponding to the target object and the current state of the another object meets the preset condition, it is determined that an active device bound to the target account corresponding to the target object exists in the target area.
In an exemplary embodiment, determining whether there are other objects in a target area corresponding to the target object in a preset manner includes at least one of: 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 through second image information acquired by an image acquisition device; and determining whether other objects exist in a target area corresponding to the target object through a photoelectric sensor.
In order to better understand the process of the control method of the above device, the following describes a flow of the implementation method of the control of the above device with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
For better understanding of the embodiments of the present invention, terms used in the embodiments of the present invention will be explained first.
1、Spring Boot
Spring Boot is a completely new framework provided by the Pivotal team, and is designed to simplify the initial set-up and development processes of new Spring applications. The framework uses a specific way to configure, thereby eliminating the need for developers to define a templated configuration. In this way, Spring boots are dedicated to become the leader in the briskly developing field of rapid application development (rapid application development).
2. Redis cache
Redis is a high-performance key-value database. The method supports the persistence of data, supports various data structures and supports the backup of data. The database pressure can be reduced, the overall performance is improved, and better user experience is brought.
3、Nacos
The Nacos is a service infrastructure for constructing a modern application architecture (such as a micro-service paradigm and a cloud-native paradigm) taking 'service' as a center, is dedicated to discovery, management and information configuration of micro-services, and can help developers quickly realize dynamic service discovery, service configuration, service metadata and flow management, so that a micro-service platform is constructed, delivered and managed more quickly and easily. The Nacos supports discovery, configuration and management of services of almost all mainstream types, such as Kubernets Service, gRPC & Dubbo RPC Service, SpringCloudRESTful Service.
4、websocket
The websocket is a protocol for full-duplex communication on a single TCP connection, so that data exchange between a client and a server is simpler, and the server is allowed to actively push data to the client. In the WebSocket API, the browser and the server only need to complete one handshake, and persistent connection can be directly established between the browser and the server, and bidirectional data transmission is carried out.
In this embodiment, a method for controlling a device is provided, and fig. 3 is a schematic diagram of a method for controlling a device according to an embodiment of the present invention, as shown in fig. 3, the following steps are specifically performed:
step S301: starting;
step S302: obtaining corpus information of a user;
step S303: determining whether the corpus information is the pre-sleep corpus (corresponding to the target corpus in the above embodiment), if the corpus information is the pre-sleep corpus, performing step S304, otherwise, performing a normal logic;
step S304: obtaining 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: determining whether there is a device having a runtime greater than 0 among the online devices.
Acquiring effective equipment under the condition that equipment with the running time greater than 0 exists; in the case where there is no device having a running time greater than 0, step S306 is performed.
Step S305: determining whether a scene to be executed exists, if the scene to be executed does not exist, executing step S306, otherwise executing step S307;
step S306: playing the first target information, for example: 'evening bridge';
step S307: determining whether the scene to be executed contains the effective equipment, and executing the step S308 under the condition that the scene to be executed contains the effective equipment, otherwise executing the step S309;
step S308: executing a scene to be executed;
step S309: playing the second target information, for example: "running n devices simultaneously, prompting, and remembering to view during running of the devices";
step S310: and (6) ending.
According to the embodiment of the invention, the pre-sleep reminding is automatically triggered through the linguistic data such as 'I want to sleep', 'the sleep' and the like, and a user does not need to actively inquire; acquiring online equipment under the condition of no perception and reminding a user of which the equipment is operated, wherein the user can perform relevant operation on the equipment according to the execution condition; and logic to take scene-first execution based on the scene; in order to improve response time, the embodiment of the invention introduces a redis cache and a rocktmq message middleware. The dividends brought by smart families in the era of the internet of things are fully disseminated, so that users can obtain more guarantees.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a control device of the apparatus is further provided, and the control device of the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated after the description is given. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 4 is a block diagram (one) of the control apparatus 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, when it is determined that the current state of the target object meets a preset condition, determine an effective device bound under a target account corresponding to the target object, 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 there is a target scenario to be executed, and determine whether there is an operation to be executed by the active device when executing the target scenario;
a control module 46, configured to, in the presence of a target scene to be executed and in a case that there is no operation to be executed in the active device when the target scene is executed, acquire a control policy of the active device, and control the active device according to the control policy.
By the device, under the condition that the current state of the target object is determined to meet 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 greater than a preset threshold value; determining whether a target scene to be executed exists, and determining whether an operation to be executed exists in the effective equipment when the target scene is executed; when a target scene to be executed exists and the target scene is executed, the control strategy of the effective equipment is obtained under the condition that the effective equipment does not have operation to be executed, and the effective equipment is controlled according to the control strategy, so that the problem that in the related art, when a user falls asleep, the user possibly forgets to close the intelligent equipment which is being used, and further dangerous hidden danger is caused 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 the devices; determining online equipment in all the equipment according to the online information; acquiring the running time corresponding to the online equipment; and determining the equipment with the running time greater than the preset threshold value in the online equipment as the effective equipment.
In an exemplary embodiment, fig. 5 is a block diagram of a control apparatus of a device according to an embodiment of the present invention (ii); as shown in fig. 5, the method further includes: an obtaining module 52 configured to at least one of: acquiring first voice information of the target object, and determining whether the current state of the target object meets a preset condition according to whether the first voice information is consistent with the target corpus or not; 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 or not 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 meets the preset condition or not 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 valid device; sending control information to the voice device, wherein the control information is used for controlling the voice device to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective device; acquiring second voice information of the target object responding to the inquiry information; and determining whether to close the effective equipment or not according to the second voice information.
In an exemplary embodiment, the control module is further configured to, in a case that the active device is turned off when the control policy indicates that the running time is the preset threshold, prohibit turning off the active device before the running time of the active device is the preset threshold; under the condition that the control strategy indicates that the effective equipment is controlled according to the scene to be executed, closing the effective equipment; and under the condition that the control strategy indicates that the effective equipment is controlled to enter the sleep state, controlling the effective equipment to enter the sleep state.
In an exemplary embodiment, the uplink acquisition module is configured to receive the control policy sent by the mobile terminal bound to the valid device, where the control policy is set on the mobile terminal by a target object; and storing the control strategy in the Internet of things terminal corresponding to the effective equipment.
In an exemplary embodiment, the first determining module is further configured to determine, in a preset manner, whether there are other objects in a target area corresponding to the target object, when it is determined that the current state of the target object meets a preset condition; determining whether the current states of other objects meet preset conditions or not under the condition that other objects exist in a target area corresponding to the target object; and determining valid equipment bound under a target account corresponding to the target object under the condition that other objects exist in a target area corresponding to the target object and the current states of the other objects meet preset conditions.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in this embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, determining valid equipment bound under a target account corresponding to a target object under the condition that the current state of the target object is determined to meet a preset condition, wherein the valid equipment is equipment with the running time greater than a preset threshold value;
s2, determining whether a target scene to be executed exists, and determining whether the effective equipment has an operation to be executed when the target scene is executed;
and S3, when a target scene to be executed exists and the effective equipment does not have an 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.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining valid equipment bound under a target account corresponding to a target object under the condition that the current state of the target object is determined to meet a preset condition, wherein the valid equipment is equipment with the running time greater than a preset threshold value;
s2, determining whether a target scene to be executed exists, and determining whether the effective equipment has an operation to be executed when the target scene is executed;
s3, when there is a target scene to be executed and there is no operation to be executed in the effective device when the target scene is executed, acquiring the control strategy of the effective device, and controlling the effective device according to the control strategy.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as individual integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1. A method of controlling a device, comprising:
under the condition that the current state of a target object is determined to meet 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 greater than a preset threshold value;
determining whether a target scene to be executed exists, and determining whether the effective equipment has an operation to be executed when the target scene is executed;
and under the conditions that a target scene to be executed exists and no operation to be executed exists in the effective equipment when the target scene is executed, acquiring a control strategy of the effective equipment, and controlling the effective equipment according to the control strategy.
2. The device control method according to claim 1, wherein determining valid devices 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 running time corresponding to the online equipment;
and determining the device with the running time larger than the preset threshold value in the online device as the effective device.
3. The device control method according to claim 1, wherein before determining a valid device bound under a target account corresponding to the target object, the method further includes at least one of:
acquiring first voice information of the target object, and determining whether the current state of the target object meets 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 or not 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 meets the preset condition or not according to the physiological information.
4. The method for controlling a device according to any one of claims 1 to 3, wherein 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 device, wherein the control information is used for controlling the voice device to play inquiry information, and the inquiry information is used for inquiring whether the target object closes the effective device;
acquiring second voice information of the target object responding to the inquiry information;
and determining whether to close the effective equipment or not according to the second voice information.
5. The method for controlling the device according to any one of claims 1 to 4, wherein controlling the active device according to the control strategy includes:
under the condition that the active device is closed when the control strategy indicates that the running time is the preset threshold, the active device is prohibited from being closed before the running time of the active device is the preset threshold;
under the condition that the control strategy indicates that the effective equipment is controlled according to the scene to be executed, closing the effective equipment;
and under the condition that the control strategy indicates that the effective equipment is controlled to enter the sleep state, controlling the effective equipment to enter the sleep state.
6. The method for controlling a device according to any one of claims 1 to 3, wherein 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 Internet of things terminal corresponding to the effective equipment.
7. The method according to any one of claims 1 to 6, wherein before determining valid devices 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 accord with a preset condition, determining whether other objects exist in a target area corresponding to the target object or not in a preset mode;
under the condition that other objects exist in a target area corresponding to the target object, determining whether the current states of the other objects meet a preset condition;
and determining valid equipment bound under a target account corresponding to the target object under the condition that other objects exist in a target area corresponding to the target object and the current states of the other objects meet preset conditions.
8. A control apparatus of a device, characterized by comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein 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 is determined to meet a preset condition, and the effective equipment is equipment with the running time greater than a preset threshold value;
the second determination module is used for determining whether a target scene to be executed exists or not and determining whether the effective equipment has an operation to be executed when the target scene is executed or not;
and the control module is used for acquiring the control strategy of the effective equipment and controlling the effective equipment according to the control strategy under the conditions that the target scene to be executed exists and the operation to be executed does not exist in the effective equipment when the target scene is executed.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of 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 of any of 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 true CN114785838A (en) 2022-07-22
CN114785838B 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 (17)

* 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
KR20160123885A (en) * 2015-04-17 2016-10-26 삼성전자주식회사 Method and apparatus for photographing using electronic device capable of flaying
US20190126151A1 (en) * 2017-10-27 2019-05-02 Netease (Hangzhou) Network Co.,Ltd. Visual display method for compensating sound information, computer readable storage medium and electronic device
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
US20210074293A1 (en) * 2019-09-11 2021-03-11 Beijing Xiaomi Mobile Software Co., Ltd. Method for voice control, terminal, and non-transitory computer-readable storage medium
US20210097993A1 (en) * 2019-09-29 2021-04-01 Baidu Online Network Technology (Beijing) Co., Ltd. Speech recognition control method and apparatus, electronic device and readable storage medium
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

Patent Citations (17)

* 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
KR20160123885A (en) * 2015-04-17 2016-10-26 삼성전자주식회사 Method and apparatus for photographing using electronic device capable of flaying
US20190126151A1 (en) * 2017-10-27 2019-05-02 Netease (Hangzhou) Network Co.,Ltd. Visual display method for compensating sound information, computer readable storage medium and electronic device
CN111367402A (en) * 2018-12-26 2020-07-03 阿里巴巴集团控股有限公司 Task triggering method, interaction equipment and computer equipment
US20210074293A1 (en) * 2019-09-11 2021-03-11 Beijing Xiaomi Mobile Software Co., Ltd. Method for voice control, terminal, and non-transitory computer-readable storage medium
US20210097993A1 (en) * 2019-09-29 2021-04-01 Baidu Online Network Technology (Beijing) Co., Ltd. Speech recognition control method and apparatus, electronic device and readable storage medium
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
张硕: "集成物联网环境下的服务冲突处理机制研究", 大连理工大学, pages 6 - 25 *

Also Published As

Publication number Publication date
CN114785838B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN110795179B (en) Display method and electronic equipment
US10771854B2 (en) Video streaming apparatus and method in electronic device
WO2023098002A1 (en) Method, system and apparatus for controlling household appliance, and storage medium and electronic apparatus
CN109089247A (en) Using starting method, system, terminal device and computer readable storage medium
CN106412078B (en) Accurate information method for pushing, device and system
CN105917613A (en) Software upgrading method and device
CN112130980A (en) Operation execution method and device, storage medium and electronic device
CN108664799B (en) Permission setting method and device for equipment management application
CN105988841A (en) Update method of application program, and mobile terminal
WO2017008404A1 (en) Mobile terminal control method, device and system
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN114785838B (en) Control method and device of equipment, storage medium and electronic device
KR101493506B1 (en) Method for caching contents data in mobile game, and game server including caching system, and mobile device
CN112261611B (en) Service processing method, device and storage medium
US20220141315A1 (en) Apparatus and method for controlling application relocation in edge computing environment
CN107395493B (en) Method and device for sharing message based on intention
WO2023098055A1 (en) Low-power-consumption mode starting method and apparatus, storage medium, and electronic apparatus
CN108931923B (en) Device control method and apparatus, storage medium, and electronic apparatus
CN113572816B (en) Equipment control processing method and device, storage medium and electronic device
CN108632955A (en) network connection setting method, device, storage medium and terminal device
CN113433832A (en) Scene application method and device, storage medium and electronic equipment
CN112532741A (en) Intelligent device control method and device, electronic device and storage medium
CN111427316A (en) Scene triggering method and device, storage medium and electronic device
CN111818190A (en) Electronic device for supporting low latency Domain Name System (DNS) processing

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