CN116737284A - Equipment control method, device, electronic equipment and storage medium - Google Patents

Equipment control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116737284A
CN116737284A CN202210195809.9A CN202210195809A CN116737284A CN 116737284 A CN116737284 A CN 116737284A CN 202210195809 A CN202210195809 A CN 202210195809A CN 116737284 A CN116737284 A CN 116737284A
Authority
CN
China
Prior art keywords
picture
moment
parameter
same
time
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
CN202210195809.9A
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 CN202210195809.9A priority Critical patent/CN116737284A/en
Publication of CN116737284A publication Critical patent/CN116737284A/en
Pending legal-status Critical Current

Links

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/451Execution arrangements for user interfaces
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application discloses a device control method, a device, electronic equipment and a storage medium. The method comprises the following steps: the electronic equipment acquires a first picture corresponding to the first moment and then acquires a second picture at a second moment after the first moment; if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment; and restarting the current application program if the second picture and the third picture are the same. Therefore, when the equipment is blocked, the display interface can be quickly restored.

Description

Equipment control method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device control method, an apparatus, an electronic device, and a storage medium.
Background
In the using process of the electronic equipment, the phenomena of blocking, screen blacking and the like of a display interface of the electronic equipment can be caused by software faults, hardware faults and the like.
In the prior art, the problem of the electronic device display interface being stuck can be solved only by restarting the system, so that a user needs to wait for a long time.
Disclosure of Invention
The embodiment of the application provides a device control method, a device, electronic equipment and a storage medium. When the equipment is blocked, the display interface can be quickly restored.
In a first aspect, an embodiment of the present application provides an apparatus control method, including:
acquiring a first picture corresponding to a first moment;
acquiring a second picture at a second moment after the first moment;
if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment;
and restarting the current application program if the second picture and the third picture are the same.
In a second aspect, an embodiment of the present application provides an apparatus control device, including:
the first acquisition module is used for acquiring a first picture corresponding to the first moment;
the second acquisition module is used for acquiring a second picture at a second moment after the first moment;
the third acquisition module is used for acquiring a third picture at a third moment after the second moment if the first picture is the same as the second picture and the control command is received from the first moment to the second moment;
and the restarting module is used for restarting the current application program if the second picture and the third picture are the same.
In a third aspect, an embodiment of the present application provides an electronic device, a memory storing executable program code, and a processor coupled to the memory; the processor invokes the executable program code stored in the memory to perform the steps in the device control method provided by the embodiment of the application.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform steps in a device control method provided by the embodiment of the present application.
In the embodiment of the application, the electronic equipment acquires the second picture at the second moment after the first moment by acquiring the first picture corresponding to the first moment; if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment; and restarting the current application program if the second picture and the third picture are the same. Therefore, when the equipment is blocked, the display interface can be quickly restored.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a device control method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a second flow of the device control method according to the embodiment of the present application.
Fig. 3 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the using process of the electronic equipment, the phenomena of blocking, screen blacking and the like of a display interface of the electronic equipment can be caused by software faults, hardware faults and the like.
In the prior art, the problem of the electronic device display interface being stuck can be solved only by restarting the system, so that a user needs to wait for a long time.
In order to solve the technical problem, the embodiment of the application provides a device control method, a device, electronic equipment and a storage medium. The device control method can be applied to various electronic devices, such as televisions, computers, mobile phones and other electronic devices. The device control method can improve the speed of quickly recovering the display interface when the display picture of the electronic device is blocked.
Referring to fig. 1, fig. 1 is a schematic flow chart of a device control method according to an embodiment of the application. The device control method may include the steps of:
110. and acquiring a first picture corresponding to the first moment.
In some embodiments, the electronic device may set a frame acquisition period, for example, different frames may be acquired at different times in one frame acquisition period, and when the next frame acquisition period is entered, a corresponding number of frames may be reacquired.
In the present picture obtaining period, the electronic device may obtain a first picture corresponding to the first time, for example, the first time is a start time of the present picture obtaining period, or the first time is any time in the present picture obtaining period.
When the electronic device acquires the first picture, the electronic device can acquire a first parameter corresponding to the first picture at the same time, for example, when the first picture is a video picture, the display progress corresponding to the first picture is determined, and the display progress is determined to be the first parameter.
The first hash value of the first picture can also be directly obtained, for example, the hash value algorithm is adopted to perform hash value calculation on the first picture, so as to obtain the first hash value.
It should be noted that the first parameter may be a combination of a plurality of parameters, for example, the display progress of the first picture and the first hash value of the first picture together form the first parameter.
120. And acquiring a second picture at a second moment after the first moment.
In some implementations, the electronic device obtains the second screen at a second time that is subsequent to the first time. The second time may be a time after a first preset time period has elapsed after the first time, for example, the first time is 3 th second, the preset time period is 5 seconds, and the second time is 8 th second.
The electronic device may further obtain a second parameter corresponding to the second picture, for example, when the electronic device obtains the second picture, the electronic device may obtain the second parameter corresponding to the second picture at the same time, for example, when the second picture is a video picture, determine a display progress corresponding to the second picture, and determine the display progress as the second parameter.
The second hash value of the second picture may also be directly obtained, for example, the hash value algorithm is used to perform hash value calculation on the second picture, so as to obtain the second hash value.
It should be noted that the second parameter may be a combination of a plurality of parameters, for example, the display progress of the second picture and the second hash value of the second picture together form the second parameter.
130. And if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment.
In some embodiments, the electronic device may further determine whether the first frame and the second frame are identical, such as by a first parameter corresponding to the first frame and a second parameter corresponding to the second frame, and if the first parameter and the second parameter are identical, consider the first frame and the second frame to be identical.
For example, if the first hash value corresponding to the first picture is the same as the second hash value corresponding to the second picture, the first picture and the second picture are considered to be the same, and the first picture and the second picture are considered to be the same picture.
If the first frame and the second frame are the same in the process from the first time to the second time, but the electronic device receives a control instruction, for example, the electronic device receives a control instruction sent by means of bluetooth, infrared, internet and the like, the electronic device is controlled at the moment, but the frames are not changed. At this time, a display interface of the electronic device may be jammed.
In order to determine whether the display interface of the electronic device is stuck more accurately, the electronic device acquires a third picture at a third time after the second time, and the electronic device also acquires a third parameter corresponding to the third picture, for example, acquires a third hash value corresponding to the third picture as the third parameter.
And judging whether the third parameter is the same as the second parameter, so as to judge whether the second picture is the same as the third picture, and if the third parameter is the same as the second parameter, indicating that the third picture is the same as the second picture, and indicating that the display picture of the electronic equipment is blocked.
The second time to the third time are second preset time, and the second preset time can be half of the first preset market. For example, the first preset duration is 10 seconds, and the second preset duration is 5 seconds.
140. And restarting the current application program if the second picture and the third picture are the same.
In some embodiments, if the second screen and the third screen are the same, which indicates that the display of the electronic device is blocked at this time, the electronic device may restart the current application. For example, the entire application is closed directly and then the application is opened.
For another example, the electronic device may determine the main process corresponding to the current application program, and then directly close the main process, thereby closing the entire application program.
In some embodiments, the electronic device may further determine an abnormal process that does not work normally in the processes corresponding to the current application program, then close the abnormal process, and the current application program restarts the target process corresponding to the abnormal process again, so that the target process can run normally, thereby implementing the problem of abnormality of the application program, and finally enabling the display screen of the electronic device not to be blocked.
In the embodiment of the application, the electronic equipment acquires the second picture at the second moment after the first moment by acquiring the first picture corresponding to the first moment; if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment; and restarting the current application program if the second picture and the third picture are the same. Therefore, when the equipment is blocked, the display interface can be quickly restored.
Referring to fig. 2, fig. 2 is a schematic diagram of a second flow chart of a device control method according to an embodiment of the application. The device control method may include the steps of:
201. and acquiring a first picture corresponding to the first moment.
In some embodiments, the electronic device may set a frame acquisition period, for example, different frames may be acquired at different times in one frame acquisition period, and when the next frame acquisition period is entered, a corresponding number of frames may be reacquired.
In the present picture obtaining period, the electronic device may obtain a first picture corresponding to the first time, for example, the first time is a start time of the present picture obtaining period, or the first time is any time in the present picture obtaining period.
When the electronic device acquires the first picture, the electronic device can acquire a first parameter corresponding to the first picture at the same time, for example, when the first picture is a video picture, the display progress corresponding to the first picture is determined, and the display progress is determined to be the first parameter.
The first hash value of the first picture can also be directly obtained, for example, the hash value algorithm is adopted to perform hash value calculation on the first picture, so as to obtain the first hash value.
It should be noted that the first parameter may be a combination of a plurality of parameters, for example, the display progress of the first picture and the first hash value of the first picture together form the first parameter.
202. And acquiring a second picture at a second moment after the first moment.
In some implementations, the electronic device obtains the second screen at a second time that is subsequent to the first time. The second time may be a time after a first preset time period has elapsed after the first time, for example, the first time is 3 th second, the preset time period is 5 seconds, and the second time is 8 th second.
The electronic device may further obtain a second parameter corresponding to the second picture, for example, when the electronic device obtains the second picture, the electronic device may obtain the second parameter corresponding to the second picture at the same time, for example, when the second picture is a video picture, determine a display progress corresponding to the second picture, and determine the display progress as the second parameter.
The second hash value of the second picture may also be directly obtained, for example, the hash value algorithm is used to perform hash value calculation on the second picture, so as to obtain the second hash value.
It should be noted that the second parameter may be a combination of a plurality of parameters, for example, the display progress of the second picture and the second hash value of the second picture together form the second parameter.
203. And judging whether the first parameter corresponding to the first picture and the second parameter corresponding to the second picture are the same.
If the first parameter and the second parameter are not the same, step 204 is entered, and if the first parameter and the second parameter are the same, step 205 is entered.
In some embodiments, the first parameter may include a plurality of first sub-parameters, and the second parameter may include a plurality of second sub-parameters. When each of the first sub-parameter and the second sub-parameter is the same, the first parameter and the second parameter are considered to be the same.
For example, the first sub-parameter includes a first display progress, a first hash value, and a first luminance distribution condition, and the second sub-parameter includes a second display progress, a second hash value, and a second luminance distribution condition, and when the first display progress is the same as the second display progress, the first hash value is the same as the second hash value, and the first luminance distribution condition is the same as the second luminance distribution condition, the first parameter and the second parameter are considered to be the same.
The first brightness distribution condition is a distribution condition corresponding to a plurality of preset areas in the first picture, and the second brightness distribution condition is a distribution condition corresponding to a plurality of preset areas in the second picture, for example, the preset areas are pre-distributed areas corresponding to the display screen of the electronic device.
204. If the first parameter and the second parameter are different, the display screen of the electronic device is not blocked.
In some embodiments, if the first parameter and the second parameter are different, it is indicated that the first screen and the second screen are different, during which time the electronic device is not engaged in displaying the screen.
For example, when a user plays a video on the electronic device, the pictures displayed by the electronic device are changed, so that the first picture and the second picture are different, and at the moment, the electronic device is considered to be not blocked.
At this time, the electronic device may enter the next frame acquisition period to re-determine whether the display frame of the electronic device is stuck.
205. And if the first parameter is the same as the second parameter and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment.
If the first parameter and the second parameter are the same, the first picture and the second picture are considered to be the same. At this time, the electronic device determines whether a manipulation instruction is received within a first time to a second time. For example, the user can transmit the control instruction to the electronic device through a WiFi network, bluetooth or infrared wireless instruction transmission modes.
If the electronic device receives the control instruction from the first time to the second time, it indicates that the user needs to control the electronic device from the first time to the second time, so as to enter different interfaces, but at the moment, the first picture and the second picture are the same, which indicates that the display picture of the electronic device may be blocked.
In order to further determine whether the display screen of the electronic device is blocked, the electronic device may continue to acquire a third screen at a third time after the second time. Meanwhile, the electronic equipment also acquires a third parameter corresponding to the third picture.
In some embodiments, if the first parameter and the second parameter are the same, and the manipulation instruction is not received within the first time to the second time, the electronic device may enter a next frame acquisition period and acquire a display frame of the electronic device.
If the first parameter and the second parameter are the same, and the control instruction is not received within the first time to the second time, the electronic device can also judge the display types corresponding to the first picture and the second picture first, and if the display types of the pictures corresponding to the first picture and the second picture are all long-term fixed display types, such as wallpaper and pictures in an album, the electronic device is considered to be free from being blocked.
If the display types of the first picture and the second picture are short-term dynamic display types, such as video, an operation interface and the like, the electronic equipment can be controlled to enter the next picture acquisition period, and the display picture of the electronic equipment is acquired.
206. And judging whether the system service of the electronic equipment is restarted.
If it is determined that the system service of the electronic device has been restarted, step 207 is entered. If it is determined that the system services of the electronic device have not been restarted, step 208 is entered.
The system service of the electronic device may be a main service of the system, and if the main service of the system is restarted, the first screen, the second screen and the third screen are the same at this time, which indicates that the display screen of the electronic device is blocked at this time, which is not caused by a certain application program, but is caused by a system fault.
If the system service of the electronic device is not restarted, but the first screen, the second screen and the third screen are blocked, the fact that the blocking of the display interface of the electronic device occurs at the moment is caused by the failure of the application program is indicated.
207. If the system service is restarted, the electronic equipment is controlled to be powered off and restarted.
If the system service is restarted, the display screen of the electronic device is blocked due to the system fault, and the electronic device can be directly powered off to restart, so that all the system services are restarted, and the whole system is in a normal working state again. Finally, the problem of blocking of the display picture of the electronic equipment is solved.
208. If the system service is not restarted and the second picture and the third picture are the same, restarting the current application program.
If the system service is not restarted and the second picture is the same as the third picture, the electronic device can determine the main process corresponding to the current application program first, and then directly close the main process, thereby closing the whole application program.
In some embodiments, the electronic device may further determine an abnormal process that does not work normally in the processes corresponding to the current application program, then close the abnormal process, and the current application program restarts the target process corresponding to the abnormal process again, so that the target process can run normally, thereby implementing the problem of abnormality of the application program, and finally enabling the display screen of the electronic device not to be blocked.
In some embodiments, if the electronic device determines the position of the current display screen of the application before restarting the application, when the electronic device restarts the application again, the electronic device may directly enter the display interface corresponding to the restart time of the application.
For example, before the current application is restarted, it may be determined that the operation interface of the current application, such as entering a certain function page or being a certain playing interface. After the application is restarted, the function page or play interface may be entered. Therefore, the display interface of the electronic equipment is quickly restored, and the jamming sense is reduced.
In the embodiment of the application, the electronic equipment acquires a first picture corresponding to the first moment and acquires a second picture at a second moment after the first moment. And then judging whether the first parameter corresponding to the first picture and the second parameter corresponding to the second picture are the same, and if the first parameter and the second parameter are the same and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment. And judging whether the system service of the electronic equipment is restarted, and restarting the current application program if the system service is not restarted and the second picture and the third picture are the same. If the system service is restarted, the electronic equipment is controlled to be powered off and restarted. Therefore, the display interface of the electronic equipment can be quickly restored, and the electronic equipment is prevented from being blocked on a certain interface all the time.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus control device according to an embodiment of the application. The device control apparatus 300 may include:
the first obtaining module 310 is configured to obtain a first picture corresponding to the first time.
The second obtaining module 320 is configured to obtain a second frame at a second time after the first time.
The third obtaining module 330 is configured to obtain a third frame at a third time after the second time if the first frame is the same as the second frame and the manipulation instruction is received from the first time to the second time.
The third obtaining module 330 is further configured to obtain a first parameter corresponding to the first frame and a second parameter corresponding to the second frame before obtaining the third frame at a third time after the second time if the first frame is the same as the second frame and the control command is received from the first time to the second time; judging whether the first parameter and the second parameter are the same; if the first parameter and the second parameter are the same, the first picture and the second picture are the same.
The third obtaining module 330 is further configured to enter a next frame obtaining period and obtain a display frame of the electronic device if the first frame is the same as the second frame and the manipulation instruction is not received within the first time to the second time.
The third obtaining module 330 is further configured to obtain a first hash value of the first picture and a second hash value of the second picture; the first hash value is determined as a first parameter and the second hash value is determined as a second parameter.
The restarting module 340 is configured to restart the current application if the second frame and the third frame are the same.
The restarting module 340 is further configured to determine whether a system service of the electronic device is restarted; if the second frame is the same as the third frame, restarting the current application program, including: if the system service is not restarted and the second picture and the third picture are the same, restarting the current application program.
The restart module 340 is further configured to control the electronic device to be powered off and restarted if the system service is restarted.
The restarting module 340 is further configured to determine an abnormal process corresponding to the current application program; the abnormal process is restarted to restart the current application.
In the embodiment of the application, the electronic equipment acquires the second picture at the second moment after the first moment by acquiring the first picture corresponding to the first moment; if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment; and restarting the current application program if the second picture and the third picture are the same. Therefore, when the equipment is blocked, the display interface can be quickly restored.
Accordingly, an embodiment of the present application also provides an electronic device, as shown in fig. 4, where the electronic device may include an input unit 401, a display unit 402, a memory 403 including one or more computer readable storage media, a sensor 405, a processor 404 including one or more processing cores, and a power supply 406. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the input unit 401 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 401 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 404, and can receive commands from the processor 404 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 401 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 402 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of an electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 402 may include a display panel, which may optionally be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor 404 to determine a type of touch event, and the processor 404 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 4 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The memory 403 may be used to store software programs and modules, and the processor 404 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 403. The memory 403 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, memory 403 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 403 may also include a memory controller to provide access to the memory 403 by the processor 404 and the input unit 401.
The electronic device may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the device is stationary, and the device can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
The processor 404 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 403 and calling data stored in the memory 403, thereby performing overall monitoring of the electronic device. Optionally, processor 404 may include one or more processing cores; preferably, the processor 404 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 404.
The electronic device also includes a power supply 406 (e.g., a battery) for powering the various components, which may be logically connected to the processor 404 via a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 406 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 404 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 403 according to the following instructions, and the processor 404 executes the application programs stored in the memory 403, so as to implement various functions:
acquiring a first picture corresponding to a first moment;
acquiring a second picture at a second moment after the first moment;
if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment;
and restarting the current application program if the second picture and the third picture are the same.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the device control methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring a first picture corresponding to a first moment;
acquiring a second picture at a second moment after the first moment;
if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, acquiring a third picture at a third moment after the second moment;
and restarting the current application program if the second picture and the third picture are the same.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any one of the device control methods provided in the embodiments of the present application may be executed by the instructions stored in the storage medium, so that the beneficial effects that any one of the device control methods provided in the embodiments of the present application may be achieved are detailed in the previous embodiments, and are not repeated herein.
The foregoing describes in detail a device control method, device, electronic device and storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (10)

1. A device control method, characterized by comprising:
acquiring a first picture corresponding to a first moment;
acquiring a second picture at a second moment after the first moment;
if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment, a third picture is acquired at a third moment after the second moment;
and restarting the current application program if the second picture is the same as the third picture.
2. The apparatus control method according to claim 1, wherein before the third screen is acquired at a third time after the second time if the first screen and the second screen are the same and a manipulation instruction is received from the first time to the second time, the method further comprises:
acquiring a first parameter corresponding to the first picture and a second parameter corresponding to the second picture;
judging whether the first parameter and the second parameter are the same or not;
and if the first parameter is the same as the second parameter, the first picture is the same as the second picture.
3. The apparatus control method according to claim 2, characterized in that after the first screen and the second screen are identical if the first parameter and the second parameter are identical, the method further comprises:
if the first picture is the same as the second picture and the control instruction is not received in the first time to the second time, entering a next picture acquisition period and acquiring a display picture of the electronic equipment.
4. The apparatus control method according to claim 2, wherein the acquiring the first parameter corresponding to the first screen and the second parameter corresponding to the second screen includes:
acquiring a first hash value of the first picture and a second hash value of the second picture;
and determining the first hash value as the first parameter, and determining the second hash value as the second parameter.
5. The apparatus control method according to claim 1, wherein before the restarting the current application program if the second screen and the third screen are the same, the method further comprises:
judging whether the system service of the electronic equipment is restarted;
and if the second picture is the same as the third picture, restarting the current application program, including:
and restarting the current application program if the system service is not restarted and the second picture and the third picture are the same.
6. The apparatus control method according to claim 5, wherein after said determining whether the system service of the electronic apparatus has been restarted, the method further comprises:
and if the system service is restarted, controlling the electronic equipment to be powered off and restarted.
7. The apparatus control method according to any one of claims 1 to 6, wherein restarting the current application if the second screen and the third screen are the same, comprises:
determining an abnormal process corresponding to the current application program;
restarting the abnormal process to restart the current application.
8. An apparatus control device, comprising:
the first acquisition module is used for acquiring a first picture corresponding to the first moment;
the second acquisition module is used for acquiring a second picture at a second moment after the first moment;
the third acquisition module is used for acquiring a third picture at a third moment after the second moment if the first picture is the same as the second picture and the control instruction is received from the first moment to the second moment;
and the restarting module is used for restarting the current application program if the second picture is the same as the third picture.
9. An electronic device, comprising:
a memory storing executable program code, a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the steps in the device control method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the storage medium stores a plurality of instructions adapted to be loaded by a processor for performing the steps in the device control method of any one of claims 1 to 7.
CN202210195809.9A 2022-03-01 2022-03-01 Equipment control method, device, electronic equipment and storage medium Pending CN116737284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210195809.9A CN116737284A (en) 2022-03-01 2022-03-01 Equipment control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210195809.9A CN116737284A (en) 2022-03-01 2022-03-01 Equipment control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116737284A true CN116737284A (en) 2023-09-12

Family

ID=87906602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210195809.9A Pending CN116737284A (en) 2022-03-01 2022-03-01 Equipment control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116737284A (en)

Similar Documents

Publication Publication Date Title
CN108958633B (en) Split screen display method and device, storage medium and electronic equipment
EP2731000A1 (en) Electronic device and method for changing setting value
US9329661B2 (en) Information processing method and electronic device
US9207746B2 (en) Method and apparatus for controlling sleep mode in a portable terminal
US10445104B2 (en) Electronic device, method for controlling electronic device, and program
CN114203119B (en) Display control method, display control device, electronic equipment and storage medium
WO2019071626A1 (en) Method for processing refreshing display abnormality, and terminal
US20230092801A1 (en) Power display method and apparatus, and electronic device
CN107277032B (en) Video definition switching method and device, storage medium and terminal
CN107341094B (en) Method and device for measuring time consumed by starting item
CN107861826B (en) Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium
CN106886351B (en) Display method and device of terminal time information and computer equipment
CN111930509A (en) Data processing method and device for intelligent glasses, storage medium and electronic equipment
US20200371664A1 (en) Cursor identification on an ihs display
CN108170362B (en) Application running state control method and mobile terminal
CN116737284A (en) Equipment control method, device, electronic equipment and storage medium
CN106933576B (en) Terminal unlocking method and device and computer equipment
CN106060616B (en) Operation processing method and device
CN113747043B (en) Image processor starting method, electronic device and storage medium
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
US11023124B1 (en) Processing user input received during a display orientation change of a mobile device
CN113890992A (en) Image processing method, image processing device, electronic equipment and storage medium
CN111027406A (en) Picture identification method and device, storage medium and electronic equipment
JP5835218B2 (en) Display control apparatus, method, and program
CN111399626B (en) Screen control method and device, storage medium and mobile terminal

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