CN111045738B - Electronic equipment control method and device, electronic equipment and storage medium - Google Patents
Electronic equipment control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111045738B CN111045738B CN201911206290.4A CN201911206290A CN111045738B CN 111045738 B CN111045738 B CN 111045738B CN 201911206290 A CN201911206290 A CN 201911206290A CN 111045738 B CN111045738 B CN 111045738B
- Authority
- CN
- China
- Prior art keywords
- touch screen
- bus
- wake
- processor
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003860 storage Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims description 19
- 238000012544 monitoring process Methods 0.000 claims description 12
- 238000003825 pressing Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 9
- 238000004904 shortening Methods 0.000 abstract description 5
- 230000000694 effects Effects 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000002618 waking effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000005284 excitation Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000001976 improved effect Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides an electronic equipment control method and device, electronic equipment and a storage medium. The method comprises the following steps: when the touch screen is detected to enter a bright screen state, an empty interrupt is sent to the bus to wake up the bus; and when the touch screen starts scanning, data are directly transmitted through the bus. The application also provides an electronic equipment control device, electronic equipment and a storage medium. According to the electronic equipment control method, the electronic equipment control device, the electronic equipment and the storage medium, the bus is awakened when the touch screen enters the bright screen state, so that the awakened bus can be directly used for transmitting data when the touch screen starts scanning, the time required for transmitting the data from the bus can be shortened, and the effect of shortening the operation delay is achieved.
Description
Technical Field
The present disclosure relates to the field of electronic device control technologies, and in particular, to an electronic device control method, an electronic device, and a storage medium.
Background
Along with the popularization of intelligent equipment, intelligent electronic equipment has become a necessary article of daily life, and intelligent electronic equipment is provided with one or more touch screen for carrying out man-machine interaction and demonstration generally, but when the user operates the touch screen, the response of touch screen is not real-time, and when the user operates the touch screen, the feedback that the touch screen was made to the operation of user has short delay, can improve the response speed of touch screen by a wide margin through shortening this delay, promotes operating efficiency.
Disclosure of Invention
The invention aims to provide an electronic equipment control method, an electronic equipment control device, an electronic equipment and a storage medium, so that lower-delay operation of the electronic equipment is realized.
In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, where the electronic device includes a touch screen, a processor, and a bus connecting the touch screen and the processor, and the method includes: when the touch screen is detected to enter a bright screen state, an empty interrupt is sent to the bus to wake up the bus; and when the touch screen starts scanning, data are directly transmitted through the bus.
In a second aspect, an embodiment of the present application provides an electronic device control apparatus, where the electronic device includes a touch screen, a processor, and a bus connecting the touch screen and the processor. The device comprises a wake-up module and a processing module, wherein the wake-up module is used for sending an empty interrupt to the bus to wake up the bus when the touch screen is detected to enter a bright screen state; and the processing module is used for directly transmitting data through the bus when the touch screen starts scanning.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory and a processor, the memory being coupled to the processor; the electronic device is provided with a touch screen and a shortcut button, and the memory stores instructions that when executed by the processor cause the processor to:
when the touch screen is detected to enter a bright screen state, an empty interrupt is sent to the bus to wake up the bus; and when the touch screen starts scanning, data are directly transmitted through the bus.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium. The computer readable storage medium has stored therein program code that is callable by the processor to perform the electronic device control method described above.
According to the electronic equipment control method, the electronic equipment control device, the electronic equipment and the storage medium, the air broken wake-up bus is sent when the touch screen enters the bright screen state, so that the awakened bus can be directly used for transmitting data when the touch screen starts scanning, the time delay from the start of scanning to the data transmission is shortened, the time required by the data transmission from the bus can be shortened, the effect of shortening the operation delay is achieved, and the operation efficiency of a user is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
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 introduced 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 diagram of an electronic device shown in the present application;
FIG. 2 is a block diagram of the electronic device shown in FIG. 1;
FIG. 3 is a flow chart of a method for controlling an electronic device according to one embodiment of the present application;
fig. 4 is a flowchart of step S130 in the electronic device control method shown in fig. 3;
FIG. 5 is a flow chart of yet another electronic device control method provided by one embodiment of the present application;
fig. 6 is a flowchart of step S230 in the electronic device control method shown in fig. 5; the method comprises the steps of carrying out a first treatment on the surface of the
FIG. 7 is a block diagram of an electronic device control apparatus according to one embodiment of the present application;
FIG. 8 is a block diagram of a wake module provided in one embodiment of the present application;
FIG. 9 is a block diagram of a processing module provided in one embodiment of the present application;
FIG. 10 is a block diagram of a monitoring module provided in one embodiment of the present application;
FIG. 11 is a block diagram of an electronic device provided in one embodiment of the present application;
fig. 12 is a block diagram of a storage medium 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 fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
As shown in fig. 1, the present electronic device 100 includes a housing and a display screen 101, where the display screen 101 is mounted on the housing and is used for human-computer interaction and display. The display Screen 101 is a Touch Screen (Touch Screen), which is an inductive display device capable of receiving input signals such as contacts, the display Screen 101 is mounted on a housing and can be used for a user to perform Touch operation, and the display Screen 101 can be a folding display Screen or a non-folding display Screen. In some embodiments, the electronic device may include one or more display screens 101, where the display screens 101 may include at least one touch screen, and the display screens 101 may be various screens such as LCD screens, LED screens, or OLED screens.
Referring to fig. 1 and fig. 2 together, the electronic device 100 is further provided with a processor 102 and a bus 103 connecting the touch screen and the processor 102, where the processor 102 is used to connect with various peripheral devices to control the peripheral devices. The touch screen is connected with the processor 102 through the bus 103 and performs data transmission through the bus 103, it is understood that the bus 103 may be i 2 c bus (built-in integrated circuit, inter-Integrated Circuit). The connection between the bus 103 and the touch screen and the processor 102 is realized through pins (input-output ports). It is understood that the electronic device 100 may further be provided with one or more of various functional devices such as an image capturing module, a fingerprint module, a microphone, a speaker, and a receiver as the peripheral device. The electronic device may also be provided with various sensors, such as an infrared sensor, a distance sensor, etc., where an optical sensor may also be provided below the display screen, for obtaining the current display brightness parameter of the display screen 101.
The electronic device 100 may also be provided with one or more physical keys 104, such physical keys 104 being configured to receive a user's pressing operation to perform a preset function. The physical key 104 may be, for example, a power on/off key, a volume+ or-key, a restart key, a root key, and other various entity keys. The physical keys 104 may be disposed on edges of the electronic device housing, such as the upper edge, the lower edge, the side edges, etc. The physical keys may be pressed separately to enable the electronic device to perform corresponding functions, or may be pressed in combination to enable the electronic device to perform corresponding operations, such as pressing the on/off key and the volume + key simultaneously.
The touch screen generally comprises a capacitance matrix formed by a plurality of electrode plates and a data processing module electrically connected with the capacitance matrix, wherein the data processing module judges a capacitance value change point or area of the capacitance matrix in a mode of initiating scanning and receiving feedback data at a receiving port of the data processing module, and further determines coordinate data of a touch position of the touch screen, so that input data is provided for equipment for installing the touch screen. In the prior art, when the touch screen is not used for a long time, the touch screen usually enters a Low power mode (i.e. enters an idle mode), the touch screen is in a Low power state, when the touch screen receives a wake-up request for the touch screen, the touch screen can lighten the touch screen to enter a Normal working mode (i.e. enter an active mode), then the touch screen entering the Normal working mode triggers an interrupt when scanning a frame, the bus is woken up at this time, data can be transmitted through the bus after the bus is woken up, and the data can not be transmitted through the bus from the bus to the bus at the same time, and a time delay exists between the two. Starting from the low power consumption mode to the high power consumption mode, triggering to interrupt the wake-up bus, and then transmitting data through the wake-up bus to obtain a time difference, namely touch time delay, wherein the shorter the touch time delay is, the higher the operation efficiency is when a user operates. The power consumption of the low power consumption mode is lower than that of the normal operation mode, and therefore, the inventor of the application proposes the electronic equipment control method, the electronic equipment control device and the storage medium.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 3, in one embodiment of the present invention, an electronic device control method is provided and applied to an electronic device, where the electronic device includes a touch screen, a processor, and a bus connecting the touch screen and the processor. For example, in an electronic device 100 as shown in fig. 1, the method may comprise the steps of:
step S110: and when the touch screen is detected to enter a bright screen state, sending an empty interrupt to the bus to wake up the bus.
When the touch screen is used, at least two states of a screen-extinguishing state, a screen-brightening state and the like exist, and the screen-extinguishing state refers to: and after the touch screen is extinguished, entering a standby mode or a sleep mode, wherein the touch screen does not display. The electronic device is usually put into a screen-off state when not used for a long time, or the electronic device is controlled to be put into the screen-off state by user operation.
The bright screen state refers to: and the touch screen enters a normal working mode after being lightened, and can be used for displaying at the moment. When the touch screen displays or operates, the touch screen is in a bright screen state. In some embodiments, when the electronic device enters a bright screen state, there may be different display brightness. For example: in some embodiments, when the electronic device is in a dark environment, the electronic device may be turned on at a first display brightness when the electronic device is in a bright screen state, and in other application scenarios, when the electronic device is in a bright screen state, the electronic device may also display at a second display brightness when the electronic device is in a bright screen state, where the first display brightness is less than the second display brightness, or the first display brightness is greater than the second display brightness.
The entry of the off-screen state into the on-screen state may be triggered in a variety of ways, such as, in some embodiments, by a user's touch operation of the touch screen. In some embodiments, the physical key of the electronic device may be triggered after being pressed, for example, after the switch key of the electronic device is pressed. In some embodiments, the triggering may also be triggered by a background running application, for example, when the background running application receives information, an incoming call, or the like.
Therefore, in some embodiments, the monitoring whether the touch screen enters the bright screen state from the off-screen state may be performed, for example, by acquiring the brightness of the touch screen, and when the brightness of the touch screen is greater than or equal to the preset brightness, it may be determined that the touch screen enters the bright screen state from the off-screen state, where the monitoring of the brightness of the touch screen may be performed by setting a brightness sensor under the touch screen of the electronic device.
In some embodiments, because the excitation current of the touch screen increases when the touch screen enters the bright screen state from the off-screen state, whether the touch screen enters the bright screen state from the off-screen state may also be determined by detecting the excitation current or voltage of the touch screen. For example: the excitation current of the touch screen in the screen-off state is I 1 When the exciting current is detected from I 1 Increase to I 2 And determining that the touch screen enters a bright screen state from a screen-off state. It will be appreciated that the acquisition of the excitation current may be detected, for example, by a sensor or the like built into the electronic device.
When the touch screen is in a screen-off state, the touch screen enters an idle mode (namely a low-power consumption mode), when the touch screen enters a screen-on state, the touch screen enters an active mode (namely a normal working mode), when the touch screen is switched from the screen-off state to the screen-on state, the touch screen exits from the low-power consumption mode, and then enters the normal working mode. Thus, in some embodiments, when it is detected that the touch screen exits from the off-screen state, it is determined that the touch screen enters into the on-screen state, i.e., when the touch screen protrudes out of the off-screen state, an empty interrupt is sent to the bus, and the bus is awakened. This may further reduce the delay.
Of course, the manner of monitoring whether the touch screen enters the bright screen state from the off-screen state is not limited to the above, and in other embodiments, other manners may be adopted.
The wake-up bus refers to: a path for data transfer is formed on the bus for transferring data. In the data transmission process, the bus needs to be awakened first, and then the data can be transmitted through the bus.
After the touch screen enters a bright screen state and before the scanning starts, the bus is awakened. Therefore, the method is equivalent to waking up the bus in advance, and when the data transmission is carried out subsequently, the waken bus can be directly called for data transmission, so that the aim of shortening the touch time delay is fulfilled.
The wake-up bus proceeds as follows: and when the touch screen enters a bright screen state, sending an air break to the bus, wherein the air break is used for waking up the bus. At this time, the touch screen does not start scanning yet, and wakes up the bus by generating the null interrupt, so that the null interrupt is generated and sent at the moment when the touch screen enters the bright screen state, and the time delay of waking up the bus before scanning is further reduced. Meanwhile, the air break generation has almost no time delay, and the touch time delay can be further reduced.
Step S120: and when the touch screen starts scanning, data are directly transmitted through the bus.
When the touch screen starts scanning, the bus is awakened, so that data can be directly transmitted through the bus. The situation that in the prior art, the bus is not awakened when one frame starts to be scanned, and after the bus is awakened for a period of time, the data can be transmitted through the bus is avoided. Therefore, the time for data transmission can be shortened, the touch time delay is reduced, and the operation and use efficiency of a user is further improved.
Specifically, when the touch screen starts scanning, data is directly transmitted through the bus when one frame is scanned. This reduces the time delay between the start of the scan of the touch screen and the transmission of the data.
The data transmission through the bus means that the scanned information data is transmitted to the processor through the bus after the touch screen starts scanning, and the processor sends out corresponding operation instructions according to the obtained information data, and the operation instructions and the responsive data can also be transmitted to the touch screen through the bus. The information scanned by the touch screen may include a touch operation type of a user and position coordinates of touch points, and the touch points may be one or more. The touch operation type may include a single press of the touch screen, a continuous multiple press of the touch screen, a gesture operation of the touch screen, etc., and the gesture operation of the touch screen may include an up-slide, a down-slide, a left-slide, a right-slide, or other slide operation according to a predetermined trajectory, etc.
In some embodiments, referring to fig. 4, step S120 may specifically include the following steps:
step S121: and generating an interrupt when the touch screen starts scanning.
At this point, the generated interrupt is used to indicate the transfer of data to the processor. Specifically, an interrupt is generated when the touch screen starts scanning and scans a frame.
Step S122: sending an interrupt to the bus, transmitting data to the processor in response to the interrupt.
After receiving the interrupt, the data can be directly transmitted to the processor through the bus, and at the moment, the data can be directly transmitted through the bus without waking up again because the bus is waken up in advance. It will be understood that the data transmitted herein refers to information data obtained by scanning the touch screen.
In other embodiments, in step S120, the data may be directly transmitted through the bus after the touch screen starts scanning and acquires the scanned data.
According to the control method of the electronic equipment, whether the touch screen enters the bright screen state from the screen-off state or not is monitored, and the bus is awakened before the touch screen enters the bright screen state and starts scanning, so that the data can be directly transmitted through the bus when the touch screen scans, the touch time delay is reduced, and the operation efficiency of the touch screen is improved.
In some application environments, the electronic device enters a bright screen state from a screen-off state and is actively initiated by a user, and at this time, a specific wake-up request operation is usually executed by the user, and at this time, whether the user initiates a wake-up request or not can be monitored.
Referring to fig. 5, still another embodiment of the present application provides a control method of an electronic device, which is applied to an electronic device, wherein the electronic device includes a touch screen, a processor, and a bus connecting the touch screen and the processor. The method may comprise the steps of:
step 210: and in the screen-off state, monitoring whether a wake-up request for the touch screen is received.
The wake-up request is used for indicating the touch screen to enter a bright screen state from a screen-off state. It will be appreciated that the wake-up request may be issued by the user or by various types of applications installed on the electronic device.
In some embodiments, the wake-up request may include a touch operation of the touch screen by a user. The touch operation of the user on the touch screen can be single-point touch or multi-point touch on the touch screen, gesture touch operation on the touch screen, or continuous touch operation on the touch screen, such as continuous touch and press on the touch screen.
In some implementations, the electronic device may also be provided with physical keys, which may be, for example, on-off keys, volume +/-keys, and physical keys for other functions. In this case, the wake-up request may include a pressing operation of the physical key by the user, and the pressing operation may be, for example, a single pressing or a continuous pressing of the on/off key, or a simultaneous pressing of two or more physical keys.
After receiving the control operation of the user on the electronic equipment, the electronic equipment can be matched with the system and the preset wake-up operation of the system, and if the matching is successful, the control operation of the user is determined to be a wake-up request.
In some embodiments, the wake-up request may also be sent by an application installed on the electronic device, for example, the application a receives a message sent by the base station, and at this time, the application sends the wake-up request to display the message on the touch screen.
When the wake-up request is monitored in step S210, step S220 is performed.
Step S220: and when the wake-up request is monitored, responding to the wake-up request, and controlling the touch screen to enter a bright screen state.
After the wake-up request is received, the touch screen is controlled to be lightened in response to the wake-up request, and the touch screen enters a bright screen state from a screen-off state. It may be that step S230 may be performed immediately after the touch screen is lit or at the instant when the touch screen enters the lit state.
Step S230: an empty interrupt is sent to the bus to wake up the bus.
In some embodiments, referring to fig. 6, waking up the bus before the touch screen enters a bright screen state and starts scanning may include the following steps:
and step S231, when the touch screen enters a bright screen state, pulling down a pin to generate an empty interrupt, wherein the empty interrupt is used for waking up the bus.
The pin is pulled down, namely, the level of the pin is controlled to generate a null interrupt, for example, the level at the pin is pulled down from 1 to 0, the null interrupt is triggered, the generation of the null interrupt is realized, and the null interrupt is used for indicating the wake-up bus. In some embodiments, the pin may be pulled down to generate an empty interrupt at the instant when the touch screen enters the bright screen state, so that the time delay of waking up the bus may be further reduced, and when the touch screen starts to scan, the bus is in the wake-up state. Of course, it will be appreciated that it is possible to wake up the bus before starting the scan, i.e., to pull down the pin for a period of time after the touch screen enters the bright screen state, and to regenerate the null interrupt.
Step S232: and sending the air break to a bus.
The empty interrupt is sent to the bus after being generated for waking up the bus, and when the bus is waken up, the data can be transmitted to the processor. At this time, the touch screen is not scanned yet, the awakened bus is in a state to be transmitted, and the awakened bus can be used for calling to transmit data to the processor at any time.
After step S230, step S240 is performed, step S240: and when the touch screen starts scanning, data are directly transmitted through the bus.
According to the electronic equipment control method, whether the electronic equipment acquires the wake-up request is monitored in the screen-off state, when the wake-up request is monitored, the touch screen is controlled to enter the screen-on state, and the bus is awakened before the touch screen starts scanning, so that the touch screen transmits data through the bus during scanning. Further shortening the time for waking up the bus and reducing the touch time delay.
Referring to fig. 7, an embodiment of the present application further provides an electronic device control apparatus 400, including a wake-up module 420 and a processing module 430.
The wake-up module 420 is configured to send an empty interrupt to the bus to wake up the bus when the touch screen is detected to enter a bright screen state. In some embodiments, referring to fig. 8, the wake-up module 420 sends an air break to the bus before the touch screen enters a bright screen state and starts scanning, where the air break is used to wake up the bus. In some embodiments, the wake-up module 420 includes a pin processing module 421 and a sending module 422, where the pin processing module 421 is configured to pull down a pin to generate an empty interrupt before the touch screen enters a bright screen state and starts scanning, and the empty interrupt is used to wake up the bus. The sending module 422 is configured to send the air break to the bus.
The processing module 430 is configured to directly transmit data through the bus when the touch screen starts scanning. In some embodiments, referring to fig. 9, the processing module 430 may include an interrupt generating module 431 and a data transmission module 432, where the interrupt generating module 431 is configured to generate an interrupt when the touch screen starts scanning. The data transmission module 432 is configured to send an interrupt to the bus, and transmit data to the processor in response to the interrupt.
Referring again to fig. 7, in some embodiments, the electronic device control apparatus may further include a monitoring module 410. The monitoring module 410 is configured to monitor whether the touch screen enters a bright screen state from a screen-off state. In some embodiments, referring to fig. 10, the monitoring module 410 may include a wake request monitoring module 411 and a response module 412, where the wake request monitoring module 411 is configured to monitor whether a wake request for the touch screen is received in a screen-off state. The response module 412 is configured to, when the wake-up request is detected, control the touch screen to enter a bright screen state in response to the wake-up request.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In the several embodiments provided herein, the illustrated or discussed coupling or direct coupling or communication connection of the modules to each other may be through some interfaces, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other forms.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 11, based on the above-mentioned control method and apparatus for the electronic device, another electronic device 300 capable of executing the above-mentioned control method for the electronic device is further provided in the embodiments of the present application. The electronic device 300 includes one or more (only one shown) processors 302, memory 304, physical keys 306, a bus 308, and a touch screen 312 coupled to one another. The memory 304 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 302 can execute the program stored in the memory 304.
Wherein the processor 302 may include one or more processing cores. The processor 302 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 304, and invoking data stored in the memory 304. Alternatively, the processor 302 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 302 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 302 and may be implemented solely by a single communication chip.
The Memory 304 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 304 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 304 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the electronic device 300 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
The physical key 306 may receive a pressing operation of a user, perform a corresponding operation, and the like. The number of physical keys 306 may be one or more and may be incorporated into the housing of the electronic device. For example, to an edge of the housing or other location where the touch screen 312 is not disposed. The physical key 306 may be electrically connected to the processor 302 to receive a pressing command from a user.
The touch screen 312 may be various display screens such as an LCD screen, an LED screen, an OLED screen, etc., and the touch screen 312 is available for touch input. The electronic device 300 may also be provided with one or more shortcut buttons that are coupled to the housing of the electronic device 300 and may be coupled to the processor 302 via the control circuit.
Bus 308 may be i 2 c bus (Inter-Integrated Circuit), touch screen 312 is connected to the processor via bus 308 and is used for data transfer. When the touch screen 312 goes from the off-screen state to the on-screen state, the bus 308 may be awakened, and the touch screen 312 and the processor 302 may communicate data to each other via the awakened bus 308.
It should be appreciated that the electronic device 300 in this embodiment may be a mobile phone or a smart phone (e.g., an iPhone-based, android-based phone), a Portable game device (e.g., a Nintendo DS (TM), playStation Portable (TM), gameboy Advance TM, iPhone (TM)), a laptop, a PDA, a Portable Internet device, a music player, a data storage device, and the like. The electronic device 300 may also be any of a number of electronic devices 300, the number of electronic devices 300 including, but not limited to, cellular telephones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbooks, personal Digital Assistants (PDAs), portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3 (MP 3) players, portable medical devices, and digital cameras, and combinations thereof.
Referring to fig. 12, a block diagram of a computer readable storage medium according to a sixth embodiment of the present application is shown. The computer readable medium 800 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (7)
1. The electronic equipment control method is characterized by comprising a touch screen, a processor and a bus connecting the touch screen and the processor, wherein the bus is connected with the processor through pins, and the method comprises the following steps:
in a screen-off state, monitoring whether a wake-up request for the touch screen is received or not; when the wake-up request is monitored, responding to the wake-up request, controlling the touch screen to enter a bright screen state, pulling down the pin, and generating an empty interrupt; sending the air break to a bus to wake up the bus;
when the touch screen starts scanning, generating an interrupt, sending the interrupt to the bus, and transmitting data to the processor in response to the interrupt.
2. The method of claim 1, wherein the wake-up request comprises a user touch operation on the touch screen.
3. The method of claim 1, wherein the electronic device is provided with a physical key, and wherein the wake request includes a user pressing the physical key.
4. The method of claim 1, wherein the touch screen is determined to enter a bright screen state when the touch screen is detected to exit from a rest screen state.
5. An electronic device control apparatus, wherein the electronic device includes a touch screen, a processor, and a bus connecting the touch screen and the processor, the bus and the processor are connected through pins, the apparatus includes:
the wake-up module is used for monitoring whether a wake-up request for the touch screen is received or not in a screen-off state; when the wake-up request is monitored, responding to the wake-up request, controlling the touch screen to enter a bright screen state, pulling down the pin, and generating an empty interrupt; sending the air break to a bus to wake up the bus;
and the processing module is used for generating an interrupt when the touch screen starts scanning, sending the interrupt to the bus, responding to the interrupt and transmitting data to the processor.
6. An electronic device comprising a memory and a processor, the memory coupled to the processor; the electronic device is provided with a touch screen and a shortcut button, the memory storing instructions that when executed by the processor cause the processor to perform the method of any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206290.4A CN111045738B (en) | 2019-11-29 | 2019-11-29 | Electronic equipment control method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206290.4A CN111045738B (en) | 2019-11-29 | 2019-11-29 | Electronic equipment control method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111045738A CN111045738A (en) | 2020-04-21 |
CN111045738B true CN111045738B (en) | 2023-12-29 |
Family
ID=70234091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911206290.4A Active CN111045738B (en) | 2019-11-29 | 2019-11-29 | Electronic equipment control method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111045738B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113419437B (en) * | 2021-06-30 | 2022-04-19 | 四川虹美智能科技有限公司 | Intelligent home data synchronization method and device based on MVVM (multifunction vehicle management model) framework and MQTT (message queuing time) protocol |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04209058A (en) * | 1990-11-30 | 1992-07-30 | Nec Corp | Interruption processor |
GB9902516D0 (en) * | 1998-02-20 | 1999-03-24 | Hewlett Packard Co | Apparatus and method for end-user performance upgrade |
CN101763160A (en) * | 2010-01-20 | 2010-06-30 | 宇龙计算机通信科技(深圳)有限公司 | Startup and standby wakeup system of mobile terminal, method and mobile terminal |
CN102799550A (en) * | 2012-06-21 | 2012-11-28 | 华为终端有限公司 | Awakening and hot-plugging methods and equipment based on high speed inter-chip (HSIC) |
CN104932740A (en) * | 2015-06-02 | 2015-09-23 | 惠州Tcl移动通信有限公司 | System and method for activating mobile terminal touch screen |
CN106990972A (en) * | 2017-04-13 | 2017-07-28 | 沈阳微可信科技有限公司 | Method and apparatus for running trusted user interface |
CN107077188A (en) * | 2014-12-08 | 2017-08-18 | 英特尔公司 | Interconnection wakes up response circuit and method |
CN107454955A (en) * | 2017-06-15 | 2017-12-08 | 深圳市汇顶科技股份有限公司 | A kind of screen awakening method, device and terminal device |
CN107783790A (en) * | 2017-11-07 | 2018-03-09 | 北京小米移动软件有限公司 | terminal awakening method and device |
CN108337913A (en) * | 2018-02-01 | 2018-07-27 | 深圳市汇顶科技股份有限公司 | Fingerprint login method, micro-control unit, fingerprint power supply module and electric terminal |
CN108347662A (en) * | 2017-01-25 | 2018-07-31 | 天津三星通信技术研究有限公司 | Earphone |
CN108647047A (en) * | 2018-03-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of awakening method and system based on mobile terminal |
CN109324833A (en) * | 2014-09-19 | 2019-02-12 | 华为技术有限公司 | A kind of method and device running application program |
CN109753947A (en) * | 2019-01-24 | 2019-05-14 | Oppo广东移动通信有限公司 | Unlocked by fingerprint method and relevant device |
CN110347439A (en) * | 2019-07-22 | 2019-10-18 | Oppo广东移动通信有限公司 | Processor awakening method, device, terminal and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100332877A1 (en) * | 2009-06-30 | 2010-12-30 | Yarch Mark A | Method and apparatus for reducing power consumption |
US9383851B2 (en) * | 2014-01-06 | 2016-07-05 | Nvidia Corporation | Method and apparatus for buffering sensor input in a low power system state |
-
2019
- 2019-11-29 CN CN201911206290.4A patent/CN111045738B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04209058A (en) * | 1990-11-30 | 1992-07-30 | Nec Corp | Interruption processor |
GB9902516D0 (en) * | 1998-02-20 | 1999-03-24 | Hewlett Packard Co | Apparatus and method for end-user performance upgrade |
CN101763160A (en) * | 2010-01-20 | 2010-06-30 | 宇龙计算机通信科技(深圳)有限公司 | Startup and standby wakeup system of mobile terminal, method and mobile terminal |
CN102799550A (en) * | 2012-06-21 | 2012-11-28 | 华为终端有限公司 | Awakening and hot-plugging methods and equipment based on high speed inter-chip (HSIC) |
CN109324833A (en) * | 2014-09-19 | 2019-02-12 | 华为技术有限公司 | A kind of method and device running application program |
CN107077188A (en) * | 2014-12-08 | 2017-08-18 | 英特尔公司 | Interconnection wakes up response circuit and method |
CN104932740A (en) * | 2015-06-02 | 2015-09-23 | 惠州Tcl移动通信有限公司 | System and method for activating mobile terminal touch screen |
CN108347662A (en) * | 2017-01-25 | 2018-07-31 | 天津三星通信技术研究有限公司 | Earphone |
CN106990972A (en) * | 2017-04-13 | 2017-07-28 | 沈阳微可信科技有限公司 | Method and apparatus for running trusted user interface |
CN107454955A (en) * | 2017-06-15 | 2017-12-08 | 深圳市汇顶科技股份有限公司 | A kind of screen awakening method, device and terminal device |
CN107783790A (en) * | 2017-11-07 | 2018-03-09 | 北京小米移动软件有限公司 | terminal awakening method and device |
CN108337913A (en) * | 2018-02-01 | 2018-07-27 | 深圳市汇顶科技股份有限公司 | Fingerprint login method, micro-control unit, fingerprint power supply module and electric terminal |
CN108647047A (en) * | 2018-03-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of awakening method and system based on mobile terminal |
CN109753947A (en) * | 2019-01-24 | 2019-05-14 | Oppo广东移动通信有限公司 | Unlocked by fingerprint method and relevant device |
CN110347439A (en) * | 2019-07-22 | 2019-10-18 | Oppo广东移动通信有限公司 | Processor awakening method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111045738A (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062190B (en) | Application running state control method and mobile terminal | |
JP7403648B2 (en) | Synchronization method and electronic equipment | |
CN108712566B (en) | Voice assistant awakening method and mobile terminal | |
CN106776385B (en) | A kind of transmission method, device and the terminal of log log information | |
EP2953003A1 (en) | Touch screen terminal and working method thereof | |
CN110989882B (en) | Control method, electronic device and computer readable storage medium | |
WO2021083256A1 (en) | Touch-control response method and electronic device | |
CN112996089B (en) | Data transmission method, device, storage medium and electronic equipment | |
CN109901695B (en) | Screen power-saving display method, mobile terminal and computer-readable storage medium | |
CN106406924B (en) | Control method and device for starting and quitting picture of application program and mobile terminal | |
US11165950B2 (en) | Method and apparatus for shooting video, and storage medium | |
WO2021109875A1 (en) | Method and apparatus for implementing game application, storage medium, and electronic device | |
WO2017206918A1 (en) | Terminal awakening accelerating method and related product | |
CN110688051B (en) | Screen recording operation method and device, computer readable storage medium and terminal | |
WO2017206860A1 (en) | Processing method of mobile terminal and mobile terminal | |
CN108833683A (en) | Dynamic antenna adjusts implementation method and Related product | |
CN107734619A (en) | Reduce the method and mobile terminal of mobile terminal power consumption | |
CN107766218A (en) | system optimization method, device, storage medium and terminal device | |
CN110602772A (en) | WiFi module control method, control device, electronic device and storage medium | |
CN111045738B (en) | Electronic equipment control method and device, electronic equipment and storage medium | |
CN107193551B (en) | Method and device for generating image frame | |
CN109947323B (en) | Terminal display method and terminal | |
CN110213437B (en) | Editing method and mobile terminal | |
CN112433694B (en) | Light intensity adjusting method and device, storage medium and mobile terminal | |
CN108287755B (en) | Application program control method 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |