CN116679819A - Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium - Google Patents

Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116679819A
CN116679819A CN202210164588.9A CN202210164588A CN116679819A CN 116679819 A CN116679819 A CN 116679819A CN 202210164588 A CN202210164588 A CN 202210164588A CN 116679819 A CN116679819 A CN 116679819A
Authority
CN
China
Prior art keywords
touch
signal
screen
touch signal
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210164588.9A
Other languages
Chinese (zh)
Inventor
戴聪
曾志刚
周为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210164588.9A priority Critical patent/CN116679819A/en
Publication of CN116679819A publication Critical patent/CN116679819A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • 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
    • G06F1/325Power saving in peripheral device
    • G06F1/3259Power saving in cursor control device, e.g. mouse, joystick, trackball
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • 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
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware

Landscapes

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

Abstract

The application relates to a method and a device for displaying a screen in a quenching mode, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: and detecting whether the touch pen operation switch is in an on state or not when the electronic equipment is in a screen-off state, and if so, receiving a touch signal and identifying the type of a target signal of the touch signal. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic device. The stylus operation switch is independently arranged, so that when the stylus operation switch is in an on state, the recording application program is called through a touch signal of the stylus, and the power consumption of the gesture operation function controlled by the gesture operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the screen quenching shorthand function is realized through the operation of the touch pen is reduced.

Description

Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for displaying a screen, an electronic device, and a computer readable storage medium.
Background
With the rapid development of related technologies of electronic devices, functions that can be implemented on the electronic devices are more and more diversified. For example, writing can be done on an electronic device to achieve a quick record, but it is difficult to write finely or quickly on the touch screen of the electronic device because of the thicker gestures. With the advent of a stylus used in combination with an electronic device, the stylus can be used to implement fine writing or fast writing on a touch screen of the electronic device, so as to implement a fast recording function.
In general, the electronic device is in a screen-off state, and if a user needs to quickly write with a stylus, a screen-off recording function needs to be realized. The screen-off recording function refers to a function of rapidly recording when the electronic equipment is in a screen-off state. However, when the traditional method is adopted to realize the screen-off recording function, the power consumption is often larger.
Disclosure of Invention
The embodiment of the application provides a screen-off display method, a device, electronic equipment and a computer readable storage medium, which can reduce the power consumption of the electronic equipment when the screen-off stenography function is realized through the operation of a touch pen.
In one aspect, a method for displaying a screen in a quenching manner is provided, the method comprising:
Detecting whether a touch pen operation switch is in an on state or not when the electronic equipment is in a screen off state;
if yes, receiving a touch signal and identifying a target signal type of the touch signal;
if the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch control pen.
In another aspect, there is provided a screen-off display device, the device comprising:
the switch state detection module is used for detecting whether the touch pen operation switch is in an open state or not when the electronic equipment is in a screen-off state;
the touch signal type identification module is used for receiving a touch signal and identifying the target signal type of the touch signal if the touch signal type is yes;
the interface display module is used for calling a recording application program according to the touch signal and displaying an editing interface of the recording application program on a screen of the electronic equipment if the target signal type of the touch signal is recognized as a signal triggered by a touch pen; the editing interface is used for receiving and recording information input by the touch control pen.
In another aspect, there is provided an electronic device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the off-screen display method as described above.
In another aspect, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the off-screen display method as described above.
In another aspect, a computer program product is provided comprising a computer program which, when executed by a processor, implements the steps of the off-screen display method as described above.
In the traditional method, the opening of the touch pen operation function and the gesture operation function is controlled through the same switch, and the power consumption at the moment is equivalent to the power consumption corresponding to the two functions. Therefore, the power consumption of the electronic device is the power consumption of turning on both functions, regardless of whether the user performs a stylus operation or a gesture operation at this time. In this case, the stylus operation switch and the gesture operation switch are respectively set, and only the stylus operation function is started when the stylus operation switch is opened. When the gesture operation switch is turned on, only the gesture operation function is turned on. Therefore, the electronic device has lower power consumption when the screen quenching shorthand function is realized through the operation of the touch pen.
In the method and device for displaying the screen in the off state, the electronic equipment and the computer readable storage medium, whether the touch pen operation switch is in the on state is detected, if yes, a touch signal is received, and the type of a target signal of the touch signal is identified. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch pen. When the touch control pen operation switch is in an on state, the recording application program is called through a touch control signal of the touch control pen, an editing interface of the recording application program is displayed on a screen of the electronic equipment, and power consumption of gesture operation functions controlled by the gesture operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the screen quenching shorthand function is realized through the operation of the touch pen is reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an application environment diagram of an off-screen display method in one embodiment;
FIG. 2 is a flow chart of a method of off-screen display in one embodiment;
FIG. 3 is an interface diagram of a method of off-screen display in one embodiment;
FIG. 4 is a flow chart of a method of off-screen display in another embodiment;
FIG. 5 is an interface diagram of a method of off-screen display in another embodiment;
FIG. 6 is a flowchart of a method for receiving a touch signal and identifying a target signal type of the touch signal in FIG. 2;
FIG. 7 is a flow chart of a method of off-screen display in yet another embodiment;
FIG. 8 is a schematic diagram of an interface for recording setup options for an application in one embodiment;
FIG. 9 is a schematic diagram of an off-screen display method in one embodiment;
FIG. 10 is a system architecture diagram of an off-screen display method in one embodiment;
FIG. 11 is a block diagram of an off-screen display device in one embodiment;
FIG. 12 is a block diagram of an off-screen display device in another embodiment;
fig. 13 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first initial signal type may be referred to as a second initial signal type, and similarly, a second initial signal type may be referred to as a first initial signal type, without departing from the scope of the present application. Both the first initial signal type and the second initial signal type are initial signal types, but they are not the same initial signal type.
With the explosive growth of electronic devices (e.g., smartphones, tablet computers, etc.), more and more applications require higher precision touch control, such as recording-type applications, drawing-type applications, etc. A stylus (also referred to as a handwriting pen) can achieve higher-precision touch control on a touch screen of an electronic device, so that the stylus is widely used. The touch screen may be of various types, such as a resistive touch screen, a capacitive touch screen, or other types of touch screens, which are not limited in the present application. Corresponding touch pens can be respectively adapted to different types of touch screens. For example, for resistive touch screens, adapting resistive touch pens; for the capacitive touch screen, the capacitive touch pen is adapted. The capacitive touch pen includes a passive capacitive touch pen (hereinafter referred to as passive capacitive pen), and an active capacitive touch pen (hereinafter referred to as active capacitive pen). The passive capacitive pen simulates the touch effect of gestures, does not emit signals outwards, and is generally made of conductive materials, such as conductive foam, metal, hairbrushes and the like, so long as the capacitive change of the touch screen is sufficiently influenced by the pen point, the touch signal can be generated. Unlike passive capacitive pens, the active capacitive pen is equivalent to a signal emission source, the active capacitive pen contacts the touch screen, a sensor of the touch screen receives a downlink signal sent by the active capacitive pen, the downlink signal sent by the touch screen changes the capacitance of the touch screen, and then a current signal is generated, namely the touch signal. The electronic device receives the touch signal and calculates a position of the touch signal on the touch screen, for example, an (X, Y, Z) coordinate, or an (X, Y) coordinate. In this way, an effect similar to actual writing can be achieved. In addition, a pressure sensor can be added into the capacitance pen, so that the capacitance pen can sense the change of writing force of a user, the thickness of handwriting can be changed according to the change of the writing force, and the effect of writing closer to a real paper pen is achieved.
If the touch screen of the electronic device adopted in the embodiment of the application is a capacitive touch screen, the touch pen can be an active capacitive pen or a passive capacitive pen at this time, and the application is not limited to this. If the touch screen of the electronic device adopted in the embodiment of the application is a resistive touch screen, the touch pen can be a resistive touch pen at this time, and the application is not limited to this.
However, in general, the electronic device is in a state of being off-screen, and if the user needs to quickly write with the stylus, the off-screen recording function needs to be implemented. The screen-off recording function refers to a function of rapidly recording when the electronic equipment is in a screen-off state. In the traditional method, the opening of the touch pen operation function and the gesture operation function is controlled through the same switch, and the power consumption at the moment is equivalent to the power consumption corresponding to the two functions. Therefore, the power consumption of the electronic apparatus is the power consumption (11 mA) of turning on both functions, for example, the power consumption of turning on only the stylus operation function is 9mA, and the power consumption of turning on only the gesture operation function is only 2mA, regardless of whether the user performs the stylus operation or performs the gesture operation at this time. Therefore, when the traditional method is adopted to realize the screen-off recording function, the power consumption is often larger. In order to solve the problem that the power consumption is large when the electronic equipment realizes the screen-off recording function in the traditional method, the application provides a screen-off display method for reducing the power consumption of the electronic equipment when the electronic equipment realizes the screen-off recording function.
Fig. 1 is a schematic view of an application environment of a method for displaying a screen in an embodiment. As shown in fig. 1, the application environment includes an electronic device 120 and a stylus 140, where the stylus is an active stylus, the stylus 140 may emit a downlink signal (or referred to as an excitation signal) outwards, and the downlink signal emitted by the stylus may change the capacitance of the touch screen, so as to generate a current signal, that is, a touch signal. And when the stylus 140 contacts the touch screen of the electronic device 120, the touch screen receives a touch signal triggered by the stylus 140. In the state that the electronic device 120 is turned off, the electronic device 120 detects whether the stylus operation switch is in an on state, and if yes, receives the touch signal and identifies a target signal type of the touch signal. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch pen. The electronic device 120 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like.
FIG. 2 is a flow chart of a method of off-screen display in one embodiment. The method for displaying a screen in this embodiment will be described by taking an example of running on the electronic device in fig. 1. As shown in fig. 2, the off-screen display method includes steps 220 to 240, wherein,
step 220, detecting whether the stylus operation switch is in an on state when the electronic device is in a screen off state.
The off-screen state refers to a state that the display screen of the electronic equipment is off. For example, when the electronic device is in a bright screen state, the user may trigger the electronic device to turn off the backlight source by pressing a power key, so that the display screen of the electronic device is extinguished. Accordingly, the bright screen state refers to a state in which the electronic device display screen is lit. For example, when the electronic device is in the off-screen state, the user may trigger the electronic device to turn on the backlight source by pressing the power key/home key, so that the display screen of the electronic device is turned on.
The stylus operation switch may be a setting option in a system setting of the electronic device, and is used for turning on or off a function of controlling the electronic device based on a preset stylus operation, for example, a function of operating the electronic device with the stylus in a bright screen state, a recording function in a dead screen state (abbreviated as a dead screen recording function), and the like. Here, the stylus operating switch may also be used for turning on or off, and other functions of the electronic device in the off-screen state, which is not limited by the present application. Namely, under the condition that the touch pen operation switch is turned on, the electronic equipment can identify a touch signal triggered by the preset touch pen operation and control the electronic equipment to realize specific functions based on the touch signal. Accordingly, when the stylus operation switch is turned off, the electronic device cannot recognize a touch signal triggered by a preset stylus operation, and cannot control the electronic device to realize a specific function based on the touch signal.
And when the electronic equipment is in the screen-off state, the electronic equipment detects whether the touch pen operation switch is in an on state. Specifically, if the user opens the stylus operation switch, the electronic device receives information that the stylus operation switch is switched to an on state, and stores the information in a preset storage space. When the electronic equipment is in the off-screen state, the display screen driver sends an off-screen signal to the electronic equipment, and the electronic equipment reads information for recording the touch pen operation switch state from a preset storage space based on the off-screen signal. Based on information for recording the state of the stylus operation switch, it is determined whether the stylus operation switch is in an on state.
In step 240, if yes, the touch signal is received and the target signal type of the touch signal is identified.
If the electronic equipment determines that the touch pen operation switch is in the on state based on the information for recording the touch pen operation switch state, the touch screen is controlled to enter the touch pen identification state. The stylus recognition state refers to a state in which the touch screen periodically transmits an uplink signal outwards when the stylus is not recognized. If the touch pen contacts the touch screen, that is, the distance between the touch pen and the touch screen is smaller than the preset distance, the touch pen can receive an uplink signal transmitted by the touch screen. The preset distance may be zero distance or a distance close to zero, for example, 0.01mm, 0.005mm, etc., which is not limited by the present application. And the touch pen does not transmit downlink signals outwards when not receiving uplink signals transmitted by the touch screen, replies acknowledgement signals to the touch screen when receiving the uplink signals transmitted by the touch screen, transmits downlink signals to the touch screen, and changes the capacitance of the touch screen to generate current signals, namely the touch signals.
After receiving a touch signal triggered by a stylus, a sensor in the touch screen first identifies a target signal type of the touch signal. Specifically, the initial signal type of the touch signal can be identified through an IC control circuit in the touch screen, the identified initial signal type of the touch signal is sent to the touch screen driver, and the touch screen driver reports the initial signal type to the upper layer service. The IC control circuit in the touch screen can identify the initial signal type of the touch signal through the magnitude of the capacitance induction quantity carried by the touch signal. In general, the capacitance sensing amount carried by the touch signal triggered by the stylus is much larger than that carried by the touch signal triggered by the gesture, for example, the former is hundreds times larger than the latter. For example, a touch signal whose capacitance sensing amount exceeds a capacitance sensing amount threshold is identified as a touch signal triggered by a stylus, and a touch signal whose capacitance sensing amount is less than or equal to the capacitance sensing amount threshold is identified as a touch signal triggered by a gesture. The target signal type of the touch signal is determined by the upper layer service based on the identified initial signal type of the touch signal. Here, the target signal type of the touch signal includes a signal triggered by a stylus, a signal triggered by a gesture, and the like, which is not limited in the present application. The signal triggered by the gesture is a coupling capacitance formed by the finger and the touch screen, so that the coupling capacitance is changed, and a current signal is generated, namely the touch signal.
Next, the sensor in the touch screen detects the received touch signal to calculate the position of the touch signal on the touch screen, such as (X, Y, Z) coordinates or (X, Y) coordinates.
Step 260, if the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic device; the editing interface is used for receiving and recording information input by the touch pen.
Because the electronic equipment is in the screen-off state, the touch pen operation switch is detected to be in the on state, and the touch pen operation switch is used for switching on or off the function of controlling the electronic equipment based on the preset touch pen operation, the screen-off recording function is indicated to be in the on state at the moment. When the screen-off recording function is in an open state and the upper layer service determines that the target signal type of the touch signal is the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment. The editing interface is used for receiving and recording information input by the touch pen. Specifically, the editing interface is used for receiving and recording input information written by touch signals triggered by clicking operation, sliding operation, long-press operation and the like of the touch pen.
However, in general, the electronic device is in a screen-off state, and if the user needs to write with the handwriting pen, the user needs to perform a series of complicated operations to turn on the screen, unlock and open the application program with the recording function, and then can write with the handwriting pen in the application program, so that the requirement of the user for recording at any time cannot be met, and the efficiency and convenience of the recording process are low. Here, the recording application program is directly called according to the touch signal, and the history editing interface of the recording application program can be displayed on the screen of the electronic equipment, so that the requirement of a user for recording at any time is met, and the efficiency and convenience of the recording process are improved. The history editing interface comprises an interface edited by a user last time in the recording application program, so that the user can directly continue editing in the interface edited last time, and the convenience of use is improved.
Referring to fig. 3, an interface diagram of a screen-off display in an embodiment is shown, in fig. 3 (a) is an interface diagram of an electronic device in a screen-off state, and in fig. 3 (b) is an interface diagram of a touch pen contacting a touch screen of the electronic device in a screen-off state; fig. 3 (c) is an interface diagram of triggering a screen-off recording function based on a touch signal of a stylus, and fig. 3 (c) shows an editing interface of a recording application program, specifically, an interface edited last time, on a display screen of the electronic device. The recording application includes notes, drawing tools, etc., and the application is not limited in this regard.
In the embodiment of the application, whether the touch pen operation switch is in an on state is detected under the state that the electronic equipment is in a screen-off state, and if yes, a touch signal is received and the type of a target signal of the touch signal is identified. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch pen. When the touch control pen operation switch is in an on state, the recording application program is called through a touch control signal of the touch control pen, an editing interface of the recording application program is displayed on a screen of the electronic equipment, and power consumption of gesture operation functions controlled by the gesture operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the screen quenching shorthand function is realized through the operation of the touch pen is reduced.
In the previous embodiment, a procedure of implementing the off-screen recording function corresponding to the stylus operation switch in the case where the electronic apparatus is in the off-screen state and the stylus operation switch is in the on state was described. In this embodiment, the detailed description step 260 includes the specific implementation steps of calling the recording application program according to the touch signal and displaying the editing interface of the recording application program on the screen of the electronic device, where the specific implementation steps include:
And controlling the screen-off gesture service to call the recording application program based on the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment.
Specifically, when the electronic device is in the off-screen state, it is detected that the stylus operation switch is in an on-state, and the stylus operation switch is used for turning on or off a function of controlling the electronic device based on a preset stylus operation, which indicates that the off-screen recording function is in the on-state at this time. When the screen-off recording function is in an open state and the upper layer service determines that the target signal type of the touch signal is the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment. The upper layer service may be a screen-off gesture service, that is, after the screen-off gesture service determines that the target signal type of the touch signal is a signal triggered by the stylus, the screen-off gesture service is controlled to call the recording application program based on the touch signal, and an editing interface of the recording application program is displayed on a screen of the electronic device.
The screen-off gesture service not only can be used for identifying and processing the touch signal triggered by the received gesture when the electronic equipment is in the screen-off state, but also can be used for identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the screen-off state. The traditional screen-off gesture service can only be used for identifying and processing touch signals triggered by the received gestures when the electronic equipment is in a screen-off state. In the application, the original off-screen gesture service is adopted, so that the function of identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the off-screen state is added for the off-screen gesture service. And a new service is not needed to be adopted to realize the function of identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the screen-off state. Obviously, the cost of system development is reduced to some extent.
In the embodiment of the application, when the electronic equipment is in the screen-off state and the touch pen operation switch is detected to be in the on state, the screen-off recording function is indicated to be in the on state at the moment. When the screen-off recording function is in an open state and the screen-off gesture service determines that the target signal type of the touch signal is the signal triggered by the touch pen, the screen-off gesture service is controlled to call the recording application program, and an editing interface of the recording application program is displayed on a screen of the electronic equipment. By means of the original screen-off gesture service, the function of identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the screen-off state is added for the screen-off gesture service. And a new service is not needed to be adopted to realize the function of identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the screen-off state. Obviously, the cost of system development is reduced to some extent.
In one embodiment, as shown in fig. 4, there is further provided a method for displaying a screen in a screen-off manner, further including:
step 420, detecting whether the gesture operation switch is in an on state when the electronic device is in a screen off state.
The gesture operation switch may be a setting option in a system setting of the electronic device, and the gesture operation switch is used for turning on or off a function of controlling the electronic device based on a preset gesture. Namely, under the condition that the gesture operation switch is turned on, the electronic equipment can identify a touch signal triggered by a preset gesture operation and control the electronic equipment to realize a specific function based on the touch signal. Accordingly, when the gesture operation switch is turned off, the electronic device cannot recognize a touch signal triggered by a preset gesture operation, and cannot control the electronic device to achieve a specific function based on the touch signal.
And when the electronic equipment is in the off-screen state, the electronic equipment detects whether the gesture operation switch is in an on state. Specifically, if the user opens the gesture operation switch, the electronic device receives information that the gesture operation switch is switched to an open state, and stores the information in a preset storage space. When the electronic equipment is in the off-screen state, the display screen driver sends an off-screen signal to the electronic equipment, and the electronic equipment reads information for recording the gesture operation switch state from a preset storage space based on the off-screen signal. Based on the information for recording the state of the gesture operation switch, it is determined whether the gesture operation switch is in an on state.
In step 440, if the gesture switch is detected to be in the on state, the touch signal is received and the target signal type of the touch signal is identified.
If the electronic equipment determines that the gesture operation switch is in the on state based on the information for recording the gesture operation switch state, the touch screen is controlled to enter the gesture recognition state. The gesture recognition state refers to a state in which the touch screen periodically transmits an uplink signal outwards when no gesture is recognized. If the gesture is contacted with the touch screen, namely, the gesture is zero distance with the touch screen, or the gesture appears in a preset distance range on the touch screen, the touch screen receives a touch signal triggered by the gesture. The preset distance range may be a range greater than zero and less than a preset distance from the touch screen, and the preset distance may be, for example, 4cm, 1mm, 0.01mm, 0.004mm, etc., which is not limited in the present application.
After receiving a touch signal triggered by a gesture, a sensor in the touch screen first identifies a target signal type of the touch signal. Specifically, the initial signal type of the touch signal can be identified through an IC control circuit in the touch screen, the identified initial signal type of the touch signal is sent to the touch screen driver, and the touch screen driver reports the initial signal type to the upper layer service. The target signal type of the touch signal is determined by the upper layer service based on the identified initial signal type of the touch signal. Here, the target signal type of the touch signal includes a signal triggered by a stylus, a signal triggered by a gesture, and the like, which is not limited in the present application.
Next, the sensor in the touch screen calculates the received touch signal, and calculates the position of the touch signal on the touch screen, for example, the (X, Y, Z) coordinates, or the (X, Y) coordinates.
In step 460, if the target signal type of the touch signal is identified as the signal triggered by the gesture, the interface triggered by the touch signal is displayed on the screen of the electronic device according to the touch signal.
When the electronic equipment is in the screen-off state, detecting that the gesture operation switch is in an on state, and the gesture operation switch is used for switching on or switching off a function for controlling the electronic equipment based on a preset gesture operation, the gesture operation function is in the on state at the moment. And when the gesture operation function is in an on state and the upper layer service determines that the target signal type of the touch signal is the signal triggered by the gesture, displaying an interface triggered by the touch signal on a screen of the electronic device according to the touch signal.
Referring to fig. 5, an interface diagram of a screen-off display in an embodiment is shown, in fig. 5 (a) is an interface diagram of an electronic device in a screen-off state, and in fig. 5 (b) is an interface diagram of a touch screen of the electronic device in a screen-off state, where a gesture contacts the electronic device; fig. 5 (c) shows an interface diagram triggered by a gesture-based touch signal, and fig. 5 (c) shows a main interface on a display screen of the electronic device.
In the embodiment of the application, when the electronic equipment is in a screen-off state, whether a gesture operation switch is in an on state or not is detected; if yes, the touch signal is received, and the target signal type of the touch signal is identified. And if the target signal type of the touch signal is identified as the signal triggered by the gesture, displaying an interface triggered by the touch signal on a screen of the electronic device according to the touch signal. The gesture operation switch is independently arranged, so that when the gesture operation switch is in an on state, an interface triggered by a touch signal is displayed on a screen of the electronic equipment according to the touch signal, and power consumption of a touch pen operation function controlled by the touch pen operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the gesture operation function is realized through gesture operation is reduced.
Next, an embodiment is described of a process of receiving a touch signal and identifying an initial signal type of the touch signal when the electronic device is in a screen-off state and the gesture operation switch is detected to be in an on state, and displaying an interface triggered by the touch signal on a screen of the electronic device according to the touch signal if the target signal type of the touch signal is identified as a signal triggered by a gesture. In the embodiment of the application, the interface triggered by the touch signal is described in detail to comprise a main interface or an interface of an application program; the specific implementation step of displaying the interface triggered by the touch signal on the screen of the electronic device according to the touch signal comprises the following steps:
Calling a main interface according to the touch signal, and displaying the main interface on a screen of the electronic equipment; or alternatively, the first and second heat exchangers may be,
and calling the application program according to the touch signal, and displaying an interface of the application program on a screen of the electronic device.
An interface diagram for a quench display in one embodiment is shown in connection with FIG. 5. When the electronic equipment is in a screen-off state and the gesture operation switch is detected to be in an on state, receiving a touch signal triggered by a gesture and identifying an initial signal type of the touch signal, and if the target signal type of the touch signal is identified as the signal triggered by the gesture, displaying an interface triggered by the touch signal on a screen of the electronic equipment according to the touch signal. Specifically, the interface triggered by the touch signal includes a main interface or an interface of an application program, and of course, other interfaces, for example, a system setting interface, etc., which is not limited in the present application.
And if the interface triggered by the touch signal comprises a main interface, calling the main interface according to the touch signal, and displaying the main interface on a screen of the electronic equipment. Specifically, the main interface is called by controlling the screen-quenching gesture service according to the touch signal, and the main interface is displayed on a screen of the electronic device. The main interface is generally an interface displayed when the electronic device is started, or an interface returned to be displayed when the user clicks the Home key.
And if the interface triggered by the touch signal comprises the interface of the application program, calling the application program according to the touch signal, and displaying the interface of the application program on a screen of the electronic device. Specifically, the application program can be invoked by controlling the screen-off gesture service according to the touch signal, and an interface of the application program is displayed on a screen of the electronic device. The invoked application program can be subjected to user-defined screening from application programs installed in the electronic equipment by a user, for example, a mapping relation table can be established between preset gestures and the preset application programs, when touch signals triggered by the preset gestures are recognized, the corresponding application programs are invoked according to the touch signals, and interfaces of the application programs are displayed on a screen of the electronic equipment. Therefore, the mapping relation table is established between the preset gestures and the preset application programs, the application programs corresponding to the user-defined calling based on the preset gestures can be realized, and personalized use requirements of users are met.
The screen-off gesture service not only can be used for identifying and processing the touch signal triggered by the received gesture when the electronic equipment is in the screen-off state, but also can be used for identifying and processing the touch signal triggered by the received touch pen when the electronic equipment is in the screen-off state.
In the embodiment of the application, when the electronic equipment is in a screen-off state and the gesture operation switch is detected to be in an on state, a touch signal triggered by a gesture is received, the target signal type of the touch signal is identified, if the target signal type of the touch signal is identified as the signal triggered by the gesture, a main interface is called according to the touch signal, and the main interface is displayed on a screen of the electronic equipment; or calling the application program according to the touch signal, and displaying an interface of the application program on a screen of the electronic device. The method and the device realize that the electronic equipment is operated rapidly through gestures in the screen-off state, and avoid the problem that the electronic equipment cannot be used rapidly when a user is inconvenient to unlock the electronic equipment.
In one embodiment, as shown in fig. 6, step 240, receiving the touch signal and identifying the target signal type of the touch signal includes:
in step 242, the touch signal is received, and an interrupt signal is sent to the touch screen driver based on the touch signal.
After receiving the touch signal, the sensor in the touch screen first identifies the initial signal type of the touch signal. Specifically, an initial signal type of the touch signal can be identified through an IC control circuit in the touch screen, and the identified initial signal type of the touch signal is sent to the touch screen driver. Secondly, the sensor in the touch screen can measure the received touch signal to calculate the generation position (such as X and Y coordinates) of the touch signal on the touch screen, and the generation position is sent to the touch screen driver. And finally, the touch screen sends an interrupt signal to the touch screen driver based on the touch signal. The interrupt signal is a signal generated by a sensor in the touch screen in a manner of an interrupt pin after receiving the touch signal, and is used for informing the touch screen to drive that the touch screen receives the touch signal at the moment.
Step 244, controlling the touch screen driver to report a notification event to the screen-off gesture service after receiving the interrupt signal; the notification event carries the initial signal type of the touch signal.
Specifically, after receiving the interrupt signal, the touch screen driver indicates that the touch screen receives the touch signal at this time. Then, the control touch screen driver reports a notification event to the screen-off gesture service after receiving the interrupt signal. The notification event carries the signal content and the initial signal type of the touch signal, the signal content of the touch signal is the content such as the generation position and the generation time identified by the sensor in the touch screen for identifying the touch signal, and the content is sent to the touch screen for driving by the sensor in the touch screen. The initial signal type of the touch signal is that the touch signal is identified by an IC control circuit in the touch screen, and the identified signal type is sent to the touch screen for driving by the IC control circuit.
Therefore, after receiving the interrupt signal, the control touch screen driver reports a notification event to the off-screen gesture service, namely, reports the signal content of the touch signal and the initial signal type of the touch signal to the off-screen gesture service.
In step 246, the control screen-off gesture service determines a target signal type of the touch signal according to the notification event.
After the touch screen drive reports the notification event to the off-screen gesture service, the off-screen gesture service is controlled to determine the target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event. Specifically, in the first step, the screen-off gesture service is controlled to read an initial signal type of the touch signal from the notification event, so as to obtain the initial signal type. And a second step of determining the target signal type of the touch signal based on the initial signal type and the signal content of the touch signal. Specifically, under the condition that the initial signal type of the touch signal and the signal content of the touch signal are matched with each other, the target signal type of the touch signal can be determined to be the read initial signal type. For example, if the initial signal type of the touch signal read from the notification event by the control screen-off gesture service is a signal triggered by the stylus, but the signal content of the touch signal is not matched with the signal triggered by the stylus, it may be determined that the target signal type of the touch signal is a false touch signal. And from two dimensions of the signal content and the initial signal type of the touch signal, the accuracy of the determined target signal type of the touch signal is improved. The initial signal type and the target signal type of the touch signal may include a signal triggered by a touch pen, a signal triggered by a gesture, and the like, which is not limited in the present application.
In the embodiment of the application, in the process of receiving the touch signal and identifying the target signal type of the touch signal, the method comprises the following steps: firstly, receiving a touch signal, and sending an interrupt signal to a touch screen driver based on the touch signal. And secondly, controlling the touch screen driver to report a notification event to the screen-off gesture service after receiving the interrupt signal. The notification event carries the signal content and the initial signal type of the touch signal. And finally, controlling the screen-off gesture service to determine the target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event. From the two dimensions of the signal content and the initial signal type of the touch signal, the accuracy of the determined target signal type of the touch signal is improved. And the interface corresponding to the touch signal is opened on the electronic equipment based on different signal types of the touch signal, so that the accuracy of operating the electronic equipment through gestures or a touch pen in a screen-off state of the electronic equipment is improved, and the situation of false touch is avoided.
In one embodiment, step 246, the controlling the off-screen gesture service to determine the target signal type of the touch signal according to the notification event includes:
Controlling the screen-off gesture service to read the initial signal type of the touch signal from the notification event;
and if the initial signal type comprises a signal triggered by a touch pen and a signal triggered by a gesture, determining that the target signal type of the touch signal is a false touch signal.
Specifically, firstly, controlling a screen-off gesture service to read an initial signal type of a touch signal from a notification event; the notification event carries an initial signal type of the touch signal. The initial signal type may be an initial signal type obtained by recognizing the touch signal by the electronic device in a time period (time sharing for short). Specifically, the initial signal type of the touch signal can be identified through an IC control circuit in the touch screen, the identified initial signal type of the touch signal is sent to the touch screen driver, and the touch screen driver reports the initial signal type to the upper layer service. The IC control circuit in the touch screen can identify the initial signal type of the touch signal through the magnitude of the capacitance induction quantity carried by the touch signal. In general, the capacitance sensing amount carried by the touch signal triggered by the stylus is much larger than that carried by the touch signal triggered by the gesture, for example, the former is hundreds times larger than the latter. For example, a touch signal whose capacitance sensing amount exceeds a capacitance sensing amount threshold is identified as a touch signal triggered by a stylus, and a touch signal whose capacitance sensing amount is less than or equal to the capacitance sensing amount threshold is identified as a touch signal triggered by a gesture.
And secondly, if the initial signal type of the touch signal detected at the same position in a time-sharing way is the signal triggered by the touch pen and the signal triggered by the gesture, determining the target signal type of the touch signal as a false touch signal. As it is not possible to operate in the same location by both gestures and by the stylus. If the initial signal type of the touch signal detected at the same position in a time-sharing way is only the signal triggered by the touch pen, determining that the target signal type of the touch signal is the signal triggered by the touch pen. If the initial signal type of the touch signal detected at the same position in a time-sharing way is only the signal triggered by the gesture, determining that the target signal type of the touch signal is the signal triggered by the gesture.
In the embodiment of the application, in the process of determining the target signal type of the touch signal according to the initial signal type of the touch signal carried in the notification event by controlling the screen-off gesture service, the error touch signal is eliminated from the dimension of the initial signal type of the touch signal, and the accuracy of the determined target signal type of the touch signal is improved. And the interface corresponding to the touch signal is opened on the electronic equipment based on different signal types of the touch signal, so that the accuracy of operating the electronic equipment through gestures or a touch pen in a screen-off state of the electronic equipment is improved, and the situation of false touch is avoided.
In an embodiment, the notification event further carries signal content of the touch signal; step 246, controlling the off-screen gesture service to determine a target signal type of the touch signal according to the notification event, including:
controlling a screen-off gesture service to read an initial signal type of a touch signal from a notification event and signal content of the touch signal;
judging whether the initial signal type of the touch signal and the signal content of the touch signal are matched or not to obtain a matching result;
if the target signal type of the touch signal is matched with the initial signal type of the touch signal, determining that the target signal type of the touch signal is the initial signal type of the touch signal; if the touch signals are not matched, determining that the target signal type of the touch signals is false touch signals.
Specifically, when a plurality of electronic devices are stacked together, a plurality of screens are also stacked together, and because a signal coupling phenomenon exists when a plurality of screens are stacked together, even if a user operates the touch screen through a gesture at this time, the capacitance sensing amount carried by a touch signal triggered by the gesture still exceeds a capacitance sensing amount threshold. At this time, the initial signal type of the touch signal is erroneously recognized as the touch signal triggered by the stylus.
The notification event also carries an initial signal type of the touch signal and signal content of the touch signal. Firstly, controlling a screen-off gesture service to read an initial signal type of a touch signal and signal content of the touch signal from a notification event; the notification event carries the signal content and the initial signal type of the touch signal, wherein the signal content of the touch signal is the content such as the generation position, the generation time, the pressure value and the like which are identified by the sensor in the touch screen for identifying the touch signal. Wherein the pressure value may be acquired by a pressure sensor inside the stylus. Secondly, judging whether the initial signal type of the touch signal and the signal content of the touch signal are matched or not to obtain a matching result; if the target signal type of the touch signal is matched with the initial signal type of the touch signal, determining that the target signal type of the touch signal is the initial signal type of the touch signal; if the touch signals are not matched, determining that the target signal type of the touch signals is false touch signals.
Specifically, if the initial signal type of the touch signal read from the notification event by the control screen-off gesture service is a signal triggered by the touch pen, and the signal content of the touch signal is matched with the signal triggered by the touch pen, it may be determined that the target signal type of the touch signal is the signal triggered by the touch pen. The same applies to the touch signal triggered by the gesture, and the details are not repeated here. If the initial signal type of the touch signal read from the notification event by the control screen-off gesture service is the signal triggered by the touch pen, but the signal content of the touch signal is not matched with the signal triggered by the touch pen, the target signal type of the touch signal can be determined to be the false touch signal. And from two dimensions of the signal content and the initial signal type of the touch signal, the accuracy of the determined target signal type of the touch signal is improved. The initial signal type and the target signal type of the touch signal may include a signal triggered by a touch pen, a signal triggered by a gesture, and the like, which is not limited in the present application.
In the embodiment of the application, in the process of determining the target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event by controlling the screen-off gesture service, the accuracy of the determined target signal type of the touch signal is improved from two dimensions of the signal content and the initial signal type of the touch signal. And the interface corresponding to the touch signal is opened on the electronic equipment based on different signal types of the touch signal, so that the accuracy of operating the electronic equipment through gestures or a touch pen in a screen-off state of the electronic equipment is improved, and the situation of false touch is avoided.
Next, an embodiment is described of a process of determining a target signal type of a touch signal from two dimensions of a signal content and an initial signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in a notification event in controlling a screen-off gesture service. In this embodiment, a method for displaying a screen in a screen-off state is provided, which further includes:
if the target signal type of the touch signal is a false touch signal, the control screen-off gesture service does not respond to the false touch signal.
Firstly, controlling a screen-off gesture service to read an initial signal type of a touch signal from a notification event; the notification event carries the signal content and the initial signal type of the touch signal, wherein the signal content of the touch signal is the content such as the identified generation position, generation time and the like of the touch signal identified by the sensor in the touch screen. Secondly, judging whether the initial signal type of the touch signal and the signal content of the touch signal are matched or not to obtain a matching result; if the target signal type of the touch signal is matched with the initial signal type of the touch signal, determining that the target signal type of the touch signal is the initial signal type of the touch signal; if the touch signals are not matched, determining that the target signal type of the touch signals is false touch signals. Finally, if the target signal type of the touch signal is a false touch signal, the control screen-off gesture service does not respond to the false touch signal.
In the embodiment of the application, in the process of determining the target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event by controlling the screen-off gesture service, the accuracy of the determined target signal type of the touch signal is improved from two dimensions of the signal content and the initial signal type of the touch signal. So that when the target signal type of the touch signal is a false touch signal, the control screen-off gesture service does not respond to the false touch signal, and the false touch is avoided.
In one embodiment, step 220, when the electronic device is in the off-screen state, detects whether the stylus operation switch is in an on state, including:
detecting whether Bluetooth communication connection is established between the touch pen and the electronic equipment or not when the electronic equipment is in a screen-off state;
if yes, detecting whether the stylus operation switch is in an on state.
Specifically, first, in a state that the electronic device is in a screen-off state, the electronic device detects whether a bluetooth communication connection is established between the stylus and the electronic device. The bluetooth communication connection is managed by a bluetooth management application in the electronic device, which sends a notification to the touch screen driver when the bluetooth communication connection is established or disconnected between the stylus and the electronic device. Therefore, the electronic device can detect whether the Bluetooth communication connection is established between the touch pen and the electronic device through the touch screen drive. Obviously, under the condition that Bluetooth communication connection is established between the touch pen and the electronic equipment, the connection between the touch pen and the electronic equipment is more accurate and stable, and touch signals of other touch pens which are not in Bluetooth communication connection with the electronic equipment cannot be mistakenly identified. And through the Bluetooth communication connection, communication between the touch pen and the electronic equipment can be realized. For example, the electronic device may send a setting instruction to the stylus via the bluetooth communication connection to enable setting of different functions of the stylus. The electronic device may further upgrade firmware of the stylus, or the electronic device may further obtain device information of the stylus, such as remaining power, stylus setting information, etc., through the bluetooth communication connection.
Secondly, under the condition that Bluetooth communication connection is established between the touch control pen and the electronic equipment, the electronic equipment continuously detects whether the touch control pen operation switch is in an on state or not. Specifically, if the user opens the stylus operation switch, the electronic device receives information that the stylus operation switch is switched to an on state, and stores the information in a preset storage space. When the electronic equipment is in the off-screen state, the display screen driver sends an off-screen signal to the electronic equipment, and the electronic equipment reads information for recording the touch pen operation switch state from a preset storage space based on the off-screen signal. Based on information for recording the state of the stylus operation switch, it is determined whether the stylus operation switch is in an on state.
Finally, under the condition that the touch pen operation switch is in an on state, receiving the touch signal and identifying the target signal type of the touch signal. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic device.
In the embodiment of the application, under the condition that the electronic equipment is in the screen-off state and Bluetooth communication connection is established between the touch pen and the electronic equipment, the touch pen operation switch is continuously determined to be in the on state, and at the moment, the touch signal is received and the target signal type of the touch signal is identified only when the three conditions are met between the electronic equipment and the touch pen. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic device. On the one hand, under the condition that Bluetooth communication connection is established between the touch pen and the electronic equipment, the connection between the touch pen and the electronic equipment is more accurate and stable, and touch signals of other touch pens which are not in Bluetooth communication connection with the electronic equipment cannot be mistakenly identified. On the other hand, under the condition that the touch control pen operation switch is in the on state, the touch control signal is received and the target signal type of the touch control signal is identified, and then the step of subsequently opening the editing interface of the recording application program is carried out, so that the operation requirement of a user can be met, and under the condition that the touch control pen operation switch is not in the on state, the power consumption of the electronic equipment is reduced. Therefore, when the three conditions are met between the electronic equipment and the touch pen, the step of opening the editing interface of the recording application program is carried out later, so that the accuracy of touch pen operation is improved, and meanwhile, the power consumption of the electronic equipment is reduced.
In the above embodiments, it is described that, in the state where the electronic device is in the off-screen state, whether the stylus operation switch is in the on state is detected; if yes, receiving a touch signal and identifying a target signal type of the touch signal; and if the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment. In this embodiment, the setting and operation procedure of the system setting option of the electronic device with respect to the setting option of the stylus are described. As shown in fig. 7, specifically, a method for displaying a screen in a quenching manner is provided, which further includes:
in step 720, if a bluetooth communication connection is established between the stylus and the electronic device, a first stylus setting option is added to the setting options of the recording application.
And detecting whether Bluetooth communication connection is established between the touch control pen and the electronic equipment. The bluetooth communication connection is managed by a bluetooth management application in the electronic device, which sends a notification to the recording application when the bluetooth communication connection is established or disconnected between the stylus and the electronic device.
As shown in fig. 8 (a), a schematic diagram of an interface for recording setting options of an application program in one embodiment is shown. At this time, if the recording application receives a notification that the bluetooth communication connection is established between the stylus and the electronic device, a first stylus setting option is added to the setting options of the recording application, where the number of the first stylus setting options may be one or more. For example, as shown in fig. 8 (a), a first stylus setting option (e.g., two stylus-related setting options, double-click stylus and off-screen shorthand) is added to the setting options of the recording application. If the recording application program does not receive the notification that the Bluetooth communication connection is established between the touch pen and the electronic device, the first touch pen setting option is not added in the setting options of the recording application program. Because the user can only operate the stylus setting option to set the operation mode of the stylus when the bluetooth communication connection is established between the stylus and the electronic device, the first stylus setting option is added to the setting option of the recording application when the bluetooth communication connection is established between the stylus and the electronic device, so that the operation mode of the stylus is set.
Step 740, receiving a selection operation of the first stylus setting options, and jumping to a second stylus setting option in the system setting options.
Receiving a selection operation of a first touch pen setting option in the recording application program by a user, jumping to a second touch pen setting option in the system setting options, and adding the selected effect (gray filling as shown in the figure) of the second touch pen setting option in the system setting options. Referring to fig. 8 (b), a schematic diagram of an interface corresponding to a jump to system setting option in one embodiment is shown. Wherein a first stylus setting option in the recording application may be linked with a second stylus setting option in the system setting option. Therefore, receiving the selection operation of the first stylus setting option in the recording application program by the user can directly jump to the second stylus setting option in the system setting options. Wherein the first stylus setting option does not include any sub-setting options, and the second stylus setting option includes any plurality of sub-setting options.
Step 760, receiving a selection operation of each sub-setting option in the second stylus setting options, and setting an operation mode of the stylus.
Specifically, after jumping to the second stylus setting option in the system setting options, jumping to a next directory of the second stylus setting options, wherein the next directory comprises a plurality of sub-setting options. Referring to fig. 8 (c), a schematic diagram of an interface of a next catalog of second stylus setting options in one embodiment is shown, where the plurality of sub setting options includes current tool to eraser switching, latest tool switching, no operation, and the like. And receiving the selection operation of the user on each sub-setting option in the second touch pen setting options, and setting the operation mode of the touch pen.
In the embodiment of the application, if Bluetooth communication connection is established between the touch pen and the electronic equipment, a first touch pen setting option is added in the setting options of the recording application program. And receiving a selection operation of the first touch control pen setting options, and jumping to a second touch control pen setting option in the system setting options. And receiving selection operation of each sub-setting option in the second touch pen setting options, and setting the operation mode of the touch pen. In general, when using a recording application, a user sets a function of a stylus, so if a bluetooth communication connection is established between the stylus and an electronic device, a first stylus setting option is added to a setting option of the recording application. It is possible to implement a jump from the first stylus setting option of the recording application directly to the second stylus setting option of the system setting options. The user is not required to switch from the recording application program to the system setting option to set the touch pen, so that the operation rapidity is improved.
In one embodiment, a method for displaying a screen in a screen-off state is provided, which further includes:
and if the Bluetooth communication connection between the touch pen and the electronic equipment is disconnected, deleting the first touch pen setting option from the setting options of the recording application program.
In the embodiment of the application, if the recording application program receives the notification that the Bluetooth communication connection is established between the touch pen and the electronic equipment, the first touch pen setting option is added in the setting options of the recording application program. And if the Bluetooth communication connection between the touch pen and the electronic equipment is disconnected, deleting the first touch pen setting option in time from the setting options of the recording application program. The Bluetooth communication connection method and device based on the touch pen and the electronic equipment are used for updating and recording the setting options of the application program in real time based on the state that Bluetooth communication connection is established between the touch pen and the electronic equipment.
In a specific embodiment, as shown in fig. 9, a method for displaying a screen on the basis of a touch pen is provided, which is applied to an electronic device and is used for implementing a screen off recording function in a screen off state, and includes:
step 902, detecting whether a bluetooth communication connection is established between the stylus and the electronic device when the electronic device is in a screen-off state; if yes, go to step 904;
Step 904, detecting whether a stylus operation switch is in an on state; if yes, go to step 906;
step 906, receiving a touch signal, and sending an interrupt signal to a touch screen driver based on the touch signal;
step 908, controlling the touch screen driver to report a notification event to the screen-off gesture service after receiving the interrupt signal; the notification event carries the signal content and the initial signal type of the touch signal;
step 910, controlling the screen-off gesture service to determine a target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event;
step 912, if the target signal type of the touch signal is identified as the signal triggered by the stylus, controlling the screen-off gesture service to call the recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic device; the editing interface is used for receiving and recording information input by the touch pen.
Referring to fig. 10, a system architecture diagram of a method for displaying a screen in an embodiment is shown, where the system architecture includes a physical layer, a driving layer, a framework layer, and an application layer. At the physical layer, the touch screen 1010 may receive a touch signal triggered by the stylus 1030 and send an interrupt signal to the touch screen driver 1050 based on the touch signal. And controls the touch screen driver 1050 to report a notification event to the off screen gesture service 1070 after receiving the interrupt signal.
Further, the control screen-off gesture service 1070 determines a target signal type of the touch signal according to the signal content and the initial signal type of the touch signal carried in the notification event. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, the control screen-off gesture service 1070 calls the recording application 1090 in the application layer, and displays an editing interface of the recording application 1090 on a screen of the electronic device.
As shown in fig. 9, there is further provided a screen-off display method, applied to an electronic device, for implementing a gesture operation function in a screen-off state by a gesture, including:
step 914, detecting whether the gesture operation switch is in an on state when the electronic device is in a screen off state; if yes, go to step 906-step 910;
in step 916, if the target signal type of the touch signal is identified as the signal triggered by the gesture, the interface triggered by the touch signal is displayed on the screen of the electronic device according to the touch signal.
In the embodiment of the application, under the condition that the electronic equipment is in the screen-off state and whether Bluetooth communication connection is established between the touch pen and the electronic equipment, whether the touch pen operation switch is in the on state is detected, if so, a touch signal is received and the type of a target signal of the touch signal is identified. If the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch pen. When the touch control pen operation switch is in an on state, the recording application program is called through a touch control signal of the touch control pen, an editing interface of the recording application program is displayed on a screen of the electronic equipment, and power consumption of gesture operation functions controlled by the gesture operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the screen quenching shorthand function is realized through the operation of the touch pen is reduced.
Detecting whether a gesture operation switch is in an on state or not when the electronic equipment is in a screen off state; if yes, the touch signal is received, and the target signal type of the touch signal is identified. And if the target signal type of the touch signal is identified as the signal triggered by the gesture, displaying an interface triggered by the touch signal on a screen of the electronic device according to the touch signal. The gesture operation switch is independently arranged, so that when the gesture operation switch is in an on state, an interface triggered by a touch signal is displayed on a screen of the electronic equipment according to the touch signal, and power consumption of a touch pen operation function controlled by the touch pen operation switch is not consumed. Therefore, the power consumption of the electronic equipment when the gesture operation function is realized through gesture operation is reduced.
In one embodiment, as shown in FIG. 11, there is provided an off-screen display device 1100 comprising:
the switch state detection module 1120 is configured to detect, when the electronic device is in a screen-off state, whether the stylus operation switch is in an on state;
the touch signal type recognition module 1140 is configured to receive the touch signal and recognize a target signal type of the touch signal if the touch signal is detected;
The first interface display module 1160 is configured to invoke a recording application according to the touch signal if the target signal type of the touch signal is identified as a signal triggered by the touch pen, and display an editing interface of the recording application on a screen of the electronic device; the editing interface is used for receiving and recording information input by the touch pen.
In one embodiment, the interface display module 1160 is further configured to control the off-screen gesture service to invoke the recording application program based on the touch signal, and display an editing interface of the recording application program on a screen of the electronic device.
In one embodiment, as shown in fig. 12, there is provided an off-screen display device 1100, the device further comprising:
the switch state detection module 1120 is configured to detect, when the electronic device is in a screen off state, whether the gesture operation switch is in an on state;
the touch signal type recognition module 1140 is configured to receive the touch signal and recognize a target signal type of the touch signal if the touch signal is detected;
the second interface display module 1180 is configured to display, if the target signal type of the touch signal is identified as a signal triggered by a gesture, an interface triggered by the touch signal on a screen of the electronic device according to the touch signal.
In one embodiment, the interface triggered by the touch signal includes a main interface or an interface of an application program; the second interface display module 1180 is further configured to invoke a main interface according to the touch signal, and display the main interface on a screen of the electronic device; or alternatively, the first and second heat exchangers may be,
and calling the application program according to the touch signal, and displaying an interface of the application program on a screen of the electronic device.
In one embodiment, the touch signal type recognition module 1140 includes:
the touch signal receiving unit is used for receiving the touch signal and sending an interrupt signal to the touch screen drive based on the touch signal;
the notification event reporting unit is used for controlling the touch screen driver to report a notification event to the screen-off gesture service after receiving the interrupt signal; the notification event carries the initial signal type of the touch signal;
and the target signal type determining unit is used for controlling the screen-off gesture service to determine the target signal type of the touch signal according to the notification event.
In an embodiment, the target signal type determining unit is further configured to: controlling the screen-off gesture service to read the initial signal type of the touch signal from the notification event; and if the initial signal type comprises a signal triggered by a touch pen and a signal triggered by a gesture, determining that the target signal type of the touch signal is a false touch signal.
In an embodiment, the notification event further carries signal content of the touch signal; the target signal type determining unit is further configured to: controlling a screen-off gesture service to read an initial signal type of a touch signal from a notification event and signal content of the touch signal; judging whether the initial signal type of the touch signal and the signal content of the touch signal are matched or not to obtain a matching result; if the target signal type of the touch signal is matched with the initial signal type of the touch signal, determining that the target signal type of the touch signal is the initial signal type of the touch signal; if the touch signals are not matched, determining that the target signal type of the touch signals is false touch signals.
In one embodiment, an off-screen display device 1100 is provided, the device further comprising: and the error touch signal processing module is used for controlling the screen-off gesture service not to respond to the error touch signal if the target signal type of the touch signal is the error touch signal.
In one embodiment, the switch state detection module 1120 is further configured to detect whether a bluetooth communication connection is established between the stylus and the electronic device when the electronic device is in a screen-off state; if yes, detecting whether the stylus operation switch is in an on state.
In one embodiment, an off-screen display device 1100 is provided, the device further comprising: the touch control pen setting option setting module is used for adding a first touch control pen setting option in the setting options of the recording application program if Bluetooth communication connection is established between the touch control pen and the electronic equipment; receiving a selection operation of the first touch control pen setting options, and jumping to a second touch control pen setting option in the system setting options; and receiving selection operation of each sub-setting option in the second touch pen setting options, and setting the operation mode of the touch pen.
In one embodiment, the stylus setting option setting module is further configured to delete the first stylus setting option from the setting options of the recording application if the bluetooth communication connection between the stylus and the electronic device is disconnected.
In one embodiment, the gesture-operated switch is used to turn on or off a function of controlling the electronic device based on a preset gesture; the stylus operation switch is used for switching on or switching off functions of the electronic device based on a preset stylus operation.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
The division of the modules in the off-screen display device is merely for illustration, and in other embodiments, the off-screen display device may be divided into different modules as needed to perform all or part of the functions of the off-screen display device.
For specific limitations of the off-screen display device, reference may be made to the above limitation of the off-screen display method, and no further description is given here. The modules in the screen-off display device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 13 is a schematic diagram of an internal structure of an electronic device in one embodiment. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a car-mounted computer, and a wearable device. The electronic device includes a processor and a memory connected by a system bus. Wherein the processor may comprise one or more processing units. The processor may be a CPU (Central Processing Unit ) or DSP (Digital Signal Processing, digital signal processor), etc. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a method of off-screen display as provided in the various embodiments below. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium.
The implementation of each module in the screen-off display device provided in the embodiment of the application can be in the form of a computer program. The computer program may be run on an electronic device. Program modules of the computer program may be stored in the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a method of off-screen display.
The embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a method of off-screen display.
Any reference to memory, storage, database, or other medium used in the present application may include non-volatile and/or volatile memory. The nonvolatile Memory may include a ROM (Read-Only Memory), a PROM (Programmable Read-Only Memory ), an EPROM (Erasable Programmable Read-Only Memory, erasable programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a flash Memory. Volatile memory can include RAM (Random Access Memory ), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as SRAM (Static Random Access Memory ), DRAM (Dynamic Random Access Memory, dynamic random access memory), SDRAM (Synchronous Dynamic Random Access Memory ), double data rate DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access memory, double data rate synchronous dynamic random access memory), ESDRAM (Enhanced Synchronous Dynamic Random Access memory ), SLDRAM (Sync Link Dynamic Random Access Memory, synchronous link dynamic random access memory), RDRAM (Rambus Dynamic Random Access Memory, bus dynamic random access memory), DRDRAM (Direct Rambus Dynamic Random Access Memory, interface dynamic random access memory).
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (16)

1. A method of off-screen display, the method comprising:
detecting whether a touch pen operation switch is in an on state or not when the electronic equipment is in a screen off state;
if yes, receiving a touch signal and identifying a target signal type of the touch signal;
if the target signal type of the touch signal is identified as the signal triggered by the touch pen, calling a recording application program according to the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment; the editing interface is used for receiving and recording information input by the touch control pen.
2. The method of claim 1, wherein the invoking the recording application according to the touch signal and displaying an editing interface of the recording application on a screen of the electronic device comprises:
And controlling the screen-quenching gesture service to call a recording application program based on the touch signal, and displaying an editing interface of the recording application program on a screen of the electronic equipment.
3. The method according to claim 1, wherein the method further comprises:
detecting whether a gesture operation switch is in an on state or not when the electronic equipment is in a screen off state;
if yes, receiving a touch signal and identifying a target signal type of the touch signal;
and if the target signal type of the touch signal is identified as the signal triggered by the gesture, displaying an interface triggered by the touch signal on a screen of the electronic device according to the touch signal.
4. A method according to claim 3, wherein the interface triggered by the touch signal comprises a main interface or an interface of an application; the displaying the interface triggered by the touch signal on the screen of the electronic device according to the touch signal includes:
calling a main interface according to the touch signal, and displaying the main interface on a screen of the electronic equipment; or alternatively, the first and second heat exchangers may be,
and calling an application program according to the touch signal, and displaying an interface of the application program on a screen of the electronic equipment.
5. The method of any of claims 1-4, wherein the receiving a touch signal and identifying a target signal type of the touch signal comprises:
receiving a touch signal and sending an interrupt signal to a touch screen driver based on the touch signal;
controlling the touch screen driver to report a notification event to a screen-off gesture service after receiving the interrupt signal; the notification event carries an initial signal type of the touch signal;
and controlling the screen-off gesture service to determine the target signal type of the touch signal according to the notification event.
6. The method of claim 5, wherein the controlling the off-screen gesture service to determine the target signal type of the touch signal based on the notification event comprises:
controlling the screen-off gesture service to read the initial signal type of the touch signal from the notification event;
and if the initial signal type comprises a signal triggered by a touch pen and a signal triggered by a gesture, determining that the target signal type of the touch signal is a false touch signal.
7. The method of claim 5, wherein the notification event further carries signal content of the touch-control signal; the controlling the screen-off gesture service to determine the target signal type of the touch signal according to the notification event includes:
Controlling the screen-off gesture service to read the initial signal type of the touch signal from the notification event and the signal content of the touch signal;
judging whether the initial signal type of the touch signal and the signal content of the touch signal are matched or not to obtain a matching result;
if the touch signals are matched, determining that the target signal type of the touch signals is the initial signal type of the touch signals; if the touch signals are not matched, determining that the target signal type of the touch signals is a false touch signal.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
and if the target signal type of the touch signal is a false touch signal, controlling the screen-off gesture service not to respond to the false touch signal.
9. The method of claim 1, wherein detecting whether the stylus operating switch is in an on state while the electronic device is in an off state comprises:
detecting whether Bluetooth communication connection is established between the touch pen and the electronic equipment or not when the electronic equipment is in a screen-off state;
if yes, detecting whether the stylus operation switch is in an on state.
10. The method according to claim 9, wherein the method further comprises:
If the Bluetooth communication connection is established between the touch pen and the electronic equipment, adding a first touch pen setting option in the setting options of the recording application program;
receiving a selection operation of the first touch control pen setting options, and jumping to a second touch control pen setting option in the system setting options;
and receiving selection operation of each sub-setting option in the second touch control pen setting options, and setting the operation mode of the touch control pen.
11. The method according to claim 10, wherein the method further comprises:
and if the Bluetooth communication connection between the touch pen and the electronic equipment is disconnected, deleting the first touch pen setting option from the setting options of the recording application program.
12. A method according to claim 3, wherein the gesture-operated switch is used to turn on or off a function of controlling the electronic device based on a preset gesture; the stylus operation switch is used for switching on or switching off functions of the electronic equipment based on preset stylus operation.
13. An off screen display device, the device comprising:
the switch state detection module is used for detecting whether the touch pen operation switch is in an open state or not when the electronic equipment is in a screen-off state;
The touch signal type identification module is used for receiving a touch signal and identifying the target signal type of the touch signal if the touch signal type is yes;
the interface display module is used for calling a recording application program according to the touch signal and displaying an editing interface of the recording application program on a screen of the electronic equipment if the target signal type of the touch signal is recognized as a signal triggered by a touch pen; the editing interface is used for receiving and recording information input by the touch control pen.
14. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the off-screen display method as claimed in any one of claims 1 to 12.
15. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the off-screen display method according to any of claims 1 to 12.
16. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the off-screen display method of any one of claims 1 to 12.
CN202210164588.9A 2022-02-22 2022-02-22 Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium Pending CN116679819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210164588.9A CN116679819A (en) 2022-02-22 2022-02-22 Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210164588.9A CN116679819A (en) 2022-02-22 2022-02-22 Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116679819A true CN116679819A (en) 2023-09-01

Family

ID=87789613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210164588.9A Pending CN116679819A (en) 2022-02-22 2022-02-22 Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116679819A (en)

Similar Documents

Publication Publication Date Title
US7623119B2 (en) Graphical functions by gestures
US9552068B2 (en) Input device with hand posture control
JP5389185B2 (en) Illustrated method for selecting and activating an application
US20090066653A1 (en) Systems and methods for using a keyboard as a touch panel
CN103729065A (en) System and method for mapping touch operations to entity keys
EP3605305B1 (en) Character input method of mobile terminal and mobile terminal
US20100265209A1 (en) Power reduction for touch screens
KR20100023914A (en) Method, apparatus and computer program product for providing an object selection mechanism for display devices
KR20100012088A (en) Method, apparatus and computer program product for providing a scrolling mechanism for touch screen devices
US10180780B2 (en) Portable electronic device including touch-sensitive display and method of controlling selection of information
KR102086799B1 (en) Method for displaying for virtual keypad an electronic device thereof
US20020190959A1 (en) Data processing apparatus having control element for detecting false touch
US20150370403A1 (en) Electronic apparatus and method for operating thereof
US20230244372A1 (en) Information display method and apparatus, electronic device, and computer-readable storage medium
JP2014106806A (en) Information processing device
CN114153369A (en) Multi-finger gesture application method, device, terminal and medium based on touchpad function
CN116679819A (en) Off-screen display method, off-screen display device, electronic equipment and computer readable storage medium
CN105549815A (en) Desktop icon display device and method
US20220180582A1 (en) Electronic device and method for controlling application thereof
US9170669B2 (en) Electronic device and method of controlling same
KR20120066819A (en) A mobile device and interface method using the same
CN116679837A (en) Touch pen detection method, touch pen detection device, electronic equipment and computer readable storage medium
US20150242004A1 (en) Touch-sensitive input device having a logo displayed thereon for use in a mobile electronic device
CN107092858A (en) A kind of fingerprint recognition module and its production method, terminal and method for information display
KR20200133945A (en) Electronic device for fast scrolling of pages and method for the same

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