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

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

Info

Publication number
CN114385252A
CN114385252A CN202111570786.7A CN202111570786A CN114385252A CN 114385252 A CN114385252 A CN 114385252A CN 202111570786 A CN202111570786 A CN 202111570786A CN 114385252 A CN114385252 A CN 114385252A
Authority
CN
China
Prior art keywords
display
controlled
control
triggered
target view
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111570786.7A
Other languages
Chinese (zh)
Inventor
史云奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111570786.7A priority Critical patent/CN114385252A/en
Publication of CN114385252A publication Critical patent/CN114385252A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an equipment control method, an equipment control device, a storage medium and electronic equipment, and relates to the technical field of Internet of things, wherein the method comprises the following steps: detecting a local control interface to determine a display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device; when the target view is triggered, displaying the control window; and sending the control instruction triggered in the control window to the awakened device to be controlled. The method and the device can reliably improve the control efficiency of the equipment and improve the user experience.

Description

Device control method, device, storage medium and electronic device
Technical Field
The application relates to the technical field of Internet of things, in particular to a device control method and device, a storage medium and electronic equipment.
Background
The device usually works in a standby low-power mode, and needs to be waken up when being controlled, at present, when the device is waken up and controlled, the user usually needs to wake up when starting control operation, and because a series of processes are usually needed when the device is waken up, and the device itself needs a certain time, the control efficiency of the device is low, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a scheme, so that the control efficiency of the equipment can be reliably improved, and the user experience is improved.
The embodiment of the application provides the following technical scheme:
according to an embodiment of the present application, an apparatus control method includes: detecting a local control interface to determine a display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device; when the target view is triggered, displaying the control window; and sending the control instruction triggered in the control window to the awakened device to be controlled.
In some embodiments of the present application, the detecting the local control interface includes: when the local control interface is initialized, detecting the control interface; and/or detecting the control interface when the sliding of the view list in the control interface is monitored.
In some embodiments of the present application, the display status comprises a display size; the determining the display state of the target view in the control interface comprises: determining a display area of the target view in the control interface; and calculating the size of the display area to obtain the display size.
In some embodiments of the present application, the display status comprises a display position; the determining the display state of the target view in the control interface comprises: determining a display area of the target view in the control interface; and calculating the position of the display area to obtain the display position.
In some embodiments of the present application, the sending a wake-up instruction to the device to be controlled if the display state meets a state to be triggered includes: and if the display size is larger than a preset size threshold value, determining that the display size meets a state to be triggered, and sending a wake-up instruction to the equipment to be controlled.
In some embodiments of the present application, the sending a wake-up instruction to the device to be controlled if the display state meets a state to be triggered includes: and if the deviation between the display position and the preset display position is smaller than a preset deviation threshold value, determining that the display position accords with a to-be-triggered state, and sending a wake-up instruction to the to-be-controlled device.
In some embodiments of the present application, further comprising: acquiring a historical display position of the target view and a corresponding historical screen sliding gesture when the target view is historically triggered in a local control interface; and determining the preset display position according to the historical display position, the historical screen sliding gesture and the current screen sliding gesture.
According to an embodiment of the present application, an apparatus control device includes: the device comprises a detection module, a display module and a control module, wherein the detection module is used for detecting a local control interface so as to determine the display state of a target view in the control interface, and the target view is associated with a control window of a device to be controlled; the awakening module is used for sending an awakening instruction to the equipment to be controlled when the display state accords with a state to be triggered, and the awakening instruction is used for awakening the equipment to be controlled; the display module is used for displaying the control window when the target view is triggered; and the sending module is used for sending the control instruction triggered in the control window to the awakened device to be controlled.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the application, a local control interface is detected to determine the display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device; when the target view is triggered, displaying the control window; and sending the control instruction triggered in the control window to the awakened device to be controlled.
In this way, the display state of the target view is monitored locally, when the display state accords with the state to be triggered, the awakening instruction is sent to the equipment to be controlled, the equipment to be controlled is extracted and awakened, the control is directly performed, the equipment control efficiency is high, the problem that the electric quantity of the equipment is too fast in the related mode of unconditional early awakening can be avoided, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
Fig. 2 shows a flow chart of a device control method according to an embodiment of the present application.
Fig. 3 shows a block diagram of a device control apparatus according to an embodiment of the present application.
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, as those of ordinary skill in the art will appreciate that various steps and operations described below may be implemented in hardware.
Fig. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a cloud server 101, a device 102, and a device 103. Devices 102 and 103 may be any computer device, such as a computer, a mobile phone, a smart watch, a home appliance, and so on. The cloud server 101 may provide a server of cloud services. In one example, device 102 is an intelligent door lock and device 103 is a user terminal.
In one implementation of this example, the device 102 may: detecting a local control interface to determine a display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device; when the target view is triggered, displaying the control window; and sending the control instruction triggered in the control window to the awakened device to be controlled. The device to be controlled may be the device 103, the device 103 may establish a long link (such as a TCP long connection) with the cloud server 101, the device 102 may send the wake-up instruction to the cloud server 101, and the cloud server 101 sends the wake-up instruction to the device 103 through the long link.
Fig. 2 schematically shows a flow chart of a device control method according to an embodiment of the present application. The execution subject of the device control method may be any device, such as the device 102 shown in fig. 1.
As shown in fig. 2, the device control method may include steps S210 to S240.
Step S210, detecting a local control interface to determine the display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; step S220, if the display state accords with a state to be triggered, sending a wake-up instruction to the equipment to be controlled, wherein the wake-up instruction is used for waking up the equipment to be controlled; step S230, when the target view is triggered, displaying the control window; step S240, sending the control instruction triggered in the control window to the awakened device to be controlled.
The control interface can be a locally specified control interface, the control interface can be locally detected in real time or at regular time, the target view corresponds to the control inlet of the target device, namely the target view is associated with the control window of the device to be controlled, the target view can be displayed in a card form, and the display states of the display size, the display position and the like of the target view in the control interface can be detected through image detection.
The to-be-triggered state can be a state which is specified in advance to represent that the target view is in a state of waiting for triggering of a user, when the display state accords with the to-be-triggered state, a wake-up instruction is sent to the to-be-controlled device, the to-be-controlled device can be woken up to a working mode, and the device can be in a low-power-consumption mode before being woken up.
When the target view is triggered, a control window is displayed, a user can perform control operation in the control window to generate a corresponding control instruction, and then the control instruction triggered in the control window can be locally sent to the awakened device to be controlled, so that the device to be controlled is controlled to execute the action indicated by the control instruction.
In this way, based on steps S210 to S240, the display state of the target view is monitored locally, and when the display state meets the state to be triggered, a wakeup instruction is sent to the device to be controlled, the device to be controlled is extracted and wakened up, and the control is directly performed, so that the device control efficiency is high, and the problem that the power consumption of the device is too fast in the related mode of unconditional early wakeup can be avoided, and the user experience is improved.
The following describes a specific procedure of each step performed when the apparatus control is performed.
In step S210, a local control interface is detected to determine a display state of a target view in the control interface, where the target view is associated with a control window of a device to be controlled.
The control interface can be a locally specified control interface, the control interface can be locally detected in real time or at regular time, the target view corresponds to the control inlet of the target device, namely the target view is associated with the control window of the device to be controlled, the target view can be displayed in a card form, and the display states of the display size, the display position and the like of the target view in the control interface can be detected through image detection.
In one embodiment, in step S210, the detecting the local control interface includes: when the local control interface is initialized, detecting the control interface; and/or detecting the control interface when the sliding of the view list in the control interface is monitored.
The local control interface initialization can be that a user opens the control interface or automatically initializes the control interface when the device is initialized, and the view list comprises a plurality of views, and the user slides the view list to find the target view.
When the local control interface is initialized, the control interface is detected, and/or when the sliding of the view list in the control interface is monitored, the control interface is detected, so that invalid detection can be avoided, and the detection reliability is improved.
In one embodiment, in step S210, the display status includes a display size; the determining the display state of the target view in the control interface comprises: determining a display area of the target view in the control interface; and calculating the size of the display area to obtain the display size.
The display area of the target video in the screen can be detected by carrying out image detection on the control interface, and the display size can be obtained by carrying out size calculation such as area or side length on the displayed display area.
In one embodiment, in step S210, the display status includes a display position; the determining the display state of the target view in the control interface comprises: determining a display area of the target view in the control interface; and calculating the position of the display area to obtain the display position.
The display area of the target video in the screen can be detected by carrying out image detection on the control interface, and the display coordinates of the displayed display area in the screen can be calculated to serve as the display position.
In step S220, if the display state meets a to-be-triggered state, a wake-up instruction is sent to the to-be-controlled device, where the wake-up instruction is used to wake up the to-be-controlled device.
The to-be-triggered state can be a state which is specified in advance to represent that the target view is in a state of waiting for triggering of a user, when the display state accords with the to-be-triggered state, a wake-up instruction is sent to the to-be-controlled device, the to-be-controlled device can be woken up to a working mode, and the device can be in a low-power-consumption mode before being woken up.
In an embodiment, the sending a wake-up instruction to the device to be controlled if the display state meets a state to be triggered includes: and if the display size is larger than a preset size threshold value, determining that the display size meets a state to be triggered, and sending a wake-up instruction to the equipment to be controlled.
The preset size threshold value can be 0, and at the moment, as long as the target view appears in the control interface, a wake-up instruction is sent to the equipment to be controlled; the predetermined size threshold may also be the same value of two-thirds of the original size of the target view, and at this time, the target view appears in the control interface and can be triggered by the user, so as to send a wake-up instruction to the device to be controlled.
In an embodiment, the sending a wake-up instruction to the device to be controlled if the display state meets a state to be triggered includes: and if the deviation between the display position and the preset display position is smaller than a preset deviation threshold value, determining that the display position accords with a to-be-triggered state, and sending a wake-up instruction to the to-be-controlled device.
The preset display position can be a preset display position representing a target view when a target user frequently triggers the view, deviation can be obtained by calculating a difference value between the display position and the preset display position, when the deviation is smaller than a preset deviation threshold value, the target view is determined to be displayed near the preset display position, the user is most likely to trigger the target view, at the moment, the display position is further accurately determined to accord with a to-be-triggered state, a wake-up instruction is sent to the to-be-controlled device, and effectiveness of waking up the to-be-controlled device is further improved.
In one embodiment, the method further comprises: acquiring a historical display position of the target view and a corresponding historical screen sliding gesture when the target view is historically triggered in a local control interface; and determining the preset display position according to the historical display position, the historical screen sliding gesture and the current screen sliding gesture.
The historical display position is a display position recorded in the history of the target view, the historical screen sliding gesture is a trigger gesture of a user when the target view is displayed at the historical display position, the historical screen sliding gesture and the current screen sliding gesture can be detected according to the sliding mode of the user and the like based on an existing gesture monitoring method, and the historical screen sliding gesture and the current screen sliding gesture are clicked by the left hand or the right hand, for example.
After the current screen sliding gesture of the user is determined, the historical screen sliding gesture which is the same as the current screen sliding gesture can be determined, the historical display position corresponding to the historical screen sliding gesture which is the same as the current screen sliding gesture is determined, the corresponding historical display position is used as the preset display position, and the operation habit of the gesture is further combined to improve the reliability of early awakening.
In step S230, when the target view is triggered, the control window is displayed.
When a user clicks or presses the target view to trigger the target view, a control window associated with the target view is displayed, various control controls can be displayed in the control window, and corresponding control instructions can be generated when the control controls are triggered.
Further, when the target view is triggered, whether the device to be controlled is awakened or not can be further queried, and at this time, a query command can be sent to the device to be controlled or the cloud end, so that whether the device to be controlled is awakened or not can be further determined.
In step S240, the control instruction triggered in the control window is sent to the awakened device to be controlled.
The user can perform control operation on the control in the control window to generate a corresponding control instruction, and then the control instruction triggered in the control window can be locally sent to the awakened device to be controlled, so that the device to be controlled is controlled to execute the action indicated by the control instruction.
In order to better implement the device control method provided by the embodiment of the present application, the embodiment of the present application further provides a device control apparatus based on the device control method. Wherein the meanings of the nouns are the same as those in the above-mentioned equipment control method, and the details of the specific implementation can be referred to the description in the method embodiment. Fig. 3 shows a block diagram of a device control apparatus according to an embodiment of the present application.
As shown in fig. 3, the device control apparatus 300 may include a detection module 310, a wake-up module 320, a display module 330, and a transmission module 340.
The detection module 310 may be configured to detect a local control interface to determine a display state of a target view in the control interface, where the target view is associated with a control window of a device to be controlled; the wake-up module 320 may be configured to send a wake-up instruction to the device to be controlled when the display state meets a state to be triggered, where the wake-up instruction is used to wake up the device to be controlled; the display module 330 may be configured to display the control window when the target view is triggered; the sending module 340 may be configured to send the control instruction triggered in the control window to the awakened device to be controlled.
In some embodiments of the present application, the detection module 310 includes a first detection unit for: when the local control interface is initialized, detecting the control interface; and/or a second detection unit for: and when the sliding of the view list in the control interface is monitored, detecting the control interface.
In some embodiments of the present application, the display status comprises a display size; the detection module 310 comprises a first calculation unit for: determining a display area of the target view in the control interface; and calculating the size of the display area to obtain the display size.
In some embodiments of the present application, the display status comprises a display position; the detection module 310 comprises a second calculation unit for: determining a display area of the target view in the control interface; and calculating the position of the display area to obtain the display position.
In some embodiments of the present application, the wake-up module 320 includes a first wake-up unit configured to: and if the display size is larger than a preset size threshold value, determining that the display size meets a state to be triggered, and sending a wake-up instruction to the equipment to be controlled.
In some embodiments of the present application, the wake-up module 320 includes a second wake-up unit configured to: and if the deviation between the display position and the preset display position is smaller than a preset deviation threshold value, determining that the display position accords with a to-be-triggered state, and sending a wake-up instruction to the to-be-controlled device.
In some embodiments of the present application, the apparatus further comprises a position setting module configured to: acquiring a historical display position of the target view and a corresponding historical screen sliding gesture when the target view is historically triggered in a local control interface; and determining the preset display position according to the historical display position, the historical screen sliding gesture and the current screen sliding gesture.
In this way, based on the device control apparatus 300, the display state of the target view is monitored locally, when the display state meets the state to be triggered, the wakeup instruction is sent to the device to be controlled, the device to be controlled is wakened up by extraction, and the control is directly performed, so that the device control efficiency is high, and the problem that the device is too fast in power consumption in the related mode of unconditional early wakeup can be avoided, and the user experience is improved.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions in the foregoing embodiments of the present application, for example, the processor 401 may execute the following steps:
detecting a local control interface to determine a display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled; if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device; when the target view is triggered, displaying the control window; and sending the control instruction triggered in the control window to the awakened device to be controlled.
In some embodiments of the present application, when detecting the local control interface, the processor 401 may perform: when the local control interface is initialized, detecting the control interface; and/or detecting the control interface when the sliding of the view list in the control interface is monitored.
In some embodiments of the present application, the display status comprises a display size; when determining the display state of the target view in the control interface, the processor 401 may perform: determining a display area of the target view in the control interface; and calculating the size of the display area to obtain the display size.
In some embodiments of the present application, the display status comprises a display position; when determining the display state of the target view in the control interface, the processor 401 may perform: determining a display area of the target view in the control interface; and calculating the position of the display area to obtain the display position.
In some embodiments of the present application, when the display state meets a to-be-triggered state and a wake-up instruction is sent to the to-be-controlled device, the processor 401 may execute: and if the display size is larger than a preset size threshold value, determining that the display size meets a state to be triggered, and sending a wake-up instruction to the equipment to be controlled.
In some embodiments of the present application, when the display state meets a to-be-triggered state and a wake-up instruction is sent to the to-be-controlled device, the processor 401 may execute: and if the deviation between the display position and the preset display position is smaller than a preset deviation threshold value, determining that the display position accords with a to-be-triggered state, and sending a wake-up instruction to the to-be-controlled device.
In some embodiments of the present application, the processor 401 may perform: acquiring a historical display position of the target view and a corresponding historical screen sliding gesture when the target view is historically triggered in a local control interface; and determining the preset display position according to the historical display position, the historical screen sliding gesture and the current screen sliding gesture.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. An apparatus control method characterized by comprising:
detecting a local control interface to determine a display state of a target view in the control interface, wherein the target view is associated with a control window of a device to be controlled;
if the display state accords with a to-be-triggered state, sending a wake-up instruction to the to-be-controlled device, wherein the wake-up instruction is used for waking up the to-be-controlled device;
when the target view is triggered, displaying the control window;
and sending the control instruction triggered in the control window to the awakened device to be controlled.
2. The method of claim 1, wherein the detecting the local control interface comprises:
when the local control interface is initialized, detecting the control interface; and/or detecting the control interface when the sliding of the view list in the control interface is monitored.
3. The method of claim 1, wherein the display state comprises a display size; the determining the display state of the target view in the control interface comprises:
determining a display area of the target view in the control interface;
and calculating the size of the display area to obtain the display size.
4. The method of claim 1, wherein the display state comprises a display position; the determining the display state of the target view in the control interface comprises:
determining a display area of the target view in the control interface;
and calculating the position of the display area to obtain the display position.
5. The method according to claim 3, wherein the sending a wake-up command to the device to be controlled if the display status matches a status to be triggered comprises:
and if the display size is larger than a preset size threshold value, determining that the display size meets a state to be triggered, and sending a wake-up instruction to the equipment to be controlled.
6. The method according to claim 4, wherein the sending a wake-up command to the device to be controlled if the display status meets a status to be triggered comprises:
and if the deviation between the display position and the preset display position is smaller than a preset deviation threshold value, determining that the display position accords with a to-be-triggered state, and sending a wake-up instruction to the to-be-controlled device.
7. The method of claim 6, further comprising:
acquiring a historical display position of the target view and a corresponding historical screen sliding gesture when the target view is historically triggered in a local control interface;
and determining the preset display position according to the historical display position, the historical screen sliding gesture and the current screen sliding gesture.
8. An apparatus control device, characterized by comprising:
the device comprises a detection module, a display module and a control module, wherein the detection module is used for detecting a local control interface so as to determine the display state of a target view in the control interface, and the target view is associated with a control window of a device to be controlled;
the awakening module is used for sending an awakening instruction to the equipment to be controlled when the display state accords with a state to be triggered, and the awakening instruction is used for awakening the equipment to be controlled;
the display module is used for displaying the control window when the target view is triggered;
and the sending module is used for sending the control instruction triggered in the control window to the awakened device to be controlled.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to carry out the method of any one of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 7.
CN202111570786.7A 2021-12-21 2021-12-21 Device control method, device, storage medium and electronic device Pending CN114385252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111570786.7A CN114385252A (en) 2021-12-21 2021-12-21 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111570786.7A CN114385252A (en) 2021-12-21 2021-12-21 Device control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114385252A true CN114385252A (en) 2022-04-22

Family

ID=81197769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111570786.7A Pending CN114385252A (en) 2021-12-21 2021-12-21 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114385252A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026491A1 (en) * 2013-07-22 2015-01-22 Samsung Electronics Co., Ltd. Remotely controllable electronic device and system including the same
US20170060599A1 (en) * 2015-08-28 2017-03-02 Xiaomi Inc. Method and apparatus for awakening electronic device
US20170374487A1 (en) * 2015-01-16 2017-12-28 Lg Electronics Inc. Method for automatically connecting a short-range communication between two devices and apparatus for the same
CN107948876A (en) * 2017-12-13 2018-04-20 北京小米移动软件有限公司 Control the method, apparatus and medium of sound-box device
US20180278699A1 (en) * 2017-03-24 2018-09-27 Hyundai Motor Company System and method for controlling operation of iot device
US20190372801A1 (en) * 2018-06-05 2019-12-05 K4Connect Inc. Home automation system including sleep to awake mode device switching and related methods
CN112114887A (en) * 2020-09-24 2020-12-22 北京小米移动软件有限公司 Controlled device, method for waking up controlled device and storage medium
CN112764817A (en) * 2021-01-22 2021-05-07 中国长城科技集团股份有限公司 Equipment function awakening method and device
CN112860144A (en) * 2020-12-31 2021-05-28 联想(北京)有限公司 Control method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026491A1 (en) * 2013-07-22 2015-01-22 Samsung Electronics Co., Ltd. Remotely controllable electronic device and system including the same
US20170374487A1 (en) * 2015-01-16 2017-12-28 Lg Electronics Inc. Method for automatically connecting a short-range communication between two devices and apparatus for the same
US20170060599A1 (en) * 2015-08-28 2017-03-02 Xiaomi Inc. Method and apparatus for awakening electronic device
US20180278699A1 (en) * 2017-03-24 2018-09-27 Hyundai Motor Company System and method for controlling operation of iot device
CN107948876A (en) * 2017-12-13 2018-04-20 北京小米移动软件有限公司 Control the method, apparatus and medium of sound-box device
US20190372801A1 (en) * 2018-06-05 2019-12-05 K4Connect Inc. Home automation system including sleep to awake mode device switching and related methods
CN112114887A (en) * 2020-09-24 2020-12-22 北京小米移动软件有限公司 Controlled device, method for waking up controlled device and storage medium
CN112860144A (en) * 2020-12-31 2021-05-28 联想(北京)有限公司 Control method and system
CN112764817A (en) * 2021-01-22 2021-05-07 中国长城科技集团股份有限公司 Equipment function awakening method and device

Similar Documents

Publication Publication Date Title
CN108055405B (en) Terminal and method for awakening same
CN106959857B (en) Application control method and device of electronic equipment
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
KR20210080289A (en) Dormancy controlling method for on board computing platform, device and readable storage medium
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN108664285A (en) Application program preloads method, apparatus, storage medium and mobile terminal
EP3435215A1 (en) Method, device, storage medium and mobile terminal for recognizing an off-screen gesture
CN113129479A (en) Intelligent lock control method, device, equipment and storage medium
CN114326427A (en) Control method and device of intelligent equipment, intelligent equipment and storage medium
CN109933419B (en) Control method and device
CN106648916B (en) Method and device for reporting pedometer message
CN114385252A (en) Device control method, device, storage medium and electronic device
CN108108196B (en) Wake-up device, wake-up system, wake-up method and device
CN114490432A (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN103942057A (en) Method and device for opening object
CN114090054A (en) Intelligent equipment upgrading method and device, storage medium and electronic equipment
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN114116275A (en) Terminal abnormity repairing method and device, storage medium and electronic equipment
CN104516472A (en) Processor and data processing method
CN114155636A (en) Device control method, device, electronic device and storage medium
CN110457075B (en) Communication terminal shutdown method and device, storage medium and communication terminal
CN112988105A (en) Playing state control method and device, electronic equipment and storage medium
CN104598078A (en) Touch screen detection method and terminal
CN118004061A (en) Switch state identification method, system, device and medium, and vehicle
CN114884724B (en) Cloud server interaction method and device, readable storage medium and terminal equipment

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