CN116736999A - Control method of electronic equipment and electronic equipment - Google Patents

Control method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN116736999A
CN116736999A CN202211103243.9A CN202211103243A CN116736999A CN 116736999 A CN116736999 A CN 116736999A CN 202211103243 A CN202211103243 A CN 202211103243A CN 116736999 A CN116736999 A CN 116736999A
Authority
CN
China
Prior art keywords
touch screen
interrupt
processor
interrupt signal
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211103243.9A
Other languages
Chinese (zh)
Other versions
CN116736999B (en
Inventor
慕伟虎
李海
刘德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202410210647.0A priority Critical patent/CN118226981A/en
Priority to CN202211103243.9A priority patent/CN116736999B/en
Publication of CN116736999A publication Critical patent/CN116736999A/en
Application granted granted Critical
Publication of CN116736999B publication Critical patent/CN116736999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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)
  • 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)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a control method of electronic equipment and the electronic equipment, which relate to the technical field of terminals and comprise the following steps: when the electronic equipment is in a screen-off state, the touch screen receives a first interrupt signal generated by a first touch screen operation of a user on the touch screen, the first interrupt signal is transmitted to the processor through a first interrupt port, and the first interrupt signal is transmitted to the processor through a second interrupt port. If the first interrupt signal is triggered by a first touch screen operation in a fingerprint unlocking area of the touch screen, the processor triggers the first processing thread to report a fingerprint unlocking event to the fingerprint identification module based on the first interrupt signal received by the first interrupt port; if the first interrupt signal is not triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, the processor triggers the second processing thread to report a single click or double click event to the application processor based on the first interrupt signal received by the second interrupt port. The method improves the awakening efficiency and the screen-lighting speed of the electronic equipment.

Description

Control method of electronic equipment and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a control method of an electronic device and an electronic device.
Background
In a terminal device supporting gesture functions (such as double click wake-up and off-screen fingerprint), a user generates an interrupt event by pressing a finger against a touch screen, a driving layer transmits the interrupt event to a communication module through a serial peripheral interface (serial peripheral interface, SPI), and the communication module determines the generated interrupt event through a finger touch area and a finger pressing area and reports the interrupt event to a corresponding processor.
In practical situations, when the terminal is in a screen-off state, the system of the terminal is in a dormant state, a user needs to wake up the communication module through the interruption generated by the touch screen to process an interruption event, if the communication module is not timely waken up, the interruption event cannot be read or the data reading consumes time and power, so that the problems of slow screen-on and slow unlocking are caused, and the user function experience and the product cruising ability are affected.
Disclosure of Invention
The embodiment of the application provides a control method of electronic equipment and the electronic equipment, wherein the types of interrupt events which need to be reported in different scenes are distinguished based on different interrupt signals by adding ports corresponding to the interrupt signals. Especially, when the terminal is in a screen-off state, the situation that the communication module processes an interrupt event in the prior art is avoided, and the problem that the awakening function is invalid because the communication module is not awakened is avoided. By adopting the scheme, the terminal awakening efficiency and the screen-lighting speed can be improved, the terminal awakening power consumption expense is reduced, and the data reading time of the working power consumption of the communication module is also reduced. In order to achieve the above object, the following technical solution is adopted in the embodiments of the present application.
In a first aspect, a control method of an electronic device is provided, where a processor of the electronic device includes a first interrupt port and a second interrupt port, where the first interrupt port and the second interrupt port are both connected to a touch screen of the electronic device; the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing an interrupt signal corresponding to a single click or double click event when the electronic equipment is in a screen-off state.
The method comprises the following steps: when the electronic equipment is in a screen-off state, the touch screen receives a first touch screen operation of a user on the touch screen, and a first interrupt signal is generated; the first interrupt signal comprises coordinate information corresponding to the first touch screen operation; the touch screen transmits a first interrupt signal to the processor through a first interrupt port, and transmits the first interrupt signal to the processor through a second interrupt port; if the first interrupt signal is triggered by a first touch screen operation in a fingerprint unlocking area of the touch screen, the processor triggers the first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port; if the first interrupt signal is not triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, the processor triggers the second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port.
In the application, the interrupt event types required to be reported in different scenes can be distinguished based on interrupt signals transmitted by different interrupt ports by adding the interrupt ports for responding to screen interrupt in the processor. Particularly, in the state that the electronic device is in the off-screen state, if a touch screen operation of a fingerprint unlocking area of the touch screen is received, the touch screen operation is indicated to be used for fingerprint unlocking. In this case, the processor invokes the first interrupt thread to report the fingerprint unlocking event based on the first interrupt signal transmitted by the first interrupt port. If a touch screen operation is received by a non-fingerprint unlocked area of the touch screen, it is indicated that the touch screen operation may be a single click or a double click event. In this case, the processor invokes the second interrupt thread to report a single click or double click event based on the first interrupt signal transmitted by the second interrupt port. That is, the present scheme distinguishes whether a fingerprint unlocking event in a fingerprint unlocking scene or a single click or double click event in a single click or double click scene based on interrupt signals transmitted by different interrupt ports. The method and the device avoid the situation that interrupt event reporting is completed by waking up the communication module for a plurality of times to read interrupt data so as to determine the type of the interrupt event in the prior art, avoid the problem that a wake-up function is invalid because the communication module is not woken up, improve the wake-up efficiency and the screen-lighting speed of the electronic equipment, and simultaneously reduce the time for reading the data of the working power consumption of the communication module.
With reference to the first aspect, in one possible design manner, before the touch screen transmits the first interrupt signal to the processor through the first interrupt port and transmits the first interrupt signal to the processor through the second interrupt port, the method further includes:
responsive to a first operation at the first interface, the processor turns on a fingerprint wake function; the first interface is used for starting or closing a fingerprint awakening function; after the fingerprint wake-up function is started, the electronic equipment responds to clicking operation in the fingerprint unlocking area in a screen-off state, and the fingerprint unlocking area is lightened; responding to a second operation on a second interface, and starting a screen-off display function by the processor; the second interface is used for switching on or switching off the screen-off display function; after the screen-off display function is started, the electronic equipment responds to the clicking operation of a user in a screen-off state, and the screen-off display is started; and/or, in response to a third operation at the third interface, the processor turns on a double-click wake function; the third interface is used for starting or closing a double-click wake-up function; after the double-click wake-up function is started, the electronic equipment responds to double-click operation of a user in a screen-off state, and the touch screen is lightened.
Optionally, the first interface is a fingerprint setting interface of the electronic device, the second interface is a setting interface of a desktop and wallpaper of the electronic device, and the third interface is an auxiliary function setting interface of the electronic device.
In the application, the electronic equipment can start the fingerprint awakening function by responding to the first operation of the first interface; responding to a second operation of a second interface, and starting a screen-off display function; and responding to a third operation on a third interface, and starting a double-click wake-up function. Therefore, the response and the report of the interrupt event received by the touch screen by the electronic equipment in the screen-off state are realized, and the awakening operation of the electronic equipment in the screen-off state is realized.
With reference to the first aspect, in one possible design manner, the processor triggers, based on a first interrupt signal received by the first interrupt port, the first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic device, including:
the processor determines the touch area of the first touch screen operation according to the coordinate information corresponding to the first touch screen operation in the first interrupt signal; and if the touch area of the first touch screen operation reaches the area threshold value, triggering the first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic equipment by the processor.
In the application, the processor can further determine that the touch area of the first touch screen operation reaches the area threshold value under the condition that the first interrupt signal is determined to be triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, and trigger the first processing thread to report the fingerprint unlocking event to the fingerprint identification module of the electronic device under the condition that the first touch screen operation is determined to be effective fingerprint unlocking operation, thereby improving the awakening accuracy of the electronic device and avoiding the response to the false touch operation of the electronic device.
With reference to the first aspect, in one possible design manner, the method further includes: if the touch area of the first touch screen operation does not reach the area threshold value, the processor does not respond to the first interrupt signal.
In the application, the processor does not respond to the first terminal signal under the condition that the touch area of the current first touch screen operation does not reach the area threshold, namely, the fingerprint unlocking requirement is not met, so that the calculated amount of the processor can be reduced, and the working power consumption of the processor is reduced.
With reference to the first aspect, in one possible design manner, the processor triggers the second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port, including:
the processor acquires a first operation time and a second operation time of the first touch screen operation based on the first interrupt signal; the first operation time is the time corresponding to the pressing operation of the first touch screen operation; the second operation time is the time corresponding to the lifting operation of the first touch screen operation; if the time difference between the second operation time and the first operation time is smaller than a first time threshold, and the next first touch screen operation is not acquired in a preset first time period, triggering a second processing thread to report a single click event to an application processor of the electronic equipment; if the time difference between the second operation time and the first operation time is smaller than a first time threshold, acquiring the next first touch screen operation within a preset first time period, and acquiring a third operation time of the next first touch screen operation; the third operation time is the time corresponding to the lifting operation of the next first touch screen operation; and if the time difference between the third operation time and the second operation time is smaller than a second time threshold value, triggering the second processing thread to report a double-click event to an application processor of the electronic equipment.
In the application, the processor can determine that the first touch screen operation is a single-click operation or a double-click operation based on the lifting time and the pressing time of the first touch screen operation under the condition that the first interrupt signal is not triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, so as to report a corresponding interrupt event. The type of the reporting interrupt event is determined based on the first interrupt signal, so that the calculation amount is small, the working power consumption of the processor is reduced, and the reporting efficiency of the interrupt event is improved.
With reference to the first aspect, in one possible design manner, the method further includes:
the processor is not responsive to the first interrupt signal if a time difference between the third operating time and the second operating time is greater than or equal to a second time threshold.
In the application, the processor does not respond to the first terminal signal under the condition that the current first touch screen operation is neither single click operation nor double click operation, so that the calculated amount of the processor can be reduced, and the working power consumption of the processor can be reduced.
With reference to the first aspect, in one possible design manner, the method further includes:
when the electronic equipment is in a bright screen state, the touch screen receives a second touch screen operation of a user on the touch screen, and a second interrupt signal is generated; the second interrupt signal comprises coordinate information corresponding to the second touch screen operation; the touch screen transmits a second interrupt signal to the processor through a second interrupt port; and the processor triggers a corresponding module of the second processing thread electronic equipment to report an interrupt event based on a second interrupt signal received by the second interrupt port.
In the application, when the electronic equipment is in the screen-on state, the processor can realize the transmission of the interrupt signal through the second interrupt port, and determine and report the interrupt event type based on the interrupt signal, so that the interrupt response of the electronic equipment in the screen-on state can be realized while the electronic equipment can be quickly awakened in the screen-off state.
With reference to the first aspect, in one possible design manner, triggering a corresponding module of the second processing thread electronic device to report an interrupt event includes:
triggering a second processing thread to determine an interrupt event type corresponding to a second touch screen operation based on a second interrupt signal; if the interrupt event type corresponding to the second touch screen operation is a fingerprint unlocking event, reporting the fingerprint unlocking event to a fingerprint identification module of the electronic equipment; and if the interrupt event type corresponding to the second touch screen operation is a single click event or a double click event, reporting the single click event or the double click event to an application manager of the electronic equipment.
In the application, when the electronic equipment is in the screen-on state, the processor can realize the transmission of the interrupt signal through the second interrupt port, and determine and report the interrupt event type based on the interrupt signal, so that the interrupt response of the electronic equipment in the screen-on state can be realized while the electronic equipment can be quickly awakened in the screen-off state.
In a second aspect, an electronic device is provided, the electronic device comprising a processor and a touch screen; the processor of the electronic device comprises a first interrupt port and a second interrupt port, and the first interrupt port and the second interrupt port are both connected with a touch screen of the electronic device; the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing an interrupt signal corresponding to a single click or double click event when the electronic equipment is in a screen-off state.
The touch screen receives a first touch screen operation of a user on the touch screen when the electronic equipment is in a screen-off state, and generates a first interrupt signal; the first interrupt signal comprises coordinate information corresponding to the first touch screen operation; the first interrupt signal is transmitted to the processor through the first interrupt port, and the first interrupt signal is transmitted to the processor through the second interrupt port.
The processor is used for triggering the first processing thread to report a fingerprint unlocking event to the fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port under the condition that the first interrupt signal is determined to be triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen; and triggering a second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port under the condition that the first interrupt signal is determined not to be triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen.
In a third aspect, an electronic device is provided that includes a memory, a touch screen, and one or more processors; the memory, the touch screen and the processor are coupled; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of the first aspects described above.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on an electronic device, cause the electronic device to perform the method of any of the first aspects described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of the first aspects above.
In a sixth aspect, an embodiment of the application provides a chip comprising a processor for invoking a computer program in memory to perform a method as in the first aspect.
It will be appreciated that, for the advantages achieved by the electronic device according to the second aspect and the third aspect, the computer-readable storage medium according to the fourth aspect, the computer program product according to the fifth aspect, and the chip according to the sixth aspect, reference may be made to the advantages of the first aspect and any possible design manner thereof, which are not repeated here.
Drawings
FIG. 1 is a flow chart of a wake-up process of a prior art terminal according to an embodiment of the present application;
fig. 2 is a schematic log diagram of wake-up failure caused by communication failure of a communication module of a terminal in the prior art according to an embodiment of the present application;
fig. 3 is a flowchart of a control method of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a processor interface of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic software architecture diagram of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a first interrupt signal according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a second interrupt signal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
In the description of embodiments of the present application, the terminology used in the embodiments below is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless stated otherwise. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In an electronic device supporting gesture functions (such as double-click wake-up and off-screen fingerprint), in a scene that the electronic device turns on modes such as off-screen fingerprint unlocking, off-screen display (single-click wake-up) and double-click wake-up, a user can wake up an electronic device system to light up a screen in a mode of off-screen fingerprint, single-click or double-click based on a touch screen of the electronic device. In the state that the electronic equipment is in the bright screen, the user can control the bright screen of the electronic equipment in a mode of under-screen fingerprint, single click or double click based on the touch screen of the electronic equipment. In the state that the electronic equipment is in a screen-off state or a screen-on state, the user can generate an interrupt signal based on the operation of the touch screen of the electronic equipment, the driving layer sends the interrupt signal to the communication module, the communication module determines the generated interrupt event through the finger touch area and the finger pressing area, and the interrupt event is reported to the corresponding processor, so that the screen-on of the electronic equipment is controlled.
By way of example, and with reference to fig. 1, a flow chart of a prior art electronic device responsive screen terminal is shown in fig. 1. As shown in fig. 1, the electronic device may determine whether the electronic device is in a screen-off state. For example, the electronic device may determine whether the electronic device is in an off-screen state based on a screen state parameter (e.g., screen parameter iscorenen) of the electronic device. For example, the screen parameter iscorenen is "wire" indicating that the electronic device is in a bright screen state; the screen parameter iscorenen is "false" indicating that the electronic device is in an off-screen state. If the screen parameter isscreen on is 'false', the electronic equipment is in a screen-off state, and a touch screen of the electronic equipment can generate an interrupt signal in response to the pressing of a finger of a user on the touch screen; the driver layer may begin sampling and send the generated interrupt signal to the communication module through a serial peripheral interface (serial peripheral interface, SPI). After receiving the interrupt signal, the communication module may read interrupt data (e.g., coordinates of a touch area of a finger on the screen). Then, the communication module may determine whether the touch area is a fingerprint area according to the interrupt data. If the touch area is a fingerprint area, the communication module may further determine whether the area of the touch area reaches an area threshold. If the area of the touch area reaches the area threshold, the communication module may invoke the processing thread 1 to process the interrupt event based on the interrupt data. The processing thread 1 may report the interrupt event to a fingerprint identification module (FP) of the electronic device. If the communication module determines that the touch area of the finger is not the fingerprint area, the processing thread 1 can be called to read interrupt data, if the interrupt data is matched with the preset event type, the processing thread 1 reports a single-click event to an application processor (application processor, AP) of the electronic device, and if the interrupt data is determined to be matched with double-click data, the processing thread 1 reports the double-click event to an AP wake-up system.
For example, if the screen parameter iscoreenon is "wire", the electronic device is in a bright screen state, and the driving layer receives an interrupt event of the touch screen, and triggers the processing thread 1 to read interrupt data and determine the interrupt event type. For example, it is determined that the interrupt event type corresponding to the interrupt data is a single click event or a double click event based on the interrupt data matching a preset event type. Then, the communication module reads the interrupt event type and reports the interrupt event to the AP.
Obviously, in the prior art, the response to the interrupt and the reporting of the interrupt event are realized through a communication mechanism between a driving layer and a communication module. That is, after obtaining the interrupt signal, the driving layer needs to send the interrupt signal to the communication module, and the communication module needs to read the interrupt data to determine the type of the interrupt event and report the interrupt event.
In this process, the communication module needs to read the interrupt data multiple times to determine the type of interrupt event, for example, the communication module needs to read the interrupt data, and determine whether the touch area is a fingerprint area or a non-fingerprint area based on the coordinates of the touch area in the interrupt data. For example, in the case where it is determined that the touch area is a non-fingerprint area, the communication module needs to call the processing thread 1 to read interrupt data again, and determine the interrupt event type that the interrupt data matches. Such multiple readings of interrupt data can result in higher power consumption for the operation of the communication module. In addition, in the actual situation, when the system of the electronic device enters the sleep state, under the condition that the communication mechanism may fail in communication, for example, the communication module is not awakened in time, so that the communication module cannot timely read an interrupt event or read data, and finally, the problems of slow screen brightness and slow unlocking are caused, and the user function experience and the product cruising ability are affected.
Fig. 2 shows a log diagram, which is a wake-up method of an electronic device according to the prior art, in which a situation that a screen of the electronic device is not woken up occurs, and by looking at log, it is determined that a problem that the screen is not woken up is that SPI communication fails (for example, SPI failed-13 in log in the figure).
The embodiment of the application provides a control method of electronic equipment, which can distinguish interrupt event types needing to be reported in different scenes based on interrupt signals transmitted by different ports from the perspective of hardware by adding interrupt ports for responding to user screen operation. The interrupt signal is processed by the processor, communication with the communication module is not needed, particularly when the electronic equipment is in a screen-off state, a communication mechanism using the communication module is avoided, the wake-up function failure caused by communication failure is avoided, meanwhile, the working power consumption of the communication module and the time for reading data are reduced, the power consumption expense of the terminal is reduced, and the screen-on speed of a wake-up terminal system is improved.
The control method of the electronic device provided in this embodiment may be shown in fig. 3. In the present embodiment, the screen interrupt of the setting electronic device includes two interrupt types, by way of example. The first interrupt only reports a fingerprint unlocking event of a user on the touch screen when the electronic equipment is in a screen-off state. Specifically, the first interrupt refers to that when the electronic device is in a screen-off state, the processor calls the first interrupt thread to report a fingerprint unlocking event based on a first interrupt signal transmitted by the first interrupt port. And the second interrupt reports coordinate information and fingerprint unlocking events of touch screen operation of a user on the touch screen when the electronic equipment is in a bright screen state, and only reports a single click event or double click event of the user on the touch screen when the electronic equipment is in a dead screen state. Specifically, the second interrupt refers to that when the electronic equipment is in a screen-off state, the processor calls the second interrupt thread to report a single click or double click event based on a first interrupt signal transmitted by the second interrupt port; and when the electronic equipment is in a bright screen state, the processor calls a second interrupt thread to report a corresponding interrupt event based on a second interrupt signal transmitted by the second interrupt port.
The ports of the processor used as the operation responding to the screen interrupt include a first interrupt port and a second interrupt port. And the first interrupt port and the second interrupt port are both connected with a touch screen of the electronic equipment. Correspondingly, the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing interrupt signals corresponding to single click or double click events when the electronic equipment is in a screen-off state and interrupt signals corresponding to interrupt events of all screen touch operations when the electronic equipment is in a screen-on state.
The processor determines that the electronic equipment is in a screen-off state based on screen state parameters of the electronic equipment, a user performs touch screen operation on a touch screen of the electronic equipment to generate an interrupt signal, the processor samples the interrupt signal, acquires coordinate information corresponding to the touch screen operation based on the interrupt signal, and determines that a region of the touch screen operation is a fingerprint region according to the coordinate information. If the area of the touch screen operation is the fingerprint area, the processor further judges that the touch area of the touch screen operation reaches an area threshold value based on the interrupt signal transmitted by the first interrupt port. And if the touch area of the touch screen operation reaches the area threshold, triggering the first processing thread to report the fingerprint event to the FP of the electronic equipment by the processor. If the processor determines that the touch area of the touch screen operation does not reach the area threshold, the current flow is terminated.
If the processor determines that the area of the touch screen operation is not the fingerprint area, determining the type of the interrupt event based on the interrupt signal transmitted by the second interrupt port and the first judging condition. The first judging condition is used for judging that the interrupt event is a click event, and if the first judging condition is met, the second processing thread is triggered to report the click event to the AP of the electronic equipment. And if the first judging condition is not met, determining the type of the interrupt event according to the second judging condition. The second judging condition is used for judging that the interrupt event is a double-click event. And if the second judging condition is met, triggering a second processing thread to process and report the double-click event to the AP. If the second judgment condition is not satisfied, the current flow is terminated.
If the electronic equipment is determined to be in a bright screen state based on the screen state parameter of the electronic equipment, triggering a second processing thread to determine the type of the interrupt event based on the interrupt signal transmitted by the second interrupt port, and reporting the interrupt event to a corresponding module.
In this embodiment, by adding the interrupt ports for responding to the screen interrupt in the processor, interrupt event types to be reported in different scenes are distinguished based on interrupt signals transmitted by different interrupt ports, especially in the state that the electronic device is in a screen off state, the situation that interrupt event types are required to be read for multiple times by waking up the communication module to determine the interrupt event types in the prior art is avoided, thus completing the reporting of the interrupt event, avoiding the problem of invalid wake-up function caused by that the communication module is not woken up, improving the wake-up efficiency and screen-on speed of the electronic device, and reducing the time for reading data of the working power consumption of the communication module.
The electronic device 100 in the embodiment of the present application may be an electronic device having a touch display screen. By way of example, the electronic device may be a portable computer (e.g., a cell phone), a tablet computer, a notebook computer, a personal computer (personal computer, PC), a wearable electronic device (e.g., a smart watch), an augmented reality (augmented reality, AR) \virtual reality (VR) device, a vehicle-mounted computer, etc., and the following embodiments do not limit the specific form of the electronic device in any way.
Referring to fig. 4, a block diagram of an electronic device (e.g., electronic device 100) according to an embodiment of the application is shown. The electronic device 100 may include, among other things, a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (universal serial bus, USB) interface 330, a charge management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a radio frequency module 350, a communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-piece interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a user identification module (subscriber identification module, SIM) card interface 395. The sensor modules 380 may include, among other things, pressure sensors 380A, fingerprint sensors 380B, touch sensors 380C, etc.
The illustrated structure of the embodiment of the present invention does not constitute a limitation of the electronic apparatus 100. More or fewer components than shown may be included, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 310 may include one or more processing units. For example, the processor 310 may include an Application Processor (AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digitalsignal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a decision maker that directs the various components of the electronic device 100 to coordinate their operations in accordance with instructions. Is the neural and command center of the electronic device 100. The controller generates an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, memory in the processor 310 is a cache memory that holds instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 310 may include an interface. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, and/or a USB interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a Serial Data Line (SDL) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 310 may contain multiple sets of I2C buses. The processor 310 may be coupled to the touch sensor 380C, charger, flash, camera 393, etc., respectively, via different I2C bus interfaces. For example: the processor 310 may couple the touch sensor 380C through an I2C interface, causing the processor 310 to communicate with the touch sensor 380C through an I2C bus interface, implementing the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 310 may contain multiple sets of I2S buses. The processor 310 may be coupled to the audio module 370 via an I2S bus to enable communication between the processor 310 and the audio module 370. In some embodiments, the audio module 370 may communicate audio signals to the communication module 360 via the I2S interface to implement a function of answering a call via a bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 370 and the communication module 360 may be coupled by a PCM bus interface. In some embodiments, the audio module 370 may also transmit audio signals to the communication module 360 via the PCM interface to enable the function of answering a call via the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication, the sampling rates of the two interfaces being different.
The UART interface is a universal serial data bus for asynchronous communications. The bus is a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 310 with the communication module 360. For example: the processor 310 communicates with the bluetooth module through a UART interface to implement a bluetooth function. In some embodiments, the audio module 370 may transmit an audio signal to the communication module 360 through a UART interface, implementing a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 310 to peripheral devices such as the display screen 394, the camera 393, and the like. The MIPI interfaces include camera serial interfaces (cameraserial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 310 and camera 393 communicate through a CSI interface, implementing the photographing function of electronic device 100. The processor 310 and the display screen 394 communicate via a DSI interface to implement the display functions of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect processor 310 with camera 393, display 394, communication module 360, audio module 370, sensor module 380, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
In this embodiment, two ports in the GPIO interface are used to transmit an interrupt signal of a touch screen operation of a user on a touch screen of the electronic device. Referring to fig. 5, fig. 5 is a schematic diagram of a GPIO interface of a processor in the prior art and a GPIO interface of a processor in the present embodiment. Fig. 5 (a) is a schematic structural diagram of a GPIO interface of a processor in the prior art, where the GPIO interface includes 24 GPIO ports, where ports 3, 5, 9, and 11 are idle ports, and the remaining ports can be used for corresponding signal transmission purposes. For example, the port 15 is a tp_int for transmitting an interrupt signal of a screen interrupt of the electronic device. On the basis of fig. 5 (a), the present embodiment adds a second port for transmitting an interrupt signal for screen interrupt, and optionally, the second port may be determined from among the idle ports. As in (b) of fig. 5, the idle port 11 is used to transmit an interrupt signal of a screen interrupt, which is named tp_int2.
In this embodiment, processing threads corresponding to the first port and the second port are set to process interrupt events. For example, the first processing thread processes a first interrupt signal transmitted by the first port and reports a first interrupt event. The first interrupt event comprises a fingerprint unlocking event when the electronic equipment is in a screen-off state; and the second processing thread processes a second interrupt signal transmitted by the second port and reports a second interrupt event. The second interrupt event comprises a single click event and/or a double click event of the electronic equipment in a screen off state and all screen interrupt events of the electronic equipment in a screen on state.
USB interface 330 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 330 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. But also for connecting other electronic devices, such as AR devices, etc.
The interface connection relationship between the modules illustrated in the embodiment of the present invention is only schematically illustrated, and does not limit the structure of the electronic device 100. The electronic device 100 may employ different interfacing means, or a combination of interfacing means, in embodiments of the present invention.
The charge management module 340 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 340 may receive a charging input of a wired charger through the USB interface 330. In some wireless charging embodiments, the charge management module 340 may receive wireless charging input through a wireless charging coil of the electronic device 100. The battery 342 is charged by the charge management module 340, and the electronic device 100 can be powered by the power management module 341.
The power management module 341 is configured to connect the battery 342, the charge management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charge management module 340 to power the processor 310, the internal memory 321, the external memory interface 320, the display screen 394, the camera 393, the communication module 360, and the like. The power management module 341 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance), and other parameters. In some embodiments, the power management module 341 may also be disposed in the processor 310. In some embodiments, the power management module 341 and the charge management module 340 may also be provided in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the radio frequency module 350, the communication module 360, the modem, the baseband processor, and the like.
The communication module 360 may provide a communication processing module that is applied to the electronic device 100 and includes solutions for wireless communication such as wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), and the like. The communication module 360 may be one or more devices integrating at least one communication processing module. The communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals and filters the signals, and transmits the processed signals to the processor 310. The communication module 360 may also receive a signal to be transmitted from the processor 310, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and radio frequency module 350 of electronic device 100 are coupled, and antenna 2 and communication module 360 are coupled, such that electronic device 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (satellite based augmentation systems, SBAS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (BeiDou navigation satellite system, BDS), a Quasi zenith satellite system (Quasi-Zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. For example, the display 394 may display an incoming call alert interface and a voice call interface. In the embodiment of the present application, if the electronic device 100 receives an intra-application call request initiated by the opposite end in the first application, the display screen 394 of the electronic device 100 may display a voice call interface including service information of the first application. The display screen 394 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantumdot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 394, N being a positive integer greater than 1.
In this embodiment, the user generates a screen interrupt event by fingerprint unlocking, clicking or double clicking operation when the electronic device is in the off-screen state, so as to wake up the electronic device to lighten the screen.
Electronic device 100 may implement shooting functions through an ISP, a camera 393, a video codec, a GPU, a display screen, an application processor, and the like.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 310 through an external memory interface 320 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 321 may be used to store computer executable program code comprising instructions. The processor 310 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 321. The memory 121 may include a stored program area and a stored data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the memory 121 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, other volatile solid-state storage device, universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functionality through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-headphone interface 370D, and an application processor, among others. Such as music playing, recording, etc.
The pressure sensor 380A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 380A may be disposed on the display screen 394. The pressure sensor 380A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 394, the electronic apparatus 100 detects the touch operation intensity from the pressure sensor 380A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 380A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The fingerprint sensor 380B is used to capture a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The touch sensor 380C, also referred to as a "touch panel". May be provided on the display screen 394. For detecting a touch operation acting on or near it. The detected touch operation may be communicated to an application processor to determine the touch event type and provide a corresponding visual output through display screen 394.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 6 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 6, the application package may include applications for cameras, gallery, calendar, phone (i.e., the "phone" application in the embodiment of the application), map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 6, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, and a notification manager.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views.
The telephony manager is used to provide the communication functions of the electronic device 100. For example, management of call status (including on, off, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android runtimes include core libraries and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In this embodiment, the display driver is configured to determine, based on the interrupt data and the first and second judging conditions, an interrupt event type of the screen interrupt event, for example, determine that the interrupt event type is a single click event or a double click event, and report the corresponding interrupt event to the application manager.
Taking the embodiment of the present disclosure as an example of the processor of the electronic device 100 executing the processor of the electronic device 100, the embodiment of the present disclosure provides a control method of the electronic device based on the hardware structure of the electronic device provided in fig. 4, the interface structure provided in fig. 5, and the software architecture of the electronic device provided in fig. 6. As shown in fig. 5 (b), the processor of the electronic device includes a first interrupt port 15 and a second interrupt port 11, where the first interrupt port 15 and the second interrupt port 11 are connected to a touch screen of the electronic device. Different interrupt ports correspond to interrupt signals of different interrupt events. For example, the first interrupt port 15 is configured to provide an interrupt signal corresponding to a fingerprint unlocking event when the electronic device is in a screen-off state; the second interrupt port 11 is used for providing an interrupt signal corresponding to a single click or double click event when the electronic device is in a screen off state. In combination with the control method of the electronic device provided by the embodiment shown in fig. 3, the method provided by the embodiment of the disclosure includes a stage of the electronic device starting a screen-off wake-up scene and a stage of the electronic device responding to a screen interrupt.
The electronic equipment starts a screen-off awakening scene to comprise at least one of the following conditions:
case (1): in response to a first operation at the first interface, the processor turns on a fingerprint wake function. The first interface is used for starting or closing a fingerprint awakening function. After the fingerprint wake-up function is started, the electronic equipment responds to clicking operation in the fingerprint unlocking area in the screen-off state, and the fingerprint unlocking area is lightened.
The first interface is a fingerprint setting interface of the electronic device. The first operation is an operation of starting a fingerprint wake-up function on a fingerprint setting interface by a user. The processor, in response to the first operation, turns on a fingerprint wake-up function of the electronic device. When the electronic equipment is in the off-screen state in a state that the electronic equipment starts the fingerprint wake-up function, the processor can respond to the click operation of a user on the fingerprint unlocking area of the electronic equipment, and the fingerprint unlocking area of the touch screen is lightened. Optionally, the display effect of the fingerprint unlocking area can be added at the same time of the fingerprint unlocking area of the electric quantity touch screen. For example, the fingerprint unlocking area is dynamically displayed, or an animation effect is displayed in the fingerprint unlocking area.
Case (2): responsive to a second operation at the second interface, the processor turns on the off-screen display function. The second interface is used for switching on or switching off the screen-off display function. After the screen-off display function is started, the electronic equipment responds to the clicking operation of a user in the screen-off state, and the screen-off display is started.
The second interface is a setting interface of a desktop and wallpaper of the electronic equipment. The second operation is the operation of opening the screen-off display function on the setting interface of the desktop and the wallpaper by the user. And the processor responds to the second operation and starts the off-screen display function of the electronic equipment. When the electronic equipment is in the off-screen state in the state that the electronic equipment starts the off-screen display function, the processor can respond to the clicking operation of the user on the touch screen to start the off-screen display. The screen-off display means that the processor can display time, incoming call information, personalized pictures, personalized dynamic pictures and the like in a partial area of the touch screen on the premise that the whole touch screen is not lightened.
Case (3): in response to a third operation at the third interface, the processor turns on a double-click wake function. The third interface is used for turning on or off the double-click wake-up function. After the double-click wake-up function is started, the electronic equipment responds to double-click operation of a user in a screen-off state, and the touch screen is lightened.
The third interface is an auxiliary function setting interface of the electronic device. The third operation is an operation of starting the double-click wake-up function on the auxiliary function setting interface by the user. The processor, in response to the third operation, turns on a double-click wake-up function of the electronic device. In a state in which the electronic device turns on the double-click wake-up function, when the electronic device is in a screen-off state, the processor may light up the touch screen in response to a double-click operation of the user on the touch screen.
It should be noted that, when the electronic device is in the off-screen state in a scenario (referred to as scenario one for short) in which the electronic device starts the fingerprint wake-up function and does not start the off-screen display function, the processor responds to different user operations, and the touch screen may execute different display or lighting events. For example, in the above scenario, when the electronic device is in the off-screen state, the processor is responsive to a click operation of the user on the fingerprint unlocking area to light the fingerprint unlocking area of the touch screen; when the electronic equipment is in the off-screen state, if the processor receives a click operation of a user on the touch screen, the touch screen can lighten the fingerprint unlocking area and does not execute the operation of starting off-screen display; when the electronic equipment is in the off-screen state, if the touch screen can lighten the fingerprint unlocking area when receiving the double-click operation of the user on the touch screen, the operation of lightening the touch screen is not executed.
When the electronic equipment is in the off-screen state under the scene (simply referred to as a second scene) that the electronic equipment starts the fingerprint awakening function and starts the off-screen display function, the processor responds to different user operations, and the touch screen can also execute different display or lighting events. For example, in the second scenario, when the electronic device is in the off-screen state, the processor is responsive to a click operation of the user on the fingerprint unlocking area to lighten the fingerprint unlocking area of the touch screen; in the off-screen state of the electronic equipment, the processor responds to the clicking operation of a user, and the touch screen can start off-screen display; when the electronic equipment is in the off-screen state, if the processor receives double-click operation of a user on the touch screen, the fingerprint unlocking area can be lightened, and the operation of lightening the touch screen is not executed.
When the electronic equipment is in a screen-off state under the scene (namely a scene three for short) that the fingerprint wake-up function is started, the screen-off display function is started and the double-click wake-up function is started, the processor responds to different user operations, and the touch screen can also execute different display or lighting events. For example, in the third scenario, when the electronic device is in the screen-off state, the processor responds to the click operation of the user in the fingerprint unlocking area, and can lighten the fingerprint unlocking area of the touch screen; when the electronic equipment is in a screen-off state, the processor responds to a click operation of a user, and the touch screen can start screen-off display; when the electronic equipment is in the off-screen state, the processor responds to double-click operation of a user, and the touch screen can be lightened.
That is, if the electronic device does not start a certain functional scenario, the electronic device cannot respond to the triggering operation corresponding to the functional scenario. Generally, the electronic device defaults to turning on the fingerprint wake-up function scenario.
The scene of responding to the screen interrupt in the off-screen state in the control method of the electronic device provided by the embodiment is illustrated by the scene that the electronic device is in the on-fingerprint wake-up function, the off-screen display function and the double-click wake-up function, and the method comprises the following steps:
s201, when the electronic equipment is in a screen-off state, the touch screen receives a first touch screen operation of a user on the touch screen, and a first interrupt signal is generated; the first interrupt signal comprises coordinate information corresponding to touch screen operation.
The electronic equipment being in the off-screen state means that the electronic equipment normally closes the backlight off-screen. The off-screen state of the electronic equipment comprises a standby state and a dormant state. The standby state refers to a state that the electronic equipment is in low energy consumption, and a system of the electronic equipment is not required to be awakened, so that a user can respond to the operation of the screen of the electronic equipment, the standby state is rapidly exited, and the desktop is accurately restored to a state of entering the standby state. The sleep state refers to a system that needs to wake up the electronic device in response to a user's operation on the screen of the electronic device, thereby lighting the screen of the electronic device. The processor may determine that the current electronic device is in a bright screen state or a dead screen state according to the screen state parameter.
Under the scene that the electronic equipment starts at least one function of a fingerprint awakening function, a screen-off display function and a double-click awakening function, the touch screen can monitor touch screen operation of a user based on the touch screen in real time, and when receiving first touch screen operation of the user on the touch screen, a first interrupt signal is generated. The first touch screen operation comprises a click operation of a user in a fingerprint unlocking area of the touch screen, a single click operation in a non-fingerprint unlocking area or a double click operation in the non-fingerprint unlocking area. The first interrupt signal includes coordinate information corresponding to the touch screen operation, for example, the touch screen responds to the click operation performed by the user on the touch screen, and generates the first interrupt signal, where the first interrupt signal includes coordinate information of a touch area corresponding to the click operation, an area of the touch area, and the like, and is used for judging a type of the current touch screen operation.
S202, the touch screen transmits a first interrupt signal to the processor through a first interrupt port, and transmits the first interrupt signal to the processor through a second interrupt port.
The first interrupt port 15 and the second interrupt port 11 of the processor are connected with the touch screen. Under the scene that the electronic equipment starts a fingerprint awakening function, a screen-off display function and a double-click awakening function, after the touch screen generates a first interrupt signal, the first interrupt signal is respectively transmitted to the processor through the first interrupt port 15 and the second interrupt port 11. That is, the processor receives the first interrupt signal transmitted from the first interrupt port 15 and the first interrupt signal transmitted from the second interrupt port 11.
And S203, if the first interrupt signal is triggered by a first touch screen operation in a fingerprint unlocking area of the touch screen, the processor triggers the first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port.
In this embodiment, after receiving the first interrupt signal, the processor determines, according to coordinate information corresponding to the first touch screen operation in the first interrupt signal, whether the touch area of the first touch screen operation is a fingerprint unlock area. Optionally, if the processor determines that the overlapping degree of the touch area of the first touch screen operation and the fingerprint unlocking area of the touch screen reaches a preset proportion, determining that the touch area of the first touch screen operation is the fingerprint unlocking area. For example, the preset ratio may be 50%.
Under the condition that the touch area of the first touch screen operation is determined to be the fingerprint unlocking area, the processor can determine that an interrupt event corresponding to the first interrupt signal is the fingerprint unlocking event, and according to the corresponding relation between the interrupt port and the interrupt signal, the processor acquires the first interrupt signal corresponding to the fingerprint unlocking event when the electronic equipment is in the screen-off state, namely acquires the first interrupt signal received by the first interrupt port, triggers the first processing thread to report the fingerprint unlocking event to the fingerprint identification module, and lightens the fingerprint unlocking area.
In order to further determine that the first touch screen operation in the fingerprint unlocking area of the touch screen is a valid operation, the processor may further verify the touch area of the first touch screen operation, including:
s2031, determining the touch area of the first touch screen operation according to the coordinate information corresponding to the first touch screen operation.
In this embodiment, the coordinate information corresponding to the first touch screen operation includes a plurality of region outline coordinates of the pressing region of the first touch screen operation, and the processor determines the area of the pressing region, that is, the touch area of the first touch screen operation, based on the plurality of region outline coordinates.
And S2032, triggering the first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic equipment if the touch area of the first touch screen operation reaches an area threshold.
In this embodiment, referring to fig. 7, fig. 7 shows a schematic diagram of a first interrupt signal, where the first interrupt port remains high in the case where the touch screen does not generate a screen interrupt event. The first interrupt port generates a falling edge when the user generates a pressing operation down on the touch screen and generates a rising edge when the user generates a lifting operation up on the touch screen. The processor adopts a first edge (falling edge) to sample a fingerprint area, a second edge (rising edge) to report a fingerprint unlocking event, and whether the touch area of the first touch screen operation reaches an area threshold value is judged in the time period of the first edge and the second edge. The processor compares the calculated touch area of the first touch screen operation with an area threshold, and if it is determined that the touch area of the first touch screen operation reaches the area threshold, the processor determines that the current interrupt event is a fingerprint unlocking event, and then triggers the first processing thread to report the fingerprint unlocking event to a fingerprint identification module of the electronic device.
S2033, if the touch area of the first touch screen operation does not reach the area threshold, the processor does not respond to the first interrupt signal.
In this embodiment, if the processor determines that the touch area of the first touch screen operation does not reach the area threshold, it may determine that the first touch screen operation is a false touch, in which case the processor terminates the current processing flow and does not respond to the first interrupt signal.
And S204, if the first interrupt signal is not triggered by the touch screen operation in the fingerprint unlocking area of the touch screen, the processor triggers the second processing thread to report a single click or double click event to an application processor of the electronic device based on the interrupt signal received by the second interrupt port.
In this embodiment, if the processor determines that the overlapping degree of the touch area of the first touch screen operation and the fingerprint unlocking area of the touch screen does not reach the preset proportion, it is determined that the touch area of the first touch screen operation is a non-fingerprint unlocking area, that is, the processor determines that the first touch screen operation is not performed in the fingerprint unlocking area of the touch screen. The processor may determine that the interrupt event corresponding to the first interrupt signal is a single click or double click event. According to the corresponding relation between the interrupt port and the interrupt signal, the processor acquires a first interrupt signal corresponding to a single click or double click event when the electronic equipment is in a screen-off state, namely, acquires a first interrupt signal received by the second interrupt port, and triggers the second processing thread to report the single click or double click event to the application processor. In an exemplary case, when the processor determines that the interrupt event is a single click event based on the first interrupt signal, reporting the single click event to the application processor, and starting an off screen display; and when the processor determines that the interrupt event is a double-click event based on the first interrupt signal, reporting the single-click event to the application processor, and lighting the touch screen.
Wherein the processor may determine, based on the first interrupt signal, that the interrupt event is a single click event or a double click event, including:
s2041, acquiring a first operation time and a second operation time of a first touch screen operation based on a first interrupt signal; the first operation time is the time corresponding to the pressing operation of the first touch screen operation; the second operation time is the time corresponding to the lifting operation of the first touch screen operation.
In this embodiment, referring to fig. 8, fig. 8 shows another schematic diagram of a first interrupt signal, and the second interrupt port remains high in the case where the touch screen does not generate a screen interrupt event. The second interrupt port generates a falling edge when the user generates a pressing operation down on the touch screen and a rising edge when the user generates a lifting operation up on the touch screen. The sampling single click event starts sampling by using a first edge (falling edge), and the single click judges whether to report or not by taking the sampling interval time as a threshold value. The processor obtains a first operation time of the falling edge and a second operation time of the rising edge, and calculates a time difference between the first operation time and the second operation time to determine whether to report the single click event.
S2042, if the time difference between the second operation time and the first operation time is smaller than a first time threshold, and the next first touch screen operation is not acquired in the first time period, triggering the second processing thread to report a single click event to an application processor of the electronic device.
In this embodiment, the processor meterCalculating a time difference t between the first operation time and the second operation time 12 If the time difference t between the second operation time and the first operation time 12 And if the first touch screen operation is smaller than the first time threshold t1 and the pressing operation of the next first touch screen operation is not acquired within the preset first time period, namely, the third edge (falling edge) is not acquired, the first touch screen operation is determined to be a single click operation, and the second processing thread is triggered to report a single click event to an application processor of the electronic equipment. Alternatively, the preset first period of time may be 400ms. That is, no pressing operation of the next first touch screen operation is acquired within 400ms after the second operation timing, the first touch screen operation is determined to be a click operation.
S2043, if the time difference between the second operation time and the first operation time is smaller than a first time threshold, acquiring the next first touch screen operation in a first time period, and acquiring a third operation time of the next first touch screen operation; the third operation time is the time corresponding to the lifting operation of the next first touch screen operation.
In the present embodiment, the processor calculates a time difference t between the first operation time and the second operation time 12 If the time difference t between the second operation time and the first operation time 12 Less than the first time threshold t1, and the pressing operation of the next first touch screen operation is acquired within a preset first time period, for example, the preset first time period is 400ms, that is, the pressing operation of the next first touch screen operation is acquired within 400ms after the second operation time, wherein the third edge (falling edge) in fig. 8 represents the pressing operation down of the next first touch screen operation, and the fourth edge (rising edge) represents the lifting operation up of the next touch screen operation. The time difference t2 between the time of the pressing operation down of the next first touch screen operation and the second operation time of the first touch screen operation up is less than 400ms, and the time of the lifting operation up (fourth edge) of the next first touch screen operation (third operation time) is acquired.
And S2044, if the time difference between the third operation time and the second operation time is smaller than a second time threshold value, triggering the second processing thread to report a double-click event to an application processor of the electronic device.
In the present embodiment, the processor calculates a time difference t between the third operation time and the second operation time 23 If the time difference t 23 And when the time difference between the time corresponding to the lifting operation of the first touch screen operation and the time corresponding to the lifting operation of the next touch screen operation is smaller than a second time threshold t3, namely, the time difference between the time corresponding to the lifting operation of the first touch screen operation and the time corresponding to the lifting operation of the next touch screen operation is smaller than t3, the two touch screen operations can be regarded as quick two-click operations, the first touch screen operation is determined to be double-click operation, and the second processing thread is triggered to report a double-click event to an application processor of the electronic device.
S2045, if the time difference between the third operation time and the second operation time is greater than or equal to the second time threshold, the processor does not respond to the first interrupt signal.
In this embodiment, the processor determines the time difference t 23 Greater than or equal to the second time threshold t3, it is determined that the current first touch screen operation is neither a single click operation nor a double click operation, and there may be a false touch, in which case the first interrupt signal is not responded to.
In this embodiment, by adding the interrupt ports for responding to the screen interrupt in the processor, interrupt event types to be reported in different scenes are distinguished based on interrupt signals transmitted by different interrupt ports, especially in the state that the electronic device is in a screen off state, the situation that interrupt event types are required to be read for multiple times by waking up the communication module to determine the interrupt event types in the prior art is avoided, thus completing the reporting of the interrupt event, avoiding the problem of invalid wake-up function caused by that the communication module is not woken up, improving the wake-up efficiency and screen-on speed of the electronic device, and reducing the time for reading data of the working power consumption of the communication module.
In other embodiments, for example, when the electronic device is in a bright screen state, the processor of the electronic device responds to screen and terminal operations based on a second interrupt signal transmitted by a second interrupt port. The method comprises the following steps:
s301, when the electronic equipment is in a bright screen state, the touch screen receives a second touch screen operation of a user on the touch screen, and a second interrupt signal is generated; the second interrupt signal includes coordinate information corresponding to the second touch screen operation.
The electronic device being in the bright screen state means that the touch screen of the electronic device is in a normal lighting state. The processor may determine that the current electronic device is in a bright screen state or a dead screen state according to the screen state parameter.
And when the electronic equipment is in a bright screen state, the touch screen receives a second touch screen operation of a user on the touch screen, and a second interrupt signal is generated. Alternatively, the second touch screen operation may be a screen interrupt operation such as a click operation of the user in a fingerprint unlock region of the touch screen, a single click operation in a non-fingerprint unlock region, or a double click operation in a non-fingerprint unlock region. The second interrupt signal includes coordinate information corresponding to the touch screen operation, for example, the touch screen responds to the click operation performed by the user on the touch screen, and generates the second interrupt signal, where the second interrupt signal includes coordinate information of a touch area corresponding to the click operation, an area of the touch area, and the like, and is used for judging a type of the current touch screen operation.
S302, the touch screen transmits a second interrupt signal to the processor through a second interrupt port.
In this embodiment, after the touch screen generates the second interrupt signal, the second interrupt signal is transmitted to the processor through the second interrupt port 11. That is, the processor receives the second interrupt signal transmitted from the second interrupt port 11.
And S303, the processor triggers a corresponding module of the second processing thread electronic equipment to report an interrupt event based on a second interrupt signal received by the second interrupt port.
In this embodiment, the interrupt event corresponding to the second interrupt signal includes a fingerprint unlocking event, a single click event, or a double click event. The processor reports a fingerprint unlocking event to the fingerprint identification module and reports a single-click event or a double-click event to the application manager.
S3031, triggering a second processing thread to determine an interrupt event type corresponding to the second touch screen operation based on the second interrupt signal.
In this embodiment, the processor may determine, according to the coordinate information of the second interrupt signal, whether the second touch screen operation is performed in the fingerprint unlocking area of the touch screen. And the processor judges whether the touch area of the second touch screen operation is a fingerprint unlocking area according to the coordinate information corresponding to the second touch screen operation in the second interrupt signal. Optionally, if the processor determines that the overlapping degree of the touch area of the second touch screen operation and the fingerprint unlocking area of the touch screen reaches a preset proportion, determining that the touch area of the second touch screen operation is the fingerprint unlocking area. For example, the preset ratio may be 50%. And if the processor determines that the overlapping degree of the touch area of the second touch screen operation and the fingerprint unlocking area of the touch screen does not reach the preset proportion, determining that the touch area of the second touch screen operation is a non-fingerprint unlocking area.
If the touch area of the second touch screen operation is determined to be the fingerprint unlocking area, and the area of the touch area of the second touch screen operation meets the area threshold, determining that the interrupt event type corresponding to the second touch screen operation is the fingerprint unlocking event; if the touch area of the second touch screen operation is determined to be a non-fingerprint unlocking area, the processor can determine that the interrupt event type corresponding to the second touch screen operation is a single click event or a double click event based on matching of the second interrupt signal and a preset interrupt event type.
S3032, if the interrupt event type corresponding to the second touch screen operation is the fingerprint unlocking event, reporting the fingerprint unlocking event to a fingerprint identification module of the electronic equipment.
S3033, if the interrupt event type corresponding to the second touch screen operation is a single click event or a double click event, reporting the single click event or the double click event to an application manager of the electronic equipment.
And if the second interrupt signal is matched with the single-click event, determining that the interrupt event type corresponding to the second touch screen operation is the single-click event, and reporting the single-click event to an application manager of the electronic equipment. And if the second interrupt signal is matched with the double-click event, determining that the interrupt event type corresponding to the second touch screen operation is the double-click event, and reporting the double-click event to an application manager of the electronic equipment.
In this embodiment, when the electronic device is in the bright screen state, the processor may implement transmission of the interrupt signal through the second interrupt port, and determine and report the interrupt event type based on the interrupt signal, so as to improve the wake-up efficiency and the bright screen speed of the electronic device.
Some embodiments of the application provide an electronic device comprising a processor and a touch screen; the processor of the electronic device comprises a first interrupt port and a second interrupt port, and the first interrupt port and the second interrupt port are both connected with a touch screen of the electronic device; the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing an interrupt signal corresponding to a single click or double click event when the electronic equipment is in a screen-off state.
The touch screen receives a first touch screen operation of a user on the touch screen when the electronic equipment is in a screen-off state, and generates a first interrupt signal; the first interrupt signal comprises coordinate information corresponding to the first touch screen operation; the first interrupt signal is transmitted to the processor through the first interrupt port, and the first interrupt signal is transmitted to the processor through the second interrupt port.
The processor is used for triggering the first processing thread to report a fingerprint unlocking event to the fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port under the condition that the first interrupt signal is determined to be triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen; and triggering a second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port under the condition that the first interrupt signal is determined not to be triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 4 and the interface structure of the processor shown in fig. 5.
Some embodiments of the application provide an electronic device that may include: a memory, a touch screen, and one or more processors. The touch screen, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the various functions or steps performed by the electronic device in the method embodiments described above. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 4.
Embodiments of the present application also provide a system-on-a-chip (SoC) including at least one processor 701 and at least one interface circuit 702, as shown in fig. 9. The processor 701 and the interface circuit 702 may be interconnected by wires. For example, interface circuit 702 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 702 may be used to send signals to other devices (e.g., processor 701 or a camera of an electronic device). The interface circuit 702 may, for example, read instructions stored in a memory and send the instructions to the processor 701. The instructions, when executed by the processor 701, may cause the electronic device to perform the various steps of the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
Embodiments of the present application also provide a computer-readable storage medium including computer instructions that, when executed on an electronic device described above, cause the electronic device to perform the functions or steps performed by the electronic device 100 in the method embodiments described above.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the electronic device 100 in the method embodiments described above. For example, the computer may be the electronic device 100 described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The control method of the electronic equipment is characterized in that a processor of the electronic equipment comprises a first interrupt port and a second interrupt port, and the first interrupt port and the second interrupt port are both connected with a touch screen of the electronic equipment; the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing an interrupt signal corresponding to a single click or double click event when the electronic equipment is in the screen-off state; the method comprises the following steps:
when the electronic equipment is in the screen-off state, the touch screen receives a first touch screen operation of a user on the touch screen, and a first interrupt signal is generated; the first interrupt signal comprises coordinate information corresponding to the first touch screen operation;
The touch screen transmits the first interrupt signal to the processor through the first interrupt port, and transmits the first interrupt signal to the processor through the second interrupt port;
if the interrupt signal is triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, the processor triggers a first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port;
and if the interrupt signal is not triggered by the first touch screen operation in the fingerprint unlocking area of the touch screen, the processor triggers a second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port.
2. The method of claim 1, wherein prior to the touch screen transmitting the first interrupt signal to the processor through the first interrupt port and transmitting the first interrupt signal to the processor through the second interrupt port, the method further comprises:
responsive to a first operation at a first interface, the processor turns on a fingerprint wake function; the first interface is used for starting or closing the fingerprint awakening function; after the fingerprint wake-up function is started, the electronic equipment responds to clicking operation in the fingerprint unlocking area in the screen-off state, and the fingerprint unlocking area is lightened;
Responding to a second operation on a second interface, and starting a screen-off display function by the processor; the second interface is used for starting or closing the screen-off display function; after the screen-off display function is started, the electronic equipment responds to a clicking operation of a user in the screen-off state to start screen-off display; and/or the number of the groups of groups,
responsive to a third operation at a third interface, the processor turns on a double-click wake function; the third interface is used for starting or closing the double-click wake-up function; after the double-click wake-up function is started, the electronic equipment responds to double-click operation of a user in the screen-off state, and the touch screen is lightened.
3. The method of claim 2, wherein the first interface is a fingerprint setting interface of the electronic device, the second interface is a desktop and wallpaper setting interface of the electronic device, and the third interface is an auxiliary function setting interface of the electronic device.
4. A method according to any of claims 1-3, wherein the processor triggering a first processing thread to report a fingerprint unlock event to a fingerprint identification module of the electronic device based on the first interrupt signal received by the first interrupt port comprises:
The processor determines the touch area of the first touch screen operation according to the coordinate information corresponding to the first touch screen operation in the first interrupt signal;
and if the touch area of the first touch screen operation reaches an area threshold, triggering the first processing thread to report the fingerprint unlocking event to a fingerprint identification module of the electronic equipment by the processor.
5. The method according to claim 4, wherein the method further comprises:
and if the touch area of the first touch screen operation does not reach the area threshold value, the processor does not respond to the first interrupt signal.
6. A method according to any of claims 1-3, wherein the processor triggering a second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port comprises:
the processor acquires a first operation time and a second operation time of the first touch screen operation based on the first interrupt signal; the first operation time is the time corresponding to the pressing operation of the first touch screen operation; the second operation time is the time corresponding to the lifting operation of the first touch screen operation;
If the time difference between the second operation time and the first operation time is smaller than a first time threshold, and the next first touch screen operation is not acquired in a preset first time period, triggering the second processing thread to report the click event to an application processor of the electronic equipment;
if the time difference between the second operation time and the first operation time is smaller than the first time threshold, acquiring a next first touch screen operation in the preset first time period, and acquiring a third operation time of the next first touch screen operation; the third operation time is the time corresponding to the lifting operation of the next first touch screen operation;
and if the time difference between the third operation time and the second operation time is smaller than a second time threshold, triggering the second processing thread to report the double-click event to an application processor of the electronic equipment.
7. The method of claim 6, wherein the method further comprises:
the processor is not responsive to the first interrupt signal if a time difference between the third operating time and the second operating time is greater than or equal to the second time threshold.
8. The method according to any one of claims 1-7, further comprising:
when the electronic equipment is in a bright screen state, the touch screen receives a second touch screen operation of a user on the touch screen, and a second interrupt signal is generated; the second interrupt signal comprises coordinate information corresponding to the second touch screen operation;
the touch screen transmits the second interrupt signal to the processor through the second interrupt port;
and the processor triggers a second processing thread to report an interrupt event to a corresponding module of the electronic equipment based on the second interrupt signal received by the second interrupt port.
9. The method of claim 8, wherein triggering the second processing thread to report an interrupt event to the corresponding module of the electronic device comprises:
triggering the second processing thread to determine an interrupt event type corresponding to the second touch screen operation based on the second interrupt signal;
if the interrupt event type corresponding to the second touch screen operation is a fingerprint unlocking event, reporting the fingerprint unlocking event to a fingerprint identification module of the electronic equipment;
and if the interrupt event type corresponding to the second touch screen operation is a single click event or a double click event, reporting the single click event or the double click event to an application manager of the electronic equipment.
10. An electronic device, comprising a processor and a touch screen; the processor of the electronic device comprises a first interrupt port and a second interrupt port, wherein the first interrupt port and the second interrupt port are both connected with a touch screen of the electronic device; the first interrupt port is used for providing an interrupt signal corresponding to a fingerprint unlocking event when the electronic equipment is in a screen-off state; the second interrupt port is used for providing an interrupt signal corresponding to a single click or double click event when the electronic equipment is in the screen-off state;
the touch screen receives a first touch screen operation of a user on the touch screen when the electronic equipment is in the screen-off state, and generates a first interrupt signal; the first interrupt signal comprises coordinate information corresponding to the first touch screen operation;
the touch screen transmits the first interrupt signal to the processor through the first interrupt port and transmits the first interrupt signal to the processor through the second interrupt port;
the processor is configured to trigger, based on the first interrupt signal received by the first interrupt port, a first processing thread to report a fingerprint unlocking event to a fingerprint identification module of the electronic device, if it is determined that the first interrupt signal is triggered by the first touch screen operation in a fingerprint unlocking area of the touch screen; and triggering a second processing thread to report a single click or double click event to an application processor of the electronic device based on the first interrupt signal received by the second interrupt port under the condition that the first interrupt signal is determined not to be triggered by the first touch screen operation in a fingerprint unlocking area of the touch screen.
11. An electronic device comprising a memory, a touch screen, and one or more processors; the memory, the touch screen and the processor are coupled; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-9.
12. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-9.
CN202211103243.9A 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment Active CN116736999B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410210647.0A CN118226981A (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment
CN202211103243.9A CN116736999B (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211103243.9A CN116736999B (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410210647.0A Division CN118226981A (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN116736999A true CN116736999A (en) 2023-09-12
CN116736999B CN116736999B (en) 2024-03-15

Family

ID=87912091

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202410210647.0A Pending CN118226981A (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment
CN202211103243.9A Active CN116736999B (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202410210647.0A Pending CN118226981A (en) 2022-09-09 2022-09-09 Control method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (2) CN118226981A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160070414A1 (en) * 2014-09-05 2016-03-10 Apple Inc. Electronic Devices With Replaceable Subassemblies
US20160085699A1 (en) * 2013-05-20 2016-03-24 Zte Corporation Enabling method and enabling device for debugging port of terminal, and terminal
CN106569586A (en) * 2016-11-11 2017-04-19 奇酷互联网络科技(深圳)有限公司 Terminal device and method and apparatus thereof for turning off screen
CN106886702A (en) * 2017-03-08 2017-06-23 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and relevant device
US20170195736A1 (en) * 2015-12-31 2017-07-06 Opentv, Inc. Systems and methods for enabling transitions between items of content
CN107592419A (en) * 2015-10-19 2018-01-16 广东欧珀移动通信有限公司 Display screen awakening method, device and mobile terminal based on fingerprint sensor
CN208607644U (en) * 2018-08-29 2019-03-15 众格智能科技(上海)有限公司 One kind is based on the same as the double touch-control time report systems of money chip
CN109543378A (en) * 2018-11-08 2019-03-29 Oppo广东移动通信有限公司 Unlocked by fingerprint method and relevant device
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 The method and relevant apparatus of unlocked by fingerprint
US20190342251A1 (en) * 2018-05-07 2019-11-07 Apple Inc. Devices, Methods, and Graphical User Interfaces For Proactive Management of Notifications
US20190370451A1 (en) * 2018-06-05 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Touch Response Method and Device
CN111596851A (en) * 2020-05-18 2020-08-28 Oppo(重庆)智能科技有限公司 Control method and device of electronic equipment, electronic equipment and storage medium
CN113361305A (en) * 2020-03-06 2021-09-07 北京小米移动软件有限公司 Fingerprint acquisition method, electronic device and computer-readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085699A1 (en) * 2013-05-20 2016-03-24 Zte Corporation Enabling method and enabling device for debugging port of terminal, and terminal
US20160070414A1 (en) * 2014-09-05 2016-03-10 Apple Inc. Electronic Devices With Replaceable Subassemblies
CN107592419A (en) * 2015-10-19 2018-01-16 广东欧珀移动通信有限公司 Display screen awakening method, device and mobile terminal based on fingerprint sensor
US20170195736A1 (en) * 2015-12-31 2017-07-06 Opentv, Inc. Systems and methods for enabling transitions between items of content
CN106569586A (en) * 2016-11-11 2017-04-19 奇酷互联网络科技(深圳)有限公司 Terminal device and method and apparatus thereof for turning off screen
CN106886702A (en) * 2017-03-08 2017-06-23 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and relevant device
US20190342251A1 (en) * 2018-05-07 2019-11-07 Apple Inc. Devices, Methods, and Graphical User Interfaces For Proactive Management of Notifications
US20190370451A1 (en) * 2018-06-05 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Touch Response Method and Device
CN208607644U (en) * 2018-08-29 2019-03-15 众格智能科技(上海)有限公司 One kind is based on the same as the double touch-control time report systems of money chip
CN109543378A (en) * 2018-11-08 2019-03-29 Oppo广东移动通信有限公司 Unlocked by fingerprint method and relevant device
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 The method and relevant apparatus of unlocked by fingerprint
CN113361305A (en) * 2020-03-06 2021-09-07 北京小米移动软件有限公司 Fingerprint acquisition method, electronic device and computer-readable storage medium
CN111596851A (en) * 2020-05-18 2020-08-28 Oppo(重庆)智能科技有限公司 Control method and device of electronic equipment, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WENRUI DIAO: "No Pardon for the Interruption: New Inference Attacks on Android Through Interrupt Timing Analysis", 2016 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP), pages 414 - 432 *
苏尉业;: "基于Windows CE的触摸屏驱动分析与实现", 电脑知识与技术, no. 07, pages 247 - 249 *
钟鹏勇: "基于WM9712的触摸屏设计及Linux驱动实现", 软件导刊, pages 111 - 112 *

Also Published As

Publication number Publication date
CN118226981A (en) 2024-06-21
CN116736999B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
WO2021052263A1 (en) Voice assistant display method and device
CN110910872B (en) Voice interaction method and device
CN113704014A (en) Log acquisition system, method, electronic device and storage medium
WO2020073288A1 (en) Method for triggering electronic device to execute function and electronic device
CN114816167B (en) Application icon display method, electronic device and readable storage medium
CN113220176B (en) Display method and device based on widget, electronic equipment and readable storage medium
CN115794361A (en) Method for managing memory and electronic equipment
CN115333941B (en) Method for acquiring application running condition and related equipment
CN111381996B (en) Memory exception handling method and device
CN116679900B (en) Audio service processing method, firmware loading method and related devices
CN116736999B (en) Control method of electronic equipment and electronic equipment
WO2023005751A1 (en) Rendering method and electronic device
CN116225274A (en) Identification method and device for touch operation, electronic equipment and storage medium
CN114077529B (en) Log uploading method and device, electronic equipment and computer readable storage medium
CN115206308A (en) Man-machine interaction method and electronic equipment
CN116662150B (en) Application starting time-consuming detection method and related device
CN117271170B (en) Activity event processing method and related equipment
US20240095990A1 (en) Display method and electronic device
CN116700813B (en) Method for loading widget, electronic device and readable storage medium
CN116775200B (en) AOD display method and electronic equipment
CN115016665B (en) Frozen screen fault detection method, electronic equipment and computer readable storage medium
CN116700585B (en) Screen-off control method, electronic equipment and storage medium
CN116185245B (en) Page display method and electronic equipment
CN116661670B (en) Method for managing gesture navigation window, electronic device and storage medium
CN117130766B (en) Thread processing method and electronic equipment

Legal Events

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