CN114270297A - Touch screen point reporting method and device, electronic equipment and storage medium - Google Patents

Touch screen point reporting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114270297A
CN114270297A CN201980099359.XA CN201980099359A CN114270297A CN 114270297 A CN114270297 A CN 114270297A CN 201980099359 A CN201980099359 A CN 201980099359A CN 114270297 A CN114270297 A CN 114270297A
Authority
CN
China
Prior art keywords
point
reporting
processing unit
central processing
touch
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
CN201980099359.XA
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
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114270297A publication Critical patent/CN114270297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a touch screen point reporting method and device, electronic equipment and a storage medium. The method comprises the following steps: the central processing unit acquires the program attribute of the application program operated in the foreground; the central processing unit acquires point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and point reporting modes indicated by the different point reporting instructions are different; and the central processing unit sends the target report point instruction to the touch screen processor, wherein the target report point instruction is used for indicating the touch screen processor to report the detected touch point coordinate to the central processing unit according to a report point mode corresponding to the target report point instruction. Combining the advantages and disadvantages of different reporting modes, the reporting mode with lower reporting frequency is selected in the scene without continuous reporting, and the reporting mode with higher reporting frequency is selected in the scene with continuous reporting, so that the power consumption of the electronic equipment is reduced.

Description

Touch screen point reporting method and device, electronic equipment and storage medium Technical Field
The present disclosure relates to the field of electronic devices, and more particularly, to a touch screen point reporting method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, mobile terminals such as mobile phones and tablet computers are widely used and have more and more functions, and the mobile terminals become necessary electronic equipment for daily life of people. Most electronic devices are provided with a touch screen through which a user can interact with applications in the electronic device. In the interaction process of the user, the touch screen can report the detected touch information to a central processing unit of the electronic device, so that the central processing unit responds to the touch of the user to realize various functions.
However, when the touch screen reports the detected touch signal to the central processing unit of the electronic device, it is often difficult to consider the power consumption of the electronic device.
Disclosure of Invention
The application provides a touch screen point reporting method and device, electronic equipment and a storage medium, so as to reduce the power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides a touch screen point reporting method, which is applied to an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, and the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, where the method includes: the central processing unit acquires the program attribute of the application program operated in the foreground; the central processing unit acquires point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and point reporting modes indicated by the different point reporting instructions are different; and the central processing unit sends the target report point instruction to the touch screen processor, wherein the target report point instruction is used for indicating the touch screen processor to report the detected touch point coordinate to the central processing unit according to a report point mode corresponding to the target report point instruction.
In a second aspect, an embodiment of the present application provides a touch screen point reporting method, which is applied to an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, and the touch screen processor is configured to report coordinates of a touch point detected on a touch screen of the electronic device to the central processing unit, where the method includes: the touch screen processor receives a target report instruction sent by the central processing unit; the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode, wherein the point reporting modes corresponding to different point reporting instructions are different; and the touch screen processor updates the stored reporting mode into the target reporting mode.
In a third aspect, an application embodiment provides a touch screen point reporting method applied to an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, and the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the method includes: the central processing unit acquires the program attribute of the application program operated in the foreground; the central processing unit acquires point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and point reporting modes indicated by the different point reporting instructions are different; the central processing unit sends a target report point instruction to the touch screen processor, wherein the target report point instruction is used for instructing the touch screen processor to report the detected touch point coordinate to the central processing unit according to a report point mode corresponding to the target report point instruction; the touch screen processor receives a target report instruction sent by the central processing unit; the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode; and the touch screen processor updates the stored report point mode into the target report point mode and is used for reporting the detected touch point coordinates to the central processing unit according to the target report point mode.
In a fourth aspect, an embodiment of the present application provides a touch screen point reporting device, which is applied to an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the device includes: the acquisition module is used for acquiring the program attribute of the application program operated in the foreground by the central processing unit; the determining module is used for acquiring point reporting instructions corresponding to the program attributes as target point reporting instructions by the central processing unit, wherein different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different; and the instruction sending module is used for sending the target report point instruction to the touch screen processor by the central processing unit, wherein the target report point instruction is used for indicating the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report point mode corresponding to the target report point instruction.
In a fifth aspect, an embodiment of the present application provides a touch screen point reporting device, which is applied to an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the device includes: the receiving module is used for receiving a target report point instruction sent by the central processing unit by the touch screen processor; the report mode acquisition module is used for acquiring a report mode corresponding to the target report instruction as a target report mode by the touch screen processor, wherein the report modes corresponding to different report instructions are different; and the updating module is used for updating the stored reporting mode into the target reporting mode by the touch screen processor.
In a sixth aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the central processing unit is configured to execute a method executed by the central processing unit of the claim; the touch screen processor is used for executing the method executed by the touch screen processor.
In a seventh aspect, this application provides a computer-readable storage medium having program code stored therein, where the method is performed when the program code runs.
Compared with the prior art, according to the touch screen point reporting method, the touch screen point reporting device, the electronic equipment and the storage medium, the central processing unit obtains the program attribute of the application program running in the foreground; acquiring a point reporting instruction corresponding to the program attribute as a target point reporting instruction, wherein different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different; and sending the target reporting point instruction to the touch screen processor to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to the reporting point mode corresponding to the target reporting point instruction. According to different application programs running in the foreground, different point reporting modes are determined, the advantages and the disadvantages of the different point reporting modes are combined, the point reporting mode with lower point reporting frequency is selected in the scene without continuous point reporting, and the point reporting mode with higher point reporting frequency is selected in the scene with continuous point reporting, so that the power consumption of the electronic equipment is reduced.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a touch screen touch point reporting method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a touch screen touch-up method according to another embodiment of the present application.
Fig. 3 is a flowchart illustrating a touch screen touch-up method according to another embodiment of the present application.
Fig. 4 is a flowchart illustrating a touch screen touch point reporting method according to still another embodiment of the present application.
Fig. 5 is a flowchart illustrating a touch screen touch point reporting method according to still another embodiment of the present application.
FIG. 6 is an interaction diagram illustrating a touch screen touch point method according to an embodiment of the present application.
FIG. 7 is a functional block diagram of an apparatus for touch screen pointing according to an embodiment of the present application.
FIG. 8 is a functional block diagram of an apparatus for touch screen pointing according to an embodiment of the present application.
Fig. 9 shows a block diagram of an electronic device for executing a touch screen touch point method according to an embodiment of the present application.
Fig. 10 illustrates a storage medium provided in an embodiment of the present application and used for storing or carrying program codes for implementing a touch screen touch point reporting method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In an electronic device, a touch screen is usually present, and a user can interact with an application program in the electronic device through the touch screen. The touch screen can be provided with a touch screen processor, and the touch screen processor can be electrically connected with the central processing unit to realize mutual data transmission; typically, the central processor may set up the touch screen processor through an I2C interface or an SPI interface. When the touch screen processor detects a touch signal, touch point coordinates corresponding to the detected touch signal can be reported to the central processing unit, and the central processing unit can respond to the touch of a user according to the touch point coordinates reported by the touch screen processor, so that interaction with the user is realized.
The touch screen processor may report the touch point coordinates only once for the same touch point coordinates triggered within a certain number of frames or within a certain time. However, if the touch point coordinates are reported in such a reporting manner, it may happen that the touch screen of the electronic device is pressed for a long time under some circumstances, and the screen is turned off because the touch point coordinates are reported only once. The touch point reporting mode can also be a mode of reporting the touch point coordinate corresponding to any detected touch signal, the touch point reporting mode does not cause the phenomenon of screen turn-off, but the frequency of reporting the touch point coordinate is high, so that high power consumption is generated, and the power consumption of the electronic equipment is increased.
Therefore, the inventor provides a touch screen point reporting method, a touch screen point reporting device, an electronic device and a storage medium in the application, wherein a central processing unit acquires the program attribute of an application program running in a foreground; the central processing unit acquires a point reporting instruction corresponding to the program attribute as a target point reporting instruction, wherein different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different; and sending the target report point instruction to the touch screen processor to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report point mode corresponding to the target report point instruction. Combining the advantages and disadvantages of different reporting modes, selecting the reporting mode with lower reporting frequency in the scene without continuous reporting, and selecting the reporting mode with higher reporting frequency in the scene with continuous reporting, thereby reducing the power consumption of the electronic equipment.
The following will describe embodiments of the present application in detail.
Referring to fig. 1, an embodiment of the present application provides a touch screen touch point reporting method, and an execution main body of a processing flow described in this embodiment may be a central processing unit in an electronic device. The electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, where the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the method may specifically include:
step S110, the central processing unit obtains the program attribute of the foreground-running application program.
In the electronic device, the central processing unit may obtain each application program that is started to run, and the application program that is started to run may be foreground running or background running. Wherein, foreground running refers to a mode that running is visible on a desktop, for example, running game software; background running refers to a running mode in which the application program can still run related services after being closed, for example, some communication software can continuously receive messages in the background, and notify users in time when messages are received.
Therefore, the central processing unit can acquire the foreground running application program, and when the foreground running application program is acquired, the program attribute of the foreground running application program can be determined, and then the program attribute of the foreground running application program can be acquired. The program attributes comprise a first attribute and a second attribute, and the application programs with the first attribute can be different in category from the application programs with the second attribute. For example, the application having the first attribute may be a communication-type application such as WeChat, QQ, or the like, and the application having the second attribute may be a video-type application such as Aichi art video, Youko video, or the like.
The central processing unit may obtain the program attribute of the foreground-running application program, and may determine the corresponding reporting mode according to the program attribute of the foreground-running application program.
Step S120, the central processing unit obtains the report point instruction corresponding to the program attribute as a target report point instruction, different program attributes correspond to different report point instructions, and report point modes indicated by different report point instructions are different.
After acquiring the program attribute of the application program running in the foreground, the central processing unit may take the report point instruction corresponding to the acquired program attribute as a target report point instruction. The program attributes comprise a first attribute and a second attribute, the categories of the application program with the first attribute and the application program with the second attribute can be different, and different program attributes correspond to different report point instructions. The point reporting instruction corresponding to the first attribute may be a first point reporting instruction, and the point reporting instruction corresponding to the second attribute may be a second point reporting instruction, where the point reporting modes indicated by the first point reporting instruction and the second point reporting instruction are different, so that a touch screen processor receiving the first point reporting instruction and the second point reporting instruction can report points according to the first point reporting instruction and the second point reporting instruction in different point reporting modes.
The touch screen processing method comprises the steps that different point reporting instructions indicate different point reporting modes, wherein the first point reporting instruction is used for indicating the touch screen processor to report detected touch point coordinates to the central processing unit according to the first point reporting mode, the second point reporting instruction is used for indicating the touch screen processor to report the detected touch point coordinates to the central processing unit according to the second point reporting mode, and for the detected continuous multiple touches on the same coordinate, the coordinate reporting frequency of the second point reporting mode is lower than that of the first point reporting mode. Because the coordinate reporting frequency of the second reporting mode is lower than that of the first reporting mode, the power consumption of the second reporting mode is lower than that of the first reporting mode; the first point reporting mode has higher reporting frequency to the coordinate, so that the phenomenon of screen turn-off when touching can not occur.
And step S130, the central processing unit sends the target report point instruction to the touch screen processor.
After the central processing unit obtains a target report instruction corresponding to the program attribute, the central processing unit may send the target report instruction to the touch screen processor, so as to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report mode corresponding to the target report instruction.
If the central processing unit obtains that the point reporting instruction corresponding to the program attribute is a first point reporting instruction, sending the first point reporting instruction serving as a target point reporting instruction to the touch screen processor; and if the central processing unit obtains that the point reporting instruction corresponding to the program attribute is a second point reporting instruction, sending the second point reporting instruction serving as a target point reporting instruction to the touch screen processor.
According to the touch screen point reporting method, a central processing unit obtains the program attribute of an application program running in a foreground; acquiring a point reporting instruction corresponding to the program attribute as a target point reporting instruction, wherein different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different; and the central processing unit sends the target report point instruction to the touch screen processor so as to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report point mode corresponding to the target report point instruction. Combining the advantages and disadvantages of different reporting modes, the reporting mode with lower reporting frequency is selected in the scene without continuous reporting, and the reporting mode with higher reporting frequency is selected in the scene with continuous reporting, so that the power consumption of the electronic equipment is reduced.
Referring to fig. 2, another embodiment of the present application provides a touch screen touch point reporting method, where on the basis of the foregoing embodiment, the present embodiment mainly describes processes of determining a program attribute of an application program running in a foreground and determining a target instruction, where the method may include:
in step S210, the central processing unit obtains an identifier of the foreground-running application.
When acquiring an application running in foreground, the central processing unit may acquire an identifier of the application, where the identifier may be a symbol representing the application, such as a name of the application or an application id corresponding to the application.
Before the central processing unit obtains the identifier of the application program running in the foreground, whether the residual electric quantity of the electronic equipment is lower than the preset electric quantity or not can be judged, and if the residual electric quantity is lower than the preset electric quantity, the fact that the electronic equipment needs to reduce the power consumption of the electronic equipment is indicated, so that the electric quantity is saved. The step of obtaining the program attributes of the foreground-running application, i.e. the step of obtaining the identifier of the foreground-running application, may thus be performed.
Step S220, determining whether the identifier is in the white list, if yes, performing step S230, and if no, performing step S250.
A white list for storing identifiers of applications having the first attribute may be pre-stored in the electronic device. In some embodiments, the white list may be pre-set by a user, an application selected by the user, the application selected by the user as the application having the first attribute, and an identifier of the application selected by the user stored as the white list.
In some embodiments, it may be that the central processor of the electronic device obtains all installed applications, treats a certain class of applications as applications having the first attribute, and stores an identifier of the application as the whitelist.
In some embodiments, the central processing unit of the electronic device may also generate a white list in advance, and the white list is displayed to the user for confirmation, so that the user may change the white list at any time.
The specific obtaining manner of the white list may be set according to actual usage, and is not specifically limited herein.
When acquiring the identifier of the foreground-running application program, the central processing unit may determine the program attribute of the application program through the white list, specifically, determine whether the acquired identifier is in the white list, if the acquired identifier is in the white list, execute step S230, and if the acquired identifier is not in the white list, execute step S250.
There may be multiple foreground-running applications, and the central processor may obtain identifiers of the multiple foreground-running applications.
In one embodiment, when identifiers of a plurality of applications are acquired and whether the identifiers are in the white list is determined, if one of the acquired identifiers of the plurality of applications is in the white list, the identifier may be considered to be in the white list. For example, the white list includes four identifiers, i.e., a, B, C, and D, and the identifiers of the application programs running in the foreground, which are acquired by the central processing unit, are C and F, where the white list includes the identifier C, the identifier may be considered to be in the white list. And only when none of the obtained identifiers of the application programs running in the foreground is in the white list, the identifiers are considered to be in the white list.
As another embodiment, if the obtained identifiers of the foreground-running applications are all in the white list, the identifiers may be considered to be in the white list. For example, the white list includes four identifiers, i.e., a, B, C, and D, the identifiers of the application programs running in the foreground, which are acquired by the central processing unit, are C and D, and the white list includes C and D, the identifiers may be considered to be in the white list. If the identifiers of the application programs running in the foreground, which are acquired by the central processing unit, are C and F, and the identifier F is not included in the white list, the identifiers may be considered to be in the white list.
Step S230, determining the program attribute of the foreground-running application program as a first attribute.
Step S240, determining that the first hit report command is the target hit report command, and execute step S270.
When it is determined that the identifier exists in the white list, it indicates that the program attribute of the application program is a first attribute, and then it may be determined that a first reporting instruction is the target reporting instruction according to the first attribute, where the first reporting instruction is used to instruct the touch screen processor to report the detected coordinates of the touch point to the central processing unit according to a first reporting mode, and specifically, the first reporting instruction instructs the touch screen processor to report the coordinates of the touch point detected each time to the central processing unit. After determining the first point reporting instruction as the target point reporting instruction, the step S270 may be continuously performed.
Step S250, determining the program attribute of the foreground-running application program as a second attribute.
Step S260, determining that the second hit report command is the target hit report command, and execute step S270.
When it is determined that the identifier does not exist in the white list, it indicates that the program attribute of the application program is a second attribute, and it may be determined that a second reporting instruction is the target reporting instruction according to the second attribute, where the second reporting instruction is used to instruct the touch screen processor to report the detected coordinates of the touch point to the central processing unit according to a second reporting mode, and specifically, the second reporting instruction instructs the touch screen processor to report the detected coordinates of the touch point to the central processing unit only once for the detected consecutive multiple touches on the same coordinate. And for the detected continuous multiple touches on the same coordinate, the coordinate reporting frequency of the second reporting mode is lower than that of the first reporting mode.
The first reporting mode may be that when a touch is detected, a coordinate corresponding to the detected touch is reported; the second reporting mode may be that the touch screen processor reports the coordinates of the detected touch point to the central processing unit only once for a plurality of consecutive touches with the same coordinate within a preset number of measurement units, where the measurement units may be unit time or image frames. That is, the second point reporting mode may be that, for a plurality of consecutive touches with the same coordinate, the touch screen processor reports the coordinate of the detected touch point to the central processing unit only once within a preset time or image frame number. After determining the second point reporting instruction as the target point reporting instruction, the step S270 may be continuously performed.
And step S270, the central processing unit sends the target report point instruction to the touch screen processor.
Step S270 can refer to the corresponding parts of the foregoing embodiments, and will not be described herein.
In the above steps, after the step S220 is executed, if the steps S230 and S240 are executed, the steps S250 and S260 are not executed; if steps S250 and S260 are executed, steps S230 and S240 are not executed.
The touch screen point reporting method obtains an identifier of an application program operated by a foreground, judges whether the identifier exists in a white list or not, and if the identifier exists in the white list, determines that the program attribute of the application program operated by the foreground is a first attribute, so that a first point reporting instruction is determined as a target point reporting instruction; if the identifier does not exist in the white list, determining that the program attribute of the foreground operating application program is a second attribute, and determining that a second point reporting instruction is a target point reporting instruction; and sending the target report point instruction to the touch screen processor. Therefore, different report point instructions can be determined according to the application program running in the foreground, the touch screen processor is instructed to report the detected coordinates of the touch points according to the different report point instructions, the report point mode with lower report point frequency is selected under the condition that the application program with the second attribute runs in the foreground, and the report point mode with higher report point frequency is selected under the condition that the application program with the first attribute runs in the foreground, so that the power consumption of the electronic equipment is reduced.
Referring to fig. 3, another embodiment of the present application provides a touch screen touch point reporting method, and an execution main body of the processing flow described in this embodiment may be a touch screen processor in an electronic device. The electronic device includes a central processing unit and a touch screen processor electrically connected to the central processing unit, where the touch screen processor is configured to report coordinates of a touch point detected by a touch screen of the electronic device to the central processing unit, and the method may specifically include:
in step S310, the touch screen processor receives a target reporting point instruction sent by the central processing unit.
When the central processing unit obtains the program attribute of the application program running in the foreground, a target point reporting instruction can be determined according to the program attribute, so that the point reporting instruction is sent to the touch screen processor, and therefore the touch screen processor can receive the target point reporting instruction sent by the central processing unit.
Step S320, the touch screen processor obtains a reporting mode corresponding to the target reporting instruction as a target reporting mode, where reporting modes corresponding to different reporting instructions are different.
After receiving the target point reporting instruction, the touch screen processor may obtain a corresponding point reporting mode in the target point reporting instruction according to the target point reporting instruction. If the target reporting point instructions are different, the corresponding reporting point modes are also different.
As an implementation manner, the target reporting point instruction may carry a target reporting point manner, and when the touch screen processor receives the target reporting point instruction, the touch screen processor analyzes the target reporting point instruction to obtain a corresponding reporting point manner, and uses the reporting point manner obtained by the analysis as the target reporting point manner.
As another embodiment, a mode comparison table of a correspondence relationship between a point reporting instruction and a point reporting mode may be stored in advance, and when the target point reporting instruction is acquired, a point reporting mode corresponding to the target point reporting instruction may be searched in the mode comparison table, and the searched point reporting mode is used as the target point reporting mode.
Step S330, the touch screen processor updates the stored reporting mode to the target reporting mode.
After determining the target reporting mode, the touch screen processor may update the stored reporting mode to the target reporting mode.
As an implementation manner, the touch screen processor may obtain a stored point reporting manner, determine whether a currently used point reporting manner is consistent with the target point reporting manner, and if so, keep the stored point reporting manner; if not, the stored reporting mode is switched to the target reporting mode.
As another embodiment, the touch screen processor may directly update the stored hit mode to the target hit mode.
After the touch screen processor updates the currently used reporting mode to the target reporting mode, the detected touch point coordinates can be reported to a central processing unit through the target reporting mode.
The target reporting mode may be a first reporting mode, and the first reporting mode may be that the touch screen processor reports coordinates of the touch point detected each time to the central processing unit. That is, when the touch screen processor detects the coordinates of the touch point, the detected coordinates of the touch point can be reported to the central processing unit.
The target reporting mode may also be a second reporting mode, where the second reporting mode may be that the touch screen processor reports the coordinates of the detected touch point to the central processing unit only once, and specifically, the second reporting mode may be that, in a preset number of measurement units, if the detected coordinates of the touch point are the same, the touch screen processor reports the coordinates of the detected touch point to the central processing unit only once.
The frequency of the first reporting mode is greater than that of the second reporting mode, so that the power consumption of the first reporting mode is greater than that of the second reporting mode, and when the second reporting mode is used for reporting, the screen may be turned off.
According to the touch screen point reporting method, the touch screen processor receives a target point reporting instruction sent by the central processing unit; the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode, wherein the point reporting modes corresponding to different point reporting instructions are different; and the touch screen processor updates the stored reporting mode into the target reporting mode. Therefore, the point reporting mode can be updated to the point reporting mode corresponding to the target point reporting instruction according to the target point reporting instruction sent by the central processing unit, the detected coordinates of the touch point are reported according to the point reporting mode corresponding to the target point reporting instruction, and the detected coordinates of the touch point are reported according to the point reporting instruction of the central processing unit.
Referring to fig. 4, another embodiment of the present application provides a touch screen reporting method, and this embodiment focuses on a reporting mode and a reporting process corresponding to a target reporting instruction, where the method includes:
and step S410, the touch screen processor receives a target report instruction sent by the central processing unit.
Step S410 may refer to corresponding parts of the foregoing embodiments, and will not be described herein again.
Step S420, finding the reporting mode corresponding to the target reporting instruction in the mode comparison table.
Step S430, using the hit mode found in the mode lookup table as the target hit mode.
When the touch screen processor receives a target point reporting instruction sent by the central processing unit, a point reporting mode corresponding to the target point reporting instruction can be obtained as a target point reporting mode. The touch screen processor receives a target point reporting instruction sent by the central processing unit, and then can acquire the point reporting mode corresponding to the target point reporting instruction according to the mode comparison table.
Specifically, the target point reporting instruction may be searched in the mode comparison table, a point reporting mode corresponding to the target point reporting instruction in the mode comparison table is obtained, and the found point reporting mode is used as the target point reporting mode. For example, in the mode lookup table, the reporting mode corresponding to the reporting instruction a is a; the report mode corresponding to the report instruction B is B. If the target reporting point instruction received by the touch screen processor is A, a reporting point mode corresponding to the reporting point instruction A can be searched in the mode comparison table and can be used as the target reporting point mode.
Step S440, the touch screen processor updates the stored reporting mode to the target reporting mode.
And when the touch screen processor acquires a target reporting mode corresponding to the target reporting instruction, updating the currently used reporting mode to the target reporting mode. Specifically, different reporting modes may correspond to different reporting algorithms, and when a target reporting mode is obtained, the reporting algorithm is updated to the reporting algorithm corresponding to the target reporting mode, so that the reporting mode is switched to the target reporting mode.
And step S450, reporting the detected touch point coordinates to the central processing unit by the touch screen processor according to the target point reporting mode.
The touch screen processor can report the detected coordinates of the touch points to the central processing unit according to a target point reporting mode. Specifically, interrupt information may be sent to the central processing unit to instruct the central processing unit to read the coordinates of the touch point according to the interrupt information.
If the target point reporting mode is a first point reporting mode, when the touch screen processor detects a touch signal, acquiring a touch point coordinate corresponding to the touch point signal as a first coordinate, and reporting the first coordinate to a central processing unit.
If the target point reporting mode is a second point reporting mode, the touch screen processor acquires a touch point coordinate corresponding to the currently detected touch signal as a first coordinate when detecting the touch signal; acquiring a touch point coordinate corresponding to the last detected touch signal as a second coordinate; comparing whether the first coordinate and the second coordinate are consistent, if so, not reporting the first coordinate; and if the first coordinate is inconsistent with the second coordinate, reporting the first coordinate.
The touch point coordinate corresponding to the detected touch signal may be an XY two-dimensional coordinate, and when comparing whether a first coordinate is consistent with a second coordinate, it may be that when X coordinates of the first coordinate are consistent with X coordinates of the second coordinate, and when Y coordinates of the first coordinate are consistent with Y coordinates of the second coordinate, the first coordinate is considered to be consistent with the second coordinate; and when the X coordinate of the first coordinate is inconsistent with the X coordinate of the second coordinate, or the Y coordinate is inconsistent, or both the X coordinate and the Y coordinate are inconsistent, the first coordinate and the second coordinate are considered to be inconsistent.
As an embodiment, when the second reporting mode is caused to report the detected touch point coordinates, the time difference between the last detected touch signal and the currently detected touch signal may be acquired before the touch point coordinates corresponding to the last detected touch signal are acquired as the second coordinates; if the time difference is smaller than the preset time, the step of acquiring the touch point corresponding to the last detected touch signal as the second coordinate may be performed. The time difference between the last detected touch signal and the current detected touch signal is obtained, so that the time of the current detected touch signal and the time of the last detected touch signal can be obtained, and the two times of time are differenced to obtain the time difference. If the time difference is less than the preset time, the same touch point coordinate can be reported once, so that the touch signal detected last time can be used as a second coordinate, the first coordinate and the second coordinate are compared, and whether the first coordinate is reported or not is determined; if the time difference is smaller than the preset time, it is indicated that if the touch point coordinate corresponding to the currently detected touch signal is not reported, the screen may be turned off, so that the normal use of the electronic device is affected, and the first coordinate can be directly reported.
As an embodiment, when the second reporting mode is caused to report the detected touch point coordinates, before the touch point coordinates corresponding to the last detected touch signal are acquired as the second coordinates, the frame number difference between the last detected touch signal and the currently detected touch signal may be acquired; if the time difference is smaller than the preset frame number difference, the step of acquiring the touch point corresponding to the touch signal detected last time as the second coordinate may be performed. The frame number difference between the touch signal detected last time and the touch signal detected currently can be obtained, the frame number corresponding to the touch signal detected currently and the frame number corresponding to the touch signal detected last time are obtained, and the frame numbers of the two times are differenced to obtain the frame number difference. If the frame number difference is less than the preset time, the same touch point coordinate can be reported once, so that the touch signal detected last time can be used as a second coordinate, the first coordinate and the second coordinate are compared, and whether the first coordinate is reported or not is determined; if the frame number difference is smaller than the preset frame number difference, it indicates that if the touch point coordinate corresponding to the currently detected touch signal is not reported, the screen-off condition may be caused, so that the normal use of the electronic device is affected, and the first coordinate can be directly reported.
In addition, in the second touch reporting mode, when the touch screen processor detects a touch signal, a touch point coordinate corresponding to the currently detected touch signal may be acquired as a first coordinate; acquiring a touch point coordinate reported last time as a second coordinate; comparing whether the first coordinate and the second coordinate are consistent, if so, not reporting the first coordinate; and if the first coordinate is inconsistent with the second coordinate, reporting the first coordinate.
According to the touch screen point reporting method, the touch processor obtains a target point reporting mode corresponding to a target point reporting instruction through the mode comparison table, updates the stored point reporting mode to the target point reporting mode, and reports the detected touch point coordinates to the central processing unit in the target point reporting mode, so that the detected touch point coordinates are reported according to the point reporting instruction of the central processing unit.
Referring to fig. 5, another embodiment of the present application provides a touch screen touch point reporting method, which describes a flow of steps of touch screen touch point reporting system interaction, and the method may include:
step S510, the CPU obtains the program attribute of the application program running in the foreground;
step S520, the central processing unit obtains the point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different;
step S530, the central processing unit sends the target report point instruction to the touch screen processor;
and step S540, the touch screen processor receives a target report instruction sent by the central processing unit.
And step S550, the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode.
In step S560, the touch screen processor updates the stored reporting mode to the target reporting mode.
The steps S510 to S560 may refer to corresponding parts of the foregoing embodiments, and are not described herein again. Referring also to fig. 6, the interaction between the central processor and the touch screen processor is shown.
This interaction process will be described below in a specific example.
For example, the foreground running application acquired by the central processing unit is software M, and the identifier of the application corresponding to the software M is M, where the identifiers of the applications in the white list include e, h, and g. At this time, the obtained identifier M of the application program running in the foreground is not in the white list, and the central processing unit may obtain the program attribute corresponding to the software M as the second attribute. And the central processing unit determines that the point reporting instruction corresponding to the second attribute is a second point reporting instruction according to the second attribute, and then the second point reporting instruction can be sent to the touch screen processor as the target point reporting instruction.
When the touch screen processor receives a second point reporting instruction sent by the central processing unit, the touch screen processor searches a preset mode comparison table to acquire that the point reporting mode corresponding to the second point reporting instruction is the second point reporting mode, and if the point reporting mode stored by the touch screen processor is the first point reporting mode, the first point reporting mode can be updated to the second point reporting mode. At this time, the touch screen processor reports the detected touch point coordinates to the central processing unit according to a second point reporting mode.
And acquiring a touch point coordinate corresponding to the currently detected touch signal as a first coordinate and acquiring whether the time difference between the last detected touch signal and the currently detected touch signal is less than a preset time or not based on the second touch reporting mode, wherein if the preset time is 10s and the time difference between the last acquired touch signal and the currently detected touch signal is 3s, the touch point coordinate corresponding to the last detected touch signal can be acquired as a second coordinate. The touch operation of the user is a long press operation, and the touch operation of the user is a long press operation, which indicates that the touch of the user does not move, and at this time, the first coordinate and the second coordinate are consistent. The detected coordinates of the touch point may not be reported to the central processing unit.
According to the touch screen point reporting method, a central processing unit obtains the program attribute of an application program running in a foreground; determining a corresponding point reporting instruction as a target point reporting instruction according to the program attribute; sending the target report point instruction to a touch screen processor; the touch screen processor receives a target report instruction sent by the central processing unit; acquiring a report mode corresponding to the target report instruction as a target report mode; and updating the stored reporting point mode into the target reporting point mode. Therefore, the touch screen processor can report the detected coordinates of the touch points to the central processing unit according to the instruction of the central processing unit, and in combination with the advantages and disadvantages of different point reporting modes, the point reporting mode with lower point reporting frequency is selected under the condition that the application program with the second attribute runs in the foreground, and the point reporting mode with higher point reporting frequency is selected under the condition that the application program with the first attribute runs in the foreground, so that the power consumption of the electronic equipment is reduced.
Referring to fig. 7, a touch screen touch point reporting apparatus 600 according to an embodiment of the present application is shown, where the apparatus 600 includes an obtaining module 610, a determining module 620, and an instruction sending module 630.
The obtaining module 610 is configured to obtain, by the central processing unit, a program attribute of an application program running in a foreground; the determining module 620 is configured to obtain, by the central processing unit, a point reporting instruction corresponding to the program attribute as a target point reporting instruction, where different program attributes correspond to different point reporting instructions and point reporting modes indicated by different point reporting instructions are different; the instruction sending module 630 is configured to send the target report instruction to the touch screen processor by the central processing unit, where the target report instruction is used to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report mode corresponding to the target report instruction.
Further, the program attribute includes a first attribute and a second attribute, and the determining module 620 is further configured to determine, if the program attribute of the application program running in the foreground is the first attribute, that a first point reporting instruction is the target point reporting instruction, where the first point reporting instruction is used to instruct the touch screen processor to report the detected coordinates of the touch point to the central processing unit according to a first point reporting mode; and if the program attribute of the running application program of the foreground is a second attribute, determining that a second reporting point instruction is the target instruction, wherein the second reporting point instruction is used for indicating the touch screen processor to report the detected coordinates of the touch points to the central processing unit according to a second reporting point mode, and for the detected continuous multiple touches on the same coordinates, the reporting frequency of the coordinates of the second reporting point mode is lower than that of the first reporting point mode.
Further, a white list is pre-stored in the electronic device, where the white list is used to store identifiers of applications with the first attribute, and the determining module 620 is further used to obtain the identifier of the foreground-running application; determining whether the identifier exists in the white list; if the attribute exists, determining the program attribute of the foreground running application program as a first attribute; and if the attribute does not exist, determining that the program attribute of the foreground running application program is a second attribute.
Further, the first point reporting mode is that the touch screen processor reports the coordinates of the touch point detected each time to the central processing unit; the second point reporting mode is that the touch screen processor reports the detected coordinates of the touch point to the central processing unit only once.
Further, the second reporting mode is that the touch screen processor reports the detected coordinates of the touch point to the central processing unit only once for the detected continuous multiple touches on the same coordinate within the preset number of measurement units.
Further, the measurement unit is a unit time or an image frame.
Further, the obtaining module 610 obtains an identifier of the foreground-running application; judging whether the identifier is in a pre-stored blacklist or not; if the identifier is in the white list, the determining module 620 obtains a first reporting instruction as the target reporting instruction, where the first reporting instruction is used to instruct the touch screen processor to report the coordinates of the touch point detected each time to a central processing unit; if the identifier is not in the white list, the determining module 620 obtains a second point reporting instruction as the target point reporting instruction, where the second point reporting instruction is used to instruct the touch screen processor to report the detected coordinates of the touch point to a central processing unit only once for the detected consecutive multiple touches to the same coordinate.
Further, before the obtaining module 610 obtains the program attribute of the application program running in the foreground, the obtaining module is further configured to determine whether the remaining power of the electronic device is lower than a preset power; and if so, executing the step that the central processing unit acquires the program attribute of the application program operated in the foreground.
Referring to fig. 8, a touch screen reporting apparatus 700 according to an embodiment of the present application is shown, where the apparatus 700 includes a receiving module 710, a reporting mode obtaining module 720, and an updating module 730.
The receiving module 710 is configured to receive, by the touch screen processor, a target reporting point instruction sent by the central processing unit; the report mode acquiring module 720 is configured to acquire, by the touch screen processor, a report mode corresponding to the target report instruction as a target report mode, where the report modes corresponding to different report instructions are different; the updating module 730 is configured to update the stored reporting mode to the target reporting mode by the touch screen processor.
Further, the apparatus 700 further includes a reporting module, configured to report the detected touch point coordinates to the central processing unit according to the target reporting mode.
Further, a mode comparison table is stored in advance, the mode comparison table includes a corresponding relationship between a point reporting instruction and a point reporting mode, and the point reporting mode obtaining module 720 is further configured to search a point reporting mode corresponding to the target point reporting instruction in the mode comparison table; and taking the report mode searched in the mode comparison table as the target report mode.
Further, if the target point reporting mode is a first point reporting mode, the first point reporting mode is that the touch screen processor reports coordinates of the touch point detected each time to the central processing unit, and the reporting module is further configured to acquire, when a touch signal is detected, coordinates of the touch point corresponding to the currently detected touch signal as first coordinates; and reporting the first coordinate to the central processing unit.
Further, if the target point reporting mode is a second point reporting mode, the second point reporting mode is that for the detected continuous multiple touches on the same coordinate, the touch screen processor reports the detected coordinate of the touch point to the central processing unit only once, and the reporting module is further configured to obtain the coordinate of the touch point corresponding to the currently detected touch signal as the first coordinate when the touch signal is detected; acquiring a touch point coordinate corresponding to the last detected touch signal as a second coordinate; comparing whether the first coordinate and the second coordinate are consistent; if the first coordinate is consistent with the second coordinate, the first coordinate is not reported; and if the first coordinates are inconsistent, reporting the first coordinates.
Further, before acquiring a touch point coordinate corresponding to the last detected touch signal as a second coordinate, the reporting module is further configured to acquire a time difference between the last detected touch signal and the currently detected touch signal; judging whether the time difference is smaller than a preset time or not; if the touch signal is smaller than the first coordinate, the step of acquiring the touch point coordinate corresponding to the last detected touch signal as a second coordinate is executed; and if not, reporting the first coordinate.
Further, before acquiring a touch point coordinate corresponding to the last detected touch signal as a second coordinate, the reporting module is further configured to acquire a frame number difference between the last detected touch signal and the currently detected touch signal; judging whether the frame number difference is smaller than a preset frame number difference or not; if the touch signal is smaller than the first coordinate, a step of acquiring a touch coordinate corresponding to the last detected touch signal as a second coordinate is executed; and if not, reporting the first coordinate.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
To sum up, the touch screen point reporting method provided by the application obtains the program attribute of the application program running in the foreground through the central processing unit; acquiring a report point instruction corresponding to the program attribute as a target report point instruction, wherein report point modes indicated by report point instructions corresponding to different program attributes are different; and the central processing unit sends the target report point instruction to the touch screen processor so as to instruct the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report point mode corresponding to the target report point instruction. Combining the advantages and disadvantages of different reporting modes, the reporting mode with lower reporting frequency is selected in the scene without continuous reporting, and the reporting mode with higher reporting frequency is selected in the scene with continuous reporting, so that the power consumption of the electronic equipment is reduced.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 6, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 800 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 800 in the present application may include one or more of the following components: a processor 810, a memory 820, and one or more applications, wherein the one or more applications may be stored in the memory 820 and configured to be executed by the one or more processors 810. The processor 810 may further include a central processor 811 and a touch screen processor 812, where the central processor 811 is electrically connected to the touch screen processor 812, the touch screen processor 812 is configured to report coordinates of a touch point detected on a touch screen of the electronic device to the central processor 811, and the central processor 811 and the touch screen processor 812 are configured to execute the method described in the foregoing method embodiment.
Processor 810 may include one or more processing cores. The processor 810 interfaces with various interfaces and circuitry throughout the electronic device 800 to perform various functions and process data of the electronic device 800 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 820 and invoking data stored in the memory 820. Alternatively, the processor 810 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 810 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 810, but may be implemented by a communication chip. The central processor 811 and the touch screen processor 812 also have the same structure and function as the processor 810, and are not described herein again to avoid redundancy.
The Memory 820 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 820 may be used to store instructions, programs, code sets, or instruction sets. The memory 820 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 800 (e.g., phone books, audio-visual data, chat log data), and so forth.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 900 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 910 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. A touch screen point reporting method is applied to electronic equipment, the electronic equipment comprises a central processing unit and a touch screen processor electrically connected with the central processing unit, the touch screen processor is used for reporting touch point coordinates detected by a touch screen of the electronic equipment to the central processing unit, and the method comprises the following steps:
    the central processing unit acquires the program attribute of the application program operated in the foreground;
    the central processing unit acquires point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and point reporting modes indicated by the different point reporting instructions are different;
    and the central processing unit sends the target report point instruction to the touch screen processor, wherein the target report point instruction is used for indicating the touch screen processor to report the detected touch point coordinate to the central processing unit according to a report point mode corresponding to the target report point instruction.
  2. The method according to claim 1, wherein the program attribute includes a first attribute and a second attribute, and the obtaining, by the central processing unit, a breakpoint instruction corresponding to the program attribute as a target breakpoint instruction includes:
    if the program attribute of the application program running in the foreground is a first attribute, determining that a first point reporting instruction is the target point reporting instruction, wherein the first point reporting instruction is used for indicating the touch screen processor to report the detected touch point coordinate to the central processing unit according to a first point reporting mode;
    and if the program attribute of the running application program of the foreground is a second attribute, determining that a second reporting point instruction is the target reporting point instruction, wherein the second reporting point instruction is used for indicating the touch screen processor to report the detected coordinates of the touch point to the central processing unit according to a second reporting point mode, and for the detected continuous multiple touches on the same coordinate, the reporting frequency of the coordinates of the second reporting point mode is lower than that of the first reporting point mode.
  3. The method of claim 2, wherein a white list is pre-stored in the electronic device, the white list is used for storing identifiers of the applications with the first attribute, and the central processing unit obtains the program attribute of the application running in the foreground, and the method comprises the following steps:
    acquiring an identifier of the application program operated in the foreground;
    determining whether the identifier exists in the white list;
    if the attribute exists, determining the program attribute of the foreground running application program as a first attribute;
    and if the attribute does not exist, determining that the program attribute of the foreground running application program is a second attribute.
  4. A method according to claim 2 or 3, characterized in that for a detected consecutive number of touches to the same coordinates,
    the first point reporting mode is that the touch screen processor reports the coordinates of the touch points detected each time to the central processing unit;
    the second point reporting mode is that the touch screen processor reports the detected coordinates of the touch point to the central processing unit only once.
  5. The method of claim 4, wherein the second reporting mode is that the touch screen processor reports the coordinates of the detected touch point to the central processing unit only once for a predetermined number of consecutive touches to the same coordinates.
  6. The method of claim 5, wherein the unit of measure is a unit of time or an image frame.
  7. The method according to claim 1, wherein the step of acquiring, by the central processing unit, the program attribute of the application program running in the foreground, and acquiring the point reporting instruction corresponding to the program attribute as the target point reporting instruction, comprises:
    the central processing unit acquires an identifier of an application program operated in a foreground;
    judging whether the identifier is in a pre-stored white list or not;
    if the identifier is in the white list, acquiring a first point reporting instruction as the target point reporting instruction, wherein the first point reporting instruction is used for indicating the touch screen processor to report the coordinates of the touch point detected each time to a central processing unit;
    and if the identifier is not in the white list, acquiring a second point reporting instruction as the target point reporting instruction, wherein the second point reporting instruction is used for indicating the touch screen processor to report the detected coordinates of the touch point to a central processing unit only once for the detected continuous multiple touches on the same coordinate.
  8. The method according to any one of claims 1-7, wherein before the central processing unit obtains the program attributes of the foreground-running application, the method further comprises:
    judging whether the residual electric quantity of the electronic equipment is lower than a preset electric quantity or not;
    and if so, executing the step that the central processing unit acquires the program attribute of the application program operated in the foreground.
  9. A touch screen point reporting method is applied to electronic equipment, the electronic equipment comprises a central processing unit and a touch screen processor electrically connected with the central processing unit, the touch screen processor is used for reporting touch point coordinates detected by a touch screen of the electronic equipment to the central processing unit, and the method comprises the following steps:
    the touch screen processor receives a target report instruction sent by the central processing unit;
    the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode, wherein the point reporting modes corresponding to different point reporting instructions are different;
    and the touch screen processor updates the stored reporting mode into the target reporting mode.
  10. The method of claim 9, further comprising:
    and the touch screen processor reports the detected coordinates of the touch points to the central processing unit according to the target point reporting mode.
  11. The method according to claim 9 or 10, wherein a mode comparison table is pre-stored, the mode comparison table includes a correspondence between a point reporting instruction and a point reporting mode, and the step of acquiring, by the touch screen processor, the point reporting mode corresponding to the target point reporting instruction as the target point reporting mode includes:
    searching a report mode corresponding to the target report instruction in the mode comparison table;
    and taking the report mode searched in the mode comparison table as the target report mode.
  12. The method according to claim 10 or 11, wherein if the target reporting mode is a first reporting mode, the first reporting mode is that the touch screen processor reports coordinates of the touch point detected each time to a central processing unit, and the touch screen processor reports the detected coordinates of the touch point to the central processing unit according to the target reporting mode, comprising:
    when a touch signal is detected, acquiring a touch point coordinate corresponding to the currently detected touch signal as a first coordinate;
    and reporting the first coordinate to the central processing unit.
  13. The method according to claim 10 or 11, wherein if the target reporting mode is a second reporting mode, the second reporting mode is that, for a plurality of consecutive touches on the same coordinate, the touch screen processor reports the detected coordinate of the touch point to the central processing unit only once, and the touch screen processor reports the detected coordinate of the touch point to the central processing unit according to the target reporting mode, including:
    when a touch signal is detected, acquiring a touch point coordinate corresponding to the currently detected touch signal as a first coordinate;
    acquiring a touch point coordinate corresponding to the last detected touch signal as a second coordinate;
    comparing whether the first coordinate and the second coordinate are consistent;
    if the first coordinate is consistent with the second coordinate, the first coordinate is not reported;
    and if the first coordinates are inconsistent, reporting the first coordinates.
  14. The method according to claim 13, wherein before obtaining the touch point coordinate corresponding to the last detected touch signal as the second coordinate, the method further comprises:
    acquiring a time difference between a last detected touch signal and a currently detected touch signal;
    judging whether the time difference is smaller than a preset time or not;
    if the touch signal is smaller than the first coordinate, the step of acquiring the touch point coordinate corresponding to the last detected touch signal as a second coordinate is executed;
    and if not, reporting the first coordinate.
  15. The method according to claim 13, wherein before obtaining the touch point coordinate corresponding to the last detected touch signal as the second coordinate, the method further comprises:
    acquiring the frame number difference between the last detected touch signal and the currently detected touch signal;
    judging whether the frame number difference is smaller than a preset frame number difference or not;
    if the touch signal is smaller than the first coordinate, a step of acquiring a touch coordinate corresponding to the last detected touch signal as a second coordinate is executed;
    and if not, reporting the first coordinate.
  16. A touch screen point reporting method is applied to electronic equipment, the electronic equipment comprises a central processing unit and a touch screen processor electrically connected with the central processing unit, the touch screen processor is used for reporting touch point coordinates detected by a touch screen of the electronic equipment to the central processing unit, and the method comprises the following steps:
    the central processing unit acquires the program attribute of the application program operated in the foreground;
    the central processing unit acquires point reporting instructions corresponding to the program attributes as target point reporting instructions, different program attributes correspond to different point reporting instructions, and point reporting modes indicated by the different point reporting instructions are different;
    the central processing unit sends a target report point instruction to the touch screen processor, wherein the target report point instruction is used for instructing the touch screen processor to report the detected touch point coordinate to the central processing unit according to a report point mode corresponding to the target report point instruction;
    the touch screen processor receives a target report instruction sent by the central processing unit;
    the touch screen processor acquires a point reporting mode corresponding to the target point reporting instruction as a target point reporting mode;
    and the touch screen processor updates the stored report point mode into the target report point mode and is used for reporting the detected touch point coordinates to the central processing unit according to the target report point mode.
  17. The utility model provides a touch-sensitive screen point reporting device which characterized in that is applied to electronic equipment, electronic equipment include central processing unit and with central processing unit electric connection's touch-sensitive screen treater, the touch-sensitive screen treater is used for reporting the touch point coordinate that detects at the touch-sensitive screen of electronic equipment to central processing unit, the device includes:
    the acquisition module is used for acquiring the program attribute of the application program operated in the foreground by the central processing unit;
    the determining module is used for acquiring point reporting instructions corresponding to the program attributes as target point reporting instructions by the central processing unit, wherein different program attributes correspond to different point reporting instructions, and the point reporting modes indicated by the different point reporting instructions are different;
    and the instruction sending module is used for sending the target report point instruction to the touch screen processor by the central processing unit, wherein the target report point instruction is used for indicating the touch screen processor to report the detected touch point coordinates to the central processing unit according to a report point mode corresponding to the target report point instruction.
  18. The utility model provides a touch-sensitive screen point reporting device which characterized in that is applied to electronic equipment, electronic equipment include central processing unit and with central processing unit electric connection's touch-sensitive screen treater, the touch-sensitive screen treater is used for reporting the touch point coordinate that detects at the touch-sensitive screen of electronic equipment to central processing unit, the device includes:
    the receiving module is used for receiving a target report point instruction sent by the central processing unit by the touch screen processor;
    the report mode acquisition module is used for acquiring a report mode corresponding to the target report instruction as a target report mode by the touch screen processor, wherein the report modes corresponding to different report instructions are different;
    and the updating module is used for updating the stored reporting mode into the target reporting mode by the touch screen processor.
  19. An electronic device, comprising a central processing unit and a touch screen processor electrically connected to the central processing unit, wherein the touch screen processor is configured to report coordinates of a touch point detected on a touch screen of the electronic device to the central processing unit, and the central processing unit is configured to perform the method according to any one of claims 1 to 8; the touch screen processor is configured to perform the method of any of claims 9-15.
  20. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of claims 1 to 16.
CN201980099359.XA 2019-10-18 2019-10-18 Touch screen point reporting method and device, electronic equipment and storage medium Pending CN114270297A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/112006 WO2021072760A1 (en) 2019-10-18 2019-10-18 Touch screen reporting method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN114270297A true CN114270297A (en) 2022-04-01

Family

ID=75537336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980099359.XA Pending CN114270297A (en) 2019-10-18 2019-10-18 Touch screen point reporting method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114270297A (en)
WO (1) WO2021072760A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079924A (en) * 2022-06-29 2022-09-20 广东明创软件科技有限公司 Screen display method, device, terminal, storage medium and product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252273A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Contact reporting rate processing method and device of touch screen
CN107508994A (en) * 2017-09-21 2017-12-22 努比亚技术有限公司 Touch-screen report point rate processing method, terminal and computer-readable recording medium
CN108089813B (en) * 2018-01-12 2020-03-17 Oppo广东移动通信有限公司 Touch screen scribing operation processing method and device, electronic equipment and storage medium
CN109375811A (en) * 2018-10-31 2019-02-22 四川长虹教育科技有限公司 The method for solving to touch Caton under cloud desktop
CN110058739B (en) * 2019-04-19 2022-09-09 Oppo广东移动通信有限公司 Control method, control device, electronic apparatus, computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079924A (en) * 2022-06-29 2022-09-20 广东明创软件科技有限公司 Screen display method, device, terminal, storage medium and product

Also Published As

Publication number Publication date
WO2021072760A1 (en) 2021-04-22

Similar Documents

Publication Publication Date Title
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
US10725646B2 (en) Method and apparatus for switching screen interface and terminal
CN108984064B (en) Split screen display method and device, storage medium and electronic equipment
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN110377141B (en) Application processing method and device, electronic equipment and storage medium
CN106502703B (en) Function calling method and device
CN110222288B (en) Page display method, device and storage medium
CN108037990B (en) Task information processing method and device and server
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
EP3059971B1 (en) Information processing apparatus, information processing method, and information processing system
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN112749074B (en) Test case recommending method and device
CN114175748B (en) Communication frequency adjusting method, device, electronic equipment and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN109062469B (en) Split screen display method and device, storage medium and electronic equipment
CN114270297A (en) Touch screen point reporting method and device, electronic equipment and storage medium
CN108011860B (en) Method, device and terminal for processing broadcast message
CN108509509B (en) Webpage display method and device, mobile terminal and storage medium
CN110888572A (en) Message display method and terminal equipment
CN107930126B (en) Game reservation data processing method and device and mobile terminal
CN108269223B (en) Webpage graph drawing method and terminal
CN113268179B (en) Session message processing method, device, equipment and storage medium
CN112596883B (en) Application switching method and device, storage medium and electronic equipment
CN104866087A (en) Electronic device and control method thereof

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